[data-feature-closed="true"] { display: none !important; }
.feature-credit-notice { position: fixed; inset: 0; z-index: 30000; display: grid; place-items: center; background: #0006; }
.feature-credit-notice > div { max-width: 420px; margin: 20px; padding: 24px; border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 12px 50px #0003; }
.feature-credit-notice button { margin: 8px 8px 0 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
:root {
    --bg: #F6F5F2;
    --surface: #FDFCFB;
    --surface-muted: #F1EFEA;
    --text: #1A1817;
    --text-muted: #8B8884;
    --border: #E9E6E2;
    --brand: #7C5CD6;
    --brand-soft: #F0EBFB;
    --brand-text: #6A48C9;
    --radius: 8px;
    --radius-card: 12px;
    --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: "PingFang SC", "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
  }
  button { font-family: inherit; cursor: pointer; }
  input, select { font-family: inherit; }
  .hidden { display: none !important; }
  .full-title-tooltip {
    position: fixed; left: 0; top: 0; z-index: 10000; max-width: calc(100vw - 24px);
    pointer-events: none;
  }
  .full-title-tooltip[hidden] { display: none; }
  .full-title-tooltip__content {
    width: min(420px, calc(100vw - 24px)); max-height: min(48vh, 360px); overflow-y: auto;
    padding: 12px 15px; border: 1px solid rgba(233, 230, 226, .95); border-radius: 10px;
    background: rgba(253, 252, 251, .98); box-shadow: 0 8px 28px rgba(15, 23, 42, .16);
    color: var(--text); text-align: left; overflow-wrap: anywhere;
  }
  .full-title-tooltip__label { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 11px; font-weight: 500; }
  .full-title-tooltip__text { display: block; font-size: 13px; font-weight: 600; line-height: 1.6; }

  #app { display: flex; min-height: 100vh; }

  /* ---------- 侧边导航 ---------- */
  #sidebar {
    width: 216px; background: var(--surface); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0;
  }
  .logo { padding: 20px 20px 16px; }
  .logo-row { display: flex; align-items: center; gap: 8px; }
  .logo-dot { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #9070E0, var(--brand)); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 3px 8px rgba(124, 92, 214, .25); }
  .logo-name { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: .3px; white-space: nowrap; }
  #sidebar nav { flex: 1; padding: 4px 12px; }
  #sidebar nav a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 2px;
    border-radius: var(--radius); color: var(--text-muted); cursor: pointer; font-size: 14px;
    transition: background .12s, color .12s;
  }
  #sidebar nav a:hover { background: var(--surface-muted); color: var(--text); }
  #sidebar nav a.active { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
  #sidebar nav a.nav-soon { opacity: .52; }
  #sidebar nav a.nav-soon:hover { opacity: .78; }
  .side-user { display: flex; align-items: center; gap: 10px; margin: 8px 10px 10px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(135deg, var(--surface) 0%, var(--surface-muted) 100%); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
  .side-user:hover, .side-user:focus-visible { background: var(--surface); border-color: #C9B8F0; box-shadow: 0 8px 18px rgba(124,92,214,.10); transform: translateY(-1px); outline: none; }
  .side-user-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--surface); box-shadow: 0 0 0 1px rgba(124,92,214,.18); }
  .side-user-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 3px; }
  .side-user-name { font-size: 13px; line-height: 1.2; font-weight: 700; color: var(--text); }
  .side-user-points { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-user-points::before { content: '✦'; color: var(--brand); font-size: 10px; }
  .side-user-arrow { color: var(--text-muted); font-size: 15px; line-height: 1; }
  .side-foot { padding: 16px 20px; color: var(--text-muted); font-size: 12px; border-top: 1px solid var(--border); }

  main { flex: 1; min-width: 0; margin-left: 216px; display: flex; flex-direction: column; }

  /* ---------- 顶栏 ---------- */
  #topbar {
    position: sticky; top: 0; z-index: 20; background: var(--bg);
    padding: 16px 28px 12px; display: flex; align-items: center; gap: 16px;
  }
  .searchwrap {
    flex: 1; max-width: 640px; display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 8px 12px; transition: border-color .12s, box-shadow .12s;
  }
  .searchwrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,214,.14); }
  .searchwrap svg { color: var(--text-muted); flex: none; }
  .searchwrap input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; color: var(--text); }
  .searchwrap input::placeholder { color: #9CA3AF; }
  .btn {
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    border-radius: var(--radius); padding: 7px 14px; font-size: 13px; transition: all .12s;
  }
  .btn:hover { border-color: #D1D5DB; background: var(--surface-muted); }
  .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }
  .btn.primary:hover { background: #6A48C9; }
  .btn.primary:disabled { background: #C9B8F0; border-color: #C9B8F0; cursor: not-allowed; }
  .quick { display: flex; gap: 8px; }
  .qchip {
    border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
    border-radius: 999px; padding: 6px 14px; font-size: 13px; transition: all .12s;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .qchip:hover { color: var(--text); background: #F8F6FC; }
  .qchip:active { transform: scale(.94); }
  .qchip.on { background: linear-gradient(180deg, #F6F2FF, #E9E0FC); border-color: #C4B0F0; color: #4A3680; font-weight: 600; box-shadow: 0 2px 10px rgba(124,92,214,.25); animation: tabpop .22s ease-out; }
  .qchip.on:active { box-shadow: inset 0 1px 5px rgba(90,60,160,.28); }
  .qchip.on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; box-shadow: 0 0 0 3px rgba(124,92,214,.16), 0 0 8px rgba(124,92,214,.65); }
  .modelwrap { position: relative; }
  .modelbtn { display: flex; align-items: center; gap: 4px; border: none; background: var(--surface-muted); border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--text); flex: none; }
  .modelbtn:hover { background: var(--border); }
  .modelbtn em { font-style: normal; color: var(--text-muted); }
  .modelpop { position: absolute; top: calc(100% + 8px); right: 0; width: 264px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.14); padding: 10px; z-index: 60; }
  .modelpop.modelpop-up { top: auto; bottom: calc(100% + 8px); }
  .modelpop h4 { font-size: 13px; font-weight: 600; margin: 4px 6px 8px; }
  .mopt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
  .mopt:hover { background: var(--surface-muted); }
  .mopt .mn { font-size: 14px; font-weight: 600; }
  .mopt .md { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
  .mopt .ck { font-size: 14px; font-weight: 700; color: var(--text); }

  /* ---------- 素材库 ---------- */
  #view-library { padding: 4px 28px 40px; }
  .filterbar {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 10px 16px; margin-bottom: 12px;
  }
  #selectedLine { color: var(--text-muted); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  #selectedLine .sel-chip { background: var(--brand-soft); color: var(--brand-text); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
  #filterToggle { border: none; background: none; color: var(--brand); font-size: 13px; }
  #filterToggle:hover { text-decoration: underline; }

  #filterPanel {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 12px 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px;
  }
  .frow { display: flex; align-items: flex-start; gap: 12px; }
  .frow .flabel { flex: none; width: 36px; color: var(--text-muted); font-size: 13px; padding-top: 5px; }
  .fchips { display: flex; flex-wrap: wrap; gap: 8px; }
  .fchip {
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    border-radius: 999px; padding: 4px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
    transition: all .12s;
  }
  .fchip:hover { border-color: #D1D5DB; background: var(--surface-muted); }
  .fchip:active { transform: scale(.96); }
  .fchip.on { background: linear-gradient(180deg, #F6F2FF, #EDE6FB); font-weight: 500; }
  .fchip.on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; box-shadow: 0 0 6px rgba(124,92,214,.6); }
  .fchip .cnt { font-size: 12px; color: var(--text-muted); background: var(--surface-muted); border-radius: 999px; padding: 0 7px; }

  .resultmeta { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 12px; color: var(--text-muted); font-size: 13px; }
  .resultmeta .sortwrap { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
  .resultmeta .sortwrap em { font-style: normal; color: var(--text-muted); font-size: 12.5px; }
  .resultmeta .sortsel,
  .resultmeta select#sortSel {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 30px 6px 12px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--text);
    background-color: var(--surface-muted);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B8884' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    outline: none;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
  }
  .resultmeta .sortsel:hover,
  .resultmeta select#sortSel:hover { background-color: var(--border); }
  .resultmeta .sortsel:focus,
  .resultmeta select#sortSel:focus {
    border-color: #C4B0F0;
    box-shadow: 0 0 0 3px rgba(124,92,214,.14);
    background-color: var(--surface);
  }

  .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 14px; display: flex; gap: 14px; cursor: pointer;
    transition: box-shadow .15s, border-color .15s, transform .15s;
  }
  .card:hover { box-shadow: 0 6px 20px rgba(15,23,42,.08); border-color: #D1D5DB; transform: translateY(-1px); }
  .card .thumb {
    flex: none; width: 96px; height: 128px; border-radius: 8px; object-fit: cover;
    background: var(--surface-muted);
  }
  .card .thumb-empty {
    position: relative;
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
    font-size: 12px; border: 1px dashed var(--border); box-sizing: border-box;
  }
  .thumb-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 36px; height: 36px; border-radius: 999px; background: rgba(15, 23, 42, .55);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 12px; pointer-events: none; box-shadow: 0 4px 12px rgba(15, 23, 42, .2);
  }
  .vthumb-btn {
    position: relative; flex: none; width: 96px; height: 128px; padding: 0; border: none;
    border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--surface-muted);
  }
  .vthumb-btn:hover .thumb-play { background: rgba(124, 92, 214, .92); }
  .vthumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .vthumb-btn.empty {
    display: flex; align-items: center; justify-content: center;
    border: 1px dashed var(--border); background: #FAFAF8;
  }
  .vthumb-btn .thumb-empty-label { font-size: 12px; color: var(--text-muted); }
  #modal .vp-wrap {
    position: relative;
    background: #0F172A;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
    width: 100%;
    height: 100%;
  }
  #modal .vp-el {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    outline: none;
    object-fit: contain;
  }
  #modal .vp-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    background: rgba(15, 23, 42, .88);
    color: #fff;
    text-align: center;
  }
  #modal .vp-error.hidden { display: none; }
  #modal .vp-error-title { font-size: 15px; font-weight: 600; }
  #modal .vp-error-sub { font-size: 12.5px; color: #CBD5E1; line-height: 1.6; }
  #modal .vp-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #E2E8F0; gap: 8px; padding: 20px;
  }
  #modal .vp-loading-text { font-size: 13px; color: #CBD5E1; }
  .card .cbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .card-heading { display: flex; align-items: flex-start; gap: 8px; }
  .card-heading .ctitle { flex: 1; min-width: 0; }
  .video-delete { flex-shrink: 0; }
  .video-delete:hover { color: #B91C1C; border-color: #FECACA; background: #FEF2F2; }
  .video-delete:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .card .ctitle {
    font-size: 14px; font-weight: 600; line-height: 1.45;
    overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; overflow: hidden;
  }
  .card .cmeta { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
  .card .cdata {
    display: flex; align-items: baseline; gap: 12px;
    margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--text-muted);
    white-space: nowrap;
  }
  .card .cdata > span { flex: none; line-height: 20px; }
  .card .cdata .main { color: var(--brand-text); font-weight: 700; }
  .card .cdata .main small { font-weight: 500; font-size: 12px; margin-right: 2px; }
  @media (max-width: 560px) {
    .full-title-tooltip__content { padding: 11px 13px; }
    .card { padding: 10px; gap: 10px; }
    .card .thumb { width: 72px; height: 96px; }
    .card .cdata { gap: 4px; font-size: 11px; }
    .card .cdata .main small { font-size: 11px; }
  }
  .card .ctags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
  .card.queue-card { cursor: default; }
  .card.queue-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .card-status {
    display: flex; align-items: center; gap: 8px; margin-top: 8px;
    font-size: 13px; font-weight: 600; color: var(--brand-text);
  }
  .card-status.failed { color: #A33232; font-weight: 500; align-items: flex-start; }
  .gen-empty .ge-h .generation-spinner { display: inline-block; vertical-align: -3px; margin-right: 8px; }
  .queue-card .thumb-empty { color: var(--brand); font-weight: 600; }
  .tag { background: var(--surface-muted); color: var(--text-muted); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
  .tag.spec { background: #FFF7ED; color: #C2410C; }
  .empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 60px 0; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-card); }
  .empty button { margin-top: 12px; }

  /* ---------- 分析详情页 ---------- */
  #view-detail { padding: 4px 28px 60px; }
  .dhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .backbtn { border: none; background: none; color: var(--text-muted); font-size: 14px; padding: 6px 8px; border-radius: 6px; }
  .backbtn:hover { background: var(--surface-muted); color: var(--text); }
  .dhead .dtitle {
    font-size: 16px; font-weight: 600; line-height: 1.5; flex: 1; min-width: 0; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  }
  @media (max-width: 720px) {
    .dhead { flex-wrap: wrap; align-items: flex-start; }
    .dhead .dtitle { flex-basis: 100%; }
  }
  .dbanner {
    display: flex; align-items: center; gap: 10px; border-radius: var(--radius-card);
    padding: 10px 16px; margin-bottom: 16px; font-size: 13px;
    background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
  }
  .dbanner.saved { background: #DCFCE7; border-color: #BBF7D0; color: #166534; }
  .dbanner .btn { margin-left: auto; }
  .dcols { display: flex; gap: 20px; align-items: flex-start; }
  .dcol-l { flex: 52; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
  .dcol-r { flex: 48; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; padding-bottom: 8px; }
  .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px; }
  .panel h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .panel h3 .hint { font-weight: 400; color: var(--text-muted); font-size: 12px; }

  .vinfo { display: flex; gap: 16px; }
  .vinfo img, .vinfo .thumb-empty {
    flex: none; width: 96px; height: 128px; border-radius: 8px; object-fit: cover; background: var(--surface-muted);
  }
  .vinfo .thumb-empty {
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
    font-size: 12px; border: 1px dashed var(--border); box-sizing: border-box;
  }
  .vinfo .vm { flex: 1; min-width: 0; }
  .vinfo .vt { font-size: 15px; font-weight: 600; line-height: 1.5; }
  .vinfo .vmeta { color: var(--text-muted); font-size: 12px; margin-top: 8px; }
  .vdata { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
  .vdata .main { color: var(--brand-text); font-weight: 700; font-size: 12px; }
  .vdata .main small { font-size: 12px; font-weight: 500; margin-right: 2px; }

  .script-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
  .script-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .script-head h3 { display: block; flex: none; margin: 0; }
  .script-title .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .follow-library-error { margin: -8px 0 14px; padding: 9px 12px; border-radius: 8px; background: #fff0ed; color: #a33232; font-size: 13px; line-height: 1.5; }
  .follow-library-error[hidden] { display: none; }
  .script-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .script-actions .modelwrap { flex: none; }
  .seg { display: inline-flex; flex: none; background: var(--surface-muted); border-radius: 8px; padding: 2px; }
  .seg button { padding: 4px 14px; border: none; background: none; border-radius: 6px; font-size: 13px; color: var(--text-muted); cursor: pointer; transition: color .12s; }
  .seg button.on { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
  .seg button:disabled { opacity: .6; cursor: default; }

  @media (max-width: 560px) {
    .script-head { align-items: flex-start; flex-direction: column; }
    .script-actions { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  }

  /* 原文 / 结构 / 改写 共用排版（与 UI 原型一致） */
  #scriptBody { font-size: 15px; line-height: 1.9; color: #374151; }
  .script p { margin: 0 0 14px; font-size: 15px; line-height: 1.9; color: #374151; letter-spacing: .01em; }
  .script p strong { font-weight: 600; color: var(--text); }
  .subtext { font-size: 15px; line-height: 2.05; color: #374151; letter-spacing: .01em; overflow-wrap: anywhere; }
  .subgroup { margin-bottom: 16px; }
  .subgroup:last-child { margin-bottom: 0; }
  .subline { min-height: 1.6em; }
  .subline strong { font-weight: 700; color: var(--text); }
  .script .para { margin: 0 0 14px; overflow-wrap: anywhere; }
  .script .para:last-child { margin-bottom: 0; }
  .script .para.timed { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 14px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: background-color .14s ease; }
  .script .para.timed:last-child { border-bottom: 0; }
  .script .para.timed .subtext, .script .para.timed .subgroup { margin: 0; font-size: 14px; line-height: 1.7; }
  .script .para.timed:hover { background: rgba(113, 82, 201, .035); }
  .script .para.timed:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 5px; }
  .script-time { display: inline-block; width: 74px; min-height: 22px; box-sizing: border-box; border: 0; border-radius: 5px; padding: 3px 6px; background: var(--brand-soft); color: var(--brand-text); font: 10px/1.5 var(--font-mono); text-align: center; white-space: nowrap; }
  .para-content { min-width: 0; }
  .script .para.lead { background: var(--brand-soft); border-left: 3px solid var(--brand); padding: 12px 14px; border-radius: 0 8px 8px 0; margin-bottom: 18px; }
  .script .para.gold .subline { background: linear-gradient(transparent 62%, #FFE9A8 62%); font-weight: 600; color: var(--text); }
  .script .para.end { margin-top: 18px; font-weight: 500; color: var(--text); }
  .script p.lead { background: var(--brand-soft); border-left: 3px solid var(--brand); padding: 12px 14px; border-radius: 0 8px 8px 0; margin-bottom: 18px; }
  .script p.gold .hl { background: linear-gradient(transparent 62%, #FFE9A8 62%); font-weight: 600; color: var(--text); }
  .script p.end { margin-top: 18px; font-weight: 500; color: var(--text); }
  .chap { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-size: 15px; font-weight: 700; color: var(--text); }
  .chap:first-child { margin-top: 0; }
  .chap .no { font-size: 12px; color: var(--brand-text); background: var(--brand-soft); border-radius: 6px; padding: 2px 7px; }
  .rblock { margin-bottom: 18px; }
  .rblock .rhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
  .rblock .rver { font-size: 12px; font-weight: 600; color: var(--brand-text); background: var(--brand-soft); border-radius: 6px; padding: 2px 8px; }
  .rblock .racts { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .rblock .rnote { font-size: 12.5px; color: #8A8577; line-height: 1.6; margin: 0 0 10px; padding: 8px 10px; background: #F8F7FC; border-radius: 8px; }
  .rblock.is-selected { outline: 1.5px solid var(--brand); border-radius: 12px; padding: 12px; background: #FAF8FF; }
  .rblock .mini-pick { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
  .rewrite-type-hint { font-size: 12.5px; color: #6B6575; margin: 0 0 12px; }
  .rewrite-footer { text-align: right; margin-top: 8px; }
  .rblock .rbody p,
  .rblock > p { margin: 0 0 14px; font-size: 15px; line-height: 1.9; color: #374151; letter-spacing: .01em; }
  .rblock .rbody p:last-child,
  .rblock > p:last-child { margin-bottom: 0; }
  .writer-view { min-width: 0; }
  .writer-view [hidden] { display: none !important; }
  .writer-stream-head { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 14px; padding: 10px 14px; box-sizing: border-box; border: 1px solid #ECE8F1; border-radius: 8px; background: #FAF9FC; }
  .writer-stream-spinner { width: 18px; height: 18px; flex: none; box-sizing: border-box; border: 2px solid #D9D0ED; border-top-color: #7152C9; border-radius: 50%; animation: writer-spin .8s linear infinite; }
  .writer-stream-title { color: #352E3F; font-size: 13.5px; font-weight: 700; line-height: 1.45; }
  .writer-placeholder { display: inline-block; width: 100%; max-width: 240px; min-width: 64px; height: 1em; vertical-align: middle; }
  .writer-placeholder i { display: block; width: 100%; height: 8px; margin-top: 3px; border-radius: 3px; background: #ECE9F0; animation: writer-pulse 1.4s ease-in-out infinite; }
  .writer-view button:disabled { cursor: default; opacity: .55; box-shadow: none; transform: none; }
  .writer-result-title { margin: 18px 0 14px; color: #302A38; font-size: 18px; line-height: 1.65; overflow-wrap: anywhere; }
  .writer-view .rbody { min-height: 64px; overflow-wrap: anywhere; }
  .rblock.writer-result-card { padding: 0; outline: none; background: transparent; }
  .writer-document { margin: 18px 0 24px; padding: 20px 22px; background: #FBFAF7; border: 1px solid var(--border); border-radius: 10px; }
  .writer-document .writer-result-title { display: block; margin: 0 0 20px; font-size: 20px; font-weight: 600; line-height: 1.6; }
  .rblock .writer-body { max-width: 68ch; margin: 0; padding: 0; border: none; overflow-wrap: anywhere; }
  .writer-document .subgroup { margin-bottom: 20px; }
  .writer-document .subgroup:last-child { margin-bottom: 0; }
  .rblock.writer-result-card .writer-document { margin: 10px 0 12px; padding: 12px 14px; }
  .rblock.writer-result-card .writer-document .writer-result-title { margin-bottom: 10px; font-size: 14px; line-height: 1.5; }
  .rblock.writer-result-card .writer-body .subtext { font-size: 16px; line-height: 1.6; }
  .rblock.writer-result-card .writer-document .subgroup { margin-bottom: 10px; }
  @media (max-width: 560px) {
    .writer-document { padding: 16px 14px; }
    .writer-document .writer-result-title { font-size: 18px; }
  }
  .writer-hook-heading { margin: 24px 0 8px; font-size: 14px; }
  .writer-hook-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 24px; }
  .writer-hook { display: grid; grid-template-columns: 26px minmax(0, 1fr) 42px; align-items: start; gap: 10px; width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; line-height: 1.65; text-align: left; white-space: normal; cursor: pointer; }
  .writer-hook-text { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
  .writer-hook-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--surface-muted); color: var(--text-muted); font-size: 12px; font-weight: 600; }
  .writer-hook-state { align-self: center; text-align: right; font-size: 12px; color: var(--text-muted); }
  .writer-hook.on { border-color: var(--brand); background: var(--brand-soft); }
  .writer-hook.on .writer-hook-number { color: #fff; background: var(--brand); }
  .writer-hook.on .writer-hook-state { color: var(--brand-text); font-weight: 600; }
  .writer-hook:hover:not(:disabled) { border-color: var(--brand); }
  .writer-hook:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
  .writer-hook:disabled { cursor: wait; }
  @keyframes writer-spin { to { transform: rotate(360deg); } }
  @keyframes writer-pulse { 50% { opacity: .45; } }
  @media (prefers-reduced-motion: reduce) {
    .writer-stream-spinner, .writer-placeholder i { animation: none; }
  }

  .writer-direction-intro { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 14px; }
  .writer-direction-intro strong { color: #302A38; font-size: 14px; }
  .writer-direction-intro span { color: #8A8491; font-size: 12px; }
  .writer-direction-card { padding: 18px; border: 1px solid #E2DDE9; border-radius: 8px; background: #FFF; box-shadow: 0 7px 20px rgba(42,34,55,.045); }
  .writer-direction-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid #EEEAF2; }
  .writer-direction-head h3 { min-width: 0; margin: 0; color: #2F2938; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
  .writer-direction-key { padding: 3px 8px; border-radius: 5px; background: #EEE8FA; color: #6042B1; font-size: 11px; font-weight: 700; white-space: nowrap; }
  .writer-diff-axis { grid-column: 1 / -1; min-width: 0; color: #817A89; font-size: 11.5px; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
  .writer-strategy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); column-gap: 24px; margin: 0; }
  .writer-strategy-field { min-width: 0; display: grid; align-content: start; gap: 5px; padding: 13px 0; border-bottom: 1px solid #F0EDF3; }
  .writer-strategy-field dt { color: #8A8491; font-size: 11.5px; line-height: 1.65; }
  .writer-strategy-field dd { min-width: 0; margin: 0; color: #47404F; font-size: 12.5px; line-height: 1.65; overflow-wrap: anywhere; }
  .writer-skeleton { padding: 13px 0 2px; }
  .writer-skeleton h4 { margin: 0 0 9px; color: #5D5665; font-size: 11.5px; font-weight: 650; }
  .writer-skeleton ol { display: grid; gap: 7px; margin: 0; padding-left: 23px; }
  .writer-skeleton li { padding-left: 3px; color: #47404F; font-size: 12.5px; line-height: 1.65; }
  .writer-skeleton li::marker { color: #7152C9; font-weight: 700; }
  .writer-compliance { display: flex; gap: 8px; margin-top: 11px; padding: 9px 11px; border-left: 3px solid #D18A2E; background: #FFF9EF; color: #74562C; font-size: 12px; line-height: 1.6; }
  .writer-compliance strong { flex: none; }
  .writer-direction-card .rewrite-footer { margin-top: 14px; }
  .structure-report { display: grid; gap: 10px; }
  .structure-report-tools { position: sticky; top: 8px; z-index: 3; display: grid; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 4px 16px rgba(32, 27, 40, .06); backdrop-filter: blur(10px); }
  .structure-report-nav { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .structure-nav-item { display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 220px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
  .structure-nav-item:hover, .structure-nav-item:focus-visible { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); outline: none; }
  .structure-nav-item span { color: var(--brand-text); font-size: 10px; font-weight: 700; }
  .structure-report-actions { display: flex; gap: 6px; justify-content: flex-end; }
  .structure-report-actions .mini { padding: 4px 8px; }
  details.sblock { margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); scroll-margin-top: 18px; overflow: clip; }
  .sblock-head { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 15px; list-style: none; cursor: pointer; }
  .sblock-head::-webkit-details-marker { display: none; }
  .sblock-head:hover { background: var(--surface-muted); }
  .sblock-index { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-text); font-size: 11px; font-weight: 700; }
  .sblock .chap { flex: 1; min-width: 0; margin: 0; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.5; }
  .sblock .chap .no { color: var(--brand-text); margin-right: 3px; }
  .sblock-chevron { flex: none; width: 8px; height: 8px; margin: 0 3px 4px 0; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: rotate(45deg); transition: transform .16s ease, margin .16s ease; }
  .sblock[open] .sblock-chevron { margin-bottom: 0; transform: rotate(225deg); }
  .sblock-content { padding: 0 16px 16px 53px; }
  .sblock .slabel { display: inline-block; background: var(--brand-soft); color: var(--brand-text); border-radius: 6px; padding: 1px 8px; font-size: 12px; font-weight: 500; margin-bottom: 8px; }
  .sblock-head .slabel { margin: 0; }
  .sblock p { margin: 0 0 6px; font-size: 15px; line-height: 1.9; color: #374151; }
  .sblock p:last-of-type { margin-bottom: 6px; }
  .sblock .snote { color: var(--text-muted); font-size: 12.5px; line-height: 1.65; border-left: 2px solid var(--border); padding-left: 10px; margin-top: 4px; }
  .sblock .structure-list { margin: 0; padding-left: 20px; }
  .sblock .structure-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
  .sblock .structure-list li::marker { color: var(--text-muted); }
  .sblock .structure-list .structure-list { margin-top: 6px; padding-left: 20px; border-left: 2px solid var(--border); list-style-type: circle; }
  .sblock strong { font-weight: 600; color: var(--text); }
  .sblock p, .sblock .chap { overflow-wrap: anywhere; }
  .sblock-main { position: relative; }
  .sblock-content.is-long:not(.is-expanded) .sblock-main { max-height: 270px; overflow: hidden; }
  .sblock-content.is-long:not(.is-expanded) .sblock-main::after { position: absolute; right: 0; bottom: 0; left: 0; height: 58px; background: linear-gradient(transparent, var(--surface)); content: ""; pointer-events: none; }
  .structure-body-toggle { margin-top: 10px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--brand-text); font-size: 12px; font-weight: 600; }
  .structure-body-toggle:hover, .structure-body-toggle:focus-visible { border-color: var(--brand); background: var(--brand-soft); outline: none; }
  @media (max-width: 600px) {
    .structure-report-tools { top: 4px; padding: 8px; }
    .structure-report-nav { margin-right: -2px; }
    .sblock-head { min-height: 50px; padding: 10px 12px; }
    .sblock-content { padding: 0 12px 14px; }
    .sblock-content.is-long:not(.is-expanded) .sblock-main { max-height: 230px; }
  }

  .tagline { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
  .tagline:last-child { border-bottom: none; }
  .tagline .tl { flex: none; width: 60px; color: var(--text-muted); }
  .tagline select { border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; font-size: 13px; background: var(--surface); outline: none; color: var(--text); }

  .tabs { display: flex; gap: 8px; flex-wrap: wrap; }
  .tab { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--text-muted); transition: all .12s; display: inline-flex; align-items: center; gap: 6px; }
  .tab:hover { color: var(--text); background: #F8F6FC; }
  .tab:active { transform: scale(.94); }
  .tab.on { background: linear-gradient(180deg, #F6F2FF, #E9E0FC); border-color: #C4B0F0; color: #4A3680; font-weight: 600; box-shadow: 0 2px 10px rgba(124,92,214,.25); animation: tabpop .22s ease-out; }
  .tab.on:active { box-shadow: inset 0 1px 5px rgba(90,60,160,.28); }
  .tab.on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; box-shadow: 0 0 0 3px rgba(124,92,214,.16), 0 0 8px rgba(124,92,214,.65); }

  .auto-note { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; margin-bottom: 12px; }
  .auto-note .dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; }
  .auto-note button { border: none; background: none; color: var(--brand); font-size: 12px; margin-left: auto; cursor: pointer; padding: 0; }
  .auto-note button:hover { text-decoration: underline; }

  .icard { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); }
  .icard .ihead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  .icard .ino { color: var(--text-muted); font-size: 12px; background: var(--surface-muted); border-radius: 6px; padding: 1px 8px; font-weight: 500; }
  .icard .itxt { font-size: 13px; line-height: 1.7; color: #374151; }
  .icard .itxt, .icard .ausage { white-space: pre-wrap; overflow-wrap: anywhere; }
  .icard .iact { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; align-items: center; }
  .icard.is-streaming { border-color: #B8D9D4; background: #FAFDFC; }
  .extract-error { border: 1px solid #F0B8B8; border-radius: 8px; background: #FFF7F7; padding: 12px 14px; margin-bottom: 12px; }
  .extract-error-title { color: #9B2C2C; font-size: 13px; font-weight: 700; }
  .extract-error-text { color: #6B3B3B; font-size: 12.5px; line-height: 1.6; margin: 5px 0 10px; }
  .extract-warning { color: #77591E; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; font-size: 12px; line-height: 1.6; }
  .extract-warning ul { margin: 5px 0 0; padding-left: 18px; }
  .extract-draft-note { color: #6B3B3B; font-size: 12px; line-height: 1.6; margin: 0 0 8px; }
  .generation-error-details { color: #6B3B3B; font-size: 12.5px; margin: 8px 0; }
  .generation-error-details summary { cursor: pointer; }
  .generation-error-details pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; user-select: text; line-height: 1.6; }
  .extract-label { margin-bottom: 3px; color: var(--text-muted); font-size: 11px; font-weight: 600; }
  .extract-tag { padding: 2px 7px; border-radius: 999px; background: #EEF8F6; color: #237269; font-size: 11px; }
  .extract-quote { margin: 0 0 9px; padding: 8px 10px; border-left: 3px solid #B8D9D4; background: #F7FAF9; color: #606A68; font-size: 12px; line-height: 1.65; }
  .extract-quote b { margin-right: 6px; color: #394744; font-weight: 600; }
  .extract-quote cite { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; font-style: normal; }
  .extract-progress { margin-bottom: 10px; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
  .mini { font-size: 12px; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); transition: all .12s; }
  .mini:hover { color: var(--text); border-color: #D1D5DB; }
  .mini.save { color: var(--brand-text); border-color: #D9CCF6; background: var(--brand-soft); }
  .mini.save:hover { background: #E6DDFA; }

  /* ---------- 统一弹层 ---------- */
  #mask {
    position: fixed; inset: 0; background: rgba(19,16,28,.52);
    z-index: 14000; display: flex; align-items: center; justify-content: center;
    padding: 24px; box-sizing: border-box; backdrop-filter: blur(5px);
  }
  #modal { width: 560px; max-width: calc(100vw - 48px); background: var(--surface); border: 1px solid rgba(255,255,255,.82); border-radius: 20px; padding: 24px; max-height: 86vh; overflow-y: auto; position: relative; box-shadow: 0 24px 80px rgba(17,12,31,.28); animation: modal-enter .2s cubic-bezier(.2,.8,.2,1); }
  @keyframes modal-enter { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
  #modal.ui-dialog-modal { width: min(440px, calc(100vw - 48px)); padding: 0; overflow: hidden; }
  .ui-dialog { position: relative; padding: 26px 26px 22px; }
  .ui-dialog__close { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: #f4f4f6; color: #67636f; font-size: 19px; line-height: 1; cursor: pointer; transition: background .16s ease, color .16s ease; }
  .ui-dialog__close:hover { background: #ebe8f3; color: #493b69; }
  .ui-dialog__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 13px; background: #f0ebfb; color: #6748be; font-size: 20px; font-weight: 750; }
  .ui-dialog--danger .ui-dialog__icon { background: #fff0ee; color: #ba2e24; }
  .ui-dialog__content h2 { margin: 0; padding-right: 36px; color: #292432; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
  .ui-dialog__content p { margin: 8px 0 0; color: #746d7d; font-size: 13px; line-height: 1.7; }
  .ui-dialog__field { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; color: #5b5365; font-size: 12px; font-weight: 650; }
  .ui-dialog__field input { width: 100%; min-height: 42px; box-sizing: border-box; border: 1px solid #dcd6e7; border-radius: 10px; padding: 0 12px; background: #fff; color: #2c2633; font: inherit; outline: none; transition: border-color .16s ease, box-shadow .16s ease; }
  .ui-dialog__field input:focus { border-color: #866bd1; box-shadow: 0 0 0 3px rgba(134,107,209,.13); }
  .ui-dialog__actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
  .ui-dialog__button { min-width: 88px; height: 38px; border-radius: 9px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
  .ui-dialog__button:hover { transform: translateY(-1px); }
  .ui-dialog__button--secondary { border: 1px solid #ded9e7; background: #fff; color: #625b6c; }
  .ui-dialog__button--secondary:hover { border-color: #c4b7e3; background: #faf8ff; }
  .ui-dialog__button--primary { border: 1px solid #7152c9; background: #7152c9; color: #fff; box-shadow: 0 7px 15px rgba(113,82,201,.2); }
  .ui-dialog__button--primary:hover { background: #6242bd; }
  .ui-dialog__button--primary.is-danger { border-color: #bd342a; background: #bd342a; box-shadow: 0 7px 15px rgba(189,52,42,.18); }
  .ui-dialog__button--primary.is-danger:hover { background: #a82a21; }
  /* 视频播放：约 3× 原弹窗（360→1080 / 520→1560），超出视口时自适应收拢 */
  #modal.vp-mode {
    width: min(1080px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    height: auto;
    max-height: 96vh;
    padding: 18px 18px 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  #modal.vp-mode h2 { font-size: 17px; margin-bottom: 4px; padding-right: 44px; }
  #modal.vp-mode .msub {
    font-size: 13px; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 18px;
  }
  #modal.vp-mode .vp-stage {
    width: 100%;
    height: min(1560px, calc(96vh - 130px));
    max-height: calc(96vh - 130px);
    flex: 1 1 auto;
    min-height: 360px;
    margin-bottom: 14px;
  }
  #modal.vp-mode .vp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr);
    gap: 12px;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  #modal.vp-mode .vp-layout:not(.has-transcript) { grid-template-columns: minmax(0, 1fr); }
  #modal.vp-mode .vp-media {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
  }
  #modal.vp-mode .vp-media .vp-wrap {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
  }
  #modal.vp-mode .vp-playback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    padding: 7px 11px;
    color: rgba(255,255,255,.78);
    background: #151922;
    font: 11px/1.4 var(--font-mono);
  }
  #modal.vp-mode .vp-playback span:last-child {
    overflow: hidden;
    color: rgba(255,255,255,.58);
    font: 11px/1.4 "PingFang SC", system-ui, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #modal.vp-mode .vp-transcript {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
  }
  #modal.vp-mode .vp-transcript-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }
  #modal.vp-mode .vp-transcript-head strong { color: var(--text); font-size: 13px; }
  #modal.vp-mode .vp-transcript-head span { color: var(--text-muted); font-size: 11px; }
  #modal.vp-mode .vp-transcript-list { min-height: 0; overflow: auto; overscroll-behavior: contain; }
  #modal.vp-mode .vp-transcript-line {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background-color .14s ease;
  }
  #modal.vp-mode .vp-transcript-line:last-child { border-bottom: 0; }
  #modal.vp-mode .vp-transcript-line:hover,
  #modal.vp-mode .vp-transcript-line.active { background: var(--brand-soft); }
  #modal.vp-mode .vp-transcript-line:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
  #modal.vp-mode .vp-line-time {
    display: inline-flex;
    justify-content: center;
    min-width: 76px;
    padding: 3px 5px;
    border-radius: 5px;
    background: var(--brand-soft);
    color: var(--brand-text);
    font: 10px/1.5 var(--font-mono);
    white-space: nowrap;
  }
  #modal.vp-mode .vp-line-text { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
  #modal.vp-mode .vp-wrap { border-radius: 12px; }
  #modal.vp-mode .mfoot {
    margin-top: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  #modal.vp-mode .vp-hint {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
  }
  #modal.vp-mode .macts { top: 14px; right: 16px; }
  @media (max-height: 740px) {
    #modal.vp-mode .vp-stage { height: min(1260px, calc(94vh - 110px)); max-height: calc(94vh - 110px); min-height: 280px; }
  }
  @media (max-width: 720px) {
    #modal.vp-mode { width: calc(100vw - 24px); padding: 14px 12px 12px; }
    #modal.vp-mode .vp-stage { height: min(900px, calc(92vh - 120px)); max-height: calc(92vh - 120px); min-height: 240px; }
    #modal.vp-mode .vp-layout.has-transcript { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(160px, 1.1fr) minmax(90px, .9fr); }
    #modal.vp-mode .vp-transcript-line { grid-template-columns: 76px minmax(0, 1fr); padding: 8px 10px; }
    #modal.vp-mode .vp-playback { padding-inline: 8px; }
  }
  .zoom-edit { position: absolute; top: 18px; right: 18px; border: none; background: var(--surface-muted); color: var(--text-muted); width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .zoom-edit:hover { color: var(--brand); background: var(--brand-soft); }
  .zoom-txt { font-size: 14px; line-height: 2; color: var(--text); white-space: pre-wrap; background: var(--surface-muted); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
  #modal h2 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
  #modal .msub { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
  #modal .mvideo { display: flex; gap: 14px; background: var(--surface-muted); border-radius: 10px; padding: 12px; margin-bottom: 16px; }
  #modal .mvideo img { width: 72px; height: 96px; border-radius: 6px; object-fit: cover; }
  #modal .mvideo .t { font-size: 13px; font-weight: 600; line-height: 1.5; }
  #modal .mvideo .m { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
  #modal .mvideo .d { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-top: 8px; flex-wrap: wrap; }
  #modal .mtags { margin-bottom: 20px; }
  #modal .cap2 { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
  #modal .cap2 .ai { color: var(--brand); font-size: 12px; font-weight: 500; background: var(--brand-soft); border-radius: 999px; padding: 1px 8px; }
  #modal .mfoot { display: flex; justify-content: flex-end; gap: 10px; }
  #modal .macts { position: absolute; top: 14px; right: 18px; display: flex; align-items: center; gap: 6px; z-index: 3; }
  #modal .draft-reader-actions { position: static; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 12px; flex-shrink: 0; }
  #modal .mact { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); border-radius: 8px; padding: 6px 10px; font-size: 12px; line-height: 1; cursor: pointer; transition: all .15s; }
  #modal .mact:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
  #modal .mact.icon { display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0; }
  #modal .mact.x:hover { color: #D64545; border-color: #D64545; background: #FBECEA; }
  #modal.wide h2 { padding-right: 340px; }
  #modal .legal-dialog__top { display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid #efedf2; }
  #modal .legal-dialog__top h2 { margin:0;color:#292432;font-size:18px;font-weight:700; }
  #modal .legal-dialog__top span { display:block;margin-top:5px;color:#938c9b;font-size:12px; }
  #modal .legal-dialog__body { max-height:min(58vh,560px);overflow:auto;padding:18px 4px 8px 0;color:#4e4855;font-size:13px;line-height:1.85;white-space:pre-wrap; }
  #modal .legal-dialog__foot { display:flex;justify-content:flex-end;padding-top:16px;border-top:1px solid #efedf2; }

  #toast {
    position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
    background: rgba(37,31,48,.96); color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 10px 18px;
    font-size: 13px; z-index: 15000; box-shadow: 0 12px 28px rgba(18,13,28,.28);
    animation: tin .18s ease-out;
  }
  .kb-modal { backdrop-filter: blur(5px); }
  .kb-modal .box { border: 1px solid rgba(255,255,255,.82); border-radius: 20px; box-shadow: 0 24px 80px rgba(17,12,31,.28); animation: modal-enter .2s cubic-bezier(.2,.8,.2,1); }
  @keyframes tin { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

  @media (max-width: 1080px) {
    .cards { grid-template-columns: 1fr; }
    .dcols { flex-direction: column; }
    .dcol-r { position: static; max-height: none; }
  }
  #view-assets { padding: 4px 28px 40px; }
  .micro { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--brand); }
  .phead { margin: 8px 0 16px; }
  #peerHead { padding: 20px 28px 0; margin: 0; }
  .phead .micro { display: block; margin-bottom: 6px; }
  .phead h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 700; letter-spacing: 1px; }
  .assets-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
  .asearchwrap { flex: 1; min-width: 240px; max-width: 560px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; color: var(--text-muted); }
  .asearchwrap input { border: none; outline: none; flex: 1; font-size: 13px; background: transparent; color: var(--text); }
  .apills { display: flex; gap: 8px; }
  .apill { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
  .apill:hover { border-color: #C9BFA9; color: var(--text); background: #F8F6FC; }
  .apill:active { transform: scale(.94); }
  .apill.on { background: linear-gradient(180deg, #F6F2FF, #E9E0FC); border-color: #C4B0F0; color: #4A3680; font-weight: 600; box-shadow: 0 2px 10px rgba(124,92,214,.25); animation: tabpop .22s ease-out; }
  .apill.on:active { box-shadow: inset 0 1px 5px rgba(90,60,160,.28); }
  .apill.on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; box-shadow: 0 0 0 3px rgba(124,92,214,.16), 0 0 8px rgba(124,92,214,.65); }
  .afpanel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px 14px; margin-bottom: 40px; }
  .afhead { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
  .afhead button { border: none; background: none; color: var(--brand); font-size: 12px; cursor: pointer; padding: 0; }
  .afrow { display: flex; gap: 10px; align-items: flex-start; }
  .afrow + .afrow { margin-top: 10px; }
  .afrow .lbl { flex: none; width: 30px; font-size: 12px; color: var(--text-muted); padding-top: 6px; }
  .afpills { display: flex; flex-wrap: wrap; gap: 8px; }
  .afpill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; color: var(--text); cursor: pointer; }
  .afpill .n { font-size: 11px; background: #EEECE6; color: #8A8578; border-radius: 999px; padding: 1px 7px; }
  .afpill.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
  .afpill.on .n { background: rgba(255,255,255,.28); color: #fff; }
  .afpanel.closed .afrow { display: none; }
  .afpanel.closed .afhead { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 48px 16px; }
  #ccLib, #ccDrafts, #ccFinal, #ccVideo, #ccPub { padding-top: 26px; }
  .acard { position: relative; background: #FBFAF7; border: 1px solid #E7E2D8; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 8px rgba(90,70,40,.06); cursor: pointer; transition: transform .15s, box-shadow .15s; }
  .acard:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(90,70,40,.10); }
  .alib { position: absolute; top: -27px; left: 16px; font-size: 12px; font-weight: 600; color: #fff; border-radius: 8px 8px 0 0; padding: 5px 14px 7px; letter-spacing: 2px; }
  .atop { position: absolute; top: -27px; left: 16px; display: flex; align-items: flex-end; gap: 6px; }
  .atop .alib { position: static; }
  .atop .lvl { border-radius: 8px 8px 0 0; height: 24px; min-width: 26px; padding: 0 9px 2px; }
  .ahead { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .aup { font-size: 14px; font-weight: 700; color: var(--text); flex: none; }
  .asrc { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .aacts { margin-left: auto; display: flex; gap: 2px; }
  .aact { border: none; background: none; padding: 4px; border-radius: 6px; color: #B9B2A6; cursor: pointer; display: flex; align-items: center; }
  .aact:hover { background: rgba(0,0,0,.05); color: var(--text); }
  .aact.star.on { color: #E8A33D; }
  .aact.star.on svg { fill: currentColor; }
  .aact.ok.on { color: #3E9B6C; }
  .aact.del.arm { color: #D64545; font-size: 12px; font-weight: 600; }
  .atxt { font-size: 14px; line-height: 1.9; color: #3B3730; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .amore { font-size: 12px; color: #A39B8B; margin-top: -4px; display: flex; justify-content: space-between; gap: 8px; }
  .ausage { font-size: 12.5px; color: #6B6455; background: rgba(120,100,60,.06); border-radius: 8px; padding: 8px 10px; line-height: 1.7; }
  .ausage b { color: #3B3730; font-weight: 600; margin-right: 4px; }
  .afoot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 1px dashed #DDD6C8; padding-top: 10px; }
  .afoot .atags { display: flex; gap: 6px; flex-wrap: wrap; }
  .afoot .atags > span { font-size: 11px; color: #6B6455; background: #EFEBE2; border-radius: 999px; padding: 3px 9px; }
  .mi-topic-pill { display: inline-flex; align-items: center; gap: 3px; }
  .mi-topic-remove { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-left: -2px; border: 1px solid #F0D8D5; border-radius: 50%; background: #FFF8F7; color: #B74E45; font-size: 14px; line-height: 1; cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease; }
  .mi-topic-remove:hover { border-color: #C94F45; background: #C94F45; color: #fff; }
  .atime { margin-left: auto; font-size: 12px; color: var(--text-muted); }
  .amore .astats { color: var(--text-muted); white-space: nowrap; }
  .zoomtxt { font-size: 15px; line-height: 2; color: #3B3730; margin: 4px 0 12px; white-space: pre-line; }
  #modal textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.8; margin-bottom: 10px; font-family: inherit; resize: vertical; outline-color: var(--brand); }
  .elabel { font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 2px 0 6px; }
  .mtags span { display: inline-block; font-size: 11px; color: #6B6455; background: #EFEBE2; border-radius: 999px; padding: 3px 9px; margin: 0 6px 6px 0; }
  /* ---- 内容创作 ---- */
  #view-create { padding: 4px 28px 24px; }
  #view-create .cc-page-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .cc-workflow-bar { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 4px 8px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  .cc-workflow-tabs { display: flex; align-items: center; gap: 3px; flex: 1 1 auto; min-width: 0; margin-bottom: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .cc-workflow-tabs::-webkit-scrollbar { display: none; }
  .cc-workflow-bar .ctab { flex: none; padding: 6px 10px; border-color: transparent; background: transparent; font-size: 12px; color: var(--text-muted); }
  .cc-workflow-bar .ctab:hover { border-color: transparent; color: var(--brand-text); background: var(--brand-soft); }
  .cc-workflow-bar .ctab:active { transform: none; }
  .cc-workflow-bar .ctab.on { border-color: transparent; background: var(--brand-soft); color: var(--brand-text); box-shadow: none; animation: none; }
  .cc-workflow-bar .ctab.on:active { box-shadow: none; }
  .cc-workflow-bar .ctab.on::before { width: 5px; height: 5px; box-shadow: none; }
  @keyframes tabpop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
  .ctab .cnt { opacity: .7; margin-left: 4px; font-size: 12px; }
  .cc-workflow-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 0 0 auto; }
  .cc-workflow-links { display: inline-flex; align-items: center; gap: 2px; flex: none; }
  #view-create .cc-camp-link { border: 0; border-radius: 8px; background: transparent; padding: 5px 7px; color: var(--text-muted); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
  #view-create .cc-camp-link:hover { color: var(--brand-text); background: var(--brand-soft); }
  #ccPulse { display: inline-flex; align-items: center; justify-content: center; flex: none; border: 0; border-radius: 8px; background: transparent; padding: 5px 7px; color: var(--text-muted); font: inherit; font-size: 12px; cursor: pointer; transition: color .15s, background .15s; }
  #ccPulse:hover { color: var(--brand-text); background: var(--brand-soft); }
  #ccPulse .plabel { font-size: 12px; font-weight: 500; color: inherit; }
  #ccPulse .plabel::before { display: none; }
  /* ---- 注意清单 ---- */
  #view-attention { padding: 4px 28px 40px; }
  .at-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
  .at-title { font-family: var(--font-serif); font-size: 26px; font-weight: 700; letter-spacing: 1px; }
  .at-stats { display: flex; gap: 8px; }
  .at-stat { font-size: 12px; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
  .at-stat b { color: var(--brand-text); font-weight: 600; }
  .at-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
  .at-search { flex: 1; min-width: 240px; max-width: 560px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; color: var(--text-muted); }
  .at-search input { border: none; outline: none; flex: 1; font-size: 13px; background: transparent; color: var(--text); }
  .at-bar .at-model { flex: none; }
  .at-bar .at-model .modelbtn { padding: 8px 12px; }
  .at-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
  .at-tab { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
  .at-tab:hover { border-color: #C9BFA9; color: var(--text); background: #F8F6FC; }
  .at-tab:active { transform: scale(.94); }
  .at-tab.on { background: linear-gradient(180deg, #F6F2FF, #E9E0FC); border-color: #C4B0F0; color: #4A3680; font-weight: 600; box-shadow: 0 2px 10px rgba(124,92,214,.25); animation: tabpop .22s ease-out; }
  .at-tab.on:active { box-shadow: inset 0 1px 5px rgba(90,60,160,.28); }
  .at-tab.on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; box-shadow: 0 0 0 3px rgba(124,92,214,.16), 0 0 8px rgba(124,92,214,.65); }
  .at-tab.todo { border-color: #EBC5C2; color: #C2453E; background: #FBEDEC; font-weight: 600; }
  .at-tab.todo:hover { background: #F9E2E0; border-color: #E0ACA7; }
  .at-tab.todo.on { background: linear-gradient(180deg, #FBE3E1, #F6CFCC); border-color: #E0928D; color: #A33530; box-shadow: 0 2px 10px rgba(214,69,69,.22); }
  .at-tab.todo.on:active { box-shadow: inset 0 1px 5px rgba(160,50,45,.28); }
  .at-tab.todo.on::before { background: #D64545; box-shadow: 0 0 0 3px rgba(214,69,69,.16), 0 0 8px rgba(214,69,69,.6); }
  .at-tab .cnt { opacity: .7; margin-left: 4px; font-size: 12px; }
  .at-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 48px 16px; padding-top: 26px; }
  .at-empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); font-size: 13px; padding: 60px 20px; border: 1px dashed var(--border); border-radius: 12px; }
  #view-attention .afoot .atags { gap: 8px; }
  #view-attention .afoot .atags > span { padding: 3px 10px; }
  /* ---- 注意清单弹层：字段 / 改分类（与 at-tab 体系统一） ---- */
  #modal .at-field { margin: 4px 0 14px; }
  #modal .at-field .elabel { margin-bottom: 8px; }
  #modal .at-field textarea,
  #modal select {
    width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 12px; font-size: 14px; line-height: 1.7; font-family: inherit;
    background: var(--surface); color: var(--text); outline: none;
  }
  #modal .at-field textarea:focus,
  #modal select:focus { border-color: #C4B0F0; box-shadow: 0 0 0 3px rgba(124,92,214,.12); }
  #modal .at-type-picks { display: flex; flex-wrap: wrap; gap: 8px; }
  #modal .at-type-pick {
    appearance: none; border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); border-radius: 999px; padding: 7px 14px; font-size: 13px;
    cursor: pointer; transition: all .15s; line-height: 1.2;
  }
  #modal .at-type-pick:hover { border-color: #C9BFA9; color: var(--text); background: #F8F6FC; }
  #modal .at-type-pick.on {
    background: color-mix(in srgb, var(--atc, var(--brand)) 14%, #fff);
    border-color: color-mix(in srgb, var(--atc, var(--brand)) 45%, #fff);
    color: color-mix(in srgb, var(--atc, var(--brand)) 72%, #1a1228);
    font-weight: 600; box-shadow: 0 2px 8px color-mix(in srgb, var(--atc, var(--brand)) 22%, transparent);
  }
  #modal .at-type-pick.on::before {
    content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--atc, var(--brand)); margin-right: 6px; vertical-align: 1px;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--atc, var(--brand)) 18%, transparent);
  }
  #modal .at-type-hint { margin-top: 8px; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
  #fpResult .fp-dup {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
    color: #A33530; background: #FBEDEC; border: 1px solid #E0928D; border-radius: 999px;
    padding: 2px 10px; margin-right: 6px; vertical-align: 1px;
  }
  #modal .at-raw { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-muted); padding: 0 12px; }
  #modal .at-raw summary { cursor: pointer; font-size: 12.5px; color: var(--text-muted); padding: 10px 0; list-style: none; }
  #modal .at-raw summary::-webkit-details-marker { display: none; }
  #modal .at-raw[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }
  #modal .at-raw .zoom-txt { margin: 0 0 10px; background: transparent; padding: 4px 0 8px; }
  /* ---- 待办看板 ---- */
  .td-board { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
  .td-col { border-radius: 12px; padding: 12px; background: var(--tdbg); }
  .td-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  .td-pill { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
  .td-n { font-size: 12px; color: var(--text-muted); }
  .td-list { display: flex; flex-direction: column; gap: 10px; max-height: 440px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
  .td-list::-webkit-scrollbar { width: 6px; }
  .td-list::-webkit-scrollbar-thumb { background: rgba(120,110,90,.28); border-radius: 3px; }
  .td-list::-webkit-scrollbar-track { background: transparent; }
  .td-empty { font-size: 12px; color: var(--text-muted); text-align: center; padding: 18px 8px; border: 1px dashed rgba(0,0,0,.14); border-radius: 8px; }
  .td-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 12px 10px; box-shadow: 0 1px 4px rgba(90,70,40,.05); }
  .td-main { display: flex; align-items: flex-start; gap: 8px; }
  .td-check { flex: none; width: 16px; height: 16px; border: 1.5px solid #B9B2A6; border-radius: 4px; margin-top: 2px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #fff; }
  .td-check:hover { border-color: var(--brand); }
  .td-check.on { background: var(--brand); border-color: var(--brand); }
  .td-check svg { display: none; }
  .td-check.on svg { display: block; }
  .td-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.6; flex: 1; min-width: 0; }
  .td-title.done, .td-sub .done { text-decoration: line-through; color: var(--text-muted); font-weight: 500; }
  .td-acts { display: flex; gap: 2px; margin-left: auto; }
  .td-act { border: none; background: none; color: #B9B2A6; padding: 3px; border-radius: 5px; cursor: pointer; display: flex; }
  .td-act:hover { background: rgba(0,0,0,.05); color: var(--text); }
  .td-subs { margin: 8px 0 0 24px; display: flex; flex-direction: column; gap: 6px; }
  .td-sub { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--text); line-height: 1.6; }
  .td-sub .td-check { width: 14px; height: 14px; }
  .td-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
  .td-imp { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 9px; cursor: pointer; }
  .td-imp:hover { filter: brightness(1.08); }
  .td-due { font-size: 11px; color: var(--text-muted); cursor: pointer; }
  .td-due:hover { color: var(--text); text-decoration: underline; }
  .td-due.late { color: #D64545; font-weight: 600; }
  .td-due.late:hover { color: #B93A3A; }
  .td-due.none { opacity: .6; }
  .td-foot { margin-top: 8px; font-size: 11px; color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .td-move { display: inline-flex; gap: 4px; }
  .td-mv { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--border); background: #fff; color: var(--text-muted); font-size: 13px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
  .td-mv:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
  .td-mv:disabled { opacity: .35; cursor: default; }
  .imp-pop { position: fixed; z-index: 80; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(26,24,23,.16); padding: 5px; min-width: 138px; }
  .imp-opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 12.5px; border-radius: 7px; cursor: pointer; color: var(--text); }
  .imp-opt:hover { background: var(--surface-muted); }
  .imp-opt .dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }
  .imp-opt.on { font-weight: 600; }
  .td-card.editing { border-color: var(--brand); box-shadow: 0 4px 14px rgba(124,92,214,.18); }
  .td-edit-txt { width: 100%; box-sizing: border-box; border: 1px solid var(--brand); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.6; font-family: inherit; resize: vertical; min-height: 56px; outline: none; background: #fff; color: var(--text); display: block; }
  .td-edit-row { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
  .td-edit-row.end { justify-content: flex-end; }
  .td-edit-row select, .td-edit-row input[type="date"] { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 12px; background: #fff; color: var(--text); outline-color: var(--brand); }
  .td-ebtn { border: 1px solid var(--border); background: #fff; color: var(--text-muted); font-size: 12px; border-radius: 8px; padding: 6px 14px; cursor: pointer; }
  .td-ebtn:hover { color: var(--text); }
  .td-ebtn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
  .td-ebtn.primary:hover { background: var(--brand-text); }
  .td-subadd { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
  .td-subadd input { flex: 1; min-width: 0; border: 1px solid var(--brand); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; outline: none; background: #fff; color: var(--text); }
  .td-subadd input::placeholder { color: var(--text-muted); }
  .td-subadd .td-ebtn { padding: 4px 10px; }
  @media (max-width: 1080px) { .td-board { grid-template-columns: repeat(2, 1fr); } }
  /* ---- 浮动捕捉（对齐 20261002 原版 UI） ---- */
  .float-wrap { position: fixed; bottom: 28px; right: 28px; z-index: 50; }
  .float-btn {
    width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; border: none;
    padding: 0; margin: 0; line-height: 0; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(124,92,214,.35); cursor: pointer; transition: transform .15s;
  }
  .float-btn svg { display: block; flex: none; }
  .float-btn:hover { transform: scale(1.06); }
  .float-panel {
    position: absolute; bottom: 0; right: 0; width: 100%; height: 100%;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 16px 48px rgba(26,24,23,.14); display: flex; flex-direction: column; overflow: hidden;
  }
  .float-panel.collapsed {
    width: 56px; height: 56px; border-radius: 50%; border: none; background: transparent; box-shadow: none;
    align-items: center; justify-content: center;
  }
  .float-panel.collapsed .fp-body, .float-panel.collapsed .fp-head { display: none; }
  .float-panel.collapsed .float-btn { display: inline-flex; }
  .float-panel:not(.collapsed) .float-btn { display: none; }
  .fp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; border-bottom: 1px solid var(--border); flex: none; }
  .fp-head .micro { font-size: 11px; }
  .fp-close { border: none; background: none; color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
  .fp-close:hover { background: var(--surface-muted); color: var(--text); }
  .fp-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .fp-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #F6F4EF; }
  .fp-hcap, .fp-icap { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 10px 16px 0; letter-spacing: 1px; flex: none; }
  .fp-hrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 12px; flex: none; }
  .fp-hrow .fp-hcap { padding-bottom: 2px; }
  .fp-hcount { font-weight: 500; letter-spacing: 0; }
  .fp-hist-toggle { margin-top: 8px; display: inline-flex; align-items: center; gap: 3px; border: 1px solid #E4DFD5; background: #fff; color: var(--text-muted); font-size: 12px; font-weight: 600; padding: 3px 8px 3px 10px; border-radius: 999px; cursor: pointer; }
  .fp-hist-toggle:hover { color: var(--text); border-color: #D5CFC3; }
  .fp-hist-toggle svg { transform: rotate(180deg); transition: transform .2s; }
  .float-panel.hist-closed .fp-hist-toggle svg { transform: none; }
  .float-panel.hist-closed .fp-hist { display: none; }
  .float-panel.hist-closed:not(.collapsed) { height: auto; max-height: 100%; }
  /* 历史收起后面板变矮，外层透明区域不挡住下面的卡片 */
  .float-wrap { pointer-events: none; }
  .float-wrap .float-panel { pointer-events: auto; }
  .float-panel.hist-closed .fp-chat { flex: none; padding-bottom: 10px; }
  .fp-hist { flex: 1; min-height: 96px; overflow-y: auto; padding: 8px 14px 12px; display: flex; flex-direction: column; gap: 6px; }
  .fp-hist::-webkit-scrollbar { width: 6px; }
  .fp-hist::-webkit-scrollbar-thumb { background: #D8D4CC; border-radius: 3px; }
  .fp-hist::-webkit-scrollbar-thumb:hover { background: #C4BFB5; }
  .fp-hist-empty { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; padding: 18px 12px; text-align: center; border: 1px dashed #DDD8CE; border-radius: 10px; background: rgba(255,255,255,.55); }
  .fp-hitem { font-size: 12.5px; color: var(--text); padding: 8px 12px; background: #fff; border: 1px solid #EBE6DC; border-radius: 10px; line-height: 1.7; cursor: pointer; }
  .fp-hitem:hover { border-color: #D5CFC3; background: #FBFAF7; }
  .fp-hitem .ht { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
  .fp-hitem .ht .fp-htag { font-size: 10px; border-radius: 999px; padding: 1px 7px; font-weight: 700; background: var(--brand-soft); color: var(--brand-text); }
  .fp-result { flex: none; padding: 10px 14px; font-size: 12.5px; color: var(--text-muted); line-height: 1.7; background: #FBF8FF; border-top: 1px solid #EDE6FA; border-bottom: 1px solid #EDE6FA; }
  .fp-result.hidden { display: none; }
  .fp-result b { color: var(--text); }
  .fp-composer { flex: none; border-top: 1px solid var(--border); background: var(--surface); }
  .fp-input { padding: 8px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
  .fp-input textarea {
    width: 100%; border: 1px solid var(--border); outline: none; font-size: 14px; line-height: 1.7; font-family: inherit;
    resize: none; min-height: 72px; max-height: 140px; background: #FBFAF7; color: var(--text); border-radius: 10px; padding: 10px 12px; box-sizing: border-box;
  }
  .fp-input textarea:focus { border-color: #C4B0F0; box-shadow: 0 0 0 3px rgba(124,92,214,.12); background: #fff; }
  .fp-input textarea::placeholder { color: var(--text-muted); }
  /* 注意清单捕捉输入框：加高，随内容变高（JS autosizeFpText 控制，150–260px） */
  /* 2026-11-26 放大：高度由 JS autosizeFpText 按面板高度计算（约 450px 起，屏幕矮时自动缩小），字号加大 */
  .fp-input #fpText { min-height: 110px; max-height: none; overflow-y: hidden; font-size: 16px; line-height: 1.75; padding: 14px 16px; }
  .fp-key-hint { margin-top: -4px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
  .fp-row { display: flex; align-items: center; gap: 8px; }
  .fp-voice { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #FFF5F3; border: 1px solid #F4D2CD; }
  .fp-voice[hidden] { display: none !important; }
  .fp-voice[data-state="paused"] { background: #FFF8EE; border-color: #F0D9B4; }
  .fp-voice[data-state="connecting"] { background: #F7F4FF; border-color: #E4DCF8; }
  .fp-vbars { display: flex; align-items: flex-end; gap: 3px; width: 34px; height: 22px; flex: none; }
  .fp-vbars span { flex: 1; height: 100%; border-radius: 99px; background: #E3574E; transform: scaleY(.28); transform-origin: bottom; animation: fpBar 1s ease-in-out infinite; }
  .fp-voice[data-state="live"] .fp-vbars span { animation: none; }
  .fp-voice[data-state="paused"] .fp-vbars span { animation: none; transform: scaleY(.28); background: #C27803; }
  .fp-voice[data-state="connecting"] .fp-vbars span { background: var(--brand); }
  .fp-vbars span:nth-child(2) { animation-delay: .12s; }
  .fp-vbars span:nth-child(3) { animation-delay: .24s; }
  .fp-vbars span:nth-child(4) { animation-delay: .08s; }
  .fp-vbars span:nth-child(5) { animation-delay: .2s; }
  @keyframes fpBar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(.95); } }
  .fp-voice-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .fp-voice-copy b { font-size: 12.5px; line-height: 1.3; color: #C24138; }
  .fp-voice[data-state="paused"] .fp-voice-copy b { color: #9A5B08; }
  .fp-voice[data-state="connecting"] .fp-voice-copy b { color: var(--brand-text); }
  .fp-voice-copy span { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fp-caret { display: inline-block; width: 6px; height: 12px; margin-left: 3px; background: #E3574E; vertical-align: -1px; border-radius: 1px; animation: mpulse .8s infinite; }
  .fp-mic { position: relative; width: 32px; height: 32px; flex: none; border: none; background: transparent; cursor: pointer; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; transition: background .2s, color .2s, box-shadow .2s; }
  .fp-mic:hover { color: var(--text); background: var(--surface-muted); }
  .fp-mic .fp-eq, .fp-mic .fp-ico-pause { display: none; }
  .fp-mic.rec .fp-ico-mic, .fp-mic.paused .fp-ico-mic, .fp-mic.paused .fp-eq { display: none; }
  .fp-mic.rec { color: #fff; background: #E3574E; animation: fpMicRing 1.5s ease-out infinite; }
  .fp-mic.rec:hover { color: #fff; background: #D64545; }
  .fp-mic.rec .fp-eq { display: inline-flex; }
  .fp-mic.paused { color: #fff; background: #C27803; animation: none; }
  .fp-mic.paused:hover { color: #fff; background: #A86608; }
  .fp-mic.paused .fp-ico-pause { display: block; }
  .fp-mic.connecting { color: var(--brand-text); background: var(--brand-soft); animation: mpulse 1s infinite; }
  .fp-mic.connecting:hover { color: var(--brand-text); background: var(--brand-soft); }
  @keyframes fpMicRing { 0% { box-shadow: 0 0 0 0 rgba(227,87,78,.45); } 100% { box-shadow: 0 0 0 10px rgba(227,87,78,0); } }
  .fp-eq { align-items: flex-end; gap: 2px; height: 12px; }
  .fp-eq i { width: 2px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: center bottom; animation: fpEq .8s ease-in-out infinite; }
  .fp-eq i:nth-child(2) { animation-delay: .15s; }
  .fp-eq i:nth-child(3) { animation-delay: .3s; }
  .fp-eq i:nth-child(4) { animation-delay: .1s; }
  @keyframes fpEq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
  .fp-mic.finishing { color: var(--brand-text); background: var(--brand-soft); animation: mpulse 1s infinite; }
  .fp-mic.finishing:hover { color: var(--brand-text); background: var(--brand-soft); }
  .fp-mic.finishing .fp-ico-mic { display: none; }
  .fp-mic.finishing .fp-eq { display: inline-flex; }
  .fp-voice[data-state="finishing"] { background: #F7F4FF; border-color: #E4DCF8; }
  .fp-mic.finishing + .fp-mic-label { color: var(--brand-text); }
  /* 实时听写：还在识别、可能会改的字浅色显示 */
  .fp-pending { color: var(--text-muted); opacity: .8; }
  .fp-mic-label { font-size: 12px; font-weight: 600; color: var(--text-muted); min-width: 3.2em; }
  .fp-mic.rec + .fp-mic-label { color: #E3574E; }
  .fp-mic.paused + .fp-mic-label { color: #C27803; }
  .fp-mic.connecting + .fp-mic-label { color: var(--brand-text); }
  .fp-voice[data-state="connecting"] .fp-vbars span { animation-duration: .7s; }
  .cc-mic-wrap { display: inline-flex; align-items: center; gap: 6px; }
  .cc-mic-wrap .fp-mic-label { min-width: 0; white-space: nowrap; }
  .cc-mic-wrap .fp-mic:not(.rec):not(.paused):not(.connecting) + .fp-mic-label { display: none; }
  #ccNote.is-streaming { border-radius: 10px; box-shadow: inset 3px 0 0 #E3574E, 0 0 0 3px rgba(227,87,78,.10); background: #fff; padding-left: 10px; }
  .fp-input textarea.is-streaming { border-color: #F0B8B2; box-shadow: inset 3px 0 0 #E3574E, 0 0 0 3px rgba(227,87,78,.10); background: #fff; }
  .fp-send { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; border: none; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .fp-send:hover { background: var(--brand-text); }
  .fp-send:disabled { opacity: .5; cursor: not-allowed; }
  .fp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
  .fp-tag { font-size: 11px; border-radius: 999px; padding: 2px 10px; font-weight: 600; }

  #ccStorm { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 16px; height: calc(100dvh - 82px); min-height: 360px; align-items: stretch; }
  .storm-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
  #stormSide { min-height: 0; }
  .spanel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
  .sidle-t { font-size: 14px; font-weight: 700; margin-top: 8px; }
  .sidle p { font-size: 12.5px; color: var(--text-muted); line-height: 1.9; margin-top: 8px; }
  .sidle .tip { margin-top: 12px; font-size: 12px; color: var(--brand-text); background: var(--brand-soft); border-radius: 8px; padding: 8px 10px; line-height: 1.7; }
  .shead { display: flex; justify-content: space-between; align-items: center; }
  .sback { border: none; background: none; color: var(--text-muted); font-size: 12px; cursor: pointer; }
  .sback:hover { color: #D64545; }
  .ssub { font-size: 12px; color: var(--text-muted); margin: 6px 0 10px; }
  .slist { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: thin; padding-right: 3px; flex: 1; min-height: 0; }
  .slist::-webkit-scrollbar { width: 6px; }
  .slist::-webkit-scrollbar-thumb { background: rgba(120,110,90,.28); border-radius: 3px; }
  .excard { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #FBFAF7; flex: none; }
  .excard.saved { border-color: #BCE3CE; background: #F2FAF6; }
  .exhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  .exno { font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 6px; padding: 1px 7px; }
  .exskill { font-size: 11px; color: var(--text-muted); border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 1px 8px; }
  .exok { margin-left: auto; font-size: 11px; color: #3E9B6C; font-weight: 600; }
  .extitle { font-size: 13px; font-weight: 600; line-height: 1.6; }
  .exbody { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-top: 4px; }
  .exrow { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 6px; }
  .exdests { display: flex; gap: 4px; }
  .exdest { border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); border-radius: 999px; font-size: 11px; padding: 3px 9px; cursor: pointer; }
  .exdest.on { background: var(--brand); border-color: var(--brand); color: #fff; }
  .exsave { border: none; background: #1A1D21; color: #fff; border-radius: 999px; font-size: 11.5px; padding: 4px 12px; cursor: pointer; }
  .exsave:hover { background: var(--brand); }
  .aext { margin-top: 8px; }
  .aextbtn { border: 1px dashed var(--brand); color: var(--brand-text); background: var(--brand-soft); border-radius: 999px; font-size: 12px; padding: 4px 12px; cursor: pointer; }
  .aextbtn:hover { background: var(--brand); color: #fff; border-style: solid; }
  .chatwelcome { text-align: center; padding: 42px 20px 30px; }
  .wtitle { font-family: var(--font-serif); font-size: 18px; font-weight: 700; }
  .wsub { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; line-height: 1.8; }
  .wchips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .wchip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--text); cursor: pointer; }
  .wchip:hover { border-color: var(--brand); color: var(--brand-text); background: var(--brand-soft); }
  .chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .chat-head > div:first-child > .micro { display: none; }
  .ch-title { font-family: var(--font-serif); font-size: 14px; font-weight: 650; margin-top: 0; }
  .ch-r { display: flex; align-items: center; gap: 8px; }
  .chstat { font-size: 11.5px; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 9px; }
  .chstat b { color: var(--brand-text); font-weight: 600; }
  .chat-head > div:first-child { min-width: 0; }
  .ch-title { overflow-wrap: anywhere; }
  .ch-r { flex-shrink: 0; flex-wrap: wrap; }
  .storm-history { position: relative; display: flex; align-items: center; z-index: 25; }
  .storm-history-toggle { padding: 7px 6px; border: 0; background: transparent; color: var(--text-muted); border-radius: 6px; }
  .storm-history-panel { display: none; position: absolute; right: 0; top: 100%; width: 460px; max-width: calc(100vw - 48px); padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 36px rgba(26,24,23,.14); animation: modal-enter .18s ease-out; }
  .storm-history:hover .storm-history-panel, .storm-history:focus-within .storm-history-panel, .storm-history.open .storm-history-panel { display: block; }
  .storm-history-head { display: flex; justify-content: space-between; gap: 12px; padding: 2px 4px 10px; font-size: 13px; font-weight: 600; }
  #stormHistoryStatus { font-size: 11px; font-weight: 400; color: var(--text-muted); }
  #stormHistoryList { max-height: 340px; overflow-y: auto; }
  .storm-history-row { display: flex; gap: 6px; align-items: center; border-radius: 8px; padding: 8px 6px; }
  .storm-history-row:hover, .storm-history-row.active { background: var(--brand-soft); }
  .storm-history-select { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; text-align: left; border: 0; background: transparent; color: var(--text); }
  .storm-history-select time { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
  .storm-history-select span { width: 100%; overflow-wrap: anywhere; font-size: 12px; }
  .storm-history-action { border: 0; background: transparent; color: var(--brand-text); padding: 5px; font-size: 12px; flex-shrink: 0; }
  .storm-history-action.danger { color: #B64B4B; }
  .storm-history-empty { padding: 24px 10px; text-align: center; font-size: 12px; color: var(--text-muted); }
  .storm-session-enter { animation: modal-enter .24s ease-out; }
  @media (prefers-reduced-motion: reduce) { .storm-session-enter, .storm-history-panel { animation: none; } }
  @media (max-width: 900px) { .chat-head { align-items: flex-start; flex-direction: column; } .ch-r { width: 100%; } .storm-history { margin-left: auto; } }
  .chatwrap { flex: 1; min-height: 0; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; }
  .histbar { display: flex; align-items: center; gap: 10px; background: #FAF3E4; border: 1px solid #EBD9B4; border-radius: 10px; padding: 8px 14px; font-size: 12.5px; color: #7A5A1F; margin-bottom: 20px; }
  .histbar button { margin-left: auto; border: 1px solid #EBD9B4; background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 12px; color: #7A5A1F; }
  .turn { margin-bottom: 24px; }
  .turn:last-child { margin-bottom: 4px; }
  .turn.user { display: flex; justify-content: flex-end; }
  .ububble { max-width: 80%; background: var(--brand-soft); border-radius: 14px 14px 4px 14px; padding: 12px 16px; font-size: 13.5px; line-height: 1.8; white-space: pre-line; }
.sens { background: none; color: #E3574E; font-weight: 600; border-bottom: 1.5px solid #E3574E; padding: 0 1px; }
.sens-badge { display: inline-flex; align-items: center; margin-left: 6px; font-size: 11px; line-height: 1.6; color: #E3574E; background: #FBEAE8; border-radius: 6px; padding: 1px 8px; font-weight: 500; white-space: nowrap; }
.sens-note { margin: 8px 0; color: #E3574E; font-size: 12px; line-height: 1.6; }
  .ububble .cc-mats { margin: 0 0 8px; }
  .turn.ai { display: flex; gap: 12px; }
  .aava { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .aava.error { background: #D64545; }
  .abody { flex: 1; min-width: 0; }
  .atext { font-size: 13.5px; line-height: 1.95; color: #3B3730; white-space: pre-line; }
  .generation-status { min-height: 30px; display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 13.5px; }
  .generation-spinner { width: 15px; height: 15px; border: 2px solid #DED8CC; border-top-color: var(--brand); border-radius: 50%; animation: generation-spin .75s linear infinite; }
  .tpacts .generation-spinner { display: inline-block; vertical-align: middle; margin-right: 6px; }
  .topic-task-status { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
  .topic-task-error { color: #b42318; background: #fff0ed; padding: 10px 12px; border-radius: 8px; margin: 12px 0; }
  .writer-quality-notice { color: #854d0e; background: #fffbeb; border: 1px solid #fde68a; padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
  .writer-quality-notice ul { padding-left: 20px; margin: 8px 0; }
  .writer-quality-notice li span { display: block; color: #78654b; font-size: 12px; }
  .writer-quality-notice p { margin: 6px 0 0; }
  .btn[data-quality-warning="true"] { background: #fffbeb; border-color: #fcd34d; color: #854d0e; }
  .draft-refinement { flex-basis: 100%; display: grid; gap: 8px; min-width: 0; }
  .draft-refinement textarea { width: 100%; min-height: 80px; box-sizing: border-box; resize: vertical; }
  .topic-task-actions { flex-wrap: wrap; }
  .draft-quality-tag { font-size: 12px; color: #854d0e; background: #fffbeb; padding: 2px 6px; border-radius: 4px; }
  .topic-task-output .pickrow { display: block; margin-bottom: 12px; }
  .topic-task-output .drafttxt { white-space: pre-wrap; }
  #modal [data-topic-task] { display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: calc(92vh - 48px); }
  .topic-task-output { min-height: 0; overflow-y: auto; }
  #modal [data-topic-task] .mfoot { align-items: center; flex-shrink: 0; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border); }
  .topic-task-actions { display: flex; align-items: center; gap: 10px; }
  #modal [data-topic-task] .mfoot .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; box-sizing: border-box; white-space: nowrap; }
  .topic-task-output .tune-option { display: flex; flex-direction: column; align-items: stretch; }
  .topic-task-output .tune-option p { display: block; }
  .topic-task-output .tune-choose { align-self: flex-end; margin-top: 10px; }
  .generation-error { min-height: 30px; display: flex; align-items: center; color: #A33232; font-size: 13.5px; line-height: 1.7; }
  @keyframes generation-spin { to { transform: rotate(360deg); } }
  .caret { display: inline-block; width: 7px; height: 14px; background: var(--brand); vertical-align: -2px; margin-left: 2px; animation: mpulse .9s infinite; }
  .atopics { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
  .atopics .tpcard { margin-bottom: 0; }
  .composer { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 10px 28px rgba(26,24,23,.07); display: flex; flex-direction: column; gap: 10px; }
  .composer .cc-mats:empty { display: none; }
  .rewrite-base-hint { width: fit-content; max-width: 100%; padding: 4px 9px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-text); font-size: 12px; }
  #ccNote { width: 100%; border: none; background: none; padding: 2px 4px; font-size: 14px; line-height: 1.7; font-family: inherit; resize: none; outline: none; min-height: 46px; max-height: 140px; color: var(--text); }
  #ccNote::placeholder { color: var(--text-muted); }
  .crow { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
  .cplus { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center; }
  .cplus:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
  .cc-ins { display: flex; gap: 6px; flex-wrap: wrap; }
  .cc-ins button { border: 1px dashed var(--border); background: var(--surface-muted); border-radius: 999px; padding: 4px 12px; font-size: 12px; color: var(--text-muted); cursor: pointer; }
  .cc-ins button:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
  .cright { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .csend { flex: none; width: 34px; height: 34px; border-radius: 10px; border: none; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; }
  .csend:hover { background: var(--brand-text); }
  .csend:disabled { background: #CFC8DC; color: #F7F5FA; cursor: not-allowed; opacity: 1; }
  .cc-mats { display: flex; flex-wrap: wrap; gap: 8px; }
  .cc-mat { display: flex; gap: 8px; align-items: flex-start; background: #FBFAF7; border: 1px solid #E7E2D8; border-radius: 10px; padding: 8px 10px; max-width: 340px; }
  .cc-mat .t { flex: none; font-size: 11px; font-weight: 600; color: #fff; border-radius: 6px 6px 6px 2px; padding: 2px 8px; margin-top: 1px; }
  .cc-mat p { flex: 1; min-width: 0; font-size: 12px; color: #6B6455; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cc-mat .x { margin-left: auto; border: none; background: none; color: #B9B2A6; cursor: pointer; font-size: 12px; padding: 2px; }
  .mic { border: none; background: none; cursor: pointer; color: var(--text-muted); display: flex; padding: 5px; border-radius: 6px; }
  .mic:hover { color: var(--text); }
  .mic.rec { color: #D64545; animation: mpulse 1s infinite; }
  @keyframes mpulse { 50% { opacity: .35; } }
  .btn:disabled { opacity: .6; cursor: default; }
  /* ---- 插入素材面板 ---- */
  .insbody { display: flex; gap: 14px; height: 400px; margin-bottom: 14px; }
  .inscats { flex: none; width: 122px; display: flex; flex-direction: column; gap: 4px; }
  .inscat { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: none; background: none; border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--text-muted); text-align: left; }
  .inscat:hover { background: var(--surface-muted); color: var(--text); }
  .inscat.on { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
  .inscat .n { font-size: 11px; color: var(--text-muted); background: var(--surface-muted); border-radius: 999px; padding: 1px 8px; }
  .inscat.on .n { background: #fff; color: var(--brand-text); }
  .insright { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
  .inssearch { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
  .inssearch input { flex: 1; border: none; outline: none; font-size: 13px; background: none; color: var(--text); }
  .inslist { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #FAF9F6; }
  .insrow { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
  .insrow:hover { border-color: #CFC9C0; }
  .insrow.sel { border-color: var(--brand); background: var(--brand-soft); }
  .insrow .ck { flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #CFC9C0; background: #fff; color: #fff; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
  .insrow.sel .ck { background: var(--brand); border-color: var(--brand); }
  .insrow p { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.7; color: #3B3730; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .insrow .up { flex: none; font-size: 11px; color: var(--text-muted); margin-top: 3px; }
  .insempty { text-align: center; color: var(--text-muted); font-size: 12.5px; padding: 40px 0; }
  #insSelInfo { margin-right: auto; font-size: 12.5px; color: var(--text-muted); }
  #insSelInfo b { color: var(--brand-text); }
  .tpcard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
  .tphead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
  .tpno { width: 22px; height: 22px; border-radius: 50%; background: #1A1D21; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
  .tpskill { font-size: 11px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; }
  .tpver { font-size: 11px; color: var(--text-muted); }
  .tpstate { margin-left: auto; font-size: 11px; color: #3E9B6C; font-weight: 600; }
  .tptitle { font-size: 15px; font-weight: 700; line-height: 1.6; margin-bottom: 6px; }
  .tpangle { font-size: 12.5px; color: #6B6455; line-height: 1.7; margin-bottom: 8px; }
  .tpol { background: #F7F6F2; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: #3B3730; }
  .tpol b { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
  .tpol ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; line-height: 1.6; }
  .tpacts { display: flex; gap: 8px; margin-top: 12px; }
  .tpacts .btn { padding: 6px 14px; font-size: 12.5px; }
  .picklist { max-height: 380px; overflow: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .pickrow { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
  .pickrow:hover { border-color: var(--brand); }
  .pickrow p { font-size: 12.5px; line-height: 1.7; color: #3B3730; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pickrow .up { font-size: 11px; color: var(--text-muted); }
  .dskill { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
  .dskill .sk { color: var(--brand); font-weight: 600; }
  .dskill select { border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; font-size: 12px; background: var(--surface); }
  .drafttxt { max-height: 46vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; line-height: 2; color: #3B3730; white-space: pre-line; background: #FBFAF7; margin-bottom: 12px; }
  .topic-expand-list { display: grid; gap: 10px; max-height: 58vh; overflow-y: auto; padding-right: 4px; margin: 14px 0; }
  .topic-expand-card { border: 1px solid var(--border); border-radius: 8px; padding: 13px 14px; background: var(--surface); }
  .topic-expand-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: #237269; font-size: 11px; }
  .topic-expand-head span { padding: 2px 7px; border-radius: 999px; background: #EEF8F6; }
  .topic-expand-head b { margin-left: auto; color: #2E7D32; font-weight: 600; }
  .topic-expand-card h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.55; color: var(--text); }
  .topic-expand-card p { margin: 0 0 8px; color: #4B5563; font-size: 12.5px; line-height: 1.65; }
  .topic-expand-card ol { margin: 8px 0 0 20px; color: #4B5563; font-size: 12px; line-height: 1.65; }
  .topic-expand-meta { padding: 8px 10px; border-left: 3px solid #B8D9D4; background: #F7FAF9; color: #606A68; font-size: 12px; line-height: 1.65; }
  .topic-expand-meta b { margin-right: 5px; color: #394744; font-weight: 600; }
  .topic-expand-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
  .dscript { max-height: 56vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; background: #FBFAF7; margin-bottom: 12px; }
  .dscript p { margin: 0 0 14px; font-size: 15px; line-height: 1.9; color: #374151; letter-spacing: .01em; }
  .dscript p:last-child { margin-bottom: 0; }
  .dscript p.lead { background: var(--brand-soft); border-left: 3px solid var(--brand); padding: 12px 14px; border-radius: 0 8px 8px 0; }
  .dscript p.end { font-weight: 500; color: var(--text); }
  .dscript .chap { margin: 20px 0 10px; }
  .dscript .chap:first-child { margin-top: 0; }
  .dmark { background: linear-gradient(transparent 62%, #FFE9A8 62%); font-weight: 600; color: var(--text); }
  .dgold { display: flex; gap: 10px; background: #FBF6E3; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; line-height: 1.9; color: var(--text); }
  .dgold .dgl { flex: none; font-size: 12px; font-weight: 700; color: #8A6D1F; background: #F5E7B8; border-radius: 6px; padding: 2px 8px; height: fit-content; margin-top: 5px; letter-spacing: 2px; }
  #modal.wide { width: min(1160px, calc(100vw - 64px)); max-height: 92vh; display: flex; flex-direction: column; }
  #modal.wide.editmode { height: 92vh; }
  #modal.wide .dscript { max-height: none; flex: 1; min-height: 240px; }
  #modal.wide .dedit { flex: 1; min-height: 0; width: 100%; box-sizing: border-box; border: 0; border-radius: 0; padding: 18px 20px; font-size: 14.5px; line-height: 2; font-family: inherit; resize: none; outline: none; background: #FFFEFC; color: var(--text); margin: 0; white-space: pre-wrap; }
  #modal.wide .dedit:focus { box-shadow: inset 0 0 0 2px rgba(124,92,214,.16); }
  #modal.wide .dedit.tool { border-radius: 0 0 9px 9px; }
  #modal.wide .mfoot { margin-top: auto; }
  .draft-editor-meta { display: flex; align-items: center; gap: 9px; min-height: 34px; margin-bottom: 10px; }
  .draft-editor-meta label { color: var(--text-muted); font-size: 12px; font-weight: 600; }
  .draft-editor-meta .lvlsel { margin: 0; padding: 5px 9px; }
  .draft-editor-meta > span { margin-left: auto; color: var(--text-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
  .dtool { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 9px; padding: 7px 9px; background: #F7F5F2; box-shadow: 0 1px 0 rgba(255,255,255,.85) inset; }
  .dtool-group, .dtool-colors { display: inline-flex; align-items: center; gap: 3px; position: relative; }
  .dtool button { width: 30px; height: 30px; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 0; font-size: 13px; cursor: pointer; color: #3F3A34; display: inline-flex; align-items: center; justify-content: center; transition: background .14s, border-color .14s, color .14s, transform .14s; }
  .dtool button:hover { background: #fff; border-color: #D8D2CA; color: var(--brand-text); transform: translateY(-1px); }
  .dtool button.on { background: #fff; border-color: #C9B8F0; color: #5B3DB8; box-shadow: inset 0 0 0 1px rgba(124,92,214,.18); }
  .dtool button:focus-visible, .dtool select:focus-visible, .dcolor-custom:focus-visible { outline: 2px solid rgba(124,92,214,.35); outline-offset: 1px; }
  .dtool .sep { width: 1px; height: 21px; background: #D8D2CA; margin: 0 3px; }
  .dtool .cdot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); box-shadow: 0 0 0 2px #fff; }
  .dtool-select { height: 30px; display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 11px; }
  .dtool-select select { height: 28px; border: 1px solid #D8D2CA; border-radius: 6px; background: #fff; color: var(--text); padding: 0 24px 0 7px; font: inherit; cursor: pointer; }
  .dhighlight { padding: 0 4px; border-radius: 2px; background: linear-gradient(transparent 45%, #FFE295 45%); font-weight: 700; }
  .dclear { font-size: 12px; font-weight: 700; letter-spacing: -.02em; text-decoration: line-through; color: #8A8178; }
  .dcolor-custom { position: relative; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; border: 1px solid transparent; background: transparent; padding: 0; }
  .dcolor-custom:hover { background: #fff; border-color: #D8D2CA; }
  .dtool-colors > input[type="color"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .dcolor-custom span { width: 17px; height: 17px; border-radius: 50%; background: conic-gradient(#D64545, #D09B36, #3E9B6C, #2E5BFF, #7C5CD6, #D64545); border: 2px solid #fff; box-shadow: 0 0 0 1px #BEB7AE; }
  .dscript .dcolor { font-weight: 600; }
  .dscript u { text-underline-offset: 2px; }
  .draft-editor-workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 12px; flex: 1; min-height: 0; margin: 10px 0 12px; }
  .draft-editor-pane { min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #FFFEFC; }
  .draft-editor-pane-head { height: 38px; flex: none; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border); background: #F7F5F2; }
  .draft-editor-pane-head b { font-size: 12px; color: #3F3A34; }
  .draft-editor-pane-head span { margin-left: auto; color: #9A938B; font-size: 10.5px; text-transform: uppercase; }
  #modal.wide .draft-editor-preview { min-height: 0; margin: 0; border: 0; border-radius: 0; padding: 18px 20px; background: #FBFAF7; }
  .draft-preview-empty { height: 100%; min-height: 180px; display: grid; place-items: center; color: #A49E96; font-size: 12.5px; }
  .draft-editor-foot { align-items: center; padding-top: 2px; }
  .draft-editor-foot > span { margin-right: auto; color: var(--text-muted); font-size: 11.5px; }
  .dbg { background: #FFE9A8; border-radius: 3px; padding: 0 3px; }
  .dnote { font-size: 12.5px; color: var(--text-muted); background: var(--surface-muted); border: 1px dashed var(--border); border-radius: 6px; padding: 1px 8px; margin: 0 2px; }
  @media (max-width: 900px) {
    #modal.wide { width: calc(100vw - 28px); max-width: none; padding: 18px; }
    #modal.wide.editmode { height: 94vh; }
    #modal.wide h2 { padding-right: 82px; }
    .draft-editor-workspace { grid-template-columns: 1fr; overflow-y: auto; }
    .draft-editor-pane { min-height: 250px; }
    .draft-editor-pane.preview { min-height: 220px; }
    .dtool { max-height: 112px; overflow-y: auto; }
    .draft-editor-foot > span { display: none; }
  }
  .tstat { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
  .tstat.new { background: #E3F1FA; color: #0B3C5D; }
  .tstat.used { background: #E3F1DF; color: #2E7D32; }
  .kb { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
  .kbcol { border-radius: 10px; padding: 12px; min-height: 220px; }
  .kbcol h4 { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
  .kbpill { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 13px; }
  .kbcol h4 .cnt { font-size: 13px; color: #8A8F95; }
  .kbcard { background: #fff; border: none; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.08); cursor: pointer; }
  .kbcard .t { font-size: 14px; font-weight: 600; line-height: 1.5; color: #1F2329; }
  .kbcard .m { font-size: 12px; color: #3B4046; margin-top: 8px; display: flex; gap: 8px; align-items: center; }
  .kbcard .m .sk { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
  .kbcard .m .lvl { height: 18px; min-width: 18px; padding: 0 6px; font-size: 11px; border-radius: 5px; text-shadow: 0 1px 1px rgba(0,0,0,.18); }
  .kblist { display: flex; flex-direction: column; max-height: 440px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
  .kblist::-webkit-scrollbar { width: 6px; }
  .kblist::-webkit-scrollbar-thumb { background: rgba(120,110,90,.28); border-radius: 3px; }
  .kblist::-webkit-scrollbar-track { background: transparent; }
  .kbadv { margin-top: 10px; width: 100%; border: 1px dashed color-mix(in srgb, var(--kc) 55%, #fff); background: transparent; border-radius: 999px; padding: 5px 0; font-size: 12px; font-weight: 600; cursor: pointer; text-align: center; color: #8A8F95; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .15s; }
  .kbadv i { width: 7px; height: 7px; border-radius: 50%; background: var(--kc); opacity: .7; flex: none; }
  .kbcard:hover .kbadv { background: var(--kbg); border-style: solid; border-color: var(--kc); color: #3B4046; }
  .kbcard:hover .kbadv i { opacity: 1; box-shadow: 0 0 6px color-mix(in srgb, var(--kc) 60%, transparent); }
  .kbadv:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.10); }
  .ctabsearch { margin-left: 12px; width: 200px; box-sizing: border-box; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 13px; outline-color: var(--brand); color: var(--text); }
  /* ---- 内容重要程度 S/A/B/C ---- */
  .lvl { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; font-family: var(--font-serif); font-size: 13px; font-weight: 800; font-style: italic; color: #fff; border-radius: 7px; flex: none; vertical-align: middle; text-shadow: 0 1px 2px rgba(0,0,0,.22); cursor: default; }
  .lvl::after { content: attr(data-lbl); position: absolute; left: 50%; top: calc(100% + 7px); transform: translate(-50%, -3px); background: rgba(32,30,28,.92); color: #fff; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 11px; font-style: normal; font-weight: 500; letter-spacing: .5px; line-height: 1; padding: 5px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .15s; z-index: 40; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
  .lvl:hover::after { opacity: 1; transform: translate(-50%, 0); }
  .lvl.S { background: linear-gradient(135deg, #F0653A, #E3574E); box-shadow: 0 1px 6px rgba(227,87,78,.4); }
  .lvl.A { background: #DE7430; }
  .lvl.B { background: #3E9B6C; }
  .lvl.C { background: #4A9CC9; }
  .lvlbar { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; }
  .lvlall { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: var(--text-muted); cursor: pointer; transition: all .12s; }
  .lvlall:hover { color: var(--text); background: #F8F6FC; }
  .lvlall.on { border-color: var(--brand); color: var(--brand-text); background: var(--brand-soft); font-weight: 600; }
  .lvfb { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 800; font-style: italic; color: var(--text-muted); cursor: pointer; transition: all .12s; display: inline-flex; align-items: center; justify-content: center; }
  .lvfb:hover { transform: translateY(-1px); color: var(--text); }
  .lvfb:active { transform: scale(.92); }
  .lvfb.on { color: #fff; background: var(--lc); border-color: transparent; box-shadow: 0 2px 8px color-mix(in srgb, var(--lc) 45%, transparent); }
  .lvlsel { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 13px; background: var(--surface); color: var(--text); outline-color: var(--brand); margin-bottom: 12px; }
  .kbdone { margin-top: 8px; font-size: 12px; color: #4CAF50; }
  .kbempty { text-align: center; color: #C9C3B6; font-size: 12px; padding: 30px 0; }
  @media (max-width: 1280px) {
    .cc-workflow-bar { flex-wrap: wrap; gap: 2px 8px; }
    .cc-workflow-tabs { flex-basis: 100%; }
    .cc-workflow-tools { flex: 1 1 100%; justify-content: space-between; padding: 0 4px 2px; }
    #ccStorm { height: calc(100dvh - 124px); }
  }
  @media (max-width: 1080px) {
    .kb { grid-template-columns: 1fr; }
    .insbody { flex-direction: column; height: auto; }
    .inscats { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .inslist { max-height: 260px; }
    #ccStorm { grid-template-columns: 1fr; height: auto; min-height: 0; }
    .storm-main { min-height: min(680px, calc(100dvh - 140px)); }
    .spanel { min-height: 260px; height: auto; }
    .slist { max-height: 320px; }
    .cc-workflow-tools { flex-wrap: wrap; }
  }
  @media (max-width: 760px) {
    #view-create { padding-right: 14px; padding-left: 14px; }
    .cc-workflow-tools { align-items: flex-start; flex-wrap: wrap; gap: 4px 8px; }
    .chat-head { align-items: flex-start; flex-direction: column; }
    .ch-r { width: 100%; }
  }
  .soon { text-align: center; padding: 120px 20px; color: var(--text-muted); }
  .soon-ico { font-size: 28px; margin-bottom: 12px; color: var(--brand); }
  .soon .micro { display: block; margin-bottom: 8px; }
  .soon h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: 1px; }
  .soon p { font-size: 13px; max-width: 420px; margin: 0 auto; line-height: 1.8; }

  /* ============ 素材收录（mi-）· 融合自素材采掘台原型 ============ */
  #view-intake {
    padding: 16px 28px 40px;
    --mi-col: 1080px;
    --mi-accent: var(--brand);
    --mi-accent-hover: #6A48C9;
    --mi-accent-soft: var(--brand-soft);
    --mi-accent-ink: var(--brand-text);
    --mi-line: var(--border);
    --mi-line-strong: #DAD5CC;
    --mi-surface: var(--surface);
    --mi-surface2: var(--surface-muted);
    --mi-sub: #6E6A64;
    --mi-faint: #9B968E;
    --mi-ok: #3F7D4E;   --mi-ok-soft: #E9F3EA;
    --mi-warn: #B45309; --mi-warn-soft: #FDF3E3;
    --mi-danger: #B3372F; --mi-danger-soft: #FBEAE8;
    --mi-r-md: 10px; --mi-r-lg: 14px;
    --mi-sh-sm: 0 1px 2px rgba(38,41,46,.05);
    --mi-sh-md: 0 4px 16px rgba(38,41,46,.08);
  }
  #view-intake ::selection { background: rgba(124,92,214,.18); }
  @keyframes miStepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes miSpin { to { transform: rotate(360deg); } }

  /* 模块页签（下划线式） + 当前素材胶囊 */
  .mitabs { display: flex; align-items: center; gap: 22px; max-width: var(--mi-col); margin: 2px 0 14px; border-bottom: 1px solid var(--mi-line); }
  .mitab { position: relative; border: none; background: none; padding: 8px 2px 10px; font-size: 13.5px; font-weight: 600; color: var(--mi-faint); cursor: pointer; transition: color .12s; }
  .mitab:hover { color: var(--mi-sub); }
  .mitab.on { color: var(--mi-accent-ink); }
  .mitab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--mi-accent); }
  #drNav .mitab { padding: 9px 14px; border-radius: 10px 10px 0 0; }
  #drNav .mitab.on { color: var(--mi-accent-ink); background: var(--mi-accent-soft); }
  #drNav .mitab.on::after { height: 3px; }
  .mi-tab-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .mi-material-chip { position: relative; display: none; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid var(--mi-line); border-radius: 999px; background: var(--mi-surface); font-size: 12.5px; color: var(--mi-sub); box-shadow: var(--mi-sh-sm); cursor: pointer; user-select: none; max-width: min(440px, 56vw); z-index: 40; }
  .mi-material-chip:hover { border-color: var(--mi-accent); }
  .mi-material-chip[aria-expanded="true"] { border-color: var(--mi-accent); background: #F0EBFB; }
  .mi-material-chip svg { color: var(--mi-accent); flex: none; }
  .mi-material-chip b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
  .mi-material-chip em { font-style: normal; color: var(--mi-faint); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mi-chip-count { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--mi-accent); color: #fff; font-size: 10.5px; font-weight: 700; font-family: var(--font-mono); display: inline-grid; place-items: center; line-height: 1; }
  .mi-chip-caret { display: inline-flex; margin-left: 2px; color: var(--mi-faint); flex: none; transition: transform .15s ease; }
  .mi-material-chip[aria-expanded="true"] .mi-chip-caret { transform: rotate(180deg); color: var(--mi-accent); }
  /* 仅拦截点击；不透明的是下拉面板本身 */
  .mi-chip-scrim { position: fixed; inset: 0; z-index: 9998; background: transparent; }
  .mi-chip-scrim.hidden { display: none; }
  .mi-chip-menu { position: fixed; z-index: 9999; max-height: min(420px, 56vh); overflow: auto; padding: 0; border: 1px solid #E9E6E2; border-radius: 14px; background: #FFFFFF; opacity: 1; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 16px 48px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .06); }
  .mi-chip-menu.hidden { display: none; }
  .mi-chip-menu-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 8px; border-bottom: 1px solid #E9E6E2; position: sticky; top: 0; background: #FFFFFF; z-index: 1; }
  .mi-chip-menu-hd b { font-size: 12.5px; font-weight: 700; color: var(--text); }
  .mi-chip-menu-hd span { font-size: 11px; color: var(--mi-faint); font-family: var(--font-mono); }
  .mi-chip-menu-list { padding: 6px; display: flex; flex-direction: column; gap: 2px; background: #FFFFFF; }
  .mi-qrow-clickable { cursor: pointer; }
  .mi-qrow-clickable:hover { border-color: var(--mi-accent); }
  .mi-qstate.mi-q-resume { border: none; background: transparent; cursor: pointer; font: inherit; padding: 0; text-align: right; }
  .mi-qstate.mi-q-resume:hover { text-decoration: underline; }
  .mi-chip-opt { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: #FFFFFF; text-align: left; cursor: pointer; color: var(--mi-sub); }
  .mi-chip-opt:hover { background: #F1EFEA; }
  .mi-chip-opt.on { background: #F0EBFB; border-color: #D4C6F0; color: var(--mi-accent-ink); }
  .mi-chip-opt-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #F1EFEA; color: var(--mi-accent); flex: none; }
  .mi-chip-opt.on .mi-chip-opt-ic { background: #FFFFFF; }
  .mi-chip-opt-ic svg { width: 14px; height: 14px; }
  .mi-chip-opt-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .mi-chip-opt-main b { font-size: 13px; font-weight: 600; color: var(--text); max-width: 100%; overflow-wrap: anywhere; }
  .mi-chip-opt.on .mi-chip-opt-main b { color: var(--mi-accent-ink); }
  .mi-chip-opt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--mi-faint); }
  .mi-chip-opt-meta .mi-chip-tag { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 999px; background: #F1EFEA; color: var(--mi-sub); font-family: var(--font-mono); font-size: 10.5px; }
  .mi-chip-opt.on .mi-chip-opt-meta .mi-chip-tag { background: #FFFFFF; }
  .mi-chip-opt-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
  .mi-chip-step { font-size: 10.5px; font-weight: 600; color: var(--mi-sub); white-space: nowrap; font-family: var(--font-mono); }
  .mi-chip-opt.on .mi-chip-step { color: var(--mi-accent-ink); }
  .mi-chip-now { font-size: 10px; font-weight: 700; color: var(--mi-accent); letter-spacing: .02em; }
  .mi-chip-empty { padding: 18px 16px; text-align: center; font-size: 12.5px; color: var(--mi-faint); }

  /* 横向步骤条 · 流程导航带 */
  .mi-steps { display: flex; align-items: center; max-width: var(--mi-col); background: var(--mi-surface); border: 1px solid var(--mi-line); border-radius: 12px; padding: 8px 14px; margin: 0 0 24px; overflow-x: auto; box-shadow: var(--mi-sh-sm); }
  .mi-snode { display: flex; align-items: center; gap: 7px; border: none; background: none; padding: 6px 10px; border-radius: 999px; cursor: pointer; color: var(--mi-faint); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: all .12s; }
  .mi-snode .mi-snum { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--mi-surface2); border: 1px solid var(--mi-line); font-size: 11px; font-family: var(--font-mono); transition: inherit; flex: none; }
  .mi-snode:hover { color: var(--mi-sub); background: var(--mi-surface2); }
  .mi-snode.current { color: var(--mi-accent-ink); background: var(--mi-accent-soft); }
  .mi-snode.current .mi-snum { background: var(--mi-accent); border-color: var(--mi-accent); color: #fff; }
  .mi-snode.done { color: var(--mi-sub); }
  .mi-snode.done .mi-snum { background: var(--mi-ok-soft); border-color: transparent; color: var(--mi-ok); }
  .mi-snode.locked { opacity: .45; cursor: not-allowed; }
  .mi-snode.locked:hover { color: var(--mi-faint); background: none; }
  .mi-snode.skipped { opacity: .45; cursor: default; }
  .mi-snode.skipped:hover { color: var(--mi-faint); background: none; }
  .mi-snode.preview { outline: 1px dashed transparent; }
  .mi-snode.preview:hover { outline-color: var(--mi-line-strong); }
  .mi-preview-tip { max-width: var(--mi-col); margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid #F0D9A8; background: #FFF8EB; color: #8A6A2A; font-size: 12.5px; line-height: 1.55; }
  .mi-preview-tip.hidden { display: none; }
  .mi-node-filebar { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
  .mi-node-filebar.hidden { display: none; }
  .mi-node-filebar-k { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .mi-node-filebar-k b { font-size: 12.5px; font-weight: 700; color: var(--text); }
  .mi-node-filebar-k span { font-size: 12px; color: var(--mi-faint); }
  .mi-node-filebtn { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--mi-line); border-radius: 12px; background: var(--mi-surface); cursor: pointer; text-align: left; box-shadow: var(--mi-sh-sm); }
  .mi-node-filebtn:hover, .mi-node-filebtn[aria-expanded="true"] { border-color: var(--mi-accent); }
  .mi-node-filebtn b { min-width: 0; overflow-wrap: anywhere; font-size: 13.5px; font-weight: 600; color: var(--text); }
  .mi-node-filebtn span { margin-left: auto; flex: none; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--mi-sub); }
  .mi-node-filebtn svg { flex: none; color: var(--mi-faint); transition: transform .15s ease; }
  .mi-node-filebtn[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--mi-accent); }
  .mi-node-filemenu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: min(360px, 48vh); overflow: auto; border: 1px solid #E9E6E2; border-radius: 14px; background: #fff; box-shadow: 0 16px 48px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .06); }
  .mi-node-filemenu.hidden { display: none; }
  .mi-preview-mode .mi-step .mi-foot .mi-btn-primary {
    background: #E5E2DF;
    border-color: #D8D3CE;
    color: #89847F;
    opacity: 1;
    cursor: not-allowed;
    pointer-events: none;
  }
  .mi-sline { flex: none; width: 16px; height: 1px; background: var(--mi-line-strong); }

  /* 布局骨架 · 与页头/页签/步骤条同列左对齐 */
  .mi-wrap { max-width: var(--mi-col); margin: 0; padding-bottom: 60px; animation: miStepIn .24s ease both; }
  .mi-lib-wrap { max-width: 100%; }

  /* 知识卡片视图 */
  .mitab .cnt { margin-left: 6px; font-size: 11px; background: #EEECE6; color: #8A8578; border-radius: 999px; padding: 1px 7px; }
  .mitab.on .cnt { background: var(--mi-accent-soft); color: var(--mi-accent-ink); }
  .mi-cards-wrap { max-width: 100%; }
  .mi-cards-wrap .afpanel { margin-bottom: 10px; }
  .mi-cards-wrap .acards { padding-top: 30px; }
  .mi-tag-edit-toggle { margin-left: auto; border: 1px solid var(--mi-line); border-radius: 999px; padding: 6px 13px; background: var(--mi-surface); color: var(--mi-sub); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease; }
  .mi-tag-edit-toggle:hover { border-color: var(--mi-accent); color: var(--mi-accent-ink); background: var(--mi-accent-soft); }
  .mi-tag-edit-toggle.on { border-color: var(--mi-accent); color: var(--mi-accent-ink); background: var(--mi-accent-soft); }
  .mi-cbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .mi-cbar .mi-lsearch { flex: 0 1 300px; min-width: 200px; }
  .mi-cconf { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 280px; flex-wrap: wrap; }
  .astat { position: absolute; top: -27px; right: 16px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; border-radius: 8px 8px 0 0; padding: 5px 14px 7px; letter-spacing: 1px; background: #EFECE5; color: #8A8578; }
  .astat.in { background: #3E9B6C; color: #fff; }
  .mi-head { margin-bottom: 24px; }
  .mi-head .mi-kicker { font-size: 12px; letter-spacing: 2px; color: var(--mi-accent); font-weight: 600; }
  .mi-head h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 700; margin: 6px 0; letter-spacing: .5px; }
  .mi-head p { color: var(--mi-sub); font-size: 13.5px; max-width: 640px; line-height: 1.7; }
  .mi-card { background: var(--mi-surface); border: 1px solid var(--mi-line); border-radius: var(--mi-r-lg); box-shadow: var(--mi-sh-sm); }
  .mi-card + .mi-card { margin-top: 16px; }
  .mi-card-pad { padding: 20px 24px; }
  .mi-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
  .mi-step { display: none; }
  .mi-step.active { display: block; animation: miStepIn .28s ease both; }
  .mi-future-node-note { display: none; margin: 18px 0; padding: 16px 18px; border: 1px dashed var(--mi-line); border-radius: 10px; color: var(--mi-muted); background: var(--mi-surface); line-height: 1.6; }
  .mi-future-node-preview .mi-future-node-note { display: block; }
  .mi-future-node-preview > :not(.mi-head):not(.mi-future-node-note) { display: none !important; }
  .mi-wizback { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; font-size: 12.5px; color: var(--mi-faint); margin-bottom: 16px; transition: color .12s ease; }
  .mi-wizback:hover { color: var(--mi-accent); }

  /* 按钮 */
  .mi-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: var(--mi-r-md); font-size: 14px; font-weight: 600; border: 1px solid transparent; transition: background .12s ease, transform .08s ease, border-color .12s ease; }
  .mi-btn:active { transform: scale(.98); }
  .mi-btn-primary { background: var(--mi-accent); color: #fff; }
  .mi-btn-primary:hover { background: var(--mi-accent-hover); }
  .mi-btn-ghost { background: transparent; color: var(--mi-sub); border-color: var(--mi-line-strong); }
  .mi-btn-ghost:hover { background: var(--mi-surface2); color: var(--text); }
  .mi-btn-text { background: none; border: none; color: var(--mi-accent); height: auto; padding: 0; font-weight: 500; }
  .mi-btn-text:hover { color: var(--mi-accent-hover); text-decoration: underline; }
  .mi-btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
  .mi-btn[disabled] { opacity: .45; cursor: not-allowed; }

  /* chips & tags */
  .mi-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13px; background: var(--mi-surface2); border: 1px solid var(--mi-line); color: var(--mi-sub); transition: all .12s ease; }
  button.mi-chip:hover { border-color: var(--mi-accent); color: var(--mi-accent-ink); }
  button.mi-chip.on { background: var(--mi-accent-soft); border-color: var(--mi-accent); color: var(--mi-accent-ink); font-weight: 600; }
  .mi-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
  .mi-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: var(--mi-surface2); color: var(--mi-sub); border: 1px solid var(--mi-line); }
  .mi-tag.accent { background: var(--mi-accent-soft); color: var(--mi-accent-ink); border-color: transparent; }
  .mi-tag.ok { background: var(--mi-ok-soft); color: var(--mi-ok); border-color: transparent; }
  .mi-tag.warn { background: var(--mi-warn-soft); color: var(--mi-warn); border-color: transparent; }
  .mi-cat { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
  .mi-cat-案例 { background: #EEF2FF; color: #4353B8; }
  .mi-cat-观点 { background: #FDF3E3; color: #B45309; }
  .mi-cat-经验 { background: #E9F3EA; color: #3F7D4E; }
  .mi-cat-灵感 { background: #FDEEF3; color: #B8447A; }
  .mi-cat-选题 { background: #E6F2F0; color: #0F766E; }

  /* S1 采集 */
  .mi-file { display: flex; align-items: center; gap: 14px; }
  .mi-fic { width: 44px; height: 44px; border-radius: var(--mi-r-md); background: var(--mi-accent-soft); color: var(--mi-accent); display: grid; place-items: center; flex: none; }
  .mi-file b { font-size: 15px; display: block; }
  .mi-file span { font-size: 12px; color: var(--mi-faint); font-family: var(--font-mono); }
  .mi-rq { font-family: var(--font-serif); font-size: 19px; font-weight: 700; margin: 22px 0 4px; }
  .mi-rhint { font-size: 12px; color: var(--mi-faint); margin-bottom: 14px; }
  .mi-rinput { width: 100%; margin-top: 14px; padding: 11px 14px; border: 1px solid var(--mi-line-strong); border-radius: var(--mi-r-md); font-family: inherit; font-size: 13.5px; background: var(--mi-surface); transition: border-color .12s ease, box-shadow .12s ease; }
  .mi-rinput:focus { outline: none; border-color: var(--mi-accent); box-shadow: 0 0 0 3px rgba(124,92,214,.12); }
  .mi-skip { margin-top: 14px; font-size: 12.5px; color: var(--mi-faint); display: flex; align-items: center; gap: 6px; }
  .mi-skip.unread { color: var(--mi-warn); }

  /* S2 提取 */
  .mi-stage { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--mi-line); }
  .mi-stage:last-of-type { border-bottom: none; }
  .mi-sdot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mi-surface2); color: var(--mi-faint); border: 1px solid var(--mi-line); flex: none; }
  .mi-stage.running .mi-sdot { background: var(--mi-accent-soft); color: var(--mi-accent); border-color: var(--mi-accent); }
  .mi-stage.running .mi-sdot svg { animation: miSpin 1.1s linear infinite; }
  .mi-stage.done .mi-sdot { background: var(--mi-ok-soft); color: var(--mi-ok); border-color: transparent; }
  .mi-stage b { font-size: 13.5px; display: block; }
  .mi-stage span { font-size: 12px; color: var(--mi-faint); }
  .mi-stage .mi-sstate { margin-left: auto; font-size: 12px; color: var(--mi-faint); font-family: var(--font-mono); }
  .mi-pbar { height: 6px; border-radius: 999px; background: var(--mi-surface2); overflow: hidden; margin: 16px 0 4px; }
  .mi-pbar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--mi-accent), #A78BFA); transition: width .7s ease; }
  .mi-anchors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
  .mi-acell { background: var(--mi-surface); border: 1px solid var(--mi-line); border-radius: var(--mi-r-md); padding: 14px 16px; text-align: left; }
  .mi-acell b { font-family: var(--font-serif); font-size: 22px; display: block; line-height: 1.3; }
  .mi-acell span { font-size: 12px; color: var(--mi-sub); }
  .mi-segbox { margin-top: 18px; border-top: 1px dashed var(--mi-line); padding-top: 16px; }
  .mi-seghead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .mi-seghead b { font-size: 14px; }
  .mi-seghead span, .mi-segfoot { font-size: 12px; color: var(--mi-faint); }
  .mi-seg { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--mi-line); border-radius: var(--mi-r-md); margin-top: 8px; background: var(--mi-surface); cursor: pointer; }
  .mi-seg.on { border-color: var(--mi-accent); background: var(--mi-accent-soft); }
  .mi-seg.mined { opacity: .55; cursor: not-allowed; }
  .mi-seg input { accent-color: var(--mi-accent); width: 15px; height: 15px; flex: none; }
  .mi-seg-t { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
  .mi-seg-meta { font-size: 12px; color: var(--mi-faint); flex: none; }
  .mi-seg-state { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--mi-ok-soft); color: var(--mi-ok); flex: none; }
  .mi-segfoot { margin-top: 12px; }
  .mi-extracted-text { margin-top: 18px; border-top: 1px dashed var(--mi-line); padding-top: 16px; }
  .mi-extracted-text-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .mi-extracted-text-head b { font-size: 14px; }
  .mi-extracted-text-head span { color: var(--mi-faint); font-size: 12px; }
  .mi-extracted-text-body { max-height: 540px; overflow-y: auto; padding: 20px 24px; border: 1px solid var(--mi-line); border-radius: var(--mi-r-md); background: var(--mi-surface); }
  .mi-extracted-text-body h4 { font-family: var(--font-serif); font-size: 16px; margin: 0 0 12px; }
  .mi-extracted-text-body p { color: var(--mi-sub); font-size: 14px; line-height: 1.9; white-space: pre-wrap; margin: 0 0 14px; }
  .mi-reader-error { color: var(--mi-sub); font-size: 13px; line-height: 1.6; }
  .mi-reader-error button { margin-left: 8px; }

  /* S3 采掘菜单 */
  .mi-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .mi-stat { background: var(--mi-surface); border: 1px solid var(--mi-line); border-radius: var(--mi-r-lg); padding: 18px 16px; text-align: center; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
  .mi-stat:hover { transform: translateY(-3px); box-shadow: var(--mi-sh-md); border-color: var(--mi-accent); }
  .mi-sic { width: 36px; height: 36px; margin: 0 auto 10px; border-radius: 10px; display: grid; place-items: center; }
  .mi-stat b { font-family: var(--font-serif); font-size: 30px; line-height: 1.1; display: block; }
  .mi-stat span { font-size: 12.5px; color: var(--mi-sub); }
  .mi-stat .mi-go { font-size: 11px; color: var(--mi-faint); margin-top: 6px; display: block; }
  .mi-stat:hover .mi-go { color: var(--mi-accent); }
  .mi-hls { display: grid; gap: 12px; margin-top: 16px; }
  .mi-hl { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
  .mi-hl .mi-no { font-family: var(--font-serif); font-size: 20px; color: var(--mi-line-strong); font-weight: 700; line-height: 1.2; }
  .mi-hl b { font-size: 14.5px; display: block; margin: 4px 0 2px; }
  .mi-hl p { font-size: 12.5px; color: var(--mi-sub); }
  .mi-all-results summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--text); }
  .mi-all-results summary span { color: var(--mi-faint); font-weight: 400; margin-left: 6px; }
  #miAllResultsList { margin-top: 12px; }
  .mi-all-result { padding: 11px 0; border-top: 1px solid var(--mi-line); }
  .mi-all-result b { display: block; color: var(--mi-accent); font-size: 12px; margin-bottom: 4px; }
  .mi-all-result p { color: var(--mi-sub); font-size: 13px; line-height: 1.75; white-space: pre-wrap; }

  /* S4 双车道 */
  .mi-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .mi-lane { border-radius: var(--mi-r-lg); border: 1px solid var(--mi-line); background: var(--mi-surface); overflow: hidden; }
  .mi-lane-head { padding: 14px 18px; border-bottom: 1px solid var(--mi-line); display: flex; align-items: center; gap: 8px; }
  .mi-lane-head b { font-size: 14px; }
  .mi-lane-head span { font-size: 11.5px; color: var(--mi-faint); }
  .mi-lane.marked .mi-lane-head { background: var(--mi-accent-soft); }
  .mi-lane.marked .mi-lane-head b { color: var(--mi-accent-ink); }
  .mi-lane-body { padding: 8px; max-height: 480px; overflow-y: auto; }
  .mi-mine { padding: 12px 14px; border-radius: var(--mi-r-md); transition: background .12s ease; }
  .mi-mine:hover { background: var(--mi-surface2); }
  .mi-mine p { font-size: 13px; margin: 7px 0 9px; }
  .mi-anchor { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11.5px; color: var(--mi-sub); background: var(--mi-surface2); border: 1px solid var(--mi-line); padding: 3px 9px; border-radius: 999px; transition: all .12s ease; cursor: pointer; }
  button.mi-anchor:hover { border-color: var(--mi-accent); color: var(--mi-accent-ink); background: var(--mi-accent-soft); }
  .mi-rquote { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--mi-accent); background: var(--mi-accent-soft); border-radius: 0 var(--mi-r-md) var(--mi-r-md) 0; font-size: 13px; color: var(--mi-accent-ink); }
  .mi-lane-empty { padding: 28px 16px; text-align: center; color: var(--mi-faint); font-size: 12.5px; }

  /* S5 校验疑点 */
  .mi-suspect { padding: 16px 20px; }
  .mi-s-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .mi-s-type { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
  .mi-s-type.专名 { background: var(--mi-warn-soft); color: var(--mi-warn); }
  .mi-s-type.数字 { background: #EEF2FF; color: #4353B8; }
  .mi-s-type.低置信 { background: var(--mi-danger-soft); color: var(--mi-danger); }
  .mi-s-conf { font-size: 11.5px; color: var(--mi-faint); font-family: var(--font-mono); display: inline-flex; align-items: center; gap: 6px; }
  .mi-s-conf i { width: 54px; height: 4px; border-radius: 99px; background: var(--mi-surface2); display: inline-block; overflow: hidden; }
  .mi-s-conf i b { display: block; height: 100%; background: var(--mi-warn); }
  .mi-s-ctx { margin: 10px 0 12px; font-size: 13px; color: var(--mi-sub); }
  .mi-s-ctx mark { background: var(--mi-warn-soft); color: var(--mi-warn); font-weight: 700; padding: 1px 5px; border-radius: 4px; text-decoration: line-through; text-decoration-thickness: 1.5px; }
  .mi-s-ctx mark.keep { text-decoration: none; background: var(--mi-ok-soft); color: var(--mi-ok); }
  .mi-s-acts { display: flex; gap: 8px; align-items: center; }
  .mi-s-fix { flex: 1; height: 32px; padding: 0 12px; border: 1px solid var(--mi-line-strong); border-radius: 8px; font-family: inherit; font-size: 13px; }
  .mi-s-fix:focus { outline: none; border-color: var(--mi-accent); }
  .mi-suspect.resolved { opacity: .72; }
  .mi-suspect.resolved .mi-s-acts { display: none; }
  .mi-s-verdict { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
  .mi-s-verdict.ok { color: var(--mi-ok); }
  .mi-s-verdict.fix { color: var(--mi-accent); }
  .mi-vprog { font-size: 13px; color: var(--mi-sub); }
  .mi-vprog b { color: var(--mi-accent); font-family: var(--font-serif); font-size: 16px; }
  .mi-verify-loading { display: flex; align-items: center; gap: 14px; padding: 22px 24px; color: var(--mi-sub); font-size: 13px; }
  .mi-verify-loading strong, .mi-verify-loading span { display: block; }
  .mi-verify-loading strong { color: var(--mi-text); font-size: 14px; margin-bottom: 4px; }
  .mi-verify-spinner { width: 22px; height: 22px; border: 2px solid var(--mi-accent-soft); border-top-color: var(--mi-accent); border-radius: 50%; animation: miVerifySpin .75s linear infinite; flex: 0 0 auto; }
  @keyframes miVerifySpin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .mi-verify-spinner { animation: none; } }

  /* S6 阅读工作台 */
  .mi-wb { display: grid; grid-template-columns: 236px 1fr; gap: 16px; align-items: start; }
  .mi-wb-hint { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mi-sub); background: var(--mi-accent-soft); border-radius: var(--mi-r-md); padding: 9px 14px; margin-bottom: 14px; }
  .mi-wb-hint svg { color: var(--mi-accent); flex: none; }
  .mi-outline { position: sticky; top: 24px; padding: 10px; }
  .mi-ol { width: 100%; text-align: left; border: none; background: transparent; padding: 9px 12px; border-radius: 8px; font-size: 12.5px; color: var(--mi-sub); transition: all .12s ease; cursor: pointer; }
  .mi-ol:hover { background: var(--mi-surface2); }
  .mi-ol.on { background: var(--mi-accent-soft); color: var(--mi-accent-ink); font-weight: 600; }
  .mi-ol .t { font-family: var(--font-mono); font-size: 10.5px; color: var(--mi-faint); margin-right: 6px; }
  .mi-transcript { padding: 26px 30px; max-height: 640px; overflow-y: auto; }
  .mi-ch { margin-bottom: 26px; }
  .mi-ch h4 { font-family: var(--font-serif); font-size: 16.5px; display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
  .mi-ch h4 .t { font-family: var(--font-mono); font-size: 11px; color: var(--mi-faint); font-weight: 400; }
  .mi-ch p { font-size: 14px; line-height: 2; color: #3A3E44; margin-bottom: 10px; text-align: justify; }
  .mi-ch.flash h4 { color: var(--mi-accent); }
  .mi-saved-marks { margin-top: 18px; padding: 16px 20px; border: 1px solid var(--mi-line); border-radius: var(--mi-r-md); background: var(--mi-surface); }
  .mi-saved-marks > b { display: block; font-size: 13px; margin-bottom: 10px; }
  .mi-saved-mark { padding: 10px 0; border-top: 1px solid var(--mi-line); font-size: 13px; line-height: 1.7; color: var(--mi-sub); }
  .mi-saved-mark span { color: var(--mi-accent); font-weight: 600; margin-right: 8px; }
  #miSelPop { position: absolute; z-index: 60; display: none; background: var(--mi-surface); border: 1px solid var(--mi-line-strong); border-radius: var(--mi-r-md); box-shadow: var(--mi-sh-md); padding: 10px 12px; }
  #miSelPop .mi-sp-t { font-size: 11.5px; color: var(--mi-faint); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
  #miSelPop .mi-sp-cats { display: flex; gap: 6px; }
  #miSelPop .mi-sp-cat { border: 1px solid var(--mi-line); background: var(--mi-surface2); border-radius: 999px; padding: 4px 11px; font-size: 12px; color: var(--mi-sub); transition: all .1s ease; cursor: pointer; }
  #miSelPop .mi-sp-cat:hover { border-color: var(--mi-accent); background: var(--mi-accent-soft); color: var(--mi-accent-ink); font-weight: 600; }

  /* S7 素材卡 */
  .mi-hero { padding: 24px 28px; }
  .mi-hero h3 { font-family: var(--font-serif); font-size: 21px; margin-bottom: 4px; }
  .mi-hero .mi-mid { font-family: var(--font-mono); font-size: 11.5px; color: var(--mi-faint); }
  .mi-dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
  .mi-dim { background: var(--mi-surface2); border-radius: var(--mi-r-md); padding: 10px 12px; }
  .mi-dim b { font-size: 11px; color: var(--mi-faint); letter-spacing: 1px; display: block; margin-bottom: 6px; }
  .mi-acc { overflow: hidden; }
  .mi-acc-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 15px 20px; background: none; border: none; font-size: 14px; font-weight: 600; color: var(--text); text-align: left; transition: background .12s ease; cursor: pointer; }
  .mi-acc-head:hover { background: var(--mi-surface2); }
  .mi-acc-head .mi-lvl { font-family: var(--font-mono); font-size: 11px; color: var(--mi-accent); background: var(--mi-accent-soft); padding: 2px 8px; border-radius: 999px; flex: none; }
  .mi-acc-head .mi-chev { margin-left: auto; color: var(--mi-faint); transition: transform .18s ease; }
  .mi-acc.open .mi-acc-head .mi-chev { transform: rotate(180deg); }
  .mi-acc-body { display: none; padding: 0 20px 18px 20px; font-size: 13.5px; color: var(--mi-sub); }
  .mi-acc.open .mi-acc-body { display: block; animation: miStepIn .2s ease both; }
  .mi-l3row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--mi-line); }
  .mi-l3row:last-child { border-bottom: none; }
  .mi-l3row .t { font-family: var(--font-mono); font-size: 11px; color: var(--mi-faint); flex: none; padding-top: 3px; }
  .mi-trow { padding: 8px 0; border-bottom: 1px dashed var(--mi-line); }
  .mi-trow:last-child { border-bottom: none; }
  .mi-trow b { font-size: 13px; font-weight: 600; color: var(--text); }
  .mi-trow span { font-size: 11.5px; color: var(--mi-faint); margin-left: 8px; }

  /* 上传 · 收录队列 */
  .mi-dz { border: 1.5px dashed var(--mi-line-strong); border-radius: var(--mi-r-lg); background: var(--mi-surface); padding: 42px 24px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color .14s ease, background .14s ease; }
  .mi-dz:hover, .mi-dz.over { border-color: var(--mi-accent); background: var(--mi-accent-soft); }
  .mi-dz-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--mi-accent-soft); color: var(--mi-accent); display: grid; place-items: center; margin-bottom: 4px; }
  .mi-dz b { font-size: 15px; }
  .mi-dz-link { color: var(--mi-accent); text-decoration: underline; text-underline-offset: 3px; }
  .mi-dz-sub { font-size: 12px; color: var(--mi-faint); font-family: var(--font-mono); }
  .mi-dz-note { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11.5px; color: var(--mi-warn); background: var(--mi-warn-soft); padding: 4px 12px; border-radius: 999px; }
  .mi-qhead { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
  .mi-qhead b { font-family: var(--font-serif); font-size: 17px; }
  .mi-qhead > span { font-size: 12px; color: var(--mi-faint); font-family: var(--font-mono); }
  .mi-qspacer { flex: 1; }
  .mi-qempty { padding: 26px; text-align: center; color: var(--mi-faint); font-size: 12.5px; border: 1px dashed var(--mi-line); border-radius: var(--mi-r-lg); }
  .mi-qrow { display: flex; align-items: center; gap: 14px; padding: 13px 16px; }
  .mi-qrow + .mi-qrow { margin-top: 10px; }
  .mi-qic { width: 38px; height: 38px; border-radius: var(--mi-r-md); display: grid; place-items: center; flex: none; }
  .mi-qic.t-音频 { background: var(--mi-accent-soft); color: var(--mi-accent); }
  .mi-qic.t-Word { background: #EEF2FF; color: #4353B8; }
  .mi-qic.t-PDF { background: var(--mi-danger-soft); color: var(--mi-danger); }
  .mi-qic.t-TXT { background: var(--mi-surface2); color: var(--mi-sub); }
  .mi-qmain { flex: 1; min-width: 0; }
  .mi-qmain b { font-size: 13.5px; line-height: 1.5; display: block; overflow-wrap: anywhere; }
  .mi-qmain > span { font-size: 11.5px; color: var(--mi-faint); font-family: var(--font-mono); }
  .mi-qbar { height: 4px; border-radius: 99px; background: var(--mi-surface2); margin-top: 7px; overflow: hidden; }
  .mi-qbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mi-accent), #A78BFA); transition: width .3s ease; }
  .mi-qrow.queued .mi-qbar { display: none; }
  .mi-qstate { font-size: 12px; color: var(--mi-faint); font-family: var(--font-mono); flex: none; }
  .mi-qstate.ok { color: var(--mi-ok); display: inline-flex; align-items: center; gap: 5px; font-family: inherit; font-weight: 600; }
  .mi-qstate.ing { color: var(--mi-accent); font-family: inherit; font-weight: 600; }
  .mi-qrow.done { border-color: var(--mi-accent); }
  .mi-qrow.collected { opacity: .72; }
  .mi-q-acts { display: flex; align-items: center; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
  .mi-qdone { margin-top: 14px; padding: 12px 16px; background: var(--mi-ok-soft); color: var(--mi-ok); border-radius: var(--mi-r-md); font-size: 13px; font-weight: 600; }
  @media (max-width: 720px) {
    .mi-qrow { flex-wrap: wrap; }
    .mi-qmain { flex-basis: calc(100% - 52px); }
    .mi-q-acts { width: 100%; padding-left: 52px; justify-content: flex-start; }
  }

  /* 收录清单 · 管理台 */
  .mi-lstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
  .mi-lscell { background: var(--mi-surface); border: 1px solid var(--mi-line); border-radius: var(--mi-r-lg); padding: 14px 18px; box-shadow: var(--mi-sh-sm); }
  .mi-lscell b { font-family: var(--font-serif); font-size: 24px; display: block; line-height: 1.25; }
  .mi-lscell span { font-size: 12px; color: var(--mi-sub); }
  .mi-lbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 18px; }
  .mi-lbar .mi-chip-row { flex: none; }
  .mi-lbar .mi-lsearch { flex: 0 1 300px; min-width: 200px; }
  .mi-lsearch { display: flex; align-items: center; gap: 8px; background: var(--mi-surface); border: 1px solid var(--mi-line-strong); border-radius: 999px; padding: 8px 16px; min-width: 280px; transition: border-color .12s ease, box-shadow .12s ease; }
  .mi-lsearch:focus-within { border-color: var(--mi-accent); box-shadow: 0 0 0 3px rgba(124,92,214,.12); }
  .mi-lsearch svg { color: var(--mi-faint); flex: none; }
  .mi-lsearch input { border: none; outline: none; background: transparent; font-family: inherit; font-size: 13px; flex: 1; color: var(--text); }

  .mi-lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .mi-lcard { padding: 18px 20px; display: flex; flex-direction: column; gap: 9px; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
  .mi-lcard:hover { transform: translateY(-2px); box-shadow: var(--mi-sh-md); border-color: var(--mi-line-strong); }
  .mi-lcard.failed { opacity: .78; }
  .mi-lc-top { display: flex; align-items: center; gap: 8px; }
  .mi-lc-type { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--mi-sub); background: var(--mi-surface2); border: 1px solid var(--mi-line); padding: 3px 10px; border-radius: 999px; }
  .mi-lc-status { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--mi-surface2); color: var(--mi-sub); }
  .mi-lc-status.ok { background: var(--mi-ok-soft); color: var(--mi-ok); }
  .mi-lc-status.warn { background: var(--mi-warn-soft); color: var(--mi-warn); }
  .mi-lc-status.err { background: var(--mi-danger-soft); color: var(--mi-danger); }
  .mi-lc-del { margin-left: auto; background: none; border: none; color: var(--mi-faint); padding: 4px; border-radius: 6px; transition: all .12s ease; cursor: pointer; display: flex; }
  .mi-lc-del:hover { color: var(--mi-danger); background: var(--mi-danger-soft); }
  .mi-lcard h3 { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.4; }
  .mi-lc-meta { font-size: 11.5px; color: var(--mi-faint); font-family: var(--font-mono); }
  .mi-lc-reason { font-size: 12.5px; color: var(--mi-sub); border-left: 2px solid var(--mi-accent); padding-left: 10px; line-height: 1.6; }
  .mi-lc-reason.none { border-left-color: var(--mi-warn); color: var(--mi-warn); }
  .mi-lc-mined { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .mi-lc-mined b { font-size: 12px; color: var(--text); margin-right: 2px; }
  .mi-lc-none { font-size: 12px; color: var(--mi-faint); padding: 4px 12px; border: 1px dashed var(--mi-line-strong); border-radius: 999px; width: fit-content; }
  .mi-lc-cat { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
  .mi-lc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .mi-lc-acts { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
  .mi-lempty { padding: 48px 24px; text-align: center; color: var(--mi-faint); font-size: 13px; border: 1px dashed var(--mi-line-strong); border-radius: var(--mi-r-lg); }
  .mi-hls .mi-card, .mi-lgrid .mi-card { margin-top: 0; }

  /* 入场节奏 */
  .mi-stagger > * { animation: miStepIn .3s ease both; }
  .mi-stagger > *:nth-child(1) { animation-delay: .02s; }
  .mi-stagger > *:nth-child(2) { animation-delay: .07s; }
  .mi-stagger > *:nth-child(3) { animation-delay: .12s; }
  .mi-stagger > *:nth-child(4) { animation-delay: .17s; }
  .mi-stagger > *:nth-child(5) { animation-delay: .22s; }
  .mi-stagger > *:nth-child(6) { animation-delay: .27s; }

  @media (max-width: 1024px) {
    .mi-stats { grid-template-columns: repeat(3, 1fr); }
    .mi-anchors, .mi-dims { grid-template-columns: repeat(2, 1fr); }
    .mi-lanes { grid-template-columns: 1fr; }
    .mi-wb { grid-template-columns: 1fr; }
    .mi-outline { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
    .mi-lstats { grid-template-columns: repeat(2, 1fr); }
    .mi-lgrid { grid-template-columns: 1fr; }
  }
  /* ============ 表达训练（et-） ============ */
  #view-training { padding: 4px 28px 40px; }
  .et-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
  .et-tab { background: none; border: none; padding: 10px 2px; font-size: 14px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .et-tab.on { color: var(--brand-text); border-bottom-color: var(--brand); font-weight: 600; }
  .et-fwstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
  .et-fwcard { border-radius: 12px; padding: 16px; cursor: pointer; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s; display: flex; flex-direction: column; gap: 8px; }
  .et-fwcard:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,24,23,.08); }
  .et-fwcard.on { border-color: var(--fwc); box-shadow: 0 6px 18px rgba(26,24,23,.08); }
  .et-fwname { display: flex; align-items: center; justify-content: space-between; }
  .et-fwname b { font-size: 15px; }
  .et-fwname .cnt { font-size: 12px; color: var(--text-muted); }
  .et-fwformula { font-size: 12px; font-weight: 600; line-height: 1.7; }
  .et-fwdesc { font-size: 12px; color: #6E6A64; line-height: 1.7; }
  .et-fwgo { font-size: 12px; font-weight: 600; color: var(--fwc); margin-top: auto; }
  .et-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
  .et-fwtabswrap { display: flex; gap: 8px; flex-wrap: wrap; }
  .et-fwpill { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
  .et-fwpill.on { background: #1A1817; color: #fff; border-color: #1A1817; }
  .et-fwpill .cnt { font-size: 11px; opacity: .72; }
  .et-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; color: var(--text-muted); width: 280px; }
  .et-search input { border: none; outline: none; flex: 1; font-size: 13px; background: transparent; color: var(--text); }
  .et-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
  .et-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 16px 14px; cursor: pointer; position: relative; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; gap: 8px; }
  .et-card:hover { box-shadow: 0 8px 24px rgba(26,24,23,.08); transform: translateY(-2px); }
  .et-fwtag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; width: fit-content; flex: none; }
  .et-ctitle { font-size: 15px; font-weight: 600; line-height: 1.5; }
  .et-cmeta { font-size: 12px; color: var(--text-muted); }
  .et-cdata { display: flex; gap: 10px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
  .et-cdata .main { color: var(--text); font-weight: 600; }
  .et-cdata .main small { color: var(--text-muted); font-weight: 400; margin-right: 2px; }
  .et-cstruct { font-size: 12px; color: #6E6A64; background: var(--surface-muted); border-radius: 6px; padding: 6px 8px; line-height: 1.7; }
  .et-cfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); border-top: 1px dashed var(--border); padding-top: 8px; margin-top: auto; }
  .et-trained { color: var(--brand-text); font-weight: 600; flex: none; }
  .et-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; cursor: pointer; margin-bottom: 12px; background: none; border: none; padding: 4px 0; }
  .et-back:hover { color: var(--brand-text); }
  .et-ahead { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
  .et-ahead h3 { font-size: 20px; font-weight: 700; line-height: 1.45; flex: 1; min-width: 260px; }
  .et-ameta { width: 100%; font-size: 12px; color: var(--text-muted); }
  .et-acols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
  .et-acol { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
  .et-acol h4, .et-panel h4 { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
  .et-acol h4::before, .et-panel h4::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--brand); flex: none; }
  .et-seg { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: #FDFCFB; }
  .et-seghead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
  .et-seghead b { font-family: var(--font-mono); font-size: 12px; color: var(--brand-text); }
  .et-seghead span { font-weight: 600; font-size: 13px; }
  .et-seghead em { font-style: normal; font-size: 12px; color: var(--text-muted); }
  .et-seg p { font-size: 13px; line-height: 1.85; color: #3D3A36; }
  .et-segkw { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
  .et-kw { font-size: 11px; background: var(--brand-soft); color: var(--brand-text); padding: 2px 8px; border-radius: 999px; }
  .et-full { font-size: 13.5px; line-height: 2; background: var(--surface-muted); border-radius: 10px; padding: 14px; color: #3D3A36; }
  .et-points { margin: 12px 0; }
  .et-points li { font-size: 12.5px; color: #6E6A64; line-height: 1.8; margin-left: 16px; }
  .et-go { width: 100%; padding: 12px; font-size: 14px; font-weight: 600; }
  .et-gymhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .et-gymhead h3 { font-size: 17px; font-weight: 700; flex: 1; min-width: 220px; line-height: 1.45; }
  .et-hintboard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
  .et-hinttip { font-size: 12.5px; color: var(--brand-text); background: var(--brand-soft); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; line-height: 1.7; }
  .et-hints { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
  .et-hint { border: 1px dashed #D8CFEA; border-radius: 10px; padding: 10px 12px; background: #FDFCFF; }
  .et-hint b { font-size: 13px; display: block; margin-bottom: 6px; }
  .et-hint b i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--brand-text); margin-right: 6px; }
  .et-recorder { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; text-align: center; }
  .et-wave { display: flex; gap: 3px; justify-content: center; align-items: center; height: 44px; margin-bottom: 12px; }
  .et-wave i { width: 4px; border-radius: 2px; background: #DAD3EC; height: 34px; transform: scaleY(.22); }
  .et-wave.live i { background: var(--brand); animation: etwave .9s ease-in-out infinite; }
  @keyframes etwave { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }
  .et-timer { font-family: var(--font-mono); font-size: 26px; font-weight: 600; margin-bottom: 16px; }
  .et-recbtn { width: 74px; height: 74px; border-radius: 50%; border: none; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(124,92,214,.35); transition: transform .12s, background .12s; }
  .et-recbtn:hover { transform: scale(1.05); }
  .et-recbtn.rec { background: #E3574E; animation: etpulse 1.4s infinite; }
  @keyframes etpulse { 0% { box-shadow: 0 0 0 0 rgba(227,87,78,.35); } 100% { box-shadow: 0 0 0 18px rgba(227,87,78,0); } }
  .et-recstatus { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); }
  .et-analyzing { text-align: center; padding: 44px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
  .et-prog { width: 320px; max-width: 80%; height: 6px; background: var(--surface-muted); border-radius: 3px; margin: 16px auto; overflow: hidden; }
  .et-prog i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 3px; transition: width .5s; }
  .et-asteps { font-size: 12.5px; color: var(--text-muted); line-height: 2; }
  .et-asteps span.done { color: var(--brand-text); font-weight: 600; }
  .et-result { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
  .et-scorecard, .et-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
  .et-panel { margin-bottom: 14px; }
  .et-scorebig { text-align: center; margin-bottom: 16px; }
  .et-scorebig .num { font-size: 52px; font-weight: 800; font-family: var(--font-mono); line-height: 1.1; }
  .et-scorebig .sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
  .et-grade { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; margin-left: 8px; vertical-align: 6px; }
  .et-dim { margin-bottom: 10px; }
  .et-dim .lb { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
  .et-dim .bar { height: 8px; background: var(--surface-muted); border-radius: 4px; overflow: hidden; }
  .et-dim .bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
  .et-audio { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 14px; background: #FDFCFF; }
  .et-play { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; border: none; display: flex; align-items: center; justify-content: center; flex: none; }
  .et-aline { flex: 1; height: 5px; background: var(--surface-muted); border-radius: 3px; overflow: hidden; }
  .et-aline i { display: block; height: 100%; width: 0; background: var(--brand); }
  .et-atime { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); flex: none; }
  .et-covrow { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; line-height: 1.6; }
  .et-covrow:last-child { border-bottom: none; }
  .et-covrow .ck { color: #3E9B6C; font-weight: 700; flex: none; }
  .et-covrow .miss { color: #E3574E; font-weight: 700; flex: none; }
  .et-covrow em { font-style: normal; color: var(--text-muted); font-size: 12px; }
  .et-trans { font-size: 13px; line-height: 2; background: var(--surface-muted); border-radius: 10px; padding: 14px; }
  .et-trans .fl { color: #C0392B; background: #FBE9E7; border-radius: 4px; padding: 0 3px; font-weight: 600; }
  .et-fchips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
  .et-fchip { font-size: 12px; background: #FBE9E7; color: #C0392B; padding: 3px 10px; border-radius: 999px; }
  .et-sugg li { font-size: 13px; line-height: 1.9; margin-left: 16px; color: #3D3A36; }
  .et-acts { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
  .et-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
  .et-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
  .et-stat .v { font-size: 26px; font-weight: 800; font-family: var(--font-mono); }
  .et-stat .v small { font-size: 13px; font-weight: 600; margin-left: 2px; }
  .et-stat .k { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
  .et-logcols { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; margin-bottom: 16px; }
  .et-panel-note { margin: -3px 0 15px; color: var(--text-muted); font-size: 11.5px; line-height: 1.65; }
  .et-legacy-note { margin: 3px 0 0; padding-top: 10px; border-top: 1px dashed var(--border); color: var(--text-muted); font-size: 11px; line-height: 1.6; }
  .et-distrow { display: grid; grid-template-columns: 78px minmax(120px, 1fr) max-content; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
  .et-distrow .nm { min-width: 0; font-weight: 600; white-space: nowrap; }
  .et-distrow .bar { height: 10px; background: var(--surface-muted); border-radius: 5px; overflow: hidden; }
  .et-distrow .bar i { display: block; height: 100%; border-radius: 5px; }
  .et-distrow .ct { text-align: right; color: var(--text-muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .et-trend-panel { align-self: start; min-height: 0; }
  .et-trend-wrap { width: 100%; height: 220px; min-height: 0; display: flex; align-items: center; justify-content: center; margin-top: 36px; overflow: hidden; }
  .et-trend { display: block; flex: 0 1 600px; width: min(100%, 600px); height: 220px !important; min-height: 220px; max-height: 220px; overflow: visible; }
  .et-table-wrap { width: 100%; overflow-x: auto; }
  .et-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .et-table th { text-align: left; font-size: 12px; color: var(--text-muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--border); }
  .et-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
  .et-table tr:last-child td { border-bottom: none; }
  .et-table th:nth-child(3), .et-table td:nth-child(3) { min-width: 260px; }
  .coach-hit-summary { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .coach-hit-summary i { color: var(--border-strong, #CFC8C0); font-style: normal; }
  .coach-status-note { margin: -2px 0 12px; padding-left: 10px; border-left: 3px solid #C9B8F0; color: var(--text-muted); font-size: 11.5px; line-height: 1.7; }
  .coach-status-note b { color: var(--text); }
  .et-scorebadge { display: inline-block; min-width: 40px; text-align: center; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-family: var(--font-mono); font-size: 12px; color: #fff; }
  /* --- 首屏（开始训练） --- */
  .et-hero { text-align: center; padding: 26px 0 22px; }
  .et-hero .slogan { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
  .et-bigmic { width: 108px; height: 108px; border-radius: 50%; border: none; background: linear-gradient(145deg, #8D6BE0, #6A48C9); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 14px 34px rgba(124,92,214,.35); transition: transform .15s, box-shadow .15s; }
  .et-bigmic:hover { transform: scale(1.05); box-shadow: 0 18px 40px rgba(124,92,214,.45); }
  .et-hero .mic-t { font-size: 17px; font-weight: 700; margin-top: 12px; }
  .et-hero .mic-s { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
  .et-today { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
  .et-today .tt { font-size: 12px; font-weight: 700; color: var(--brand-text); display: flex; align-items: center; gap: 6px; }
  .et-today .tt::before { content: ''; width: 4px; height: 12px; border-radius: 2px; background: var(--brand); }
  .et-today .ti { font-size: 15px; font-weight: 600; line-height: 1.5; }
  .et-today .why { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
  .et-today .tb { display: flex; flex-direction: column; gap: 8px; margin: auto 0; }
  .et-today .btn { align-self: flex-start; }
  .et-fwstrip-t { font-size: 12px; color: var(--text-muted); margin: 0 0 10px; text-align: center; }
  .et-fwlines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; text-align: left; align-items: stretch; }
  .et-fwline { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 12px 15px; cursor: pointer; text-align: center; transition: transform .18s, box-shadow .18s, border-color .18s; display: flex; flex-direction: column; justify-content: center; }
  .et-fwline:hover { transform: translateY(-3px); box-shadow: 0 12px 28px var(--fwglow, rgba(26,24,23,.10)); border-color: var(--fwc, var(--border)); }
  .et-fwline .nm { display: inline-block; font-size: 16px; font-weight: 800; letter-spacing: 2px; transition: transform .18s; }
  .et-fwline:hover .nm { transform: scale(1.1); }
  .et-fwline .val { font-size: 11px; color: var(--text-muted); margin-top: 7px; line-height: 1.6; }
  .et-fwline .more { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--fwc, var(--border)); border-top: none; border-radius: 0 0 12px 12px; box-shadow: 0 18px 36px rgba(26,24,23,.14); padding: 12px; z-index: 40; text-align: left; }
  .et-fwline:hover .more, .et-fwline.open .more { display: block; }
  .et-fwline .more .fm { font-size: 11.5px; font-weight: 600; margin-bottom: 6px; line-height: 1.7; }
  .et-fwline .more .fo { font-size: 11.5px; color: var(--brand-text); background: var(--brand-soft); border-radius: 6px; padding: 6px 8px; line-height: 1.7; margin-bottom: 6px; }
  .et-fwline .more .fd { font-size: 11.5px; color: #6E6A64; line-height: 1.7; margin-bottom: 10px; }
  .et-fwline .more .btn { width: 100%; padding: 6px; font-size: 12px; }
  /* --- 入口模块：四维度入口 + 今日一练 --- */
  .et-entries { margin: 2px 0 16px; }
  .et-entries-t { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 10px; }
  .et-entries-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: stretch; }
  .et-fwentries { display: grid; grid-template-rows: repeat(4, 1fr); gap: 10px; }
  .et-fwentry { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--fwc, var(--border)); border-radius: 10px; padding: 11px 16px; cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s; }
  .et-fwentry:hover { transform: translateX(4px); box-shadow: 0 8px 22px var(--fwglow, rgba(26,24,23,.10)); background: var(--fwsoft, var(--surface)); }
  .et-fwentry .nm { flex: none; width: 52px; font-size: 14px; font-weight: 800; letter-spacing: 1px; }
  .et-fwentry .ds { flex: 1; min-width: 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
  .et-fwentry .go { flex: none; font-size: 12px; font-weight: 600; color: var(--fwc, var(--text-muted)); opacity: .7; transition: transform .16s, opacity .16s; }
  .et-fwentry:hover .go { opacity: 1; transform: translateX(3px); }
  .et-reftoggle { width: 100%; border: 1px dashed var(--brand); color: var(--brand-text); background: var(--brand-soft); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; cursor: pointer; margin-bottom: 12px; }
  .et-reftoggle:hover { background: #E4DAF7; }
  .et-reflist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; align-items: start; }
  .et-refitem { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; background: #fff; }
  .et-refitem .rh { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
  .et-refitem .rh .chev { font-size: 10px; color: var(--text-muted); transition: transform .2s; }
  .et-refitem.open .rh .chev { transform: rotate(90deg); }
  .et-refitem .rb { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 6px; }
  .et-refitem .rb .fm { font-size: 11px; color: #6E6A64; line-height: 1.7; margin-bottom: 4px; }
  .et-refitem .rb .fo { font-size: 11.5px; color: var(--brand-text); line-height: 1.7; }
  .et-liblink { display: block; text-align: center; font-size: 13px; color: var(--text-muted); cursor: pointer; padding: 6px 0 2px; border: none; background: none; }
  .et-liblink:hover { color: var(--brand-text); }
  /* --- 跟练 --- */
  .et-player { background: #211D2B; border-radius: 12px; aspect-ratio: 16/6.2; position: relative; overflow: hidden; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
  .et-player .pv { position: absolute; left: 14px; top: 12px; font-size: 11px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px 10px; }
  .et-player .pplay { width: 56px; height: 56px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: #6A48C9; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s; }
  .et-player .pplay:hover { transform: scale(1.08); }
  .et-player .pjump { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: rgba(255,255,255,.85); background: rgba(124,92,214,.55); border: none; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
  .et-timeline { display: flex; gap: 4px; margin-bottom: 14px; }
  .et-tlseg { height: 8px; border-radius: 4px; background: #E4DEF4; cursor: pointer; position: relative; transition: background .15s; }
  .et-tlseg.cur { background: var(--brand); }
  .et-tlseg.done { background: #B9A6EC; }
  .et-fsegs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .et-fseg { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
  .et-fseg.cur { border-color: var(--brand); box-shadow: 0 4px 14px rgba(124,92,214,.14); }
  .et-fseg .h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .et-fseg .h b { font-family: var(--font-mono); font-size: 12px; color: var(--brand-text); }
  .et-fseg .h .n { font-weight: 600; font-size: 13px; }
  .et-fseg .h .tm { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
  .et-fseg .h .st { margin-left: auto; font-size: 11px; color: #3E9B6C; font-weight: 700; }
  .et-fseg .rhy { font-size: 12px; color: #8A5A2B; background: #F6EEE3; border-radius: 6px; padding: 5px 10px; margin: 8px 0; }
  .et-fseg .rhy::before { content: '看什么 · '; font-weight: 700; }
  .et-fseg .ops { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .et-fseg .ops .btn { padding: 6px 12px; font-size: 12px; }
  .et-ab { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
  .et-ab .ab { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; border: 1px solid var(--border); background: #FDFCFF; border-radius: 999px; padding: 4px 12px; cursor: pointer; color: var(--text-muted); }
  .et-ab .ab.playing { border-color: var(--brand); color: var(--brand-text); background: var(--brand-soft); }
  .et-frecbar { background: var(--surface); border: 1px solid var(--brand); border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 14px; }
  .et-frecbar .wave { flex: 1; }
  .et-frecbar .wave .et-wave { margin-bottom: 0; height: 34px; justify-content: flex-start; }
  .et-frecbar .t { font-family: var(--font-mono); font-size: 18px; font-weight: 600; flex: none; }
  .et-fprog { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  /* --- 结果页增强 --- */
  .et-good li { font-size: 13px; line-height: 1.9; margin-left: 16px; color: #2E7D54; }
  .et-redo { border: 1px solid var(--brand); color: var(--brand-text); background: var(--brand-soft); border-radius: 999px; font-size: 11px; padding: 2px 10px; cursor: pointer; margin-left: 8px; flex: none; }
  .et-redo:hover { background: #E4DAF7; }
  @media (max-width: 1080px) {
    .et-fwstrip { grid-template-columns: repeat(2, 1fr); }
    .et-acols, .et-result, .et-logcols { grid-template-columns: 1fr; }
    .et-stats { grid-template-columns: repeat(2, 1fr); }
    .et-fwlines { grid-template-columns: repeat(2, 1fr); }
    .et-entries-grid { grid-template-columns: 1fr; }
    .et-reflist { grid-template-columns: 1fr; }
  }
  /* ---- 我的团队 ---- */
  #view-team { padding: 16px 28px 40px; }
  .tm-sub { font-size: 12.5px; color: var(--text-muted); margin: -4px 0 20px; }
  .tm-group-t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin: 20px 0 12px; }
  .tm-group-t::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--brand); }
  .tm-group-t .gc { font-size: 11px; color: var(--text-muted); font-weight: 500; }
  .tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
  .tm-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: transform .18s, box-shadow .18s, border-color .18s; }
  .tm-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(26,24,23,.10); border-color: #C9B8F0; }
  .tm-top { display: flex; gap: 12px; align-items: center; }
  .tm-ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: #EDE9F8; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
  .tm-name { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
  .tm-on { font-size: 10px; color: #2E7D54; background: #E3F1DF; border-radius: 999px; padding: 2px 8px; font-weight: 600; }
  .tm-on::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3E9B6C; margin-right: 4px; }
  .tm-skill { font-size: 11px; color: var(--brand-text); background: var(--brand-soft); border-radius: 6px; padding: 2px 8px; display: inline-block; margin-top: 5px; }
  .tm-desc { font-size: 12px; color: #57534E; line-height: 1.8; }
  .tm-recent { font-size: 11.5px; color: var(--text-muted); background: var(--surface-muted); border-radius: 8px; padding: 7px 10px; line-height: 1.6; }
  .tm-recent b { color: var(--brand-text); font-weight: 600; }
  .tm-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
  .tm-stat { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
  .tm-go { border: none; background: none; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-muted); padding: 4px 2px; transition: color .15s, transform .15s; }
  .tm-card:hover .tm-go, .tm-go:hover { color: var(--brand-text); }
  .tm-go:hover { transform: translateX(2px); }
  .tm-recruit { border: 1.5px dashed var(--border); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); font-size: 12.5px; min-height: 200px; cursor: pointer; background: transparent; transition: border-color .18s, color .18s; }
  .tm-recruit:hover { border-color: var(--brand); color: var(--brand-text); }
  .tm-recruit .plus { width: 36px; height: 36px; border-radius: 50%; border: 1.5px dashed currentColor; display: flex; align-items: center; justify-content: center; font-size: 18px; }
  /* ---- 知识库 ---- */
  #view-kb { padding: 16px 28px 40px; }
  .kb-sub { font-size: 12.5px; color: var(--text-muted); margin: -4px 0 16px; }
  .kb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
  .kb-tabs { display: flex; gap: 4px; }
  .kb-tab { border: none; background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 8px 12px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
  .kb-tab.on { color: var(--brand-text); border-bottom-color: var(--brand); }
  .kb-bar-r { display: flex; gap: 8px; align-items: center; padding-bottom: 6px; }
  .kb-soon { border: 1px dashed var(--border); background: none; color: var(--text-muted); font-size: 11px; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
  .kb-soon:hover { color: var(--brand-text); border-color: var(--brand); }
  .kb-schema { border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand-text); font-size: 11px; font-weight: 600; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
  .kb-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
  .kb-f { border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 11.5px; border-radius: 999px; padding: 4px 12px; cursor: pointer; transition: all .15s; }
  .kb-f.on { background: #1A1817; color: #fff; border-color: #1A1817; }
  .kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px 14px; }
  .kb-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 14px 12px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: transform .18s, box-shadow .18s; }
  .kb-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(26,24,23,.10); }
  .kb-type { position: absolute; top: -9px; left: 12px; font-size: 10px; font-weight: 700; border-radius: 6px 6px 6px 0; padding: 2px 9px; color: #fff; }
  .kb-name { font-size: 14px; font-weight: 800; margin-top: 4px; }
  .kb-sum { font-size: 12px; color: #57534E; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .kb-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 10.5px; color: var(--text-muted); }
  .kb-meta .tg { background: var(--surface-muted); border-radius: 5px; padding: 1px 7px; }
  .kb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); min-height: 30px; }
  .kb-st { font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
  .kb-st.ok { color: #2E7D54; background: #E3F1DF; }
  .kb-st.pd { color: #B4552D; background: #F6EEE3; }
  .kb-st.rj { color: #8A8580; background: #EFEBE7; }
  .kb-acts { display: flex; gap: 6px; }
  .kb-ok { border: none; background: #3E9B6C; color: #fff; font-size: 11px; border-radius: 7px; padding: 3px 10px; cursor: pointer; }
  .kb-rj { border: 1px solid var(--border); background: none; color: var(--text-muted); font-size: 11px; border-radius: 7px; padding: 3px 10px; cursor: pointer; }
  .kb-reject { display: flex; gap: 6px; flex: 1; }
  .kb-reject input { flex: 1; border: 1px solid var(--border); border-radius: 7px; padding: 3px 8px; font-size: 11.5px; min-width: 80px; }
  .kb-note { font-size: 11.5px; color: var(--text-muted); margin-top: 12px; }
  .kb-graphwrap { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; }
  .kb-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 10px 4px; font-size: 11px; color: var(--text-muted); }
  .kb-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
  .kb-rawrow { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; flex-wrap: wrap; }
  .kb-rawrow .ro { font-size: 10px; color: #8A8580; border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; }
  .kb-rawrow .t { font-size: 13px; font-weight: 700; flex: 1; }
  .kb-rawrow .m { font-size: 11px; color: var(--text-muted); }
  .kb-modal { position: fixed; inset: 0; background: rgba(26,24,23,.45); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
  .kb-modal .box { background: #fff; border-radius: 16px; max-width: 720px; width: 100%; max-height: 86vh; overflow: auto; padding: 22px 24px; }
  .kb-fm { background: var(--surface-muted); border-radius: 10px; padding: 10px 12px; font-size: 11.5px; line-height: 1.9; color: #57534E; margin: 12px 0; font-family: var(--font-mono); white-space: pre-wrap; }
  .kb-linkchip { display: inline-block; border: 1px solid var(--brand); color: var(--brand-text); background: var(--brand-soft); border-radius: 999px; font-size: 11px; padding: 2px 10px; margin: 0 6px 6px 0; cursor: pointer; }
  .kb-empty { padding: 48px 0; text-align: center; color: var(--text-muted); font-size: 12.5px; border: 1px dashed var(--border); border-radius: 12px; }
  .kb-mhead { display: flex; align-items: flex-start; gap: 10px; }
  .kb-mhead .tt { flex: 1; font-size: 17px; font-weight: 800; line-height: 1.5; }
  .kb-mclose { border: none; background: none; color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 0 2px; line-height: 1; }
  .kb-mclose:hover { color: var(--brand-text); }
  .kb-sect { font-size: 11px; font-weight: 700; color: var(--text-muted); margin: 16px 0 8px; letter-spacing: .05em; }
  .kb-read { background: var(--surface-muted); border-radius: 10px; padding: 14px 16px; font-size: 13px; line-height: 2; color: #3F3C39; }
  .kb-read p + p { margin-top: 10px; }
  .kb-srcrow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #57534E; padding: 6px 0; border-bottom: 1px dashed var(--border); }
  .kb-srcrow:last-of-type { border-bottom: none; }
  .kb-org { font-size: 10px; color: #fff; border-radius: 5px; padding: 1px 7px; white-space: nowrap; flex: none; }
  .kb-macts { display: flex; gap: 8px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
  .kb-macts .kb-ok, .kb-macts .kb-rj { font-size: 12px; padding: 6px 16px; border-radius: 8px; }
  .kb-mnote { background: #F6EEE3; color: #B4552D; border-radius: 8px; font-size: 12px; padding: 8px 12px; line-height: 1.7; }
  .kb-stat { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
  #kbSvg { display: block; width: 100%; touch-action: none; }
  #kbSvg text { font-size: 10.5px; fill: #57534E; text-anchor: middle; pointer-events: none; }
  #kbSvg .kb-gnode { cursor: pointer; }
  #kbSvg .kb-gnode:hover circle { stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: none; }

  /* ---------- 总览 ---------- */
  #view-overview { padding: 16px 28px 40px; }
  .ov-sub { color: var(--text-muted); font-size: 13px; margin: 2px 0 18px; }
  .ov-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
  .ov-metric { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 13px 16px 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
  .ov-metric:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(124, 92, 214, .12); transform: translateY(-1px); }
  .ov-mtop { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); }
  .ov-mtop i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
  .ov-mnum { font-family: var(--font-serif); font-size: 26px; font-weight: 700; line-height: 1.2; margin: 6px 0 3px; }
  .ov-mnum small { font-size: 12px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
  .ov-msub { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ov-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-bottom: 14px; align-items: stretch; }
  .ov-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 18px; display: flex; flex-direction: column; }
  .ov-card-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
  .ov-card-h b { font-size: 15px; flex: none; }
  .ov-card-h > span { font-size: 12px; color: var(--text-muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ov-more { border: none; background: none; color: var(--brand-text); font-size: 12px; padding: 0; flex: none; }
  .ov-more:hover { text-decoration: underline; }
  .ov-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
  .ov-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
  .ov-graphwrap { background: var(--bg); border-radius: 10px; flex: 1; }
  #ovSvg { display: block; width: 100%; touch-action: none; }
  #ovSvg text { font-size: 10.5px; fill: #57534E; text-anchor: middle; pointer-events: none; }
  #ovSvg .ov-gnode { cursor: pointer; }
  #ovSvg .ov-gnode:hover circle { stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: none; }
  .ov-todos { display: flex; flex-direction: column; flex: 1; }
  .ov-td { display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px; border-top: 1px dashed var(--border); cursor: pointer; border-radius: 8px; }
  .ov-td:first-child { border-top: none; }
  .ov-td:hover { background: var(--surface-muted); }
  .ov-tdbox { width: 15px; height: 15px; border: 1.5px solid #C9C4BE; border-radius: 4px; flex: none; margin-top: 2px; }
  .ov-tdmain { flex: 1; min-width: 0; }
  .ov-tdtxt { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ov-tdmeta { display: flex; gap: 7px; margin-top: 5px; font-size: 11.5px; color: var(--text-muted); align-items: center; }
  .ov-tdimp { color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; line-height: 17px; flex: none; }
  .ov-tdover { color: #C0392B; font-weight: 600; }
  .ov-tdempty { color: var(--text-muted); font-size: 13px; padding: 24px 0; text-align: center; }
  .ov-pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; flex: 1; }
  .ov-pstage { border-radius: 10px; padding: 12px 13px 14px; cursor: pointer; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
  .ov-pstage:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26, 24, 23, .08); }
  .ov-pn { font-size: 12px; font-weight: 600; }
  .ov-pnum { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin: 4px 0 10px; }
  .ov-pbar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .65); overflow: hidden; margin-top: auto; }
  .ov-pbar i { display: block; height: 100%; border-radius: 4px; }
  .ov-feed { display: flex; flex-direction: column; flex: 1; }
  .ov-fitem { display: flex; gap: 10px; padding: 9px 8px; border-top: 1px dashed var(--border); align-items: flex-start; cursor: pointer; border-radius: 8px; }
  .ov-fitem:first-child { border-top: none; }
  .ov-fitem:hover { background: var(--surface-muted); }
  .ov-fdot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
  .ov-ftxt { flex: 1; font-size: 12.5px; line-height: 1.5; min-width: 0; }
  .ov-fwho { font-weight: 600; }
  .ov-ftime { font-size: 11.5px; color: var(--text-muted); flex: none; margin-top: 2px; }
  @media (max-width: 1180px) {
    .ov-metrics { grid-template-columns: repeat(2, 1fr); }
    .ov-grid { grid-template-columns: 1fr; }
    .ov-pipe { grid-template-columns: repeat(5, 1fr); }
  }

/* ============ 网感私教 ============ */
  #peerHead { position: relative; }
  #coachRecordsBtn { position: absolute; right: 28px; top: 30px; padding: 7px 14px; font-size: 12.5px; }
  .coach { border: 1px solid #E7D9C8; background: #FDFAF4; }
  .coach-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .coach-hd h3 { font-size: 15px; font-weight: 700; margin: 0; }
  .coach-badge { font-size: 11px; color: #B45309; background: #FEF3C7; border: 1px solid #FDE68A; padding: 1px 8px; border-radius: 999px; }
  .coach-rec { margin-left: auto; font-size: 12px; color: var(--brand); cursor: pointer; }
  .coach-rec:hover { text-decoration: underline; }

  .gen-empty { border: 1.5px dashed #E0C9A6; background: #FFFCF5; border-radius: 12px; padding: 26px 20px; text-align: center; }
  .gen-empty .ge-h { font-size: 14px; font-weight: 700; color: #47424F; }
  .gen-empty .ge-t { font-size: 12.5px; color: #8A8577; margin: 6px 0 14px; line-height: 1.7; }
  .gen-empty .ge-draft {
    margin-top: 8px; text-align: left; font-size: 12.5px; line-height: 1.7; color: #5C574E;
    background: rgba(255,255,255,.72); border: 1px solid #EDE6DA; border-radius: 8px;
    padding: 10px 12px; max-height: 160px; overflow: hidden; white-space: pre-wrap;
  }
  @media (max-width: 720px) {
    .writer-stream-paper { min-height: 220px; padding: 20px 16px 28px; }
    .writer-direction-intro { align-items: flex-start; flex-direction: column; gap: 3px; }
  }
  .coach-hintbar { display: flex; align-items: center; gap: 8px; background: #F6F1E7; border: 1px solid #EADFC8; color: #8A6A4F; font-size: 12.5px; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; line-height: 1.6; }
  .coach-hintbar .hb-link { border: none; background: none; color: var(--brand); font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
  .coach-hintbar .hb-link:hover { text-decoration: underline; }
  .coach-hintbar .hb-x { border: none; background: none; color: #B4A98F; font-size: 12px; margin-left: auto; cursor: pointer; white-space: nowrap; }
  .coach-hintbar .hb-x:hover { color: #8A6A4F; }
  .coach-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
  .coach-chips span { font-size: 11px; color: #8A6D3B; background: #FFF6E3; border: 1px solid #F0E2C4; border-radius: 999px; padding: 2px 9px; }
  .coach-inputwrap { position: relative; }
  .coach-inputwrap textarea { width: 100%; min-height: 74px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 48px 10px 12px; font-size: 13.5px; line-height: 1.8; font-family: inherit; resize: vertical; outline-color: var(--brand); background: var(--surface); }
  .coach-mic { position: absolute; right: 10px; top: 47px; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .coach-mic:hover { color: var(--brand); border-color: var(--brand); }
  .coach-mic.on { color: #fff; background: #E3574E; border-color: #E3574E; animation: micpulse 1.2s infinite; }
  @keyframes micpulse { 0% { box-shadow: 0 0 0 0 rgba(227,87,78,.35); } 100% { box-shadow: 0 0 0 10px rgba(227,87,78,0); } }
  .coach-mic.rec { color: #fff; background: #E3574E; border-color: #E3574E; }
  .coach-mic.paused { color: #fff; background: #C27803; border-color: #C27803; }
  .coach-mic.connecting, .coach-mic.finishing { color: var(--brand-text); background: var(--brand-soft); border-color: var(--brand-soft); animation: mpulse 1s infinite; }
  .coach-recline .fp-pending { color: #B91C1C; opacity: .55; }
  .coach-recline { margin-top: 6px; font-size: 11.5px; color: #B91C1C; display: flex; align-items: center; gap: 6px; }
  .coach-recline i { width: 7px; height: 7px; border-radius: 50%; background: #E3574E; animation: recblink 1s infinite; }
  @keyframes recblink { 50% { opacity: .25; } }
  .coach-progress { font-size: 12px; color: var(--text-muted); margin: 0; }
  .coach-model-note { margin: 8px 0; color: var(--text-muted); font-size: 11.5px; line-height: 1.65; }
  .coach-model-note::before { content: 'ⓘ'; margin-right: 5px; color: var(--brand); }
  .coach-acts { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
  .coach-score { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
  .coach-score .cs-num { font-size: 34px; font-weight: 800; color: #B45309; line-height: 1.1; white-space: nowrap; }
  .coach-score .cs-num small { font-size: 12px; font-weight: 500; color: var(--text-muted); }
  .coach-score .cs-txt { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; }
  .coach-fb { display: flex; flex-direction: column; gap: 8px; max-height: 430px; overflow-y: auto; padding-right: 4px; }
  .coach-fitem { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface); font-size: 12.5px; }
  .coach-fitem .cf-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  .coach-fitem .cf-n { font-weight: 600; font-size: 13px; }
  .cf-tag { font-size: 11px; padding: 0 8px; border-radius: 999px; }
  .cf-tag.hit { color: #15803D; background: #F0FDF4; border: 1px solid #BBF7D0; }
  .cf-tag.mid { color: #B45309; background: #FFFBEB; border: 1px solid #FDE68A; }
  .cf-tag.miss { color: #B91C1C; background: #FEF2F2; border: 1px solid #FECACA; }
  .cf-tag.no_key { color: #57534E; background: #F5F5F4; border: 1px solid #D6D3D1; }
  .coach-available-note { margin: -4px 0 12px; color: var(--text-muted); font-size: 12px; }
  .cf-s { margin-left: auto; color: var(--text-muted); font-size: 12px; }
  .coach-fitem .cf-mine { color: #8A8577; background: var(--surface-muted); border-radius: 7px; padding: 6px 9px; margin-bottom: 6px; line-height: 1.6; }
  .coach-fitem .cf-note { color: #374151; line-height: 1.7; }
  .cf-items { display: grid; gap: 6px; margin-top: 8px; }
  .cf-item { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(82px, auto) minmax(180px, 2fr); gap: 8px; align-items: start; padding-top: 6px; border-top: 1px solid var(--border); }
  .cf-item-name { font-weight: 600; color: var(--text); }
  .cf-item-match { color: #8A6D3B; white-space: nowrap; }
  .cf-item-note { color: var(--text-muted); }
  @media (max-width: 720px) {
    .cf-item { grid-template-columns: 1fr auto; }
    .cf-item-note { grid-column: 1 / -1; }
  }

  .extract-panel .xskill-bar { display: flex; flex-wrap: wrap; gap: 2px; background: var(--surface-muted); padding: 3px; border-radius: 8px; margin: 4px 0 10px; }
  .xskill-btn { display: flex; flex: 1 0 auto; flex-direction: column; align-items: center; gap: 2px; text-align: center; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 7px 8px; cursor: pointer; transition: background .15s, box-shadow .15s; }
  .xskill-btn b { font-size: 13px; color: var(--text); font-weight: 700; }
  .xskill-btn:not(:disabled):not([data-running="true"]):is(:hover, :focus-visible) b { font-size: 0; }
  .xskill-btn:not(:disabled):not([data-running="true"]):is(:hover, :focus-visible) b::after { content: '开始提取'; color: var(--brand); font-size: 13px; font-weight: 700; }
  .xskill-btn:hover { border-color: var(--brand); }
  .xskill-btn.on { background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
  .xskill-btn.on b { color: var(--brand-text); }
  .xskill-btn:disabled { cursor: wait; opacity: .65; }
  .xskill-tip { font-size: 12px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.6; }
  .extract-guide { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin: 0 0 14px; }
  .extract-brief { display: flex; align-items: baseline; gap: 12px; font-size: 13px; line-height: 1.8; margin-top: 8px; overflow-wrap: anywhere; }
  .extract-brief b { flex: 0 0 65px; font-weight: 500; color: var(--text-muted); }
  .extract-brief span { min-width: 0; }
  .extract-verified { font-size: 11px; color: #15803D; margin-left: auto; }
  .extract-source { margin-top: 12px; font-size: 12px; color: var(--text-muted); }
  .extract-source summary { cursor: pointer; }
  .extract-source .extract-quote { margin-bottom: 0; }

  .coach-stripline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
  #view-coachrec { padding: 4px 28px 40px; }
  .cr-det { background: var(--surface-muted); border-radius: 10px; padding: 12px 14px; }
  .cr-det .cf-mine { margin-bottom: 8px; }
  .cr-det .coach-fb { max-height: none; }
  .et-table tr[data-cri] { cursor: pointer; }
  .et-table tr[data-cri]:hover td { background: var(--surface-muted); }

/* 保留点击反馈，权限不足时由统一入口拦截并提示联系客服。 */
.skill-locked { opacity: .55; cursor: not-allowed !important; }
.creative-dialog{inset:0;margin:auto;width:min(620px,calc(100vw - 32px));height:fit-content;max-height:85dvh;overflow:auto;border:1px solid var(--line,#ddd);border-radius:16px;padding:24px;color:var(--text,#242424);background:var(--paper,#fff);font:inherit;line-height:1.7;box-sizing:border-box}
.creative-dialog::backdrop{background:#0005}
.creative-dialog h2{margin:0 0 12px;font-size:20px}
.creative-dialog label{display:block;margin:14px 0 8px}
.creative-dialog textarea{display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:10px;border:1px solid #ddd;border-radius:8px;font:inherit;resize:vertical}
.creative-dialog .creative-confirm{display:flex;align-items:center;gap:8px}
.creative-dialog [data-status]{color:#a34732}
.rewrite-options-dialog{width:min(680px,calc(100vw - 32px))}
.rewrite-options-dialog p{margin:0;color:var(--muted,#777)}
.rewrite-options-dialog select{display:block;width:100%;margin-top:6px;padding:9px;border:1px solid #ddd;border-radius:8px;background:var(--paper,#fff);color:inherit;font:inherit}
.rewrite-options-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.rewrite-options-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
@media(max-width:600px){.rewrite-options-grid{grid-template-columns:1fr;gap:0}}
.self-draft-review-dialog{width:min(760px,calc(100vw - 32px))}
.self-draft-review-dialog .self-review-close{float:right;border:0;background:transparent;font-size:24px;cursor:pointer;color:inherit}
.self-review-source-panel{margin:14px 0;padding:14px;border:1px solid var(--line,#ddd);border-radius:10px}
.self-review-source-panel select{display:block;width:100%;margin:6px 0 12px;padding:8px;border:1px solid var(--line,#ddd);border-radius:8px;background:var(--paper,#fff);color:inherit;font:inherit}
.self-review-source-card{margin-top:14px;padding-top:14px;border-top:1px solid var(--line,#ddd)}
.self-review-source-card p{margin:6px 0}
.self-draft-review-dialog [data-self-draft-output]{margin-top:16px}
.self-review-result section{border-top:1px solid #e6e2dc;padding-top:10px;margin-top:14px}
.self-review-result h4{margin:0 0 8px}
.self-review-result p{margin:6px 0;white-space:pre-wrap}
.self-review-summary{font-size:16px;font-weight:650}
.self-review-issue{padding:12px 14px;margin:10px 0;border:1px solid #e6e2dc;border-radius:10px;background:#fcfbf9}
.self-review-issue label{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.self-review-issue__title{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.self-review-issue blockquote{margin:8px 0;padding:8px 12px;border-left:3px solid #c38b59;background:#f5f0e8;white-space:pre-wrap}
.self-review-issue small{color:#6b6259}
.self-review-empty{padding:12px;background:#f6f4f1;border-radius:8px}
.self-review-revision pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;border-radius:10px;background:#f6f4f1;font:inherit}
.self-review-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px}
.self-review-history{max-height:220px;overflow:auto;margin:10px 0 14px;padding:8px;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted)}
.self-review-history[hidden]{display:none}
.self-review-history-row{display:flex;align-items:center;gap:8px;padding:8px;border-bottom:1px solid var(--border)}
.self-review-history-row:last-child{border-bottom:0}
.self-review-history-row>div{min-width:0;flex:1}
.self-review-history-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.self-review-history-row small{display:block;color:var(--text-muted)}
.self-review-card-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted)}
.self-review-card-editor[hidden]{display:none}
.self-review-card-editor label{display:grid;gap:4px;min-width:0;font-size:12px}
.self-review-card-editor input,.self-review-card-editor select{width:100%;min-width:0;padding:8px;border:1px solid var(--border);border-radius:7px;background:var(--surface);font:inherit}
.self-review-card-editor .self-review-card-confirm{display:flex;align-items:center;gap:6px;grid-column:1/-1}
.self-review-card-editor .self-review-card-confirm input{width:auto}
.self-review-card-editor button{justify-self:start;grid-column:1/-1}
@media(max-width:640px){.self-review-card-editor{grid-template-columns:1fr}}
.writer-extras{margin-top:20px;border-top:1px solid #e6e2dc;padding-top:12px}
.writer-extras details{padding:10px 0}
.writer-extras summary{cursor:pointer;font-weight:600}
.creative-pre{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px;line-height:1.8}
.writer-gap{padding:16px 0;border-bottom:1px solid #eee}
.writer-gap p{margin:6px 0}
.writer-gap .btn{display:block;margin-top:12px}
/* 爆款分析底部分页 */
.lib-pager{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin:22px 0 8px;padding:14px 16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card)}
.lib-pager .pg-info{color:var(--text-muted);font-size:13px}
.lib-pager .pg-pages{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.lib-pager .pg-num,.lib-pager .pg-step{min-width:34px;height:34px;padding:0 10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);font-size:13px;transition:all .12s}
.lib-pager .pg-num:hover,.lib-pager .pg-step:hover:not(:disabled){border-color:var(--brand);color:var(--brand-text)}
.lib-pager .pg-num.on{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}
.lib-pager .pg-step:disabled{color:#C4C1BC;cursor:not-allowed;background:var(--surface-muted)}
.lib-pager .pg-gap{min-width:18px;text-align:center;color:var(--text-muted)}
.lib-pager .pg-num:focus-visible,.lib-pager .pg-step:focus-visible,.lib-pager .pg-size:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (max-width:640px){.lib-pager{justify-content:center}.lib-pager .pg-info{width:100%;text-align:center}.lib-pager .pg-step{padding:0 8px}}
.lib-pager .pg-size{height:34px;padding:0 10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);font-size:13px;cursor:pointer}

/* 2026-11-26 注意清单：语音图标和「语音」两字合成一个按钮（文字移进按钮里），只作用于注意清单的 #fpMic */
#fpMic { width: auto; height: 32px; padding: 0 12px 0 10px; gap: 6px; border-radius: 999px; border: 1px solid var(--border); background: #fff; }
#fpMic:not(.rec):not(.paused):not(.connecting):not(.finishing):hover { color: var(--text); background: var(--surface-muted); }
#fpMic .fp-mic-label { min-width: 0; color: inherit; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
#fpMic.rec { color: #fff; background: #E3574E; border-color: #E3574E; }
#fpMic.rec:hover { background: #D64545; }
#fpMic.paused { color: #fff; background: #C27803; border-color: #C27803; }
#fpMic.paused:hover { background: #A86608; }
#fpMic.connecting, #fpMic.finishing { color: var(--brand-text); background: var(--brand-soft); border-color: var(--brand-soft); }

/* 2026-11-27 修复：语音提示条/识别结果出现或文字很多时，底部语音和发送按钮被挤出面板看不到。
   输入区跟着面板高度收缩，打字框自己滚动，底部按钮行始终可见。 */
.fp-composer { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
.fp-composer .fp-icap { flex: none; }
.fp-input { flex: 1 1 auto; min-height: 0; }
.fp-input > * { flex: none; }
.fp-input #fpText { flex: 0 1 auto; min-height: 90px; overflow-y: auto !important; }

/* 2026-11-27 注意清单：收音提示条改用网站主题里的绿色（#3E9B6C，和「已完成/灵感」同色）并缩小成一行；录音中的语音按钮、打字框描边也改绿色（暂停仍是橙色） */
#fpVoice { gap: 8px; padding: 4px 10px; border-radius: 8px; background: #EFF6F1; border-color: #D5E8DC; }
#fpVoice .fp-vbars { width: 22px; height: 14px; gap: 2px; }
#fpVoice .fp-vbars span { background: #3E9B6C; }
#fpVoice .fp-voice-copy { flex-direction: row; align-items: baseline; gap: 6px; }
#fpVoice .fp-voice-copy b { font-size: 12px; color: #2F7D55; white-space: nowrap; }
#fpVoice .fp-voice-copy span { font-size: 11.5px; }
#fpVoice .fp-caret { background: #3E9B6C; height: 10px; }
#fpVoice[data-state="paused"] { background: #FFF8EE; border-color: #F0D9B4; }
#fpVoice[data-state="connecting"], #fpVoice[data-state="finishing"] { background: #F7F4FF; border-color: #E4DCF8; }
#fpMic.rec { background: #3E9B6C; border-color: #3E9B6C; animation: fpMicRingGreen 1.5s ease-out infinite; }
#fpMic.rec:hover { background: #358A5F; }
@keyframes fpMicRingGreen { 0% { box-shadow: 0 0 0 0 rgba(62,155,108,.45); } 100% { box-shadow: 0 0 0 8px rgba(62,155,108,0); } }
.fp-input #fpText.is-streaming { border-color: #B7DAC4; box-shadow: inset 3px 0 0 #3E9B6C, 0 0 0 3px rgba(62,155,108,.10); }
#fpVoice[data-state="paused"] .fp-vbars span { background: #C27803; }
#fpVoice[data-state="paused"] .fp-voice-copy b { color: #9A5B08; }
#fpVoice[data-state="connecting"] .fp-vbars span, #fpVoice[data-state="finishing"] .fp-vbars span { background: var(--brand); }
#fpVoice[data-state="connecting"] .fp-voice-copy b, #fpVoice[data-state="finishing"] .fp-voice-copy b { color: var(--brand-text); }

/* 2026-11-29 注意清单卡片详情：整理后 / 原话 切换（原话=当时输入原样，含语气词） */
#modal .at-ver { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 10px; border-radius: 999px; background: var(--surface-muted); border: 1px solid var(--border); }
#modal .at-ver button { border: 0; background: transparent; color: var(--text-muted); font-size: 12.5px; line-height: 1; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
#modal .at-ver button.on { background: #fff; color: var(--brand, #7C5CD6); font-weight: 600; box-shadow: 0 1px 4px rgba(17,12,31,.12); }
#modal .zoom-txt.is-raw { color: var(--text-muted); }
#modal .at-ver-hint { font-size: 12px; color: var(--text-muted); margin: -4px 0 12px; }
