/* ============================================================
   立项文件上传系统 · 样式
   ============================================================ */
:root {
  --ink: #10192b;
  --ink-2: #4a5a72;
  --ink-3: #8695aa;
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --bg: #f4f6fa;
  --card: #ffffff;
  --brand: #1f4fd8;
  --brand-2: #3b82f6;
  --brand-soft: #eef3ff;
  --gold: #b8862f;
  --ok: #0e9f6e;
  --ok-soft: #e7f7f1;
  --warn: #c2740b;
  --warn-soft: #fdf3e3;
  --danger: #d33a3a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 25, 43, .06), 0 1px 3px rgba(16, 25, 43, .05);
  --shadow-md: 0 6px 20px -8px rgba(16, 25, 43, .18), 0 2px 6px rgba(16, 25, 43, .05);
  --shadow-lg: 0 24px 60px -20px rgba(16, 25, 43, .35);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hidden { display: none !important; }

/* ---------------- 顶栏 ---------------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background:
    radial-gradient(1200px 300px at 10% -120%, #2a4f97 0%, transparent 60%),
    linear-gradient(180deg, #0d1b34 0%, #102444 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px -18px rgba(0, 0, 0, .8);
}

.appbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }

.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(150deg, #f0c46a, #c8962f);
  color: #22160a;
  font-size: 20px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 14px -6px rgba(200, 150, 47, .8);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; letter-spacing: .02em; }
.brand-text em { font-style: normal; font-size: 12px; color: #9fb2d4; letter-spacing: .04em; }

.tabs { display: flex; gap: 4px; background: rgba(255, 255, 255, .07); padding: 4px; border-radius: 12px; }

.tab {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; cursor: pointer;
  background: transparent; color: #c8d5ec;
  padding: 8px 16px; border-radius: 9px;
  font-size: 14px; font-family: inherit; font-weight: 500;
  transition: background .18s, color .18s;
}
.tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.tab.is-active { background: #fff; color: #14305c; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }

.tab-count {
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--brand); color: #fff;
  border-radius: 999px; font-size: 11.5px; font-weight: 600;
}
.tab.is-active .tab-count { background: var(--brand-soft); color: var(--brand); }

/* ---------------- 页面骨架 ---------------- */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 96px;
}

.hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-text h1 { font-size: 24px; }
.hero-text p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

.hero-stats { display: flex; gap: 10px; }
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 18px; min-width: 96px;
  box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--ink-3); }

/* ---------------- 工具栏 ---------------- */
.toolbar { display: flex; gap: 10px; margin-bottom: 18px; }

.search {
  flex: 1; position: relative; display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: border-color .18s, box-shadow .18s;
}
.search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(59, 130, 246, .14); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; }
.search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  padding: 12px 10px; font-size: 14.5px; font-family: inherit; color: var(--ink);
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: background .16s, border-color .16s, transform .06s, box-shadow .16s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #cbd5e1; color: var(--ink); background: #fbfcfe; }
.btn-primary { background: linear-gradient(180deg, #2b5ce6, var(--brand)); color: #fff; box-shadow: 0 6px 16px -8px rgba(31, 79, 216, .9); }
.btn-primary:hover { background: linear-gradient(180deg, #3565ea, #1a46c4); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }

.icon-btn {
  border: 0; background: transparent; color: var(--ink-3);
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center;
}
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }

/* ---------------- 项目卡片 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.proj {
  padding: 18px 18px 14px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.proj::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  opacity: 0; transition: opacity .2s;
}
.proj:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #d4dced; }
.proj:hover::before { opacity: 1; }

.proj-top { display: flex; align-items: flex-start; gap: 10px; }
.proj-name {
  font-size: 16px; font-weight: 600; line-height: 1.35;
  word-break: break-word; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.badge {
  flex: none; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .02em;
}
.badge-complete { background: var(--ok-soft); color: var(--ok); }
.badge-missing { background: var(--warn-soft); color: var(--warn); }

.dots { display: flex; gap: 5px; align-items: center; }
.dot {
  flex: 1; height: 6px; border-radius: 3px; background: var(--line-2);
  position: relative;
}
.dot.has { background: linear-gradient(90deg, #4f8ef7, var(--brand)); }
.dots-label { font-size: 12px; color: var(--ink-3); margin-left: 6px; white-space: nowrap; }

.proj-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--ink-3);
  padding-top: 4px; border-top: 1px dashed var(--line-2);
  flex-wrap: wrap;
}
.proj-meta span { display: inline-flex; align-items: center; gap: 5px; }
.proj-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.proj-actions { display: flex; gap: 8px; }
.proj-actions .btn { flex: 1; }

/* ---------------- 空状态 ---------------- */
.empty {
  text-align: center; padding: 72px 24px;
  background: var(--card); border: 1px dashed #d8e0ee; border-radius: var(--radius);
}
.empty svg { width: 44px; height: 44px; fill: none; stroke: #b9c6da; stroke-width: 1.5; }
.empty h3 { margin: 14px 0 6px; font-size: 16px; }
.empty p { color: var(--ink-3); font-size: 14px; }

/* ---------------- 模板区 ---------------- */
.tpl-card { padding: 16px 20px; margin-bottom: 18px; background: linear-gradient(180deg, #ffffff, #fbfcff); }
.tpl-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.tpl-head > div:first-child { flex: 1; min-width: 240px; }
.tpl-head h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tpl-head h2::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(150deg, #f0c46a, #c8962f);
}
.tpl-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.55; }
.tpl-btns { display: flex; gap: 8px; flex: none; }

.tpl-body { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tpl-group-name { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.tpl-files { display: flex; flex-direction: column; gap: 6px; margin-top: 7px; }
.tpl-file {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: #23406c; text-decoration: none;
  background: #f6f9ff; border: 1px solid #e4ecfa; border-radius: 7px;
  padding: 7px 9px;
  transition: border-color .15s, background .15s;
}
.tpl-file:hover { border-color: #b9cdf3; background: var(--brand-soft); }
.tpl-file svg { width: 14px; height: 14px; fill: none; stroke: #6b8ec9; stroke-width: 1.9; flex: none; }
.tpl-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-file em { font-style: normal; color: var(--ink-3); font-size: 11.5px; flex: none; }

/* ---------------- 上传表单 ---------------- */
.upload-form { display: flex; flex-direction: column; gap: 18px; }

.name-card { padding: 20px 22px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 9px; letter-spacing: .02em; }
.req-mark { color: var(--danger); font-weight: 500; margin-left: 4px; font-size: 12px; }

#project-name {
  width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 15.5px; font-family: inherit; color: var(--ink);
  background: #fcfdff; outline: 0;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
#project-name::placeholder { color: #a9b6c9; }
#project-name:focus { border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px rgba(59, 130, 246, .14); }

.hint { margin-top: 9px; font-size: 12.5px; color: var(--ink-3); word-break: break-all; }
.hint-sub { margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.hint code { background: var(--line-2); padding: 2px 6px; border-radius: 5px; font-size: 12px; color: #3d4f6b; }
.hint-warn { color: var(--warn); margin-left: 6px; }

.section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.section-head h2 { font-size: 17px; }
.section-head p { font-size: 13px; color: var(--ink-3); }
.dot-multi { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); vertical-align: middle; margin: 0 2px; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }

.slot {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.slot.is-filled { border-color: #b9d8c9; box-shadow: 0 0 0 3px rgba(14, 159, 110, .07), var(--shadow-sm); }

.slot-head { display: flex; gap: 11px; align-items: flex-start; }

.slot-no {
  flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #f7e4b5, #e2c076);
  color: #4a3410; font-weight: 700; font-size: 13px;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.slot-title { flex: 1; min-width: 0; }
.slot-title h3 { font-size: 15px; display: flex; align-items: center; gap: 7px; }
.slot-title p { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; margin-top: 3px; }

.slot-state { flex: none; font-size: 11.5px; color: var(--ink-3); padding-top: 2px; }
.slot.is-filled .slot-state { color: var(--ok); font-weight: 600; }

.dropzone {
  border: 1.5px dashed #d3dcec; border-radius: var(--radius-sm);
  background: #fafcff;
  padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; text-align: center;
  transition: border-color .18s, background .18s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand-2); background: var(--brand-soft); }
.slot.is-filled .dropzone { padding: 11px 12px; background: #fbfdfb; border-color: #cfe6da; }
.slot.is-filled .dropzone .dz-sub { display: none; }
.slot.is-filled .dropzone svg { width: 18px; height: 18px; }
.dropzone svg { width: 22px; height: 22px; fill: none; stroke: #8fa2bd; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dropzone.is-over svg, .dropzone:hover svg { stroke: var(--brand); }
.dz-text { font-size: 13px; color: var(--ink-2); }
.dz-sub { font-size: 11.5px; color: var(--ink-3); }

.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex; align-items: center; gap: 9px;
  background: var(--ok-soft); border: 1px solid #cdebdf;
  border-radius: 8px; padding: 7px 9px;
  font-size: 12.5px;
}
.file-item .fi-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #12543e; }
.file-item .fi-size { color: #4d8b74; font-variant-numeric: tabular-nums; flex: none; }
.file-item button {
  border: 0; background: transparent; color: #7aa793; cursor: pointer;
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none;
}
.file-item button:hover { background: #d3ece1; color: var(--danger); }
.file-item button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------------- 提交条 ---------------- */
.submit-bar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 -8px 30px -20px rgba(16, 25, 43, .5);
  margin-top: 6px;
}
.submit-info { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink-2); }
.submit-info b { color: var(--ink); font-variant-numeric: tabular-nums; }

.progress { height: 7px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #4f8ef7, var(--brand)); transition: width .2s; }

/* ---------------- 抽屉 ---------------- */
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer[aria-hidden="true"] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(12, 22, 40, .45); backdrop-filter: blur(2px); animation: fade .2s ease; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(560px, 100%);
  background: var(--card);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slide .26s cubic-bezier(.22, 1, .36, 1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: .6; } }

.drawer-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 22px 16px; border-bottom: 1px solid var(--line-2);
}
.drawer-head h2 { font-size: 18px; word-break: break-word; }
.drawer-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.drawer-head-actions { display: flex; gap: 2px; flex: none; margin-left: auto; }
.rename-input {
  width: 100%;
  font: inherit; font-size: 17px; font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--brand-2);
  border-radius: 8px;
  padding: 6px 10px;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-foot { padding: 14px 22px; border-top: 1px solid var(--line-2); background: #fbfcfe; }
.drawer-foot .btn { width: 100%; }

.slot-row { padding: 13px 0; border-bottom: 1px dashed var(--line-2); }
.slot-row:last-child { border-bottom: 0; }
.slot-row-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.slot-row-head .no {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: #f2f5fa; color: #5a6c88;
}
.slot-row.has .no { background: linear-gradient(150deg, #f7e4b5, #e2c076); color: #4a3410; }
.slot-row-head h4 { font-size: 14px; font-weight: 600; flex: 1; }
.slot-row-head .state { font-size: 11.5px; color: var(--ink-3); }
.slot-row.has .slot-row-head .state { color: var(--ok); font-weight: 600; }

.dl-list { display: flex; flex-direction: column; gap: 7px; }
.dl-item {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 8px 8px 11px;
  background: #fcfdff;
  transition: border-color .16s, background .16s;
}
.dl-item:hover { border-color: #bcd0f5; background: var(--brand-soft); }
.dl-link {
  display: flex; align-items: center; gap: 9px;
  flex: 1; min-width: 0;
  text-decoration: none; color: var(--ink);
}
.dl-link svg { width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.dl-link .dl-name { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-item .dl-size { font-size: 12px; color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }
.dl-del {
  flex: none; width: 24px; height: 24px; border: 0; border-radius: 6px;
  background: transparent; color: #b9c6da; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.dl-del:hover { background: #fdeaea; color: var(--danger); }
.dl-del svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.slot-add {
  flex: none; margin-left: 6px;
  border: 1px solid #d6e2f5; background: #f4f8ff; color: #2a5bb8;
  font-family: inherit; font-size: 12px; line-height: 1;
  padding: 6px 10px; border-radius: 7px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.slot-add:hover { background: var(--brand-soft); border-color: #b9cdf3; }
.slot-add:disabled { opacity: .6; cursor: default; }
.missing-text { font-size: 12.5px; color: var(--warn); }

/* ---------------- 确认弹窗 ---------------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.modal[aria-hidden="true"] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 22, 40, .45); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; width: min(480px, 100%);
  background: var(--card); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-lg);
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.97); opacity: .7; } }
.modal-card h3 { font-size: 17px; margin-bottom: 10px; }
.modal-card p { font-size: 14px; color: var(--ink-2); }
.missing-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.missing-list li {
  font-size: 13px; background: var(--warn-soft); color: #8a5a08;
  border-radius: 8px; padding: 7px 11px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------------- 提示 ---------------- */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #14203a; color: #fff;
  padding: 11px 20px; border-radius: 999px;
  font-size: 13.5px; box-shadow: var(--shadow-lg);
  animation: rise .2s ease;
  max-width: 90vw;
}
.toast.is-ok { background: #0d7a55; }
.toast.is-err { background: #a92f2f; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 720px) {
  .appbar-inner { padding: 12px 16px; gap: 14px; }
  .brand-text em { display: none; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 9px 12px; }
  .page { padding: 20px 16px 80px; }
  .hero-text h1 { font-size: 20px; }
  .hero-stats { width: 100%; }
  .stat { flex: 1; min-width: 0; padding: 9px 12px; }
  .grid, .slot-grid { grid-template-columns: 1fr; }
  .submit-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .drawer-panel { width: 100%; }
}
