/* PAIA · 值班灯（专业版）。颜色只表达语义：状态 = 蓝灰 / 琥珀 / 橙；红涨绿跌只用于价格。 */
:root {
  --bg: #EEF1F4; --surface: #FFFFFF; --sunk: #F4F6F9;
  --ink: #1C2433; --ink-2: #5E6B7D; --ink-3: #4A5668; --line: #DCE2E9; --line-2: #E3E8EE;
  --calm: #5B7186; --amber: #C98A1C; --amber-ink: #7A4F0C; --amber-bg: #FBF3E6;
  --orange: #D9561E; --orange-ink: #B8461A;
  --up: #C63737; --up-ink: #B93232; --down: #1A7A50; --down-ink: #1A7A50;
  --danger-zone: rgba(217, 86, 30, 0.35);
  --invert-bg: #1C2433; --invert-ink: #FFFFFF; --invert-ink-2: #B9C4D0;
  --nav: rgba(255, 255, 255, 0.92);
  --num: "Archivo", -apple-system, "PingFang SC", sans-serif;
  --text: -apple-system, "PingFang SC", "Hiragino Sans GB", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F141B; --surface: #18202A; --sunk: #121922;
    --ink: #E8EDF3; --ink-2: #93A1B3; --ink-3: #B4C0CE; --line: #28323F; --line-2: #222B37;
    --calm: #8FA6BD; --amber: #E2A93C; --amber-ink: #E9B865; --amber-bg: rgba(226, 169, 60, 0.14);
    --orange: #F07A43; --orange-ink: #F38A5A;
    --up: #C94545; --up-ink: #F07070; --down: #1F8A5B; --down-ink: #3DBE84;
    --danger-zone: rgba(240, 122, 67, 0.45);
    --invert-bg: #E8EDF3; --invert-ink: #0F141B; --invert-ink-2: #4A5668;
    --nav: rgba(24, 32, 42, 0.94);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F141B; --surface: #18202A; --sunk: #121922;
  --ink: #E8EDF3; --ink-2: #93A1B3; --ink-3: #B4C0CE; --line: #28323F; --line-2: #222B37;
  --calm: #8FA6BD; --amber: #E2A93C; --amber-ink: #E9B865; --amber-bg: rgba(226, 169, 60, 0.14);
  --orange: #F07A43; --orange-ink: #F38A5A;
  --up: #C94545; --up-ink: #F07070; --down: #1F8A5B; --down-ink: #3DBE84;
  --danger-zone: rgba(240, 122, 67, 0.45);
  --invert-bg: #E8EDF3; --invert-ink: #0F141B; --invert-ink-2: #4A5668;
  --nav: rgba(24, 32, 42, 0.94);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--text); -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--calm); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; font-stretch: 87%; }
.up { color: var(--up-ink); } .down { color: var(--down-ink); } .muted { color: var(--ink-2); }

#view { max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 8px) 16px calc(env(safe-area-inset-bottom) + 92px); display: flex; flex-direction: column; gap: 14px; }

/* 顶栏与返回 */
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 4px 4px 0; }
.brand { font-family: var(--num); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }
.topbar .meta { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink-2); border-radius: 12px; cursor: pointer; }
.icon-btn svg, .back svg, .chev { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; font-size: 15px; color: var(--calm); }
.page-title { font-size: 26px; font-weight: 700; }

/* 卡片 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card h2 { font-size: 15px; font-weight: 700; }
.section-label { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 2px 4px -4px; display: flex; justify-content: space-between; align-items: baseline; }
.section-label small { font-size: 12px; font-weight: 400; }
.invert { background: var(--invert-bg); color: var(--invert-ink); border-radius: 18px; padding: 14px 16px; }
.invert .label { font-size: 12px; color: var(--invert-ink-2); margin-bottom: 4px; }
.invert p { font-size: 16px; line-height: 1.55; }
.hint { font-size: 12px; line-height: 1.6; color: var(--ink-2); margin: 0 4px; }

/* 值班灯 */
.lantern { --tone: var(--calm); border-radius: 24px; padding: 22px 22px 18px; background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 65%), var(--surface); border: 1px solid color-mix(in srgb, var(--tone) 28%, var(--line)); }
.lantern[data-level="amber"] { --tone: var(--amber); }
.lantern[data-level="orange"] { --tone: var(--orange); }
.lantern .fresh { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.lantern .fresh::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 20%, transparent); }
.lantern h1 { margin: 10px 0 6px; font-size: 36px; line-height: 1.12; font-weight: 700; }
.lantern p { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.stats { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.stat .k { font-size: 12px; color: var(--ink-2); }
.stat .v { font-family: var(--num); font-stretch: 87%; font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.stats.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; margin-top: 0; padding-top: 0; }
.stats.grid3 .v { font-size: 17px; }

/* 今天的节奏 */
.beats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.beat { border-radius: 12px; padding: 10px 8px; border: 1px dashed var(--line); color: var(--ink-3); }
.beat b { display: block; font-family: var(--num); font-size: 15px; font-weight: 600; }
.beat span { display: block; font-size: 12px; line-height: 1.35; margin-top: 2px; }
.beat.done { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.beat.next { border: 1px solid var(--invert-bg); background: var(--invert-bg); color: var(--invert-ink); }

/* 列表行 */
.rows { list-style: none; padding: 0; }
.rows > li + li { border-top: 1px solid var(--line-2); }
.row-link { display: block; padding: 14px 16px; text-decoration: none; color: inherit; }
.q { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.q .name { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.q .sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.q .sub .warn { color: var(--orange-ink); font-weight: 600; }
.q .price { font-family: var(--num); font-stretch: 87%; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; text-align: right; }
.pill { font-family: var(--num); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 76px; text-align: center; padding: 6px 8px; border-radius: 10px; color: #FFFFFF; background: var(--ink-2); }
.pill.up { background: var(--up); color: #FFF; } .pill.down { background: var(--down); color: #FFF; }
.bar { position: relative; height: 4px; border-radius: 2px; background: var(--line-2); margin-top: 10px; }
.bar .zone { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--danger-zone); }
.bar .dot { position: absolute; top: -4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); }
.bar.big { height: 8px; border-radius: 4px; margin-top: 16px; }
.bar.big .dot { top: -5px; width: 18px; height: 18px; margin-left: -9px; border-width: 3px; }
.bar-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.tag { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 1px 6px; background: var(--sunk); color: var(--calm); white-space: nowrap; }
.tag.amber { background: var(--amber-bg); color: var(--amber-ink); }
.tag.orange { background: var(--orange-ink); color: #FFF; }
.tag.flag { background: var(--amber-bg); color: var(--amber-ink); font-weight: 500; }
.entry { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; text-decoration: none; color: inherit; }
.entry .t { font-size: 15px; flex: none; white-space: nowrap; }
.entry .s { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.entry .chev { margin-left: auto; flex: none; color: var(--ink-2); width: 16px; height: 16px; }

/* 事件卡 */
.event { display: flex; flex-direction: column; gap: 10px; }
.event .head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-2); }
.event h3 { font-size: 19px; line-height: 1.35; font-weight: 700; }
.event .plan { background: var(--sunk); border-radius: 14px; padding: 10px 12px; font-size: 15px; line-height: 1.55; }
.event .plan small { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 2px; }
.event .judge { font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.event.mini { flex-direction: row; gap: 12px; align-items: flex-start; }
.event.mini .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); margin-top: 7px; }
.event.mini h3 { font-size: 16px; font-weight: 600; }
.event.mini p { font-size: 14px; line-height: 1.55; color: var(--ink-3); margin-top: 4px; }
.actions { display: flex; gap: 10px; }

/* 按钮与反馈 */
.btn { min-height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); font-weight: 600; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn.small { min-height: 40px; font-size: 15px; border-radius: 12px; }
.btn.danger { color: var(--orange-ink); }
.btn:disabled { opacity: 0.5; }
.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chips .q-label { font-size: 13px; color: var(--ink-2); margin-right: 2px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-ink); }
.chip.done { margin-left: auto; border-color: color-mix(in srgb, var(--calm) 55%, var(--line)); }

/* 折叠 */
.fold + .fold { border-top: 1px solid var(--line-2); }
.fold > button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: transparent; border: 0; text-align: left; cursor: pointer; }
.fold > button .t { font-size: 15px; font-weight: 600; flex: none; white-space: nowrap; }
.fold > button .s { font-size: 13px; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold > button .c { margin-left: auto; font-size: 13px; color: var(--ink-2); flex: none; }
.fold > button .d { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--calm); }
.fold > button .d.amber { background: var(--amber); }
.fold .body { padding: 0 16px 14px; font-size: 14px; line-height: 1.65; color: var(--ink-3); }
.fold .body ul { padding-left: 20px; }
.fold .body .item { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.card:not(.flush) .fold > button { padding: 0; }
.card:not(.flush) .fold .body { padding: 0 0 12px; }

/* 简报条形图 */
.moves { display: flex; flex-direction: column; gap: 9px; }
.move { display: grid; grid-template-columns: 68px 1fr 60px; align-items: center; gap: 10px; font-size: 14px; }
.move .track { position: relative; height: 12px; }
.move .track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.move .fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.move .pct { font-family: var(--num); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.breadth { display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
.alloc { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin-top: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-2); margin-top: 8px; }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 12px; font-size: 16px; }
.field textarea { min-height: 72px; resize: vertical; line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--sunk); border-radius: 12px; padding: 3px; gap: 3px; }
.seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

/* 底部导航 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--nav); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px); z-index: 10; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; text-decoration: none; color: var(--ink-2); font-size: 11px; }
.tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* 登录与提示 */
.login { min-height: 90dvh; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 0 28px; }
.login-mark { width: 56px; height: 56px; border-radius: 16px; background: radial-gradient(circle at 30% 30%, var(--calm), color-mix(in srgb, var(--calm) 40%, var(--ink))); margin-bottom: 20px; }
.login h1 { font-family: var(--num); font-size: 40px; font-weight: 700; }
.login-hint { color: var(--ink-2); margin: 8px 0 24px; line-height: 1.6; }
.login input { width: 100%; font-size: 17px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 12px; }
.error { color: var(--orange-ink); min-height: 1.5em; margin-top: 10px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 84px); transform: translateX(-50%); background: var(--invert-bg); color: var(--invert-ink); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 20; max-width: 90vw; }
.empty { text-align: center; padding: 28px 16px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

/* 今天页的紧凑持仓行 */
.compact .row-link { padding: 11px 16px 12px; }
.compact .q .name { font-size: 15px; }
.compact .pill { min-width: 70px; font-size: 14px; padding: 5px 6px; }
.compact .bar { margin-top: 8px; }

/* Ask PAIA */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; }
.msg .b { max-width: 88%; border-radius: 18px; padding: 10px 14px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.msg.me { justify-content: flex-end; }
.msg.me .b { background: var(--invert-bg); color: var(--invert-ink); border-bottom-right-radius: 6px; }
.msg.pa .b { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg .foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.msg .foot a { color: var(--calm); text-decoration: none; font-weight: 600; }
.why { margin-top: 8px; border-top: 1px solid var(--line-2); padding-top: 6px; font-size: 13px; color: var(--ink-3); }
.why summary { cursor: pointer; color: var(--calm); font-weight: 600; list-style: none; min-height: 32px; display: flex; align-items: center; }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: "展开"; margin-left: auto; font-weight: 400; color: var(--ink-2); }
.why[open] summary::after { content: "收起"; }
.why ul { padding-left: 18px; }
.why .gap { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--amber-bg); color: var(--amber-ink); }
.typing { color: var(--ink-2); }
.dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; } .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: 0.6; } }
.sugg .chip { font-size: 14px; min-height: 38px; }
.composer { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); width: min(528px, calc(100% - 32px)); bottom: calc(env(safe-area-inset-bottom) + 70px); display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 22px; background: var(--nav); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); }
.composer textarea { flex: 1; min-width: 0; border: 0; background: transparent; resize: none; font-size: 16px; line-height: 1.45; padding: 9px 8px; max-height: 140px; outline: none; }
.composer .send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--invert-bg); color: var(--invert-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.composer .send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.composer .send:disabled, .composer textarea:disabled { opacity: 0.45; }

/* 复盘记录 */
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line-2); }
.jrow { display: flex; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; }
.jrow .l { flex: 1; min-width: 0; }
.jrow .h { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.jrow .h b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.jrow p { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jrow .r { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; font-size: 12px; }
.seg.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg.four button { font-size: 14px; padding: 0 2px; }
.para { margin-top: 6px; font-size: 15px; line-height: 1.65; white-space: pre-wrap; }
.due-row { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-size: 15px; padding: 12px 16px; }
.due-row .chev { margin-left: auto; width: 16px; height: 16px; color: var(--ink-2); }
.chips.pick .chip { min-height: 36px; font-size: 14px; padding: 0 12px; }
.chat-pad { height: 72px; flex: none; }
.chips.pick { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.chips.pick::-webkit-scrollbar { display: none; }
.chips.pick .chip { flex: none; }
.chips.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chips.acts .chip { min-height: 38px; padding: 0 6px; font-size: 14px; }
#journal-form textarea { min-height: 64px; }
#journal-form .error:empty, #review-form .error:empty { display: none; }

/* 财务与估值 */
.fin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 12px; }
.fin-grid .v { font-size: 18px; }
.fin-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.fin-table th { font-weight: 500; color: var(--ink-2); text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.fin-table td { text-align: right; padding: 9px 8px; font-family: var(--num); font-stretch: 87%; }
.fin-table th:first-child, .fin-table td:first-child { text-align: left; padding-left: 16px; font-family: var(--text); font-stretch: normal; }
.fin-table th:last-child, .fin-table td:last-child { padding-right: 16px; }
.fin-table tr + tr td { border-top: 1px solid var(--line-2); }
.excerpt { font-size: 14px; color: var(--ink-3); max-height: 52vh; overflow: auto; }
.tag.muted { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.fold > button .d.orange { background: var(--orange); }
.check { padding: 6px 0; }
.check + .check { border-top: 1px dashed var(--line-2); }
.check .h { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); }
.check .h .tag { flex: none; margin-top: 2px; }
.check p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }

/* 相关新闻 */
.news summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; }
.news summary::-webkit-details-marker { display: none; }
.news summary .t { font-size: 15px; line-height: 1.45; }
.news summary .s { font-size: 12px; color: var(--ink-2); }
.news p { padding: 0 16px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.news a { display: inline-block; margin: 8px 16px 12px; font-size: 14px; color: var(--calm); text-decoration: none; font-weight: 600; }

/* 组合体检 */
.risk-card { display: block; text-decoration: none; color: inherit; }
.risk-card .h { display: flex; align-items: center; gap: 8px; }
.risk-card .h h2 { flex: 1; }
.risk-card .h .chev { width: 16px; height: 16px; color: var(--ink-2); }
.risk-card p { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.risk-card p.warn { color: var(--amber-ink); font-size: 14px; }
.wlist { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.wrow { display: grid; grid-template-columns: 64px 1fr 48px; align-items: center; gap: 10px; font-size: 14px; }
.wrow .s { grid-column: 1 / -1; margin-top: -6px; font-size: 11px; color: var(--ink-2); padding-left: 74px; }
.wrow .s:empty { display: none; }
.wrow .v { text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 600; }
.wtrack { position: relative; height: 10px; border-radius: 5px; background: var(--line-2); }
.wfill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--calm); }
.wfill.over { background: var(--amber); }
.wlim { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-2); border-radius: 1px; }

/* 系统状态 / AI 设置 */
.srow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 16px; font-size: 14px; }
.srow .t { font-weight: 600; }
.srow > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow { padding: 10px 16px; font-size: 13px; }
.prow p { margin-top: 4px; color: var(--ink-3); line-height: 1.5; word-break: break-all; }
.warn-ink { color: var(--orange-ink); }
.field select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 12px; font-size: 16px; }
.srow .note { text-align: right; font-size: 13px; }

/* 术语小问号与说明卡片 */
.q { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 3px; border-radius: 50%;
  border: 1px solid currentColor; font-size: 10px; font-weight: 700; line-height: 1; opacity: 0.55; cursor: pointer; vertical-align: 2px; font-family: var(--text); }
.q:hover, .q:focus-visible { opacity: 1; }
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(10, 14, 20, 0.45); }
.sheet-card { position: relative; width: min(560px, 100%); background: var(--surface); border-radius: 22px 22px 0 0; padding: 22px 20px calc(env(safe-area-inset-bottom) + 18px); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2); }
.sheet-card h2 { font-size: 19px; }
.sheet-card p { font-size: 15px; line-height: 1.7; }
.sheet-card .why-txt { color: var(--ink-3); background: var(--sunk); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.draft .h { display: flex; align-items: center; gap: 8px; }
.draft p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.draft .actions { margin-top: 12px; }
