    :root {
      --teal: #0f766e;
      --teal-bright: #14b8a6;
      --teal-soft: #ccfbf1;
      --ink: #14201e;
      --muted: #5b6b68;
      --line: #dce5e2;
      --bg: #eef4f2;
      --surface: #ffffff;
      --danger: #dc2626;
      --warn: #c2410c;
      --good: #047857;
      --shadow: 0 10px 30px rgba(15, 61, 56, .06);
      --radius: 16px;
      --font: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font);
      background:
        radial-gradient(1000px 520px at 18% -10%, rgba(45, 212, 191, .22) 0%, transparent 55%),
        radial-gradient(800px 420px at 110% 0%, rgba(56, 189, 248, .12) 0%, transparent 50%),
        linear-gradient(180deg, #f7fbfa 0%, var(--bg) 40%, #e8f0ed 100%);
      color: var(--ink);
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
    }

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

    .sidebar {
      position: sticky;
      top: 0;
      align-self: flex-start;
      width: var(--sidebar-w, 232px);
      height: 100vh;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      padding: 18px 14px;
      background:
        linear-gradient(165deg, #0f766e 0%, #0d9488 48%, #0e7490 100%);
      color: #fff;
      box-shadow: 8px 0 28px rgba(15, 61, 56, .12);
      z-index: 30;
      transition: width .22s ease, padding .22s ease;
      overflow: hidden;
    }
    .brand-row {
      display: flex;
      align-items: flex-start;
      gap: 6px;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(255,255,255,.14);
      margin-bottom: 14px;
    }
    .brand {
      display: flex; gap: 12px; align-items: center;
      min-width: 0; padding: 4px 4px 0;
      flex: 1;
    }
    .mark {
      width: 40px; height: 40px; border-radius: 12px;
      background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.08));
      display: grid; place-items: center;
      font-weight: 800; font-size: 16px; letter-spacing: .02em;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
      flex-shrink: 0;
    }
    .brand-text { min-width: 0; overflow: hidden; }
    .brand h1 {
      font-size: 16px; font-weight: 700; letter-spacing: -.01em;
      white-space: nowrap;
    }
    .brand p { font-size: 11px; opacity: .82; margin-top: 3px; white-space: nowrap; }
    .side-toggle {
      flex-shrink: 0;
      width: 30px; height: 30px;
      margin-top: 6px;
      border: none; border-radius: 8px;
      background: rgba(255,255,255,.14);
      color: #fff; cursor: pointer;
      font-size: 16px; font-weight: 700; line-height: 1;
      font-family: inherit;
      transition: background .15s;
    }
    .side-toggle:hover { background: rgba(255,255,255,.26); }

    .side-nav {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 1;
      min-height: 0;
    }
    .side-label {
      font-size: 11px; font-weight: 700; letter-spacing: .06em;
      text-transform: uppercase; opacity: .55;
      padding: 10px 12px 6px;
      white-space: nowrap;
    }
    .side-nav button.nav,
    .side-nav a.nav-link {
      display: flex; align-items: center; gap: 10px;
      width: 100%;
      text-align: left;
      color: rgba(255,255,255,.9);
      text-decoration: none;
      font-size: 14px; font-weight: 600;
      padding: 11px 12px;
      border-radius: 12px;
      background: transparent;
      border: none;
      cursor: pointer;
      font-family: inherit;
      transition: background .15s ease, color .15s ease;
      white-space: nowrap;
    }
    .side-nav button.nav:hover,
    .side-nav a.nav-link:hover {
      background: rgba(255,255,255,.14);
    }
    .side-nav button.nav.active {
      background: #fff;
      color: var(--teal);
      font-weight: 750;
      box-shadow: 0 6px 16px rgba(0,0,0,.12);
    }
    .nav-ico {
      width: 22px; height: 22px; border-radius: 7px;
      display: grid; place-items: center;
      font-size: 12px; font-weight: 800;
      background: rgba(255,255,255,.16);
      flex-shrink: 0;
    }
    .side-nav button.nav.active .nav-ico {
      background: rgba(15, 118, 110, .12);
      color: var(--teal);
    }
    .nav-txt { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
    .nav-caret {
      flex-shrink: 0;
      width: 16px; height: 16px;
      display: grid; place-items: center;
      font-size: 12px; font-weight: 800;
      opacity: .7;
      transition: transform .15s ease;
    }
    .nav-group.open > .nav .nav-caret { transform: rotate(90deg); }
    .nav-group { display: flex; flex-direction: column; gap: 2px; }
    .nav-sub {
      display: none;
      flex-direction: column;
      gap: 2px;
      margin: 0 0 2px 10px;
      padding: 4px 0 4px 8px;
      border-left: 2px solid rgba(255,255,255,.22);
    }
    .nav-group.open .nav-sub { display: flex; }
    .side-nav button.nav.sub {
      padding: 9px 12px;
      font-size: 13px;
      font-weight: 600;
      opacity: .92;
    }
    /* 叠放：进了子页时父级只作分组高亮，选中态给子项 */
    .side-nav button.nav.parent-open:not(.active) {
      background: rgba(255,255,255,.16);
      color: #fff;
      box-shadow: none;
    }
    .side-nav button.nav.sub.active {
      background: rgba(255,255,255,.95);
      color: var(--teal);
    }
    .sidebar.collapsed .nav-caret { display: none; }
    .sidebar.collapsed .nav-sub {
      padding-left: 0;
      margin-left: 0;
      border-left: none;
    }
    .sidebar.collapsed .nav-group.open .nav-sub {
      display: flex;
    }
    .side-foot {
      padding-top: 12px;
      border-top: 1px solid rgba(255,255,255,.14);
      display: grid; gap: 8px;
    }
    .side-foot a.nav-link {
      display: flex; align-items: center; gap: 10px;
      color: rgba(255,255,255,.9);
      text-decoration: none;
      font-size: 13px; font-weight: 600;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(255,255,255,.1);
      white-space: nowrap;
    }
    .side-foot a.nav-link:hover { background: rgba(255,255,255,.18); }
    .side-foot .hint {
      font-size: 11px; opacity: .65; padding: 0 12px; line-height: 1.4;
    }

    /* 桌面：收起成窄图标栏 */
    @media (min-width: 901px) {
      .sidebar.collapsed {
        width: 76px;
        padding: 16px 10px;
      }
      .sidebar.collapsed .brand-text,
      .sidebar.collapsed .side-label,
      .sidebar.collapsed .nav-txt,
      .sidebar.collapsed .side-foot .hint {
        display: none;
      }
      .sidebar.collapsed .brand-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
      }
      .sidebar.collapsed .brand {
        justify-content: center;
        padding: 0;
      }
      .sidebar.collapsed .side-toggle {
        margin-top: 0;
      }
      .sidebar.collapsed .side-nav button.nav,
      .sidebar.collapsed .side-foot a.nav-link {
        justify-content: center;
        padding: 11px 8px;
      }
      .sidebar.collapsed .nav-ico {
        width: 28px; height: 28px; border-radius: 9px; font-size: 13px;
      }
    }

    .main {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
    }
    .topbar {
      position: sticky; top: 0; z-index: 25;
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px;
      min-height: 56px;
      padding: 10px 22px;
      background: rgba(255, 255, 255, .86);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(13, 148, 136, .12);
      box-shadow: 0 4px 18px rgba(15, 61, 56, .04);
    }
    .topbar-left {
      display: flex; align-items: center; gap: 10px; min-width: 0;
    }
    .topbar-left .menu-btn {
      display: none;
      border: none; background: #e8f5f2;
      color: var(--teal); border-radius: 10px;
      width: 36px; height: 36px; cursor: pointer; font-size: 16px;
      font-family: inherit; font-weight: 700;
    }
    .topbar-title {
      font-size: 14px; font-weight: 700; color: var(--ink);
      white-space: nowrap;
    }
    .topbar-title span {
      color: var(--muted); font-weight: 500; margin-left: 8px; font-size: 12px;
    }
    .topbar-right {
      display: flex; align-items: center; gap: 10px; margin-left: auto;
    }
    .top-hello {
      display: flex; align-items: center; gap: 10px;
      padding: 6px 10px 6px 6px;
      border-radius: 999px;
      background: #f0faf7;
      border: 1px solid rgba(13, 148, 136, .12);
    }
    .top-avatar {
      width: 30px; height: 30px; border-radius: 50%;
      display: grid; place-items: center;
      background: linear-gradient(145deg, #14b8a6, #0f766e);
      color: #fff; font-size: 12px; font-weight: 800;
    }
    .top-hello .txt {
      font-size: 13px; color: var(--ink); font-weight: 600;
      padding-right: 4px; white-space: nowrap;
    }
    .top-hello .txt em {
      font-style: normal; color: var(--teal); font-weight: 750;
    }

    .sidebar-mask {
      display: none;
      position: fixed; inset: 0;
      background: rgba(15, 23, 42, .45);
      z-index: 28;
    }
    .sidebar-mask.show { display: block; }

    .wrap {
      width: 100%;
      max-width: 1180px;
      margin: 0 auto;
      padding: 28px 24px 64px;
    }

    .page-head {
      display: flex; align-items: flex-end; justify-content: space-between;
      gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
    }
    .page-head h2 {
      font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2;
    }
    .page-head .sub { margin-top: 4px; font-size: 13px; color: var(--muted); }

    .crumb {
      display: flex; align-items: center; gap: 8px;
      font-size: 13px; color: var(--muted); margin-bottom: 14px;
    }
    .crumb button {
      border: none; background: none; color: var(--teal); cursor: pointer;
      font-size: 13px; font-family: inherit; font-weight: 600;
    }
    .crumb button:hover { text-decoration: underline; }
    .crumb strong { color: var(--ink); }

    .toolbar {
      display: flex; flex-wrap: wrap; gap: 10px; align-items: end;
      margin-bottom: 14px; padding: 12px 14px;
      background: rgba(255,255,255,.72);
      border: 1px solid rgba(13,148,136,.1);
      border-radius: 14px;
      backdrop-filter: blur(6px);
    }
    .field { display: flex; flex-direction: column; gap: 5px; }
    .field label { font-size: 12px; color: var(--muted); font-weight: 600; }
    .field input, .field select, .field textarea {
      border: 1px solid var(--line); border-radius: 10px;
      padding: 9px 12px; font-size: 14px; outline: none; background: #fff;
      min-width: 160px; font-family: inherit; color: var(--ink);
      transition: border-color .15s, box-shadow .15s;
    }
    .field textarea { width: 100%; min-height: 96px; resize: vertical; }
    .field input:focus, .field select:focus, .field textarea:focus {
      border-color: var(--teal-bright);
      box-shadow: 0 0 0 3px rgba(20, 184, 166, .18);
    }

    .btn {
      border: none; border-radius: 10px; padding: 9px 15px;
      font-size: 14px; font-weight: 650; cursor: pointer;
      background: var(--teal); color: #fff; font-family: inherit;
      transition: background .15s, transform .15s, box-shadow .15s;
    }
    .btn:hover { background: #0d5f59; box-shadow: 0 6px 14px rgba(15,118,110,.22); }
    .btn:active { transform: translateY(1px); }
    .btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
    .btn.ghost {
      background: #fff; color: var(--ink); border: 1px solid var(--line);
      box-shadow: none;
    }
    .btn.ghost:hover { border-color: var(--teal-bright); color: var(--teal); background: #f0fdfa; }
    .btn.danger { background: var(--danger); }
    .btn.sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }

    .panel {
      background: var(--surface);
      border: 1px solid rgba(13,148,136,.1);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .panel-head {
      display: flex; justify-content: space-between; align-items: center;
      gap: 10px; padding: 14px 18px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(180deg, #fbfdfe, #f7faf9);
    }
    .panel-head h2 { font-size: 15px; font-weight: 700; }
    .meta { font-size: 12px; color: var(--muted); }

    .asset-board {
      padding: 16px 18px 20px;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    .asset-row-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }
    .asset-row-head h3 {
      font-size: 13px;
      font-weight: 700;
      color: var(--ink);
    }
    .asset-row-head .more {
      border: none;
      background: none;
      color: var(--teal);
      font-size: 12px;
      font-weight: 650;
      cursor: pointer;
      font-family: inherit;
      padding: 0;
    }
    .asset-row-head .more:hover { text-decoration: underline; }
    .asset-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
      gap: 12px;
    }
    .asset-card {
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fbfefd;
      overflow: hidden;
      cursor: pointer;
      transition: border-color .15s, box-shadow .15s, transform .15s;
      text-align: left;
      padding: 0;
      font-family: inherit;
      color: inherit;
      width: 100%;
    }
    .asset-card:hover {
      border-color: rgba(20, 184, 166, .45);
      box-shadow: 0 8px 18px rgba(15, 118, 110, .1);
      transform: translateY(-1px);
    }
    .asset-thumb {
      height: 96px;
      display: grid;
      place-items: center;
      background:
        linear-gradient(160deg, #ecfdf5 0%, #f0f9ff 100%);
      color: var(--teal);
      font-size: 28px;
      font-weight: 800;
      overflow: hidden;
    }
    .asset-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .asset-thumb.video { background: linear-gradient(160deg, #ecfeff, #eef2ff); color: #0e7490; }
    .asset-thumb.doc { background: linear-gradient(160deg, #f0fdfa, #ecfdf5); }
    .asset-body { padding: 10px 11px 12px; }
    .asset-title {
      font-size: 12px;
      font-weight: 700;
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 2.7em;
    }
    .asset-sub {
      margin-top: 6px;
      font-size: 11px;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .asset-empty {
      padding: 18px 8px;
      color: var(--muted);
      font-size: 13px;
      text-align: center;
      border: 1px dashed var(--line);
      border-radius: 12px;
    }
    .asset-ctx {
      position: fixed;
      z-index: 1200;
      min-width: 208px;
      max-width: min(280px, calc(100vw - 24px));
      padding: 6px;
      border-radius: 12px;
      background: rgba(255, 255, 255, .96);
      border: 1px solid rgba(220, 229, 226, .95);
      box-shadow:
        0 12px 28px rgba(15, 61, 56, .14),
        0 2px 8px rgba(15, 61, 56, .06);
      backdrop-filter: blur(10px);
      display: none;
      font-family: var(--font);
    }
    .asset-ctx.show { display: block; }
    .asset-ctx-head {
      padding: 8px 10px 6px;
      font-size: 11px;
      color: var(--muted);
      line-height: 1.35;
      border-bottom: 1px solid var(--line);
      margin-bottom: 4px;
      word-break: break-all;
    }
    .asset-ctx-head strong {
      display: block;
      color: var(--ink);
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 2px;
    }
    .asset-ctx button {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      border: none;
      background: transparent;
      text-align: left;
      padding: 9px 10px;
      border-radius: 8px;
      cursor: pointer;
      font-family: inherit;
      font-size: 13px;
      font-weight: 550;
      color: var(--ink);
      line-height: 1.2;
    }
    .asset-ctx button:hover {
      background: rgba(15, 118, 110, .08);
    }
    .asset-ctx button:disabled {
      opacity: .45;
      cursor: not-allowed;
      color: var(--muted);
    }
    .asset-ctx button:disabled .ico { color: var(--muted); }
    .asset-ctx button:disabled:hover { background: transparent; }
    .asset-ctx button .ico {
      width: 18px;
      text-align: center;
      color: var(--teal);
      font-size: 14px;
      flex-shrink: 0;
    }
    .asset-ctx button.danger { color: var(--danger); }
    .asset-ctx button.danger .ico { color: var(--danger); }
    .asset-ctx button.danger:hover { background: rgba(220, 38, 38, .08); }
    .asset-ctx button.good { color: var(--good); }
    .asset-ctx button.good .ico { color: var(--good); }
    .asset-ctx button.good:hover { background: rgba(4, 120, 87, .08); }
    .asset-ctx .sep {
      height: 1px;
      background: var(--line);
      margin: 4px 6px;
    }
    .asset-card.is-menu-open {
      border-color: rgba(20, 184, 166, .55);
      box-shadow: 0 8px 18px rgba(15, 118, 110, .12);
      background: #fafcfb;
    }

    .table-wrap { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; font-size: 13px; }
    th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
    th {
      position: sticky; top: 0;
      background: #f4f8f7; color: var(--muted);
      font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    }
    tbody tr { transition: background .12s; }
    tr.clickable { cursor: pointer; }
    tr.clickable:hover td, tbody tr:hover td { background: #f0fdfa; }
    tbody tr:last-child td { border-bottom: none; }
    .actions { display: flex; flex-wrap: wrap; gap: 6px; }
    .clip {
      max-width: 420px; display: -webkit-box; -webkit-line-clamp: 2;
      -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45;
    }
    .clip-cell { cursor: pointer; }
    .clip-cell:hover .clip { color: var(--teal); }
    .clip-more {
      display: inline-block; margin-top: 4px;
      font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: .01em;
    }
    .video-seg-stack {
      display: flex; flex-direction: column; gap: 8px; min-width: 0;
    }
    .video-seg-cell {
      padding: 8px 10px;
      background: #f4f8f7;
      border: 1px solid var(--line);
      border-radius: 8px;
      line-height: 1.45;
    }
    .video-seg-cell .seg-idx {
      display: inline-block;
      font-size: 11px; font-weight: 700; color: var(--muted);
      margin-bottom: 4px; letter-spacing: .02em;
    }
    .video-seg-cell .seg-text {
      display: -webkit-box; -webkit-line-clamp: 3;
      -webkit-box-orient: vertical; overflow: hidden;
      max-width: 480px;
    }
    .video-seg-time {
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
      font-size: 12px;
      color: var(--ink);
    }
    .video-name {
      font-weight: 650; line-height: 1.35; word-break: break-all;
    }
    .video-name .meta { font-weight: 500; margin-top: 4px; }

    .field textarea.tall {
      min-height: 220px;
      max-height: min(52vh, 420px);
      font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
      font-size: 12.5px; line-height: 1.55;
    }
    .modal.wide { width: min(720px, 100%); max-height: min(88vh, 860px); display: flex; flex-direction: column; }
    .modal.wide.compare { width: min(1100px, 100%); }
    .modal.wide .body { overflow: auto; flex: 1; min-height: 0; }
    .preview-meta {
      display: flex; flex-wrap: wrap; gap: 8px 14px;
      font-size: 12px; color: var(--muted); margin-bottom: 4px;
    }
    .preview-meta code {
      font-size: 11px; background: #f4f8f7; padding: 2px 6px; border-radius: 4px;
      color: var(--ink); word-break: break-all;
    }
    .preview-text {
      white-space: pre-wrap; word-break: break-word;
      background: #f8faf9; border: 1px solid var(--line);
      border-radius: 12px; padding: 14px 16px;
      font-size: 13.5px; line-height: 1.65; color: var(--ink);
      max-height: min(56vh, 520px); overflow: auto;
    }
    .sqa-compare {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      align-items: stretch;
      min-height: 0;
    }
    .sqa-pane {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 0;
      min-height: 0;
    }
    .sqa-pane-title {
      font-size: 12px;
      font-weight: 700;
      color: #0f766e;
      letter-spacing: .02em;
    }
    .sqa-pane .preview-text {
      flex: 1;
      max-height: min(58vh, 560px);
      min-height: 200px;
    }
    .sqa-pane .preview-meta { margin-bottom: 0; }
    .sqa-pane-muted { color: var(--muted); font-size: 13px; line-height: 1.55; }
    .sqa-media {
      grid-column: 1 / -1;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px 14px;
      background: #f8faf9;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .sqa-media-head {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      justify-content: space-between;
    }
    .sqa-media-head .hint {
      color: var(--muted);
      font-size: 12px;
    }
    .sqa-media-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .sqa-media-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      min-height: 48px;
    }
    .sqa-media-card {
      width: 148px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .sqa-media-card .thumb {
      height: 88px;
      background: #eef2f1;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }
    .sqa-media-card .thumb img,
    .sqa-media-card .thumb video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .sqa-media-card .thumb .badge {
      position: absolute;
      left: 6px;
      top: 6px;
      background: rgba(15, 23, 42, .72);
      color: #fff;
      font-size: 10px;
      padding: 2px 6px;
      border-radius: 999px;
    }
    .sqa-media-card .meta {
      padding: 8px;
      font-size: 12px;
      line-height: 1.4;
      color: var(--ink);
      min-height: 42px;
      word-break: break-word;
    }
    .sqa-media-card .rm {
      border: 0;
      border-top: 1px solid var(--line);
      background: #fff;
      color: #b91c1c;
      font: inherit;
      font-size: 12px;
      font-weight: 650;
      padding: 7px 8px;
      cursor: pointer;
    }
    .sqa-media-empty {
      color: var(--muted);
      font-size: 13px;
      padding: 8px 2px;
    }
    .fb-fix-origin {
      padding: 10px 12px;
      background: #f8fafc;
      border: 1px solid var(--line);
      border-radius: 10px;
      font-size: 14px;
      line-height: 1.5;
      white-space: pre-wrap;
      word-break: break-word;
      color: var(--ink);
    }
    .fb-fix-origin.muted {
      color: var(--muted);
      font-size: 13px;
      max-height: 88px;
      overflow: auto;
    }
    .fb-fix-ctx {
      padding: 8px 10px;
      background: #f8fafc;
      border: 1px solid var(--line);
      border-radius: 10px;
      max-height: min(28vh, 240px);
      overflow: auto;
      font-size: 13px;
      line-height: 1.45;
    }
    .fb-fix-ctx .turn {
      padding: 8px 8px;
      border-radius: 8px;
      margin-bottom: 6px;
      border: 1px solid transparent;
    }
    .fb-fix-ctx .turn.is-focus {
      background: #ecfdf5;
      border-color: #a7f3d0;
    }
    .fb-fix-ctx .role {
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 2px;
    }
    .fb-fix-ctx .q { color: var(--ink); font-weight: 600; }
    .fb-fix-ctx .a { color: #475569; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
    .fb-fix-ctx .empty { color: var(--muted); padding: 6px 2px; }
    .fb-fix-media-bar {
      display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
      margin-bottom: 8px;
    }
    .sqa-pick-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 10px;
      max-height: min(52vh, 480px);
      overflow: auto;
    }
    .sqa-pick-card {
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      overflow: hidden;
      cursor: pointer;
      text-align: left;
      padding: 0;
      font: inherit;
      color: inherit;
      display: flex;
      flex-direction: column;
    }
    .sqa-pick-card:hover { border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15,118,110,.12); }
    .sqa-pick-card .thumb {
      height: 96px;
      background: #eef2f1;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .sqa-pick-card .thumb img,
    .sqa-pick-card .thumb video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .sqa-pick-card .meta {
      padding: 8px 10px;
      font-size: 12px;
      line-height: 1.4;
      color: var(--ink);
      word-break: break-word;
    }
    .sqa-pick-tabs { display: flex; gap: 8px; margin-bottom: 4px; }
    @media (max-width: 860px) {
      .sqa-compare { grid-template-columns: 1fr; }
      .modal.wide.compare { width: min(720px, 100%); }
    }
    .tag {
      display: inline-block; padding: 3px 8px; border-radius: 6px;
      font-size: 11px; font-weight: 700; letter-spacing: .01em;
    }
    .tag.qa { background: #e0f2fe; color: #0369a1; }
    .tag.docs { background: #fef3c7; color: #92400e; }
    .tag.text { background: #ecfdf5; color: #047857; }
    .tag.table { background: #ede9fe; color: #5b21b6; }
    .tag.img { background: #fff7ed; color: #c2410c; }
    .tag.image { background: #fff7ed; color: #c2410c; }
    .tag.on { background: #ecfdf5; color: #047857; }
    .tag.off { background: #f3f4f6; color: #6b7280; }
    .tag.up { background: #ecfdf5; color: #047857; }
    .tag.down { background: #fef2f2; color: #b91c1c; }
    .tag.explicit { background: #e0f2fe; color: #0369a1; }
    .tag.implicit { background: #fff7ed; color: #c2410c; }
    .tag.pending { background: #fff7ed; color: #c2410c; }
    .tag.done { background: #ecfdf5; color: #047857; }
    .tag.ignored { background: #f3f4f6; color: #6b7280; }
    .tag.promoted { background: #ecfdf5; color: #047857; }
    .gallery-tabs {
      display: flex; gap: 8px; padding: 0 2px 14px;
    }
    .gallery-tabs button {
      border: 1px solid var(--line);
      background: var(--surface);
      color: var(--muted);
      border-radius: 999px;
      padding: 8px 16px;
      font: inherit;
      font-weight: 650;
      font-size: 13px;
      cursor: pointer;
    }
    .gallery-tabs button.active {
      background: var(--teal-soft);
      border-color: #99f6e4;
      color: var(--teal);
    }
    .hit-n { font-size: 18px; font-weight: 800; color: var(--warn); letter-spacing: -.02em; }
    .kind-wrap { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
    .thumbs {
      display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
    }
    .thumbs img {
      width: 72px; height: 54px; object-fit: cover;
      border-radius: 6px; border: 1px solid var(--line); background: #fff;
      cursor: zoom-in;
    }
    .preview-media {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 10px; margin: 12px 0 4px;
    }
    .preview-media .pm {
      border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
    }
    .preview-media .pm img {
      display: block; width: 100%; height: 140px; object-fit: contain; background: #f8faf9;
      cursor: zoom-in;
    }
    .preview-media .pm .cap {
      padding: 6px 8px; font-size: 11px; color: var(--muted); line-height: 1.35;
    }
    .zoomable {
      cursor: zoom-in;
    }
    .zoomable:hover {
      outline: 2px solid #99f6e4;
      outline-offset: 1px;
    }
    .img-lightbox {
      position: fixed;
      inset: 0;
      z-index: 90;
      background: rgba(15, 23, 42, 0.72);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      cursor: zoom-out;
    }
    .img-lightbox.show { display: flex; }
    .img-lightbox img {
      max-width: min(96vw, 1100px);
      max-height: 90vh;
      object-fit: contain;
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 16px 48px rgba(0,0,0,.35);
      cursor: default;
    }
    .img-lightbox .lb-cap {
      position: absolute;
      left: 50%;
      bottom: 18px;
      transform: translateX(-50%);
      max-width: 90vw;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.75);
      color: #f8fafc;
      font-size: 13px;
      line-height: 1.4;
      text-align: center;
    }
    .img-lightbox .lb-close {
      position: absolute;
      top: 16px;
      right: 16px;
      border: none;
      background: rgba(255,255,255,.92);
      color: #111827;
      width: 36px;
      height: 36px;
      border-radius: 999px;
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
      font-family: inherit;
    }
    .preview-table {
      margin-top: 10px; overflow: auto; border: 1px solid var(--line);
      border-radius: 10px; background: #fff;
    }
    .preview-table table {
      width: 100%; border-collapse: collapse; font-size: 12px;
    }
    .preview-table th, .preview-table td {
      border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left;
    }
    .preview-table th { background: #f4f8f7; }


    .summary-row {
      display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px; margin-bottom: 14px;
    }
    @media (max-width: 720px) {
      .summary-row { grid-template-columns: 1fr; }
    }
    .stat {
      background: var(--surface); border: 1px solid rgba(13,148,136,.1);
      border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow);
    }
    .stat .n { font-size: 26px; font-weight: 800; color: var(--teal); letter-spacing: -.03em; }
    .stat .l { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 600; }

    .dash-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 18px;
    }
    @media (max-width: 900px) {
      .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 520px) {
      .dash-grid { grid-template-columns: 1fr; }
    }
    .dash-card {
      position: relative;
      background: var(--surface);
      border: 1px solid rgba(13,148,136,.12);
      border-radius: var(--radius);
      padding: 18px 18px 16px;
      box-shadow: var(--shadow);
      overflow: hidden;
      transition: transform .2s ease, box-shadow .2s ease;
      animation: rise .45s ease both;
    }
    .dash-card:nth-child(2) { animation-delay: .05s; }
    .dash-card:nth-child(3) { animation-delay: .1s; }
    .dash-card:nth-child(4) { animation-delay: .15s; }
    .dash-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 34px rgba(15, 61, 56, .1);
    }
    .dash-card::before {
      content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
      background: var(--teal-bright);
    }
    .dash-card.good::before { background: var(--good); }
    .dash-card.warn::before { background: var(--warn); }
    .dash-card .k { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
    .dash-card .v {
      margin-top: 8px; font-size: 32px; font-weight: 800; color: var(--teal);
      letter-spacing: -.04em; line-height: 1.05;
    }
    .dash-card .s { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.4; }
    .dash-card.warn .v { color: var(--warn); }
    .dash-card.good .v { color: var(--good); }
    .rank {
      width: 28px; height: 28px; display: inline-grid; place-items: center;
      border-radius: 8px; background: #eef7f5; color: var(--teal);
      font-weight: 800; font-size: 12px;
    }
    .rank.top { background: #ccfbf1; }
    .bar-wrap {
      height: 7px; background: #e5eeeb; border-radius: 999px; overflow: hidden;
      min-width: 72px; max-width: 160px; flex: 1;
    }
    .bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #2dd4bf, #0f766e);
      border-radius: 999px;
      transition: width .4s ease;
    }

    .pager {
      display: flex; justify-content: space-between; align-items: center;
      padding: 12px 16px; gap: 8px; flex-wrap: wrap;
      background: #fafcfb; border-top: 1px solid var(--line);
    }
    .empty {
      padding: 52px 16px; text-align: center; color: var(--muted);
      font-size: 14px; line-height: 1.6;
    }

    .upload-bar {
      margin-bottom: 16px; padding: 0;
      border-style: dashed; border-width: 1.5px; border-color: rgba(13,148,136,.28);
      background:
        linear-gradient(135deg, rgba(204,251,241,.45), rgba(255,255,255,.9));
      overflow: hidden;
    }
    .upload-bar strong { font-size: 15px; font-weight: 750; }
    .upload-bar .hint { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; max-width: 560px; }
    .dropzone {
      display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
      justify-content: space-between;
      padding: 18px 20px;
      cursor: pointer;
      transition: border-color .15s, background .15s, box-shadow .15s;
    }
    .dropzone:hover {
      background: linear-gradient(135deg, rgba(204,251,241,.65), rgba(255,255,255,.95));
    }
    .dropzone.is-dragover,
    .upload-bar.is-dragover {
      border-color: var(--teal);
    }
    .dropzone.is-dragover {
      background: linear-gradient(135deg, rgba(167,243,208,.55), rgba(240,253,250,.95));
      box-shadow: inset 0 0 0 1px rgba(13,148,136,.25);
    }
    .dropzone .drop-ico {
      display: inline-flex; align-items: center; justify-content: center;
      width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
      background: rgba(13,148,136,.1); color: var(--teal);
      font-size: 18px; font-weight: 800;
    }
    .dropzone .drop-main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1; }
    .pick-name {
      font-size: 12px; color: var(--teal); font-weight: 650;
      max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .pick-name.is-empty { color: var(--muted); font-weight: 500; }

    .upload-progress {
      display: none;
      padding: 0 20px 16px;
      border-top: 1px dashed rgba(13,148,136,.2);
    }
    .upload-progress.show { display: block; }
    .upload-progress .up-meta {
      display: flex; justify-content: space-between; align-items: baseline;
      gap: 12px; margin: 12px 0 8px;
      font-size: 12px; color: var(--muted);
    }
    .upload-progress .up-meta strong {
      color: var(--teal); font-size: 13px; font-weight: 700;
    }
    .progress-track {
      height: 10px; border-radius: 999px;
      background: rgba(13,148,136,.12);
      overflow: hidden;
    }
    .progress-fill {
      height: 100%; width: 0%;
      border-radius: inherit;
      background: linear-gradient(90deg, #0d9488, #14b8a6 55%, #2dd4bf);
      transition: width .18s ease;
    }
    .progress-fill.is-processing {
      width: 100% !important;
      background: linear-gradient(
        110deg,
        #0d9488 0%, #14b8a6 35%, #99f6e4 50%, #14b8a6 65%, #0d9488 100%
      );
      background-size: 220% 100%;
      animation: progress-shine 1.1s linear infinite;
    }
    @keyframes progress-shine {
      0% { background-position: 100% 0; }
      100% { background-position: -100% 0; }
    }

    .toast {
      position: fixed; right: 18px; bottom: 18px; z-index: 40;
      min-width: 200px; max-width: 400px; padding: 12px 14px;
      border-radius: 12px; background: #134e4a; color: #fff; font-size: 13px;
      opacity: 0; transform: translateY(10px); transition: .22s; pointer-events: none;
      box-shadow: 0 12px 28px rgba(0,0,0,.18);
    }
    .toast.show { opacity: 1; transform: none; }
    .toast.err { background: #991b1b; }
    /* 有上传任务浮钮时，toast 上移避免叠在一起 */
    body.has-upload-tasks .toast { bottom: 72px; }

    .modal-mask {
      position: fixed; inset: 0; background: rgba(15, 23, 42, .42);
      display: none; align-items: center; justify-content: center;
      padding: 20px; z-index: 30;
      backdrop-filter: blur(2px);
    }
    .modal-mask.show { display: flex; }
    .modal-mask.login-gate {
      z-index: 200;
      background: rgba(15, 23, 42, .55);
    }
    .modal.login-modal { width: min(400px, 100%); }
    .modal.login-modal .body { gap: 14px; }
    .modal.login-modal .field {
      display: grid; gap: 6px; font-size: 13px; color: var(--muted);
    }
    .modal.login-modal .field input {
      border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
      font: inherit; font-size: 14px; color: var(--ink); background: #fff;
    }
    .modal.login-modal .field input:focus {
      outline: none; border-color: var(--brand-line, #b6e6dd);
      box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
    }
    .modal.login-modal .login-err {
      margin: 0; font-size: 13px; color: #b91c1c;
    }
    .modal {
      width: min(540px, 100%); background: #fff; border-radius: 16px; overflow: hidden;
      box-shadow: 0 24px 60px rgba(0,0,0,.22);
      animation: rise .25s ease;
    }
    .modal header { padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 750; font-size: 16px; }
    .article-preview-body {
      font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word;
      color: var(--ink);
    }
    .article-preview-body img {
      display: block; max-width: 100%; height: auto; margin: 12px 0; border-radius: 8px;
    }
    .modal .body { padding: 18px; display: grid; gap: 12px; }
    .modal footer {
      padding: 12px 18px; border-top: 1px solid var(--line);
      display: flex; justify-content: flex-end; gap: 8px; background: #fafcfb;
    }

    /* 精标升级：左图右表，描述可多行看全 */
    .modal.promote {
      width: min(760px, 100%);
      max-height: min(90vh, 720px);
      display: flex;
      flex-direction: column;
    }
    .modal.promote header {
      padding: 14px 20px 12px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .modal.promote header .sub {
      font-size: 12px;
      font-weight: 500;
      color: var(--muted);
      line-height: 1.45;
    }
    .modal.promote .body {
      padding: 16px 20px;
      gap: 16px;
      overflow: auto;
      flex: 1;
      min-height: 0;
    }
    .promote-layout {
      display: grid;
      grid-template-columns: minmax(220px, 280px) 1fr;
      gap: 18px;
      align-items: start;
    }
    .promote-preview {
      margin: 0;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background:
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 220px;
    }
    .promote-preview img {
      max-width: 100%;
      max-height: 280px;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 8px;
      background: #fff;
      border: 1px solid rgba(15, 23, 42, .06);
      cursor: zoom-in;
    }
    .promote-fields {
      display: grid;
      gap: 12px;
      min-width: 0;
    }
    .promote-fields textarea {
      min-height: 96px;
      max-height: 180px;
      resize: vertical;
      line-height: 1.55;
      font-size: 13.5px;
    }
    .modal.promote footer {
      padding: 12px 20px;
      background: #fff;
    }
    @media (max-width: 720px) {
      .promote-layout {
        grid-template-columns: 1fr;
      }
      .promote-preview {
        min-height: 160px;
      }
      .promote-preview img {
        max-height: 200px;
      }
    }

    .hidden { display: none !important; }

    /* —— 座席排班周视图 —— */
    .seat-shift-grid th,
    .seat-shift-grid td {
      vertical-align: top;
      min-width: 108px;
    }
    .seat-shift-grid .shift-cell {
      position: relative;
      padding: 8px 6px 28px;
      background: rgba(15, 118, 110, .03);
    }
    .shift-chip {
      display: block;
      width: 100%;
      margin: 0 0 6px;
      padding: 6px 8px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: var(--ink);
      font: inherit;
      font-size: 12px;
      font-weight: 600;
      text-align: left;
      cursor: pointer;
    }
    .shift-chip:hover {
      border-color: var(--teal);
      color: var(--teal);
    }
    .shift-add {
      position: absolute;
      right: 6px;
      bottom: 4px;
      width: 22px;
      height: 22px;
      border: 1px dashed var(--line);
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      font-size: 14px;
      line-height: 1;
      cursor: pointer;
    }
    .shift-add:hover {
      border-color: var(--teal);
      color: var(--teal);
    }

    /* —— 后台上传任务：默认只显示浮钮，悬停展开面板 —— */
    .upload-task-dock {
      position: fixed;
      right: 20px;
      bottom: 20px;
      z-index: 90;
      display: none;
      flex-direction: column;
      align-items: flex-end;
      gap: 10px;
      /* 扩大热区，鼠标移到面板时不会断 */
      padding-top: 4px;
    }
    .upload-task-dock.show {
      display: flex;
    }
    .upload-task-fab {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border: none;
      border-radius: 999px;
      background: #0f766e;
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      box-shadow: 0 8px 28px rgba(15, 118, 110, .35);
      cursor: default;
    }
    .upload-task-dock:hover .upload-task-fab,
    .upload-task-dock:focus-within .upload-task-fab {
      background: #0d9488;
    }
    .upload-task-fab .badge {
      min-width: 20px;
      height: 20px;
      padding: 0 6px;
      border-radius: 999px;
      background: #e85d4c;
      font-size: 12px;
      line-height: 20px;
      text-align: center;
    }
    .upload-task-fab .badge.is-zero {
      background: rgba(255,255,255,.28);
    }
    .upload-task-fab .utp-caret {
      font-size: 11px;
      opacity: .85;
      transition: transform .18s ease;
    }
    .upload-task-dock:hover .upload-task-fab .utp-caret,
    .upload-task-dock:focus-within .upload-task-fab .utp-caret,
    .upload-task-dock.is-open .upload-task-fab .utp-caret {
      transform: rotate(180deg);
    }
    .upload-task-panel {
      width: min(380px, calc(100vw - 32px));
      max-height: min(440px, 62vh);
      display: none;
      flex-direction: column;
      background: #fff;
      border: 1px solid #e6e9f0;
      border-radius: 14px;
      box-shadow: 0 16px 48px rgba(20, 24, 40, .18);
      overflow: hidden;
    }
    /* 进行中自动展开（.is-open）；空闲时悬停也可看 */
    .upload-task-dock:hover .upload-task-panel,
    .upload-task-dock:focus-within .upload-task-panel,
    .upload-task-dock.is-open .upload-task-panel {
      display: flex;
    }
    .upload-task-panel .utp-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 12px 14px;
      border-bottom: 1px solid #eef1f6;
      font-weight: 700;
      font-size: 14px;
    }
    .upload-task-panel .utp-head-actions {
      display: flex;
      gap: 4px;
    }
    .upload-task-panel .utp-head button {
      border: none;
      background: transparent;
      color: #6b7280;
      cursor: pointer;
      font-size: 13px;
      padding: 4px 8px;
      border-radius: 8px;
    }
    .upload-task-panel .utp-head button:hover {
      background: #f1f5f9;
      color: #0f172a;
    }
    .upload-task-panel .utp-list {
      overflow: auto;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .utp-item {
      border: 1px solid #eef1f6;
      border-radius: 10px;
      padding: 10px 12px;
      background: #fafbfc;
    }
    .utp-item .utp-name {
      font-size: 13px;
      font-weight: 600;
      color: #1a1f2e;
      word-break: break-all;
    }
    .utp-item .utp-meta {
      margin-top: 4px;
      font-size: 12px;
      color: #6b7280;
    }
    .utp-item .utp-bar {
      margin-top: 8px;
      height: 6px;
      border-radius: 999px;
      background: #e8ecf3;
      overflow: hidden;
    }
    .utp-item .utp-bar > i {
      display: block;
      height: 100%;
      width: 0;
      background: linear-gradient(90deg, #0f766e, #14b8a6);
      border-radius: inherit;
      transition: width .25s ease;
    }
    .utp-item.is-done .utp-bar > i { background: #22c55e; }
    .utp-item.is-fail .utp-bar > i,
    .utp-item.is-cancel .utp-bar > i { background: #94a3b8; }
    .utp-item .utp-actions {
      margin-top: 8px;
      display: flex;
      justify-content: flex-end;
    }
    .utp-item .utp-actions button {
      border: 1px solid #e2e8f0;
      background: #fff;
      border-radius: 8px;
      padding: 4px 10px;
      font-size: 12px;
      cursor: pointer;
      color: #b45309;
    }

    @keyframes rise {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: none; }
    }
    @media (max-width: 900px) {
      .sidebar {
        position: fixed;
        left: 0; top: 0;
        transform: translateX(-105%);
        transition: transform .22s ease;
      }
      .sidebar.open { transform: translateX(0); }
      .topbar-left .menu-btn { display: inline-grid; place-items: center; }
      .topbar { padding: 10px 14px; }
      .wrap { padding: 18px 14px 48px; }
      .page-head h2 { font-size: 20px; }
    }
    @media (max-width: 640px) {
      .page-head h2 { font-size: 20px; }
    }
