/* 驾驶舱层：主题令牌 + 外壳（顶部工具栏、图标栏、主视图画布、右侧详情栈、抽屉）+ 给 app.css 的组件换肤。
   分工：app.css 管各标签页的结构和功能样式（归功能改造那边维护）；这里只管视觉语言和外壳，必须加载在 app.css 之后。
   类名一律带 ck- 前缀；对现有元素只通过 body.ck 作用域去覆盖。 */
body:not(.ck) > header, body:not(.ck) > .layout { visibility: hidden; }
/* 驾驶舱脚本在 body 末尾执行。它运行前先不画旧外壳，免得闪一下；脚本自己失败时会停用这份样式，旧页面原样可用 */

/* ---------- 1. 令牌 ---------- */
:root {
  --bg-page: #F3F5F7; --bg-canvas: #E9EEF4; --bg-canvas-deep: #DDE5EE;
  --navy-900: #16243B; --navy-800: #1D2E4A; --navy-700: #2A3E5F;
  --steel: #4A6FA5; --slate: #7A8698; --cyan: #6E8FCB; --ice: #BFD2E8;
  --risk: #B9864E; --block: #B45C5C; --pass: #5E8A78; --ai: #6E8FCB;
  --warning-bg: rgba(185, 134, 78, .14);
  --text-strong: #1F2937; --text-body: #374151; --text-muted: #6B7280; --text-on-dark: #F8FAFC;
  --line: #D8DEE7; --line-strong: #BFC9D6; --line-on-dark: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .72); --glass-soft: rgba(255, 255, 255, .5);
  --shadow-card: 0 18px 40px rgba(22, 36, 59, .06); --shadow-dark: 0 24px 60px rgba(22, 36, 59, .18);
  --font: "Inter", "HarmonyOS Sans SC", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --chrome-h: 60px; --rail-w: 64px; --insp-w: 348px;

  /* app.css 沿用的旧变量名，接到新色板上。文字用的小字号标签取深一档的色，保证浅底上的对比度 */
  --bg: var(--bg-page);
  --card: var(--glass);
  --ink: var(--text-body);
  --muted: var(--text-muted);
  --red: #A04848; --red-bg: rgba(180, 92, 92, .12);
  --amber: #8A5D2B; --amber-bg: var(--warning-bg);
  --green: #3F6E5D; --green-bg: rgba(94, 138, 120, .14);
  --blue: #3F66A0; --blue-bg: rgba(110, 143, 203, .16);
  --violet: #6762A0; --violet-bg: rgba(111, 106, 168, .13);
  --side: transparent;
}

/* ---------- 2. 底 ---------- */
.ck { background: linear-gradient(180deg, #F5F7F9, #F1F4F7) fixed var(--bg-page); color: var(--text-body); font-family: var(--font); -webkit-font-smoothing: antialiased; }
.ck ::selection { background: rgba(110, 143, 203, .28); }
.ck :focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.ck .sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@keyframes ck-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ck-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.78); } }

/* ---------- 3. 外壳 ---------- */
.ck-chrome { position: sticky; top: 0; z-index: 40; height: var(--chrome-h); display: flex; align-items: center; gap: 16px; padding: 0 18px 0 14px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25); border-bottom: 1px solid rgba(216, 222, 231, .9); }
.ck-brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; text-align: left; }
.ck-mark { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--navy-900), var(--navy-800)); box-shadow: 0 8px 18px rgba(22, 36, 59, .22); }
.ck-mark svg { width: 19px; height: 19px; }
.ck-brand small { display: block; font-size: 10.5px; letter-spacing: .13em; color: var(--slate); line-height: 1.2; }
.ck-brand b { display: block; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--navy-900); line-height: 1.35; white-space: nowrap; }

.ck-search { position: relative; flex: 1 1 320px; max-width: 520px; margin: 0 auto; }
.ck-search > svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.ck-search input { width: 100%; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); padding: 0 62px 0 38px; font: inherit; font-size: 13px; color: var(--text-strong); transition: border-color .16s, box-shadow .16s, background .16s; }
.ck-search input::placeholder { color: var(--slate); }
.ck-search input:focus { outline: none; border-color: var(--steel); background: #fff; box-shadow: 0 0 0 4px rgba(110, 143, 203, .18); }
.ck-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 500 11px/1 var(--font); color: var(--slate); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; background: rgba(255, 255, 255, .7); }
.ck-search-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; padding: 8px; border-radius: 20px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-dark); animation: ck-in .14s ease-out; }
.ck-search-pop[hidden] { display: none; }
.ck-sp-group { padding: 8px 12px 4px; font-size: 11px; letter-spacing: .08em; color: var(--slate); }
.ck-sp-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 12px; font: inherit; font-size: 13px; color: var(--text-body); cursor: pointer; }
.ck-sp-item:hover, .ck-sp-item.on { background: rgba(110, 143, 203, .14); }
.ck-sp-item b { font-weight: 600; color: var(--text-strong); }
.ck-sp-item small { color: var(--muted); }
.ck-sp-item .ck-sp-tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-sp-empty { padding: 14px 12px 10px; color: var(--muted); font-size: 12.5px; }

.ck-chrome-right { display: flex; align-items: center; gap: 10px; flex: none; }
.ck-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 12.5px; color: var(--text-body); white-space: nowrap; }
.ck-pill select { border: 0; background: transparent; padding: 0 18px 0 2px; font: inherit; font-size: 12.5px; color: var(--navy-800); cursor: pointer; max-width: 120px; }
.ck-pill label { color: var(--slate); }
.ck-live { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.ck-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--pass); animation: ck-breathe 2.4s ease-in-out infinite; }
.ck-live.wait .ck-dot { background: var(--slate); }
.ck-live.warn .ck-dot { background: var(--risk); }
.ck-live.bad .ck-dot { background: var(--block); animation: none; }
.ck #startup-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
.ck #startup-status[data-ready="true"] { display: none; }
.ck-iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--navy-800); cursor: pointer; padding: 0; }
.ck-iconbtn svg { width: 17px; height: 17px; }
.ck-iconbtn:hover, .ck-iconbtn.on { border-color: var(--steel); color: var(--navy-900); }

.ck-body { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--insp-w); min-height: calc(100vh - var(--chrome-h)); transition: opacity .22s; }
.ck-body.no-insp { grid-template-columns: var(--rail-w) minmax(0, 1fr) 0; }
.ck-drawer-open .ck-body { opacity: .55; }

/* ---------- 4. 图标栏（原来的侧边导航，由 cockpit.js 补图标和提示文字） ---------- */
.ck nav.side { position: sticky; top: var(--chrome-h); align-self: start; width: var(--rail-w); height: calc(100vh - var(--chrome-h)); padding: 12px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, .5); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-right: 1px solid rgba(216, 222, 231, .8); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.ck nav.side .group { width: 24px; height: 1px; padding: 0; margin: 9px 0 7px; background: var(--line-strong); font-size: 0; letter-spacing: 0; color: transparent; overflow: hidden; }
.ck nav.side .group:first-child { visibility: hidden; margin-top: 0; }
.ck nav.side .foot { display: none; }
.ck nav.side button { position: relative; flex: none; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 14px; background: none; color: var(--slate); transition: background .16s, color .16s, box-shadow .16s, transform .16s; }
.ck nav.side button:hover { background: rgba(255, 255, 255, .92); color: var(--navy-800); transform: translateY(-1px); }
.ck nav.side button.on { background: linear-gradient(145deg, var(--navy-900), var(--navy-800)); color: #fff; font-weight: 500; box-shadow: 0 10px 22px rgba(22, 36, 59, .24); transform: none; }
.ck nav.side button svg { width: 20px; height: 20px; }
.ck nav.side .ck-ico { display: grid; place-items: center; }
.ck nav.side .ck-lab { position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-6px, -50%); z-index: 45; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--navy-900); color: #fff; font-size: 12px; font-weight: 400; letter-spacing: .01em; box-shadow: 0 10px 24px rgba(22, 36, 59, .24); opacity: 0; pointer-events: none; transition: opacity .14s, transform .14s; }
.ck nav.side button:hover .ck-lab, .ck nav.side button:focus-visible .ck-lab { opacity: 1; transform: translate(0, -50%); }
.ck nav.side button i { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--risk); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 16px; text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--bg-page); }
.ck nav.side button.on i { box-shadow: 0 0 0 2px var(--navy-900); }
.ck nav.side button i[hidden] { display: none; }   /* app.css 给徽标写死了 display，没有数字的空徽标会画成一个点 */
@media (max-height: 800px) {   /* 屏幕矮：图标排紧一点，11 个入口一屏放得下 */
  .ck nav.side { gap: 2px; padding-top: 8px; }
  .ck nav.side button { width: 38px; height: 38px; border-radius: 12px; }
  .ck nav.side button svg { width: 18px; height: 18px; }
  .ck nav.side .group { margin: 5px 0 3px; }
}

/* ---------- 5. 舞台与主内容 ---------- */
.ck main { min-width: 0; max-width: 1640px; padding: 20px 24px 48px; }
.ck main > .pane.on { animation: ck-in .16s ease-out; }

/* 焦点页（非总览）顶部的回主视图 + 链路轨道 */
.ck-focus-head { display: none; align-items: center; gap: 14px; min-height: 40px; margin-bottom: 14px; }
.ck-focus-head.on { display: flex; }
.ck-back { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--navy-800); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.ck-back:hover { border-color: var(--steel); }
.ck-crumb { min-width: 0; font-size: 13px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-crumb b { color: var(--navy-900); font-weight: 600; font-size: 14px; }
.ck-crumb i { font-style: normal; margin: 0 7px; color: var(--line-strong); }
.ck-track { display: flex; align-items: center; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.ck-step { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--muted); font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; transition: .16s; }
.ck-step em { font-style: normal; font-size: 10.5px; color: var(--slate); font-variant-numeric: tabular-nums; }
.ck-step:hover { border-color: var(--steel); color: var(--navy-800); }
.ck-step.rel { border-color: rgba(74, 111, 165, .55); color: var(--navy-800); }
.ck-step.cur { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: 0 8px 18px rgba(22, 36, 59, .22); }
.ck-step.cur em { color: var(--ice); }
.ck-track > i { flex: none; width: 14px; height: 1px; background: var(--line-strong); }
.ck-track > i.cur { background: var(--steel); }
.ck-loopico { flex: none; width: 26px; height: 26px; margin-left: 4px; border-radius: 50%; border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--slate); }
.ck-loopico svg { width: 13px; height: 13px; }
.ck-step-pop { position: fixed; z-index: 70; min-width: 190px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-dark); animation: ck-in .14s ease-out; }
.ck-step-pop[hidden] { display: none; }
.ck-step-pop .ck-h { padding: 6px 10px 4px; }
.ck-step-pop button { display: flex; width: 100%; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 10px; border-radius: 11px; font: inherit; font-size: 13px; color: var(--text-body); text-align: left; cursor: pointer; }
.ck-step-pop button:hover { background: rgba(110, 143, 203, .14); }
.ck-step-pop button small { margin-left: auto; color: var(--slate); font-size: 11.5px; }

/* ---------- 6. 右侧详情栈 ---------- */
.ck-inspector { position: sticky; top: var(--chrome-h); align-self: start; height: calc(100vh - var(--chrome-h)); overflow-y: auto; overflow-x: hidden; padding: 20px 20px 20px 4px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ck-body.no-insp .ck-inspector { display: none; }
.ck-card { background: var(--glass); border: 1px solid rgba(216, 222, 231, .92); border-radius: 24px; padding: 18px 20px; box-shadow: var(--shadow-card); min-width: 0; }
.ck-card.dark { background: linear-gradient(145deg, #16243B, #1D2E4A); color: var(--text-on-dark); border: 1px solid rgba(255, 255, 255, .12); border-radius: 28px; box-shadow: var(--shadow-dark); }
.ck-card.ghost { background: rgba(255, 255, 255, .38); border: 1px dashed rgba(122, 134, 152, .45); border-radius: 20px; box-shadow: none; }
.ck-card.swap { animation: ck-swap .2s ease-out; }
@keyframes ck-swap { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.ck-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--navy-900); letter-spacing: .02em; }
.ck-h small { font-weight: 400; color: var(--slate); font-size: 11.5px; letter-spacing: 0; }
.ck-h .ck-lnk { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--steel); cursor: pointer; }
.ck-h .ck-lnk:hover { color: var(--navy-900); }
.ck-eyebrow { font-size: 11px; letter-spacing: .12em; color: rgba(248, 250, 252, .6); margin-bottom: 6px; }
.ck-dhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ck-dhead .ck-eyebrow { margin-bottom: 0; }
.ck-lnk-dark { flex: none; border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: rgba(248, 250, 252, .72); cursor: pointer; white-space: nowrap; }
.ck-lnk-dark:hover { color: #fff; }
.ck-wheelbox { padding: 10px 6px 0; }
.ck-st-name { font-size: 20px; font-weight: 500; line-height: 1.3; color: #fff; letter-spacing: .01em; }
.ck-st-brief { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: rgba(248, 250, 252, .74); }
.ck-reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.ck-read { min-width: 0; padding: 9px 11px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-on-dark); }
.ck-read b { display: block; font-size: 18px; font-weight: 500; line-height: 1.25; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-read b.sm { font-size: 13.5px; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.ck-read span { display: block; margin-top: 3px; font-size: 11px; line-height: 1.45; color: rgba(248, 250, 252, .62); }
.ck-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ck-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-on-dark); font-size: 11.5px; color: rgba(248, 250, 252, .82); white-space: nowrap; }
.ck-chip.no { border-style: dashed; color: rgba(248, 250, 252, .55); }
.ck-chip.gold { border-color: rgba(185, 134, 78, .55); color: #E2BE8E; }
.ck-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ck-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .88); color: var(--navy-800); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: .16s; text-decoration: none; }
.ck-btn:hover { border-color: var(--steel); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(22, 36, 59, .1); }
.ck-btn.primary { background: linear-gradient(145deg, var(--navy-900), var(--navy-800)); border-color: transparent; color: #fff; }
.ck-btn.on-dark { background: rgba(255, 255, 255, .1); border-color: var(--line-on-dark); color: #fff; }
.ck-btn.on-dark:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .34); box-shadow: none; }
.ck-btn.on-dark.primary { background: #fff; border-color: #fff; color: var(--navy-900); }
.ck-btn svg { width: 14px; height: 14px; }
.ck-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.ck-btn.sm { height: 28px; padding: 0 11px; font-size: 12px; }

.ck-rows { display: flex; flex-direction: column; }
.ck-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border: 0; border-top: 1px solid rgba(216, 222, 231, .75); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 12px; }
.ck-row:first-child { border-top-color: transparent; }
.ck-row:hover { background: rgba(110, 143, 203, .1); border-top-color: transparent; }
.ck-row + .ck-row:hover { border-top-color: transparent; }
.ck-row + .ck-row:has(+ .ck-row:hover) { border-top-color: transparent; }
.ck-row-n { flex: none; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 11px; display: grid; place-items: center; background: rgba(110, 143, 203, .16); color: var(--navy-800); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ck-row-n.gold { background: var(--warning-bg); color: var(--amber); }
.ck-row-t { flex: 1; min-width: 0; }
.ck-row-t b { display: block; font-size: 13px; font-weight: 600; color: var(--text-strong); }
.ck-row-t small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-row-go { flex: none; color: var(--slate); font-size: 15px; }
.ck-empty { padding: 18px 8px 10px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.ck-empty svg { display: block; width: 44px; height: 44px; margin: 0 auto 8px; color: var(--ice); }
.ck-feed { display: flex; flex-direction: column; }
.ck-ev { display: flex; gap: 10px; padding: 9px 10px; border: 0; border-top: 1px solid rgba(216, 222, 231, .75); background: none; text-align: left; font: inherit; cursor: pointer; border-radius: 12px; }
.ck-ev:first-child { border-top-color: transparent; }
.ck-ev:hover { background: rgba(110, 143, 203, .1); }
.ck-ev-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--steel); }
.ck-ev-dot.gold { background: var(--risk); }
.ck-ev-dot.green { background: var(--pass); }
.ck-ev-t { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-body); }
.ck-ev-t b { font-weight: 600; color: var(--text-strong); }
.ck-ev-t span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.ck-ev time { flex: none; font-size: 11px; color: var(--slate); font-variant-numeric: tabular-nums; }
.ck-foot { padding: 2px 6px; font-size: 11.5px; line-height: 1.6; color: var(--slate); }
.ck-lnk { align-self: flex-start; margin: 0 0 -6px; border: 0; background: none; padding: 0 2px; font: inherit; font-size: 12px; color: var(--steel); cursor: pointer; text-align: left; }
.ck-lnk:hover { color: var(--navy-900); }

.ck-ringlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ck-ring { position: relative; padding: 0 0 14px 30px; }
.ck-ring:last-child { padding-bottom: 0; }
.ck-ring::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 1px; background: var(--line); }
.ck-ring:last-child::before { display: none; }
.ck-ring-no { position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-strong); color: var(--navy-800); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ck-ring.hot .ck-ring-no { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.ck-ring b { display: block; font-size: 13px; font-weight: 600; color: var(--text-strong); }
.ck-ring p { margin: 2px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.ck-ring details { margin: 6px 0 0; }
.ck-ring summary { font-size: 12px; font-weight: 500; color: var(--steel); }
.ck-ring dl { margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.ck-ring dt { color: var(--slate); }
.ck-ring dd { margin: 0 0 4px; color: var(--text-body); }
.ck-nextrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ck-ctx { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(110, 143, 203, .13); border: 1px solid rgba(110, 143, 203, .3); font-size: 12.5px; line-height: 1.6; color: var(--navy-800); }
.ck-ctx svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.ck-ctx-dark { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-on-dark); font-size: 12.5px; line-height: 1.6; color: #fff; }
.ck-note-row { display: flex; gap: 9px; margin-top: 10px; font-size: 12px; line-height: 1.6; color: rgba(248, 250, 252, .74); }
.ck-note-row b { flex: none; font-weight: 500; color: #fff; }
.ck-who { margin-left: 6px; font-size: 11.5px; font-weight: 400; color: var(--slate); }
.ck .hl { animation: ck-hl 1.8s ease-out; border-radius: 12px; }

/* ---------- 7. 总览：主视图画布 ---------- */
.ck #pane-overview.on { display: flex; flex-direction: column; gap: 16px; }
.ck-ov-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 2px 4px 0; }
.ck-ov-head h1 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: .01em; line-height: 1.2; color: var(--navy-900); }
.ck-ov-head p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.ck-hero { position: relative; height: clamp(420px, calc(100vh - 400px), 700px); border-radius: 28px; border: 1px solid rgba(216, 222, 231, .7);
  background: radial-gradient(85% 80% at 50% 46%, #EDEFFB 0%, #E4E7F5 58%, #E9EEF4 100%); box-shadow: var(--shadow-card); }
.ck-hero-stage { position: absolute; inset: 14px 18px; container-type: size; display: flex; align-items: center; justify-content: center; }
.ck-hero-frame { position: relative; width: min(100cqw, 172.75cqh); height: min(100cqh, 57.874cqw); }
@supports not (width: 1cqw) { .ck-hero-frame { width: 100%; height: auto; aspect-ratio: 1648 / 954; } }
.ck-hero-frame img { display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(0deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(0deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; user-select: none; -webkit-user-drag: none; }
.ck-hero-frame svg.ck-flows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ck-flow { fill: none; stroke: transparent; stroke-width: 1; }
.ck-hero:not(.ck-anim) .ck-flows circle { display: none; }
.ck-dot-glow { fill: rgba(110, 143, 203, .3); }
.ck-dot-core { fill: #fff; stroke: rgba(74, 111, 165, .9); stroke-width: 1.5; }
.ck-hs { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(110, 143, 203, .9); background: rgba(255, 255, 255, .28); display: grid; place-items: center; cursor: pointer; z-index: 2; transition: transform .18s, border-color .18s, box-shadow .18s; }
.ck-hs::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--steel); transition: background .18s, width .18s, height .18s; }
.ck-hs:hover, .ck-hs:focus-visible { transform: scale(1.2); border-color: var(--navy-800); box-shadow: 0 0 0 6px rgba(110, 143, 203, .2); z-index: 4; }
.ck-hs.on { transform: scale(1.14); border-color: var(--navy-900); box-shadow: 0 0 0 5px rgba(22, 36, 59, .14), 0 0 0 1.5px rgba(22, 36, 59, .55); z-index: 3; }
.ck-hs.on::after { width: 8px; height: 8px; background: var(--navy-900); }
.ck-hs.risk::before, .ck-hs.ai::before { content: ""; position: absolute; top: -5px; right: -5px; width: 9px; height: 9px; border-radius: 3px; border: 1.5px solid #fff; box-sizing: content-box; }
.ck-hs.risk::before { background: var(--risk); transform: rotate(45deg); }
.ck-hs.ai::before { background: var(--ai); border-radius: 50%; }
.ck-hs .ck-hlab { position: absolute; left: 50%; bottom: calc(100% + 9px); z-index: 5; padding: 5px 12px; border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(216, 222, 231, .95);
  font-size: 12px; font-weight: 500; color: var(--navy-800); box-shadow: 0 10px 24px rgba(22, 36, 59, .12); opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .16s, transform .16s; }
.ck-hs .ck-hlab small { margin-left: 6px; font-weight: 400; color: var(--slate); }
.ck-hs.lab-b .ck-hlab { bottom: auto; top: calc(100% + 9px); transform: translate(-50%, -4px); }
.ck-hs.lab-l .ck-hlab { left: auto; right: calc(-9px + 100%); bottom: auto; top: 50%; transform: translate(4px, -50%); }
.ck-hs.lab-l .ck-hlab small { display: none; }
.ck-hs:hover .ck-hlab, .ck-hs:focus-visible .ck-hlab, .ck-hs.on .ck-hlab { opacity: 1; transform: translate(-50%, 0); }
.ck-hs.lab-b:hover .ck-hlab, .ck-hs.lab-b.on .ck-hlab, .ck-hs.lab-b:focus-visible .ck-hlab { transform: translate(-50%, 0); }
.ck-hs.lab-l:hover .ck-hlab, .ck-hs.lab-l.on .ck-hlab, .ck-hs.lab-l:focus-visible .ck-hlab { transform: translate(0, -50%); }
.ck-hero-note { position: absolute; z-index: 3; max-width: 400px; font-size: 12px; line-height: 1.65; color: var(--slate); pointer-events: none; }
.ck-hero-note.tl { left: 10px; top: 6px; }
.ck-hero-note.tr { right: 10px; top: 6px; text-align: right; }
.ck-hero-note.bl { left: 10px; bottom: 6px; max-width: 430px; }
.ck-hero-note.bl .sub { color: var(--slate); }
.ck-legend { display: inline-flex; flex-wrap: wrap; gap: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(216, 222, 231, .8); color: var(--muted); pointer-events: auto; }
.ck-legend i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; }
.ck-legend i::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(110, 143, 203, .95); background: #fff; }
.ck-legend i.g::before { border: 0; border-radius: 2px; background: var(--risk); transform: rotate(45deg); }
.ck-legend i.a::before { border: 0; background: var(--ai); }

/* ---------- 8. 总览：读数条与底部数据卡 ---------- */
.ck .ck-kpis .stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; }
.ck .ck-kpis .stat { padding: 14px 16px; }
.ck-strip { border-radius: 24px; border: 1px solid rgba(216, 222, 231, .92); background: rgba(255, 255, 255, .6); box-shadow: var(--shadow-card); overflow: hidden; }
.ck-strip-head { display: flex; align-items: center; gap: 4px; padding: 10px 14px 0 14px; }
.ck-segbtn { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; transition: .16s; }
.ck-segbtn:hover { color: var(--navy-800); background: rgba(255, 255, 255, .8); }
.ck-segbtn.on { background: var(--navy-900); color: #fff; }
.ck-strip-body { padding: 6px 16px 14px; }
.ck-seg { display: none; }
.ck-seg.on { display: block; animation: ck-in .16s ease-out; }
.ck .ck-seg > .card { border: 0; box-shadow: none; background: transparent; padding: 10px 6px 0; margin: 0; }
.ck .ck-seg[data-seg="cost"] > .card { display: grid; grid-template-columns: minmax(300px, 5fr) minmax(380px, 7fr); gap: 14px 32px; align-items: start; }
.ck .ck-seg[data-seg="cost"] > .card > * { grid-column: 1 / -1; }
.ck .ck-seg[data-seg="cost"] .sliders { grid-column: 1; }
.ck .ck-seg[data-seg="cost"] .ck-cost-right { grid-column: 2; grid-row: 2; }   /* 和滑块同一行：左边调参数，右边看结果 */
.ck .ck-seg[data-seg="cost"] .sliders { grid-template-columns: 1fr 1fr; }
.ck .ck-seg[data-seg="cost"] #ov-cost-out .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ck-seg[data-seg="cost"] details.ck-more { grid-column: 1 / -1; }
.ck-seg[data-seg="cost"] details.ck-more summary { font-size: 12.5px; font-weight: 500; color: var(--steel); }
.ck-seg[data-seg="cost"] #ov-cost-curve .scroll { max-height: 150px; overflow: auto; }
.ck-seg[data-seg="layers"] .layers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ck-seg[data-seg="layers"] .layer { padding: 14px 14px 12px; }
.ck-seg[data-seg="layers"] .layer .hd b { font-size: 14.5px; }
.ck-seg[data-seg="layers"] .layer .what { min-height: 40px; }
.ck-seg[data-seg="layers"] .mchip { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 11px; }
.ck-seg[data-seg="layers"] .mchip .ck-ml { flex: 1 1 5em; min-width: 4.5em; }
.ck-seg[data-seg="layers"] .mchip b { margin-left: 0; white-space: nowrap; color: var(--navy-900); }
.ck-seg[data-seg="layers"] .mchip b.sm { white-space: normal; text-align: right; overflow-wrap: anywhere; font-size: 12.5px; }
.ck-seg[data-seg="layers"] .ck-flows { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 11.5px; line-height: 1.5; color: var(--slate); }
.ck-seg[data-seg="layers"] .ck-flows span { display: inline-flex; align-items: center; gap: 4px; }
.ck-seg[data-seg="layers"] .ck-flows b { font-weight: 600; color: var(--navy-800); }
.ck-seg[data-seg="layers"] .ck-flows i { font-style: normal; color: var(--steel); }
.ck-seg[data-seg="layers"] .ck-cap { margin-top: 12px; font-size: 12px; color: var(--muted); }
.ck-seg[data-seg="wf"] .grid3 { gap: 12px; }
.ck-seg[data-seg="wf"] .card.flush { padding: 16px 18px; }

/* ---------- 9. 链路：下一步条与带动作的提示 ---------- */
.ck-next { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .55); border: 1px dashed rgba(122, 134, 152, .5); animation: ck-in .2s ease-out; }
.ck-next > span.ck-next-t { display: inline-flex; align-items: center; gap: 6px; margin-right: 2px; font-size: 11.5px; letter-spacing: .1em; color: var(--slate); }
.ck-next > span.ck-next-t::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--steel); }
.ck-next .ck-next-why { flex-basis: 100%; font-size: 12px; line-height: 1.6; color: var(--muted); }
.ck-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: none; align-items: center; gap: 12px; max-width: min(760px, calc(100vw - 32px)); padding: 11px 12px 11px 18px; border-radius: 999px;
  background: rgba(22, 36, 59, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; font-size: 13px; box-shadow: 0 18px 44px rgba(22, 36, 59, .32); animation: ck-in .18s ease-out; }
.ck-toast.show { display: flex; }
.ck-toast-act { flex: none; height: 30px; padding: 0 13px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.ck-toast-act:hover { background: rgba(255, 255, 255, .28); }

/* ---------- 10. 抽屉：节点怎么工作 ---------- */
.ck-scrim { position: fixed; inset: var(--chrome-h) 0 0 0; z-index: 48; background: transparent; }
.ck-scrim[hidden] { display: none; }
.ck-drawer { position: fixed; top: var(--chrome-h); right: 0; bottom: 0; z-index: 50; width: min(520px, 100vw); display: flex; flex-direction: column;
  background: rgba(243, 245, 247, .86); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); border-left: 1px solid rgba(216, 222, 231, .95); box-shadow: -24px 0 60px rgba(22, 36, 59, .14); transform: translateX(104%); transition: transform .22s ease-out; }
.ck-drawer.open { transform: none; }
.ck-drawer[hidden] { display: none; }
.ck-dw-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 14px 24px; border-bottom: 1px solid rgba(216, 222, 231, .9); }
.ck-dw-head .ck-eyebrow { color: var(--slate); margin-bottom: 4px; }
.ck-dw-title { font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--navy-900); }
.ck-dw-body { flex: 1; overflow-y: auto; padding: 18px 20px 18px 24px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.ck-dw-sec { display: flex; align-items: baseline; gap: 8px; font-size: 12px; letter-spacing: .1em; color: var(--slate); margin: 4px 2px -4px; }
.ck-dw-sec:first-child { margin-top: 0; }
.ck-dw-sec span { letter-spacing: 0; }
.ck-dw-p { margin: 0 2px; font-size: 12.5px; line-height: 1.75; color: var(--text-body); }
.ck-card-flat { padding: 8px 10px; border-radius: 18px; }
.ck-dw-body details summary { font-size: 12px; }
.ck-dw-body #ck-loopdetails { margin: 0; }
.ck-plug { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; }
.ck-plug-ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(110, 143, 203, .16); color: var(--navy-800); }
.ck-plug-ico svg { width: 17px; height: 17px; }
.ck-plug.on { background: rgba(255, 255, 255, .82); }
.ck-plug.on .ck-plug-ico { background: var(--navy-900); color: #fff; }
.ck-plug-t { flex: 1; min-width: 0; }
.ck-plug-t b { font-size: 13.5px; font-weight: 600; color: var(--text-strong); }
.ck-plug-t b code { margin-left: 6px; font-weight: 400; }
.ck-plug-t p { margin: 3px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.ck-plug-s { flex: none; }
.ck-dw-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 20px 18px 24px; border-top: 1px solid rgba(216, 222, 231, .9); }
.ck-dw-foot .ck-foot { flex: 1; min-width: 180px; }
.ck-dw-foot .ck-btn { margin-left: auto; }

/* ---------- 11. 给 app.css 的组件换肤 ---------- */
.ck .card { background: var(--glass); border: 1px solid rgba(216, 222, 231, .92); border-radius: 24px; padding: 20px 22px; box-shadow: var(--shadow-card); margin-bottom: 16px; }
.ck .card.flush { margin-bottom: 0; }
.ck .card .card { border-radius: 18px; box-shadow: none; padding: 16px 18px; }
.ck .card h2 { font-size: 17px; font-weight: 500; letter-spacing: .01em; color: var(--navy-900); margin-bottom: 12px; }
.ck .card h2 small { font-size: 12.5px; color: var(--slate); }
.ck .card h3 { font-size: 13.5px; font-weight: 600; color: var(--navy-800); margin: 16px 0 6px; }
.ck label { color: var(--muted); }
.ck textarea { border: 1px solid var(--line-strong); border-radius: 16px; padding: 12px 14px; background: rgba(255, 255, 255, .78); line-height: 1.7; transition: border-color .16s, box-shadow .16s; }
.ck textarea:focus, .ck input[type=text]:focus, .ck select:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 4px rgba(110, 143, 203, .18); }
.ck input[type=text], .ck input[type=number] { border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px 11px; background: rgba(255, 255, 255, .78); color: var(--text-strong); }
.ck select { border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px 10px; background: rgba(255, 255, 255, .78); color: var(--text-strong); }
/* 「标签 + 下拉框」并排的小组：舞台窄了（右侧多了详情栈），改成标签在上、控件撑满，长选项不再溢出卡片 */
.ck .row > span:has(> select), .ck .row > span:has(> input[type=text]) { display: inline-flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; max-width: 100%; }
.ck .row > span:has(> select) > select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.ck input[type=range] { accent-color: var(--navy-800); }
.ck input[type=checkbox], .ck input[type=radio] { accent-color: var(--navy-800); }
.ck button.primary, .ck button.ghost, .ck button.danger, .ck button.warn { border-radius: 999px; padding: 8px 18px; font-weight: 500; transition: transform .16s, box-shadow .16s, border-color .16s, background .16s; }
.ck button.primary { background: linear-gradient(145deg, var(--navy-900), var(--navy-800)); box-shadow: 0 10px 22px rgba(22, 36, 59, .18); }
.ck button.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(22, 36, 59, .24); }
.ck button.primary:disabled { background: #B8C6DD; box-shadow: none; }
.ck button.ghost { background: rgba(255, 255, 255, .82); color: var(--navy-800); border: 1px solid var(--line); }
.ck button.ghost:hover:not(:disabled) { border-color: var(--steel); }
.ck button.ghost:disabled { color: #AAB0B8; }
.ck button.danger { background: var(--block); }
.ck button.warn { background: var(--risk); }
.ck button.sm { padding: 4px 12px; font-size: 12.5px; font-weight: 500; }
.ck .chips { gap: 8px; }
.ck .chip { border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; background: rgba(255, 255, 255, .82); color: var(--text-body); transition: .16s; }
.ck .chip:hover { border-color: var(--steel); background: #fff; color: var(--navy-900); }
.ck .chip i { color: var(--slate); }
.ck .verdict { background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 18px; padding: 14px 18px; color: var(--text-body); }
.ck .verdict.block { border-left-color: var(--block); }
.ck .verdict.review { border-left-color: var(--risk); }
.ck .verdict.pass { border-left-color: var(--pass); }
.ck .verdict .big { font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.ck .verdict.block .big { color: var(--red); }
.ck .verdict.review .big { color: var(--amber); }
.ck .verdict.pass .big { color: var(--green); }
.ck .verdict .small { opacity: 1; color: var(--muted); }
.ck .text { border: 1px solid rgba(216, 222, 231, .9); border-radius: 16px; background: rgba(255, 255, 255, .66); padding: 12px 14px; line-height: 1.95; }
.ck mark.v { background: rgba(180, 92, 92, .16); text-decoration-color: var(--red); }
.ck mark.e { background: rgba(94, 138, 120, .16); color: var(--green); }
.ck mark.w { background: rgba(185, 134, 78, .18); color: var(--amber); }
.ck mark.c { background: rgba(110, 143, 203, .16); color: var(--blue); }
.ck mark.d { background: rgba(111, 106, 168, .15); color: var(--violet); }
.ck table { font-size: 13px; }
.ck th { color: var(--slate); font-weight: 500; font-size: 12px; letter-spacing: .02em; background: transparent; border-bottom: 1px solid var(--line-strong); }
.ck td { border-bottom: 1px solid rgba(216, 222, 231, .85); }
.ck tr.click { cursor: pointer; }
.ck tr.click:hover { background: rgba(110, 143, 203, .08); }
.ck tr.sel { background: rgba(110, 143, 203, .13); }
.ck #cs-table td:nth-child(-n+2), .ck #cs-table td:nth-child(n+4):nth-child(-n+6) { white-space: nowrap; }   /* 判例表：序号、判例、类型、涉 AI、处罚不逐字折行，放不下就横向滚动 */
.ck #rv-task table td:nth-child(-n+4), .ck #rv-task table td:nth-child(7) { white-space: nowrap; }            /* 复核任务的成员表同理 */
.ck .tag { border-radius: 999px; padding: 1px 9px; font-weight: 500; }
.ck .tag.src, .ck .tag.st-none, .ck .tag.queued, .ck .tag.res-na { background: rgba(122, 134, 152, .14); color: #596273; }
.ck .stats { gap: 12px; margin: 14px 0; }
.ck .stat { border: 1px solid rgba(216, 222, 231, .92); border-radius: 18px; padding: 12px 14px; background: var(--glass); box-shadow: 0 12px 28px rgba(22, 36, 59, .04); }
.ck .stat .n { font-size: 22px; font-weight: 600; color: var(--navy-900); letter-spacing: -.005em; overflow-wrap: anywhere; }
.ck-nb { white-space: nowrap; }
.ck .stat .l { font-size: 12px; color: var(--muted); }
.ck .stat.click { transition: .16s; }
.ck .stat.click:hover { transform: translateY(-2px); border-color: var(--steel); box-shadow: 0 14px 30px rgba(22, 36, 59, .08); }
.ck .gate { border-radius: 16px; background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); font-size: 13px; }
.ck .gate.ok { color: var(--green); border-left-color: var(--pass); }
.ck .gate.wait { color: var(--amber); border-left-color: var(--risk); }
.ck .gate.stop { color: var(--red); border-left-color: var(--block); }
.ck .lost, .ck .note, .ck .caution { border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); background: rgba(255, 255, 255, .72); font-size: 12.5px; line-height: 1.7; }
.ck .lost { border-left-color: var(--risk); color: var(--text-body); }
.ck .note { border-left-color: var(--pass); color: var(--text-body); }
.ck .caution { border-left-color: var(--risk); color: var(--text-body); }
.ck .draft { border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--pass); background: rgba(255, 255, 255, .72); }
.ck .empty { color: var(--slate); padding: 38px 0; }
.ck .demo, .ck .muted { color: var(--muted); }
.ck code { background: rgba(122, 134, 152, .12); border-radius: 6px; padding: 1px 6px; color: var(--navy-800); }
.ck pre { border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.ck details { margin: 14px 0; }
.ck summary { font-weight: 500; color: var(--navy-800); }
.ck .list { border-radius: 16px; border-color: var(--line-strong); background: rgba(255, 255, 255, .6); }
.ck .list .it { padding: 10px 12px; transition: background .14s; }
.ck .list .it:hover { background: rgba(110, 143, 203, .08); }
.ck .list .it.sel { background: rgba(110, 143, 203, .16); }
.ck .list .it.hl { animation: ck-hl 1.8s ease-out; }
@keyframes ck-hl { 0%, 35% { background: rgba(185, 134, 78, .3); } 100% { background: transparent; } }
.ck .mchip { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .66); padding: 5px 11px; }
.ck .mchip b { margin-left: 0; color: var(--navy-900); }   /* inline-flex：整块换行，不会标签和数字被拆到两行、边框画成两段弧 */
.ck .layer { border-radius: 18px; border: 1px solid rgba(216, 222, 231, .92); background: rgba(255, 255, 255, .66); box-shadow: 0 10px 24px rgba(22, 36, 59, .04); }
.ck .layer .hd b { color: var(--navy-900); }
.ck .arrow { color: var(--slate); }
.ck .bar .tr { background: rgba(122, 134, 152, .16); border-radius: 999px; height: 10px; }
.ck .bar .fl { background: var(--navy-800); border-radius: 999px; }
.ck .bar.fam .fl { background: var(--pass); }
.ck .stepper { padding: 8px 0 12px; }
.ck .step { border: 1px solid rgba(216, 222, 231, .92); border-radius: 16px; background: rgba(255, 255, 255, .74); box-shadow: 0 10px 24px rgba(22, 36, 59, .04); }
.ck .step:after { color: var(--line-strong); }
.ck .step .code { color: var(--slate); }
.ck .step b { color: var(--navy-900); }
.ck .step .who { color: var(--steel); }
.ck .slot { border-radius: 16px; border: 1px solid rgba(216, 222, 231, .92); background: rgba(255, 255, 255, .6); }
.ck .plug { border-top-color: var(--line); }
.ck .comp { border-radius: 18px; border: 1px solid rgba(74, 111, 165, .45); background: rgba(110, 143, 203, .12); }
.ck .progress { background: rgba(122, 134, 152, .18); border-radius: 999px; height: 6px; }
.ck .progress .fl { background: var(--navy-800); border-radius: 999px; }
.ck .risks { gap: 14px; }
.ck .risk { border-radius: 18px; border: 1px solid rgba(216, 222, 231, .92); border-top-width: 4px; background: rgba(255, 255, 255, .7); box-shadow: 0 10px 24px rgba(22, 36, 59, .04); }
.ck .risk.done { border-top-color: var(--pass); }
.ck .risk.partial { border-top-color: var(--risk); }
.ck .risk.planned { border-top-color: var(--line-strong); }
.ck .risk h3 { color: var(--navy-900); margin-top: 0; font-size: 15px; font-weight: 500; }
.ck .rate { background: rgba(122, 134, 152, .16); border-radius: 999px; }
.ck .rate i { background: var(--pass); border-radius: 999px; }
.ck .rate.mid i { background: var(--risk); }
.ck .rate.low i { background: var(--block); }
.ck .kv dt { color: var(--slate); }

/* ---------- 12. 窄屏与减少动效 ---------- */
@media (max-width: 1360px) { .ck-brand small { display: none; } .ck-live { max-width: 210px; } }
@media (max-width: 1279px) {
  .ck-body, .ck-body.no-insp { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  /* 窄屏：详情栈改成从右侧盖下来的浮层，默认收起（免得一打开就挡住内容），用顶栏的按钮开关 */
  .ck-inspector { position: fixed; top: var(--chrome-h); right: 0; bottom: 0; z-index: 46; width: min(380px, 100vw); height: auto; padding: 16px; background: rgba(243, 245, 247, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: -18px 0 50px rgba(22, 36, 59, .16); }
  .ck .ck-kpis .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ck-track { display: none; }
}
@media (max-width: 900px) {
  .ck-search kbd { display: none; } .ck-live { display: none; }
  .ck-body, .ck-body.no-insp { grid-template-columns: minmax(0, 1fr); }
  .ck nav.side { position: sticky; top: var(--chrome-h); z-index: 30; width: 100%; height: 52px; flex-direction: row; justify-content: center; padding: 4px 8px; border-right: 0; border-bottom: 1px solid rgba(216, 222, 231, .9); }
  .ck nav.side .group { width: 1px; height: 24px; margin: 0 5px; }
  .ck .ck-kpis .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-seg[data-seg="cost"] > .card { grid-template-columns: 1fr; }
  .ck-seg[data-seg="layers"] .layers { grid-template-columns: 1fr; }
  .ck-ov-head h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ck *, .ck *::before, .ck *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
