/* css/app.css：评审站样式。中性底色、正文 14px、长文 1.75 行高；状态色只用在徽标与圆点上。 */
:root {
  --bg: #f6f6f3; --paper: #fff; --ink: #1d1f22; --ink2: #4a4f57; --ink3: #80868f; --line: #e3e3dd; --line2: #eeeee9;
  --acc: #1f6f78; --acc-bg: #e6f2f2;
  --ok: #2e7d4f; --ok-bg: #e7f4ec; --warn: #9a6400; --warn-bg: #fbf1dc; --new: #3b5bdb; --new-bg: #e8edfd; --bad: #b4352d; --bad-bg: #fbe9e7; --mute: #6b7079; --mute-bg: #efefeb;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --top: 52px; --side: 288px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.7 var(--sans); }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .92em; }
:not(pre) > code { background: var(--line2); padding: 1px 5px; border-radius: 4px; color: #2b3138; }
.mute { color: var(--ink3); }

/* 顶栏 */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 18px; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 10; }
.brand { font-weight: 650; color: var(--ink); font-size: 15px; white-space: nowrap; }
.src { color: var(--ink3); font-size: 12px; white-space: nowrap; }
.search { flex: 1; max-width: 460px; margin-left: auto; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; background: var(--bg); }
.search:focus { outline: 2px solid var(--acc-bg); border-color: var(--acc); background: #fff; }
.progress { color: var(--ink2); font-size: 13px; white-space: nowrap; }
.progress .qn { color: var(--warn); }
.btn { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--acc); background: var(--acc); color: #fff; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--ink2); border-color: var(--line); }
.btn:hover { filter: brightness(1.06); }

/* 布局 */
.shell { display: flex; padding-top: var(--top); }
.side { position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--side); overflow-y: auto; padding: 14px 10px 40px; border-right: 1px solid var(--line); background: #fbfbf9; }
.main { margin-left: var(--side); flex: 1; min-width: 0; padding: 28px 40px 80px; outline: none; }
.pg { max-width: 1080px; margin: 0 auto; }

/* 导航 */
.ng { margin-bottom: 14px; }
.ng-h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 650; color: var(--ink2); padding: 4px 8px; letter-spacing: .02em; }
.ng-h a { color: inherit; }
.ng-h span { color: var(--ink3); font-weight: 400; }
.ng-s { font-size: 11px; color: var(--ink3); padding: 6px 8px 2px 24px; }
.ni { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; color: var(--ink); font-size: 13px; line-height: 1.45; }
.ni:hover { background: var(--line2); text-decoration: none; }
.ni.on { background: var(--acc-bg); color: var(--acc); font-weight: 600; }
.ni span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ni .mono { font-size: 12px; }
.st { font-style: normal; font-size: 10.5px; padding: 0 5px; border-radius: 4px; flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #d9d9d3; flex: none; display: inline-block; }
.dot.seen { background: var(--ok); }
.dot.q { background: #e0a100; }
.dot.noted { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--acc); }

/* 色调 */
.t-ok { color: var(--ok); background: var(--ok-bg); }
.t-warn { color: var(--warn); background: var(--warn-bg); }
.t-new { color: var(--new); background: var(--new-bg); }
.t-bad { color: var(--bad); background: var(--bad-bg); }
.t-mute { color: var(--mute); background: var(--mute-bg); }

/* 页头 */
.ph { margin-bottom: 14px; }
.kicker { font-size: 12px; color: var(--ink3); letter-spacing: .02em; }
.ph h1 { margin: 2px 0 8px; font-size: 26px; line-height: 1.3; font-weight: 680; }
.ph h1 code { background: none; padding: 0; font-size: .9em; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge { display: inline-block; white-space: nowrap; font-size: 12px; padding: 1px 8px; border-radius: 999px; font-weight: 550; }
.lead { color: var(--ink2); font-size: 15px; margin: 10px 0 0; max-width: 860px; }
.loc { font-family: var(--mono); font-size: 12px; color: var(--ink3); }

/* 评审条 */
.rv { position: sticky; top: calc(var(--top) + 8px); z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 6px 0 22px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.rv-h { font-size: 12px; color: var(--ink3); padding-right: 4px; }
.rv-b { height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink2); }
.rv-b.on.seen { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); font-weight: 600; }
.rv-b.on.q { background: var(--warn-bg); border-color: #e0a100; color: var(--warn); font-weight: 600; }
.rv-n { flex: 1; min-width: 260px; min-height: 30px; height: 30px; resize: vertical; border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; font: inherit; font-size: 13px; line-height: 1.5; }
.rv-n:focus { height: 72px; outline: 2px solid var(--acc-bg); border-color: var(--acc); }
.rv-s { font-size: 12px; color: var(--ok); min-width: 3em; }

/* 节 */
.sec { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 16px; }
.sec.draft { border-color: #c9d4f8; box-shadow: inset 4px 0 0 var(--new); }
.sec h2 { margin: 0 0 12px; font-size: 16px; font-weight: 680; }
.sec.draft h2::after { content: "草稿 · 待你看"; margin-left: 10px; font-size: 11px; font-weight: 550; color: var(--new); background: var(--new-bg); padding: 1px 7px; border-radius: 999px; vertical-align: 2px; }
.sec h3 { font-size: 14px; margin: 18px 0 8px; font-weight: 650; }
.sec h3:first-child { margin-top: 0; }
.sec p { margin: 6px 0; }
.sec ul, .sec ol { margin: 6px 0; padding-left: 1.4em; }
.sec li { margin: 3px 0; }
.defh { font-size: 13px; margin: 14px 0 6px; font-weight: 600; }

/* 表 */
.tw { overflow-x: auto; margin: 6px 0; }
table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.6; }
th, td { border-bottom: 1px solid var(--line2); padding: 7px 10px; text-align: left; vertical-align: top; }
thead th { background: #fafaf7; color: var(--ink2); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:hover td { background: #fcfcfa; }
tbody td:first-child { min-width: 5.5em; }
table.schema td:first-child { white-space: nowrap; }
table.schema .ty { color: var(--new); background: none; padding: 0; }
table.schema tr.lv1 td:first-child { padding-left: 26px; }
table.schema tr.lv2 td:first-child { padding-left: 42px; }
table.schema tr.lv3 td:first-child { padding-left: 58px; }
table.schema tr.lv1 td, table.schema tr.lv2 td, table.schema tr.lv3 td { background: #fcfcfa; }
.matrix th small { color: var(--ink3); font-weight: 400; }
.matrix td { min-width: 0; }
.matrix .chip { font-size: 11px; padding: 0 5px; margin: 1px 3px 1px 0; }
.matrix .chip code { font-size: 11px; }
.matrix tbody th { white-space: nowrap; background: #fafaf7; }

/* chip */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; margin: 2px 4px 2px 0; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.chip code { background: none; padding: 0; font-size: 12px; }
.chip:hover { border-color: var(--acc); text-decoration: none; }
.chip.on { background: var(--acc-bg); border-color: var(--acc); color: var(--acc); }
.chip.t-ok, .chip.t-warn, .chip.t-new, .chip.t-bad, .chip.t-mute { border-color: transparent; }

/* 代码 */
pre.code { margin: 8px 0; padding: 12px 14px; background: #f7f7f4; border: 1px solid var(--line2); border-radius: 8px; overflow: auto; font: 12.5px/1.6 var(--mono); max-height: 620px; }
pre.code.wrap { white-space: pre-wrap; word-break: break-word; }
pre.num { padding-left: 0; }
pre.num .ln { display: block; padding-right: 14px; }
pre.num .ln b { display: inline-block; width: 48px; padding-right: 12px; text-align: right; color: #b0b3b8; font-weight: 400; user-select: none; }
.codebox { margin: 8px 0; border: 1px solid var(--line2); border-radius: 8px; background: #fbfbf9; }
.codebox > summary { cursor: pointer; padding: 8px 12px; font-size: 13px; color: var(--ink2); }
.codebox > summary .loc { margin-left: 6px; }
.codebox[open] > summary { border-bottom: 1px solid var(--line2); }
.codebox > pre, .codebox > div, .codebox > h4, .codebox > .tw { margin: 8px 12px; }

/* 模型看到的 */
.model-sees { border-left: 3px solid var(--acc); background: var(--acc-bg); padding: 8px 14px; border-radius: 0 8px 8px 0; margin-bottom: 10px; }
.ms-h { font-size: 11.5px; color: var(--acc); font-weight: 600; }
.model-sees p { margin: 2px 0; }
.ex2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ex-h { font-size: 12px; color: var(--ink3); }

/* 时间轴预览 */
.tl { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 14px; background: #fcfcfa; max-width: 560px; }
.tl-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.tl-row i { width: 8px; height: 8px; border-radius: 50%; background: #c8ccd2; flex: none; }
.tl-row.run i { background: var(--acc); box-shadow: 0 0 0 3px var(--acc-bg); }
.tl-row i.ok { background: var(--ok); }
.tl-l { flex: none; }
.tl-b { color: var(--ink3); font-size: 12.5px; }
.tl-t { margin-left: auto; color: var(--ink3); font-size: 12px; font-variant-numeric: tabular-nums; }
.shimmer { background: linear-gradient(90deg, var(--ink2) 0%, var(--ink2) 40%, #c6ccd3 50%, var(--ink2) 60%, var(--ink2) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sh 2.2s linear infinite; }
@keyframes sh { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* 工具组（回合页） */
.tg { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line2); }
.tg:last-child { border-bottom: 0; }
.tg-h { font-size: 13px; font-weight: 600; color: var(--ink2); }
.trow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.sk { padding: 6px 0; }
.sk p { margin: 2px 0 0; }
ol.stack { counter-reset: s; list-style: none; padding-left: 0; }
ol.stack > li { counter-increment: s; position: relative; padding: 6px 10px 6px 34px; border: 1px solid var(--line2); border-radius: 8px; margin: 6px 0; background: #fcfcfa; }
ol.stack > li::before { content: counter(s); position: absolute; left: 10px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
ol.stack.sm > li { padding: 3px 8px 3px 30px; margin: 3px 0; font-size: 12.5px; }
ol.stack.sm > li::before { top: 5px; }

/* 总览 */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pc { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fcfcfa; }
.pc-n { width: 22px; height: 22px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 12px; text-align: center; line-height: 22px; font-weight: 650; }
.pc h3 { margin: 8px 0 4px; font-size: 14.5px; }
.pc p { margin: 0; color: var(--ink2); font-size: 13px; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 8px 14px; border-radius: 10px; }
.stat b { font-size: 22px; line-height: 1.2; }
.stat span { font-size: 12px; }
.stat:hover { text-decoration: none; filter: brightness(.97); }

/* 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 8px 12px; font: inherit; font-size: 13px; color: var(--ink2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--acc); border-bottom-color: var(--acc); font-weight: 600; }
.pane { display: none; }
.pane.on { display: block; }

/* Markdown */
.md-h { margin: 18px 0 8px; font-weight: 650; }
h2.md-h { font-size: 17px; } h3.md-h { font-size: 15px; } h4.md-h, h5.md-h { font-size: 14px; }
blockquote { margin: 8px 0; padding: 4px 14px; border-left: 3px solid var(--line); color: var(--ink2); background: #fafaf7; }
.fm { border: 1px dashed var(--line); border-radius: 8px; padding: 6px 12px; margin: 4px 0 12px; background: #fcfcfa; font-size: 12.5px; }
.fm-h { color: var(--ink3); font-size: 11px; }
.fm-r { display: flex; gap: 10px; }
.fm-r b { min-width: 90px; font-family: var(--mono); font-weight: 500; color: var(--ink2); }
.flag { color: var(--warn); }
.lnk { border-bottom: 1px dotted var(--ink3); }
.docmd { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px 30px; }
.docmd p, .docmd li { line-height: 1.8; }

/* 对照 */
.diff-sum { font-size: 12px; color: var(--ink3); margin-bottom: 4px; }
pre.diff { margin: 0; padding: 8px 0; background: #fbfbf9; border: 1px solid var(--line2); border-radius: 8px; overflow: auto; font: 12.5px/1.65 var(--mono); max-height: 720px; white-space: pre-wrap; word-break: break-word; }
.dl { display: block; padding: 0 14px 0 0; }
.dl i { display: inline-block; width: 28px; text-align: center; font-style: normal; color: #b0b3b8; user-select: none; }
.dl.da { background: #e9f6ee; } .dl.da i { color: var(--ok); }
.dl.dd { background: #fcecea; color: #8a3a33; } .dl.dd i { color: var(--bad); }

/* 卡片示意 */
.cardmock { max-width: 440px; border: 1px solid #e5d7b8; background: #fffdf6; border-radius: 14px; padding: 12px 16px; box-shadow: 0 2px 8px rgba(120,90,20,.06); }
.cm-h { font-size: 12px; color: var(--warn); font-weight: 600; margin-bottom: 6px; }
.cm-l { font-size: 13px; padding: 2px 0; color: var(--ink); }
.cm-b { display: flex; gap: 8px; margin-top: 10px; }
.cm-btn { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; background: #fff; }
.cm-btn.pri { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 翻页 */
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.pager a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; max-width: 48%; }
.pager a:hover { border-color: var(--acc); text-decoration: none; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 13px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 20; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  :root { --side: 240px; }
  .main { padding: 20px 22px 60px; }
  .cards3 { grid-template-columns: 1fr; }
  .ex2 { grid-template-columns: 1fr; }
}

/* 总览 */
.cmp { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cmp-i { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fcfcfa; }
.cmp-n { font-size: 12.5px; color: var(--ink3); }
.cmp-v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.cmp-v s { color: var(--ink3); }
.cmp-v i { font-style: normal; color: var(--ink3); }
.cmp-v b { font-size: 16px; color: var(--acc); }
.cards4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cards4 .cardmock { margin: 0; }
a.cmp-i { color: var(--ink); display: block; }
a.cmp-i:hover { text-decoration: none; border-color: var(--acc); }
.journey th, .journey td { vertical-align: top; }
.journey tbody th { white-space: nowrap; text-align: left; color: var(--ink2); font-weight: 600; background: #fafaf7; }
.journey { table-layout: fixed; width: 100%; }
.journey thead th:first-child, .journey tbody th { width: 92px; }
.journey td { font-size: 12.5px; overflow-wrap: anywhere; }
.journey td .chip { white-space: normal; }
.journey td .chip code { font-size: 11px; }
.journey .chip { margin: 2px 3px 2px 0; }
ul.tight { margin: 0; padding-left: 1.1em; }
ul.tight li { margin: 2px 0; }
.tg-b .trow { padding: 4px 0; font-size: 13.5px; }

/* ===== 台账改造（2026-10-29）：三种视角、正文 760、对照、时间线、窄屏卡片 ===== */
.vtabs { display: flex; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.vtab { padding: 3px 12px; border-radius: 6px; color: var(--ink2); font-size: 13px; white-space: nowrap; }
.vtab:hover { text-decoration: none; background: var(--line2); }
.vtab.on { background: #fff; color: var(--acc); font-weight: 650; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pg { max-width: 1080px; }
/* 正文最宽 760px，表格、对照、回合对照表可以更宽 */
.sec > p, .sec > ul, .sec > ol:not(.rstack), .sec > .docmd, .sec > dl, .ph .lead, .stk-l, .tline p { max-width: 760px; }
.count { display: inline-block; min-width: 22px; text-align: center; font-size: 12px; padding: 0 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); vertical-align: 2px; margin-left: 4px; }
.sec.first { border-color: #ecd9ae; box-shadow: inset 4px 0 0 #e0a100; }
.pend { display: grid; gap: 10px; }
.pend-i { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--ink); }
.pend-i:hover { border-color: var(--acc); text-decoration: none; }
.pend-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pend-i p { margin: 4px 0; color: var(--ink2); }
.pend-items .chip { font-size: 11.5px; }
.pend-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin: 6px 0; }
/* 回合页：模型这一轮收到的东西 */
ol.rstack { list-style: none; padding: 0 !important; margin: 0; }
.stk { border-left: 3px solid var(--acc-bg); padding: 4px 0 10px 16px; margin: 0 0 14px; }
.stk-h { display: flex; align-items: center; gap: 10px; }
.stk-h h3 { margin: 0 !important; }
.stk-n { width: 22px; height: 22px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.stk-l { margin: 6px 0; color: var(--ink2); }
.stk-i { margin: 6px 0; }
.stk-i > .codebox { margin-top: 4px; }
/* 时间线 */
ol.tline { list-style: none; padding: 0 !important; margin: 0; }
.tline li { position: relative; padding: 2px 0 12px 18px; border-left: 2px solid var(--line); margin: 0 0 0 6px !important; }
.tline li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--acc); }
.tline p { margin: 2px 0; color: var(--ink2); }
.tl-d { font-family: var(--mono); font-size: 12px; color: var(--ink3); margin-right: 8px; }
.tl-k { font-size: 12px; color: var(--ink3); margin: 0 8px 0 6px; }
/* 词汇表与术语 */
dl.gloss { display: grid; grid-template-columns: 96px 1fr; gap: 6px 14px; margin: 0; }
dl.gloss dt { font-weight: 650; }
dl.gloss dd { margin: 0; color: var(--ink2); }
abbr.term { text-decoration: underline dotted var(--ink3); text-underline-offset: 3px; cursor: help; }
/* 对照 */
.cmp-item { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 12px; }
.cmp-item:first-of-type { border-top: 0; }
.cmp-item h3 { margin: 0 0 4px !important; }
.note { color: var(--new); }
.dx-h { margin: 12px 0 4px; font-size: 13px; color: var(--ink2); }
.dx-sum { font-size: 12px; color: var(--ink3); margin-bottom: 4px; }
.dx-w { overflow-x: auto; border: 1px solid var(--line2); border-radius: 8px; }
table.dx { width: 100%; border-collapse: collapse; table-layout: fixed; font: 12px/1.55 var(--mono); }
table.dx th { background: #fafaf7; text-align: left; padding: 4px 10px; font-family: var(--sans); font-size: 12px; color: var(--ink3); border-bottom: 1px solid var(--line2); }
table.dx td { padding: 1px 10px; white-space: pre-wrap; word-break: break-word; vertical-align: top; border-right: 1px solid var(--line2); }
table.dx .dx-d { background: #fdecea; }
table.dx .dx-a { background: #e6f4ea; }
table.dx .dx-e { background: #f7f7f4; }
tbody.dx-hid { display: none; }
tbody.dx-hid.on { display: table-row-group; }
.dx-fold td { text-align: center; background: #f7f7f4; padding: 2px; }
.dx-open { border: 0; background: none; color: var(--acc); font: 12px var(--sans); cursor: pointer; }
/* 历史筛选 */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.filters label { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink2); }
.filters select { height: 30px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font: inherit; font-size: 13px; max-width: 280px; }
.skillmd { max-height: 560px; overflow: auto; border: 1px solid var(--line2); border-radius: 8px; padding: 4px 14px; }
details.fold > summary { font-weight: 600; }

/* 窄屏：左栏收起、顶栏换行、表格转卡片、评审条吸底 */
@media (max-width: 720px) {
  .top { height: auto; flex-wrap: wrap; gap: 8px; padding: 8px 12px; position: sticky; }
  .shell { padding-top: 0; }
  .side { display: none; }
  .main { margin-left: 0; padding: 14px 12px 120px; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .src { display: none; }
  .ph h1 { font-size: 21px; }
  .sec { padding: 14px 14px; }
  .tw table, .tw thead, .tw tbody, .tw tr, .tw td, .tw th { display: block; width: auto !important; }
  .tw thead { display: none; }
  .tw tr { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 0 0 8px; }
  .tw td, .tw th { border: 0 !important; padding: 3px 0 !important; overflow-wrap: anywhere; }
  .tw td[data-l]:not([data-l=""])::before { content: attr(data-l); display: block; font-size: 11px; color: var(--ink3); }
  .journey tbody th { background: none; font-size: 13px; color: var(--acc); }
  .chip { white-space: normal; }
  .rv { position: sticky; top: auto; bottom: 0; margin: 0 -12px 14px; border-radius: 0; border-width: 1px 0 0; order: 99; }
  .rv-n { min-width: 0; flex-basis: 100%; }
  .pg { display: flex; flex-direction: column; }
  dl.gloss { grid-template-columns: 1fr; }
  table.dx { font-size: 11px; }
  pre.code { max-width: 100%; }
  .main :not(pre) > code { overflow-wrap: anywhere; word-break: break-all; }
}
.changes td:first-child, .tw td[data-l="日期"] { white-space: nowrap; }
details.many > summary { cursor: pointer; color: var(--acc); font-size: 12.5px; }
@media (max-width: 720px) {
  .tw table.kv tr { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
  .tw table.kv td::before { content: none !important; }
  .tw table.kv td:first-child { color: var(--ink3); font-size: 12.5px; }
}
.kgrp { margin: 4px 0; }

/* 中英对照：中文名后跟英文代码名（工具名、skill 名等） */
.ni .nt { display: flex; flex-direction: column; gap: 0; }
.ni .nt > span, .ni .nt > code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ni code.en { background: none; padding: 0; font-size: 11px; color: var(--mute, #8a8f98); font-weight: 400; }
.chip code.en { color: var(--mute, #8a8f98); }
.ph h1 code.en { font-size: .5em; font-weight: 500; vertical-align: middle; margin-left: 6px; color: var(--mute, #8a8f98); background: none; }

/* ===== 提示词、归类、细节（2026-10-30）：对话记录式提示词、工具分组、skill 矩阵、字段树 ===== */
/* 左栏小标题 */
.ng-sub { font-size: 11px; color: var(--ink3); padding: 6px 8px 2px; letter-spacing: .02em; }
.ni.sub { padding-left: 16px; }
/* 字段树 */
.fsum { font-size: 12.5px; color: var(--ink2); }
.nodesc { color: var(--bad); background: var(--bad-bg); padding: 0 6px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.nodesc.sm { font-size: 11px; margin-left: 6px; }
b.req { color: var(--ink); font-weight: 650; font-size: 12px; white-space: nowrap; }
table.schema td:nth-child(3) { white-space: nowrap; }
table.schema code.fk { background: none; padding: 0; font-weight: 600; color: var(--ink); }
table.schema tr td:first-child { position: relative; }
table.schema tr.lv1 td:first-child { padding-left: 28px; }
table.schema tr.lv2 td:first-child { padding-left: 46px; }
table.schema tr.lv3 td:first-child { padding-left: 64px; }
table.schema tr.lv4 td:first-child { padding-left: 82px; }
table.schema tr:not(.lv0) td:first-child::before { content: "└"; position: absolute; margin-left: -14px; color: #c3c6cb; }
table.schema tr.lv4 td { background: #fcfcfa; }
table.schema tr.uni td { font-size: 12px; color: var(--new); background: var(--new-bg) !important; padding-top: 4px; padding-bottom: 4px; }
table.schema tr.uni td::before { content: none !important; }
/* 正文排版：保留换行、正常折行 */
.prose { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; line-height: 1.75; font-size: 14px; color: var(--ink); max-width: 760px; }
.model-sees .ms-name { font-size: 13px; margin: 4px 0; }
.ms-h2 { font-size: 11px; color: var(--ink3); margin-top: 6px; }
.ms-desc { font-size: 15px; font-weight: 550; }
.model-sees .prose { margin: 2px 0 6px; }
.docmd.flat { border: 0; padding: 4px 0; background: none; }
.tabbox .tabs { margin: 6px 0 8px; }
.count.ok { background: var(--acc-bg); color: var(--acc); }
/* 回合页：一句话、样例、四个数字 */
.sample { margin: 8px 0 0; padding: 6px 12px; background: var(--warn-bg); border-radius: 8px; color: var(--ink); font-size: 14px; max-width: 860px; }
.rstats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.rstats > div { display: flex; flex-direction: column; min-width: 110px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.rstats b { font-size: 22px; line-height: 1.25; color: var(--ink); }
.rstats b.sm { font-size: 14px; font-weight: 600; line-height: 1.6; }
.rstats span { font-size: 12px; color: var(--ink3); }
/* 对话记录式提示词：左侧角色标签＋色条 */
ol.msgs { list-style: none; padding: 0 !important; margin: 10px 0 0; }
.msg { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 14px; border-left: 4px solid var(--rc); background: var(--rb); border-radius: 0 10px 10px 0; padding: 12px 16px 12px 12px; margin: 0 0 12px !important; }
.msg-r { font-size: 12.5px; font-weight: 650; color: var(--rc); display: flex; align-items: flex-start; gap: 6px; padding-top: 2px; }
.msg-n { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: var(--rc); color: #fff; font-size: 11px; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.msg-c { min-width: 0; }
.msg-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-bottom: 4px; }
.msg-h b { font-size: 14px; }
.msg-s { font-size: 12px; color: var(--ink3); }
.msg-s .chip { font-size: 11.5px; }
.msg .msg-t { max-width: 820px; }
.msg pre.msg-j { max-height: none; background: rgba(255,255,255,.7); margin: 4px 0 0; }
.r-ins { --rc: #1f6f78; --rb: #f1f8f8; }
.r-sys { --rc: #5b6270; --rb: #f5f5f3; }
.r-usr { --rc: #3b5bdb; --rb: #f2f5fe; }
.r-ast { --rc: #9a6400; --rb: #fdf7ea; }
.r-ret { --rc: #2e7d4f; --rb: #f0f8f3; }
mark.var { background: #ffe58a; color: inherit; border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -2px 0 #e0a100; cursor: help; }
table.vars .vv { font-family: var(--mono); font-size: 12px; background: #fff5cc; padding: 0 4px; border-radius: 3px; overflow-wrap: anywhere; }
.sm { font-size: 12px; font-weight: 400; }
/* 工具分组 */
.tgrp { margin: 10px 0 14px; }
.tgrp-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 4px 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tgrp-h b { font-size: 14px; }
.tgrp-h .mute { font-size: 12.5px; }
.tgrp-c { margin-left: auto; font-size: 12px; color: var(--ink3); }
details.tl1 { border-bottom: 1px dashed var(--line2); }
details.tl1 > summary { cursor: pointer; padding: 6px 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; list-style: none; }
details.tl1 > summary::-webkit-details-marker { display: none; }
details.tl1 > summary::before { content: "▸"; color: var(--ink3); font-size: 11px; width: 10px; }
details.tl1[open] > summary::before { content: "▾"; }
details.tl1 > summary:hover { background: #fafaf7; }
.tl1-n { font-weight: 600; white-space: nowrap; }
.tl1-n code.en { color: var(--ink3); background: none; padding: 0; font-weight: 400; }
.tl1-d { color: var(--ink2); font-size: 13px; flex: 1; min-width: 200px; }
.tl1-b { padding: 4px 4px 12px 18px; }
/* skill 矩阵 */
table.skmx th small { display: block; font-weight: 400; color: var(--ink3); font-size: 11.5px; white-space: normal; }
table.skmx tbody th { background: #fafaf7; text-align: left; min-width: 120px; }
table.skmx td { vertical-align: middle; }
.chip.mx { flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 10px; white-space: normal; }
.chip.mx b { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--acc); }
.chip.mx i { font-style: normal; font-size: 11px; color: var(--warn); }
/* 版本对照 */
.vcmp { margin-top: 12px; }
.vcmp-h { font-size: 13px; color: var(--ink2); margin-bottom: 6px; }
.vcmp select { height: 28px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: 12.5px var(--mono); }
@media (max-width: 720px) {
  .msg { grid-template-columns: 1fr; padding: 10px 12px; }
  .msg-r { margin-bottom: 4px; }
  .rstats > div { min-width: 0; flex: 1 1 40%; }
  .tl1-d { min-width: 0; flex-basis: 100%; }
  .tl1-b { padding-left: 4px; }
  table.schema tr td:first-child { padding-left: 0 !important; }
  table.schema tr:not(.lv0) td:first-child::before { content: none; }
  table.schema tr.lv1, table.schema tr.lv2, table.schema tr.lv3, table.schema tr.lv4 { margin-left: 14px; border-left: 3px solid var(--line); }
  .nodesc { white-space: normal; }
}
.chip.mx.t-warn { border-color: #ecd9ae; background: #fffaf0; }
.chip.mx code.en { white-space: nowrap; color: var(--ink); }
/* 工具清单：各组表格列宽一致 */
table.tools { table-layout: fixed; }
table.tools th:nth-child(1) { width: 30%; } table.tools th:nth-child(2) { width: 34%; } table.tools th:nth-child(3) { width: 14%; }
table.tools th:nth-child(4), table.tools th:nth-child(5) { width: 6%; } table.tools th:nth-child(6) { width: 10%; }
table.tools .chip { white-space: normal; }
@media (max-width: 720px) {
  /* 字段树在窄屏：字段名、类型、必填排一行，说明与约束各占一行，不再每格一个小标题 */
  .tw table.schema tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 6px 10px; }
  .tw table.schema td::before { content: none !important; }
  .tw table.schema td:nth-child(4), .tw table.schema td:nth-child(5) { flex-basis: 100%; }
  .tw table.schema td:nth-child(5):empty, .tw table.schema td:nth-child(5) span:empty { display: none; }
  .tw table.schema tr.uni td { flex-basis: 100%; }
}
.tabbox > .pane > .sample { margin-top: 4px; }
.kid-body { margin-top: 14px; }
mark.var { scroll-margin-top: 80px; }
.codebox > summary { overflow-wrap: anywhere; }
.codebox > summary .loc, .ph .kicker code { word-break: break-all; }
@media (max-width: 720px) {
  /* 变量表在窄屏：变量名与样例值一行，含义一行，「出现在」不单列 */
  .tw table.vars tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 6px 10px; }
  .tw table.vars td::before { content: none !important; }
  .tw table.vars td:nth-child(3) { flex-basis: 100%; color: var(--ink2); }
  .tw table.vars td:nth-child(4) { display: none !important; }
}
/* 后台回合：每种调用一节 */
.kid { margin: 26px 0 0; padding-top: 18px; border-top: 2px solid var(--line); scroll-margin-top: calc(var(--top) + 12px); }
.kid-h { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 6px; }
.kid-h code.en { font-size: 12px; font-weight: 400; color: var(--ink3); background: none; }
.kid-nav { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 13px; color: var(--ink2); }
.kid-nav .chip { cursor: pointer; font: inherit; font-size: 12.5px; }
.msg-note { margin: 0 0 6px; font-size: 12.5px; color: var(--acc); background: rgba(255,255,255,.7); display: inline-block; padding: 1px 8px; border-radius: 6px; }

/* 提示词目录：每段一行，点了跳到那段 */
.p-toc { list-style: none; margin: 8px 0 18px; padding: 10px 12px; border: 1px solid var(--line, #e5e5e0); border-radius: 8px; background: var(--paper, #fafaf7); columns: 2 320px; column-gap: 24px; }
.p-toc li { break-inside: avoid; padding: 3px 0; }
.p-toc a { display: flex; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; }
.p-toc a:hover { color: var(--acc); }
.p-toc .p-toc-r { font-size: 12px; color: var(--mute); min-width: 4.5em; }
.p-toc .mute.sm { margin-left: auto; white-space: nowrap; }
.msg { scroll-margin-top: 64px; }
.chip.mx .mx-zh { font-size: 13px; color: var(--ink); font-weight: 600; }
.chip.mx code.en { white-space: normal; word-break: normal; overflow-wrap: anywhere; color: var(--ink3, #6b7079); font-size: 11.5px; }
/* 用户段（平台打包的当轮输入）：说明一句 → 用户这句话大字引用 → 按用途分组的字段 → 段尾原文 */
.msg-note.uf-note { display: block; color: var(--ink2); background: #fff; border: 1px solid #d9e0f7; padding: 6px 10px; font-size: 13px; line-height: 1.65; max-width: 860px; }
.uf-lead { margin: 6px 0; color: var(--ink2); font-size: 13px; }
blockquote.uf-say { margin: 10px 0 14px; padding: 10px 16px; border-left: 4px solid var(--new); background: #fff; border-radius: 0 10px 10px 0; font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 860px; }
.uf-say-l { display: block; font-size: 12px; color: var(--ink3); margin-bottom: 2px; }
.uf-say-none { margin: 10px 0 14px; padding: 8px 14px; background: #fff; border-radius: 8px; color: var(--ink2); }
.ufg { margin: 12px 0 0; background: rgba(255,255,255,.75); border-radius: 10px; padding: 8px 12px 4px; }
.ufg-h { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ufg-h b { font-size: 14px; }
.ufg-h .mute { font-size: 12.5px; }
.uf { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.uf:last-child { border-bottom: 0; }
.uf.wide { grid-template-columns: minmax(0, 1fr); }
.uf.wide .uf-n { max-width: 760px; }
.uf-k b { font-weight: 600; }
.uf-k code.en { font-size: 11px; color: var(--ink3); background: none; padding: 0; }
.uf-n { font-size: 12px; color: var(--ink3); line-height: 1.55; margin-top: 2px; }
.uf-v { min-width: 0; overflow-wrap: anywhere; }
.uf-v .tw { margin: 0 0 4px; }
.uf-v ul.uf-kv { margin: 0; padding-left: 18px; }
.uf-raw { display: inline-block; margin-left: 8px; color: var(--ink3); font-size: 12.5px; }
blockquote.uf-q { margin: 4px 0; background: #fff; font-size: 13.5px; }
.uf-at { display: block; font-size: 11.5px; color: var(--ink3); }
details.uf-more { margin: 2px 0; }
details.uf-more > summary { cursor: pointer; color: var(--acc); font-size: 13px; }
details.uf-more > summary:hover { text-decoration: underline; }
details.uf-more pre.code { margin-top: 4px; max-height: 420px; }
details.uf-raw-box { margin-top: 12px; }
code.en.uf-orig { white-space: nowrap; font-size: 11px; color: var(--ink3); background: none; padding: 0 0 0 4px; }
.uec { margin-top: 6px; }
.uec-r { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2px 12px; padding: 5px 0; border-top: 1px dashed var(--line2); }
.uec-k { font-size: 13px; color: var(--ink2); }
.uec-k code.en { font-size: 11px; color: var(--ink3); background: none; padding: 0; }
.uec-v { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .uf, .uec-r { grid-template-columns: 1fr; }
  blockquote.uf-say { font-size: 16px; }
  /* 事实表在窄屏：事实名一行、值一行，不再每格一个小标题 */
  .tw table.ufacts tr { display: block; padding: 6px 10px; }
  .tw table.ufacts td::before { content: none !important; }
  .tw table.ufacts td:first-child { font-size: 12.5px; color: var(--ink3); }
  .ufg { padding: 6px 8px 2px; }
}
