/* 工作台：顶栏、步骤条、各步骤页面、预览窗格、浮层。设计变量和按钮、标签见 site.css。 */
body.app { min-height: 100vh; display: flex; flex-direction: column; }
:root { --hdr: 60px; --stp: 64px; }

/* ---------------- 顶栏 ---------------- */
.app-header {
  position: sticky; top: 0; z-index: 40; height: var(--hdr); display: flex; align-items: center; gap: 14px; padding: 0 22px;
  background: rgba(247, 244, 237, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.app-header .brand { font-size: 15.5px; }
.app-header .brand-mark { width: 28px; height: 28px; }
.doc-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-700); max-width: 420px;
}
.doc-pill .icon { width: 17px; height: 17px; color: var(--accent); }
.doc-pill b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-pill span { color: var(--ink-400); white-space: nowrap; }
.spacer { flex: 1; }
.engine-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-500); white-space: nowrap;
}
.engine-pill .dot { color: var(--amber); animation: blink 1.2s ease-in-out infinite; }
.engine-pill.ready .dot { color: var(--green); animation: none; }
.engine-pill.error { color: var(--red); border-color: rgba(184, 50, 39, .35); cursor: pointer; }
.engine-pill.error .dot { color: var(--red); animation: none; }
.engine-pill i { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 1%); background: var(--amber); transition: width .4s var(--ease); }
.engine-pill.ready i { display: none; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------------- 步骤条 ---------------- */
.stepper {
  position: sticky; top: var(--hdr); z-index: 39; height: var(--stp); display: flex; align-items: center; justify-content: center; gap: 2px;
  padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }
.step {
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px 0 7px; border-radius: 999px; border: 0; background: transparent;
  cursor: pointer; color: var(--ink-400); white-space: nowrap; transition: background .15s, color .15s;
}
.step:hover:not(:disabled) { background: rgba(17, 26, 46, .05); color: var(--ink-800); }
.step:disabled { cursor: default; }
.step .n {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--line-strong); font-weight: 700; font-size: 13px; background: var(--surface);
}
.step .n .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.step b { font-size: 14px; font-weight: 600; }
.step small { display: block; font-size: 11.5px; color: var(--ink-400); line-height: 1.2; }
.step span:last-child { line-height: 1.25; text-align: left; }
.step.done { color: var(--ink-700); }
.step.done .n { background: var(--teal); border-color: var(--teal); color: #fff; }
.step.current { background: var(--ink-900); color: #fff; }
.step.current small { color: #aeb6c6; }
.step.current .n { background: #fff; border-color: #fff; color: var(--ink-900); }
.step .lock { width: 14px; height: 14px; margin-left: -2px; opacity: .7; }
.step-sep { width: 22px; height: 1.5px; background: var(--line-strong); flex: none; }
.step-sep.done { background: var(--teal); }

/* ---------------- 布局 ---------------- */
.workspace { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
#view { padding: 34px 32px 120px; width: 100%; max-width: 1200px; margin: 0 auto; min-width: 0; }
.preview { display: none; }
body[data-split] .workspace { grid-template-columns: minmax(400px, 540px) minmax(0, 1fr); }
body[data-split] #view {
  max-width: none; margin: 0; padding: 26px 26px 0; height: calc(100vh - var(--hdr) - var(--stp)); overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column;
}
body[data-split] .preview {
  display: flex; flex-direction: column; position: sticky; top: calc(var(--hdr) + var(--stp)); height: calc(100vh - var(--hdr) - var(--stp)); min-width: 0;
}

/* ---------------- 通用块 ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--font-serif); font-weight: 900; font-size: 30px; line-height: 1.25; margin: 6px 0 6px; color: var(--ink-900); }
.page-head p { margin: 0; color: var(--ink-500); max-width: 46em; }
body[data-split] .page-head h1 { font-size: 24px; }
body[data-split] .page-head { margin-bottom: 18px; }
body[data-split] #view > * { flex-shrink: 0; }
.kicker-sm { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-h h3 { margin: 0; font-size: 15.5px; color: var(--ink-900); display: flex; align-items: center; gap: 8px; }
.panel-b { padding: 18px 20px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; font-size: 15px; font-weight: 700; color: var(--ink-900); }
.section-title:first-child { margin-top: 0; }
.section-title .count { font-weight: 600; color: var(--ink-400); font-size: 13px; }
.section-title .line { flex: 1; height: 1px; background: var(--line); }
.empty { padding: 28px; text-align: center; color: var(--ink-400); font-size: 14px; }
.hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; background: var(--slate-soft); color: var(--ink-700); }
.hint .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--slate); }
.hint.warn { background: var(--amber-soft); } .hint.warn .icon { color: var(--amber); }
.hint.ok { background: var(--green-soft); } .hint.ok .icon { color: var(--green); }
.hint.err { background: var(--red-soft); } .hint.err .icon { color: var(--red); }
.hint b { color: var(--ink-900); }
.link { color: var(--accent-700); font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; }
.kbd { font-family: var(--font-mono); font-size: 12px; padding: 1px 6px; border-radius: 5px; background: var(--paper-2); border: 1px solid var(--line); }

/* 底部操作条 */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; pointer-events: none; padding: 0 20px 20px;
}
.actionbar-in {
  pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-radius: 999px;
  background: var(--ink-900); color: #c9cfdb; box-shadow: var(--shadow-lg); font-size: 14px; max-width: 100%;
}
.actionbar-in b { color: #fff; }
.actionbar .btn { height: 42px; }
.actionbar .btn-ghost { --fg: #c9cfdb; }
.actionbar .btn-ghost:hover { --bg: rgba(255, 255, 255, .08); --fg: #fff; }
body[data-split] .actionbar { position: sticky; bottom: 0; padding: 14px 0 18px; margin-top: auto; background: linear-gradient(to top, var(--surface) 70%, transparent); }
body[data-split] .actionbar-in { width: 100%; border-radius: 16px; justify-content: space-between; }

/* ---------------- 开始页 ---------------- */
.start { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.start h1 { font-family: var(--font-serif); font-weight: 900; font-size: 34px; margin: 8px 0 8px; color: var(--ink-900); line-height: 1.25; }
.start .sub { color: var(--ink-500); margin: 0 0 24px; }
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  min-height: 300px; padding: 40px 24px; border-radius: 20px; cursor: pointer;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    repeating-linear-gradient(45deg, var(--line-strong) 0 10px, transparent 10px 18px) border-box;
  border: 2px dashed transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.drop { border: 2px dashed var(--line-strong); background: var(--surface); }
.drop:hover, .drop.over { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.drop.over { transform: scale(1.01); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.drop-ico .icon { width: 34px; height: 34px; stroke-width: 1.6; }
.drop h2 { margin: 0; font-size: 21px; color: var(--ink-900); }
.drop p { margin: 0; color: var(--ink-500); font-size: 14px; }
.drop .btn { margin-top: 10px; pointer-events: none; }
.samples { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--ink-500); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.trust div { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-500); }
.trust b { display: block; color: var(--ink-900); font-size: 14px; }
.trust .icon { color: var(--teal); margin-top: 2px; }
.tpl-pick { display: flex; flex-direction: column; gap: 10px; }
.tpl-opt {
  position: relative; display: block; padding: 14px 16px 14px 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.tpl-opt:hover { border-color: var(--line-strong); }
.tpl-opt input { position: absolute; opacity: 0; }
.tpl-opt::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff;
}
.tpl-opt:has(input:checked) { border-color: var(--ink-900); box-shadow: 0 0 0 3px rgba(17, 26, 46, .08); }
.tpl-opt:has(input:checked)::before { border: 5.5px solid var(--ink-900); }
.tpl-opt:has(input:focus-visible) { outline: 3px solid rgba(200, 69, 47, .35); outline-offset: 2px; }
.tpl-opt b { font-size: 14.5px; color: var(--ink-900); }
.tpl-opt .chip { height: 20px; font-size: 11px; margin-left: 6px; vertical-align: 1px; }
.tpl-opt small { display: block; color: var(--ink-500); font-size: 12.5px; margin-top: 3px; line-height: 1.5; }
.tpl-more { font-size: 13px; }
.engine-card { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--paper-2); font-size: 13px; color: var(--ink-500); display: flex; gap: 12px; align-items: center; }
.engine-card .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(17, 26, 46, .08); overflow: hidden; }
.engine-card .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: var(--teal); transition: width .4s var(--ease); }
.restore-note { margin-bottom: 18px; }

/* ---------------- 体检 ---------------- */
.verdict { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.tile {
  position: relative; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; text-align: left; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile.on { border-color: var(--ink-900); box-shadow: 0 0 0 3px rgba(17, 26, 46, .08); }
.tile b { display: block; font-family: var(--font-serif); font-size: 34px; font-weight: 900; line-height: 1.1; color: var(--ink-900); }
.tile span { font-size: 13.5px; color: var(--ink-500); }
.tile .chip { position: absolute; top: 16px; right: 16px; }
.tile-a { border-top: 3px solid var(--teal); } .tile-b { border-top: 3px solid var(--amber); } .tile-c { border-top: 3px solid var(--slate); } .tile-f { border-top: 3px solid var(--ink-900); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.aside-stack { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--hdr) + var(--stp) + 20px); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filter { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; cursor: pointer; color: var(--ink-700); }
.filter.on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.filter span { color: var(--ink-400); margin-left: 4px; }
.filter.on span { color: #aeb6c6; }

.issue { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; border-left: 4px solid var(--line-strong); }
.issue.k-A { border-left-color: var(--teal); } .issue.k-B { border-left-color: var(--amber); } .issue.k-C { border-left-color: var(--slate); }
.issue-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.issue-h h4 { margin: 0; font-size: 15.5px; color: var(--ink-900); flex: 1 1 260px; min-width: 0; }
.issue-h .chip { height: 22px; font-size: 11.5px; }
.issue .loc { font-size: 13px; color: var(--ink-400); margin: 4px 0 0; }
.ae { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ae div { padding: 10px 12px; border-radius: 9px; background: var(--paper); font-size: 13.5px; min-width: 0; }
.ae label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-400); margin-bottom: 2px; }
.ae p { margin: 0; word-break: break-word; color: var(--ink-700); }
.ae .exp { background: var(--teal-soft); }
.issue-f { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--ink-500); }
.issue-f b { color: var(--ink-700); font-weight: 600; }

.chg { border-top: 1px solid var(--line); }
.chg:first-child { border-top: 0; }
.chg summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 20px; cursor: pointer; font-size: 14px; }
.chg summary::-webkit-details-marker { display: none; }
.chg summary .icon { width: 15px; height: 15px; color: var(--ink-400); transition: transform .2s; }
.chg[open] summary .icon { transform: rotate(90deg); }
.chg summary b { font-weight: 600; color: var(--ink-800); flex: 1; }
.chg summary span { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-500); }
.chg-list { padding: 0 20px 14px; font-size: 12.5px; max-height: 320px; overflow: auto; }
.chg-row { padding: 7px 0; border-top: 1px dashed var(--line); }
.chg-row .t { color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chg-row .v { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.chg-row .v s { color: var(--red); text-decoration-color: rgba(184, 50, 39, .5); }
.chg-row .v em { font-style: normal; color: var(--green); }
.chg-row .p { font-weight: 600; color: var(--ink-700); }
.facts-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13.5px; margin: 0; }
.facts-list dt { color: var(--ink-400); }
.facts-list dd { margin: 0; color: var(--ink-800); }

/* ---------------- 大纲 ---------------- */
.ol { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ol-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 92px; gap: 16px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); }
.ol-row:first-child { border-top: 0; }
.ol-row.pending { background: linear-gradient(90deg, var(--amber-soft), rgba(251, 240, 220, .35)); }
.ol-row.edited { background: linear-gradient(90deg, var(--accent-soft), rgba(251, 236, 230, .3)); }
.ol-text { display: flex; align-items: baseline; gap: 10px; min-width: 0; padding-left: calc(var(--lv, 0) * 22px); }
.ol-text .mark { flex: none; font-size: 11px; font-weight: 700; color: var(--ink-400); width: 26px; font-family: var(--font-mono); }
.ol-text .txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-800); }
.ol-row[data-lv="1"] .txt { font-weight: 700; font-family: var(--font-serif); font-size: 15.5px; color: var(--ink-900); }
.ol-row[data-lv="2"] .txt { font-weight: 600; }
.ol-row[data-lv="0"] .txt { font-weight: 600; color: var(--ink-700); }
.ol-text .num { color: var(--accent-700); font-weight: 700; margin-right: 2px; }
.ol-why { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; margin-top: -4px; padding-left: calc(var(--lv, 0) * 22px + 36px); font-size: 12.5px; color: var(--amber); }
.ol-why .icon { width: 15px; height: 15px; }
.sel {
  appearance: none; -webkit-appearance: none; width: 100%; height: 34px; padding: 0 30px 0 12px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23808a9c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center/15px;
  font-size: 13.5px; cursor: pointer;
}
.sel:focus { outline: none; border-color: var(--ink-700); box-shadow: 0 0 0 3px rgba(17, 26, 46, .08); }
.pending .sel { border-color: var(--amber); }
.conf { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-size: 12px; color: var(--ink-400); }
.conf .bars { display: flex; gap: 2px; }
.conf .bars i { width: 5px; height: 13px; border-radius: 2px; background: var(--line); }
.conf .bars i.on { background: var(--teal); }
.pending .conf .bars i.on { background: var(--amber); }
.ol-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-500); margin: 10px 2px 0; }
.ol-legend span { display: inline-flex; gap: 6px; align-items: center; }
.ol-legend i { width: 12px; height: 12px; border-radius: 3px; }

/* ---------------- 修复预览 ---------------- */
.fix { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.fix-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: flex-start; padding: 13px 14px; }
.fix-h h4 { margin: 0; font-size: 14.5px; color: var(--ink-900); line-height: 1.45; }
.fix-h .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; align-items: center; font-size: 12.5px; color: var(--ink-400); }
.fix-h .meta .chip { height: 20px; font-size: 11px; padding: 0 7px; }
.fix-toggle { border: 0; background: none; color: var(--ink-400); cursor: pointer; padding: 2px; border-radius: 6px; }
.fix-toggle:hover { color: var(--ink-900); background: rgba(17, 26, 46, .05); }
.fix-toggle .icon { transition: transform .2s; }
.fix.open .fix-toggle .icon { transform: rotate(180deg); }
.fix-body { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.fix.open .fix-body { display: block; }
.occ { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-top: 1px dashed var(--line); font-size: 13px; }
.occ:first-child { border-top: 0; }
.occ .where { font-size: 12px; color: var(--ink-400); margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diff { line-height: 1.75; word-break: break-all; color: var(--ink-700); }
.diff del { background: #fbd9d3; color: #8f2318; text-decoration: line-through; text-decoration-color: rgba(143, 35, 24, .55); border-radius: 3px; padding: 0 1px; }
.diff ins { background: #cfeedd; color: #1d5e39; text-decoration: none; border-radius: 3px; padding: 0 1px; }
.diff .ws { opacity: .75; font-family: var(--font-mono); font-size: .9em; }
.diff .gap { color: var(--ink-300); padding: 0 3px; }
.fix-ae { padding: 12px 14px; font-size: 13px; }
.fix-ae .row { display: grid; grid-template-columns: 38px 1fr; gap: 6px; margin: 3px 0; }
.fix-ae .row label { color: var(--ink-400); font-size: 12px; }
.fix-note { padding: 0 14px 12px; font-size: 12.5px; color: var(--ink-500); }
.fix.locked .fix-h { opacity: .92; }
.fix-mini { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.fix-mini:first-child { border-top: 0; }
.fix-mini .chip { height: 21px; font-size: 11px; }
.fix-mini span.t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-700); }
.fix-mini .icon { width: 16px; height: 16px; color: var(--ink-400); }

/* 复选框（含半选） */
.cb { position: relative; width: 20px; height: 20px; flex: none; margin-top: 1px; }
.cb input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cb i { position: absolute; inset: 0; border-radius: 6px; border: 1.5px solid var(--line-strong); background: #fff; transition: background .15s, border-color .15s; pointer-events: none; }
.cb input:checked + i, .cb input:indeterminate + i { background: var(--ink-900); border-color: var(--ink-900); }
.cb input:checked + i::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cb input:indeterminate + i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; height: 2px; background: #fff; border-radius: 1px; }
.cb input:focus-visible + i { outline: 3px solid rgba(200, 69, 47, .35); outline-offset: 2px; }
.cb input:disabled { cursor: not-allowed; }
.cb input:disabled + i { background: var(--paper-2); border-color: var(--line); }
.lockbox { width: 20px; height: 20px; display: grid; place-items: center; color: var(--teal); flex: none; }
.lockbox .icon { width: 16px; height: 16px; }
.sel-summary { display: flex; flex-direction: column; line-height: 1.35; }
.sel-summary small { color: #8f98aa; font-size: 12px; }
.dirty-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f4a493; margin-right: 6px; vertical-align: 1px; }

/* ---------------- 预览窗格 ---------------- */
.pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--paper); flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; color: var(--ink-500); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink-900); font-weight: 600; box-shadow: var(--shadow-sm); }
.seg button:disabled { opacity: .4; cursor: default; }
.pv-zoom { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--ink-500); }
.pv-zoom button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; color: var(--ink-500); display: grid; place-items: center; }
.pv-zoom button:hover { background: rgba(17, 26, 46, .06); color: var(--ink-900); }
.pv-zoom .icon { width: 17px; height: 17px; }
.pv-zoom span { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
.pv-body { flex: 1; display: flex; min-height: 0; background: #e9e6df; }
.pv-pane { flex: 1; min-width: 0; overflow: auto; position: relative; display: none; }
.pv-pane.show { display: block; }
.pv-pane + .pv-pane.show { border-left: 1px solid var(--line-strong); }
.pv-label { position: sticky; top: 0; z-index: 2; display: none; padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--ink-500); background: rgba(233, 230, 223, .92); backdrop-filter: blur(6px); }
.pv-body.split .pv-label { display: block; }
.pv-doc { padding: 22px 0 40px; }
.pv-doc > div > div[class$="-wrapper"] { background: transparent !important; padding: 0 !important; display: flex; flex-direction: column; align-items: center; zoom: var(--zoom, 1); }
.pv-doc section[class] { box-shadow: 0 1px 3px rgba(17, 26, 46, .12), 0 8px 24px -10px rgba(17, 26, 46, .22) !important; margin-bottom: 22px !important; }
.pv-state { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--ink-400); font-size: 14px; padding: 30px; }
.pv-state .spin { margin: 0 auto 12px; }
.pv-note { padding: 8px 16px; font-size: 12px; color: var(--ink-400); border-top: 1px solid var(--line); background: var(--paper); display: flex; gap: 8px; align-items: center; }
.pv-note .icon { width: 15px; height: 15px; }

/* ---------------- 排版与复检 ---------------- */
.result-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 22px; border-radius: 18px; margin-bottom: 22px;
  background: radial-gradient(120% 140% at 0% 0%, #23314f 0%, var(--ink-900) 60%); color: #c9cfdb;
}
.result-hero .big { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(111, 208, 191, .16); color: #6fd0bf; }
.result-hero .big.warn { background: rgba(244, 164, 147, .16); color: #f4a493; }
.result-hero .big .icon { width: 32px; height: 32px; }
.result-hero h2 { margin: 0 0 4px; color: #fff; font-family: var(--font-serif); font-size: 22px; }
.result-hero p { margin: 0; font-size: 13.5px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; grid-column: 1 / -1; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .08); color: #e8ebf2; }
.pill .dot { width: 8px; height: 8px; }
.pill.PASS .dot { color: #6fd0bf; } .pill.FAIL .dot { color: #f08b78; } .pill.REVIEW .dot { color: #f2c46d; } .pill.NOT_CHECKED .dot { color: #aab1be; }
.stable { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 13.5px; margin-bottom: 18px; }
.stable.no { background: var(--amber-soft); color: var(--amber); }
.stable b { color: var(--ink-900); }
.checks { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.check:first-child { border-top: 0; }
.check .st { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.check .st .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.check.PASS .st { background: var(--green-soft); color: var(--green); }
.check.FAIL .st { background: var(--red-soft); color: var(--red); }
.check.REVIEW .st { background: var(--amber-soft); color: var(--amber); }
.check.NOT_CHECKED .st { background: var(--slate-soft); color: var(--slate); }
.check b { color: var(--ink-900); font-weight: 600; }
.check p { margin: 2px 0 0; color: var(--ink-500); font-size: 12.5px; }
.check .code { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-400); margin-left: 6px; }
.check-more { display: block; width: 100%; padding: 10px; border: 0; border-top: 1px solid var(--line); background: var(--paper); font-size: 13px; color: var(--ink-500); cursor: pointer; }
.check-more:hover { color: var(--ink-900); }

/* ---------------- 导出 ---------------- */
.export { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.file-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.file-row:first-child { border-top: 0; }
.file-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-700); }
.file-ico.docx { background: #e3ebf8; color: #2b579a; }
.file-ico.rev { background: var(--amber-soft); color: var(--amber); }
.file-ico.html { background: var(--teal-soft); color: var(--teal); }
.file-ico.csv { background: var(--green-soft); color: var(--green); }
.file-row b { display: block; color: var(--ink-900); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row small { color: var(--ink-500); font-size: 12.5px; }
.file-row .btn .icon { width: 16px; height: 16px; }
.lic { position: sticky; top: calc(var(--hdr) + var(--stp) + 20px); }
.lic-step { padding: 18px 20px; border-top: 1px solid var(--line); }
.lic-step:first-of-type { border-top: 0; }
.lic-step h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14.5px; color: var(--ink-900); }
.lic-step h4 .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-900); color: #fff; font-size: 12px; }
.radio-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.radio:has(input:checked) { border-color: var(--ink-900); background: var(--paper); }
.radio input { margin: 3px 0 0; accent-color: var(--ink-900); }
.field { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; font-size: 14px; }
.field:focus { outline: none; border-color: var(--ink-700); box-shadow: 0 0 0 3px rgba(17, 26, 46, .08); }
.field.code { font-family: var(--font-mono); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; height: 48px; text-align: center; }
.field.ok { border-color: var(--green); }
.field.bad { border-color: var(--red); }
.fmsg { min-height: 20px; margin-top: 6px; font-size: 12.5px; color: var(--ink-500); display: flex; gap: 6px; align-items: center; }
.fmsg.ok { color: var(--green); } .fmsg.bad { color: var(--red); }
.fmsg .icon { width: 15px; height: 15px; }
.fp { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-400); word-break: break-all; }
.licensed { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.licensed .seal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; box-shadow: 0 0 0 5px var(--accent-soft); }
.licensed .seal .icon { width: 26px; height: 26px; }
.licensed b { color: var(--ink-900); display: block; font-size: 15px; }
.licensed p { margin: 4px 0 0; font-size: 13px; color: var(--ink-500); word-break: break-all; }
.dev { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--amber); background: rgba(251, 240, 220, .45); font-size: 12.5px; color: var(--ink-700); }
.dev b { color: var(--amber); }
.dev .row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---------------- 浮层与提示 ---------------- */
.overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(17, 26, 46, .38); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s ease; }
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.busy { width: min(420px, calc(100% - 40px)); padding: 28px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); text-align: center; }
.busy h3 { margin: 16px 0 4px; font-size: 18px; color: var(--ink-900); }
.busy p { margin: 0; font-size: 13.5px; color: var(--ink-500); min-height: 1.6em; }
.busy .bar { height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; margin-top: 18px; }
.busy .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: linear-gradient(90deg, var(--teal), #2b8f84); transition: width .25s var(--ease); }
.busy ol { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.busy ol li { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-400); }
.busy ol li.done { background: var(--teal-soft); color: var(--teal); }
.busy ol li.now { background: var(--ink-900); color: #fff; }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--paper-2); border-top-color: var(--accent); animation: spin .9s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toasts { position: fixed; right: 20px; top: calc(var(--hdr) + 12px); z-index: 90; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100% - 40px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); font-size: 13.5px; animation: slide .3s var(--ease);
}
.toast .icon { width: 19px; height: 19px; margin-top: 1px; }
.toast.err .icon { color: var(--red); } .toast.ok .icon { color: var(--green); } .toast.info .icon { color: var(--slate); }
.toast b { display: block; color: var(--ink-900); }
.toast p { margin: 2px 0 0; color: var(--ink-500); word-break: break-word; }
@keyframes slide { from { opacity: 0; transform: translateY(-8px); } }

/* ---------------- 窄屏 ---------------- */
@media (max-width: 1180px) {
  .cols, .export { grid-template-columns: 1fr; }
  .aside-stack, .lic { position: static; }
  .verdict { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  body[data-split] .workspace { grid-template-columns: 1fr; }
  body[data-split] #view { height: auto; overflow: visible; border-right: 0; }
  body[data-split] .preview { position: static; height: 82vh; border-top: 1px solid var(--line); }
  body[data-split] .actionbar { position: fixed; padding: 0 12px 12px; background: none; }
  .start { grid-template-columns: 1fr; }
  .step small { display: none; }
}
@media (max-width: 720px) {
  :root { --stp: 56px; }
  #view { padding: 22px 16px 120px; }
  .app-header { padding: 0 14px; gap: 10px; }
  .app-header .brand span.full, .doc-pill { display: none; }
  .step b { display: none; }
  .step { padding: 0 6px; }
  .step.current b { display: inline; }
  .step-sep { width: 10px; }
  .ae, .trust { grid-template-columns: 1fr; }
  .ol-row { grid-template-columns: minmax(0, 1fr) 150px; }
  .ol-row .conf { display: none; }
  .page-head h1, .start h1 { font-size: 25px; }
  .actionbar-in { border-radius: 16px; padding: 10px 10px 10px 14px; gap: 10px; font-size: 13px; }
}

/* 补充 */
.doc-pill[hidden], .stepper[hidden], .pv-state[hidden] { display: none; }
.pv-body { position: relative; }
.pv-state { background: #e9e6df; z-index: 3; }
.pv-flash { animation: flash 2.2s ease; border-radius: 2px; }
@keyframes flash { 0%, 35% { background: rgba(242, 196, 109, .55); box-shadow: 0 0 0 4px rgba(242, 196, 109, .55); } 100% { background: transparent; box-shadow: none; } }
.head-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.head-tools .sel { width: 240px; height: 36px; }
.ab-left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ab-left .icon { width: 17px; height: 17px; color: #6fd0bf; }
.ab-btns { display: inline-flex; gap: 8px; flex: none; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.export .stack { margin-bottom: 0; }
.tile { font: inherit; width: 100%; }
.tile .chip { font-size: 11.5px; height: 22px; }
.ol-row[data-role="body"] .txt { font-weight: 400; font-family: var(--font-sans); font-size: 14px; color: var(--ink-700); }
.num-demo { color: var(--accent-700); font-weight: 700; font-family: var(--font-mono); font-size: 12px; }
.ol-legend > span { display: inline-flex; gap: 6px; align-items: center; }
.sel-links { display: inline-flex; gap: 12px; font-size: 13px; }
.sel-n { color: var(--ink-500); font-weight: 600; }
.where { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.where > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.where .link, .lic-terms .link { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; flex: none; }
.where .link .icon { width: 14px; height: 14px; }
.fix-ae .diff { padding: 5px 0; border-top: 1px dashed var(--line); }
.fix-ae .diff:first-child { border-top: 0; }
.loc-s { font-size: 12px; color: var(--ink-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.check-group h5 { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 13px; color: var(--ink-500); font-weight: 700; }
.check-group:first-of-type h5 { margin-top: 0; }
.file-btns { display: inline-flex; gap: 8px; align-items: center; }
.file-btns .chip { height: 22px; font-size: 11.5px; }
.btn-block { width: 100%; margin-top: 8px; }
.lic-terms { font-size: 12.5px; color: var(--ink-500); margin: 12px 0 0; line-height: 1.6; }
.lic-terms .link { font-size: 12.5px; }
.spin-sm { width: 16px; height: 16px; border-width: 2px; margin: 0; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; display: inline-block; }
.failed { max-width: 640px; margin: 40px auto; text-align: center; padding: 44px 32px; }
.failed > .icon { width: 44px; height: 44px; color: var(--red); margin: 0 auto 10px; }
.failed h1 { font-family: var(--font-serif); margin: 0 0 8px; font-size: 26px; color: var(--ink-900); }
.failed p { color: var(--ink-500); margin: 0 0 20px; }
#pv-status { display: inline-flex; align-items: center; gap: 4px; }
#pv-status .icon { width: 13px; height: 13px; color: #6fd0bf; }
.pv-state > div { max-width: 320px; }
.pv-state .icon { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--amber); }
.pv-state p { margin: 0 0 12px; }
@media (max-width: 720px) {
  .head-tools .sel { width: 100%; }
  .loc-s { display: none; }
}

/* ---------------- 我的模板、页眉设置、上传格式要求 ---------------- */
.tpl-opt.mine { padding-right: 46px; }
.tpl-del { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--ink-400); display: grid; place-items: center; cursor: pointer; }
.tpl-del:hover { background: var(--red-soft); color: var(--red); }
.tpl-del .icon { width: 15px; height: 15px; }
.tpl-upload {
  width: 100%; margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1.5px dashed var(--line-strong); background: var(--paper); transition: border-color .15s, background .15s;
}
.tpl-upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.tpl-upload:focus-visible { outline: 3px solid rgba(200, 69, 47, .35); outline-offset: 2px; }
.tpl-upload > .icon:first-child { width: 20px; height: 20px; color: var(--accent); flex: none; }
.tpl-upload > .icon:last-child { width: 16px; height: 16px; color: var(--ink-400); flex: none; margin-left: auto; }
.tpl-upload b { display: block; font-size: 14px; color: var(--ink-900); }
.tpl-upload small { display: block; font-size: 12.5px; color: var(--ink-500); margin-top: 2px; line-height: 1.5; }

.panel-h .link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.panel-h .link .icon { width: 14px; height: 14px; }
.hdr-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 14px; margin: 0; font-size: 13.5px; }
.hdr-list dt { color: var(--ink-400); }
.hdr-list dd { margin: 0; color: var(--ink-900); font-family: var(--font-serif); word-break: break-all; }
.hdr-none { margin: 0; font-size: 13.5px; }
.panel-b .hdr-tip, .panel-b .hint { margin-top: 12px; }
.tok { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-700); font-family: var(--font-sans); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.hdr-form { display: flex; flex-direction: column; gap: 12px; }
.hdr-form .hdr-tip { margin-top: 0; }
.hdr-f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink-500); font-weight: 600; min-width: 0; }
.hdr-f .field { height: 38px; font-weight: 400; color: var(--ink-900); }
.hdr-f small { font-weight: 400; color: var(--ink-400); font-size: 12px; }
#hdr-fields { display: flex; flex-direction: column; gap: 12px; }
.check-line { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--ink-700); cursor: pointer; }
.check-line input { margin: 3px 0 0; accent-color: var(--ink-900); flex: none; }
.check-line small { display: block; color: var(--ink-400); font-size: 12px; }
.hdr-tip { margin: 0; font-size: 12px; color: var(--ink-400); line-height: 1.7; }
.hdr-tip code { font-family: var(--font-mono); font-size: 11.5px; padding: 0 4px; border-radius: 4px; background: var(--paper-2); color: var(--ink-700); }
.hdr-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hdr-reset { margin-left: auto; font-size: 12.5px; }

body.modal-open { overflow: hidden; }
.modal-wrap { z-index: 70; padding: 24px 16px; }
.modal { position: relative; width: min(780px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; outline: none; }
.modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.modal-h h2 { margin: 4px 0 0; font-family: var(--font-serif); font-weight: 900; font-size: 22px; color: var(--ink-900); line-height: 1.3; word-break: break-all; }
.modal-x { width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; color: var(--ink-500); display: grid; place-items: center; cursor: pointer; flex: none; }
.modal-x:hover { background: var(--paper-2); color: var(--ink-900); }
.modal-x .icon { width: 18px; height: 18px; }
.modal-b { padding: 20px 24px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-f { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--paper); }
.modal-f .muted { margin-right: auto; font-size: 12.5px; }
.modal-f .btn .icon { width: 17px; height: 17px; }
.spec-busy { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(255, 255, 255, .86); text-align: center; font-size: 14px; color: var(--ink-700); animation: fade .2s ease; }
.spec-busy p { margin: 0; max-width: 300px; }
.drop-sm { min-height: 0; padding: 30px 24px; gap: 8px; }
.drop-sm h3 { margin: 0; font-size: 17px; color: var(--ink-900); }
.drop-sm .drop-ico { width: 56px; height: 56px; border-radius: 18px; }
.drop-sm .drop-ico .icon { width: 26px; height: 26px; }
.spec-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; padding: 4px 2px; }
.spec-tips div { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-500); line-height: 1.55; }
.spec-tips .icon { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }
.spec-tips b { display: block; color: var(--ink-900); font-size: 13.5px; }
.spec-foot { margin: 0; font-size: 12px; color: var(--ink-400); }
.spec-src { display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; }
.spec-src > .icon { width: 18px; height: 18px; color: var(--accent); flex: none; }
.spec-src b { color: var(--ink-900); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spec-src .chip { height: 22px; font-size: 11.5px; flex: none; }
.spec-src .link { margin-left: auto; font-size: 13px; flex: none; }
.spec-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.spec-stats div { padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.spec-stats b { display: block; font-size: 22px; font-weight: 800; color: var(--ink-900); line-height: 1.2; }
.spec-stats span { font-size: 12px; color: var(--ink-500); }
.spec-stats .warn { background: var(--amber-soft); border-color: transparent; }
.spec-stats .warn b { color: var(--amber); }
.spec-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spec-form .sel { height: 38px; font-weight: 400; color: var(--ink-900); }
.spec-h { display: flex; align-items: center; gap: 8px; margin: 6px 0 -4px; font-size: 14px; color: var(--ink-900); flex-wrap: wrap; }
.spec-h .icon { width: 16px; height: 16px; color: var(--ink-500); }
.spec-h small { font-weight: 400; color: var(--ink-400); font-size: 12px; }
.spec-conf { margin: 0; padding: 10px 14px 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.spec-conf.open { border-color: var(--amber); background: rgba(251, 240, 220, .35); }
.spec-conf legend { padding: 0 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-900); }
.spec-conf legend small { font-weight: 400; color: var(--ink-400); margin-left: 8px; font-size: 12px; }
.spec-conf .radio { margin: 0; background: var(--surface); }
.spec-conf .radio span { min-width: 0; }
.spec-conf .radio small { display: block; color: var(--ink-500); font-size: 12px; margin-top: 2px; word-break: break-all; }
.spec-inf { padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.spec-sum { padding: 0 2px; }
.spec-more { border: 1px solid var(--line); border-radius: 12px; }
.spec-more summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.spec-more summary::-webkit-details-marker { display: none; }
.spec-more summary .icon { width: 15px; height: 15px; color: var(--ink-400); transition: transform .15s; }
.spec-more[open] summary .icon { transform: rotate(90deg); }
.spec-more summary span { color: var(--ink-400); font-weight: 600; margin-left: 2px; }
.spec-table { max-height: 320px; overflow: auto; border-top: 1px solid var(--line); }
.spec-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th { position: sticky; top: 0; background: var(--paper); text-align: left; font-weight: 600; color: var(--ink-500); font-size: 12px; padding: 7px 14px; }
.spec-table td { padding: 7px 14px; border-top: 1px solid var(--line); color: var(--ink-700); vertical-align: top; }
.spec-table td:first-child { color: var(--ink-500); white-space: nowrap; }
.spec-table td:last-child { color: var(--ink-400); white-space: nowrap; font-size: 12px; }
.spec-table td b { color: var(--ink-900); font-weight: 600; }
.spec-table .chip { height: 18px; font-size: 10.5px; padding: 0 6px; }
.spec-unrec { list-style: none; margin: 0; padding: 0 14px 12px; display: flex; flex-direction: column; font-size: 12.5px; color: var(--ink-700); border-top: 1px solid var(--line); }
.spec-unrec li { padding-top: 9px; }
.spec-unrec span { color: var(--ink-400); margin-right: 8px; }
.spec-unrec small { display: block; color: var(--ink-400); }
@media (max-width: 720px) {
  .spec-tips, .spec-form { grid-template-columns: 1fr; }
  .spec-stats { grid-template-columns: 1fr 1fr; }
  .modal-wrap { padding: 0; place-items: end center; }
  .modal { max-height: 92vh; border-radius: 20px 20px 0 0; }
  .modal-h, .modal-b, .modal-f { padding-left: 16px; padding-right: 16px; }
}
