/* ============================================================
   LLM Router 管理台 · 样式
   极简克制 · 浅色底 · 系统字体栈 · 深蓝/青绿少量强调
   ============================================================ */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #182230;
  --text-2: #475467;
  --text-3: #98a2b3;
  --accent: #175cd3;
  --accent-deep: #1558bf;
  --accent-weak: #eff4ff;
  --teal: #067a6e;
  --teal-weak: #e7f5f3;
  --red: #b42318;
  --red-weak: #fef3f2;
  --red-border: #fecdca;
  --amber: #b54708;
  --amber-weak: #fffaeb;
  --orange: #c2410c;
  --orange-weak: #fff4ed;
  --gray-weak: #f2f4f7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-pop: 0 8px 24px rgba(16, 24, 40, .16);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.lock { overflow: hidden; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 顶栏 ---------- */

#topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

body.pre-auth #topbar { display: none; }

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.01em;
}

.brand em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 2px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  flex: none;
}

#nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

#nav::-webkit-scrollbar { display: none; }

#nav a {
  padding: 6px 12px;
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}

#nav a:hover { color: var(--text); background: var(--gray-weak); }

#nav a.active {
  color: var(--accent);
  background: var(--accent-weak);
  font-weight: 600;
}

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

.whoami { font-size: 13px; color: var(--text-2); }

.whoami:empty { display: none; }

/* ---------- Mock 标识 ---------- */

.mock-chip {
  font-size: 11.5px;
  color: var(--amber);
  background: var(--amber-weak);
  border: 1px solid #fedf89;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.mock-flag {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--amber-weak);
  border: 1px solid #fedf89;
  color: var(--amber);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  pointer-events: none;
}

/* ---------- 主体布局 ---------- */

#main { flex: 1; }

.view {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  animation: fadeUp .18s ease;
}

.view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.view-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.view-desc { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }

.view-actions { display: flex; gap: 10px; flex: none; }

.view-body { display: flex; flex-direction: column; gap: 16px; }

/* ---------- 面板 / 卡片 ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-head h3 { margin: 0; font-size: 14px; font-weight: 600; }

.panel-body { padding: 16px 20px; }

.panel-foot {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  color: var(--text-2);
}

.link { color: var(--accent); text-decoration: none; font-size: 13px; }
.link:hover { text-decoration: underline; }

/* ---------- 统计卡片 ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat { padding: 18px 20px; }

.stat .lbl { font-size: 13px; color: var(--text-2); }

.stat .num {
  margin-top: 6px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat .num-danger { color: var(--red); }

.stat .sub { margin-top: 5px; font-size: 12px; color: var(--text-3); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- 状态徽标 ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.st-active    { background: var(--teal-weak); color: var(--teal); }
.st-ready     { background: var(--accent-weak); color: var(--accent); }
.st-pending   { background: var(--gray-weak); color: var(--text-2); }
.st-validating{ background: var(--amber-weak); color: var(--amber); }
.st-disabled  { background: var(--gray-weak); color: var(--text-3); }
.st-exhausted { background: var(--orange-weak); color: var(--orange); }
.st-rejected  { background: var(--red-weak); color: var(--red); }
.chip-ok      { background: var(--teal-weak); color: var(--teal); }
.chip-fail    { background: var(--red-weak); color: var(--red); }
.chip-neutral { background: var(--gray-weak); color: var(--text-2); }

.st-validating .dot { animation: pulse 1.2s ease-in-out infinite; }

.q-ok        { background: var(--teal-weak); color: var(--teal); }
.q-low       { background: var(--amber-weak); color: var(--amber); }
.q-exhausted { background: var(--red-weak); color: var(--red); }
.q-unknown   { background: var(--gray-weak); color: var(--text-3); }

.actor-admin   { background: var(--accent-weak); color: var(--accent); }
.actor-service { background: var(--teal-weak); color: var(--teal); }
.actor-agent   { background: var(--amber-weak); color: var(--amber); }
.actor-system  { background: var(--gray-weak); color: var(--text-2); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  line-height: 20px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}

.btn:hover { background: var(--gray-weak); color: var(--text); }

.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #912018; border-color: #912018; color: #fff; }

.btn-ghost-danger {
  background: transparent;
  border-color: transparent;
  color: var(--red);
}
.btn-ghost-danger:hover { background: var(--red-weak); color: var(--red); }

.btn-sm { padding: 4px 10px; font-size: 12.5px; border-radius: 6px; line-height: 18px; }

.btn-block { width: 100%; }

.btn.loading::after {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
}

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 表单 ---------- */

.field { display: block; margin-bottom: 14px; }

.field > span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}

.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-error {
  color: var(--red);
  font-size: 13px;
  margin: 0 0 12px;
  line-height: 1.6;
}

.form-error[hidden] { display: none; }

.inline-row { display: flex; gap: 8px; align-items: center; }

.inline-row .grow { flex: 1; min-width: 0; }

.inline-row select {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
}

.new-prov-inner {
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 14px 14px 0;
  margin-bottom: 14px;
  background: #fafbfc;
}

/* ---------- 登录页 ---------- */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
}

.login-card.err { animation: shake .3s ease; }

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.login-brand span { font-weight: 500; color: var(--text-2); }

.login-sub { margin: 8px 0 24px; font-size: 13px; color: var(--text-3); }

.login-hint {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ---------- 表格 ---------- */

.table-scroll { overflow-x: auto; }

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tbl th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: #fafbfc;
}

.tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.tbl tbody tr:last-child td { border-bottom: none; }

.tbl tbody tr.main-row { cursor: default; }

.tbl tbody tr.main-row:hover { background: #fafbfc; }

.mono { font-family: var(--mono); font-size: 12.5px; }

.muted { color: var(--text-3); }

.nowrap { white-space: nowrap; }

.cell-main { font-weight: 500; }

.cell-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---------- 拖拽排序 ---------- */

.th-grip { width: 34px; }

.td-grip { width: 34px; padding-right: 0; }

.drag-handle {
  display: inline-block;
  width: 10px;
  height: 18px;
  vertical-align: middle;
  cursor: grab;
  color: var(--text-3);
  background-image: radial-gradient(circle, currentColor 1.2px, transparent 1.4px);
  background-size: 5px 5px;
  background-position: center;
  transition: color .15s;
}

.drag-handle:hover { color: var(--text-2); }

tr.dragging { opacity: .45; background: var(--accent-weak) !important; }

tr.dragging .drag-handle { cursor: grabbing; }

.td-prio { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }

/* ---------- 行内展开详情 ---------- */

.detail-row > td {
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
}

.detail-inner { padding: 6px 14px 14px 48px; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px 24px;
}

.d-item .d-k {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 2px;
}

.d-item .d-v {
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.55;
}

.d-err { margin-top: 14px; }

.d-err .d-k { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }

/* ---------- 提示框（错误原因 / 警告） ---------- */

.err-box {
  background: var(--red-weak);
  border: 1px solid var(--red-border);
  color: var(--red);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-all;
}

.err-box .err-k {
  display: block;
  font-size: 12px;
  opacity: .8;
  margin-bottom: 4px;
}

.warn-box {
  background: var(--amber-weak);
  border: 1px solid #fedf89;
  color: var(--amber);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- 筛选栏 ---------- */

.filter-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.filter-bar label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-2);
}

.filter-bar select {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
}

.filter-spacer, .filter-bar .spacer { flex: 1; }

.summary-line { font-size: 12.5px; color: var(--text-3); }

/* ---------- 选项卡（审核页） ---------- */

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 8px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s;
}

.tab:hover { color: var(--text); }

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.tab .cnt {
  display: inline-block;
  margin-left: 6px;
  min-width: 20px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--gray-weak);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 18px;
}

.tab.active .cnt { background: var(--accent-weak); color: var(--accent); }

/* ---------- 审核卡片 ---------- */

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  gap: 14px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rc-title { font-size: 14.5px; font-weight: 600; line-height: 1.4; }

.rc-sub {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-3);
  margin-top: 2px;
}

.rc-meta {
  font-size: 12px;
  color: var(--text-3);
  word-break: break-all;
}

.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.tag {
  display: inline-block;
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--gray-weak);
  border-radius: 6px;
  padding: 1px 8px;
  line-height: 20px;
  white-space: nowrap;
}

.rc-actions { display: flex; gap: 8px; align-items: center; margin-top: 2px; }

/* ---------- 状态提示（加载 / 空 / 错误） ---------- */

.state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 24px;
  color: var(--text-3);
  font-size: 13.5px;
  text-align: center;
}

.state-box svg { color: var(--text-3); opacity: .8; }

.state-box.error-state { color: var(--red); }

.state-box.error-state svg { color: var(--red); }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
  flex: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 展开详情块（原生 details） ---------- */

details.inline { display: inline-block; max-width: 100%; }

details.inline > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 12.5px;
  list-style: none;
  user-select: none;
  white-space: nowrap;
}

details.inline > summary::-webkit-details-marker { display: none; }

details.inline > summary::before { content: '▸ '; }

details.inline[open] > summary::before { content: '▾ '; }

.detail-box {
  margin-top: 8px;
  background: var(--gray-weak);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  max-width: 560px;
  max-height: 260px;
  overflow: auto;
  color: var(--text-2);
}

/* ---------- 仪表盘小组件 ---------- */

.status-dots { display: flex; flex-wrap: wrap; gap: 10px 18px; }

.status-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.status-item .n { font-weight: 600; font-variant-numeric: tabular-nums; }

.status-item.zero { opacity: .45; }

.eb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
}

.eb-label { width: 88px; flex: none; color: var(--text-2); }

.eb-track { flex: 1; height: 6px; border-radius: 3px; background: var(--gray-weak); overflow: hidden; }

.eb-bar { height: 100%; border-radius: 3px; background: #d92d20; opacity: .8; }

.eb-count {
  width: 40px;
  text-align: right;
  flex: none;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}

/* ---------- 弹层 ---------- */

body.lock #topbar { z-index: 40; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px;
  z-index: 100;
  overflow-y: auto;
  animation: fadeIn .15s ease;
}

.modal-backdrop.closing { opacity: 0; transition: opacity .15s ease; }

.modal {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  width: 100%;
  max-width: 540px;
  animation: slideUp .18s ease;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
}

.modal-head h3 { margin: 0; font-size: 16px; font-weight: 600; }

.modal-x {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  border-radius: 6px;
  color: var(--text-3);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

.modal-x:hover { background: var(--gray-weak); color: var(--text); }

.modal-body { padding: 16px 22px; }

.modal-msg { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 22px 20px;
}

.modal-body .warn-box { margin-bottom: 14px; }

.token-box {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  background: var(--gray-weak);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 14px;
  word-break: break-all;
  user-select: all;
}

.token-meta { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }

/* ---------- 轻提示 ---------- */

#toast-root {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #1d2939;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, .24);
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 400px;
  animation: slideDown .2s ease;
  transition: opacity .2s, transform .2s;
}

.toast.out { opacity: 0; transform: translateY(-6px); }

.toast.success { background: var(--teal); }

.toast.error { background: #912018; }

.toast-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex: none;
  margin-top: 1px;
}

/* ---------- 动画 ---------- */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .review-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .topbar-inner { gap: 14px; padding: 0 14px; }
  .whoami { display: none; }
  .view { padding: 20px 14px 40px; }
  .detail-inner { padding-left: 14px; }
}
