/* 落笔为证 · 样式 */
:root {
  --bg: #f6f1e7;
  --bg2: #efe8da;
  --card: #fffdf8;
  --ink: #2a2420;
  --ink2: #4a423b;
  --muted: #8a7d6e;
  --line: #e3d9c7;
  --accent: #b0352f;
  --accent-hover: #982c27;
  --accent-ink: #fff;
  --ok: #2f7d4f;
  --warn: #b7791f;
  --bad: #b91c1c;
  --c-hand: #2f5d50;
  --c-paste: #d9822b;
  --c-bulk: #c2410c;
  --c-import: #6b7280;
  --c-auto: #8b5cf6;
  --c-restored: #a8a29e;
  --c-suspect: #b91c1c;
  --hl-paste: rgba(217, 130, 43, .28);
  --hl-bulk: rgba(194, 65, 12, .28);
  --hl-suspect: rgba(185, 28, 28, .22);
  --hl-import: rgba(107, 114, 128, .2);
  --hl-recent: rgba(250, 204, 21, .5);
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 16px rgba(60, 40, 20, .06);
  --radius: 14px;
  --sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --paper-font: 19px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1816;
    --bg2: #211e1b;
    --card: #25221f;
    --ink: #ece5da;
    --ink2: #cfc6b8;
    --muted: #9b9184;
    --line: #3a352f;
    --accent: #e0675e;
    --accent-hover: #ea7c73;
    --accent-ink: #1a1816;
    --ok: #5fb987;
    --warn: #e0a43b;
    --bad: #ef6b6b;
    --c-hand: #6fb59f;
    --c-paste: #f0a050;
    --c-bulk: #f07a45;
    --c-import: #9ca3af;
    --c-auto: #a78bfa;
    --c-restored: #8a837d;
    --c-suspect: #ef6b6b;
    --hl-paste: rgba(240, 160, 80, .3);
    --hl-bulk: rgba(240, 122, 69, .32);
    --hl-suspect: rgba(239, 107, 107, .28);
    --hl-import: rgba(156, 163, 175, .22);
    --hl-recent: rgba(250, 204, 21, .32);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 18px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
.noscript { padding: 40px; text-align: center; }

/* ---------- 按钮与表单 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg2); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-ghost { background: transparent; color: var(--bad); border-color: transparent; padding-left: 0; }
.btn.sm { padding: 6px 12px; font-size: 14px; border-radius: 9px; }
.btn.xs { padding: 3px 9px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  border: 0; background: transparent; color: var(--ink); font-size: 26px; line-height: 1;
  text-decoration: none; cursor: pointer;
}
.icon-btn:hover { background: var(--bg2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.input, .select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit;
}
.select.sm { width: auto; padding: 4px 8px; font-size: 14px; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-label { font-weight: 600; font-size: 14px; }
.field-hint { color: var(--muted); font-size: 13px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); }
.inline { display: inline-flex; align-items: center; gap: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; margin-bottom: 12px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(20px, env(safe-area-inset-left)); padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.brand img { border-radius: 7px; }
.topnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.banner { padding: 10px 20px; font-size: 14px; border-bottom: 1px solid var(--line); }
.banner.warn { background: color-mix(in srgb, var(--warn) 14%, var(--bg)); color: var(--ink); }

/* ---------- 首页 ---------- */
.home, .page { max-width: 1040px; margin: 0 auto; padding: 0 20px 60px; }
.page.narrow { max-width: 640px; padding-top: 40px; }
.hero { padding: 64px 0 40px; max-width: 720px; }
.hero.small { padding: 40px 0 24px; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .12em; font-size: 13px; margin-bottom: 12px; }
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 48px); letter-spacing: .02em; margin-bottom: 18px; }
.lead { font-size: 17px; color: var(--ink2); line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section h2, .how h2 { font-family: var(--serif); font-size: 22px; margin: 0; }
.how h2 { margin-bottom: 16px; }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.doc-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 18px 12px; transition: border-color .15s, transform .15s;
}
.doc-card:hover { border-color: var(--muted); transform: translateY(-1px); }
.doc-main { text-decoration: none; display: block; }
.doc-main h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 6px; overflow-wrap: anywhere; }
.doc-main p { margin: 0; font-size: 14px; }
.doc-actions { display: flex; gap: 4px; margin-left: -8px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 36px; text-align: center; }
.empty p:last-child { margin: 0; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; margin-top: 16px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.how-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.how-card { margin: 0; position: relative; }
.how-card p { color: var(--ink2); margin: 0; }
.how-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; margin-bottom: 10px;
}
.limits summary { cursor: pointer; font-weight: 600; }
.limits ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink2); }
.limits li { margin-bottom: 8px; }
.limits h3 + ul { margin-top: 6px; }
.footer { text-align: center; margin-top: 48px; font-size: 13px; }
.error-card h2 { color: var(--bad); }

/* ---------- 编辑器 ---------- */
.editor-view { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.editor-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px max(14px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
  padding-top: max(8px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.title-input {
  flex: 1; min-width: 80px; border: 0; background: transparent; color: var(--ink);
  font: 600 18px var(--serif); padding: 6px 8px; border-radius: 8px;
}
.title-input:hover { background: var(--bg2); }
.title-input:focus { outline: none; background: var(--bg2); }
.editor-status { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 22%, transparent); animation: pulse 2s ease-in-out infinite; }
.rec-dot.off { background: var(--muted); box-shadow: none; animation: none; }
@keyframes pulse { 50% { opacity: .45; } }
.pill { padding: 3px 10px; border-radius: 999px; background: var(--bg2); color: var(--muted); font-size: 12.5px; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.count { color: var(--ink2); font-variant-numeric: tabular-nums; }
.editor-actions { display: flex; gap: 4px; align-items: center; }
.editor-main { flex: 1; min-height: 0; display: flex; justify-content: center; overflow: hidden; }
.paper {
  width: 100%; max-width: 46em; height: 100%; resize: none; border: 0; outline: none;
  padding: 40px 32px 40vh; background: transparent; color: var(--ink);
  font-family: var(--serif); font-size: var(--paper-font); line-height: 1.95; letter-spacing: .02em;
  caret-color: var(--accent);
}
.paper::placeholder { color: var(--muted); opacity: .7; }
.editor-foot {
  display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px;
  padding: 6px 16px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg);
}
.editor-foot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 对话框 ---------- */
.dialog {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.dialog-wide { width: min(880px, calc(100vw - 24px)); }
.dialog::backdrop { background: rgba(20, 16, 12, .45); backdrop-filter: blur(2px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px 22px; }
.dialog-head h2 { font-size: 18px; margin: 0; }
.dialog-body { padding: 8px 22px 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 18px; border-top: 1px solid var(--line); }
.export-list { display: grid; gap: 10px; }
.export-opt {
  display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer;
}
.export-opt:hover { border-color: var(--accent); }
.export-opt strong { font-size: 16px; }
.export-opt span { font-size: 13.5px; }
.import-results { padding-left: 18px; margin: 0; }
.import-results li { margin-bottom: 8px; }
.ir-invalid strong { color: var(--bad); }

/* ---------- 提示 ---------- */
.toasts { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .2); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: none; }
.toast-warn { background: var(--warn); color: #fff; }
.toast-error { background: var(--bad); color: #fff; }
.toast-ok { background: var(--ok); color: #fff; }
.update-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 900; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}

.progress { padding: 8px 0; }
.progress-bar { height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; margin-bottom: 10px; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* ---------- 验证报告 ---------- */
.verdict { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid; }
.verdict h2 { font-size: 20px; margin-bottom: 4px; }
.verdict p { margin: 0; color: var(--ink2); }
.verdict-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 22px; }
.verdict-ok { background: color-mix(in srgb, var(--ok) 9%, var(--card)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.verdict-ok .verdict-mark { background: var(--ok); }
.verdict-warn { background: color-mix(in srgb, var(--warn) 10%, var(--card)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.verdict-warn .verdict-mark { background: var(--warn); }
.verdict-bad { background: color-mix(in srgb, var(--bad) 9%, var(--card)); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.verdict-bad .verdict-mark { background: var(--bad); }
.issues { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.issue { padding: 10px 14px 10px 36px; border-radius: 10px; position: relative; font-size: 14px; }
.issue::before { position: absolute; left: 14px; top: 10px; font-weight: 800; }
.issue.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.issue.bad::before { content: "✕"; color: var(--bad); }
.issue.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.issue.warn::before { content: "!"; color: var(--warn); }
.work-head { margin: 32px 0 8px; }
.work-head h1 { font-family: var(--serif); font-size: clamp(26px, 4vw, 36px); margin-bottom: 6px; overflow-wrap: anywhere; }
.work-head code { color: var(--accent); font-weight: 600; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.kpi-label { color: var(--muted); font-size: 13px; }
.kpi-value { font-family: var(--serif); font-size: 26px; font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--muted); font-size: 12.5px; }
.comp-bar { display: flex; height: 18px; border-radius: 99px; overflow: hidden; background: var(--bg2); margin: 12px 0; gap: 2px; }
.comp-bar span { display: block; height: 100%; }
.comp-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.comp-legend li { display: flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.activity-canvas { display: block; width: 100%; height: 150px; margin-top: 8px; }
.axis { display: flex; justify-content: space-between; margin-top: 4px; }
.stats { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 8px 0 12px; font-size: 14px; }
.stat-row { display: contents; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; overflow-wrap: anywhere; }
.stats.mono dd { font-family: var(--mono); font-size: 13px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 440px; overflow: auto; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.note-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.note-preview { margin: 6px 0; font-family: var(--serif); color: var(--ink2); overflow-wrap: anywhere; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--bg2); }
.tag-paste, .tag-drop { background: var(--hl-paste); }
.tag-bulk { background: var(--hl-bulk); }
.tag-suspect { background: var(--hl-suspect); }
.tag-import { background: var(--hl-import); }
.action-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.fulltext { white-space: pre-wrap; font-family: var(--serif); font-size: 17px; line-height: 1.9; max-height: 70vh; overflow: auto; margin-top: 12px; overflow-wrap: anywhere; }
details.card > summary { cursor: pointer; font-weight: 600; }
.tech .stats { margin-top: 12px; }

/* 正文来源高亮（回放与全文共用） */
.o-paste { background: var(--hl-paste); border-radius: 2px; }
.o-bulk { background: var(--hl-bulk); border-radius: 2px; }
.o-suspect { background: var(--hl-suspect); border-radius: 2px; }
.o-import { background: var(--hl-import); border-radius: 2px; }
.o-auto { text-decoration: underline dotted var(--c-auto); }
.recent { background: var(--hl-recent); border-radius: 2px; }

/* ---------- 回放播放器 ---------- */
.player { display: grid; gap: 10px; }
.player-stage { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.player-paper { height: min(460px, 56vh); overflow-y: auto; padding: 22px 26px 30px; scroll-behavior: auto; }
.player-text { white-space: pre-wrap; font-family: var(--serif); font-size: 18px; line-height: 1.9; overflow-wrap: anywhere; }
.player-text .ellipsis, .player-text .placeholder { color: var(--muted); }
.player-watermark { position: absolute; inset: 0; pointer-events: none; background-repeat: repeat; background-size: 460px 260px; }
.player-hud {
  position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; pointer-events: none;
  font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.player-hud span { background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin: 0 -1px; vertical-align: -0.2em; background: var(--accent); animation: blink 1s steps(1) infinite; }
.caret.del { background: var(--bad); width: 3px; }
@keyframes blink { 50% { opacity: 0; } }
.player-controls { display: flex; align-items: center; gap: 12px; }
.play-btn { min-width: 84px; }
.range-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.player-range { width: 100%; accent-color: var(--accent); margin: 0; }
.player-marks { position: absolute; left: 8px; right: 8px; top: -6px; height: 6px; pointer-events: none; }
.mark { position: absolute; width: 3px; height: 6px; border-radius: 2px; transform: translateX(-1px); background: var(--c-paste); }
.mark-bulk { background: var(--c-bulk); }
.mark-suspect { background: var(--c-suspect); }
.mark-import { background: var(--c-import); }
.player-clock { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-options { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.player-options .check { align-items: center; }
.player-options .check input { margin: 0; }
.legend-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.legend-inline .sw { margin-left: 8px; }
.player-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13px; color: var(--ink2); min-height: 4.6em; }
.player-feed li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-feed li:first-child { color: var(--ink); font-weight: 500; }
.player-feed time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; }

/* ---------- 证书 / 视频 ---------- */
.cert-preview img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #f8f3e8; }
.cert-preview p { margin-top: 10px; }
.video-export { display: grid; gap: 12px; }
.row-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.row-form .field { flex: 1; min-width: 180px; }
.row-form .check { padding-bottom: 10px; }
.video-stage { display: grid; place-items: center; background: var(--bg2); border-radius: 12px; padding: 12px; }
.video-canvas { max-width: 100%; max-height: 46vh; border-radius: 8px; box-shadow: var(--shadow); background: #f8f3e8; }
.video-result { display: grid; gap: 10px; }
.video-out { width: 100%; max-height: 50vh; border-radius: 10px; background: #000; }

/* ---------- 验证页 ---------- */
.dropzone {
  display: grid; place-items: center; text-align: center; gap: 4px; padding: 44px 20px;
  border: 2px dashed var(--line); border-radius: 18px; background: var(--card); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
.dz-icon { font-size: 34px; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.dz-title { font-weight: 600; font-size: 17px; margin: 0; }
.report { padding-bottom: 40px; }

/* ---------- 小屏 ---------- */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .topbar { padding-left: 14px; padding-right: 10px; }
  .brand span { font-size: 18px; }
  .hero { padding: 36px 0 24px; }
  .lead { font-size: 16px; }
  .editor-bar { flex-wrap: wrap; row-gap: 4px; }
  .title-input { order: 1; flex-basis: calc(100% - 46px); font-size: 17px; }
  .icon-btn { order: 0; }
  .editor-status { order: 2; flex: 1; }
  .editor-actions { order: 3; }
  .hide-sm { display: none; }
  .paper { padding: 22px 18px 45vh; }
  .editor-foot .save-state { display: none; }
  .stats { grid-template-columns: 1fr; gap: 2px 0; }
  .stats dd { margin-bottom: 8px; }
  .player-controls { flex-wrap: wrap; }
  .range-wrap { flex-basis: 100%; order: 3; }
  .card { padding: 16px; }
}
