/* 主播开票数据管理后台 · 基础样式
   仅使用外部样式表，满足 CSP style-src 'self'。 */

:root {
  --bg: #f3f5f9;
  --panel: #ffffff;
  --ink: #1b2430;
  --ink-2: #475467;
  --ink-3: #7a8699;
  --line: #e3e8ef;
  --line-strong: #cbd4e1;
  --brand: #1e56a0;
  --brand-2: #2f6fed;
  --brand-soft: #e8f0fd;
  --ok: #12805c;
  --ok-soft: #e4f6ee;
  --warn: #a15c00;
  --warn-soft: #fdf3e2;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --info: #175cd3;
  --info-soft: #e8f0fd;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; }
h1 { font-size: 22px; letter-spacing: .2px; }
h2 { font-size: 16px; }
p { margin: 0; }

.muted { color: var(--ink-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-mark.big { width: 46px; height: 46px; border-radius: 12px; font-size: 22px; }

.mainnav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
.mainnav a {
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 7px;
  white-space: nowrap;
}
.mainnav a:hover { background: #f1f4f9; text-decoration: none; }
.mainnav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.userbox {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--ink-2);
}
.userbox em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.2;
}

/* ---------- 页面 ---------- */
.page {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  flex: 1 0 auto;
}
.page.narrow { max-width: 760px; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-head p { margin-top: 4px; font-size: 13px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 12px;
}

/* ---------- 组织树 ---------- */
.tree-card { padding: 8px 0; }
.tree { display: flex; flex-direction: column; }
.tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tree-row.depth-1 { padding-left: 40px; }
.tree-row.depth-2 { padding-left: 62px; }
.tree-row.depth-3 { padding-left: 84px; }
.tree-row.depth-4 { padding-left: 106px; }
.tree-row.depth-5 { padding-left: 128px; }
.tree-row.depth-6 { padding-left: 150px; }
.tree-row.depth-7 { padding-left: 172px; }
.tree-row.depth-8 { padding-left: 194px; }
.tree-row.depth-9 { padding-left: 216px; }
.tree-row.depth-10 { padding-left: 238px; }
.tree-row.depth-11 { padding-left: 260px; }
.tree-row.depth-12 { padding-left: 282px; }
.tree-row.depth-13 { padding-left: 304px; }
.tree-row.depth-14 { padding-left: 326px; }
.tree-row.depth-15 { padding-left: 348px; }
.tree-row.depth-16 { padding-left: 370px; }
.tree-row.depth-17 { padding-left: 392px; }
.tree-row.depth-18 { padding-left: 414px; }
.tree-row.depth-19 { padding-left: 436px; }
.tree-row.depth-20 { padding-left: 458px; }
.tree-row:last-child { border-bottom: 0; }
.tree-row:hover { background: #f8fafc; }
.tree-branch {
  width: 14px;
  height: 14px;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-bottom-left-radius: 4px;
  flex: none;
  margin-right: 2px;
}
.tree-name { font-weight: 600; }
.badge-depth { background: #eef2f7; color: var(--ink-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: #f6f8fb; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: #1a4b8c; }
.btn-danger {
  color: var(--danger);
  border-color: #f0c4c0;
  background: #fff;
}
.btn-danger:hover { background: var(--danger-soft); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: #f1f4f9; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; height: 40px; font-size: 14px; }

.link { font-size: 13px; }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.table td.row-actions { white-space: nowrap; }
.actions-col { width: 1%; white-space: nowrap; }

/* ---------- 筛选栏 ---------- */
.filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.filterbar input,
.filterbar select,
.inline-field input,
.inline-field select {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}
.filterbar input[type="text"],
.filterbar input:not([type]) { width: 190px; }
.filterbar input[type="date"] { width: 148px; }
.filterbar select { max-width: 220px; }
.filterbar input:focus,
.filterbar select:focus,
.inline-field input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand-2); }
.inline-field { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }

.segmented {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.segmented button {
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
  height: 32px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.segmented button:last-child { border-right: 0; }
.segmented button:hover { background: #f6f8fb; }
.segmented button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.date-range { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.date-range input {
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0 8px;
  font: inherit;
  font-size: 13px;
}

/* ---------- 统计卡 ---------- */
.stat-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.stat-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.stat-card.accent {
  background: linear-gradient(135deg, #1e56a0, #2f6fed);
  border-color: transparent;
  color: #fff;
}
.stat-card.accent .stat-label,
.stat-card.accent small { color: rgba(255, 255, 255, .82); }
.stat-card.accent strong { color: #fff; }
.stat-label { font-size: 12px; color: var(--ink-3); }
.stat-card strong { font-size: 26px; font-weight: 650; letter-spacing: .2px; font-variant-numeric: tabular-nums; }
.stat-card small { font-size: 12px; color: var(--ink-3); }

/* ---------- 卡片 / 表格 ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.card-head .muted { font-size: 12px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
  background: #f8fafc;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: 12px;
}
.table td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfcfe; }
.table .empty { text-align: center; color: var(--ink-3); padding: 36px 14px; }
.table th.num { text-align: right; }
.table-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  font-size: 12px;
  color: var(--ink-2);
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-off { background: #eef1f5; color: var(--ink-3); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  font-size: 13px;
}
.pager a, .pager span {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink-2);
  background: #fff;
}
.pager a:hover { background: #f6f8fb; text-decoration: none; }
.pager a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .disabled { color: #b9c2cf; background: #fafbfc; }
.pager-total { margin-left: auto; border: 0 !important; background: transparent !important; color: var(--ink-3); }

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.form-card { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.field > span { color: var(--ink-2); font-weight: 500; }
.field > span b { color: var(--danger); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brand-soft);
  border-color: var(--brand-2);
}
.field input:disabled { background: #f6f8fb; color: var(--ink-3); }
.field small { font-size: 12px; line-height: 1.45; }
.field-error { color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.form-alert {
  border: 1px solid #f0c4c0;
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}
.input-suffix { position: relative; display: flex; align-items: center; }
.input-suffix input { padding-right: 34px; }
.input-suffix .suffix {
  position: absolute;
  right: 12px;
  color: var(--ink-3);
  font-size: 13px;
  pointer-events: none;
}
.checkbox-line {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.checkbox-line input { margin-top: 3px; width: 16px; height: 16px; flex: none; }

.alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-warn { background: var(--warn-soft); border-color: #f3d9ae; color: var(--warn); }

.compliance-note,
.compliance {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}
.compliance.compact { margin: 0; padding: 10px 0 0; }

/* ---------- 登录 / 注册 ---------- */
.auth-body {
  background:
    radial-gradient(900px 420px at 15% -10%, #e3ecfb 0%, rgba(227, 236, 251, 0) 60%),
    radial-gradient(800px 420px at 90% 0%, #e9f4f0 0%, rgba(233, 244, 240, 0) 55%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 30px 30px 24px;
}
.auth-card.wide { max-width: 560px; }
.auth-head { text-align: center; margin-bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.auth-head h1 { font-size: 19px; }
.auth-head p { font-size: 13px; color: var(--ink-3); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.auth-links { margin-top: 16px; text-align: center; font-size: 13px; }
.auth-links a { color: var(--brand-2); }
.auth-card .compliance,
.auth-card .consent-note { margin-top: 18px; text-align: center; font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }
.consent-note { margin: 0; font-size: 12px; color: var(--ink-3); }
.invite-preview {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-2);
}
.invite-preview.ok { background: var(--ok-soft); border-color: #bfe6d6; color: var(--ok); }
.invite-preview.bad { background: var(--danger-soft); border-color: #f0c4c0; color: var(--danger); }

.error-card { max-width: 440px; text-align: center; }
.error-code { font-size: 56px; font-weight: 700; color: var(--brand); letter-spacing: 2px; line-height: 1.1; }
.error-card h1 { margin: 6px 0 8px; }
.error-actions { margin-top: 20px; }

/* ---------- 弹窗 ---------- */
.dialog {
  border: 0;
  padding: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: min(440px, calc(100vw - 32px));
  color: var(--ink);
}
.dialog::backdrop { background: rgba(16, 24, 40, .45); }
.dialog-body { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.dialog-body h2 { font-size: 17px; }
.dialog-body .form-actions { margin-top: 4px; }
.copy-result {
  border: 1px dashed var(--line-strong);
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.copybox { display: flex; align-items: center; gap: 8px; }
.copybox code {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 2px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 8px 10px;
  text-align: center;
  word-break: break-all;
}
.code { letter-spacing: 1px; }

/* ---------- 详情 ---------- */
.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  margin: 0;
  padding: 6px 18px 14px;
  font-size: 13px;
}
.kv dt { color: var(--ink-3); padding: 8px 0; }
.kv dd { margin: 0; padding: 8px 0; border-bottom: 1px solid #f2f5f9; }
.kv dt { border-bottom: 1px solid #f2f5f9; }
.kv dd:last-of-type, .kv dt:last-of-type { border-bottom: 0; }

details.detail summary {
  cursor: pointer;
  color: var(--brand-2);
  font-size: 12px;
  user-select: none;
}
details.detail[open] summary { margin-bottom: 6px; }
pre.json {
  margin: 0;
  max-width: 360px;
  max-height: 220px;
  overflow: auto;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  margin-top: auto;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}
.footer-inner strong { color: var(--warn); font-weight: 600; }

/* ---------- 轻提示 ---------- */
.toast-wrap {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
  max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--ok); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .topbar-inner { flex-wrap: wrap; padding: 8px 16px; gap: 8px 16px; }
  .mainnav { order: 3; width: 100%; flex: 1 0 100%; }
  .userbox { gap: 10px; }
  .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .page { padding: 16px 12px 40px; }
  h1 { font-size: 19px; }
  .stat-grid.two,
  .stat-grid.three,
  .stat-grid.four { grid-template-columns: 1fr; }
  .stat-card strong { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .filterbar { padding: 10px; }
  .filterbar input[type="text"],
  .filterbar input:not([type]) { width: 100%; }
  .filterbar select { max-width: none; flex: 1 1 140px; }
  .kv { grid-template-columns: 96px 1fr; padding: 4px 14px 10px; }
  .auth-card { padding: 24px 20px 20px; }
  .userbox span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .auth-body { align-items: flex-start; padding-top: 24px; }
  /* 窄屏下保留表格可读性，由 .table-wrap 横向滚动 */
  .table { min-width: 680px; }
  .toast-wrap { top: auto; bottom: 24px; }
}

@media print {
  .topbar, .footer, .filterbar, .pager, .btn { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* ---------- V2 审核 / 收益 / 附件 ---------- */
.small-text { font-size: 12px; margin-top: 2px; line-height: 1.4; }
.estimate-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
  color: var(--ink-2);
}
.estimate-line strong { color: var(--brand); font-size: 15px; }
.attach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.attach-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.segmented a.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding: 0 14px;
  height: 32px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}
.segmented a.tab:last-child { border-right: 0; }
.segmented a.tab:hover { background: #f6f8fb; }
.segmented a.tab.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.review-tabs { margin-bottom: 12px; }
.wide-dialog { width: min(680px, calc(100vw - 32px)); }
.detail-list {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 13px;
}
.detail-list dt { color: var(--ink-3); }
.detail-list dd { margin: 0; word-break: break-word; }
.extra-rows { display: flex; flex-direction: column; gap: 6px; }
.extra-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 6px; align-items: center; }
@media (max-width: 680px) {
  .extra-row { grid-template-columns: 1fr; }
}
