/* ── HL-3 值班工作台 · 工业控制台视觉（与填报端/汇报端同源 token） ── */
    /* 暗色 v2：主背景不用纯黑（#10141c ≈ #121212 亮度，冷调），模块用两级更亮的深色分层，
       主色仅「蓝 + 紫」两族，绿/琥珀/粉仅作状态语义色；边缘加 FFFFFF 6% 微光 */
    :root {
      --hl-bg: #10141c;
      --hl-panel: rgba(34, 40, 51, 0.94);
      --hl-panel-2: rgba(47, 54, 68, 0.96);
      --hl-line: rgba(158, 182, 214, 0.2);
      --hl-line-2: rgba(158, 182, 214, 0.38);
      --hl-fg: #eef3fa;
      --hl-fg-2: #e4edf9;
      --hl-muted: #d3dfee;
      --hl-cyan: #38bdf8;
      --hl-link: #7dd3fc;
      --hl-ok: #34d399;
      --hl-warn: #fbbf24;
      --hl-danger: #ff93a4;
      --hl-on-danger: #2b0710;
      --hl-violet: #bfb3ff;
      --hl-cyan-tx: #b3e6fc;
      --hl-ok-tx: #afeed7;
      --hl-warn-tx: #fdde8e;
      --hl-danger-tx: #ffcfd6;
      --hl-violet-tx: #d0c7ff;
      --hl-sep: rgba(158, 182, 214, 0.78);
      --hl-radius: 16px;
      --hl-shadow: 0 16px 40px rgba(4, 8, 16, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
      --hl-glow: 0 0 0 1px rgba(255, 255, 255, 0.06);
      --fbn-on-bg: #38bdf8;
      --fbn-on-fg: #062033;
      color-scheme: dark;
    }
    html[data-theme="light"] {
      --hl-bg: #f2f6fb;
      --hl-panel: rgba(255, 255, 255, 0.96);
      --hl-panel-2: #f7fafd;
      --hl-line: rgba(20, 60, 110, 0.12);
      --hl-line-2: rgba(20, 60, 110, 0.26);
      --hl-fg: #0d1b2a;
      --hl-fg-2: #26405c;
      --hl-muted: #5f7590; --hl-cyan-tx: var(--hl-cyan); --hl-ok-tx: var(--hl-ok); --hl-warn-tx: var(--hl-warn); --hl-danger-tx: var(--hl-danger); --hl-violet-tx: var(--hl-violet); --hl-sep: var(--hl-line-2);
      --hl-cyan: #0284c7;
      --hl-link: #0369a1;
      --hl-ok: #047857;
      --hl-warn: #b45309;
      --hl-danger: #dc2626;
      --hl-on-danger: #ffffff;
      --hl-violet: #7c3aed;
      --hl-shadow: 0 12px 30px rgba(16, 44, 78, 0.12);
      --hl-glow: 0 0 0 1px rgba(20, 60, 110, 0.08);
      --fbn-on-bg: #0369a1;
      --fbn-on-fg: #ffffff;
      color-scheme: light;
    }
    @media (prefers-color-scheme: light) {
      html[data-theme="auto"] {
        --hl-bg: #f2f6fb;
        --hl-panel: rgba(255, 255, 255, 0.96);
        --hl-panel-2: #f7fafd;
        --hl-line: rgba(20, 60, 110, 0.12);
        --hl-line-2: rgba(20, 60, 110, 0.26);
        --hl-fg: #0d1b2a;
        --hl-fg-2: #26405c;
        --hl-muted: #5f7590; --hl-cyan-tx: var(--hl-cyan); --hl-ok-tx: var(--hl-ok); --hl-warn-tx: var(--hl-warn); --hl-danger-tx: var(--hl-danger); --hl-violet-tx: var(--hl-violet); --hl-sep: var(--hl-line-2);
        --hl-cyan: #0284c7;
        --hl-link: #0369a1;
        --hl-ok: #047857;
        --hl-warn: #b45309;
        --hl-danger: #dc2626;
        --hl-on-danger: #ffffff;
        --hl-violet: #7c3aed;
        --hl-shadow: 0 12px 30px rgba(16, 44, 78, 0.12);
        --hl-glow: 0 0 0 1px rgba(20, 60, 110, 0.08);
        --fbn-on-bg: #0369a1;
        --fbn-on-fg: #ffffff;
        color-scheme: light;
      }
    }

    * { box-sizing: border-box; }
    /* hidden 属性必须真的隐藏：本文件大量组件给容器设了 display（.pool/.icon-btn/.fbstats…），
       会覆盖 UA 的 [hidden]{display:none}，导致「已设 hidden 却仍显示」。统一在这里兜底。 */
    [hidden] { display: none !important; }
    html { -webkit-text-size-adjust: 100%; }
    body {
      margin: 0;
      min-height: 100vh;
      background:
        radial-gradient(1100px 560px at 84% -14%, rgba(56, 189, 248, 0.09), transparent 62%),
        radial-gradient(900px 520px at -8% 104%, rgba(167, 139, 250, 0.081), transparent 60%),
        var(--hl-bg);
      color: var(--hl-fg);
      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
      font-size: 14px;
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }
    h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: 0.01em; }
    p { margin: 0; }
    button { font-family: inherit; }
    [hidden] { display: none !important; }
    a { color: var(--hl-cyan-tx); }

    /* ── 启动屏 ── */
    .boot { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
      background: radial-gradient(700px 380px at 50% 30%, rgba(56, 189, 248, 0.09), transparent 68%), var(--hl-bg); }
    .boot-mark { font-size: 40px; font-weight: 800; letter-spacing: 0.16em; color: var(--hl-fg); text-shadow: 0 0 34px rgba(56, 189, 248, 0.45); }
    .boot-title { color: var(--hl-fg-2); font-size: 15px; letter-spacing: 0.08em; }
    .boot-bar { width: 168px; height: 3px; border-radius: 99px; background: var(--hl-line-2); overflow: hidden; }
    .boot-bar span { display: block; width: 42%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--hl-cyan), var(--hl-violet)); animation: bootSlide 1.15s ease-in-out infinite; }
    @keyframes bootSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
    .boot-hint { color: var(--hl-muted); font-size: 12.5px; }

    /* ── 顶栏 ── */
    .top {
      position: sticky; top: 0; z-index: 40;
      display: flex; align-items: center; gap: 14px;
      padding: 10px 18px;
      background: color-mix(in srgb, var(--hl-bg) 86%, transparent);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--hl-line);
    }
    .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .brand .mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
      color: #04121f; background: linear-gradient(135deg, var(--hl-cyan), var(--hl-violet)); box-shadow: 0 6px 18px rgba(56, 189, 248, 0.28); }
    .brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
    .brand-text strong { font-size: 15px; }
    .brand-text span { font-size: 11.5px; color: var(--hl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .top-spacer { flex: 1; }
    .top-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .top-tools { display: flex; align-items: center; gap: 8px; }

    .seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--hl-panel-2); border: 1px solid var(--hl-line); }
    .seg button { border: 0; background: transparent; color: var(--hl-muted); font-size: 13px; padding: 6px 13px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
    .seg button.is-on { background: var(--hl-cyan); color: #04121f; font-weight: 650; }
    html[data-theme="light"] .seg button.is-on { color: #fff; }
    .theme-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--hl-panel-2); border: 1px solid var(--hl-line); }
    .theme-seg button { width: 28px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--hl-muted); cursor: pointer; }
    .theme-seg button.is-on { background: var(--hl-line-2); color: var(--hl-fg); }
    .theme-seg svg { width: 14px; height: 14px; }

    /* 移动端单键主题切换（桌面隐藏，≤900px 显示） */
    .m-theme { display: none; width: 36px; height: 36px; flex: 0 0 36px; margin: -4px 0; padding: 0;
      border-radius: 10px; border: 1px solid var(--hl-line); background: var(--hl-panel-2);
      color: var(--hl-fg-2); cursor: pointer; place-items: center; transition: 0.16s; }
    .m-theme:hover { border-color: var(--hl-cyan); color: var(--hl-cyan-tx); }
    .m-theme svg { width: 16px; height: 16px; }
    .m-theme .i-sun { display: none; }
    .m-theme.is-dark .i-sun { display: block; }
    .m-theme.is-dark .i-moon { display: none; }

    .who { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 11px; background: var(--hl-panel-2); border: 1px solid var(--hl-line); font-size: 12.5px; }
    .who b { font-weight: 650; }
    .who i { font-style: normal; color: var(--hl-muted); }
    .who .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--hl-ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16); }

    /* ── 通用按钮 / 标签 ── */
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 14px; border-radius: 10px;
      border: 1px solid var(--hl-line-2); background: var(--hl-panel-2); color: var(--hl-fg); font-size: 13px; cursor: pointer; transition: 0.16s; white-space: nowrap; }
    .btn:hover { border-color: var(--hl-cyan); color: var(--hl-cyan-tx); }
    .btn.primary { background: linear-gradient(135deg, var(--hl-cyan), #22d3ee); border-color: transparent; color: #04121f; font-weight: 650; }
    .btn.primary:hover { filter: brightness(1.06); color: #04121f; }
    .btn.ghost { background: transparent; }
    .btn.danger { border-color: rgba(251, 113, 133, 0.5); color: var(--hl-danger-tx); }
    .btn.sm { min-height: 28px; padding: 3px 10px; font-size: 12px; border-radius: 8px; }
    .btn:disabled { opacity: 0.45; cursor: not-allowed; }

    .chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; line-height: 1.6;
      border: 1px solid var(--hl-line-2); color: var(--hl-fg-2); background: var(--hl-panel-2); white-space: nowrap; }
    .chip.ok { color: var(--hl-ok-tx); border-color: rgba(52, 211, 153, 0.42); background: rgba(52, 211, 153, 0.08); }
    .chip.warn { color: var(--hl-warn-tx); border-color: rgba(251, 191, 36, 0.42); background: rgba(251, 191, 36, 0.08); }
    .chip.danger { color: var(--hl-danger-tx); border-color: rgba(251, 113, 133, 0.42); background: rgba(251, 113, 133, 0.08); }
    .chip.info { color: var(--hl-cyan-tx); border-color: rgba(56, 189, 248, 0.42); background: rgba(56, 189, 248, 0.08); }
    .chip.violet { color: var(--hl-violet-tx); border-color: rgba(167, 139, 250, 0.42); background: rgba(167, 139, 250, 0.08); }
    .chip.plain { color: var(--hl-muted); }

    /* ── 容器 / 卡片 ── */
    .wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 16px 18px 96px; }
    /* 任务发布页：横向撑满整个视口 */
    #pubView { max-width: none; padding-left: 16px; padding-right: 16px; }
    .card { background: var(--hl-panel); border: 1px solid var(--hl-line); border-radius: var(--hl-radius); padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--hl-shadow); }
    .chd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
    .chd h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
    .chd h2 .no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 11.5px; font-weight: 700;
      color: var(--hl-cyan-tx); background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); }
    .chd .sub { font-size: 12px; color: var(--hl-muted); }
    .chd .grow { flex: 1; }
    .hint { font-size: 12px; color: var(--hl-muted); }

    /* ── 门禁 ── */
    .gate { max-width: 460px; margin: 8vh auto; padding: 22px; border-radius: 18px; background: var(--hl-panel); border: 1px solid var(--hl-line-2); box-shadow: var(--hl-shadow); }
    .gate-brand { font-size: 26px; font-weight: 800; letter-spacing: 0.14em; color: var(--hl-fg); }
    .gate-title { margin-top: 4px; font-size: 15px; color: var(--hl-fg-2); }
    .gate-sub { margin-top: 8px; font-size: 12.5px; color: var(--hl-muted); line-height: 1.7; }
    .gate-field { display: block; margin-top: 14px; }
    .gate-field > span { display: block; font-size: 12.5px; color: var(--hl-fg-2); margin-bottom: 6px; }
    .gate-field > span i { color: var(--hl-danger-tx); font-style: normal; }
    .gate input, .gate select { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--hl-line-2); background: var(--hl-panel-2); color: var(--hl-fg); font-size: 15px; outline: none; }
    .gate input:focus, .gate select:focus { border-color: var(--hl-cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14); }
    .gate-msg { min-height: 18px; margin-top: 8px; font-size: 12.5px; color: var(--hl-danger-tx); }
    .gate-btn { width: 100%; margin-top: 12px; min-height: 40px; }
    .gate-foot { margin-top: 12px; font-size: 11.5px; color: var(--hl-muted); text-align: center; }

    /* ── 发布台 ── */
    .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .field { display: flex; flex-direction: column; gap: 5px; }
    .field > label { font-size: 12px; color: var(--hl-muted); }
    input[type="date"], input[type="text"], input[type="tel"], select, textarea {
      min-height: 34px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--hl-line-2);
      background: var(--hl-panel-2); color: var(--hl-fg); font-size: 13.5px; outline: none; font-family: inherit;
    }
    input:focus, select:focus, textarea:focus { border-color: var(--hl-cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12); }
    textarea { min-height: 62px; resize: vertical; line-height: 1.6; }

    .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
    .stat { padding: 10px 12px; border-radius: 12px; background: var(--hl-panel-2); border: 1px solid var(--hl-line); }
    .stat em { display: block; font-style: normal; font-size: 11.5px; color: var(--hl-muted); }
    .stat b { display: block; margin-top: 2px; font-size: 20px; font-weight: 720; letter-spacing: 0.01em; }
    .stat.warn b { color: var(--hl-warn-tx); }
    .stat.danger b { color: var(--hl-danger-tx); }
    .stat.ok b { color: var(--hl-ok-tx); }

    /* 数据源工具条（发布台顶部）：手动刷新 —— 从智能表重读已发布 / 待发布信息 */
    .srcbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
      margin: 0 0 12px; padding: 7px 12px; border-radius: 12px;
      background: var(--hl-panel-2); border: 1px solid var(--hl-line);
      font-size: 12.5px; color: var(--hl-muted); }
    .srcbar-ico { display: inline-flex; flex: none; width: 16px; height: 16px; color: var(--hl-cyan); }
    .srcbar-ico svg { width: 16px; height: 16px; }
    .srcbar-t { color: var(--hl-fg-2); }
    .srcbar-t b { color: var(--hl-fg); font-weight: 600; }
    .srcbar-m { color: var(--hl-muted); font-variant-numeric: tabular-nums; }
    .srcbar-warn { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 11.5px;
      color: var(--hl-danger-tx); background: rgba(255, 147, 164, 0.12);
      border: 1px solid rgba(255, 147, 164, 0.38); }
    .srcbar.is-err { border-color: rgba(255, 147, 164, 0.5); background: rgba(255, 147, 164, 0.06); }
    .srcbar-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; }
    .srcbar-btn svg { width: 14px; height: 14px; }
    .srcbar-btn.is-busy { opacity: 0.72; cursor: progress; }
    .srcbar-btn.is-busy svg { animation: srcspin 0.9s linear infinite; }
    @keyframes srcspin { to { transform: rotate(360deg); } }
    @media (prefers-reduced-motion: reduce) { .srcbar-btn.is-busy svg { animation: none; } }
    @media (max-width: 640px) {
      .srcbar { row-gap: 6px; }
      .srcbar-t { order: 3; flex: 1 1 100%; }
      .srcbar-m { display: block; flex: 1 1 0; min-width: 0; overflow: hidden;
        text-overflow: ellipsis; white-space: nowrap; }
    }

    .planbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 12px;
      background: rgba(56, 189, 248, 0.07); border: 1px solid rgba(56, 189, 248, 0.24); }
    .planbar.is-pub { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.3); }
    .planbar.is-end { background: var(--hl-panel-2); border-color: var(--hl-line); }
    .planbar .txt { font-size: 12.5px; color: var(--hl-fg-2); }
    .planbar .delta { font-size: 12px; font-weight: 600; color: var(--hl-cyan-tx);
      padding: 2px 8px; border-radius: 999px; background: rgba(56, 189, 248, 0.12);
      border: 1px solid rgba(56, 189, 248, 0.28); }
    .planbar .delta.ok { color: var(--hl-ok-tx); background: rgba(52, 211, 153, 0.12);
      border-color: rgba(52, 211, 153, 0.3); }

    /* 当日两个班次（白班 / 夜班 各 1 条值班任务） */
    .dayseg { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
    .dayseg-i { display: flex; flex-direction: column; gap: 3px; flex: 1 1 210px; min-width: 190px; text-align: left;
      padding: 9px 12px; border-radius: 12px; cursor: pointer; font: inherit;
      background: var(--hl-panel-2); border: 1px solid var(--hl-line); color: var(--hl-fg-2);
      transition: border-color 0.16s, background 0.16s, transform 0.16s; }
    .dayseg-i:hover { border-color: var(--hl-line-2); transform: translateY(-1px); }
    .dayseg-i.is-on { border-color: var(--hl-cyan); background: rgba(56, 189, 248, 0.1); }
    .dayseg-i .ds-h { display: flex; align-items: center; gap: 8px; }
    .dayseg-i .ds-h b { font-size: 13.5px; color: var(--hl-fg); }
    .dayseg-i .ds-r { font-size: 11.5px; color: var(--hl-muted); }
    .dayseg-i .ds-m { font-size: 11.5px; color: var(--hl-fg-2); }
    .dayseg .ds-note { flex: 1 1 100%; font-size: 11.5px; color: var(--hl-muted); }

    /* 值班表增量更新提示 */
    .fb-newtip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 9px 12px;
      border-radius: 12px; font-size: 12.5px; color: var(--hl-fg-2);
      background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.34); }
    .fb-newtip b { color: var(--hl-warn-tx); }
    .fb-newtip .btn { margin-left: auto; }

    /* 关注清单表 */
    .ftbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--hl-line); }
    table.ftbl { width: 100%; border-collapse: collapse; min-width: 1120px; }
    .ftbl thead th { position: sticky; top: 0; z-index: 2; padding: 8px 10px; font-size: 11.5px; font-weight: 600; text-align: left; white-space: nowrap;
      color: var(--hl-muted); background: var(--hl-panel-2); border-bottom: 1px solid var(--hl-line-2); }
    .ftbl tbody td { padding: 8px 10px; border-bottom: 1px solid var(--hl-line); vertical-align: top; font-size: 12.5px; }
    .ftbl tbody tr:last-child td { border-bottom: 0; }
    .ftbl tbody tr.must { background: rgba(251, 113, 133, 0.05); }
    .ftbl tbody tr.off { opacity: 0.42; }
    .ftbl .tname { font-weight: 600; font-size: 13px; color: var(--hl-fg); }
    .ftbl .tmeta { font-size: 11.5px; color: var(--hl-muted); margin-top: 2px; }
    .ftbl input[type="text"] { width: 100%; min-height: 30px; font-size: 12.5px; }
    .ftbl .ck { width: 16px; height: 16px; accent-color: var(--hl-cyan); cursor: pointer; }

    /* 关注清单卡片 */
    .fc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 10px; }
    .fc { border: 1px solid var(--hl-line); border-radius: 13px; background: var(--hl-panel-2); overflow: hidden; transition: border-color 0.15s, background 0.15s; }
    .fc:hover { border-color: var(--hl-line-2); }
    .fc.must { border-color: rgba(251, 113, 133, 0.42); background: rgba(251, 113, 133, 0.05); }
    .fc.off { opacity: 0.5; }
    .fc.open { border-color: var(--hl-line-2); }
    .fc-h { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; cursor: pointer; }
    .fc-ck { flex: none; padding-top: 2px; }
    .fc-ck .ck { width: 16px; height: 16px; accent-color: var(--hl-cyan); cursor: pointer; }
    .fc-ti { min-width: 0; flex: 1; }
    .fc-ti b { display: block; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--hl-fg); }
    .fc-meta { font-size: 11.5px; color: var(--hl-muted); margin-top: 3px; line-height: 1.55; }
    .fc-badges { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
    .fc-caret { flex: none; color: var(--hl-muted); font-size: 12px; width: 14px; text-align: center; padding-top: 2px; }
    .fc-prev { padding: 0 12px 10px 38px; font-size: 12px; color: var(--hl-fg-2); line-height: 1.6;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .fc-b { padding: 0 12px 12px; display: grid; gap: 8px; }
    .fc-ppl { font-size: 11.5px; color: var(--hl-muted); }
    .fc-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
    .fc-lb { font-size: 11px; color: var(--hl-muted); margin-right: 2px; }
    .pset { padding: 3px 9px; border-radius: 99px; font-size: 11.5px; cursor: pointer; line-height: 1.5;
      border: 1px dashed var(--hl-line-2); color: var(--hl-fg-2); background: transparent; transition: 0.14s; }
    .pset:hover { color: var(--hl-cyan-tx); border-color: var(--hl-cyan); background: rgba(56, 189, 248, 0.1); }
    .pset.hit { border-style: solid; border-color: rgba(56, 189, 248, 0.55); color: var(--hl-cyan-tx); }
    .fc-note { width: 100%; min-height: 96px; resize: vertical; padding: 9px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.7;
      border: 1px solid var(--hl-line-2); background: var(--hl-panel); color: var(--hl-fg); font-family: inherit; box-sizing: border-box; }
    .fc-note:focus { outline: none; border-color: var(--hl-cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14); }
    /* 必关注条目：已自动导入填报人填写的风险内容说明 */
    .fc-auto { margin-top: 6px; font-size: 11px; line-height: 1.6; color: var(--hl-muted);
      padding: 6px 9px; border-radius: 8px; border: 1px dashed var(--hl-line-2); background: rgba(56, 189, 248, 0.06); }
    .fc-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    /* 必关注加签 / 取消（D1 直接切换，★ 为已选中态） */
    .fc-must { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 5px 11px; border-radius: 9px;
      border: 1px solid var(--hl-line-2); background: transparent; color: var(--hl-fg-2);
      font-size: 12px; line-height: 1.5; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
    .fc-must:hover { border-color: rgba(251, 113, 133, 0.55); color: var(--hl-danger-tx); background: rgba(251, 113, 133, 0.07); }
    .fc-must.is-on { background: rgba(251, 113, 133, 0.15); border-color: rgba(251, 113, 133, 0.55);
      color: var(--hl-danger-tx); font-weight: 600; }
    .fc-must:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.22); }
    .chip.fc-unmust { border-style: dashed; color: var(--hl-muted); text-decoration: line-through; }
    .fc-imgnote { font-size: 11px; color: var(--hl-muted); }
    .fc-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
    .fc-thumbs .th { position: relative; display: block; width: 62px; height: 62px; border-radius: 9px; overflow: hidden;
      border: 1px solid var(--hl-line-2); background: var(--hl-panel); }
    .fc-thumbs .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .fc-thumbs .th.pending { border-style: dashed; border-color: rgba(56, 189, 248, 0.6); }
    .fc-thumbs .th.pending button { position: absolute; top: 0; right: 0; width: 22px; height: 22px; border: 0; cursor: pointer;
      background: rgba(2, 8, 16, 0.72); color: #fff; font-size: 13px; line-height: 1; border-bottom-left-radius: 8px; }

    /* 关注清单：单卡浏览（状态统计条 + 切换条） */
    .fc-list.is-single { display: block; }
    .fc-list.is-single .fc { border-radius: 14px; }
    .fc-list.is-single .fc.off { opacity: 1; }
    .fc-list.is-single .fc-h { cursor: default; padding: 12px 14px 10px; }
    .fc-list.is-single .fc-b { padding: 0 14px 14px; gap: 10px; }
    .fc-list.is-single .fc-note { min-height: 120px; }

    .fc-stat { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 8px; }
    .fc-stat .fs-lb { font-size: 11.5px; color: var(--hl-muted); margin-right: 2px; }
    .fs { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; cursor: pointer;
      border: 1px solid var(--hl-line-2); background: var(--hl-panel-2); color: var(--hl-fg-2);
      font-size: 12px; line-height: 1.5; font-family: inherit; transition: 0.14s; }
    .fs b { font-size: 12.5px; font-weight: 700; color: var(--hl-fg); font-variant-numeric: tabular-nums; }
    .fs:hover { border-color: var(--hl-cyan); color: var(--hl-cyan-tx); }
    .fs.is-on { border-color: var(--hl-cyan); background: rgba(56, 189, 248, 0.14); color: var(--hl-cyan-tx); }
    .fs.is-on b { color: var(--hl-cyan-tx); }
    .fs.danger { border-color: rgba(251, 113, 133, 0.5); }
    .fs.danger b { color: var(--hl-danger-tx); }
    .fs.danger.is-on { background: rgba(251, 113, 133, 0.16); border-color: var(--hl-danger); color: var(--hl-danger-tx); }
    .fs.zero { opacity: 0.55; }

    .fc-prog { display: flex; gap: 2px; height: 6px; border-radius: 99px; overflow: hidden;
      background: var(--hl-line); margin: 0 0 10px; }
    .fc-prog i { display: block; height: 100%; }
    .fc-prog i.ok { background: var(--hl-ok); }
    .fc-prog i.todo { background: var(--hl-danger); }
    .fc-prog i.rest { background: var(--hl-line-2); }

    .fc-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
    .fc-nav .pos { font-size: 12px; color: var(--hl-muted); font-variant-numeric: tabular-nums; }
    .fc-nav .pos b { font-size: 14px; color: var(--hl-fg); }
    .fc-nav .nm { font-size: 12px; color: var(--hl-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis;
      white-space: nowrap; max-width: 40%; }
    .fc-nav .nm i { font-style: normal; color: var(--hl-cyan-tx); margin-right: 6px; }
    .fc-nav .fc-jump { max-width: 260px; height: 30px; padding: 0 8px; border-radius: 9px; font-size: 12px;
      border: 1px solid var(--hl-line-2); background: var(--hl-panel-2); color: var(--hl-fg-2); font-family: inherit; cursor: pointer; }
    .fc-nav .fc-jump:focus { outline: none; border-color: var(--hl-cyan); }
    .tagbox { display: flex; flex-wrap: wrap; gap: 4px; max-width: 190px; }    .tag { padding: 2px 7px; border-radius: 99px; font-size: 11px; cursor: pointer; user-select: none;
      border: 1px solid var(--hl-line-2); color: var(--hl-muted); background: transparent; }
    .tag.on { color: #04121f; background: var(--hl-cyan); border-color: transparent; font-weight: 600; }
    html[data-theme="light"] .tag.on { color: #fff; }

    /* 值班人员池 */
    .staff-search { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .sbox { position: relative; display: flex; align-items: center; gap: 8px; flex: 0 1 420px; min-width: 220px;
      padding: 0 8px 0 10px; border-radius: 10px; border: 1px solid var(--hl-line-2); background: var(--hl-panel-2); }
    .sbox:focus-within { border-color: var(--hl-cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12); }
    .sbox svg { width: 15px; height: 15px; color: var(--hl-muted); flex: none; }
    .sbox input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important;
      box-shadow: none !important; outline: none !important; padding: 7px 0; }
    .sbox input:focus { outline: none !important; border: 0 !important; box-shadow: none !important; }
    .sbox .icon-btn { border: 0; background: transparent; }

    .picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
    .picked:empty { display: none; }
    .pchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px 4px 11px; border-radius: 99px;
      font-size: 12.5px; border: 1px solid rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.1); }
    .pchip b { font-weight: 650; }
    .pchip i { font-style: normal; font-size: 11px; color: var(--hl-muted); }
    .pchip button { width: 22px; height: 22px; display: grid; place-items: center; border: 0; background: transparent; color: var(--hl-muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; border-radius: 99px; }
    .pchip button:hover { color: var(--hl-danger-tx); }
    .pchip.warn { border-color: rgba(251, 191, 36, 0.42); background: rgba(251, 191, 36, 0.1); }
    /* 排班来源标识：从《值班安排表》自动带入的人员带「排班」小标 */
    .pchip.sched { border-color: rgba(167, 139, 250, 0.42); background: rgba(167, 139, 250, 0.1); }
    .pchip em.src { font-style: normal; font-size: 10px; line-height: 1.5; padding: 1px 6px; border-radius: 99px;
      color: var(--hl-violet-tx); background: rgba(167, 139, 250, 0.16); border: 1px solid rgba(167, 139, 250, 0.3); }
    /* 固定值班人员标识：不依赖《值班安排表》排班，每次默认追加 */
    .pchip.fixed { border-color: rgba(52, 211, 153, 0.42); background: rgba(52, 211, 153, 0.1); }
    .pchip.fixed em.src { color: var(--hl-ok-tx); background: rgba(52, 211, 153, 0.11); border-color: rgba(52, 211, 153, 0.32); }

    /* 调整值班人员（换班 / 取消）弹窗 */
    .sc-meta { font-size: 12.5px; color: var(--hl-fg-2); margin-bottom: 10px; line-height: 1.7; }
    .sc-meta b { color: var(--hl-fg); }
    .sc-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
    .sc-r { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 11px;
      border: 1px solid var(--hl-line); background: var(--hl-panel-2); cursor: pointer; transition: 0.14s; }
    .sc-r:hover { border-color: var(--hl-line-2); }
    .sc-r.on { border-color: var(--hl-cyan); background: rgba(56, 189, 248, 0.1); }
    .sc-r input { margin: 0; }
    .sc-r span { font-size: 13px; font-weight: 600; }
    .sc-r i { font-style: normal; font-size: 11px; color: var(--hl-muted); margin-left: auto; }
    .sc-pick { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 10px; border-radius: 10px;
      border: 1px dashed var(--hl-line-2); font-size: 12.5px; color: var(--hl-muted); }
    .sc-pick.has { border-style: solid; border-color: rgba(167, 139, 250, 0.45); color: var(--hl-fg); }
    .sc-pick b { color: var(--hl-violet-tx); }
    @media (max-width: 520px) { .sc-reasons { grid-template-columns: 1fr; } }

    .pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; margin-top: 10px; }
    .pool:empty { display: none; }
    .pcard { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--hl-line);
      background: var(--hl-panel-2); cursor: pointer; transition: 0.14s; }
    .pcard:hover { border-color: var(--hl-line-2); }
    .pcard.on { border-color: var(--hl-cyan); background: rgba(56, 189, 248, 0.1); }
    .pcard .av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700;
      color: var(--hl-cyan-tx); background: rgba(56, 189, 248, 0.14); flex: none; }
    .pcard .info { min-width: 0; flex: 1; }
    .pcard .info b { display: block; font-size: 13px; font-weight: 600; }
    .pcard .info span { display: block; font-size: 11px; color: var(--hl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pcard .ck { width: 15px; height: 15px; accent-color: var(--hl-cyan); }

    /* 协调人员表（只读展示） */
    table.ftbl-coord { min-width: 760px; }
    .ftbl .mono { font-variant-numeric: tabular-nums; }
    .ftbl td.act { white-space: nowrap; }
    .ftbl td.act .btn + .btn { margin-left: 4px; }
    .cm-pool { display: grid; gap: 4px; margin-top: 8px; max-height: 208px; overflow: auto; }
    .cm-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 10px; border-radius: 9px;
      border: 1px solid var(--hl-line); background: var(--hl-panel-2); color: var(--hl-fg); font-size: 12.5px; cursor: pointer; }
    .cm-item:hover { border-color: var(--hl-cyan); }
    .cm-item.on { border-color: var(--hl-cyan); background: rgba(56, 189, 248, 0.12); }
    .cm-item b { font-weight: 600; }
    .cm-item span { color: var(--hl-muted); font-size: 11.5px; }

    /* 预览 */
    .preview { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .pv-block { border: 1px solid var(--hl-line); border-radius: 12px; overflow: hidden; }
    .pv-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--hl-panel-2); font-size: 12.5px; color: var(--hl-fg-2); }
    .pv-head b { font-size: 13px; color: var(--hl-fg); }
    .pv-body { padding: 10px 12px; }
    .pv-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
    .pv-list li { font-size: 12.5px; color: var(--hl-fg-2); display: flex; gap: 8px; }
    .pv-list li i { font-style: normal; color: var(--hl-muted); min-width: 62px; }

    /* ── 发布页两栏：左侧三版块（3/5 宽）+ 右侧预览发布（2/5 宽，高度与左侧合计等高） ── */
    .pub-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; align-items: stretch; }
    .pub-main { min-width: 0; display: flex; flex-direction: column; }
    .pub-main > .card:last-child { margin-bottom: 0; }
    .pub-side { position: relative; min-width: 0; min-height: 460px; }
    .pub-side > .card { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; min-height: 0; }
    .pub-side > .card > .chd { flex: none; }
    .pub-side .preview { flex: 1 1 auto; min-height: 100px; overflow: auto; padding-right: 2px; }
    .pub-side .pub-acts { flex: none; margin-top: 10px; }

    /* 协调人员：折叠仅显示姓名 */
    .coord-body .cchips { display: flex; flex-wrap: wrap; gap: 6px; }
    .cchip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 99px; font-size: 12.5px;
      line-height: 1.6; border: 1px solid var(--hl-line-2); background: var(--hl-panel-2); color: var(--hl-fg); white-space: nowrap; }
    .cchip.manual { border-color: rgba(167, 139, 250, 0.5); background: rgba(167, 139, 250, 0.12); cursor: pointer; font-family: inherit; }
    .cchip.manual:hover { border-color: var(--hl-violet); color: var(--hl-violet-tx); }
    .cchip i { font-style: normal; font-size: 10px; color: var(--hl-violet-tx); }
    .cchip.empty { color: var(--hl-muted); border-style: dashed; }

    /* 固定值班人员块（在「今日安装协调人员表」卡片内）：
       只读名单 + 配置入口；不计入值班名单，故无移除按钮 */
    .fxsec { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--hl-line); }
    .fxhd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .fxhd > b { font-size: 13px; font-weight: 650; }
    .fxsec .fxlist { margin-top: 8px; }
    .pchip.fxoff { border-color: var(--hl-line-2); background: transparent; opacity: .62; }
    .pchip.fxoff em.src { color: var(--hl-muted); background: transparent; border-color: var(--hl-line-2); }

    /* ── 反馈端 ── */
    .fb-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
    .fb-hero .big { font-size: 19px; font-weight: 700; }
    .fb-hero .meta { font-size: 12.5px; color: var(--hl-muted); }
    .prog { flex: 1; min-width: 180px; }
    .prog .bar { height: 7px; border-radius: 99px; background: var(--hl-line-2); overflow: hidden; }
    .prog .bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--hl-cyan), var(--hl-ok)); transition: width 0.4s; }
    .prog .txt { margin-top: 5px; font-size: 11.5px; color: var(--hl-muted); }

    .flist { display: grid; gap: 10px; }
    .fcard { border: 1px solid var(--hl-line); border-radius: 13px; padding: 11px 13px; background: var(--hl-panel-2); }
    .fcard.must { border-left: 3px solid var(--hl-danger); }
    .fcard.done { border-left: 3px solid var(--hl-ok); }
    .fcard.bad { border-left: 3px solid var(--hl-warn); }
    .fcard .fh { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
    .fcard .fh b { font-size: 13.5px; }
    .fcard .fm { margin-top: 4px; font-size: 11.5px; color: var(--hl-muted); }
    .fcard .fnote { margin-top: 7px; padding: 7px 9px; border-radius: 9px; background: rgba(56, 189, 248, 0.07); font-size: 12px; color: var(--hl-fg-2); border: 1px dashed rgba(56, 189, 248, 0.3); }
    .fcard .fnote b { color: var(--hl-cyan-tx); }
    /* 任务内容（只读关联《安装任务表》，默认 2 行截断，可展开全文） */
    .fcard .ftask { margin-top: 7px; padding: 7px 9px 8px; border-radius: 9px;
      background: rgba(56, 189, 248, 0.05); border-left: 2px solid rgba(56, 189, 248, 0.55); }
    .fcard .ftask-h { display: flex; align-items: center; gap: 8px; }
    .fcard .ftask-h b { font-size: 11.5px; color: var(--hl-cyan-tx); letter-spacing: .02em; }
    .fcard .ftask-more { margin-left: auto; border: 0; background: transparent; padding: 0; cursor: pointer;
      font-family: inherit; font-size: 11.5px; color: var(--hl-cyan-tx); text-decoration: underline; text-underline-offset: 2px; }
    .fcard .ftask-more:hover { color: var(--hl-fg); }
    .fcard .ftask-p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--hl-fg-2); white-space: pre-wrap; overflow-wrap: anywhere; }
    .fcard .ftask-p.is-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
    .fcard .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }

    /* 任务卡内的反馈记录（提交后直接显示在当条任务下方） */
    .fbs { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--hl-line); display: grid; gap: 8px; }
    .fbs-t { font-size: 11.5px; color: var(--hl-muted); display: flex; align-items: center; gap: 6px; }
    .fbs-t b { color: var(--hl-cyan-tx); font-size: 12px; }
    .fbs-i { border-radius: 10px; padding: 8px 10px; background: var(--hl-panel); border: 1px solid var(--hl-line); }
    .fbs-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .fbs-tm { margin-left: auto; font-size: 11px; color: var(--hl-muted); font-variant-numeric: tabular-nums; }
    .fbs-i p { margin: 5px 0 0; font-size: 12px; color: var(--hl-fg-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
    .fbs-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
    .fbs-imgs a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--hl-line-2); }
    .fbs-imgs img { display: block; width: 76px; height: 76px; object-fit: cover; }
    .log-imgs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
    .log-imgs img { width: 52px; height: 52px; object-fit: cover; border-radius: 7px; border: 1px solid var(--hl-line-2); }
    .fb-panel { margin-top: 9px; padding: 10px; border-radius: 11px; border: 1px solid var(--hl-line-2); background: var(--hl-panel); display: grid; gap: 8px; }
    .fb-panel .row { gap: 8px; }
    .fb-panel textarea { min-height: 56px; }
    .pick { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--hl-panel-2); border: 1px solid var(--hl-line); }
    .pick button { border: 0; background: transparent; color: var(--hl-muted); font-size: 12px; padding: 5px 11px; border-radius: 7px; cursor: pointer; }
    .pick button.on { background: var(--hl-cyan); color: #04121f; font-weight: 650; }
    .pick button.on.bad { background: var(--hl-warn); }
    .pick button.on.idle { background: var(--hl-muted); color: var(--hl-fg); }
    html[data-theme="light"] .pick button.on { color: #fff; }

    .thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
    .thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--hl-line-2); }
    /* 待提交照片：缩略图 + 右上角移除按钮（与发布台 fc-thumbs 同一范式） */
    .thumbs .th { position: relative; display: block; width: 56px; height: 56px; border-radius: 8px; overflow: hidden;
      border: 1px dashed rgba(56, 189, 248, 0.6); background: var(--hl-panel); }
    .thumbs .th img { width: 100%; height: 100%; border: 0; border-radius: 0; display: block; }
    .thumbs .th button { position: absolute; top: 0; right: 0; width: 20px; height: 20px; border: 0; padding: 0;
      cursor: pointer; background: rgba(2, 8, 16, 0.72); color: #fff; font-size: 13px; line-height: 20px;
      border-bottom-left-radius: 7px; }
    .thumbs .th button:hover { background: rgba(220, 38, 38, 0.92); }
    /* 文件选择器：1×1 透明定位而非 display:none —— iOS / 微信 WebView 对隐藏 input 的 click 有拦截 */
    .fb-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden;
      clip: rect(0 0 0 0); clip-path: inset(50%); pointer-events: none; }
    .fb-photon { font-size: 11.5px; color: var(--hl-muted); font-variant-numeric: tabular-nums; }
    .fb-photon:empty { display: none; }
    /* 日志详情：补传照片 */
    .ladd { margin-top: 10px; padding: 10px; border-radius: 10px; border: 1px dashed var(--hl-line-2);
      background: var(--hl-panel-2); display: grid; gap: 8px; }
    .ladd-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
    .ladd-h b { font-size: 12.5px; }
    .ladd-h span { font-size: 11.5px; color: var(--hl-muted); }
    .ladd-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

    /* 日志时间线 */
    .logs { display: grid; gap: 0; }
    .log { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--hl-line); }
    .log:last-child { border-bottom: 0; }
    .log .t { font-size: 11.5px; color: var(--hl-muted); font-variant-numeric: tabular-nums; }
    .log .c b { font-size: 12.5px; }
    .log .c p { margin-top: 2px; font-size: 12px; color: var(--hl-fg-2); }
    .log .c .m { margin-top: 3px; font-size: 11px; color: var(--hl-muted); }

    /* ── 反馈页：日志卡片 ── */
    .logcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
    .logcard { display: block; padding: 11px 12px; border: 1px solid var(--hl-line); border-radius: 13px;
      background: var(--hl-panel-2); cursor: pointer; transition: 0.16s; min-width: 0; }
    .logcard:hover { border-color: var(--hl-cyan); }
    .logcard:focus-visible { outline: 2px solid var(--hl-cyan); outline-offset: 2px; }
    .lc-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .lc-h .grow { flex: 1; }
    .lc-t { font-size: 11.5px; color: var(--hl-muted); font-variant-numeric: tabular-nums; }
    .lc-arrow { color: var(--hl-muted); font-size: 15px; line-height: 1; }
    .lc-b { margin-top: 5px; font-size: 13px; font-weight: 650; color: var(--hl-fg); }
    .lc-m { margin-top: 4px; font-size: 11.5px; color: var(--hl-muted); }
    .lc-p { margin-top: 5px; font-size: 12px; color: var(--hl-fg-2); line-height: 1.6;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .lc-imgs { display: flex; gap: 5px; margin-top: 7px; align-items: center; }
    .lc-imgs img { width: 56px; height: 56px; object-fit: cover; border-radius: 7px; border: 1px solid var(--hl-line-2); }
    .lc-more { font-size: 11px; color: var(--hl-muted); }

    /* ── 反馈页：日志详情 / 修订 ── */
    .ldetail { display: grid; gap: 2px; }
    .lrow { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--hl-line); font-size: 12.5px; }
    .lrow:last-of-type { border-bottom: 0; }
    .lk { flex: 0 0 68px; color: var(--hl-muted); font-size: 11.5px; }
    .lv { flex: 1; min-width: 0; color: var(--hl-fg-2); white-space: pre-wrap; }
    .ldetail.is-edit .lrow { display: none; }
    .lfield { margin-bottom: 8px; }
    .limgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
    .limgs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px;
      border: 1px solid var(--hl-line-2); cursor: zoom-in; }
    .lmuted { margin-top: 10px; font-size: 11.5px; color: var(--hl-muted); }

    /* ── 反馈页：二级窗口编号切换（卡片不再横滑） ── */
    .fbnums { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; margin: 0 0 10px;
      padding: 4px 0 8px; overflow-x: auto; scrollbar-width: none;
      -webkit-overflow-scrolling: touch; background: var(--hl-panel);
      -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
      box-shadow: 0 1px 0 var(--hl-line); }
    .fbnums::-webkit-scrollbar { display: none; }
    .fbn { flex: 0 0 auto; min-width: 36px; height: 36px; padding: 0 9px; border-radius: 10px;
      border: 1px solid var(--hl-line-2); background: var(--hl-panel-2); color: var(--hl-fg-2);
      font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; cursor: pointer; }
    .fbn.is-must { border-color: rgba(251, 113, 133, 0.55); }
    .fbn.is-done { color: var(--hl-ok-tx); }
    .fbn.is-bad { color: var(--hl-warn-tx); }
    .fbn.is-on { background: var(--fbn-on-bg); border-color: var(--fbn-on-bg); color: var(--fbn-on-fg); font-weight: 700; }
    .fbstage { display: block; }
    .fbstage > .fcard { width: 100%; }
    .fbstage > .fcard[hidden] { display: none; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .fbsub { display: flex; gap: 6px; margin: 0 0 10px; overflow-x: auto; flex-wrap: nowrap;
      -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
    .fbsub::-webkit-scrollbar { display: none; }
    .fbsub .zsub-i { flex: 0 0 auto; }

    /* ── 反馈页：必须关注筛选 / 手机操作条 ── */
    /* 标题行：左标题 / 右统计（同高左右排版）；工具行单独一行 */
    .chd-title { margin-bottom: 8px; }
    .chd-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
    .fbstats { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 12px;
      color: var(--hl-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .fbstats[hidden] { display: none; }
    .fbstats b { font-weight: 700; font-size: 13px; color: var(--hl-fg); }
    .fs-ok b { color: var(--hl-ok-tx); }
    .fs-bad b { color: var(--hl-danger-tx); }
    .fs-bad.is-zero b { color: var(--hl-muted); }
    .fs-d { color: var(--hl-sep); }
    /* 今日值班日志折叠 */
    .logtitle { cursor: pointer; }
    .logtoggle { display: inline-flex; align-items: center; gap: 5px; }
    .logtoggle .cv { font-size: 11px; line-height: 1; transition: transform 0.16s; }
    .logtoggle.is-open .cv { transform: rotate(180deg); }
    .mustseg button b { font-variant-numeric: tabular-nums; }
    .mustseg button:disabled { opacity: 0.45; cursor: not-allowed; }
    .mustseg button[data-must="1"]:not(:disabled) { color: var(--hl-danger-tx); }
    .mustseg button[data-must="1"].is-on { background: var(--hl-danger); color: var(--hl-on-danger); }
    html[data-theme="light"] .mustseg button[data-must="1"].is-on { color: #fff; }
    /* 本时段待反馈：第三键（与「全部」「必须关注」同位置横排，三等分） */
    .mustseg button[data-slotp="1"]:not(:disabled) { color: var(--hl-warn-tx); }
    .mustseg button[data-slotp="1"].is-on { background: var(--hl-warn); color: #231703; }
    html[data-theme="light"] .mustseg button[data-slotp="1"].is-on { color: #fff; }
    .fs-slot b { color: var(--hl-warn-tx); }
    /* 本时段筛选提示行：时段 / 共 N 项 / 已反馈 / 待反馈 + 查看全部 */
    .fbslotbar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 0 12px;
      padding: 8px 12px; border-radius: 11px; background: var(--hl-panel-2); border: 1px solid var(--hl-line);
      font-size: 12.5px; color: var(--hl-muted); font-variant-numeric: tabular-nums; }
    .fbslotbar[hidden] { display: none; }
    .fbslotbar b { color: var(--hl-fg); font-weight: 700; }
    .fbslotbar .fsb-t b { color: var(--hl-warn-tx); }
    .fbslotbar .fsb-ok b { color: var(--hl-ok-tx); }
    .fbslotbar .fsb-bad b { color: var(--hl-danger-tx); }
    .fbslotbar .fsb-d { color: var(--hl-sep); }
    .fbslotbar .grow { flex: 1; }
    /* 已超时 · 待反馈（降级区块：置底、仍可操作） */
    .fblate { display: grid; gap: 10px; margin: 4px 0 0; padding: 11px 12px;
      border-radius: 13px; border: 1px solid rgba(251, 191, 36, 0.42); background: rgba(251, 191, 36, 0.06); }
    .fblate .fcard { border-left: 3px solid var(--hl-warn); }
    .fblate-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
      font-size: 12.5px; color: var(--hl-warn-tx); }
    .fblate-h b { font-size: 13px; }
    .fblate-n { padding: 1px 8px; border-radius: 99px; border: 1px solid rgba(251, 191, 36, 0.5);
      font-weight: 700; font-variant-numeric: tabular-nums; }
    .fblate-h i { font-style: normal; font-size: 11.5px; color: var(--hl-muted); }
    /* 已过时段 · 已闭环（默认折叠，仅查阅） */
    .fbpast { margin: 2px 0 0; }
    .fbpast-h { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; cursor: pointer;
      border: 1px dashed var(--hl-line-2); border-radius: 11px; background: transparent;
      font-family: inherit; font-size: 12.5px; color: var(--hl-muted); text-align: left; }
    .fbpast-h:hover { border-color: var(--hl-cyan); color: var(--hl-fg-2); }
    .fbpast-h b { color: var(--hl-fg); font-size: 13px; font-variant-numeric: tabular-nums; }
    .fbpast-h i { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--hl-muted); }
    .fbpast-h .cv { display: inline-block; font-size: 11px; transition: transform 0.16s; }
    .fbpast.is-open .fbpast-h .cv { transform: rotate(180deg); }
    .fbpast-b { display: grid; gap: 10px; margin-top: 10px; }
    .fbpast-b[hidden] { display: none; }
    .fbpast .fcard { opacity: 0.8; }
    .fbpast .fcard:hover, .fbpast .fcard:focus-within { opacity: 1; }
    /* 已超时角标 / 仍在施工按钮 / 时段待确认脚注 */
    .chip.late { color: #231703; border-color: transparent; background: var(--hl-warn); font-weight: 700; }
    html[data-theme="light"] .chip.late { color: #fff; }
    .btn.warn { border-color: rgba(251, 191, 36, 0.55); color: var(--hl-warn-tx); }
    .btn.warn:hover { border-color: var(--hl-warn); color: var(--hl-warn); }
    .fbslotnote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px;
      padding: 8px 12px; border-radius: 11px; border: 1px dashed var(--hl-line-2);
      font-size: 12px; color: var(--hl-muted); }
    .fbslotnote b { color: var(--hl-fg); }
    .opsbar { display: none; margin-bottom: 12px; }
    .opsbar .btn { width: 100%; justify-content: center; gap: 8px; }
    .opcnt { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
      padding: 0 5px; border-radius: 99px; background: var(--hl-danger); color: var(--hl-on-danger); font-size: 11px; font-weight: 700; }
    .opcnt[hidden] { display: none; }

    /* ── 图片全屏预览（可缩放） ── */
    .imgview { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(0, 0, 0, 0.94);
      touch-action: pinch-zoom; overscroll-behavior: contain; }
    .imgview.is-open { display: block; }
    body.iv-lock { overflow: hidden; }
    .iv-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px;
      padding: 10px 12px calc(10px + env(safe-area-inset-top)); color: #fff; }
    .iv-bar .grow { flex: 1; }
    .iv-n { font-size: 12.5px; color: #e6edf6; font-variant-numeric: tabular-nums; }
    .iv-z { min-width: 54px; height: 28px; padding: 0 10px; border-radius: 99px; cursor: pointer;
      border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08); color: #e6edf6;
      font-size: 12px; font-variant-numeric: tabular-nums; }
    .iv-z:hover { background: rgba(255, 255, 255, 0.18); }
    .iv-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28);
      background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
    /* 舞台留出顶栏；canvas 为测量与裁切基准，图片由 transform 定位 */
    .iv-stage { position: absolute; inset: 0; padding: 52px 0; touch-action: none; }
    .iv-canvas { position: relative; width: 100%; height: 100%; overflow: hidden; }
    .iv-img { position: absolute; left: 0; top: 0; max-width: none; max-height: none;
      transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-drag: none; }
    .imgview.is-zoomed .iv-img { cursor: grab; }
    .imgview.is-zoomed .iv-img:active { cursor: grabbing; }
    .imgview.is-loading .iv-canvas::after { content: '加载中…'; position: absolute; left: 50%; top: 50%;
      transform: translate(-50%, -50%); color: rgba(255, 255, 255, 0.66); font-size: 13px; letter-spacing: 0.06em; }
    .imgview.is-error .iv-canvas::after { content: '图片加载失败，可关闭后重试'; position: absolute; left: 50%; top: 50%;
      transform: translate(-50%, -50%); color: rgba(255, 255, 255, 0.66); font-size: 13px; }
    .iv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; z-index: 3;
      border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.86); font-size: 26px; line-height: 1; cursor: pointer; }
    .iv-nav.prev { left: 14px; }
    .iv-nav.next { right: 14px; }
    .iv-nav:hover { background: rgba(255, 255, 255, 0.2); }
    .iv-nav:active { transform: translateY(-50%) scale(0.96); }
    .iv-tools { position: absolute; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 3;
      display: grid; gap: 8px; }
    .iv-tool { width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
      border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.1);
      color: #fff; font-size: 18px; line-height: 1; }
    .iv-tool:hover { background: rgba(255, 255, 255, 0.2); }
    .iv-hint { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
      z-index: 2; margin: 0; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, 0.42);
      color: rgba(255, 255, 255, 0.72); font-size: 12px; white-space: nowrap; pointer-events: none;
      transition: opacity 0.3s; }
    .imgview.is-hint-off .iv-hint { opacity: 0; }

    /* ── 额外情况：手机端抽屉内的表单（节点搬家后去掉卡片外壳）── */
    #exCard[data-in-sheet] { border: 0; padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
    #exCard[data-in-sheet] .chd { display: none; }
    #exCard[data-in-sheet] .row { flex-direction: column; align-items: stretch; gap: 8px; }
    #exCard[data-in-sheet] #btnExSubmit { display: none; }
    #exCard[data-in-sheet] .field { width: 100%; }

    @media (max-width: 900px) {
      /* 手机端：清单全部收进二级窗口，页面只留区域图与操作按钮 */
      #fbFocusList, #fbZonePanel, #fbZoneChips { display: none !important; }
      #btnFbCollapse, #fbSearch, #fbSlotBar { display: none !important; }
      /* 额外情况：手机端页面内不常驻，改由按钮打开二级窗口（搬家后由 [data-in-sheet] 恢复显示） */
      #exCard:not([data-in-sheet]) { display: none; }
      .opsbar { display: block; }
      .logcards { grid-template-columns: 1fr; }
      .fbn { min-width: 40px; height: 40px; padding: 0 11px; font-size: 13.5px; }
      .chd-tools .mustseg { display: flex; width: 100%; margin-top: 0; }
      .chd-tools .mustseg button { flex: 1 1 0; min-width: 0; min-height: 36px; }
      /* 窄屏三等分：第三键省去「待反馈」二字，避免挤压换行 */
      .chd-tools .mustseg .slotp-x { display: none; }
      .chd-tools { gap: 8px; }
      .fbstats { font-size: 11px; gap: 4px; }
      .fbstats b { font-size: 12px; }
      .logtoggle { min-height: 36px; }
      .chd-log { gap: 8px; }
      .zmap-lb b { font-size: 10px; }
      .zmap-lb i { font-size: 9px; }
      .lrow { font-size: 13px; }
      .lk { flex-basis: 62px; }
      .sheet .btn.sm { min-height: 36px; padding: 6px 12px; font-size: 12.5px; }
      .sheet .btn { min-height: 40px; }
    }

    /* 人员标识（反馈人 · 角色） */
    .who-tag { display: inline-flex; align-items: baseline; gap: 5px; padding: 1px 8px; border-radius: 99px; font-size: 11.5px;
      line-height: 1.7; font-weight: 600; color: var(--hl-fg-2); border: 1px solid var(--hl-line-2); background: var(--hl-panel-2);
      vertical-align: middle; white-space: nowrap; }
    .who-tag i { font-style: normal; font-weight: 500; font-size: 10.5px; color: var(--hl-muted); }
    .who-tag.coord { color: var(--hl-violet-tx); border-color: rgba(167, 139, 250, 0.45); background: rgba(167, 139, 250, 0.12); }
    .who-tag.coord i { color: rgba(167, 139, 250, 0.9); }
    .log .c .who-tag { margin-right: 2px; }

    .empty { padding: 26px 14px; text-align: center; color: var(--hl-muted); font-size: 12.5px; }
    .empty b { display: block; color: var(--hl-fg-2); font-size: 13.5px; margin-bottom: 4px; }

    /* ── 登录（页面访问第一道） ── */
    .idgate { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px;
      overflow: auto; background:
        radial-gradient(900px 480px at 82% -10%, rgba(56, 189, 248, 0.144), transparent 60%),
        radial-gradient(760px 460px at -6% 106%, rgba(167, 139, 250, 0.126), transparent 58%),
        var(--hl-bg); }
    .idgate .gate { margin: 0; width: min(460px, 100%); }
    .idgate .gate-sub b { color: var(--hl-fg-2); }
    .idgate .gate-step[hidden] { display: none; }
    .idgate .gate-foot code { padding: 1px 5px; border-radius: 5px; background: var(--hl-panel-2);
      border: 1px solid var(--hl-line-2); color: var(--hl-fg-2); font-size: 11.5px; }
    .gate-link { display: inline-block; margin-top: 6px; padding: 2px 4px; border: 0; background: none;
      color: var(--hl-link); font-size: 11.5px; text-decoration: underline; cursor: pointer; }
    .gate-link:hover { color: var(--hl-fg); }

    /* ── 值班安排 ── */
    .sch-list { display: grid; gap: 10px; }
    .sch-day { border: 1px solid var(--hl-line); border-radius: 13px; background: var(--hl-panel-2); overflow: hidden; }
    .sch-day.is-today { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.16); }
    .sch-day-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px;
      background: rgba(56, 189, 248, 0.06); border-bottom: 1px solid var(--hl-line); }
    .sch-day-h b { font-size: 13.5px; letter-spacing: 0.01em; }
    .sch-day-h .wd { font-size: 12px; color: var(--hl-fg-2); }
    .sch-day-h .hint { font-size: 11.5px; }
    .sch-shift { display: flex; align-items: flex-start; gap: 12px; padding: 9px 12px; border-top: 1px dashed var(--hl-line); }
    .sch-shift:first-of-type { border-top: 0; }
    .sch-lb { flex: none; width: 96px; display: flex; flex-direction: column; gap: 1px; }
    .sch-lb b { font-size: 12.5px; }
    .sch-lb i { font-style: normal; font-size: 11px; color: var(--hl-muted); font-family: var(--hl-mono, inherit); }
    .sch-chips { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
    .sch-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px;
      border: 1px solid var(--hl-line-2); background: var(--hl-panel); color: var(--hl-fg); font-size: 12.5px;
      line-height: 1.7; cursor: pointer; transition: border-color 0.15s, opacity 0.15s; }
    .sch-chip:hover:not(:disabled) { border-color: var(--hl-cyan); }
    .sch-chip:disabled { cursor: default; }
    .sch-chip i { font-style: normal; font-size: 10.5px; padding: 0 6px; border-radius: 99px;
      color: var(--hl-warn-tx); background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); }
    .sch-chip em { font-style: normal; font-size: 10px; color: var(--hl-cyan-tx); }
    .sch-chip.is-off { opacity: 0.48; text-decoration: line-through; }
    .sch-chip.is-dim { opacity: 0.26; }
    .sch-add { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px;
      border: 1px dashed var(--hl-line-2); background: transparent; color: var(--hl-muted); font-size: 12px;
      line-height: 1.7; cursor: pointer; }
    .sch-add:hover { color: var(--hl-cyan-tx); border-color: var(--hl-cyan); }
    .sch-empty { font-size: 12px; color: var(--hl-muted); }
    .sch-ppl { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--hl-line);
      background: var(--hl-panel-2); cursor: pointer; font-size: 12.5px; }
    .sch-ppl:hover { border-color: var(--hl-cyan); }
    .sch-ppl b { font-weight: 600; }
    .sch-ppl span { font-size: 11.5px; color: var(--hl-muted); }
    .sch-ppl .grow { flex: 1; }
    .sch-ppl-list { display: grid; gap: 6px; max-height: 320px; overflow: auto; margin-top: 8px; }

    /* ── 值班安排 · 日历网格 ── */
    .cal-hd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 6px; }
    .cal-hd span { text-align: center; font-size: 11.5px; color: var(--hl-muted); letter-spacing: 0.04em; }
    .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
    .cal-cell { position: relative; display: flex; flex-direction: column; gap: 5px;
      min-height: 92px; padding: 6px 7px 7px; border: 1px solid var(--hl-line);
      border-radius: 11px; background: var(--hl-panel-2); transition: border-color 0.15s; }
    .cal-cell.is-out { opacity: 0.52; }
    .cal-cell.is-today { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.16); }
    .cal-cell.is-sel { border-color: var(--hl-cyan); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.22); }
    .cal-d { display: flex; align-items: center; gap: 5px; min-height: 16px; }
    .cal-d b { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
    .cal-d .wd { font-size: 10.5px; color: var(--hl-muted); }
    .cal-d .n { margin-left: auto; font-size: 10.5px; color: var(--hl-muted); }
    .cal-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
    .cal-lb { flex: none; width: 15px; height: 15px; border-radius: 4px; display: grid; place-items: center;
      font-size: 9.5px; line-height: 1; color: var(--hl-fg); }
    .cal-lb.d { background: rgba(56, 189, 248, 0.22); border: 1px solid rgba(56, 189, 248, 0.46); }
    .cal-lb.n { background: rgba(167, 139, 250, 0.22); border: 1px solid rgba(167, 139, 250, 0.46); }
    .cal-chip { display: inline-flex; align-items: center; gap: 3px; max-width: 100%;
      padding: 1px 6px; border-radius: 99px; border: 1px solid var(--hl-line-2);
      background: var(--hl-panel); color: var(--hl-fg); font-size: 11.5px; line-height: 1.6;
      cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      transition: border-color 0.15s, opacity 0.15s; }
    .cal-chip:hover:not(:disabled) { border-color: var(--hl-cyan); }
    .cal-chip:disabled { cursor: default; }
    .cal-chip.is-off { opacity: 0.45; text-decoration: line-through; }
    .cal-chip.is-dim { opacity: 0.24; }
    .cal-chip .st { flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--hl-warn); }
    .cal-more { padding: 1px 6px; border-radius: 99px; border: 1px dashed var(--hl-line-2);
      background: transparent; color: var(--hl-muted); font-size: 10.5px; line-height: 1.6; cursor: pointer; }
    .cal-more:hover { color: var(--hl-cyan-tx); border-color: var(--hl-cyan); }
    .cal-empty { font-size: 10.5px; color: var(--hl-muted); }
    .cal-add { margin-left: auto; flex: none; width: 18px; height: 18px; padding: 0; border-radius: 5px;
      border: 1px dashed var(--hl-line-2); background: transparent; color: var(--hl-muted);
      font-size: 12px; line-height: 1; cursor: pointer; opacity: 0; pointer-events: none;
      transition: opacity 0.15s, border-color 0.15s; }
    .cal-cell:hover .cal-add, .cal-add:focus-visible { opacity: 0.8; pointer-events: auto; }
    .cal-add:hover { color: var(--hl-cyan-tx); border-color: var(--hl-cyan); opacity: 1; }
    .cal-cnt { display: none; gap: 3px; flex-wrap: wrap; }
    .cal-cnt i { font-style: normal; font-size: 9.5px; line-height: 1.5; padding: 0 4px; border-radius: 4px; color: var(--hl-fg); }
    .cal-cnt i.d { background: rgba(56, 189, 248, 0.22); }
    .cal-cnt i.n { background: rgba(167, 139, 250, 0.22); }
    .cal-cnt i.z { color: var(--hl-muted); }
    .cal-detail { display: grid; gap: 8px; }
    .cal-detail-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hl-fg-2); }

    /* ── 我的近 2 次排班 ── */
    .mymini { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--hl-line); }
    .my-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
    .my-h b { font-size: 13px; }
    .my-who { font-size: 11.5px; color: var(--hl-muted); }
    .my-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .my-card { display: flex; align-items: center; gap: 14px; padding: 10px 14px;
      border: 1px solid var(--hl-line); border-radius: 11px; background: var(--hl-panel-2); }
    .my-card.is-today { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.14); }
    .my-d { display: flex; align-items: baseline; gap: 6px; flex: none; min-width: 92px; }
    .my-d b { font-size: 14.5px; letter-spacing: 0.01em; }
    .my-d span { font-size: 11px; color: var(--hl-muted); }
    .my-s { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
    .my-s b { font-size: 12.5px; }
    .my-s i { font-style: normal; font-size: 11px; color: var(--hl-muted); font-family: var(--hl-mono, inherit);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .my-r { margin-left: auto; flex: none; font-size: 11.5px; color: var(--hl-fg-2); display: flex; align-items: center; gap: 6px; }
    .my-r em { font-style: normal; font-size: 10.5px; padding: 0 6px; border-radius: 99px;
      color: var(--hl-warn-tx); background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); }
    .my-empty { margin: 0; font-size: 12.5px; color: var(--hl-fg-2); }
    .my-tip { margin: 7px 0 0; font-size: 11.5px; color: var(--hl-muted); }

    /* 日历：窄屏（≤1100，列宽不足以稳定放 2 个姓名徽标）改紧凑格，只留日期 + 人次徽标，点开看当日详情 */
    @media (max-width: 1100px) {
      .cal-hd, .cal { gap: 4px; }
      .cal-hd span { font-size: 10px; }
      .cal-cell { min-height: 64px; padding: 4px 4px 5px; gap: 3px; border-radius: 9px; cursor: pointer; }
      .cal-d { min-height: 14px; }
      .cal-d b { font-size: 12px; }
      .cal-d .wd, .cal-d .n { display: none; }
      .cal-row { display: none; }
      .cal-cnt { display: flex; }
      .cal-add { display: none; }
    }

    /* 底部移动导航 */
    .mnav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
      background: color-mix(in srgb, var(--hl-bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--hl-line); }
    .mnav .in { display: flex; gap: 8px; }
    .mnav button { flex: 1 1 0; min-height: 42px; border-radius: 11px; border: 1px solid var(--hl-line); background: var(--hl-panel-2); color: var(--hl-muted); font-size: 13px; cursor: pointer; }
    .mnav button.is-on { color: #04121f; background: var(--hl-cyan); border-color: transparent; font-weight: 650; }
    html[data-theme="light"] .mnav button.is-on { color: #fff; }

    /* 弹窗 */
    .modal-mask { position: fixed; inset: 0; z-index: 80; background: rgba(2, 8, 16, 0.62); backdrop-filter: blur(3px); }
    .modal { position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); max-height: 84vh; overflow: auto;
      border-radius: 16px; background: var(--hl-panel); border: 1px solid var(--hl-line-2); box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5); }
    .modal-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hl-line); }
    .modal-head h3 { font-size: 14.5px; }
    .modal-body { padding: 14px 16px; }
    .modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--hl-line); }
    .icon-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--hl-line); background: transparent; color: var(--hl-muted); cursor: pointer; font-size: 16px; line-height: 1; }

    /* ── 固定值班人员配置弹窗（《值班配置表》维护）────────── */
    .fcfg .modal-body { max-height: min(68vh, 560px); overflow: auto; }
    /* 检索输入行：视觉边框只由 .sbox 承担（内层 input 无边框 / 无描边 / 无背景），
       避免聚焦时出现「框套框」。原 .fcfg-add input 的独立边框与 focus 描边已随
       #fcName 迁入 .sbox 一并移除，不要再加回来。 */
    .fcfg-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .fcfg-add > input { flex: 1 1 320px; min-width: 0; padding: 7px 10px; border-radius: 8px;
      border: 1px solid var(--hl-line); background: var(--hl-panel); color: var(--hl-fg); font-size: 13px; }
    .fcfg-add > input:focus { border-color: var(--hl-cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12); }
    .fcfg-add .btn { flex: 0 0 auto; }
    .fcfg-list { margin-top: 10px; border: 1px solid var(--hl-line); border-radius: 10px; overflow: hidden; }
    .fcfg-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--hl-line); }
    .fcfg-row:first-child { border-top: 0; }
    .fcfg-row .grow { flex: 1; }
    .fcfg-row b { font-size: 13px; font-weight: 600; }
    .fcfg-row.off b, .fcfg-row.off .fcfg-idx { opacity: .45; }
    .fcfg-idx { width: 20px; text-align: center; color: var(--hl-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
    .fcfg-note { color: var(--hl-muted); font-size: 12px; }
    .fcfg-sw { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--hl-muted); cursor: pointer; }
    .fcfg-sw input { margin: 0; cursor: pointer; }
    .fcfg-row .icon-btn:disabled { opacity: .3; cursor: default; }
    /* 检索追加（与「今日值班人员」检索框一致）：.sbox 结构 + 候选卡片池 */
    .fcfg-add .sbox { flex: 1 1 auto; min-width: 0; }
    .fcfg-add .sbox input { flex: 1; min-width: 0; padding: 7px 0; border: 0 !important;
      background: transparent !important; box-shadow: none !important; }
    .fcfg .pool { max-height: 212px; overflow: auto; margin-top: 8px; }
    .fcfg .pool .pcard { padding: 7px 9px; }
    .pcard[data-added] { cursor: default; border-color: rgba(52, 211, 153, 0.42);
      background: rgba(52, 211, 153, 0.08); }
    .pcard[data-added] .av { background: rgba(52, 211, 153, 0.16); color: var(--hl-ok-tx); }
    .fcfg-added { font-size: 11px; color: var(--hl-ok-tx); flex: none; white-space: nowrap; }
    /* 空表兜底块：配置表被删空后不再回退内置默认名单，这里给出「载入初始名单」入口 */
    .fcfg-empty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px;
      border: 1px dashed var(--hl-line-2); border-radius: 10px; margin-top: 10px; }
    .fcfg-empty .txt { flex: 1 1 220px; min-width: 0; font-size: 12.5px; color: var(--hl-fg-2); line-height: 1.7; }
    /* 行内删除二次确认：替换该行右侧控件，不新开弹窗（openModal 为单例） */
    .fcfg-delbar { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .fcfg-delbar .ask { font-size: 12px; color: var(--hl-danger-tx); }
    .fcfg-row.is-del { background: rgba(255, 147, 164, 0.08); }
    #fcMsg:empty { display: none; }

    /* ── 固定人员：单位标签（检索池放到全部单位后，用于区分同名 / 判断来源）──
       本院 → 绿标「本院」；外单位 → 蓝标全称（超长省略，title 显全称）；
       人员信息表未登记单位 → 虚线「未收录」 */
    .unt { font-style: normal; font-weight: 600; font-size: 10.5px; line-height: 1.5;
      padding: 1px 6px; border-radius: 99px; vertical-align: 1px;
      display: inline-block; max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .unt.own { color: var(--hl-ok-tx); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.32); }
    .unt.ext { color: var(--hl-cyan); background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.34); }
    .unt.none { color: var(--hl-muted); border: 1px dashed var(--hl-line-2); font-weight: 500; }
    .pcard .info b .unt { margin-left: 6px; }
    .fcfg-row .unt { flex: none; max-width: 168px; font-weight: 500; color: var(--hl-muted); background: transparent; border: 1px solid var(--hl-line-2); }
    .fcfg-row .unt.own { color: var(--hl-ok-tx); border-color: rgba(52, 211, 153, 0.32); }
    .fcfg-row .unt.ext { color: var(--hl-cyan); border-color: rgba(56, 189, 248, 0.34); }
    /* 同名不同人时补的「尾号 xxxx」，与备注区分开 */
    .fcfg-row .fcfg-tel { flex: none; font-size: 11px; color: var(--hl-cyan); font-variant-numeric: tabular-nums; }
    .pchip em.src.ext { color: var(--hl-cyan); background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.3);
      max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    @media (max-width: 640px) {
      .pcard .info b .unt { max-width: 84px; }
      .fcfg-row .unt { max-width: 88px; }
    }

    /* ── 二级窗口（抽屉）─────────────────────────────────
       反馈页专用。手机端自底部升起，桌面端回落为居中弹窗。
       与 .modal 完全分开定义，避免影响既有弹窗调用。 */
    .sheet-mask { position: fixed; inset: 0; z-index: 82; background: rgba(2, 8, 16, 0.58); backdrop-filter: blur(2px); }
    .sheet { position: fixed; z-index: 83; left: 50%; top: 50%; transform: translate(-50%, -50%);
      width: min(680px, 92vw); max-height: 84vh; display: flex; flex-direction: column; overflow: hidden;
      border-radius: 16px; background: var(--hl-panel); border: 1px solid var(--hl-line-2);
      box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5); }
    .sheet-grab { display: none; }
    .sheet-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; flex: 0 0 auto;
      border-bottom: 1px solid var(--hl-line); }
    .sheet-head h3 { font-size: 14.5px; }
    .sheet-sub { font-size: 11.5px; color: var(--hl-muted); white-space: nowrap; }
    .sheet-body { padding: 14px 16px; flex: 1 1 auto; min-height: 0; overflow: auto;
      -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
    .sheet-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 16px;
      flex: 0 0 auto; border-top: 1px solid var(--hl-line); background: var(--hl-panel); }
    .sheet .icon-btn { width: 36px; height: 36px; }
    body.is-lock { overflow: hidden; touch-action: none; }
    .only-mobile { display: none; }

    @media (max-width: 900px) {
      .sheet { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%;
        max-height: 82vh; max-height: 82dvh; border-radius: 16px 16px 0 0; border-bottom: 0; }
      .sheet-grab { display: block; position: relative; height: 18px; flex: 0 0 auto; }
      .sheet-grab::before { content: ''; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px;
        margin-left: -20px; border-radius: 99px; background: var(--hl-line-2); }
      .sheet-head { padding: 2px 14px 10px; }
      .sheet-body { padding: 12px 14px; }
      .sheet-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
      .sheet-foot .btn { flex: 1; min-height: 44px; }
      .sheet .icon-btn { width: 40px; height: 40px; }
      .only-mobile { display: inline-flex; }

      /* 反馈页触控目标：小按钮 36px、常规按钮 40px，避免误触 */
      #fbView .btn.sm { min-height: 36px; padding: 6px 12px; font-size: 12.5px; }
      #fbView .btn { min-height: 40px; }

      /* 输入控件字号 16px：iOS 聚焦时不再自动放大页面 */
      #fbView input[type="text"], #fbView input[type="tel"], #fbView input[type="date"],
      #fbView select, #fbView textarea,
      .sheet input[type="text"], .sheet input[type="tel"], .sheet input[type="date"],
      .sheet select, .sheet textarea { font-size: 16px; min-height: 44px; }
      .sheet textarea, #fbView .fb-panel textarea { min-height: 88px; }

      /* 长文本兜底：长编号 / 链接不顶破卡片 */
      #fbView .fcard, #fbView .log, #fbView .logcard, .sheet { overflow-wrap: anywhere; word-break: break-word; }
      #fbView .fcard { min-width: 0; }
    }

    /* ── 文档预览（打印 / 导出） ── */
    .doc-modal { width: min(1040px, 94vw); max-height: 88vh; display: flex; flex-direction: column; }
    .doc-modal .modal-body.doc-body { padding: 0; background: #e9edf2; overflow: auto; flex: 1; }
    .doc-sheet { background: #fff; color: #111; max-width: 960px; margin: 14px auto; padding: 26px 30px 30px;
      border-radius: 8px; box-shadow: 0 6px 22px rgba(16, 30, 48, 0.16); font-size: 13px; line-height: 1.7;
      font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
    .doc-sheet h1 { font-size: 21px; font-weight: 700; margin: 0 0 10px; letter-spacing: 0.4px; }
    .doc-sheet h2 { font-size: 14.5px; font-weight: 700; margin: 18px 0 8px; padding-left: 8px; border-left: 3px solid #2f6fd0; }
    .doc-sheet .doc-line { margin: 0 0 4px; color: #333; font-size: 12.5px; }
    .doc-sheet .doc-empty { margin: 0; color: #888; font-size: 12.5px; padding: 6px 0; }
    .doc-sheet table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: auto; }
    .doc-sheet th, .doc-sheet td { border: 1px solid #c3ccd6; padding: 5px 7px; text-align: left; vertical-align: top; word-break: break-word; }
    .doc-sheet thead th { background: #eef3f9; font-weight: 600; }
    .doc-sheet tr { break-inside: avoid; }
    .doc-sheet thead { display: table-header-group; }
    .doc-foot { flex-wrap: wrap; row-gap: 8px; }
    .doc-hint { font-size: 11.5px; color: var(--hl-muted); }
    @media (max-width: 640px) {
      .doc-modal { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
      .doc-sheet { margin: 0; border-radius: 0; padding: 16px 12px 22px; font-size: 12px; box-shadow: none; }
      .doc-sheet h1 { font-size: 17px; }
      .doc-hint { display: none; }
      /* 排班：窄屏改为上下排列，班次标签横向 */
      .sch-shift { flex-direction: column; gap: 6px; }
      .sch-lb { width: auto; flex-direction: row; align-items: baseline; gap: 6px; }
      .sch-day-h { padding: 8px 10px; }
      .my-cards { grid-template-columns: 1fr; gap: 8px; }
      .my-card { gap: 10px; padding: 9px 12px; }
      .my-d { min-width: 84px; }
      .my-s i { display: none; }
    }

    .toast-wrap { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 95; display: grid; gap: 8px; }
    .toast { padding: 9px 16px; border-radius: 10px; font-size: 13px; color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); background: #30a46c; }
    .toast.err { background: #e5484d; }

    /* ── 平板及以下：两栏回到单栏（右侧不再等高） ── */
    @media (max-width: 1024px) {
      .pub-grid { display: block; }
      .pub-side { position: static; min-height: 0; }
      .pub-side > .card { position: static; display: block; margin-bottom: 14px; }
      .pub-side .preview { overflow: visible; }
    }

    /* ── 移动端 ── */
    @media (max-width: 900px) {
      .top { padding: 8px 12px; gap: 8px; }
      .brand-text span { display: none; }
      .top-meta { display: none; }
      .top-tools .theme-seg { display: none; }
      .top-tools #tabSeg { display: none; }
      .m-theme { display: grid; }
      .who { min-width: 0; }
      .who b { max-width: 6.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .who { font-size: 11.5px; padding: 4px 8px; }
      .who i { display: none; }
      .wrap { padding: 12px 12px 96px; }
      .mnav { display: block; }
      .card { padding: 12px; border-radius: 14px; }
      .stats { grid-template-columns: repeat(2, 1fr); }
      .ftbl-wrap { border: 0; }
      table.ftbl { min-width: 0; }
      .ftbl thead { display: none; }
      .ftbl tbody tr { display: block; padding: 10px; margin-bottom: 9px; border: 1px solid var(--hl-line); border-radius: 12px; background: var(--hl-panel-2); }
      .ftbl tbody tr.off { opacity: 0.5; }
      .ftbl tbody td { display: block; border: 0; padding: 3px 0; }
      .ftbl tbody td[data-label]::before { content: attr(data-label) "："; color: var(--hl-muted); font-size: 11px; margin-right: 4px; }
      .ftbl tbody td.cell-ck { display: flex; align-items: center; gap: 8px; }
      .tagbox { max-width: none; }
      .fc-list { grid-template-columns: 1fr; }
      .fc-h { flex-wrap: wrap; }
      .fc-ti { flex: 1 1 60%; }
      .fc-badges { order: 3; flex: 1 1 100%; max-width: 100%; justify-content: flex-start; }
      .fc-prev { padding-left: 12px; }
      .fc-imgnote { display: none; }
      .fc-must { padding: 5px 9px; font-size: 11.5px; }
      .fc-stat .fs { padding: 3px 9px; font-size: 11.5px; }
      .fc-nav .nm { order: 5; flex: 1 1 100%; max-width: 100%; }
      .fc-nav .fc-jump { order: 6; flex: 1 1 100%; max-width: 100%; }
      .staff-search { gap: 8px; }
      .sbox { flex: 1 1 100%; }
      .pool { grid-template-columns: 1fr 1fr; }
      .log { grid-template-columns: 52px 1fr; }
      .fbs-imgs img { width: 64px; height: 64px; }
      .fbs-tm { margin-left: 0; flex: 1 1 100%; }
      .fb-hero { gap: 10px; }
      #fbSearch { width: 100%; }
      .fb-hero .row { width: 100%; }
      .fb-hero .row .seg { flex: 1; }
      .fb-hero .row .seg button { flex: 1; }
    }
    @media (max-width: 520px) {
      .pool { grid-template-columns: 1fr; }
      .stats { grid-template-columns: 1fr 1fr; }
      /* 窄屏：本时段统计收进「本时段待反馈」按钮，避免标题行挤压换行 */
      .fs-slot, .fs-slot-sep { display: none !important; }
      .fcfg-add .btn { flex: 1 1 100%; }
    }

    /* ── 打印 / 导出 ── */
    @media print {
      @page { size: A4 landscape; margin: 12mm; }
      body { background: #fff !important; color: #111 !important; }
      .top, .mnav, .no-print, .theme-seg, .seg, .top-tools, .who { display: none !important; }
      .wrap { max-width: none; padding: 0; }
      .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
      .print-only { display: block !important; }
      button { display: none !important; }
      /* 直接打印页面时两栏回到单栏（避免绝对定位裁切） */
      .pub-grid { display: block; }
      .pub-side { position: static; min-height: 0; }
      .pub-side > .card { position: static; display: block; }
      .pub-side .preview { overflow: visible; max-height: none; }

      /* 文档打印：仅输出预览中的文档内容 */
      body.printing-doc > *:not(#modal-root) { display: none !important; }
      body.printing-doc #modal-root { position: static !important; }
      body.printing-doc #modal-root .modal-mask,
      body.printing-doc #modal-root .modal-head,
      body.printing-doc #modal-root .modal-foot { display: none !important; }
      body.printing-doc #modal-root .modal.doc-modal { position: static !important; left: auto !important; top: auto !important;
        transform: none !important; width: auto !important; max-width: none !important; max-height: none !important;
        height: auto !important; overflow: visible !important; box-shadow: none !important; border: 0 !important;
        border-radius: 0 !important; background: #fff !important; display: block !important; }
      body.printing-doc #modal-root .modal-body.doc-body { padding: 0 !important; background: #fff !important;
        overflow: visible !important; max-height: none !important; flex: none !important; }
      body.printing-doc #modal-root .doc-sheet { box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
        margin: 0 !important; padding: 0 !important; max-width: none !important; width: auto !important; }
      body.printing-doc #modal-root .doc-sheet h1 { font-size: 17pt; }
      body.printing-doc #modal-root .doc-sheet h2 { font-size: 12pt; }
      body.printing-doc #modal-root .doc-sheet table { font-size: 8.6pt; }
      body.printing-doc #modal-root .doc-sheet thead th { white-space: nowrap; }
      body.printing-doc #modal-root .doc-sheet th:first-child,
      body.printing-doc #modal-root .doc-sheet td:first-child { width: 30px; text-align: center; }
      body.printing-doc #modal-root .doc-sheet th,
      body.printing-doc #modal-root .doc-sheet td { padding: 3px 4px; }
    }
    .print-only { display: none; }

    /* ── 区域划分图：值班关注列表的第一层入口 ─────────────────── */
    .zmap { margin: 2px 0 12px; }
    .zmap[hidden] { display: none; }
    .zmap-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
    .zmap-head b { font-size: 13px; letter-spacing: 0.01em; }
    .zmap-hint { font-size: 11.5px; color: var(--hl-muted); }
    .zmap-rot { position: relative; }
    .zmap-stage { position: relative; width: min(100%, 720px); aspect-ratio: 5000 / 2812; margin: 0 auto;
      border-radius: 12px; overflow: hidden; border: 1px solid var(--hl-line); background: #0a1421; }
    .zmap-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: fill; }
    .zmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
    .zmap-rect { fill: rgba(56, 189, 248, 0.03); stroke: rgba(125, 175, 230, 0.3); stroke-width: 7;
      cursor: pointer; transition: fill 0.12s ease, stroke 0.12s ease; }
    .zmap-rect:hover, .zmap-rect:focus-visible { fill: rgba(56, 189, 248, 0.2); stroke: #38bdf8; stroke-width: 14; outline: none; }
    .zmap-rect.is-on { fill: rgba(251, 191, 36, 0.22); stroke: #fbbf24; stroke-width: 16; }
    .zmap-rect.is-zero { stroke-dasharray: 28 20; opacity: 0.7; }
    .zmap-lb { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column;
      align-items: center; gap: 1px; pointer-events: none;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.8); }
    .zmap-lb b { font-size: 12px; font-weight: 800; color: #e8f0fb; letter-spacing: 0.02em; }
    .zmap-lb i { font-style: normal; font-size: 10.5px; font-weight: 700; color: #7dd3fc; }
    .zmap-lb.is-on b { color: #fbbf24; }
    .zmap-lb.is-on i { color: #fbbf24; }
    .zmap-lb.is-zero b { color: #9fb3c8; font-weight: 600; }

    .zmap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
    .zchip-i { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--hl-line);
      background: var(--hl-panel-2); color: var(--hl-fg-2); border-radius: 9px; padding: 4px 9px;
      font-size: 11.5px; cursor: pointer; font-family: inherit; }
    .zchip-i b { font-variant-numeric: tabular-nums; color: var(--hl-cyan-tx); font-weight: 700; }
    .zchip-i:hover { border-color: var(--hl-line-2); color: var(--hl-fg); }
    .zchip-i.is-on { border-color: rgba(251, 191, 36, 0.62); background: rgba(251, 191, 36, 0.14); color: #b45309; }
    html:not([data-theme="light"]) .zchip-i.is-on { color: #fbbf24; }
    .zchip-i.is-on b { color: inherit; }
    .zchip-i.is-zero { opacity: 0.55; }

    .zpanel { margin: 0 0 10px; border: 1px solid var(--hl-line); border-radius: 12px;
      background: var(--hl-panel-2); padding: 10px 12px; }
    .zpanel[hidden] { display: none; }
    .zpanel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .zpanel-zone { font-size: 14px; font-weight: 750; }
    .zpanel-meta { font-size: 11.5px; color: var(--hl-muted); }
    .zpanel-head .grow { flex: 1; }
    .zsub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
    .zsub[hidden] { display: none; }
    .zsub-i { border: 1px solid var(--hl-line); background: transparent; color: var(--hl-fg-2);
      border-radius: 8px; padding: 3px 9px; font-size: 11.5px; cursor: pointer; font-family: inherit; }
    .zsub-i b { color: var(--hl-cyan-tx); font-variant-numeric: tabular-nums; }
    /* 选中态用「可读性更强的青色」：日间下 --hl-cyan 对比度仅 3.9，改用深一档 */
    :root { --hl-cyan-ink: #38bdf8; }
    html[data-theme="light"] { --hl-cyan-ink: #0369a1; }
    @media (prefers-color-scheme: light) { html[data-theme="auto"] { --hl-cyan-ink: #0369a1; } }
    .zsub-i.is-on { border-color: var(--hl-cyan-ink); color: var(--hl-cyan-ink); background: rgba(56, 189, 248, 0.12); }
    .zsub-i.is-zero { opacity: 0.5; }

    .fcard .fzone { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
    .zchip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--hl-line);
      border-radius: 7px; padding: 1px 7px; font-size: 11px; color: var(--hl-fg-2); }
    .zchip.is-on { border-color: rgba(251, 191, 36, 0.55); background: rgba(251, 191, 36, 0.12); color: #b45309; }
    html:not([data-theme="light"]) .zchip.is-on { color: #fbbf24; }
    .fcard .zmore { font-size: 11px; color: var(--hl-muted); }

    @media (max-width: 900px) {
      .zmap-head b { font-size: 12.5px; }
      .zmap-hint { font-size: 11px; }
      .zchip-i { padding: 3px 8px; font-size: 11px; }
      .zmap-stage { border-radius: 10px; }
    }

/* ══════════════════ 值班大屏（v41 纯新增） ══════════════════ */
/* 独立配色令牌：只作用于 #bigView，不影响工作台 data-theme */
html[data-bs-theme="dark"] {
  --bs-bg: #0a0e15;
  --bs-panel: #121821;
  --bs-panel-2: #18202c;
  --bs-line: rgba(255, 255, 255, 0.09);
  --bs-line-2: rgba(255, 255, 255, 0.16);
  --bs-fg: #e9f0fa;
  --bs-muted: #9db0c8;
  --bs-cyan: #38bdf8;
  --bs-ok: #34d399;
  --bs-warn: #fbbf24;
  --bs-danger: #ff7a8a;
  --bs-violet: #b8a8ff;
  --bs-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
html[data-bs-theme="light"] {
  --bs-bg: #eef3f9;
  --bs-panel: #ffffff;
  --bs-panel-2: #f5f8fc;
  --bs-line: rgba(15, 40, 70, 0.12);
  --bs-line-2: rgba(15, 40, 70, 0.24);
  --bs-fg: #0d1b2a;
  --bs-muted: #5b7391;
  --bs-cyan: #0284c7;
  --bs-ok: #047857;
  --bs-warn: #b45309;
  --bs-danger: #dc2626;
  --bs-violet: #7c3aed;
  --bs-shadow: 0 14px 34px rgba(16, 44, 78, 0.14);
}

.bs {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  height: 100dvh; overflow: hidden;
  background: var(--bs-bg); color: var(--bs-fg);
  font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.is-bigscreen { overflow: hidden; }
body.is-bigscreen #top, body.is-bigscreen #mnav, body.is-bigscreen .wrap { display: none !important; }

/* ── 头部 ── */
.bs-top {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-bottom: 1px solid var(--bs-line);
  background: linear-gradient(180deg, var(--bs-panel-2), var(--bs-panel));
}
.bs-brand { display: flex; align-items: baseline; gap: 8px; }
.bs-brand b { font-size: 17px; letter-spacing: .5px; color: var(--bs-cyan); }
.bs-brand span { font-size: 15px; font-weight: 700; }
.bs-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bs-grow { flex: 1 1 auto; }
.bs-clock { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.bs-sync { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--bs-muted); }
.bs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bs-ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.bs-sync.is-err .bs-dot { background: var(--bs-warn); box-shadow: 0 0 0 3px rgba(251, 191, 36, .18); }
.bs-sync.is-err { color: var(--bs-warn); }
.bs-seg { display: inline-flex; border: 1px solid var(--bs-line-2); border-radius: 9px; overflow: hidden; }
.bs-seg button {
  appearance: none; border: 0; background: transparent; color: var(--bs-muted);
  font-size: 12.5px; padding: 6px 11px; cursor: pointer;
}
.bs-seg button.is-on { background: var(--bs-cyan); color: #062033; font-weight: 700; }
html[data-bs-theme="light"] .bs-seg button.is-on { color: #fff; }
.bs-ico {
  appearance: none; border: 1px solid var(--bs-line-2); background: transparent;
  color: var(--bs-fg); border-radius: 9px; padding: 6px 11px; font-size: 13px; cursor: pointer;
}
.bs-ico:hover { border-color: var(--bs-cyan); color: var(--bs-cyan); }
.bs-back { border-color: var(--bs-cyan); color: var(--bs-cyan); }

/* ── 主体三栏：历史（可折叠）| 区域划分图 | 实时反馈列表 ── */
.bs-body {
  flex: 1 1 auto; min-height: 0;
  display: grid;
  grid-template-columns: clamp(300px, 22vw, 380px) minmax(0, 1fr) clamp(320px, 26vw, 420px);
  gap: 14px; padding: 14px 18px 18px;
}
.bs-hist { grid-column: 1; }
.bs-fold { display: none; }
.bs-stage { grid-column: 2; }
.bs-feed { grid-column: 3; }
#bigView.is-fold .bs-body {
  grid-template-columns: 28px minmax(0, 1fr) clamp(320px, 26vw, 420px);
}
#bigView.is-fold .bs-hist { display: none; }
#bigView.is-fold .bs-fold { display: flex; grid-column: 1; }
#bigView.is-fold .bs-stage { grid-column: 2; }
#bigView.is-fold .bs-feed { grid-column: 3; }

.bs-hist, .bs-stage, .bs-feed {
  min-height: 0; overflow: auto; background: var(--bs-panel);
  border: 1px solid var(--bs-line); border-radius: 14px; padding: 14px;
  box-shadow: var(--bs-shadow);
}
.bs-stage { overflow: hidden; display: flex; flex-direction: column; gap: 10px; }

/* 折叠把手（折叠后显示在左边缘） */
.bs-fold {
  appearance: none; padding: 0; cursor: pointer;
  align-items: center; justify-content: center;
  background: var(--bs-panel); border: 1px solid var(--bs-line); border-radius: 14px;
  color: var(--bs-muted); font-size: 12px; letter-spacing: 3px;
  writing-mode: vertical-rl; box-shadow: var(--bs-shadow);
}
.bs-fold span { padding: 14px 0; }
.bs-fold:hover { border-color: var(--bs-cyan); color: var(--bs-cyan); }
/* 历史区头部的折叠按钮 */
.bs-fold-btn {
  appearance: none; border: 1px solid var(--bs-line-2); background: transparent;
  color: var(--bs-muted); border-radius: 8px; padding: 3px 8px; font-size: 11px; cursor: pointer;
}
.bs-fold-btn:hover { border-color: var(--bs-cyan); color: var(--bs-cyan); }
.bs-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.bs-hd b { font-size: 15px; }
.bs-sub { font-size: 12px; color: var(--bs-muted); }
.bs-tabs { display: inline-flex; border: 1px solid var(--bs-line-2); border-radius: 8px; overflow: hidden; }
.bs-tabs button { appearance: none; border: 0; background: transparent; color: var(--bs-muted); font-size: 12px; padding: 4px 9px; cursor: pointer; }
.bs-tabs button.is-on { background: var(--bs-panel-2); color: var(--bs-fg); font-weight: 700; }

/* ── 历史列表 ── */
.bs-day { border-bottom: 1px dashed var(--bs-line); padding: 8px 0; }
.bs-day:last-child { border-bottom: 0; }
.bs-day-hd { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--bs-muted); }
.bs-day-hd b { color: var(--bs-fg); font-size: 13.5px; }
.bs-today { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--bs-cyan); color: #062033; font-weight: 700; }
html[data-bs-theme="light"] .bs-today { color: #fff; }
.bs-abn { font-style: normal; color: var(--bs-danger); font-size: 11.5px; }
.bs-cnt { font-variant-numeric: tabular-nums; }
.bs-shift { border-radius: 10px; }
.bs-shift-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 6px;
  border-radius: 10px; cursor: pointer; outline: none;
}
.bs-shift-row:hover, .bs-shift-row:focus-visible { background: var(--bs-panel-2); }
.bs-shift.is-open .bs-chev { transform: rotate(90deg); }
.bs-chev { transition: transform .16s ease; color: var(--bs-muted); font-size: 12px; }
.bs-tag { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; font-weight: 700; }
.bs-tag.info { background: rgba(56, 189, 248, .16); color: var(--bs-cyan); }
.bs-tag.violet { background: rgba(184, 168, 255, .16); color: var(--bs-violet); }
.bs-names { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-badge { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--bs-line-2); color: var(--bs-muted); font-variant-numeric: tabular-nums; }
.bs-badge.warn { border-color: var(--bs-danger); color: var(--bs-danger); }
.bs-dot-abn { width: 7px; height: 7px; border-radius: 50%; background: var(--bs-danger); }
.bs-shift-detail { padding: 6px 8px 10px; display: flex; flex-direction: column; gap: 7px; }
.bs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-chip { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--bs-line-2); color: var(--bs-muted); }
.bs-chip.mini { font-size: 11px; padding: 1px 7px; }
.bs-chip.mini.top { color: var(--bs-cyan); border-color: rgba(56, 189, 248, .55); background: rgba(56, 189, 248, .1); }
.bs-chip.info { color: var(--bs-cyan); border-color: var(--bs-cyan); }
.bs-chip.ok { color: var(--bs-ok); border-color: var(--bs-ok); }
.bs-chip.plain { color: var(--bs-muted); }
.bs-chip.warn { color: var(--bs-warn); border-color: var(--bs-warn); }
.bs-chip.danger { color: var(--bs-danger); border-color: var(--bs-danger); }
.bs-chip.violet { color: var(--bs-violet); border-color: var(--bs-violet); }
.bs-chip.risk-0 { color: var(--bs-danger); border-color: var(--bs-danger); }
.bs-chip.risk-1 { color: var(--bs-warn); border-color: var(--bs-warn); }
.bs-line { font-size: 12.5px; color: var(--bs-muted); }
.bs-mini-log { display: flex; flex-direction: column; gap: 3px; }
.bs-mini-log span { font-size: 12px; }
.bs-v { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 6px; font-weight: 700; }
.bs-v.ok { background: rgba(52, 211, 153, .16); color: var(--bs-ok); }
.bs-v.danger { background: rgba(255, 122, 138, .16); color: var(--bs-danger); }
.bs-v.plain { background: rgba(157, 176, 200, .16); color: var(--bs-muted); }
.bs-v.violet { background: rgba(184, 168, 255, .16); color: var(--bs-violet); }
.bs-more {
  appearance: none; border: 1px solid var(--bs-line-2); background: transparent;
  color: var(--bs-fg); border-radius: 9px; padding: 6px 12px; font-size: 12.5px; cursor: pointer;
}
.bs-more:hover { border-color: var(--bs-cyan); color: var(--bs-cyan); }
.bs-hist-foot { padding-top: 10px; text-align: center; }
.bs-empty { padding: 26px 10px; text-align: center; color: var(--bs-muted); font-size: 13px; }
.bs-empty.big { font-size: 16px; line-height: 1.9; }
.bs-empty.big span { font-size: 13px; }

/* ── 实时区 ── */
.bs-kpis { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bs-kpi { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12px; color: var(--bs-muted); }
.bs-kpi i { font-style: normal; }
.bs-kpi b { font-size: 15px; color: var(--bs-fg); font-variant-numeric: tabular-nums; }
.bs-kpi.danger b { color: var(--bs-danger); }
.bs-kpi.violet b { color: var(--bs-violet); }
.bs-other {
  width: 100%; display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
  appearance: none; background: var(--bs-panel-2); border: 1px dashed var(--bs-line-2);
  border-radius: 10px; padding: 8px 12px; color: var(--bs-muted); font-size: 12.5px; cursor: pointer;
}
.bs-other:hover { border-color: var(--bs-cyan); color: var(--bs-fg); }
.bs-other-tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.bs-card {
  --tone: var(--bs-line-2);
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--bs-panel-2); border: 1.5px solid var(--tone);
  border-radius: 12px; padding: 12px 13px; min-width: 0; overflow: hidden;
  /* 浏览器会把 1.5px 边框取整为 1px，用同色内环补足到 2px 视觉厚度 */
  box-shadow: inset 0 0 0 1px var(--tone), 0 0 14px -8px var(--tone);
}
.bs-card:focus-visible { outline: 2px solid var(--bs-cyan); outline-offset: 2px; }
/* hover 只加强同色光晕，不改变状态色语义 */
.bs-card:not(.idle):hover { box-shadow: inset 0 0 0 1px var(--tone), 0 0 20px -6px var(--tone); }
.bs-card.lg { grid-column: span 4; grid-row: span 2; padding: 18px 20px; gap: 10px; }
.bs-card.sm { min-height: 0; }
.bs-card.tone-ok { --tone: var(--bs-ok); }
.bs-card.tone-danger { --tone: var(--bs-danger); }
.bs-card.tone-plain { --tone: var(--bs-muted); }
.bs-card.tone-violet { --tone: var(--bs-violet); }
.bs-card.idle, .bs-card.is-empty {
  --tone: var(--bs-line-2);
  border-style: dashed; background: transparent; box-shadow: none;
}
.bs-card-hd { display: flex; align-items: center; gap: 8px; }
.bs-when { font-size: 11.5px; color: var(--bs-muted); font-variant-numeric: tabular-nums; }
.bs-card-title {
  margin: 0; font-size: 13.5px; line-height: 1.45; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bs-card.lg .bs-card-title { font-size: 22px; -webkit-line-clamp: 2; }
.bs-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-card-body {
  margin: 0; font-size: 12.5px; color: var(--bs-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bs-card.lg .bs-card-body { font-size: 14px; -webkit-line-clamp: 3; color: var(--bs-fg); opacity: .88; }
.bs-card-act { margin: 0; font-size: 12px; color: var(--bs-muted); }
.bs-card-act i { font-style: normal; color: var(--bs-cyan); margin-right: 6px; }
.bs-card-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.bs-who { font-size: 12px; color: var(--bs-fg); }
.bs-time { font-size: 11.5px; color: var(--bs-muted); font-variant-numeric: tabular-nums; }
/* 卡片缩略图组（多图，点击全屏预览） */
.bs-thumbs { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.bs-thumb {
  width: 44px; height: 32px; object-fit: cover; flex: none;
  border-radius: 6px; border: 1px solid var(--bs-line-2); cursor: zoom-in;
}
.bs-thumb:hover { border-color: var(--bs-cyan); }
.bs-thumb-more { font-style: normal; font-size: 10.5px; color: var(--bs-muted); padding-left: 1px; }
.bs-risk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bs-muted); }
.bs-risk-dot.r0 { background: var(--bs-danger); }
.bs-risk-dot.r1 { background: var(--bs-warn); }
.bs-risk-dot.r2 { background: var(--bs-ok); }
.bs-rest { margin-top: 12px; font-size: 12.5px; color: var(--bs-muted); display: flex; align-items: center; gap: 8px; }
.bs-card.is-new { animation: bsNew 2s ease-out 1; }
@keyframes bsNew {
  0% { outline: 2px solid var(--bs-cyan); outline-offset: 0; }
  100% { outline: 2px solid transparent; outline-offset: 7px; }
}

/* ── 详情抽屉 ── */
.bs-modal { width: min(760px, 94vw); max-height: 88vh; }
.bs-detail { display: flex; flex-direction: column; gap: 16px; overflow: auto; }
.bs-detail section h4 { margin: 0 0 8px; font-size: 13.5px; }
.bs-muted { color: var(--hl-muted); font-size: 12.5px; margin: 0; }
.bs-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bs-table th, .bs-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--hl-line); }
.bs-table th { color: var(--hl-muted); font-weight: 600; }
.bs-log { border: 1px solid var(--hl-line); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; }
.bs-log-hd { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bs-log-meta { font-size: 11.5px; color: var(--hl-muted); margin-top: 3px; }
.bs-log p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; }
.bs-log-act i { font-style: normal; color: var(--hl-cyan); margin-right: 6px; }
.bs-log-img { margin-top: 8px; max-width: 180px; border-radius: 8px; border: 1px solid var(--hl-line); }
.bs-focus { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--hl-line); font-size: 12.5px; }
.bs-focus b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══ 区域划分图 + 连线 + 最新 3 条 ══════════════════════════ */
.bs-zone-wrap {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.bs-zone { position: relative; flex: none; margin: 0 auto; }
.bs-zone-img {
  display: block; width: 100%; height: 100%; object-fit: fill;
  border-radius: 10px; opacity: .9;
}
.bs-zone-rect { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bs-zr {
  fill: rgba(120, 140, 170, .05); stroke: rgba(120, 140, 170, .3); stroke-width: 2;
  pointer-events: all; cursor: pointer; transition: fill .16s ease, stroke .16s ease;
}
.bs-zr.has { fill: rgba(56, 189, 248, .1); stroke: rgba(56, 189, 248, .55); }
.bs-zr.abn { fill: rgba(255, 122, 138, .14); stroke: rgba(255, 122, 138, .85); stroke-width: 3; }
.bs-zr.is-on { fill: rgba(56, 189, 248, .22); stroke: var(--bs-cyan); stroke-width: 4; }
.bs-zr:hover { stroke: var(--bs-cyan); }
/* 筛选态：非选中区域整体淡化，一眼看出筛选范围 */
.bs-zone.is-filter .bs-zr:not(.is-on) { opacity: .4; }
.bs-zone.is-filter .bs-zlb:not(.is-on) { opacity: .4; }
.bs-zone.is-filter .bs-zr:not(.is-on):hover { opacity: .8; }
.bs-zone-lbs { position: absolute; inset: 0; pointer-events: none; }
.bs-zlb {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap;
  font-size: 11.5px; font-weight: 700; color: var(--bs-muted);
  background: rgba(6, 18, 30, .62); border: 1px solid transparent;
  border-radius: 999px; padding: 1px 7px;
  pointer-events: none; cursor: default;
}
.bs-zlb i { font-style: normal; font-size: 10.5px; color: var(--bs-cyan); }
.bs-zlb.has { color: var(--bs-fg); border-color: rgba(56, 189, 248, .5); }
.bs-zlb.abn { color: #fff; border-color: var(--bs-danger); background: rgba(120, 20, 32, .72); }
.bs-zlb.abn i { color: #ffd7dc; }
.bs-zlb.is-on { border-color: var(--bs-cyan); box-shadow: 0 0 0 2px rgba(56, 189, 248, .28); }
html[data-bs-theme="light"] .bs-zlb { background: rgba(255, 255, 255, .8); }
html[data-bs-theme="light"] .bs-zlb.abn { color: #7a1220; background: rgba(255, 226, 230, .9); }
/* 底图缺失时降级为网格底 */
.bs-zone.no-img .bs-zone-img { display: none; }
.bs-zone.no-img {
  border: 1px dashed var(--bs-line-2); border-radius: 10px;
  background: repeating-linear-gradient(45deg, rgba(120, 140, 170, .06) 0 10px, transparent 10px 20px);
}
.bs-legend { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; color: var(--bs-muted); }
.bs-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.bs-legend .lg-0 { background: rgba(120, 140, 170, .18); border: 1px solid rgba(120, 140, 170, .4); }
.bs-legend .lg-1 { background: rgba(56, 189, 248, .18); border: 1px solid rgba(56, 189, 248, .6); }
.bs-legend .lg-2 { background: rgba(255, 122, 138, .2); border: 1px solid rgba(255, 122, 138, .85); }

/* 连线层：覆盖整个区域图 + 卡片条 */
.bs-wire { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; overflow: visible; }
.bs-wp { fill: none; stroke: rgba(56, 189, 248, .55); stroke-width: 2; stroke-linecap: round; }
.bs-wp.alt { stroke: rgba(56, 189, 248, .3); stroke-width: 1.2; stroke-dasharray: 5 5; }
.bs-wd { fill: var(--bs-cyan); }
.bs-wd.alt { fill: none; stroke: rgba(56, 189, 248, .5); stroke-width: 1.2; }
html[data-bs-theme="light"] .bs-wp { stroke: rgba(2, 132, 199, .6); }
html[data-bs-theme="light"] .bs-wp.alt { stroke: rgba(2, 132, 199, .32); }
html[data-bs-theme="light"] .bs-wd { fill: #0284c7; }
html[data-bs-theme="light"] .bs-wd.alt { stroke: rgba(2, 132, 199, .55); }

/* ── 连线动态光效（仅最新 3 条主线，纯呈现层）─────────────────
   在原 path 之上叠一条「流光」副本，不改连线几何、层级与数据；
   pathLength=100 把长度归一化，短/长连线的流光节奏一致。
   配色沿用卡片 tone：ok=青 / danger=红 / violet=紫 / plain=灰 */
.bs-wp-flow {
  --flow-c: var(--bs-cyan);
  fill: none; stroke: var(--flow-c); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 7 93;
  animation: bsFlowRun var(--flow-dur, 2.6s) linear infinite;
  animation-delay: var(--flow-delay, 0s);
  filter: drop-shadow(0 0 3px var(--flow-c));
  pointer-events: none;
}
.bs-wp-flow.tone-danger { --flow-c: var(--bs-danger); }
.bs-wp-flow.tone-violet { --flow-c: var(--bs-violet); }
.bs-wp-flow.tone-plain { --flow-c: var(--bs-muted); }
@keyframes bsFlowRun {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
/* 端点呼吸：与流光同周期，强化「这条反馈落在哪个区域」的落点感 */
.bs-wd.flow {
  --flow-c: var(--bs-cyan);
  animation: bsWdPulse var(--flow-dur, 2.6s) ease-in-out infinite;
  animation-delay: var(--flow-delay, 0s);
}
.bs-wd.flow.tone-danger { --flow-c: var(--bs-danger); }
.bs-wd.flow.tone-violet { --flow-c: var(--bs-violet); }
.bs-wd.flow.tone-plain { --flow-c: var(--bs-muted); }
@keyframes bsWdPulse {
  0%, 100% { filter: drop-shadow(0 0 2px var(--flow-c)); opacity: .8; }
  50% { filter: drop-shadow(0 0 7px var(--flow-c)); opacity: 1; }
}

/* 最新 3 条卡片条 */
.bs-pins {
  flex: none; position: relative; z-index: 4; height: 132px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.bs-pin {
  --tone: var(--bs-line-2);
  position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0;
  background: var(--bs-panel-2); border: 1.5px solid var(--tone); border-radius: 10px;
  padding: 8px 10px; overflow: hidden; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--tone), 0 0 12px -7px var(--tone);
}
.bs-pin:hover, .bs-pin:focus-visible { --tone: var(--bs-cyan); border-color: var(--bs-cyan); outline: none; }
.bs-pin.tone-ok { --tone: var(--bs-ok); }
.bs-pin.tone-danger { --tone: var(--bs-danger); }
.bs-pin.tone-plain { --tone: var(--bs-muted); }
.bs-pin.tone-violet { --tone: var(--bs-violet); }
.bs-pin.is-empty { --tone: var(--bs-line-2); border-style: dashed; background: transparent; cursor: default; opacity: .5; }
.bs-pin-hd { display: flex; align-items: center; gap: 6px; }
.bs-pin-no {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
  background: var(--bs-cyan); color: #062033;
}
html[data-bs-theme="light"] .bs-pin-no { color: #fff; }
.bs-pin-zone {
  font-size: 11px; padding: 1px 6px; border-radius: 6px; white-space: nowrap;
  background: rgba(56, 189, 248, .14); color: var(--bs-cyan);
}
.bs-pin-zone.is-none { background: rgba(157, 176, 200, .14); color: var(--bs-muted); }
.bs-pin-title {
  margin: 0; font-size: 12.5px; line-height: 1.4; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.bs-pin-body {
  margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--bs-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bs-pin-ft { display: flex; align-items: center; gap: 6px; margin-top: auto; }

/* 区域筛选提示 */
.bs-filter {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  padding: 6px 10px; border-radius: 9px; font-size: 12px; color: var(--bs-fg);
  background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .4);
}

/* ══ 任务详情抽屉 ══════════════════════════════════════════ */
.bs-task { width: min(860px, 94vw); max-height: 88vh; }
body.is-bigscreen .modal {
  --hl-panel: var(--bs-panel);
  --hl-fg: var(--bs-fg);
  --hl-line: var(--bs-line);
  --hl-line-2: var(--bs-line-2);
  --hl-muted: var(--bs-muted);
  --hl-cyan: var(--bs-cyan);
  background: var(--bs-panel); color: var(--bs-fg);
}
.bs-tx { margin: 8px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--bs-fg); opacity: .9; }
.bs-tx i { font-style: normal; color: var(--bs-cyan); margin-right: 6px; }
.bs-log-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bs-log-im {
  position: relative; display: inline-flex; border-radius: 9px; overflow: hidden;
  line-height: 0;
}
.bs-log-im::after {
  content: '↗'; position: absolute; right: 4px; bottom: 4px;
  width: 18px; height: 18px; display: grid; place-items: center;
  border-radius: 5px; background: rgba(2, 8, 16, .66); color: #fff;
  font-size: 11px; line-height: 1; pointer-events: none;
}
.bs-log-imgs img {
  width: 120px; height: 90px; object-fit: cover; border-radius: 9px;
  border: 1px solid var(--bs-line); cursor: zoom-in;
}
.bs-log-imgs img:hover { border-color: var(--bs-cyan); }
.bs-same { display: flex; flex-direction: column; gap: 4px; }
.bs-same-i {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  padding: 5px 0; border-bottom: 1px dashed var(--bs-line);
}
.bs-same-i b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 断点 ── */
@media (max-width: 1599px) {
  .bs-clock { font-size: 20px; }
  .bs-body { grid-template-columns: clamp(280px, 20vw, 340px) minmax(0, 1fr) clamp(300px, 24vw, 380px); }
  #bigView.is-fold .bs-body { grid-template-columns: 28px minmax(0, 1fr) clamp(300px, 24vw, 380px); }
}
@media (max-width: 1279px) {
  .bs-body {
    grid-template-columns: clamp(260px, 22vw, 300px) minmax(0, 1fr) clamp(280px, 24vw, 320px);
    gap: 12px; padding: 12px;
  }
  #bigView.is-fold .bs-body { grid-template-columns: 26px minmax(0, 1fr) clamp(280px, 24vw, 320px); }
  .bs-meta { display: none; }
  .bs-legend { display: none; }
  .bs-pins { height: 120px; }
  .bs-pin-body { -webkit-line-clamp: 1; }
}
/* 1099 以下：区域图 + 列表两栏，历史区改为侧滑浮层 */
@media (max-width: 1099px) {
  .bs-top { flex-wrap: wrap; row-gap: 8px; padding: 10px 12px; }
  .bs-clock { font-size: 18px; }
  .bs-body { grid-template-columns: minmax(0, 1fr) clamp(280px, 34vw, 340px); }
  #bigView.is-fold .bs-body { grid-template-columns: minmax(0, 1fr) clamp(280px, 34vw, 340px); }
  .bs-stage { grid-column: 1; }
  .bs-feed { grid-column: 2; }
  #bigView.is-fold .bs-stage { grid-column: 1; }
  #bigView.is-fold .bs-feed { grid-column: 2; }
  #bigView .bs-hist {
    display: block; position: fixed; left: 0; top: 0; bottom: 0; z-index: 90;
    width: min(360px, 86vw); border-radius: 0 14px 14px 0;
    transform: translateX(-102%); transition: transform .2s ease;
  }
  #bigView:not(.is-fold) .bs-hist { transform: translateX(0); }
  #bigView.is-fold .bs-hist { display: block; transform: translateX(-102%); }
  #bigView.is-fold .bs-fold {
    display: flex; position: fixed; left: 0; top: 50%; transform: translateY(-50%);
    z-index: 91; width: 26px; height: 120px; grid-column: auto;
  }
}
/* 899 以下：单栏堆叠（区域图 → 最新 3 条 → 列表） */
@media (max-width: 899px) {
  .bs-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  #bigView.is-fold .bs-body { grid-template-columns: minmax(0, 1fr); }
  .bs-stage { grid-column: 1; grid-row: 1; }
  .bs-feed { grid-column: 1; grid-row: 2; max-height: 44vh; }
  #bigView.is-fold .bs-stage { grid-column: 1; }
  #bigView.is-fold .bs-feed { grid-column: 1; }
  .bs-pins { height: auto; }
  .bs-pin { padding: 6px 8px; }
  .bs-pin-body { display: none; }
  .bs-card.lg { grid-column: span 1; grid-row: auto; padding: 14px; }
  .bs-card.lg .bs-card-title { font-size: 18px; }
  .bs-brand span { font-size: 13.5px; }
  .bs-back { padding: 6px 9px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-card.is-new { animation: none; outline: 1px dashed var(--bs-cyan); outline-offset: 2px; }
  .bs-chev { transition: none; }
  /* 光效降级：关动画，改整条静态高亮，保留「这是最新 3 条」的辨识度 */
  .bs-wp-flow { animation: none; stroke-dasharray: none; opacity: .85; }
  .bs-wd.flow { animation: none; }
}
@media print {
  .bs { display: none !important; }
  .imgview { display: none !important; }
}
