  /* ============================================================
   * 设计系统 v3（大厂质感）
   * 交互 accent：琥珀金（唯一） | 数据语义色：8 分类 + 3 状态
   * 间距：4px 网格（--sp-1..8）| 圆角：sm 6 / md 10 / lg 14 / xl 18
   * 阴影：双层体系 | 动效：统一为响应、进入与抽屉三类曲线
   * 亮色模式：跟随系统 | 数字：tabular-nums 防跳动
   * z-index：topbar 100 / banner 50 / modal 200 / toast 300
   * ============================================================ */
  :root {
    --bg: #0b0b10;
    --surface: #14141b;
    --surface-2: #1b1b24;
    --surface-3: #22222d;
    --border: #26262f;
    --border-strong: #3d3d4a;
    --text: #e9e9ee;
    --text-2: #a3a3b0;
    --text-3: #85858f;
    --accent: #e8a33d;
    --accent-ink: #1a1205;
    --accent-soft: rgba(232, 163, 61, 0.12);
    --danger: #f87171;
    --ok: #4ade80;
    --doing: #38bdf8;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.28), 0 1px 3px rgba(0,0,0,0.2);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.25);
    --font: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --display: "Bahnschrift", "Segoe UI Variable", "Segoe UI", "PingFang SC", sans-serif;
    --mono: "Cascadia Code", "Cascadia Mono", Consolas, monospace;
    --topbar-h: 60px;

    /* 动效 scale：响应 / 进入 / 抽屉 */
    --ease-std: var(--ease-out);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
    --t-instant: 100ms;
    --t-quick: 180ms;
    --t-normal: 280ms;

    /* 字体尺度（5 级 type scale） */
    --fs-d1: clamp(34px, 5.2vw, 48px);    /* hero / page title */
    --fs-d2: 30px;                          /* banner title */
    --fs-t1: 22px;                          /* card title */
    --fs-t2: 17px;                          /* section / list name */
    --fs-b: 15px;                           /* body */
    --fs-s: 13px;                           /* small */
    --fs-c: 11.5px;                         /* caption */
    --lh-tight: 1.05;
    --lh-snug: 1.25;
    --lh-normal: 1.5;
    --lh-loose: 1.75;
    --tr-tight: -0.02em;
    --tr-tighter: -0.01em;
    --tr-normal: 0;
    --tr-wide: 0.08em;
    --tr-mega: 0.14em;
  }
  @media (prefers-color-scheme: light) {
    :root {
      --bg: #f7f7f8; --surface: #ffffff; --surface-2: #f2f2f5; --surface-3: #e9e9ee;
      --border: #e3e3e9; --border-strong: #c8c8d2;
      --text: #1c1c22; --text-2: #565660; --text-3: #6f6f7a;
      --accent: #b45309; --accent-ink: #ffffff; --accent-soft: rgba(180, 83, 9, 0.10);
      --danger: #dc2626; --ok: #16a34a; --doing: #0284c7;
      --shadow-sm: 0 1px 2px rgba(20,20,30,0.06);
      --shadow-md: 0 4px 16px rgba(20,20,30,0.08), 0 1px 3px rgba(20,20,30,0.05);
      --shadow-lg: 0 16px 48px rgba(20,20,30,0.14), 0 4px 12px rgba(20,20,30,0.07);
    }
  }

  /* ========== 主题系统（data-theme） ========== */
  html[data-theme="dark"] {
    --bg: #0b0b10; --surface: #14141b; --surface-2: #1b1b24; --surface-3: #22222d;
    --border: #26262f; --border-strong: #3d3d4a;
    --text: #e9e9ee; --text-2: #a3a3b0; --text-3: #85858f;
    --accent: #e8a33d; --accent-ink: #1a1205; --accent-soft: rgba(232, 163, 61, 0.12);
    --danger: #f87171; --ok: #4ade80; --doing: #38bdf8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.28), 0 1px 3px rgba(0,0,0,0.2);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.25);
  }
  html[data-theme="light"] {
    --bg: #faf9f6; --surface: #ffffff; --surface-2: #f5f3ef; --surface-3: #ebe8e2;
    --border: #e7e3db; --border-strong: #cfc8bb;
    --text: #221d16; --text-2: #5d5649; --text-3: #857d6f;
    --accent: #c2410c; --accent-ink: #ffffff; --accent-soft: rgba(194, 65, 12, 0.12);
    --danger: #dc2626; --ok: #16a34a; --doing: #0284c7;
    --shadow-sm: 0 1px 2px rgba(70,55,30,0.07);
    --shadow-md: 0 4px 16px rgba(70,55,30,0.10), 0 1px 3px rgba(70,55,30,0.06);
    --shadow-lg: 0 16px 48px rgba(70,55,30,0.16), 0 4px 12px rgba(70,55,30,0.08);
  }
  html[data-theme="aurora"] {
    --bg: #0c0d1f; --surface: #171934; --surface-2: #1f2144; --surface-3: #282b56;
    --border: #2c2f58; --border-strong: #424573;
    --text: #eceaf7; --text-2: #b3b0d0; --text-3: #8d89ae;
    --accent: #5eb0ff; --accent-ink: #08122a; --accent-soft: rgba(94, 176, 255, 0.14);
    --danger: #f87171; --ok: #4ade80; --doing: #22d3ee;
    --shadow-sm: 0 1px 2px rgba(0,0,10,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,16,0.35), 0 1px 3px rgba(0,0,10,0.25);
    --shadow-lg: 0 16px 48px rgba(0,0,20,0.5), 0 4px 12px rgba(0,0,12,0.3);
  }
  html[data-theme="forest"] {
    --bg: #0d1410; --surface: #15221a; --surface-2: #1b2b21; --surface-3: #223527;
    --border: #26392c; --border-strong: #38513f;
    --text: #e9f2ea; --text-2: #abc3b0; --text-3: #7f9a85;
    --accent: #a3d977; --accent-ink: #12200a; --accent-soft: rgba(163, 217, 119, 0.14);
    --danger: #f87171; --ok: #4ade80; --doing: #38bdf8;
    --shadow-sm: 0 1px 2px rgba(0,10,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,12,0,0.35), 0 1px 3px rgba(0,8,0,0.25);
    --shadow-lg: 0 16px 48px rgba(0,14,0,0.5), 0 4px 12px rgba(0,10,0,0.3);
  }

  /* 8 分类语义色 */
  .c-ai { --cat: #c4b5fd; }
  .c-hw { --cat: #6ee7b7; }
  .c-fe { --cat: #fda4af; }
  .c-ds { --cat: #7dd3fc; }
  .c-os { --cat: #fcd34d; }
  .c-oc { --cat: #5eead4; }
  .c-tu { --cat: #fdba74; }
  .c-ot { --cat: #d4d4d8; }
  .c-inbox { --cat: #f0abfc; }
  html[data-theme="light"] .c-ai { --cat: #7c3aed; }
  html[data-theme="light"] .c-hw { --cat: #059669; }
  html[data-theme="light"] .c-fe { --cat: #e11d48; }
  html[data-theme="light"] .c-ds { --cat: #0284c7; }
  html[data-theme="light"] .c-os { --cat: #d97706; }
  html[data-theme="light"] .c-oc { --cat: #0d9488; }
  html[data-theme="light"] .c-tu { --cat: #ea580c; }
  html[data-theme="light"] .c-ot { --cat: #52525b; }
  html[data-theme="light"] .c-inbox { --cat: #a21caf; }
  html[data-theme="aurora"] .c-ai { --cat: #a78bfa; }
  html[data-theme="aurora"] .c-hw { --cat: #6ee7b7; }
  html[data-theme="aurora"] .c-fe { --cat: #f9a8d4; }
  html[data-theme="aurora"] .c-ds { --cat: #7dd3fc; }
  html[data-theme="aurora"] .c-os { --cat: #fcd34d; }
  html[data-theme="aurora"] .c-oc { --cat: #5eead4; }
  html[data-theme="aurora"] .c-tu { --cat: #fdba74; }
  html[data-theme="aurora"] .c-ot { --cat: #b0aecb; }
  html[data-theme="aurora"] .c-inbox { --cat: #e879f9; }
  html[data-theme="forest"] .c-ai { --cat: #c4b5fd; }
  html[data-theme="forest"] .c-hw { --cat: #6ee7b7; }
  html[data-theme="forest"] .c-fe { --cat: #fda4af; }
  html[data-theme="forest"] .c-ds { --cat: #7dd3fc; }
  html[data-theme="forest"] .c-os { --cat: #fcd34d; }
  html[data-theme="forest"] .c-oc { --cat: #5eead4; }
  html[data-theme="forest"] .c-tu { --cat: #fdba74; }
  html[data-theme="forest"] .c-ot { --cat: #8fa896; }
  html[data-theme="forest"] .c-inbox { --cat: #d8b4fe; }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scrollbar-gutter: stable; overflow-x: hidden; }
  body {
    background: var(--bg); color: var(--text);
    font-family: var(--font); font-size: 15px; line-height: 1.5;
    min-height: 100vh; overflow-x: hidden;
    transition: background-color 0.24s ease, color 0.24s ease;
  }
  img { display: block; }

  /* ========== 主题氛围层（静态光晕，避免长期占用 GPU） ========== */
  .ambient, .ambient2 {
    position: fixed; inset: -25%; z-index: -2; pointer-events: none;
    filter: blur(80px); opacity: 0;
    transition: opacity 0.24s ease;
  }
  html[data-theme="dark"] .ambient { opacity: 0.5; background: radial-gradient(420px 300px at 20% 10%, rgba(232,163,61,0.16), transparent 70%), radial-gradient(520px 380px at 80% 20%, rgba(167,139,250,0.10), transparent 70%); }
  html[data-theme="dark"] .ambient2 { opacity: 0.35; background: radial-gradient(600px 400px at 70% 90%, rgba(56,189,248,0.08), transparent 70%); }
  html[data-theme="aurora"] .ambient { opacity: 0.7; background: radial-gradient(520px 360px at 15% 5%, rgba(124,58,237,0.35), transparent 70%), radial-gradient(600px 420px at 85% 15%, rgba(37,99,235,0.30), transparent 70%); }
  html[data-theme="aurora"] .ambient2 { opacity: 0.55; background: radial-gradient(700px 500px at 50% 100%, rgba(34,211,238,0.22), transparent 70%); }
  html[data-theme="forest"] .ambient { opacity: 0.5; background: radial-gradient(520px 360px at 15% 5%, rgba(22,101,52,0.35), transparent 70%), radial-gradient(600px 420px at 85% 15%, rgba(163,217,119,0.12), transparent 70%); }
  html[data-theme="forest"] .ambient2 { opacity: 0.4; background: radial-gradient(700px 500px at 50% 100%, rgba(20,83,45,0.35), transparent 70%); }
  html[data-theme="light"] .ambient { opacity: 0.35; background: radial-gradient(520px 360px at 15% 5%, rgba(251,146,60,0.16), transparent 70%); }
  html[data-theme="light"] .ambient2 { opacity: 0.25; background: radial-gradient(600px 420px at 85% 15%, rgba(249,115,22,0.09), transparent 70%); }

  /* 滚动条（大厂细节） */
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid var(--bg); }
  ::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

  .demo-banner {
    position: relative; z-index: 110; padding: 8px var(--sp-4);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 36%, var(--border));
    background: color-mix(in srgb, var(--accent) 12%, var(--bg));
    color: var(--text-2); font-size: 12px;
  }
  .demo-banner > div {
    max-width: 1280px; margin: 0 auto; display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
  }
  .demo-banner strong { color: var(--accent); }
  .demo-banner-actions { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
  .demo-banner a { color: var(--text); font-weight: 700; text-decoration: none; }
  .demo-banner a:hover { color: var(--accent); }

  /* ========== 顶栏 ========== */
  .topbar {
    position: sticky; top: 0; z-index: 100; height: var(--topbar-h);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--border);
  }
  .topbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
    opacity: 0.4; pointer-events: none;
  }
  .topbar-inner {
    max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 var(--sp-5);
    display: flex; align-items: center; gap: 12px;
  }
  .brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
  .brand .logo {
    width: 30px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }
  .brand:hover .logo { transform: rotate(-8deg) scale(1.05); box-shadow: 0 0 18px var(--accent-soft); }
  .brand .txt { display: flex; flex-direction: column; line-height: 1.15; }
  .brand .t { font-family: var(--display); font-size: var(--fs-t2); font-weight: 700; letter-spacing: var(--tr-tighter); }
  .brand .s { font-size: var(--fs-c); color: var(--text-3); letter-spacing: var(--tr-mega); }
  .brand .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--text-3);
    margin-left: 2px; align-self: center; flex-shrink: 0;
    transition: background 0.24s ease;
  }
  .brand .dot.ok { background: var(--ok); }
  .brand .dot.err { background: var(--danger); }
  .svc-state {
    display: inline-flex; align-items: center; gap: 7px; margin-left: 3px; padding: 5px 8px;
    border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
    color: var(--text-3); font: 700 9px var(--font); white-space: nowrap; cursor: pointer;
  }
  .svc-state:hover { border-color: var(--border-strong); color: var(--text-2); }
  .svc-state[data-status="online"] { color: var(--status-ok-text, var(--ok)); }
  .svc-state[data-status="demo"] { color: var(--accent); }
  .svc-state[data-status="offline-cache"], .svc-state[data-status="data-error"], .svc-state[data-status="offline"] { color: var(--status-danger-text, var(--danger)); }
  .svc-state .dot { margin: 0; }
  .search { flex: 1; min-width: 160px; position: relative; }
  .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; transition: color 0.2s ease; }
  .search input {
    width: 100%; padding: 8px 14px 8px 36px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text); font-size: 14px; font-family: var(--font); outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  .search input:hover { border-color: var(--border-strong); }
  .search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
  .search input:focus + svg, .search:focus-within svg { color: var(--accent); }
  .search input::placeholder { color: var(--text-3); }

  .view-switch { position: relative; display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
  .view-switch .vs-slider {
    position: absolute; top: 3px; bottom: 3px; left: 3px; width: 52px;
    background: var(--surface-3); border-radius: calc(var(--radius) - 3px);
    transition: transform 0.28s var(--ease);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
  }
  .view-switch button {
    position: relative; z-index: 1; border: none; background: transparent;
    color: var(--text-3); font-size: 13.5px; padding: 7px 16px; cursor: pointer;
    font-family: var(--font); min-width: 52px;
    transition: color 0.2s ease;
  }
  .view-switch button.active { color: var(--text); }

  .load { display: flex; align-items: center; gap: var(--sp-2); }
  .load > .icon-btn { display: none; }
  .load .fname { display: none; }
  .more-wrap { display: block; position: relative; }
  .more-btn { font-weight: 700; letter-spacing: 1px; }
  .more-panel {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 120;
    min-width: 150px; padding: 8px; border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); background: var(--surface-2); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.97); pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .product-nav {
    display: flex; align-items: center; gap: 3px; padding: 3px;
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  }
  .product-nav-item {
    display: flex; align-items: center; gap: 8px; min-width: 116px; padding: 5px 9px;
    border: 0; border-radius: calc(var(--radius-lg) - 4px); background: transparent;
    color: var(--text-3); cursor: pointer; font-family: var(--font); text-align: left;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  }
  .product-nav-item:hover { color: var(--text); background: var(--surface); }
  .product-nav-item:active { transform: scale(0.98); }
  .product-nav-item.active {
    color: var(--text); background: var(--surface-3); box-shadow: var(--shadow-sm);
  }
  .product-nav-item > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
  .product-nav-item strong { font-size: 13px; font-weight: 700; white-space: nowrap; }
  .product-nav-item small { margin-top: 3px; color: var(--text-3); font-size: 9px; letter-spacing: 0.06em; white-space: nowrap; }
  .product-nav-step {
    display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px;
    border: 1px solid var(--border); border-radius: 7px; color: var(--text-3); font: 700 9px var(--mono);
  }
  .product-nav-item.active .product-nav-step { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: var(--accent-soft); color: var(--accent); }
  .more-panel.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .more-panel-title { padding: 3px 10px 7px; color: var(--text-3); font: 700 9px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
  .more-panel button {
    width: 100%; padding: 9px 10px; border: 0; border-radius: var(--radius);
    background: transparent; color: var(--text-2); text-align: left; font: 13px var(--font); cursor: pointer;
  }
  .more-panel button:hover, .more-panel button:focus-visible { background: var(--surface-3); color: var(--text); }
  .btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 15px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text); font-size: 13.5px; cursor: pointer; font-family: var(--font);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
  }
  .btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
  .btn:active { transform: scale(0.97); }
  .btn.primary {
    background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 25%, transparent);
  }
  .btn.primary:hover { filter: brightness(1.07); box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
  .btn.primary:active { filter: brightness(0.96); }
  .btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
  .btn svg { flex-shrink: 0; }
  .fname { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* ========== 主题切换 ========== */
  .theme-wrap { position: relative; }
  .theme-btn { width: 36px; padding: 8px 0; justify-content: center; }
  .theme-panel {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 120;
    background: var(--surface-2); border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); padding: 10px;
    box-shadow: var(--shadow-lg); min-width: 170px;
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.97); pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .theme-panel.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .theme-panel .tp-t { font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; padding: 2px 8px 8px; text-transform: uppercase; }
  .theme-panel .tp-item {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border: none; background: transparent; border-radius: var(--radius);
    color: var(--text-2); font-size: 13px; cursor: pointer; font-family: var(--font);
    transition: background 0.15s ease, color 0.15s ease;
  }
  .theme-panel .tp-item:hover { background: var(--surface-3); color: var(--text); }
  .theme-panel .tp-item.active { color: var(--text); font-weight: 600; }
  .theme-panel .tp-item .sw {
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
    border: 2px solid var(--border-strong); box-shadow: var(--shadow-sm);
  }
  .theme-panel .tp-item.active .sw { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
  .sw-dark { background: linear-gradient(135deg, #14141b, #0b0b10 60%, #e8a33d); }
  .sw-light { background: linear-gradient(135deg, #ffffff, #faf8f5 60%, #c2410c); }
  .sw-aurora { background: linear-gradient(135deg, #1e1b4b, #312e81 50%, #5eb0ff); }
  .sw-forest { background: linear-gradient(135deg, #14532d, #0d1410 55%, #a3d977); }

  /* ========== 统计条 ========== */
  .statsbar {
    max-width: 1440px; margin: 0 auto; padding: var(--sp-4) var(--sp-5) 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 2fr;
    gap: var(--sp-3);
  }
  .statsbar[hidden] { display: none !important; }
  .stat {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 16px;
    display: flex; flex-direction: column; gap: 3px;
    transition: border-color 0.2s ease, transform 0.2s var(--ease);
  }
  .stat:hover { border-color: var(--border-strong); transform: translateY(-1px); }
  .stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sc, var(--text-3)); opacity: 0.85; }
  .stat.total { --sc: var(--accent); }
  .stat.pending { --sc: var(--accent); }
  .stat.doing { --sc: var(--doing); }
  .stat.done { --sc: var(--ok); }
  .stat .lbl { font-size: 11.5px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
  .stat .num {
    font-family: var(--mono); font-size: 24px; font-weight: 700; line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
  .stat.total .num { color: var(--text); }
  .stat.pending .num { color: var(--accent); }
  .stat.doing .num { color: var(--doing); }
  .stat.done .num { color: var(--ok); }
  .stat .sub { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
  .bar-wrap { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 4px; min-width: 120px; }
  .bar-wrap .bl { font-size: 11.5px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
  .bar-track { height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
  .bar {
    width: 100%; height: 100%; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--doing), var(--ok));
    transform: scaleX(var(--progress, 0)); transform-origin: left center;
    transition: transform 0.24s var(--ease-out);
  }

  /* ========== 分类横幅 ========== */
  .banner { max-width: 1280px; margin: 14px auto 0; padding: 0 var(--sp-5); }
  .banner-inner {
    position: relative; overflow: hidden;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 18px 22px;
    background: var(--surface);
    transition: border-color 0.24s ease;
  }
  .banner-inner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cat, var(--accent)); opacity: 0.8; pointer-events: none; }
  .banner-inner::after {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cat, var(--accent)) 45%, transparent), transparent);
    opacity: 0.5; pointer-events: none;
  }
  /* noise 纹理（探索地图质感） */
  .banner-inner > .noise { display: none; }
  html[data-theme="light"] .banner-inner > .noise { opacity: 0.05; mix-blend-mode: multiply; }
  .banner-svg { display: none; }
  .banner .bwrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; }
  .workspace-eyebrow { margin-bottom: 5px; color: var(--accent); font: 700 9px var(--mono); letter-spacing: 0.1em; }
  .banner .bt { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: var(--tr-tighter); line-height: var(--lh-tight); }
  .banner .bs { color: var(--text-2); font-size: 12.5px; margin-top: 4px; max-width: 620px; }
  .banner .bb { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
  .banner .bb .pill {
    font-family: var(--mono); font-size: 12.5px; color: var(--text-2);
    border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 60%, transparent);
    padding: 3px 10px; border-radius: 999px;
    backdrop-filter: blur(6px);
  }
  .banner .bb .pill b { color: var(--cat, var(--accent)); font-weight: 700; font-variant-numeric: tabular-nums; }
  .banner-side { display: flex; align-items: stretch; gap: 18px; }
  .brainstorm-bridge {
    display: flex; align-items: center; gap: 18px; min-width: 210px; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--bg); font-family: var(--font); text-align: left; cursor: pointer;
  }
  .brainstorm-bridge:hover { border-color: var(--accent); background: var(--accent-soft); }
  .brainstorm-bridge span { display: flex; flex: 1; flex-direction: column; }
  .brainstorm-bridge strong { font-size: 12px; }
  .brainstorm-bridge small { margin-top: 3px; color: var(--text-3); font-size: 10px; }
  .brainstorm-bridge b { color: var(--accent); font-size: 18px; font-weight: 400; }
  .banner .bnum { font-family: var(--mono); font-size: 40px; font-weight: 700; line-height: var(--lh-tight); color: color-mix(in srgb, var(--cat, var(--accent)) 75%, transparent); font-variant-numeric: tabular-nums; letter-spacing: var(--tr-tight); }
  .banner .bnum small { font-size: 10px; color: var(--text-3); font-weight: 400; margin-left: 5px; letter-spacing: 0.08em; }
  /* 横幅进入由页面序列负责；分类变化由 JS 按真实状态变化触发。 */
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  /* ========== 主体 ========== */
  .main { max-width: 1280px; margin: 0 auto; padding: 12px var(--sp-5) 80px; }

  .toolrow { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
  .cats { display: flex; flex-wrap: wrap; gap: var(--sp-2); flex: 1; }
  .chip {
    padding: 5px 13px; border-radius: 999px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-3); font-size: 13px; cursor: pointer;
    font-family: var(--font); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    transition: color var(--t-quick) ease, border-color var(--t-quick) ease, background var(--t-quick) ease, box-shadow var(--t-quick) var(--ease-out), transform var(--t-quick) var(--ease-out), scale var(--t-quick) var(--ease-out);
  }
  .chip .c { font-family: var(--mono); font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; transition: color 0.2s ease; }
  .chip:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); background: var(--surface); }
  .chip:active { transform: translateY(0); }
  .chip.active {
    color: var(--cat, var(--accent)); border-color: color-mix(in srgb, var(--cat, var(--accent)) 55%, transparent);
    background: color-mix(in srgb, var(--cat, var(--accent)) 10%, transparent);
  }
  .chip.active .c { color: var(--cat, var(--accent)); }

  .sort { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
  .sort select {
    padding: 5px 10px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-2); font-size: 13px; font-family: var(--font); cursor: pointer; outline: none;
    transition: border-color 0.2s ease;
  }
  .sort select:hover { border-color: var(--border-strong); }
  .sort select:focus { border-color: var(--accent); }

  /* 列头排序（替代旧 select） */
  .sort-head { display: inline-flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px; }
  .sh-btn {
    border: none; background: transparent; color: var(--text-3);
    padding: 5px 12px; font-size: 12.5px; cursor: pointer; font-family: var(--font);
    border-radius: calc(var(--radius) - 3px); display: inline-flex; align-items: center; gap: 5px;
    transition: color 0.18s var(--ease-std), background 0.18s var(--ease-std);
  }
  .sh-btn:hover { color: var(--text); background: var(--surface-2); }
  .sh-btn.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .sh-btn .arr { font-family: var(--mono); font-size: 11px; opacity: 0.6; line-height: 1; }
  .sh-btn.active .arr { opacity: 1; }
  .sh-btn.active.asc .arr::before { content: "↑"; }
  .sh-btn.active.desc .arr::before { content: "↓"; }
  .sh-btn:not(.active) .arr::before { content: "↕"; opacity: 0.4; }

  /* 密度切换 */
  .density { display: inline-flex; gap: 1px; padding: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
  .density button {
    padding: 5px 8px; border: none; background: transparent; color: var(--text-3);
    cursor: pointer; border-radius: calc(var(--radius) - 3px);
    display: flex; align-items: center; justify-content: center;
    transition: color 0.18s var(--ease-std), background 0.18s var(--ease-std);
  }
  .density button:hover { color: var(--text); background: var(--surface-2); }
  .density button.active { color: var(--accent); background: var(--accent-soft); }

  /* 紧凑密度模式 */
  body.density-compact .row { padding: 5px 12px; gap: 10px; }
  body.density-compact .row .id { font-size: 11.5px; }
  body.density-compact .row .name { font-size: 14px; }
  body.density-compact .row .name .txt { letter-spacing: 0; }
  body.density-compact .row .thumb { width: 44px; height: 26px; }
  body.density-compact .row .status { font-size: 12px; }
  body.density-compact .row .src { font-size: 11.5px; }
  body.density-compact .row .pick { transform: scale(0.9); }
  body.density-compact .detail-panel { padding: 10px 14px; font-size: 13px; }

  .meta-line { font-size: 12px; color: var(--text-3); font-family: var(--mono); margin-bottom: var(--sp-3); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
  .meta-line .bak-warn { color: var(--accent); }
  .meta-line button {
    border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent);
    font-size: 12px; font-family: var(--font); padding: 3px 12px; border-radius: 999px; cursor: pointer;
    transition: color var(--t-quick) ease, border-color var(--t-quick) ease, background var(--t-quick) ease, scale var(--t-quick) var(--ease-out);
  }
  .meta-line button:hover { background: var(--accent); color: var(--accent-ink); }

  /* ========== 空态 ========== */
  .empty-state { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 24px; gap: 6px; }
  .empty-state.show { display: flex; }
  .empty-state .art { color: var(--text-3); opacity: 0.7; margin-bottom: 8px; }
  .empty-state .t { font-family: var(--display); font-size: 24px; font-weight: 700; }
  .empty-state .d { color: var(--text-2); font-size: 14px; max-width: 460px; line-height: 1.7; }
  .empty-state .btn { margin-top: var(--sp-4); }

  /* ========== 列表视图 ========== */
  .list { display: flex; flex-direction: column; gap: 2px; }
  .row {
    display: grid;
    grid-template-columns: 16px 52px 56px minmax(0, 1fr) auto 180px 64px 22px;
    align-items: center; gap: var(--sp-3);
    padding: 8px 14px;
    border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; position: relative;
    transition: background 0.18s ease, border-color 0.18s ease;
  }
  /* grid 子项默认 overflow:visible 会让徽章跨列叠加；强制每个子项自身截断,但标题列不截断(用户硬需求) */
  .row > * { min-width: 0; overflow: hidden; }
  .row > .name { overflow: visible !important; }
  .row::before {
    content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
    border-radius: 3px; background: var(--cat, var(--accent)); opacity: 0;
    transition: opacity 0.2s ease;
  }
  .row:hover { background: var(--surface); border-color: var(--border); }
  .row:hover::before { opacity: 0.7; }
  .row .thumb { width: 56px; height: 32px; border-radius: var(--radius-sm); overflow: hidden; background: color-mix(in srgb, var(--cat, var(--surface-2)) 14%, var(--surface-2)); flex-shrink: 0; position: relative; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--cat, var(--text-3)); }
  .row .thumb .cat-icon { width: 17px; height: 17px; display: flex; }
  .row .thumb .cat-icon svg { width: 100%; height: 100%; }
  .row .thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--cat, var(--text-3)); font-size: 14px; font-weight: 700; font-family: var(--display); }
  .row .id { font-family: var(--mono); font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; line-height: 1; }
  .row .name { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font-weight: 600; font-size: 15px; position: relative; z-index: 0; }
  /* 标题列不截断但右列需在上层,避免标题覆盖 */
  .row .src, .row .difficulty, .row .cat-slot, .row .status { position: relative; z-index: 1; }
  .row .name .txt { flex: 1 1 auto; min-width: 0; overflow: visible; white-space: nowrap; line-height: 1.45; }
  .row .name .badge { flex-shrink: 0; }
  .row .difficulty { flex-shrink: 0; display: flex; align-items: center; }
  .row .cat-slot { flex-shrink: 0; display: flex; align-items: center; }
  .row .src { font-size: 12px; font-family: var(--mono); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row .src a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
  .row .src a:hover { color: var(--text); text-decoration: underline; }

  .badge { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); background: var(--surface-2); white-space: nowrap; flex-shrink: 0; font-weight: 500; }
  .badge.cat { color: var(--cat); border-color: color-mix(in srgb, var(--cat) 30%, transparent); background: color-mix(in srgb, var(--cat) 7%, transparent); display: inline-flex; align-items: center; gap: 5px; }
  .badge.cat .cat-icon { display: inline-flex; align-items: center; opacity: 0.85; }
  .badge.cat .cat-icon svg { display: block; }
  .badge.diff { font-family: var(--mono); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-soft); }

  /* 归档状态：颜色只是辅助，徽章始终带有完整文字。 */
  .archive-badge {
    display: inline-flex; align-items: center; width: fit-content; max-width: 100%;
    padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px;
    font-size: 11px; font-weight: 700; line-height: 1.35; white-space: nowrap;
  }
  .archive-queued { color: var(--text-2); background: color-mix(in srgb, var(--text-2) 10%, transparent); }
  .archive-running { color: var(--status-doing-text, var(--doing)); background: color-mix(in srgb, var(--doing) 12%, transparent); }
  .archive-partial { color: #d99a2b; background: color-mix(in srgb, #d99a2b 13%, transparent); }
  .archive-succeeded { color: var(--status-ok-text, var(--ok)); background: color-mix(in srgb, var(--ok) 12%, transparent); }
  .archive-failed { color: var(--status-danger-text, var(--danger)); background: color-mix(in srgb, var(--danger) 12%, transparent); }
  .archive-manual { color: #c47ad8; background: color-mix(in srgb, #c47ad8 13%, transparent); }
  .archive-inline { display: inline-flex; margin-left: 7px; vertical-align: middle; }
  .archive-detail { display: block; margin-top: 4px; color: var(--text-3); font-size: 11px; font-weight: 400; line-height: 1.5; }
  .status .archive-inline .archive-badge { font-size: 10px; }
  .archive-panel {
    display: grid; gap: 7px; padding: 12px 14px; border: 1px solid var(--border);
    border-left: 3px solid currentColor; border-radius: var(--radius); background: var(--surface-2);
  }
  .archive-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .archive-panel-head > div { min-width: 0; }
  .archive-attempt, .archive-panel-copy, .archive-error, .archive-reason, .archive-raw-note { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.55; }
  .archive-attempt { color: var(--text-3); font-family: var(--mono); }
  .archive-error { color: var(--danger); overflow-wrap: anywhere; }
  .archive-reason { color: var(--text-2); overflow-wrap: anywhere; }
  .archive-raw-note { color: var(--text-3); }
  .archive-controls { display: flex; flex-wrap: wrap; gap: 7px; }
  .archive-action { padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-2); cursor: pointer; font: inherit; font-size: 12px; }
  .archive-action:hover:not(:disabled), .archive-action:focus-visible { color: var(--accent); border-color: var(--accent); }
  .archive-action:disabled { opacity: 0.5; cursor: wait; }
  .archive-card-meta { min-height: 28px; }
  .archive-card-meta .archive-detail { margin-top: 5px; }
  .manual-archive-form { display: grid; gap: 8px; padding: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--border)); border-radius: var(--radius); background: var(--surface); }
  .manual-archive-form label { color: var(--text); font-weight: 700; font-size: 13px; }
  .manual-archive-form textarea { width: 100%; min-height: 150px; box-sizing: border-box; resize: vertical; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font: 13px/1.6 var(--mono); }
  .manual-archive-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .manual-archive-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--text-3); font-size: 11px; line-height: 1.5; }
  @media (max-width: 560px) {
    .archive-panel-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .manual-archive-actions { align-items: stretch; flex-direction: column; }
    .manual-archive-actions .btn { width: 100%; }
    .archive-detail { white-space: normal; }
  }

  .status { font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; }
  .st-pending { color: var(--accent); }
  .st-doing { color: var(--status-doing-text, var(--doing)); }
  .st-done { color: var(--status-ok-text, var(--ok)); }

  .chev { display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: transform 0.25s var(--ease), color 0.2s ease; }
  .row:hover .chev { color: var(--text-2); }
  .row.open .chev { transform: rotate(180deg); color: var(--accent); }

  /* 平滑展开 */
  .detail-panel {
    display: none;
    margin: 0; border: 1px solid transparent; border-radius: var(--radius);
    background: var(--surface);
  }
  .row.open + .detail-panel { display: block; margin: 2px 0 6px; border-color: var(--border); }
  .row.open + .detail-panel .dp-inner { animation: detailReveal var(--t-quick) var(--ease-out) both; }
  .detail-panel .dp-inner { overflow: hidden; min-height: 0; }
  .detail-panel .dp-body { padding: 13px 16px; font-size: 14px; line-height: 1.7; display: grid; gap: 8px; }
  .detail-panel .df { display: flex; gap: var(--sp-3); }
  .detail-panel .df .k { color: var(--text-3); font-size: 12px; font-family: var(--mono); letter-spacing: 0.06em; width: 130px; flex-shrink: 0; padding-top: 1px; }
  .detail-panel .df .v { color: var(--text-2); flex: 1; word-break: break-word; min-width: 0; }
  .detail-panel .df .v code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 1px 6px; border-radius: var(--radius-sm); }
  /* 详情面板操作按钮 */
  .detail-panel .dp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
  .detail-panel .dp-act { font-size: 12.5px; padding: 5px 11px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); cursor: pointer; transition: color var(--t-quick) ease, border-color var(--t-quick) ease, background var(--t-quick) ease, scale var(--t-quick) var(--ease-out); white-space: nowrap; }
  .detail-panel .dp-act:not(:disabled):hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
  .detail-panel .dp-act:disabled { opacity: 0.4; cursor: not-allowed; }

  a.u { color: var(--accent); text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, var(--accent) 45%, transparent); transition: border-color 0.15s ease; }
  a.u:hover { border-bottom-style: solid; }

  .empty { padding: 40px 16px; text-align: center; color: var(--text-3); font-size: 14px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); }
  .empty .em-t { color: var(--text); font-weight: 600; margin-bottom: 4px; }
  .empty .em-d { font-size: 12.5px; }

  /* 分组折叠块（双击 chip 折叠该分类） */
  .cat-fold {
    padding: 14px 16px;
    margin: 6px 0;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-3);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.2s var(--ease-std), background 0.2s var(--ease-std), color 0.2s var(--ease-std);
  }
  .cat-fold:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text-2); }
  .cat-fold .cnt { font-family: var(--mono); color: var(--cat, var(--accent)); font-weight: 600; font-variant-numeric: tabular-nums; }
  .chip.folded { opacity: 0.6; position: relative; }
  .chip.folded::after { content: "折叠中"; font-size: 10px; color: var(--cat); margin-left: 4px; font-weight: 600; letter-spacing: 0.04em; }

  /* ========== 看板视图 ========== */
  .board { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; gap: var(--sp-4); }
  @media (max-width: 700px) { .board { grid-template-columns: 1fr; } }
  .card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s var(--ease);
  }
  .card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
  .card:active { transform: translateY(-1px); }
  .card .cover { position: relative; height: 148px; background: var(--surface-2); overflow: hidden; }
  .card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.26s var(--ease-out); }
  .card:hover .cover img { transform: scale(1.05); }
  .card .cover::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,8,12,0.32) 0%, transparent 35%, transparent 65%, rgba(8,8,12,0.5) 100%);
    pointer-events: none;
  }
  html[data-theme="light"] .card .cover::after {
    background: linear-gradient(180deg, rgba(30,20,8,0.18) 0%, transparent 35%, transparent 65%, rgba(30,20,8,0.32) 100%);
  }
  html[data-theme="aurora"] .card .cover::after,
  html[data-theme="forest"] .card .cover::after {
    background: linear-gradient(180deg, rgba(8,8,16,0.34) 0%, transparent 35%, transparent 65%, rgba(8,8,16,0.5) 100%);
  }
  .card .cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--cat, var(--text-3)); font-family: var(--display); font-size: 24px; font-weight: 700; }
  .card .cover .stt {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-size: 11.5px; font-weight: 600; padding: 3px 11px; border-radius: 999px;
    background: rgba(10, 10, 16, 0.66); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
  }
  .card .cover .stt.sp { color: var(--accent); }
  .card .cover .stt.sd { color: var(--doing); }
  .card .cover .stt.sf { color: var(--ok); }
  .card .body { padding: 14px 15px 13px; }
  .card .nm { font-size: var(--fs-t2); font-weight: 700; line-height: 1.35; margin-bottom: 8px; transition: color 0.2s ease; letter-spacing: var(--tr-tighter); }
  .card:hover .nm { color: var(--cat, var(--text)); }
  .card .bdg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .card .ds { font-size: 13.5px; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
  .card .ft { display: flex; align-items: center; gap: var(--sp-2); font-size: 12px; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 9px; }
  .card .ft .sr { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
  .card .ft .sr a { color: var(--text-3); text-decoration: none; transition: color 0.15s ease; }
  .card .ft .sr a:hover { color: var(--text); text-decoration: underline; }
  .card .ft .more { color: var(--text-3); flex-shrink: 0; font-size: 11.5px; letter-spacing: 0.06em; transition: color 0.2s ease; }
  .card.open .ft .more { color: var(--accent); }
  .card .detail {
    display: none;
    border-top: 1px solid transparent;
  }
  .card.open .detail { display: block; }
  .card.open .detail .di { animation: detailReveal var(--t-quick) var(--ease-out) both; }
  .card .detail .di { overflow: hidden; min-height: 0; }
  .card .detail .di-in { padding-top: 10px; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 1.65; }
  .card .detail .df { margin-bottom: 6px; color: var(--text-2); }
  .card .detail .df .k { color: var(--text-3); font-size: 11px; font-family: var(--mono); letter-spacing: 0.06em; display: block; }
  .card .detail a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, var(--accent) 45%, transparent); }
  @keyframes detailReveal {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: none; }
  }

  /* ========== 新增模态 ========== */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: color-mix(in srgb, var(--bg) 62%, transparent);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 140ms var(--ease-out), visibility 0s linear 140ms;
  }
  .modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .modal {
    position: relative;
    width: 100%; max-width: 600px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh; overflow: auto;
    opacity: 0; transform: translateY(12px) scale(0.985);
    transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  }
  .modal-overlay.open .modal { opacity: 1; transform: none; }
  .modal-overlay:not(.open) .modal { transition-duration: 140ms; }
  .modal-x {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%;
    background: var(--surface-2); color: var(--text-2); font: 20px/1 var(--font); cursor: pointer;
  }
  .modal-x:hover { color: var(--text); border-color: var(--border-strong); }
  .modal h3 { font-size: 18px; font-family: var(--display); margin-bottom: 4px; }
  .modal .sub { color: var(--text-2); font-size: 13.5px; margin-bottom: 14px; line-height: 1.6; }
  .modal label { display: block; font-size: 12.5px; color: var(--text-2); margin: 14px 0 6px; font-weight: 500; }
  .modal input[type=text], .modal textarea, .modal select {
    width: 100%; padding: 9px 13px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text); font-size: 14px; font-family: var(--font); outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .modal input:hover, .modal textarea:hover, .modal select:hover { border-color: var(--border-strong); }
  .modal input:focus, .modal textarea:focus, .modal select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .modal textarea { min-height: 64px; resize: vertical; }
  .modal .row2 { display: flex; gap: var(--sp-3); }
  .modal .row2 > div { flex: 1; min-width: 0; }
  .stars { display: flex; gap: var(--sp-2); }
  .stars button {
    flex: 1; padding: 9px 0; border-radius: var(--radius);
    border: 1px solid var(--border); background: transparent;
    color: var(--text-3); cursor: pointer; font-size: 14px; font-family: var(--font);
    transition: color var(--t-quick) ease, border-color var(--t-quick) ease, background var(--t-quick) ease, box-shadow var(--t-quick) var(--ease-out), scale var(--t-quick) var(--ease-out);
  }
  .stars button:hover { border-color: var(--border-strong); color: var(--text); }
  .stars button.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
  .modal .actions { display: flex; gap: var(--sp-3); margin-top: 20px; }
  .modal .actions .btn { flex: 1; justify-content: center; padding: 10px; }
  .hint-err { color: var(--danger); font-size: 13px; margin-top: 6px; display: none; }
  .hint-err.show { display: block; }
  .ok-msg { color: var(--ok); font-size: 13.5px; margin-top: 10px; display: none; }
  .ok-msg.show { display: block; }
  .duplicate-box {
    margin-top: 14px; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-radius: var(--radius); background: var(--accent-soft); color: var(--text-2); font-size: 13px; line-height: 1.55;
  }
  .duplicate-box strong, .duplicate-box span { display: block; }
  .duplicate-box strong { color: var(--text); margin-bottom: 3px; }
  .duplicate-box > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .duplicate-box .btn { padding: 7px 10px; }

  .fetch-prev { display: none; margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
  .fetch-prev.show { display: block; animation: rise 0.22s var(--ease-out) both; }
  .fetch-prev .fp-cover { height: 120px; background: var(--surface-2); position: relative; }
  .fetch-prev .fp-cover img { width: 100%; height: 100%; object-fit: cover; }
  .fetch-prev .fp-cover .fp-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; }
  .fetch-prev .fp-body { padding: 12px 14px; }
  .fetch-prev .fp-t { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
  .fetch-prev .fp-a { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
  .fetch-prev .fp-d { font-size: 13px; color: var(--text-3); line-height: 1.6; }
  .fetch-err { display: none; margin-top: 12px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); border-radius: var(--radius); color: var(--danger); font-size: 13px; background: color-mix(in srgb, var(--danger) 6%, transparent); }
  .fetch-warn { display: none; margin-top: 12px; padding: 10px 14px; border: 1px solid color-mix(in srgb, #e6a23c 45%, transparent); border-radius: var(--radius); color: #b8860b; font-size: 13px; line-height: 1.6; background: color-mix(in srgb, #e6a23c 8%, transparent); }
  .fetch-warn.show { display: block; animation: rise 0.22s var(--ease-out) both; }
  .fetch-err.show { display: block; }
  .fetch-load { display: none; margin-top: 12px; color: var(--text-3); font-size: 13px; font-family: var(--mono); }
  .fetch-load.show { display: block; animation: blink 1.2s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: 0.4; } }

  /* ========== Toast ========== */
  .toast {
    position: fixed; bottom: 30px; left: 50%; z-index: 300;
    transform: translate(-50%, 16px);
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    padding: 10px 20px; font-size: 13.5px;
    box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none;
    transition: opacity 0.16s var(--ease-out), transform 0.16s var(--ease-out);
    display: flex; align-items: center; gap: 8px;
  }
  .toast.show { opacity: 1; transform: translate(-50%, 0); transition-duration: 0.22s; }
  .toast.ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px color-mix(in srgb, var(--ok) 60%, transparent); }
  .toast.err::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 8px color-mix(in srgb, var(--danger) 60%, transparent); }

  .trash-list { display: grid; gap: 8px; margin-top: 16px; max-height: 50vh; overflow: auto; }
  .trash-item {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  }
  .trash-item div { min-width: 0; }
  .trash-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .trash-item small { display: block; margin-top: 4px; color: var(--text-3); }
  .trash-empty { padding: 28px 12px; text-align: center; color: var(--text-3); }
  .data-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
  .data-note { margin: -6px 0 14px; color: var(--text-3); font-size: 12px; line-height: 1.6; }
  .diagnostics {
    margin: 0; padding: 14px; max-height: 280px; overflow: auto;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
    color: var(--text-2); font: 12px/1.8 var(--mono); white-space: pre-wrap;
  }
  .onboarding-modal { max-width: 720px; }
  .onboarding-kicker { color: var(--accent); font: 700 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
  .onboarding-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
  .onboarding-steps article { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
  .onboarding-steps span { display: block; color: var(--accent); font: 700 11px var(--mono); margin-bottom: 20px; }
  .onboarding-steps strong { display: block; font-size: 14px; margin-bottom: 6px; }
  .onboarding-steps p { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.65; }
  .onboarding-actions { display: flex; justify-content: flex-end; gap: 10px; }

  footer {
    max-width: 1280px; margin: 0 auto; padding: 20px var(--sp-5) 32px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2);
    color: var(--text-3); font-size: 12px; font-family: var(--mono);
  }

  /* ========== 响应式 ========== */
  @media (max-width: 1024px) {
    .statsbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .statsbar .bar-wrap { grid-column: 1 / -1; padding: 4px 0 0; }
    .product-nav-item { min-width: 42px; padding-inline: 10px; }
    .product-nav-item small { display: none; }
  }
  @media (max-width: 900px) {
    .row { grid-template-columns: 16px 36px minmax(0,1fr) auto 56px 22px; }
    .row .src { display: none; }
    .detail-panel .df { flex-direction: column; gap: 2px; }
    .detail-panel .df .k { width: auto; }
  }
  @media (max-width: 720px) {
    .row { grid-template-columns: 16px 36px minmax(0,1fr) auto 50px 22px; }
    .row .id { font-size: 10.5px; }
    .row .thumb { width: 40px; height: 24px; }
    .row .src { display: none; }
  }
  @media (max-width: 540px) {
    .onboarding-steps { grid-template-columns: 1fr; }
    /* 极窄视口：隐藏 id、缩略图、难度、分类，让名称独享全宽 */
    .row { grid-template-columns: 16px minmax(0,1fr) 50px 22px; }
    .row .id, .row .thumb, .row .difficulty, .row .cat-slot { display: none; }
    /* 极窄下标题不再强制完整显示：单行+省略号，避免挤压 status 列导致重叠 */
    .row .name .txt { overflow: hidden; text-overflow: ellipsis; }
    .row .archive-inline { display: none; }
  }

  @media (max-width: 420px) {
    /* 内置浏览器等超窄场景：进一步压缩，status 缩小 */
    .row { grid-template-columns: 16px minmax(0,1fr) 40px 18px; }
    .row .status { font-size: 11px; }
  }
  @media (max-width: 768px) {
    .demo-banner > div { align-items: flex-start; flex-direction: column; gap: 5px; }
    .topbar { height: auto; }
    .topbar-inner {
      min-height: var(--topbar-h); height: auto; padding: 8px var(--sp-3);
      flex-wrap: wrap; gap: 8px;
    }
    .brand { order: 1; }
    .product-nav { order: 2; margin-left: auto; }
    .view-switch { order: 3; }
    .theme-wrap { order: 4; }
    .load { order: 5; }
    .search { order: 6; flex: 0 0 100%; min-width: 0; }
    .brand .s { display: none; }
    .statsbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .banner-svg { display: none; }
    .banner .bnum { font-size: 40px; }
  }
  @media (max-width: 560px) {
    .statsbar { grid-template-columns: 1fr 1fr; }
    .load .fname { display: none; }
    .load > .icon-btn { display: none; }
    .load .more-wrap { display: block; }
    .view-switch button { min-width: 44px; padding-inline: 10px; }
    .view-switch .vs-slider { width: 44px; }
    .topbar-inner { padding-inline: 10px; }
    .brand .txt { display: none; }
    .product-nav { flex: 1; padding-block: 0; }
    .product-nav-item { flex: 1; justify-content: center; min-width: 0; padding-inline: 7px; }
    .product-nav-item strong { font-size: 12px; }
    .duplicate-box > div .btn { width: 100%; justify-content: center; }
  }

  @media (max-width: 390px) {
    .brand .txt { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
    :is(button, a, input, textarea, select) {
      transition-property: color, background-color, border-color, opacity !important;
      transition-duration: 0.12s !important;
      transform: none !important;
      scale: none !important;
    }
  }

  /* ============================================================
   * v4 全面优化：浅色精修 + 交互动效
   * ============================================================ */

  /* - 顶栏品牌徽章脉冲（service ok 时呼吸光晕） - */
  html[data-theme="light"] .brand .logo {
    background: rgba(194, 65, 12, 0.08);
    border-color: rgba(194, 65, 12, 0.22);
  }
  .brand .logo::after {
    content: ""; position: absolute; inset: -3px; border-radius: 11px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
    opacity: 0; transition: opacity 0.24s ease;
    pointer-events: none;
  }
  .brand:hover .logo::after { opacity: 1; }

  /* - 顶栏服务状态徽章（绿色脉冲呼吸 + 蓝色加载态 + 红色异常） - */
  .brand .dot {
    position: relative;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
    transition: background 0.24s ease;
  }
  .brand .dot.ok { animation: none; }
  .brand .dot.loading { background: var(--doing); animation: dotLoading 1s ease-in-out infinite; }
  .brand .dot.err { background: var(--danger); animation: none; }
  @keyframes dotLoading {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--doing) 50%, transparent); opacity: 0.7; }
    55% { box-shadow: 0 0 0 5px transparent; opacity: 1; }
  }

  /* 快捷键面板 */
  .hotkey-modal { max-width: 540px; }
  .hotkey-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 4px; }
  .hk { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); transition: background 0.15s var(--ease-std); }
  .hk:hover { background: var(--surface-2); }
  .hk kbd {
    display: inline-block; min-width: 28px; padding: 3px 9px;
    border: 1px solid var(--border-strong); border-bottom-width: 2px;
    border-radius: var(--radius-sm); background: var(--bg);
    color: var(--text); font-family: var(--mono); font-size: 12px;
    text-align: center; box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent);
  }
  .hk span { color: var(--text-2); font-size: 13px; }

  /* 每日推荐卡片 */
  .daily {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 68px 1fr auto;
    align-items: center; gap: 13px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface); padding: 10px 16px 10px 12px;
    margin-bottom: 12px;
    transition: transform 0.25s var(--ease-std), border-color 0.25s ease;
  }
  .daily:hover { border-color: var(--border-strong); }
  .daily .d-cover { width: 68px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); position: relative; }
  .daily .d-cover img { width: 100%; height: 100%; object-fit: cover; }
  .daily .d-cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--cat, var(--text-3)); font-family: var(--display); font-size: 22px; font-weight: 700; }
  .daily .d-body { min-width: 0; }
  .daily .d-tag {
    font-size: 11px; color: var(--text-3); letter-spacing: var(--tr-mega); text-transform: uppercase; margin-bottom: 4px;
    display: flex; align-items: center; gap: 6px;
  }
  .daily .d-tag::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 8px var(--accent-soft);
  }
  .daily .d-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; line-height: 1.35; letter-spacing: var(--tr-tighter); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .daily .d-meta { display: flex; gap: 6px; flex-wrap: wrap; }
  .daily .d-actions { display: flex; gap: 8px; }
  .daily .d-actions .btn { padding: 7px 14px; font-size: 13px; }
  .daily .d-close {
    position: absolute; top: 8px; right: 10px; z-index: 2;
    width: 22px; height: 22px; border: none; background: transparent; color: var(--text-3);
    font-size: 18px; line-height: 1; cursor: pointer; border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
  }
  .daily .d-close:hover { color: var(--text); background: var(--surface-2); }
  .daily.appear { animation: dailyIn 0.24s var(--ease-out) both; }
  @keyframes dailyIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }

  /* 空态精修：背景柔光 + 多文案分支 */
  .empty-state {
    background: radial-gradient(500px 240px at 50% 0%, var(--accent-soft), transparent 70%);
    border-radius: var(--radius-lg); border: 1px solid var(--border);
  }

  /* - 顶栏品牌标记（角落点缀） - */
  .brand .t { display: flex; align-items: baseline; gap: 6px; }
  .brand-mark { color: var(--accent); opacity: 0; transition: opacity 0.24s ease, transform 0.24s var(--ease-out); transform: translateY(-1px) rotate(0deg); }
  .brand:hover .brand-mark { opacity: 0.8; transform: translateY(-1px) rotate(72deg); }

  /* - 卡片右上角品牌标记 - */
  .card .corner-mark {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    width: 14px; height: 14px; color: var(--text); opacity: 0.55;
    transition: transform 0.24s var(--ease-out), opacity 0.2s ease;
    pointer-events: none;
  }
  .card:hover .corner-mark { transform: rotate(36deg); opacity: 0.95; }

  /* - 输入框聚焦更精致的 ring（光晕） - */
  .search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft), inset 0 1px 2px color-mix(in srgb, var(--accent) 10%, transparent);
  }
  .modal input:focus, .modal textarea:focus, .modal select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
  }
  .sort select:focus { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }

  /* - 统计条指标卡 hover 抬升 + 数字动效预备 - */
  .stat { transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s var(--ease); }
  .stat:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  .stat .num { font-feature-settings: "tnum"; transition: color 0.24s ease; }

  /* - 进度条保持安静，只在数值变化时推进 - */
  .bar-track { position: relative; overflow: hidden; }

  /* - chips 选中态强化（彩色阴影） - */
  .chip.active {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--cat, var(--accent)) 50%, transparent),
                0 2px 8px color-mix(in srgb, var(--cat, var(--accent)) 20%, transparent);
  }
  .chip .c { transition: color 0.2s ease, background 0.2s ease; }
  .chip.active .c {
    background: color-mix(in srgb, var(--cat, var(--accent)) 15%, transparent);
  }

  /* - 列表行 stagger + 新增条目飞入 - */
  .list.anim .row { animation: listIn 0.24s var(--ease-out) both; }
  .list.anim .detail-panel { animation: listIn 0.24s var(--ease-out) both; }
  @keyframes listIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  /* 新增条目飞入 + 短暂高亮 */
  .row.just-in { animation: flyIn 0.28s var(--ease-out) both; }
  @keyframes flyIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.985); box-shadow: 0 0 0 2px var(--accent), 0 8px 24px var(--accent-soft); }
    60% { box-shadow: 0 0 0 2px var(--accent), 0 8px 24px var(--accent-soft); }
    to { opacity: 1; transform: none; box-shadow: none; }
  }

  /* - 列表行 hover：分类色徽章轻微发光 + 缩略图提升 - */
  .row:hover .thumb { border-color: var(--border-strong); transform: translateY(-1px); transition: border-color 0.2s ease, transform 0.2s var(--ease); }
  .row:hover .name .txt { color: var(--text); }
  .row .name .txt { transition: color 0.2s ease; }

  /* - 状态文字颜色平滑过渡（标记状态时） - */
  .status { transition: color 0.24s ease; }

  /* hidden 属性必须显式压过容器自身 display（避免被 flex 等规则覆盖，导致列表/看板同时显示） */
  #listView[hidden], #boardView[hidden] { display: none !important; }

  /* - 看板卡片 stagger + 状态徽章过渡 - */
  .board.anim .card { animation: listIn 0.24s var(--ease-out) both; }
  .board.anim .card { transition-delay: 0s; }
  .card .cover .stt { transition: color 0.24s ease, background 0.24s ease; }
  .card .nm { transition: color 0.2s ease; }

  /* - 模态入场动画统一（已有 opacity+translateY，scale 加一点更精致） - */
  .modal { transform: translateY(12px) scale(0.985); }
  .modal-overlay.open .modal { transform: none; }

  /* - toast 微弹入场 - */
  .toast { transform: translate(-50%, 16px) scale(0.96); }
  .toast.show { transform: translate(-50%, 0) scale(1); }

  /* - 主题按钮 hover：色板预览 - */
  .theme-btn { position: relative; }
  .theme-btn:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

  /* - 按钮统一按压感 - */
  .btn { position: relative; }
  /* - 横幅 ITEM 数字 hover 微微放大 - */
  .banner .bnum { transition: transform 0.24s var(--ease-out), color 0.24s ease; }
  .banner-inner:hover .bnum { transform: scale(1.04); }

  /* - 页面进入序列（init 时触发） - */
  .seq-on > .topbar { animation: seqIn 0.26s var(--ease-out) both; }
  .seq-on > .statsbar { animation: seqIn 0.26s var(--ease-out) both; animation-delay: 0.03s; }
  .seq-on > .main > .banner { animation: seqIn 0.28s var(--ease-out) both; animation-delay: 0.06s; }
  .seq-on > .main > .toolrow { animation: seqIn 0.26s var(--ease-out) both; animation-delay: 0.09s; }
  .seq-on > .main > .meta-line { animation: seqIn 0.26s var(--ease-out) both; animation-delay: 0.12s; }
  .seq-on > .main > #listView,
  .seq-on > .main > #boardView { animation: seqIn 0.26s var(--ease-out) both; animation-delay: 0.15s; }
  @keyframes seqIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }

  /* ============================================================
   * 创意功能（随机抽取 / 统计 / 批量 / 研究模式 / 粒子）
   * ============================================================ */
  .btn.icon-btn { width: 36px; padding: 8px 0; justify-content: center; }

  /* 行勾选框 */
  .row .pick {
    width: 16px; height: 16px; margin: 0; cursor: pointer;
    accent-color: var(--accent); display: none;
  }
  .row:hover .pick, .row.picked .pick { display: block; }
  .row.picked { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
  .row.picked::before { opacity: 1; }
  .row .name .txt { min-width: 0; }

  /* 批量操作栏（浮动底部） */
  .bulkbar {
    position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 150;
    display: flex; align-items: center; gap: 10px;
    background: var(--surface-2); border: 1px solid var(--border-strong);
    border-radius: 999px; padding: 8px 10px 8px 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .bulkbar.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
  .bulkbar .bc { font-size: 13px; color: var(--text-2); font-family: var(--mono); white-space: nowrap; }
  .bulkbar .btn { padding: 6px 13px; font-size: 13px; }
  .bulkbar .btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
  .bulkbar .btn.danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: var(--danger); }

  /* 键盘导航高亮 */
  .row.kbd { background: var(--surface); border-color: var(--border-strong); }
  .row.kbd::before { opacity: 1; }

  /* 通用模态 */
  .modal .m-title { font-size: 18px; font-family: var(--display); margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
  .modal .m-sub { color: var(--text-2); font-size: 13.5px; margin-bottom: 14px; line-height: 1.6; }

  /* 随机抽取：滚动点名 */
  .roll-stage {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--bg); padding: 28px 20px; text-align: center; position: relative; overflow: hidden;
  }
  .roll-stage::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(400px 200px at 50% 0%, var(--accent-soft), transparent 70%);
    pointer-events: none;
  }
  .roll-name {
    position: relative; font-family: var(--display); font-size: 24px; font-weight: 700;
    min-height: 44px; display: flex; align-items: center; justify-content: center;
    font-variant-numeric: tabular-nums;
  }
  .roll-name.rolling { animation: rollBlink 0.12s steps(2) infinite; }
  @keyframes rollBlink { 50% { opacity: 0.35; } }
  .roll-hit { position: relative; margin-top: 10px; font-size: 13px; color: var(--text-3); font-family: var(--mono); }
  .roll-actions { display: flex; gap: 10px; margin-top: 18px; }
  .roll-actions .btn { flex: 1; justify-content: center; padding: 10px; }

  /* 统计：环形图 */
  #statsModal .modal { max-width: 760px; }
  .rings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 8px; }
  @media (max-width: 680px) { .rings { grid-template-columns: 1fr; } }
  .ring-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; background: var(--bg); }
  .ring-card .rt { font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-bottom: 12px; letter-spacing: 0.04em; }
  .ring-row { display: flex; align-items: center; gap: 16px; }
  .ring {
    width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0;
    position: relative;
    transition: opacity 0.24s ease;
  }
  .ring .ring-hole {
    position: absolute; inset: 12px; border-radius: 50%;
    background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .ring .ring-hole .rn { max-width: 66px; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 17px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .ring .ring-hole .rl { font-size: 10px; color: var(--text-3); }
  .legend { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .legend .lg { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-2); }
  .legend .lg .sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
  .legend .lg .nm { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
  .legend .lg .pc { flex-shrink: 0; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
  @media (max-width: 420px) {
    #statsModal { padding: 12px; }
    #statsModal .modal { padding: 18px; }
    #statsModal .ring-card { padding: 14px 12px; }
    #statsModal .ring-row { gap: 12px; }
    #statsModal .ring { width: 86px; height: 86px; }
    #statsModal .ring .ring-hole { inset: 10px; }
    #statsModal .legend .lg { gap: 6px; font-size: 12px; }
    #statsModal .legend .lg .pc { font-size: 11px; }
  }

  @media (min-width: 769px) {
    .toolrow {
      position: sticky; top: var(--topbar-h); z-index: 30; padding: 9px 0; margin-bottom: 4px;
      background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--border);
      backdrop-filter: blur(12px);
    }
  }

  /* 头脑风暴：与灵感来袭同级的独立知识碰撞工作台 */
  .brainstorm-workspace { display: grid; gap: 12px; max-width: 1280px; margin: 0 auto; padding-bottom: 28px; animation: viewFadeIn var(--t-normal) var(--ease-out); }
  .brainstorm-workspace[hidden] { display: none; }
  body.brainstorm-active .main { max-width: 1280px; }
  body.brainstorm-active #statsbar,
  body.brainstorm-active #banner,
  body.brainstorm-active #daily,
  body.brainstorm-active #toolrow,
  body.brainstorm-active #meta,
  body.brainstorm-active #emptyState,
  body.brainstorm-active #listView,
  body.brainstorm-active #boardView,
  body.brainstorm-active #entryView { display: none !important; }
  body.brainstorm-active .search,
  body.brainstorm-active .view-switch { display: none; }
  .brainstorm-hero {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface);
  }
  .brainstorm-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: 0.8; }
  .brainstorm-hero::after { display: none; }
  .brainstorm-hero-copy { position: relative; z-index: 1; max-width: 820px; }
  .brainstorm-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: var(--tr-tighter); }
  .brainstorm-hero p { max-width: 720px; margin: 8px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.65; }
  .brainstorm-refresh { position: relative; z-index: 1; flex: 0 0 auto; padding: 8px 13px; }
  .brainstorm-hero-actions { position: relative; z-index: 1; display: flex; flex: 0 0 auto; gap: 8px; align-items: center; }
  .brainstorm-kicker { color: var(--accent); font: 700 9px var(--mono); letter-spacing: 0.15em; margin-bottom: 7px; }
  .brainstorm-goal-builder {
    display: grid; grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr); gap: 22px; padding: 18px 20px;
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border)); border-radius: var(--radius-lg);
    background: var(--surface); box-shadow: inset 3px 0 0 var(--accent);
  }
  .goal-builder-copy label { display: block; margin-top: 5px; font-family: var(--display); font-size: 18px; font-weight: 700; }
  .goal-builder-copy p { margin: 6px 0 0; color: var(--text-3); font-size: 11px; line-height: 1.55; }
  .goal-step { color: var(--accent); font: 700 9px var(--mono); letter-spacing: 0.13em; }
  .goal-builder-input textarea {
    width: 100%; min-height: 64px; resize: vertical; padding: 11px 13px; border: 1px solid var(--border-strong);
    border-radius: var(--radius); background: var(--bg); color: var(--text); font: 14px/1.65 var(--font); outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .goal-builder-input textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .goal-builder-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
  .goal-examples { display: flex; flex-wrap: wrap; gap: 6px; }
  .goal-examples button {
    padding: 5px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
    color: var(--text-3); font: 10.5px var(--font); cursor: pointer;
  }
  .goal-examples button:hover { border-color: var(--accent); color: var(--text); }
  .goal-builder-actions > .btn { flex: 0 0 auto; }
  .brainstorm-viewbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
  .brainstorm-modes {
    display: flex; gap: 6px; width: fit-content; max-width: 100%; padding: 4px; overflow-x: auto;
    border: 1px solid var(--border); border-radius: 999px; background: var(--surface); scrollbar-width: none;
  }
  .brainstorm-modes::-webkit-scrollbar { display: none; }
  .brainstorm-modes button {
    flex: 0 0 auto; border: 0; border-radius: 999px; padding: 8px 15px; background: transparent;
    color: var(--text-3); font: 12.5px var(--font); cursor: pointer;
  }
  .brainstorm-modes button.active { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); font-weight: 700; }
  .brainstorm-summary { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
  .brainstorm-summary .bs-stat {
    display: flex; align-items: baseline; gap: 5px; min-width: 0; padding: 0;
    color: var(--text-3); font-size: 10.5px; white-space: nowrap;
  }
  .brainstorm-summary .bs-stat b { color: var(--text); font: 700 14px var(--mono); }
  .brainstorm-context { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-3); font-size: 11px; }
  .brainstorm-context > summary { padding: 8px 11px; cursor: pointer; list-style-position: inside; }
  .brainstorm-context[open] > summary { border-bottom: 1px solid var(--border); color: var(--text-2); }
  .brainstorm-insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
  .brainstorm-insights::-webkit-scrollbar { display: none; }
  .brainstorm-insights span {
    padding: 9px 11px; border-left: 2px solid var(--accent);
    background: transparent; color: var(--text-2); font-size: 11px; line-height: 1.55;
  }
  .brainstorm-fusion-section, .brainstorm-dimensions-section, .brainstorm-graph-panel, .brainstorm-matrix-panel, .brainstorm-suggestions-panel {
    min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); overflow: hidden;
  }
  #brainstormFusionPanel[hidden], #brainstormDimensionsPanel[hidden], #brainstormNetworkPanel[hidden], #brainstormSuggestionsPanel[hidden] { display: none !important; }
  .brainstorm-fusion { display: grid; gap: 12px; padding: 12px; }
  .brainstorm-fusion-card { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .brainstorm-fusion-card.featured { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 32%); }
  .fusion-card-top { display: flex; justify-content: space-between; gap: 10px; color: var(--accent); font: 700 10px var(--mono); letter-spacing: 0.08em; }
  .fusion-card-top b { color: var(--text-3); }
  .brainstorm-fusion-card h3 { margin: 5px 0 0; font-family: var(--display); font-size: 22px; line-height: 1.35; }
  .brainstorm-fusion-card > p { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.65; }
  .fusion-featured-head { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: end; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .fusion-featured-head span, .fusion-mvp > span { color: var(--accent); font: 700 9px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
  .fusion-featured-head p { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.7; }
  .fusion-featured-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 20px; padding-top: 16px; }
  .fusion-source-column h4 { margin: 0 0 10px; font-size: 12px; }
  .fusion-recipe { display: grid; gap: 7px; margin: 13px 0; }
  .fusion-contribution { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 76%, transparent); }
  .fusion-index { color: var(--accent); font: 700 11px var(--mono); padding-top: 3px; }
  .fusion-contribution div { min-width: 0; }
  .fusion-contribution button { display: block; max-width: 100%; overflow: hidden; border: 0; padding: 0; background: transparent; color: var(--text); font: 700 12px var(--font); text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
  .fusion-contribution button:hover { color: var(--accent); }
  .fusion-contribution strong, .fusion-contribution small { display: block; margin-top: 3px; }
  .fusion-contribution strong { color: var(--text-2); font-size: 11.5px; font-weight: 500; }
  .fusion-contribution small { color: var(--text-3); font-size: 10px; }
  .brainstorm-fusion-card .fusion-rationale { color: var(--text-3); font-size: 10.5px; }
  .fusion-mvp { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
  .fusion-mvp ol { margin: 12px 0 0 18px; padding: 0; color: var(--text-2); font-size: 11.5px; line-height: 1.75; }
  .fusion-alternatives { display: grid; gap: 7px; }
  .fusion-alternatives-title { display: flex; justify-content: space-between; gap: 12px; padding: 2px 2px 4px; }
  .fusion-alternatives-title strong { font-size: 12px; }
  .fusion-alternatives-title span { color: var(--text-3); font-size: 10.5px; }
  .brainstorm-fusion-alt { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .brainstorm-fusion-alt > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; cursor: pointer; list-style: none; }
  .brainstorm-fusion-alt > summary::-webkit-details-marker { display: none; }
  .brainstorm-fusion-alt > summary span { min-width: 0; }
  .brainstorm-fusion-alt > summary b, .brainstorm-fusion-alt > summary small { display: block; }
  .brainstorm-fusion-alt > summary b { margin-bottom: 3px; font-size: 12px; }
  .brainstorm-fusion-alt > summary small { overflow: hidden; color: var(--text-3); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
  .brainstorm-fusion-alt > summary em { flex: 0 0 auto; color: var(--accent); font: 700 10px var(--mono); font-style: normal; }
  .fusion-alt-body { padding: 0 14px 14px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 11.5px; }
  .fusion-alt-body > p { line-height: 1.65; }
  .fusion-alt-body ol { margin: 7px 0 0 18px; line-height: 1.7; }
  .fusion-contribution.compact small { display: none; }
  .brainstorm-dimensions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; padding: 12px; }
  .brainstorm-dimension-card { min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .dimension-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text); font-size: 12.5px; font-weight: 700; }
  .dimension-top b { color: var(--accent); font: 700 22px var(--mono); }
  .brainstorm-dimension-card p { min-height: 38px; margin: 7px 0 0; color: var(--text-3); font-size: 11px; line-height: 1.55; }
  .brainstorm-dimension-card .brainstorm-evidence button { width: auto; padding-inline: 7px; }
  .brainstorm-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr); gap: 14px; align-items: stretch; }
  .brainstorm-section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 13px; border-bottom: 1px solid var(--border); background: var(--surface-2);
  }
  .brainstorm-section-head strong { font-size: 12.5px; }
  .brainstorm-section-head span { color: var(--text-3); font-size: 10.5px; }
  .brainstorm-graph { position: relative; min-height: 480px; overflow: hidden; background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 58%); }
  .brainstorm-graph svg { display: block; width: 100%; height: 480px; }
  .brainstorm-link { stroke: var(--border-strong); stroke-linecap: round; }
  .brainstorm-link.relation-cross { stroke: var(--accent); }
  .brainstorm-link.relation-source { stroke: var(--doing); stroke-dasharray: 4 4; }
  .brainstorm-node { cursor: pointer; outline: none; }
  .brainstorm-node circle { stroke: var(--bg); stroke-width: 3; transition: filter 0.18s ease, transform 0.18s ease; transform-box: fill-box; transform-origin: center; }
  .brainstorm-node:hover circle, .brainstorm-node:focus circle { filter: brightness(1.18) drop-shadow(0 0 7px var(--accent)); transform: scale(1.12); }
  .brainstorm-node .node-id { font: 700 8px var(--mono); text-anchor: middle; pointer-events: none; }
  .brainstorm-node .node-label { fill: var(--text-2); font: 10px var(--font); text-anchor: middle; pointer-events: none; }
  .brainstorm-matrix { display: grid; gap: 9px; max-height: 480px; overflow: auto; padding: 10px; }
  .brainstorm-matrix-row { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .matrix-pair { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 11.5px; }
  .matrix-pair strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .matrix-pair span { color: var(--accent); }
  .matrix-score { height: 4px; margin: 9px 0 6px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
  .matrix-score span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--doing)); }
  .matrix-meta { display: flex; justify-content: space-between; color: var(--text-3); font: 10px var(--mono); }
  .matrix-meta b { color: var(--text-2); }
  .brainstorm-suggestions { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 10px; padding: 12px; }
  .brainstorm-suggestion { min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .brainstorm-suggestion:hover { border-color: var(--border-strong); }
  .brainstorm-suggestion .idea-top { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
  .brainstorm-suggestion .idea-type, .brainstorm-suggestion .idea-confidence, .brainstorm-suggestion .idea-dimension {
    padding: 3px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 700 10px var(--mono);
  }
  .brainstorm-suggestion .idea-confidence { background: var(--surface-3); color: var(--text-3); }
  .brainstorm-suggestion .idea-dimension { background: color-mix(in srgb, var(--doing) 10%, transparent); color: var(--doing); text-transform: uppercase; }
  .brainstorm-suggestion .idea-score { margin-left: auto; color: var(--text-3); font: 700 11px var(--mono); }
  .brainstorm-suggestion h4 { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
  .brainstorm-suggestion p { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.6; }
  .brainstorm-signals { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0; }
  .brainstorm-signals span { padding: 3px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-3); font-size: 10.5px; }
  .brainstorm-evidence { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
  .brainstorm-evidence button {
    min-width: 0; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 5px 7px;
    background: var(--bg); color: var(--text-2); font: 11px var(--font); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .brainstorm-evidence button:hover { border-color: var(--accent); color: var(--text); }
  .brainstorm-suggestion details { margin-top: 9px; color: var(--text-2); font-size: 11.5px; }
  .brainstorm-suggestion summary { cursor: pointer; color: var(--accent); }
  .brainstorm-suggestion ol { margin: 7px 0 0 18px; line-height: 1.65; }
  .brainstorm-loading, .brainstorm-empty { display: grid; place-items: center; min-height: 150px; padding: 24px; color: var(--text-3); text-align: center; font-size: 12px; }
  .brainstorm-error { border: 1px solid color-mix(in srgb, var(--danger) 42%, transparent); background: color-mix(in srgb, var(--danger) 9%, transparent); color: var(--danger); }
  .brainstorm-note { margin-top: 10px; color: var(--text-3); font-size: 10.5px; line-height: 1.5; }
  .brainstorm-history-panel { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
  .brainstorm-history { display: grid; gap: 7px; padding: 10px; }
  .brainstorm-history-item {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0;
    padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface-2); color: var(--text); text-decoration: none;
  }
  .brainstorm-history-item:hover { border-color: var(--accent); }
  .brainstorm-history-item span { min-width: 0; }
  .brainstorm-history-item strong, .brainstorm-history-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brainstorm-history-item strong { font-size: 12px; }
  .brainstorm-history-item small { margin-top: 4px; color: var(--text-3); font-size: 10.5px; }
  .brainstorm-history-item b { flex: 0 0 auto; color: var(--accent); font: 700 10px var(--font); }
  .brainstorm-history-empty { padding: 18px; color: var(--text-3); text-align: center; font-size: 11.5px; }
  @media (max-width: 960px) {
    .brainstorm-goal-builder { grid-template-columns: 1fr; }
    .fusion-featured-head, .fusion-featured-grid { grid-template-columns: 1fr; gap: 14px; }
    .brainstorm-layout { grid-template-columns: 1fr; }
    .brainstorm-matrix { max-height: none; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  }
  @media (max-width: 620px) {
    .brainstorm-workspace { gap: 10px; }
    .brainstorm-hero { display: block; padding: 18px 16px; }
    .brainstorm-hero h1 { font-size: 25px; }
    .brainstorm-hero-actions { margin-top: 14px; }
    .brainstorm-history-item { align-items: flex-start; }
    .brainstorm-history-item b { display: none; }
    .brainstorm-viewbar { display: grid; gap: 10px; }
    .brainstorm-modes { width: 100%; border-radius: var(--radius); }
    .brainstorm-modes button { flex: 1 0 auto; padding-inline: 12px; }
    .brainstorm-summary { justify-content: flex-start; padding-inline: 4px; }
    .brainstorm-goal-builder { padding: 17px; }
    .goal-builder-actions { align-items: stretch; flex-direction: column; }
    .goal-builder-actions > .btn { justify-content: center; }
    .brainstorm-fusion { grid-template-columns: 1fr; }
    .brainstorm-fusion-card.featured { grid-column: auto; }
    .brainstorm-fusion-card { padding: 14px; }
    .brainstorm-fusion-card h3 { font-size: 19px; }
    .fusion-featured-grid { padding-top: 13px; }
    .fusion-contribution { grid-template-columns: 24px minmax(0, 1fr); padding: 9px; }
    .fusion-alternatives-title span { display: none; }
    .brainstorm-graph { min-height: 300px; }
    .brainstorm-graph svg { height: 300px; }
    .brainstorm-suggestions { grid-template-columns: 1fr; }
  }

  /* 研究模式 */
  .study-overlay {
    position: fixed; inset: 0; z-index: 250;
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    backdrop-filter: blur(14px);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 140ms var(--ease-out), visibility 0s linear 140ms;
  }
  .study-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .study {
    width: 100%; max-width: 920px; max-height: 92vh; overflow: auto;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: 340px 1fr;
    opacity: 0; transform: translateY(8px) scale(0.99);
    transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out);
  }
  .study-overlay.open .study { opacity: 1; transform: none; transition-duration: 220ms; }
  @keyframes studyIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
  @media (max-width: 760px) { .study { grid-template-columns: 1fr; } }
  .study .s-cover { position: relative; min-height: 200px; background: var(--surface-2); }
  .study .s-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .study .s-cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--cat, var(--text-3)); font-family: var(--display); font-size: 64px; font-weight: 700; }
  .study .s-cover .s-back {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(10,10,16,0.6); border: 1px solid rgba(255,255,255,0.12);
    color: var(--text); display: flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(8px); transition: color var(--t-quick) ease, border-color var(--t-quick) ease, background var(--t-quick) ease, scale var(--t-quick) var(--ease-out);
  }
  .study .s-cover .s-back:hover { background: rgba(10,10,16,0.85); transform: scale(1.06); }
  .study .s-main { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .study .s-title { font-size: 21px; font-weight: 700; line-height: 1.3; font-family: var(--display); }
  .study .s-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .study .s-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .study .s-actions .btn { flex: 1; min-width: 120px; justify-content: center; }
  /* 计时器 */
  .timer-box { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); padding: 14px 16px; }
  .timer-box .tt { font-size: 12px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
  .timer-row { display: flex; align-items: center; gap: 16px; }
  .timer-ring { width: 72px; height: 72px; border-radius: 50%; position: relative; flex-shrink: 0; }
  .timer-ring .tr-hole { position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; }
  .timer-ring .tr-t { font-family: var(--mono); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .timer-ctl { display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .timer-ctl .t-now { font-family: var(--mono); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
  .timer-ctl .t-btns { display: flex; gap: 6px; }
  .timer-ctl .t-btns .btn { flex: 1; padding: 6px 10px; font-size: 12.5px; justify-content: center; }
  /* 笔记 */
  .study .s-note label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
  .study .s-note textarea {
    width: 100%; min-height: 110px; resize: vertical;
    padding: 10px 13px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text); font-size: 13.5px; font-family: var(--font); outline: none; line-height: 1.6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .study .s-note textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .study-exit-guard {
    padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
    border-radius: var(--radius); background: var(--accent-soft); color: var(--text-2); font-size: 12.5px;
  }
  .study-exit-guard strong, .study-exit-guard span { display: block; }
  .study-exit-guard strong { margin-bottom: 3px; color: var(--text); }
  .study-exit-guard > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
  .study-exit-guard .btn { flex: 1 1 auto; justify-content: center; }

  /* 粒子 */
  .particle-field { position: fixed; inset: 0; z-index: 310; pointer-events: none; overflow: hidden; }
  .particle {
    position: absolute; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    animation: particleFly 0.3s var(--ease-out) forwards;
  }
  @keyframes particleFly {
    from { opacity: 1; transform: translate(0, 0) scale(1); }
    to { opacity: 0; transform: translate(var(--px), var(--py)) scale(0.2); }
  }

  /* ============================================================
   * 研究档案详情视图（entry view）
   * 复用深色主题 + 琥珀金 accent
   * ============================================================ */
  .entry-view {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-4) var(--sp-8);
    animation: viewFadeIn var(--t-normal) var(--ease-out);
  }
  @keyframes viewFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .entry-header {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) 0 var(--sp-5);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--sp-5);
  }
  .entry-header h2 {
    flex: 1;
    margin: 0;
    font-family: var(--display);
    font-size: var(--fs-t1);
    font-weight: 700;
    letter-spacing: var(--tr-tight);
    text-align: center;
    color: var(--text);
  }
  .entry-header .muted {
    font-family: var(--mono);
    font-size: var(--fs-s);
    color: var(--text-3);
    letter-spacing: var(--tr-wide);
  }

  /* fieldset 分组 */
  .entry-form .ef-set {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: var(--sp-4) var(--sp-4) var(--sp-3);
    margin-bottom: var(--sp-4);
    box-shadow: var(--shadow-sm);
  }
  .entry-form .ef-set legend {
    font-weight: 700;
    font-size: var(--fs-s);
    color: var(--accent);
    letter-spacing: var(--tr-wide);
    padding: 0 var(--sp-2);
    text-transform: uppercase;
  }

  /* 行布局：label 文字固定宽度，控件右侧填满 */
  .ef-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) 0;
  }
  .ef-row > span {
    font-size: var(--fs-s);
    color: var(--text-2);
    text-align: left;
  }
  .ef-row input,
  .ef-row select,
  .ef-row textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-b);
    transition: border-color 0.2s ease, background 0.2s ease;
    resize: vertical;
  }
  .ef-row input:focus,
  .ef-row select:focus,
  .ef-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-3);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .ef-row textarea { font-family: var(--font); line-height: var(--lh-normal); }

  /* 截图上传区 */
  .ss-upload {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
    padding: var(--sp-2) 0 var(--sp-3);
  }
  .ss-upload input[type="file"] {
    font-size: var(--fs-s);
    color: var(--text-2);
    max-width: 220px;
  }
  .ss-upload input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-s);
  }
  .ss-upload input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }

  /* 抓取原文区 */
  .scrape-bar { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
  .scrape-hint { font-size: var(--fs-s); color: var(--text-3); }
  .content-preview {
    margin-top: var(--sp-3); padding: var(--sp-3);
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
    color: var(--text-2);
    max-height: 360px; overflow: auto;
    white-space: pre-wrap; word-break: break-word;
  }

  /* 截图网格 */
  .ss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--sp-3);
    margin-top: var(--sp-2);
  }
  .ss-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-3);
    font-size: var(--fs-s);
    padding: var(--sp-6) 0;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
  }
  .ss-item {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .ss-item img {
    width: 100%;
    height: 180px;
    max-height: 200px;
    object-fit: cover;
    display: block;
    background: var(--bg);
  }
  .ss-cap {
    padding: var(--sp-2) var(--sp-2) 0;
    font-size: var(--fs-c);
    color: var(--text-2);
    line-height: var(--lh-snug);
    word-break: break-word;
    flex: 1;
  }
  .ss-del {
    align-self: flex-end;
    margin: var(--sp-2);
    padding: 4px 10px;
    font-size: var(--fs-c);
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 40%, transparent);
    background: transparent;
  }
  .ss-del:hover {
    background: color-mix(in srgb, var(--danger) 12%, transparent);
    border-color: var(--danger);
  }

  /* 底部按钮组 */
  .ef-actions {
    display: flex;
    gap: var(--sp-3);
    justify-content: center;
    padding: var(--sp-4) 0;
  }

  /* 卡片「研究」小按钮（琥珀金边框） */
  .study-btn {
    padding: 3px 9px;
    font-size: var(--fs-c);
    font-weight: 600;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  }
  .study-btn:hover {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    border-color: var(--accent);
  }
  .study-btn:active { transform: scale(0.95); }

  @media (max-width: 560px) {
    .ef-row { grid-template-columns: 1fr; gap: var(--sp-1); }
    .ef-row > span { font-size: var(--fs-c); }
  }

  /* ============================================================
   * v5 工作台优化：更快抵达内容、更明确的移动端层级
   * ============================================================ */
  .search input { padding-right: 38px; }
  .search-clear {
    position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
    width: 25px; height: 25px; border: 0; border-radius: 50%;
    background: transparent; color: var(--text-3); font: 17px/1 var(--font); cursor: pointer;
    transition: color var(--t-quick) ease, background var(--t-quick) ease;
  }
  .search-clear:hover { color: var(--text); background: var(--surface-3); }
  .search-clear[hidden] { display: none; }

  /* banner 已位于 main 内，避免再次叠加水平留白 */
  .main > .banner { max-width: none; margin-top: 0; padding-inline: 0; }

  @media (max-width: 768px) {
    .topbar-inner { align-content: center; }
    .load #reloadBtn { display: none; }

    .statsbar {
      display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
      padding: 10px 12px 4px; scroll-snap-type: x proximity; scrollbar-width: none;
    }
    .statsbar::-webkit-scrollbar, .cats::-webkit-scrollbar { display: none; }
    .stat {
      flex: 0 0 108px; min-height: 68px; padding: 9px 12px;
      scroll-snap-align: start; justify-content: center;
    }
    .stat .num { font-size: 20px; }
    .stat .sub { display: none; }
    .bar-wrap { display: none; }

    .main { padding: 12px 12px 72px; }
    .banner-inner { padding: 16px; }
    .banner .bwrap { display: block; padding-right: 76px; min-height: 88px; }
    .banner .bt { font-size: 22px; }
    .banner .bs { font-size: 12.5px; line-height: 1.55; margin-top: 4px; }
    .banner .bb { flex-wrap: nowrap; gap: 5px; margin-top: 10px; }
    .banner .bb .pill { padding: 3px 8px; font-size: 10.5px; }
    .banner-side { display: block; }
    .brainstorm-bridge { width: 100%; margin-top: 12px; justify-content: center; }
    .banner .bnum { position: absolute; right: 0; top: 0; font-size: 36px; }
    .banner .bnum small { display: block; margin: 2px 0 0; text-align: right; font-size: 10px; }

    .daily {
      grid-template-columns: 62px minmax(0, 1fr); gap: 10px 12px;
      padding: 12px 30px 12px 12px; margin: 10px 0;
    }
    .daily .d-cover { width: 62px; height: 62px; }
    .daily .d-tag { letter-spacing: 0.07em; }
    .daily .d-title { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .daily .d-actions { grid-column: 1 / -1; }
    .daily .d-actions .btn { flex: 1; justify-content: center; min-height: 36px; }

    .toolrow { gap: 8px; margin-bottom: 8px; }
    .cats {
      flex: 0 0 100%; flex-wrap: nowrap; gap: 6px; overflow-x: auto;
      overscroll-behavior-x: contain; padding: 1px 1px 4px; scrollbar-width: none;
    }
    .chip { flex: 0 0 auto; padding: 5px 10px; }
    .sort-head { flex: 1; min-width: 0; }
    .sh-btn { flex: 1; justify-content: center; padding-inline: 7px; }
    .density { flex: 0 0 auto; }
    .meta-line { margin-bottom: 7px; font-size: 10.5px; }

    .row { min-height: 48px; }
    .row .pick { display: block; }
  }

  /* ============================================================
   * v6 精致度与稳定性：清晰层级、稳定网格、可靠焦点
   * ============================================================ */
  :root {
    --topbar-h: 72px;
    --content-max: 1360px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-sm: 0 1px 2px rgba(35, 24, 12, 0.05), 0 1px 8px rgba(35, 24, 12, 0.025);
    --shadow-md: 0 10px 30px rgba(35, 24, 12, 0.07), 0 2px 8px rgba(35, 24, 12, 0.04);
    --shadow-lg: 0 28px 70px rgba(35, 24, 12, 0.18), 0 8px 24px rgba(35, 24, 12, 0.08);
  }
  html[data-theme="light"] {
    --bg: #f7f5f1;
    --surface: #fffefa;
    --surface-2: #f3f0ea;
    --surface-3: #e9e4db;
    --border: #e2ddd3;
    --border-strong: #c8bfb1;
    --text: #211c16;
    --text-2: #5f574d;
    --text-3: #746a5f;
    --accent: #bd3f12;
    --accent-soft: rgba(189, 63, 18, 0.10);
    --status-ok-text: #166534;
    --status-doing-text: #0369a1;
    --status-danger-text: #b42318;
  }
  html[data-theme="dark"] {
    --bg: #0d0d10;
    --surface: #17171c;
    --surface-2: #1e1e25;
    --surface-3: #292932;
    --border: #303039;
    --border-strong: #50505c;
    --text: #f2f1f4;
    --text-2: #c0bdc6;
    --text-3: #98949f;
  }
  body {
    background-color: var(--bg);
    background-image:
      radial-gradient(circle at 8% -12%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 34%),
      linear-gradient(180deg, color-mix(in srgb, var(--surface) 22%, transparent), transparent 320px);
    font-size: 14px;
    letter-spacing: -0.005em;
  }
  body.dialog-open { overflow: hidden; }
  [hidden] { display: none !important; }
  button, input, textarea, select { font: inherit; }
  .btn {
    min-height: 38px; padding: 8px 14px; border-radius: 11px;
    font-weight: 650; letter-spacing: -0.01em;
  }
  .btn.primary {
    box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 20%, transparent), inset 0 1px rgba(255,255,255,0.18);
  }
  .btn.primary:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 25%, transparent), inset 0 1px rgba(255,255,255,0.2); }

  .topbar {
    height: var(--topbar-h);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(22px) saturate(1.35);
    box-shadow: 0 1px rgba(255,255,255,0.36), 0 8px 26px rgba(42, 30, 16, 0.035);
  }
  .topbar-inner { max-width: var(--content-max); padding-inline: 28px; gap: 14px; }
  .brand { gap: 11px; }
  .brand .logo { width: 36px; height: 36px; border-radius: 12px; }
  .brand .t { font-size: 16px; font-weight: 750; }
  .brand .s { margin-top: 2px; font-size: 10px; }
  .svc-state { min-height: 28px; padding: 6px 9px; font-size: 10px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
  .product-nav { gap: 4px; padding: 4px; border-radius: 14px; box-shadow: inset 0 1px rgba(255,255,255,0.32); }
  .product-nav-item { min-width: 124px; padding: 7px 10px; border-radius: 10px; }
  .product-nav-item.active { box-shadow: 0 3px 12px rgba(35,24,12,0.07), inset 0 1px rgba(255,255,255,0.52); }
  .product-nav-item strong { font-size: 13px; }
  .product-nav-item small { margin-top: 2px; font-size: 9.5px; }
  .search { max-width: 380px; }
  .search input { min-height: 40px; padding-inline: 38px 40px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); }
  .view-switch { min-height: 40px; border-radius: 12px; }
  .view-switch button { padding-block: 8px; }
  .icon-btn { min-width: 38px; padding-inline: 10px; }

  .main { max-width: var(--content-max); padding: 18px 28px 96px; }
  .banner-inner {
    padding: 25px 28px; border-radius: 20px;
    background:
      linear-gradient(115deg, color-mix(in srgb, var(--cat, var(--accent)) 8%, var(--surface)), var(--surface) 42%),
      var(--surface);
    box-shadow: var(--shadow-sm);
  }
  .banner-inner::before { width: 4px; opacity: 0.92; }
  .banner .bt { margin-top: 2px; font-size: clamp(28px, 2.4vw, 34px); letter-spacing: -0.04em; }
  .banner .bs { max-width: 680px; margin-top: 7px; font-size: 14px; line-height: 1.6; }
  .workspace-eyebrow { font-size: 10px; letter-spacing: 0.18em; }
  .banner .bb { margin-top: 13px; gap: 8px; }
  .banner .bb .pill { min-height: 27px; padding: 4px 10px; background: color-mix(in srgb, var(--surface) 78%, transparent); }
  .banner-progress { display: grid; gap: 7px; width: min(390px, 100%); margin-top: 15px; }
  .banner-progress > span:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .banner-progress b { color: var(--text-2); font-size: 11px; }
  .banner-progress small { color: var(--text-3); font-size: 10.5px; }
  .banner-progress-track { display: block; height: 5px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--border) 78%, transparent); }
  .banner-progress-track i {
    display: block; width: 100%; height: 100%; border-radius: inherit;
    background: linear-gradient(90deg, var(--cat, var(--accent)), color-mix(in srgb, var(--cat, var(--accent)) 55%, var(--doing)));
    transform: scaleX(var(--progress, 0)); transform-origin: left center;
    transition: transform 0.24s var(--ease-out);
  }
  .banner-side { align-items: center; gap: 22px; }
  .brainstorm-bridge { min-width: 230px; min-height: 62px; padding: 12px 15px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 75%, transparent); box-shadow: var(--shadow-sm); }
  .brainstorm-bridge strong { font-size: 13px; }
  .brainstorm-bridge small { font-size: 11px; }
  .banner .bnum { font-size: 48px; }

  .daily {
    grid-template-columns: 74px minmax(0, 1fr) auto; gap: 16px;
    margin: 14px 0 16px; padding: 14px 18px 14px 14px;
    border-radius: 18px; background: color-mix(in srgb, var(--surface) 95%, transparent);
    box-shadow: var(--shadow-sm);
  }
  .daily .d-cover { width: 74px; height: 60px; border-radius: 11px; }
  .daily .d-tag { margin-bottom: 5px; font-size: 10px; }
  .daily .d-title { font-size: 16px; }
  .daily .d-actions .btn { min-height: 38px; }

  .toolrow {
    position: sticky; top: calc(var(--topbar-h) + 10px); z-index: 42;
    margin: 0 0 12px; padding: 9px;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 15px; background: color-mix(in srgb, var(--bg) 87%, transparent);
    backdrop-filter: blur(18px) saturate(1.25); box-shadow: 0 8px 24px rgba(35,24,12,0.055);
  }
  .cats { flex: 1 1 560px; gap: 7px; }
  .chip { min-height: 31px; padding: 6px 11px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
  .chip:hover { transform: translateY(-1px); }
  .chip.active { box-shadow: 0 3px 10px rgba(35,24,12,0.07); }
  .sort-head, .density { min-height: 34px; background: var(--surface); }
  .sh-btn { padding: 6px 10px; }

  .list { gap: 7px; }
  .list.anim .row, .list.anim .detail-panel { animation-duration: 240ms; }
  .row {
    grid-template-columns: 20px 44px 42px minmax(220px, 1fr) 72px minmax(108px, 170px) 118px 32px;
    gap: 10px; min-height: 60px; padding: 9px 12px;
    border-color: color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 14px; background: color-mix(in srgb, var(--surface) 95%, transparent);
    box-shadow: var(--shadow-sm);
    transition: transform 160ms var(--ease), background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }
  .row:hover, .row:focus-within, .row.kbd {
    transform: translateY(-1px); border-color: color-mix(in srgb, var(--cat, var(--accent)) 35%, var(--border));
    background: var(--surface); box-shadow: 0 8px 22px rgba(35,24,12,0.07);
  }
  .row::before { top: 12px; bottom: 12px; left: -1px; width: 3px; opacity: 0.38; }
  .row:hover::before, .row:focus::before, .row.kbd::before { opacity: 1; }
  .row > * { min-width: 0; }
  .row > .name { overflow: hidden !important; }
  .row .name { font-size: 14px; font-weight: 680; }
  .row .name .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row .id { font-size: 10.5px; }
  .row .cat-slot { display: none; }
  .row .thumb { width: 42px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--cat) 10%, var(--surface-2)); }
  .row .thumb .cat-icon { width: 18px; height: 18px; }
  .row .src { font-size: 11.5px; }
  .row .status { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 12px; }
  .row .archive-inline { margin-left: 0; }
  .status .archive-inline .archive-badge { padding: 2px 6px; font-size: 9px; }
  .row .pick {
    display: block; width: 16px; height: 16px; margin: auto;
    opacity: 0.42; visibility: visible; accent-color: var(--accent);
    transition: opacity 150ms ease;
  }
  .row:hover .pick, .row:focus .pick, .row:focus-within .pick, .row.picked .pick, .row .pick:checked { opacity: 1; visibility: visible; }
  .row .pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .row-disclosure {
    width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px;
    background: transparent; cursor: pointer;
  }
  .row-disclosure:hover { color: var(--accent); background: var(--accent-soft); }
  .row.open + .detail-panel { margin: 0 0 8px; border-color: color-mix(in srgb, var(--cat, var(--accent)) 22%, var(--border)); }
  .detail-panel { border-radius: 14px; background: color-mix(in srgb, var(--surface) 96%, transparent); }
  .detail-panel .dp-body { padding: 17px 18px; gap: 10px; }
  .detail-panel .dp-actions { gap: 7px; }
  .detail-panel .dp-act { min-height: 34px; padding: 7px 11px; background: var(--surface); }

  .board { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
  .card { align-self: start; border-radius: 18px; box-shadow: var(--shadow-sm); }
  .card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cat, var(--accent)) 35%, var(--border)); box-shadow: var(--shadow-md); }
  .card .cover {
    height: 118px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 15%, var(--surface-2)), var(--surface-2));
  }
  .card .cover::before { display: none; }
  .card .cover::after { background: linear-gradient(180deg, transparent 45%, rgba(10,10,14,0.16)); }
  .card .cover .ph { display: flex; flex-direction: column; gap: 10px; color: var(--cat); }
  .card .cover .ph-icon { display: grid; place-items: center; width: 38px; height: 38px; }
  .card .cover .ph-icon svg { width: 32px; height: 32px; }
  .card .cover .ph-label { font: 700 10px var(--mono); letter-spacing: 0.1em; }
  .card .cover .stt { top: 12px; left: 12px; padding: 4px 9px; background: color-mix(in srgb, var(--surface) 86%, transparent); border-color: color-mix(in srgb, var(--border) 70%, transparent); }
  .card .body { padding: 17px 18px 16px; }
  .card-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--text-3); font: 700 10px var(--mono); letter-spacing: 0.06em; }
  .card-kicker span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card .nm { min-height: 46px; margin-bottom: 10px; font-size: 17px; line-height: 1.38; }
  .card .bdg { min-height: 24px; }
  .card .bdg .badge.cat { display: none; }
  .card .archive-card-meta { display: none; }
  .card .ds { min-height: 43px; margin: 8px 0 12px; font-size: 13px; }
  .card .ft { min-height: 38px; padding-top: 11px; }
  .card-disclosure { flex: 0 0 auto; border: 0; background: transparent; color: var(--text-3); cursor: pointer; font-size: 11.5px; }
  .card-disclosure:hover { color: var(--accent); }
  .study-btn { min-height: 30px; padding: 5px 9px; }

  .brainstorm-workspace { gap: 16px; }
  .brainstorm-hero { padding: 27px 28px; border-radius: 20px; box-shadow: var(--shadow-sm); }
  .brainstorm-hero h1 { font-size: clamp(30px, 3vw, 38px); letter-spacing: -0.04em; }
  .brainstorm-hero p { margin-top: 10px; font-size: 14px; }
  .brainstorm-goal-builder { gap: 26px; padding: 24px 26px; border-radius: 18px; box-shadow: var(--shadow-sm); }
  .goal-builder-copy label { font-size: 20px; }
  .goal-builder-copy p { font-size: 12.5px; }
  .goal-builder-input textarea { min-height: 108px; padding: 15px 16px; font-size: 15px; line-height: 1.65; }
  .goal-examples button { min-height: 30px; font-size: 11.5px; }
  .brainstorm-modes { padding: 4px; }
  .brainstorm-modes button { min-height: 36px; padding: 8px 15px; font-size: 12.5px; }
  .brainstorm-context { font-size: 12px; }
  .brainstorm-section-head { padding: 14px 16px; }
  .brainstorm-section-head strong { font-size: 14px; }
  .brainstorm-section-head span { font-size: 11.5px; }
  .brainstorm-fusion-card > p, .brainstorm-suggestion p { font-size: 13px; }
  .brainstorm-note { font-size: 11.5px; }
  .brainstorm-loading, .brainstorm-empty { min-height: 170px; font-size: 13px; }
  .brainstorm-error { margin: 12px; border-radius: 12px; }

  .modal-overlay {
    background: color-mix(in srgb, var(--bg) 68%, transparent);
    backdrop-filter: blur(15px) saturate(0.85);
  }
  .modal { max-width: 660px; padding: 28px; border-radius: 22px; box-shadow: var(--shadow-lg); }
  .modal h3 { font-size: 22px; letter-spacing: -0.025em; }
  .modal .sub { margin-top: 6px; margin-bottom: 18px; font-size: 13.5px; }
  .modal input[type=text], .modal textarea, .modal select { min-height: 42px; padding: 10px 13px; background: var(--surface-2); }
  .modal .actions { padding-top: 4px; border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
  .capture-modal { max-width: 720px; }
  .capture-modal { scroll-padding-bottom: 92px; }
  .capture-assurances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 19px; }
  .capture-assurances span { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 11px; background: color-mix(in srgb, var(--surface-2) 72%, transparent); color: var(--text-2); font-size: 12px; }
  .capture-assurances b { color: var(--accent); font: 700 10px var(--mono); }
  .capture-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .capture-input-row #fetchUrl { min-height: 46px; }
  .capture-input-row #fetchBtn { min-width: 104px; justify-content: center; }
  .capture-privacy { margin: 8px 2px 0; color: var(--text-3); font-size: 11px; }
  .fetch-prev { border-radius: 14px; }
  .duplicate-box { border-radius: 14px; }
  .capture-modal .actions {
    position: sticky; bottom: -28px; z-index: 4;
    margin: 20px -28px -28px; padding: 14px 28px 22px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, transparent), var(--surface) 22%);
    backdrop-filter: blur(12px);
  }
  .study { border-radius: 22px; }
  .entry-view { max-width: 920px; }
  .entry-form .ef-set { padding: 18px 19px 15px; border-radius: 16px; box-shadow: var(--shadow-sm); }
  footer { max-width: var(--content-max); padding-inline: 28px; }

  @media (max-width: 1180px) {
    .topbar-inner { padding-inline: 18px; gap: 9px; }
    .brand .s, .product-nav-item small { display: none; }
    .product-nav-item { min-width: 44px; }
    .search { max-width: none; }
    .row { grid-template-columns: 20px 44px 42px minmax(180px, 1fr) 72px 110px 32px; }
    .row .src { display: none; }
  }
  @media (max-width: 840px) {
    .main { padding-inline: 16px; }
    .toolrow { position: relative; top: auto; }
    .row { grid-template-columns: 20px 42px minmax(150px, 1fr) 104px 32px; }
    .row .id, .row .difficulty, .row .src { display: none; }
    .board { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  }
  @media (max-width: 768px) {
    .topbar { height: auto; }
    .topbar-inner { padding: 9px 12px 10px; }
    .main { padding: 14px 12px 80px; }
    .banner-inner { padding: 20px; }
    .banner .bwrap { padding-right: 72px; }
    .banner .bt { font-size: 27px; }
    .banner-progress { width: 100%; max-width: 320px; }
    .brainstorm-bridge { min-width: 0; min-height: 54px; }
    .daily { grid-template-columns: 64px minmax(0, 1fr); padding: 13px 31px 13px 13px; }
    .daily .d-cover { width: 64px; height: 64px; }
    .row .pick { opacity: 0.52; visibility: visible; }
    .brainstorm-hero, .brainstorm-goal-builder { padding: 20px; }
  }
  @media (max-width: 620px) {
    .banner .bwrap { padding-right: 56px; }
    .banner .bs { max-width: 260px; }
    .banner-progress { max-width: none; }
    .toolrow { padding: 7px; }
    .row { grid-template-columns: 20px minmax(0, 1fr) 70px 30px; min-height: 64px; padding: 9px 9px; }
    .row .id, .row .thumb, .row .cat-slot, .row .difficulty, .row .src, .row .archive-inline { display: none; }
    .row .name .txt { display: -webkit-box; overflow: hidden; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.35; }
    .row .status { font-size: 11.5px; }
    .board { grid-template-columns: 1fr; gap: 13px; }
    .card .cover { height: 104px; }
    .card .nm { min-height: 0; }
    .capture-assurances { gap: 5px; }
    .capture-assurances span { justify-content: center; gap: 5px; padding-inline: 6px; font-size: 10.5px; }
    .capture-input-row { grid-template-columns: 1fr; }
    .capture-input-row #fetchBtn { width: 100%; }
    .modal { padding: 22px 18px; border-radius: 18px; }
    .capture-modal .actions { bottom: -22px; margin: 18px -18px -22px; padding: 12px 18px 18px; }
  }
  @media (max-width: 560px) {
    .brand { order: 1; }
    .theme-wrap { order: 2; margin-left: auto; }
    .load { order: 3; }
    .product-nav { order: 4; margin-left: 0; }
    .view-switch { order: 5; }
    .search { order: 6; }
  }
  @media (max-width: 390px) {
    .topbar-inner {
      display: grid; grid-template-columns: 28px minmax(104px, 1fr) 34px auto;
      grid-template-areas: "brand nav theme load" "search search search view";
      align-items: center; gap: 6px; padding: 7px 8px 8px;
    }
    .brand { grid-area: brand; min-width: 0; }
    .brand .logo, .brand .txt, .brand-mark, #svcLabel { display: none; }
    .svc-state { width: 28px; min-height: 28px; margin: 0; padding: 0; justify-content: center; }
    .product-nav { grid-area: nav; min-width: 0; margin: 0; }
    .product-nav-step { display: none; }
    .product-nav-item { min-height: 34px; padding: 5px 4px; }
    .product-nav-item strong { font-size: 11px; }
    .theme-wrap { grid-area: theme; margin: 0; }
    .theme-btn { width: 34px; min-height: 34px; }
    .load { grid-area: load; gap: 5px; }
    .load .icon-btn, .load #addBtn { width: 34px; min-width: 34px; min-height: 34px; padding: 0; justify-content: center; }
    .load #addBtn { font-size: 0; }
    .search { grid-area: search; width: 100%; }
    .search input { min-height: 36px; }
    .view-switch { grid-area: view; min-height: 36px; }
    .view-switch button { min-width: 40px; padding: 6px 8px; font-size: 12px; }
    .banner-inner { padding: 18px 16px; }
    .banner .bt { font-size: 24px; }
    .banner .bb .pill { padding-inline: 8px; }
    .banner-progress small { display: none; }
    .row { grid-template-columns: 18px minmax(0, 1fr) 62px 28px; }
    .capture-assurances span { flex-direction: column; min-height: 48px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .banner-progress-track i { transition: none; }
    .row:hover, .row:focus-within, .card:hover, .chip:hover { transform: none; }
  }

  @media (max-width: 420px) {
    .topbar-inner { padding-block: 7px; }
    .statsbar { padding-top: 8px; }
    .stat { flex-basis: 102px; }
    .banner .bwrap { padding-right: 60px; }
    .banner .bnum { font-size: 31px; }
    .daily .d-meta .badge.cat { display: none; }
    .sh-btn .lbl { font-size: 11px; }
  }

  /* ===== v2.2 可信恢复：本地取证台，克制地嵌入现有工作台 ===== */
  .trust-rail {
    --trust-tone: var(--doing);
    width: min(1280px, calc(100% - 36px)); margin: 14px auto 0; padding: 11px 12px 11px 14px;
    display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px;
    border: 1px solid color-mix(in srgb, var(--trust-tone) 30%, var(--border)); border-radius: 12px;
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--trust-tone) 8%, transparent), transparent 38%),
      repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--border) 40%, transparent) 24px),
      var(--surface);
    box-shadow: var(--shadow-sm);
  }
  .trust-rail[data-state="healthy"], .trust-rail[data-state="verified"] { --trust-tone: var(--ok); }
  .trust-rail[data-state="action_required"], .trust-rail[data-state="locked"], .trust-rail[data-state="upgrade_required"] { --trust-tone: var(--accent); }
  .trust-rail[data-state="ambiguous"], .trust-rail[data-state="failed"] { --trust-tone: var(--danger); }
  .trust-rail-mark { width: 30px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--trust-tone); border-radius: 50%; }
  .trust-rail-mark::before, .trust-rail-mark span { content: ""; position: absolute; width: 12px; height: 12px; border: 1px solid var(--trust-tone); transform: rotate(45deg); }
  .trust-rail-mark span { width: 4px; height: 4px; background: var(--trust-tone); }
  .trust-rail-copy { min-width: 0; display: grid; gap: 1px; }
  .trust-kicker { color: var(--trust-tone); font: 700 9px/1.2 var(--mono); letter-spacing: 0.15em; }
  .trust-rail-copy strong { font: 650 13px/1.25 var(--display); color: var(--text); }
  .trust-rail-copy small { overflow: hidden; color: var(--text-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .trust-rail-action { min-height: 34px; padding: 0 13px; border: 1px solid color-mix(in srgb, var(--trust-tone) 45%, var(--border)); border-radius: 8px; color: var(--text); background: var(--surface-2); font: 650 12px var(--font); cursor: pointer; }
  .trust-rail-action:hover, .trust-rail-action:focus-visible { outline: 2px solid color-mix(in srgb, var(--trust-tone) 45%, transparent); outline-offset: 2px; }

  .recovery-overlay { backdrop-filter: blur(9px) saturate(0.75); }
  .recovery-modal { width: min(720px, calc(100vw - 28px)); max-width: 720px; border-top: 3px solid var(--accent); }
  .recovery-heading { display: flex; align-items: center; gap: 13px; padding-right: 36px; }
  .recovery-seal { width: 46px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font: 700 18px Georgia, "Songti SC", serif; box-shadow: inset 0 0 0 5px var(--accent-soft); }
  .recovery-status { margin: 18px 0 12px; padding: 13px 15px; border-left: 3px solid var(--accent); background: var(--surface-2); color: var(--text-2); font-size: 13px; }
  .recovery-status strong { display: block; margin-bottom: 3px; color: var(--text); font-family: var(--display); }
  .recovery-candidates { margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
  .recovery-candidates legend { padding: 0 7px; color: var(--text-2); font: 700 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
  .recovery-candidate { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 8px; cursor: pointer; }
  .recovery-candidate:hover { background: var(--surface-2); }
  .recovery-candidate small { display: block; color: var(--text-3); font-family: var(--mono); }
  .recovery-candidate code { color: var(--text-2); font-size: 10px; }
  .recovery-empty { margin: 3px; color: var(--text-3); font-size: 12px; }
  .recovery-preview { margin-top: 12px; padding: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--border)); border-radius: 10px; background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
  .recovery-step { color: var(--accent); font: 700 10px var(--mono); letter-spacing: 0.12em; }
  .recovery-preview h3 { margin: 5px 0 9px; font: 650 16px var(--display); }
  .recovery-preview pre { max-height: 180px; margin: 0; overflow: auto; white-space: pre-wrap; color: var(--text-2); font: 11px/1.65 var(--mono); }
  .recovery-error { margin-top: 12px; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--border)); border-radius: 8px; color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
  .recovery-error:focus { outline: 2px solid var(--danger); outline-offset: 2px; }
  .recovery-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
  .recovery-actions .danger:not(:disabled) { border-color: var(--danger); color: #fff; background: color-mix(in srgb, var(--danger) 72%, #401010); }
  .recovery-footnote { margin: 12px 0 0; color: var(--text-3); font-size: 10.5px; line-height: 1.55; }

  @media (max-width: 620px) {
    .trust-rail { width: calc(100% - 24px); grid-template-columns: 28px minmax(0, 1fr); margin-top: 10px; }
    .trust-rail-mark { width: 26px; }
    .trust-rail-copy small { white-space: normal; }
    .trust-rail-action { grid-column: 1 / -1; width: 100%; }
    .recovery-candidate { grid-template-columns: auto minmax(0, 1fr); }
    .recovery-candidate code { grid-column: 2; }
    .recovery-actions { display: grid; }
  }

  @media (prefers-reduced-motion: reduce) {
    .trust-rail, .trust-rail *, .recovery-modal, .recovery-modal * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }

  /* ===== 专业交互层：快捷指令、视图过渡与可见性动效门控 ===== */
  .command-btn {
    flex: 0 0 auto; min-height: 38px; gap: 8px; padding: 0 10px;
    color: var(--text-2); background: color-mix(in srgb, var(--surface) 88%, transparent);
  }
  .command-btn:hover, .command-btn:focus-visible { color: var(--text); border-color: var(--border-strong); background: var(--surface); }
  .command-btn kbd, .command-foot kbd, .command-search > kbd, .command-option > kbd {
    display: inline-grid; min-width: 24px; min-height: 22px; place-items: center; padding: 2px 6px;
    border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px;
    color: var(--text-3); background: var(--surface-2); font: 650 9px var(--mono); letter-spacing: 0.02em;
  }
  .command-overlay.open { animation: none; }
  .command-modal {
    position: relative; width: min(640px, calc(100vw - 28px)); max-width: 640px; max-height: min(680px, calc(100vh - 28px));
    overflow: hidden; padding: 18px; border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
    background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 28px 90px rgba(12, 10, 8, 0.24);
  }
  .command-overlay.open .command-modal { animation: none; }
  .command-overlay.open .command-modal > * { animation: none; }
  .command-modal::before {
    content: ""; position: absolute; inset: -120px -80px auto auto; width: 310px; height: 240px; pointer-events: none;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 13%, transparent), transparent 68%);
  }
  .command-heading { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 2px 2px 13px; }
  .command-heading .modal-x { position: static; flex: 0 0 auto; }
  .command-kicker { margin-bottom: 3px; color: var(--accent); font: 700 9px var(--mono); letter-spacing: 0.16em; }
  .modal .command-search {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
    min-height: 48px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 12px;
    color: var(--text-3); background: var(--bg); transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  }
  .command-search:focus-within { border-color: color-mix(in srgb, var(--accent) 62%, var(--border)); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
  .modal .command-search input[type="text"] { width: 100%; min-height: 44px; padding: 0; border: 0; border-radius: 0; outline: 0; color: var(--text); background: transparent; box-shadow: none; font: 14px var(--font); }
  .modal .command-search input::placeholder { color: var(--text-3); }
  .command-list { display: grid; gap: 5px; max-height: min(440px, calc(100vh - 230px)); margin: 12px -4px 0; padding: 0 4px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .command-option {
    position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px;
    width: 100%; min-height: 56px; padding: 8px 11px; border: 1px solid transparent; border-radius: 12px;
    color: var(--text); background: transparent; text-align: left; cursor: pointer;
    transition: transform 160ms var(--ease), border-color 160ms ease, background 160ms ease, box-shadow 160ms var(--ease);
  }
  .command-option:hover, .command-option.active {
    transform: translateX(3px); border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
    background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--surface-2) 72%, transparent));
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 72%, transparent);
  }
  .command-glyph { display: grid; width: 36px; aspect-ratio: 1; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--accent); background: var(--surface); font: 750 11px var(--mono); transition: transform 180ms var(--ease), border-color 180ms ease; }
  .command-option.active .command-glyph, .command-option:hover .command-glyph { transform: rotate(-3deg) scale(1.04); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
  .command-copy { min-width: 0; display: grid; gap: 2px; }
  .command-copy strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
  .command-copy small { overflow: hidden; color: var(--text-3); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
  .command-empty { padding: 34px 16px; color: var(--text-3); text-align: center; font-size: 13px; }
  .command-foot { display: flex; align-items: center; gap: 14px; margin: 12px -18px -18px; padding: 11px 18px; border-top: 1px solid var(--border); color: var(--text-3); background: var(--surface-2); font-size: 10.5px; }
  .command-foot span { display: flex; align-items: center; gap: 4px; }
  .command-foot span:last-child { margin-left: auto; }

  .product-view-enter { animation: productViewEnter 0.18s var(--ease-out) both; }
  .motion-surface.is-motion-offscreen, .motion-surface.is-motion-offscreen *,
  .motion-paused *, .motion-paused *::before, .motion-paused *::after,
  .modal-overlay:not(.open) *, .study-overlay:not(.open) *,
  [hidden], [hidden]::before, [hidden]::after, [hidden] * { animation-play-state: paused !important; }
  .btn:active:not(:disabled), .chip:active, .product-nav-item:active, .row-disclosure:active, .card-disclosure:active { transform: translateY(1px); scale: 0.975; }

  @keyframes productViewEnter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

  @media (max-width: 1180px) { .command-btn kbd { display: none; } }
  @media (max-width: 768px) { .command-btn { order: 4; width: 38px; padding: 0; justify-content: center; } }
  @media (max-width: 560px) {
    .command-btn { display: none; }
    .command-modal { padding: 14px; border-radius: 18px; }
    .command-list { max-height: calc(100vh - 210px); }
    .command-foot { margin: 10px -14px -14px; padding: 10px 14px; }
    .command-foot span:last-child { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .command-overlay, .command-modal, .command-option, .command-glyph, .product-view-enter { animation: none !important; transition: none !important; transform: none !important; }
  }

  /* ===== 知识关系画布：把本地收藏变成可整理、可溯源的证据空间 ===== */
  body.relationship-active { height: 100vh; overflow: hidden; }
  body.relationship-active .trust-rail,
  body.relationship-active .statsbar,
  body.relationship-active footer { display: none !important; }
  body.relationship-active #banner,
  body.relationship-active #daily,
  body.relationship-active #toolrow,
  body.relationship-active #meta,
  body.relationship-active #emptyState,
  body.relationship-active #listView,
  body.relationship-active #boardView,
  body.relationship-active #entryView { display: none !important; }
  body.relationship-active .view-switch { display: none; }
  body.relationship-active .main {
    width: 100%; max-width: none; height: calc(100vh - var(--topbar-h)); margin: 0; padding: 0; overflow: hidden;
  }
  .relationship-workspace {
    position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px;
    width: 100%; height: 100%; min-height: 640px; overflow: hidden;
    border-top: 1px solid var(--border); background: var(--bg);
  }
  .relationship-sidebar,
  .relationship-detail { min-width: 0; background: color-mix(in srgb, var(--surface) 94%, var(--bg)); }
  .relationship-sidebar {
    display: flex; flex-direction: column; gap: 20px; padding: 22px 14px 18px;
    overflow: auto; border-right: 1px solid var(--border); scrollbar-width: thin;
  }
  .relationship-rail-heading { display: grid; gap: 3px; padding: 0 8px; }
  .relationship-rail-heading span,
  .relationship-kicker { color: var(--accent); font: 700 9px var(--mono); letter-spacing: 0.14em; }
  .relationship-rail-heading strong { font: 680 16px var(--display); }
  .relationship-scope,
  .relationship-filter-list { display: grid; gap: 4px; }
  .relationship-scope button,
  .relationship-filter-list button {
    display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 10px;
    padding: 0 10px; border: 1px solid transparent; border-radius: 9px;
    color: var(--text-2); background: transparent; font: 500 12.5px var(--font); text-align: left; cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms var(--ease);
  }
  .relationship-scope button:hover,
  .relationship-filter-list button:hover { color: var(--text); background: var(--surface-2); transform: translateX(2px); }
  .relationship-scope button.active {
    color: var(--accent); border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
    background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent);
  }
  .relationship-filter-list button.active { color: var(--text); background: var(--surface-2); }
  .relationship-scope b,
  .relationship-filter-list b {
    min-width: 23px; padding: 2px 6px; border: 1px solid var(--border); border-radius: 999px;
    color: var(--text-3); background: var(--surface); font: 650 10px var(--mono); text-align: center;
  }
  .relationship-filter-group { display: grid; gap: 7px; padding-top: 16px; border-top: 1px solid var(--border); }
  .relationship-filter-title { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
  .relationship-filter-title strong { color: var(--text-2); font-size: 11px; }
  .relationship-filter-title button {
    border: 0; color: var(--text-3); background: transparent; font: 10px var(--font); cursor: pointer;
  }
  .relationship-filter-title button:hover { color: var(--accent); }
  .relationship-local-card {
    display: grid; gap: 6px; margin-top: auto; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  }
  .relationship-local-card strong { color: var(--status-ok-text, var(--ok)); font-size: 11.5px; }
  .relationship-local-card span { color: var(--text-3); font-size: 10.5px; line-height: 1.45; }
  .relationship-local-card button {
    width: fit-content; margin-top: 3px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px;
    color: var(--text-2); background: var(--surface-2); font: 10.5px var(--font); cursor: pointer;
  }
  .relationship-center { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
  .relationship-canvas-header {
    display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 20px;
    padding: 16px 22px; border-bottom: 1px solid var(--border); background: var(--surface);
  }
  .relationship-canvas-header h1 { margin: 3px 0 1px; font: 700 22px/1.1 var(--display); letter-spacing: var(--tr-tight); }
  .relationship-canvas-header p { color: var(--text-3); font-size: 11.5px; }
  .relationship-header-actions { display: flex; align-items: center; gap: 10px; }
  .relationship-header-actions > span {
    max-width: 220px; overflow: hidden; color: var(--text-3); font: 10.5px var(--mono); text-overflow: ellipsis; white-space: nowrap;
  }
  .relationship-viewport {
    position: relative; min-width: 0; min-height: 0; overflow: hidden; touch-action: none; cursor: grab;
    background-color: color-mix(in srgb, var(--bg) 72%, var(--surface)); outline: none;
  }
  .relationship-viewport:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
  .relationship-viewport.is-panning { cursor: grabbing; }
  .relationship-scene {
    position: absolute; left: 0; top: 0; width: 1160px; height: 1060px; transform-origin: 0 0;
    transition: transform 180ms var(--ease-out);
  }
  .relationship-viewport.is-instant-fit .relationship-scene { transition: none; }
  .relationship-viewport.is-panning .relationship-scene,
  .relationship-viewport.is-dragging-node .relationship-scene { will-change: transform; transition: none; }
  .relationship-links,
  .relationship-zones,
  .relationship-nodes { position: absolute; inset: 0; width: 100%; height: 100%; }
  .relationship-links { overflow: visible; pointer-events: none; }
  .relationship-link { fill: none; stroke: var(--text-3); stroke-width: 1.4; opacity: 0.46; vector-effect: non-scaling-stroke; transition: opacity 160ms ease; }
  .relationship-link-theme { stroke: #7c3aed; }
  .relationship-link-source { stroke: #0f766e; }
  .relationship-link-portfolio { stroke: #d97706; }
  .relationship-link-capability { stroke: #2563eb; }
  .relationship-link.is-related { stroke-width: 2.2; opacity: 0.9; }
  .relationship-link.is-muted { opacity: 0.09; }
  .relationship-link-label {
    fill: var(--text-2); paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round;
    font: 650 10px var(--font); text-anchor: middle; pointer-events: none;
  }
  .relationship-zone {
    position: absolute; border: 1px dashed color-mix(in srgb, var(--zone-color, var(--border-strong)) 52%, transparent);
    border-radius: 28px; background: color-mix(in srgb, var(--zone-color, var(--surface)) 4%, transparent); pointer-events: none;
  }
  .relationship-zone span {
    position: absolute; left: 18px; right: 18px; top: -31px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    color: var(--zone-color, var(--text-2));
  }
  .relationship-zone span b { font: 700 14px var(--display); letter-spacing: var(--tr-tight); }
  .relationship-zone span small { color: var(--text-3); font: 600 9px var(--mono); letter-spacing: 0.05em; }
  .relationship-node {
    --node-color: var(--accent); position: absolute; width: 236px; min-height: 108px; padding: 15px 16px;
    border: 1px solid color-mix(in srgb, var(--node-color) 24%, var(--border)); border-radius: 12px;
    color: var(--text); background: var(--surface); box-shadow: var(--shadow-md); cursor: grab; user-select: none;
    transform: translate3d(var(--node-x), var(--node-y), 0);
    transition: border-color 160ms ease, box-shadow 180ms var(--ease), opacity 160ms ease, filter 160ms ease;
  }
  .relationship-node:hover { border-color: color-mix(in srgb, var(--node-color) 58%, var(--border)); box-shadow: var(--shadow-lg); }
  .relationship-node:focus-visible { outline: 3px solid color-mix(in srgb, var(--node-color) 32%, transparent); outline-offset: 3px; }
  .relationship-node.is-selected {
    border-color: #3b82f6; box-shadow: 0 0 0 3px color-mix(in srgb, #3b82f6 20%, transparent), 0 18px 38px rgba(48, 40, 31, 0.17); z-index: 5;
  }
  .relationship-node.is-related:not(.is-selected) { border-color: color-mix(in srgb, var(--node-color) 46%, var(--border)); box-shadow: 0 8px 20px rgba(48, 40, 31, 0.11); }
  .relationship-node.is-muted { opacity: 0.7; filter: saturate(0.78); }
  .relationship-node.is-dragging { cursor: grabbing; z-index: 8; box-shadow: 0 18px 42px rgba(0,0,0,0.2); }
  .relationship-node-type { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 8px; }
  .relationship-node-type span { color: var(--node-color); font: 700 11px var(--mono); letter-spacing: 0.08em; }
  .relationship-node-type b {
    max-width: 102px; overflow: hidden; padding: 2px 7px; border-radius: 999px;
    color: var(--text-3); background: var(--surface-2); font: 600 10.5px var(--font); text-overflow: ellipsis; white-space: nowrap;
  }
  .relationship-node strong {
    display: -webkit-box; overflow: hidden; margin-bottom: 8px; font: 660 16px/1.4 var(--font);
    -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  }
  .relationship-node-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-3); font: 11px var(--mono); }
  .relationship-node-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .relationship-node-meta b { flex: 0 0 auto; color: var(--status-ok-text, var(--ok)); font: 650 10px var(--font); }
  .relationship-empty {
    position: absolute; left: 50%; top: 50%; z-index: 10; width: min(420px, calc(100% - 40px));
    padding: 24px; border: 1px solid var(--border); border-radius: 14px; color: var(--text-2); background: var(--surface);
    box-shadow: var(--shadow-md); text-align: center; transform: translate(-50%, -50%);
  }
  .relationship-empty[hidden] { display: none; }
  .relationship-map-controls {
    position: absolute; left: 18px; bottom: 18px; z-index: 12; display: flex; align-items: center;
    overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-md);
  }
  .relationship-map-controls button,
  .relationship-map-controls span { min-width: 36px; min-height: 34px; display: grid; place-items: center; border: 0; border-right: 1px solid var(--border); color: var(--text-2); background: transparent; font: 600 11px var(--font); }
  .relationship-map-controls button { cursor: pointer; }
  .relationship-map-controls button:hover { color: var(--accent); background: var(--surface-2); }
  .relationship-map-controls button:last-child { min-width: 48px; border-right: 0; }
  .relationship-minimap {
    position: absolute; right: 18px; bottom: 18px; z-index: 11; width: 132px; height: 86px;
    overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-md); pointer-events: none;
  }
  .relationship-minimap-node { position: absolute; width: 9px; height: 6px; border-radius: 2px; background: var(--mini-color, var(--accent)); opacity: 0.7; }
  .relationship-minimap-window { position: absolute; border: 1px solid var(--accent); background: var(--accent-soft); }
  .relationship-canvas-hint {
    position: absolute; left: 50%; bottom: 20px; z-index: 10; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px;
    color: var(--text-3); background: color-mix(in srgb, var(--surface) 90%, transparent); font-size: 9.5px; transform: translateX(-50%); pointer-events: none;
  }
  .relationship-action-dock {
    position: absolute; left: 50%; bottom: 22px; z-index: 20; display: flex; gap: 7px;
    padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: var(--shadow-lg); transform: translateX(-50%); backdrop-filter: blur(12px);
  }
  .relationship-action-dock button {
    min-height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 9px;
    color: var(--text-2); background: var(--surface-2); font: 620 11.5px var(--font); cursor: pointer; white-space: nowrap;
    transition: transform 150ms var(--ease), border-color 150ms ease, color 150ms ease, background 150ms ease;
  }
  .relationship-action-dock button:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
  .relationship-action-dock button.primary { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
  .relationship-detail { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-left: 1px solid var(--border); }
  .relationship-detail > header {
    display: flex; min-height: 88px; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 17px 16px; border-bottom: 1px solid var(--border); background: var(--surface);
  }
  .relationship-detail > header div { min-width: 0; display: grid; gap: 4px; }
  .relationship-detail > header span { color: var(--text-3); font-size: 10px; }
  .relationship-detail > header strong { display: -webkit-box; overflow: hidden; font: 680 14px/1.35 var(--display); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .relationship-detail > header button { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid transparent; border-radius: 8px; color: var(--text-3); background: transparent; font-size: 20px; cursor: pointer; }
  .relationship-detail > header button:hover { border-color: var(--border); color: var(--text); background: var(--surface-2); }
  .relationship-detail-body { min-height: 0; padding: 16px; overflow: auto; scrollbar-width: thin; }
  .relationship-detail-empty { padding: 38px 12px; color: var(--text-3); font-size: 12px; line-height: 1.7; text-align: center; }
  .relationship-source-kind { color: var(--accent); font: 700 9px var(--mono); letter-spacing: 0.1em; }
  .relationship-detail-domain { display: block; margin-top: 6px; color: var(--text-3); font: 10px var(--mono); }
  .relationship-detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
  .relationship-detail-tags span { padding: 3px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); background: var(--surface-2); font-size: 9.5px; }
  .relationship-detail-section { display: grid; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--border); }
  .relationship-detail-section > strong { font-size: 11px; }
  .relationship-detail-section p { color: var(--text-2); font-size: 11.5px; line-height: 1.7; overflow-wrap: anywhere; }
  .relationship-archive-summary { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
  .relationship-archive-summary b { color: var(--status-ok-text, var(--ok)); font-size: 11px; }
  .relationship-archive-summary span { color: var(--text-3); font-size: 10px; }
  .relationship-related-list { display: grid; gap: 5px; }
  .relationship-related-list button {
    display: grid; gap: 2px; width: 100%; padding: 9px; border: 1px solid var(--border); border-radius: 9px;
    color: var(--text); background: var(--surface); text-align: left; cursor: pointer;
  }
  .relationship-related-list button:hover { border-color: var(--accent); background: var(--accent-soft); }
  .relationship-related-list small { color: var(--text-3); font-size: 9.5px; }
  .relationship-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 12px 16px 16px; border-top: 1px solid var(--border); background: var(--surface); }
  .relationship-detail-actions[hidden] { display: none; }
  .relationship-detail-actions button,
  .relationship-detail-actions a {
    min-height: 36px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px;
    color: var(--text-2); background: var(--surface-2); font: 600 10.5px var(--font); text-decoration: none; cursor: pointer;
  }
  .relationship-detail-actions button:hover,
  .relationship-detail-actions a:hover { color: var(--accent); border-color: var(--accent); }
  .relationship-detail-actions .primary { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
  .relationship-detail-actions .primary:hover { color: var(--accent-ink); background: var(--accent-hover); }

  @media (max-width: 1180px) {
    .relationship-workspace { grid-template-columns: 190px minmax(0, 1fr) 286px; }
    .relationship-action-dock button { padding-inline: 10px; }
    .relationship-canvas-hint { display: none; }
  }
  @media (max-width: 940px) {
    body.relationship-active { overflow: hidden; }
    .relationship-workspace { grid-template-columns: 180px minmax(0, 1fr); }
    .relationship-detail {
      position: absolute; top: 0; right: 0; bottom: 0; z-index: 35; width: min(330px, calc(100vw - 180px));
      box-shadow: -16px 0 40px rgba(0,0,0,0.18); transition: transform 240ms var(--ease-drawer);
    }
    .relationship-detail.is-collapsed { transform: translateX(100%); }
    .relationship-minimap { display: none; }
  }
  @media (max-width: 700px) {
    body.relationship-active { height: auto; min-height: 100vh; overflow: auto; }
    body.relationship-active .main { height: calc(100vh - 120px); min-height: 620px; }
    .relationship-workspace { grid-template-columns: 1fr; min-height: 620px; }
    .relationship-sidebar { display: none; }
    .relationship-detail { width: min(340px, 92vw); }
    .relationship-canvas-header { min-height: 78px; padding: 12px 14px; }
    .relationship-canvas-header h1 { font-size: 18px; }
    .relationship-canvas-header p, .relationship-header-actions > span { display: none; }
    .relationship-action-dock { bottom: 14px; width: calc(100% - 24px); overflow-x: auto; justify-content: flex-start; }
    .relationship-action-dock button { flex: 0 0 auto; }
    .relationship-link-label { font-size: 11px; }
    .relationship-map-controls { left: 12px; bottom: 72px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .relationship-scene, .relationship-detail, .relationship-node { transition: none !important; }
  }

  /* ===== 交互反馈系统：克制、可中断、与现有 transform 解耦 ===== */
  :is(button, [role="button"], .relationship-detail-actions a) {
    transition-property: color, background-color, border-color, box-shadow, opacity, filter, transform, scale;
    transition-duration: var(--t-quick);
    transition-timing-function: var(--ease-out);
  }
  :is(button, [role="button"], .relationship-detail-actions a):active:not(:disabled) {
    scale: 0.975;
    transition-duration: var(--t-instant);
  }
  :is(button, [role="button"]):disabled {
    scale: none;
  }
  button[aria-busy="true"][disabled] {
    cursor: progress;
    opacity: 0.8;
  }
  button[aria-busy="true"]::after {
    content: "";
    width: 12px; height: 12px; flex: 0 0 auto;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    opacity: 0.72; animation: controlSpin 0.7s linear infinite;
  }
  button[aria-busy="true"] svg { opacity: 0.45; }
  @keyframes controlSpin { to { transform: rotate(360deg); } }

  @starting-style {
    .modal-overlay.open .modal {
      opacity: 0;
      transform: translateY(8px) scale(0.985);
    }
  }
  html[data-input="keyboard"] .command-option,
  html[data-input="keyboard"] .command-glyph,
  html[data-input="keyboard"] .modal-overlay.open .command-modal {
    animation: none;
    transition: none;
    transform: none;
  }
  .relationship-node { transition-property: border-color, box-shadow, opacity, scale; }
  .relationship-node:active:not(.is-dragging) { scale: 0.985; }

  @media (hover: none), (pointer: coarse) {
    .brand:hover .logo,
    .stat:hover,
    .chip:hover,
    .card:hover,
    .card:hover .cover img,
    .card:hover .corner-mark,
    .banner-inner:hover .bnum,
    .row:hover .thumb,
    .study .s-cover:hover .s-back,
    .command-option:hover,
    .command-option:hover .command-glyph,
    .relationship-scope button:hover,
    .relationship-filter-list button:hover,
    .relationship-action-dock button:hover {
      transform: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .modal, .toast, .daily, .product-view-enter, .bar, .banner-progress-track i,
    .relationship-scene, .relationship-detail, .relationship-node {
      animation: none !important;
      transition: none !important;
    }
    .modal-overlay.open .modal { transform: none !important; }
    .toast { transform: translate(-50%, 0) !important; }
  }

  /* ===== 入口与移动工作流：让收藏动作在任意视图中都可发现 ===== */
  .capture-primary {
    min-height: 42px; padding-inline: 15px; white-space: nowrap;
    border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
    box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 16%, transparent);
  }
  .capture-primary-label { display: inline; }
  .more-panel-primary { color: var(--accent); font-weight: 680; }
  .banner-side { align-items: center; }
  .banner-action-stack { display: grid; min-width: 248px; gap: 8px; }
  .capture-bridge,
  .brainstorm-bridge { width: 100%; min-width: 0; min-height: 58px; }
  .capture-bridge {
    display: flex; align-items: center; gap: 11px; padding: 10px 13px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border)); border-radius: 14px;
    color: var(--accent-ink); background: var(--accent); font-family: var(--font); text-align: left; cursor: pointer;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 18%, transparent);
  }
  .capture-bridge > span:first-child {
    display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center;
    border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 9px;
    background: color-mix(in srgb, currentColor 10%, transparent); font-size: 20px; line-height: 1;
  }
  .capture-bridge > span:last-child { display: flex; min-width: 0; flex: 1; flex-direction: column; }
  .capture-bridge strong { font-size: 12.5px; }
  .capture-bridge small { margin-top: 3px; color: color-mix(in srgb, currentColor 78%, transparent); font-size: 10.5px; }
  .capture-bridge:disabled { cursor: not-allowed; box-shadow: none; }
  .empty-capture { margin-top: 16px; }
  .mobile-capture { display: none; }

  /* 关系筛选在窄屏改为可中断的侧滑抽屉。 */
  .relationship-rail-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .relationship-rail-heading > div { display: grid; gap: 3px; }
  .relationship-sidebar-grab,
  .relationship-rail-heading > button,
  .relationship-filter-btn,
  .relationship-sidebar-scrim { display: none; }

  @media (max-width: 768px) {
    .banner-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
    .banner-action-stack { min-width: 0; }
    .brainstorm-bridge { margin-top: 0; }
    .banner .bnum { position: static; grid-column: 2; grid-row: 1; }
  }

  @media (max-width: 700px) {
    .relationship-filter-btn { display: inline-flex; min-width: 56px; min-height: 44px; justify-content: center; }
    .relationship-sidebar {
      position: absolute; inset: 0 auto 0 0; z-index: 52; display: flex; width: min(320px, 88vw);
      padding: 12px 14px 18px; visibility: hidden; pointer-events: none;
      border-right-color: var(--border-strong); box-shadow: 18px 0 48px rgba(20, 16, 12, 0.24);
      transform: translate3d(-104%, 0, 0); transition: transform 240ms var(--ease-drawer), visibility 0s linear 240ms;
      overscroll-behavior: contain; touch-action: pan-y;
    }
    .relationship-sidebar.is-open {
      visibility: visible; pointer-events: auto; transform: translate3d(0, 0, 0); transition-delay: 0s;
    }
    .relationship-sidebar.is-dragging { transition: none; }
    .relationship-sidebar-grab { display: grid; height: 20px; place-items: center; cursor: grab; touch-action: pan-y; }
    .relationship-sidebar-grab span { width: 38px; height: 4px; border-radius: 999px; background: var(--border-strong); }
    .relationship-rail-heading { min-height: 48px; align-items: center; padding-bottom: 8px; }
    .relationship-rail-heading > button {
      display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--border);
      border-radius: 11px; color: var(--text-2); background: var(--surface-2); font-size: 22px; cursor: pointer;
    }
    .relationship-sidebar-scrim {
      position: absolute; inset: 0; z-index: 51; display: block; opacity: 0; visibility: hidden; pointer-events: none;
      border: 0; background: rgba(18, 15, 12, 0.34); backdrop-filter: blur(2px);
      transition: opacity 180ms var(--ease-out), visibility 0s linear 180ms;
    }
    .relationship-sidebar-scrim.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
    .relationship-scope button,
    .relationship-filter-list button { min-height: 44px; }
    .relationship-action-dock button { min-height: 44px; }
    .relationship-map-controls button,
    .relationship-map-controls span { min-width: 44px; min-height: 44px; }
  }

  @media (max-width: 620px) {
    .mobile-capture {
      position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 84;
      display: flex; min-width: 104px; min-height: 52px; align-items: center; justify-content: center; gap: 7px; padding: 0 17px;
      border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--border)); border-radius: 16px;
      color: var(--accent-ink); background: var(--accent); box-shadow: 0 15px 36px color-mix(in srgb, var(--accent) 30%, rgba(0,0,0,0.2));
      font: 680 13px var(--font); cursor: pointer;
    }
    .mobile-capture > span { font-size: 20px; font-weight: 400; line-height: 1; }
    .mobile-capture:disabled { opacity: 0.5; box-shadow: none; }
    body.dialog-open .mobile-capture,
    body.bulk-active .mobile-capture,
    body.relationship-active .mobile-capture,
    body.brainstorm-active .mobile-capture,
    body.entry-active .mobile-capture { display: none; }
  }

  @media (max-width: 520px) {
    .banner-side { grid-template-columns: 1fr auto; gap: 10px; }
    .banner-action-stack { grid-column: 1 / -1; }
    .banner .bnum { grid-column: 2; grid-row: 1; }
  }

  @media (max-width: 390px) {
    .topbar-inner { grid-template-columns: 28px minmax(96px, 1fr) 44px auto; }
    .svc-state,
    .theme-btn,
    .product-nav-item { min-height: 44px; }
    .theme-btn { width: 44px; }
    .load .icon-btn { width: 44px; min-width: 44px; min-height: 44px; }
    .load #addBtn { width: auto; min-width: 88px; min-height: 44px; padding-inline: 11px; font-size: 11.5px; }
    .search input,
    .view-switch { min-height: 44px; }
    .view-switch button { min-width: 44px; }
  }

  @media (hover: hover) and (pointer: fine) {
    .capture-bridge:hover { background: var(--accent-hover); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 24%, transparent); transform: translateY(-1px); }
    .mobile-capture:hover { background: var(--accent-hover); transform: translateY(-2px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .modal-overlay, .study-overlay, .study,
    .relationship-sidebar, .relationship-sidebar-scrim,
    .capture-bridge, .mobile-capture { animation: none !important; transition: none !important; }
  }

  /* ===== v2.3 工作台骨架：一个中心主题，三段连续工作流 ===== */
  :root { --topbar-h: 76px; }

  .topbar { height: var(--topbar-h); }
  .topbar-inner {
    display: grid; grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
    align-items: center; gap: 22px;
  }
  .brand { min-width: 0; }
  .product-nav { justify-self: center; }
  .topbar-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 8px; }
  .topbar-actions .load { min-width: 0; }
  .topbar-actions #reloadBtn { display: none; }
  .topbar-actions .command-btn kbd { display: none; }
  .capture-primary { min-height: 42px; padding-inline: 16px; }

  .trust-rail {
    width: min(var(--content-max), calc(100% - 56px)); min-height: 42px; margin-top: 10px; padding: 6px 8px 6px 10px;
    grid-template-columns: 26px minmax(0, 1fr) auto; gap: 9px; border-radius: 11px; box-shadow: none;
  }
  .trust-rail-mark { width: 24px; }
  .trust-rail-mark::before { width: 9px; height: 9px; }
  .trust-rail-mark span { width: 3px; height: 3px; }
  .trust-kicker, .trust-rail-copy small { display: none; }
  .trust-rail-copy strong { font-size: 12px; }
  .trust-rail-action { min-height: 30px; padding-inline: 10px; font-size: 11px; }
  body.brainstorm-active .trust-rail { display: none !important; }

  .main { padding-top: 20px; }
  .inspiration-workspace { display: grid; gap: 18px; }
  body.relationship-active .inspiration-workspace,
  body.brainstorm-active .inspiration-workspace,
  body.entry-active .inspiration-workspace { display: none !important; }
  .inspiration-focus,
  .collection-library {
    overflow: hidden; border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
    border-radius: 22px; background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: var(--shadow-sm);
  }
  .inspiration-focus .banner { max-width: none; margin: 0; padding: 0; }
  .inspiration-focus .banner-inner {
    padding: 28px 30px; border: 0; border-radius: 0; background:
      linear-gradient(115deg, color-mix(in srgb, var(--cat, var(--accent)) 9%, var(--surface)), transparent 52%),
      var(--surface); box-shadow: none;
  }
  .inspiration-focus .banner-inner::before { width: 5px; }
  .inspiration-focus .banner .bt { font-size: clamp(30px, 3vw, 42px); }
  .inspiration-focus .banner .bs { max-width: 620px; }
  .inspiration-focus .banner-side { gap: 18px; }
  .inspiration-focus .banner-action-stack { min-width: 236px; }
  .inspiration-focus .capture-bridge { min-height: 64px; }
  .inspiration-focus .brainstorm-bridge {
    min-height: 38px; padding: 7px 10px; border-color: transparent; background: transparent; box-shadow: none;
  }
  .inspiration-focus .brainstorm-bridge:hover { border-color: var(--border); background: var(--surface-2); }
  .inspiration-focus .brainstorm-bridge small { display: none; }
  .inspiration-focus .daily {
    margin: 0; padding: 13px 18px 13px 16px; border: 0; border-top: 1px solid var(--border);
    border-radius: 0; background: color-mix(in srgb, var(--surface-2) 58%, var(--surface)); box-shadow: none;
  }
  .inspiration-focus .daily:hover { transform: none; background: var(--surface-2); }

  .collection-library { padding: 22px; }
  .collection-library-header {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px;
  }
  .collection-library-copy { min-width: 0; }
  .collection-library-copy > span { color: var(--accent); font: 700 9px var(--mono); letter-spacing: 0.16em; }
  .collection-library-copy h2 { margin: 5px 0 2px; font: 750 22px/1.2 var(--display); letter-spacing: -0.035em; }
  .collection-library-copy p { margin: 0; color: var(--text-3); font-size: 11.5px; }
  .collection-toolbar { display: flex; width: min(560px, 54%); align-items: center; justify-content: flex-end; gap: 9px; }
  .collection-toolbar .search { width: 100%; max-width: 430px; }
  .collection-toolbar .view-switch { flex: 0 0 auto; }
  .collection-library .toolrow {
    position: sticky; top: calc(var(--topbar-h) + 10px); z-index: 42; margin: 0 0 12px; padding: 10px 0;
    border-width: 1px 0; border-radius: 0; background: color-mix(in srgb, var(--surface) 91%, transparent); box-shadow: none;
  }
  .collection-library .empty-state { min-height: 340px; }

  .brainstorm-workspace { gap: 16px; }
  .brainstorm-intro {
    display: grid; grid-template-columns: minmax(270px, 0.62fr) minmax(0, 1.38fr); overflow: hidden;
    border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm);
  }
  .brainstorm-intro .brainstorm-hero {
    display: flex; min-height: 280px; align-items: flex-start; justify-content: space-between; flex-direction: column;
    padding: 28px; border: 0; border-right: 1px solid var(--border); border-radius: 0; box-shadow: none;
  }
  .brainstorm-intro .brainstorm-hero::before { width: 5px; }
  .brainstorm-intro .brainstorm-hero h1 { font-size: clamp(32px, 3.2vw, 44px); }
  .brainstorm-intro .brainstorm-hero-actions { width: 100%; margin-top: 28px; }
  .brainstorm-intro .brainstorm-hero-actions .btn { flex: 1; justify-content: center; }
  .brainstorm-intro .brainstorm-goal-builder {
    display: block; padding: 28px 30px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  }
  .brainstorm-intro .goal-builder-copy { margin-bottom: 18px; }
  .brainstorm-intro .goal-builder-copy label { font-size: 24px; }
  .brainstorm-intro .goal-builder-input textarea { min-height: 116px; }

  .relationship-canvas-header {
    min-height: 92px; padding: 18px 22px; background: var(--surface); box-shadow: 0 1px var(--border);
  }
  .relationship-canvas-header h1 { font-size: 25px; letter-spacing: -0.035em; }
  .relationship-empty { display: grid; gap: 8px; padding: 28px; }
  .relationship-empty strong { color: var(--text); font: 720 17px/1.35 var(--display); }
  .relationship-empty span { color: var(--text-3); font-size: 12px; line-height: 1.6; }
  .relationship-empty button {
    justify-self: center; min-height: 38px; margin-top: 5px; padding: 0 14px; border: 1px solid var(--accent);
    border-radius: 10px; color: var(--accent-ink); background: var(--accent); font-weight: 680; cursor: pointer;
  }
  @media (min-width: 941px) {
    .relationship-detail.is-collapsed { display: none; }
    .relationship-workspace:has(.relationship-detail.is-collapsed) { grid-template-columns: 230px minmax(0, 1fr); }
  }

  .mobile-capture { display: none !important; }

  @media (max-width: 1120px) {
    .topbar-inner { grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr); gap: 12px; }
    .brand .s, .svc-state #svcLabel { display: none; }
    .product-nav-item { min-width: 104px; }
    .product-nav-item small { display: none; }
  }

  @media (max-width: 900px) {
    :root { --topbar-h: 126px; }
    .topbar-inner {
      grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "nav nav";
      grid-template-rows: 58px 52px; gap: 4px 12px; padding: 7px 16px 9px;
    }
    .brand { grid-area: brand; }
    .product-nav { grid-area: nav; width: 100%; }
    .topbar-actions { grid-area: actions; }
    .product-nav-item { flex: 1; justify-content: center; min-width: 0; }
    .product-nav-item small { display: block; }
    .collection-library .toolrow { position: relative; top: auto; }
    .collection-library-header { align-items: flex-start; flex-direction: column; gap: 14px; }
    .collection-toolbar { width: 100%; justify-content: stretch; }
    .collection-toolbar .search { max-width: none; }
    .brainstorm-intro { grid-template-columns: 1fr; }
    .brainstorm-intro .brainstorm-hero { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
    .brainstorm-intro .brainstorm-hero-actions { width: auto; }
  }

  @media (max-width: 620px) {
    :root { --topbar-h: 116px; }
    .topbar-inner { grid-template-rows: 52px 48px; padding: 6px 12px 9px; }
    .brand .logo { width: 34px; height: 34px; }
    .brand .t { font-size: 15px; }
    .brand .s, .svc-state { display: none; }
    .topbar-actions { gap: 5px; }
    .topbar-actions .command-btn, .topbar-actions .theme-wrap { display: none; }
    .load #addBtn { width: auto; min-width: 92px; min-height: 40px; padding-inline: 12px; font-size: 12px; }
    .load .more-btn { width: 40px; min-width: 40px; min-height: 40px; padding: 0; }
    .product-nav { padding: 3px; }
    .product-nav-step { width: 22px; height: 22px; }
    .product-nav-item { min-height: 40px; gap: 6px; padding: 5px 7px; }
    .product-nav-item strong { font-size: 11.5px; }
    .product-nav-item small { display: none; }
    .trust-rail { width: calc(100% - 24px); grid-template-columns: 24px minmax(0, 1fr) auto; margin-top: 8px; }
    .trust-rail-action { grid-column: auto; width: auto; }
    .main { padding-top: 12px; }
    .inspiration-workspace { gap: 12px; }
    .inspiration-focus, .collection-library { border-radius: 18px; }
    .inspiration-focus .banner-inner { padding: 20px 18px; }
    .inspiration-focus .banner .bwrap { display: grid; min-height: 0; padding-right: 0; gap: 18px; }
    .inspiration-focus .banner .bt { font-size: 28px; }
    .inspiration-focus .banner .bs { max-width: none; }
    .inspiration-focus .banner .banner-svg { opacity: 0.16; }
    .inspiration-focus .banner-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; gap: 12px; }
    .inspiration-focus .banner-action-stack { grid-column: 1; min-width: 0; }
    .inspiration-focus .banner .bnum { grid-column: 2; grid-row: 1; align-self: start; font-size: 32px; }
    .inspiration-focus .daily { grid-template-columns: 56px minmax(0, 1fr); gap: 11px; padding: 12px 28px 12px 12px; }
    .inspiration-focus .daily .d-cover { width: 56px; height: 56px; }
    .inspiration-focus .daily .d-actions { grid-column: 1 / -1; }
    .collection-library { padding: 17px 14px; }
    .collection-library-header { margin-bottom: 14px; }
    .collection-library-copy h2 { font-size: 20px; }
    .collection-toolbar { gap: 7px; }
    .collection-toolbar .search input { min-height: 42px; }
    .collection-toolbar .view-switch { min-height: 42px; }
    .collection-toolbar .view-switch button { min-width: 44px; padding-inline: 8px; }
    .collection-library .toolrow { padding: 8px 0; }
    .brainstorm-intro .brainstorm-hero,
    .brainstorm-intro .brainstorm-goal-builder { padding: 22px 18px; }
    .brainstorm-intro .brainstorm-hero h1 { font-size: 30px; }
    .brainstorm-intro .brainstorm-hero-actions { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
    .brainstorm-intro .goal-builder-copy label { font-size: 21px; }
    .relationship-canvas-header { min-height: 76px; padding: 12px 14px; }
  }

  @media (max-width: 390px) {
    .topbar-inner {
      display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "nav nav";
      grid-template-rows: 52px 48px; gap: 4px 8px; padding: 6px 8px;
    }
    .brand .logo, .brand .txt { display: flex; }
    .brand-mark { display: none; }
    .product-nav-step { display: grid; }
    .collection-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .collection-toolbar .search { grid-column: 1; order: initial; }
    .collection-toolbar .view-switch { grid-column: 2; order: initial; }
  }

  @media (prefers-reduced-motion: reduce) {
    .inspiration-focus, .collection-library, .brainstorm-intro { scroll-behavior: auto; }
  }

