
    /* ── 工业控制台暗色主题 v2（对齐 HL-3 主机厅系统视觉） ── */
    /* 主背景不用纯黑（#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-ok: #34d399;
      --hl-warn: #fbbf24;
      --hl-danger: #ff93a4;
      --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;

      --ss-bg: #10141c;
      --ss-fg: #eef3fa;
      --ss-muted: #d3dfee;
      --ss-border: rgba(158, 182, 214, 0.2);
      --ss-card: #1c2029;
      --ss-card-fg: #eef3fa;
      --ss-primary: #38bdf8;
      --ss-primary-fg: #04121f;
      --ss-danger: #ff93a4;
      --ss-radius: 16px;
    }

    body {
      min-height: 100vh;
      background:
        radial-gradient(1100px 560px at 82% -12%, 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;
    }
    h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: 0.01em; }
    p { margin: 0; }
    button { font-family: inherit; }
    /* hidden 属性优先（否则 .boot/.shell 的 display:flex 会盖掉 UA 的 display:none） */
    [hidden] { display: none !important; }

    /* ── 启动屏 ── */
    .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.144), transparent 68%),
        var(--hl-bg);
    }
    .boot-mark {
      font-size: 42px; font-weight: 800; letter-spacing: 0.16em;
      color: #dff2ff; text-shadow: 0 0 34px rgba(56, 189, 248, 0.55);
    }
    .boot-title { color: var(--hl-fg-2); font-size: 15px; letter-spacing: 0.08em; }
    .boot-bar { width: 168px; height: 3px; border-radius: 99px; background: rgba(125, 175, 230, 0.16); overflow: hidden; }
    .boot-bar > span { display: block; width: 40%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--hl-cyan)); animation: bootRun 1.2s ease-in-out infinite; }
    @keyframes bootRun { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }
    .boot-hint { color: var(--hl-muted); font-size: 12.5px; }

    /* ── 骨架布局 ── */
    .shell { display: flex; min-height: 100vh; }
    .sidebar {
      flex: 0 0 236px; width: 236px;
      display: flex; flex-direction: column; gap: 20px;
      padding: 22px 16px 18px;
      border-right: 1px solid var(--hl-line);
      background: linear-gradient(180deg, rgba(25, 35, 50, 0.94), rgba(22, 26, 34, 0.94));
      position: sticky; top: 0; height: 100vh;
    }
    .brand { display: flex; align-items: center; gap: 11px; }
    .brand-mark {
      width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px;
      display: grid; place-items: center;
      font-weight: 800; font-size: 13px; letter-spacing: 0.04em; color: #04121f;
      background: linear-gradient(135deg, #7dd3fc, #38bdf8 55%, #22d3ee);
      box-shadow: 0 8px 22px rgba(56, 189, 248, 0.32);
    }
    .brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
    .brand-text strong { font-size: 13.5px; }
    .brand-text span { font-size: 11.5px; color: var(--hl-muted); }

    .nav { display: flex; flex-direction: column; gap: 6px; }
    .nav-item {
      display: flex; align-items: center; gap: 10px;
      padding: 11px 12px; min-height: 44px;
      border: 1px solid transparent; border-radius: 12px;
      background: transparent; color: var(--hl-fg-2);
      font-size: 13.5px; text-align: left; cursor: pointer;
      transition: background 0.18s, border-color 0.18s, color 0.18s;
    }
    .nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: 0.9; }
    .nav-item:hover { background: rgba(125, 175, 230, 0.08); color: var(--hl-fg); }
    .nav-item.is-active {
      background: linear-gradient(120deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.06));
      border-color: rgba(56, 189, 248, 0.36); color: #eaf7ff;
      box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.06);
    }
    .nav-badge {
      margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
      border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 700;
      display: grid; place-items: center;
      background: rgba(251, 191, 36, 0.18); color: var(--hl-warn-tx);
    }
    .nav-badge:empty { display: none; }

    /* ── 当前模块 / 跨页切换 ── */
    .mod-card {
      display: flex; flex-direction: column; gap: 8px;
      padding: 13px 13px 14px; border-radius: 14px;
      border: 1px solid rgba(56, 189, 248, 0.3);
      background: linear-gradient(150deg, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0.04));
    }
    .mod-label { font-size: 11px; color: var(--hl-muted); letter-spacing: 0.08em; }
    .mod-name { font-size: 15px; font-weight: 750; color: #eaf7ff; line-height: 1.3; }
    .mod-switch { width: 100%; margin-top: 2px; text-decoration: none; }
    .mod-pill {
      flex: 1 1 auto; display: flex; align-items: center;
      font-size: 12.5px; color: var(--hl-fg-2); padding-left: 4px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    a.btn { text-decoration: none; }

    .side-card {
      margin-top: auto;
      padding: 13px 13px 14px; border-radius: 14px;
      border: 1px solid var(--hl-line); background: rgba(24, 32, 44, 0.7);
    }
    .side-card-title { font-size: 12.5px; font-weight: 650; color: var(--hl-fg-2); margin-bottom: 6px; }
    .side-card p { font-size: 11.5px; line-height: 1.6; color: var(--hl-muted); }
    .sync-line { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 11.5px; color: var(--hl-ok-tx); }
    .side-foot { font-size: 11px; color: rgba(180, 198, 220, 0.95); }

    .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--hl-ok); flex: 0 0 7px; }
    .dot.is-live { animation: pulse 1.8s ease-in-out infinite; }
    @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); } }

    .main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
    .topbar {
      display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
      padding: 18px 22px 14px;
      border-bottom: 1px solid var(--hl-line);
      backdrop-filter: blur(8px);
      position: sticky; top: 0; z-index: 20;
      background: rgba(22, 26, 34, 0.72);
    }
    .topbar-main { min-width: 0; }
    .topbar h1 { font-size: 18px; letter-spacing: 0.02em; }
    .topbar p { font-size: 12px; color: var(--hl-muted); margin-top: 3px; }
    .topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
    .sync-pill {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 6px 11px; border-radius: 99px; font-size: 11.5px;
      color: var(--hl-ok-tx); background: rgba(52, 211, 153, 0.1);
      border: 1px solid rgba(52, 211, 153, 0.28); white-space: nowrap;
    }
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      min-height: 38px; padding: 0 14px; border-radius: 10px;
      border: 1px solid var(--hl-line-2); background: rgba(32, 45, 64, 0.8);
      color: var(--hl-fg-2); font-size: 13px; cursor: pointer;
      transition: transform 0.12s, background 0.18s, border-color 0.18s, opacity 0.18s;
    }
    .btn:hover { background: rgba(30, 48, 72, 0.9); color: var(--hl-fg); }
    .btn:active { transform: translateY(1px); }
    .btn:disabled { opacity: 0.55; cursor: not-allowed; }
    .btn.ghost { background: transparent; }
    .btn.primary {
      border-color: transparent; color: #04121f; font-weight: 700;
      background: linear-gradient(120deg, #7dd3fc, #38bdf8 60%, #22d3ee);
      box-shadow: 0 8px 20px rgba(56, 189, 248, 0.28);
    }
    .btn.primary:hover { color: #04121f; filter: brightness(1.05); }
    .btn.danger { border-color: rgba(251, 113, 133, 0.45); color: #ffd9df; background: rgba(251, 113, 133, 0.16); }
    .btn.ok { border-color: rgba(52, 211, 153, 0.42); color: #ccfbe8; background: rgba(52, 211, 153, 0.14); }
    .btn.sm { min-height: 34px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }

    .content { padding: 18px 22px 96px; }
    .view { display: none; }
    .view.is-active { display: block; animation: fadeUp 0.28s ease; }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

    /* ── 卡片 ── */
    .card {
      border: 1px solid var(--hl-line); border-radius: var(--hl-radius);
      background: var(--hl-panel);
      box-shadow: 0 14px 34px rgba(2, 6, 14, 0.36);
      padding: 16px 16px 18px;
      min-width: 0;
    }
    .card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
    .card-head h2 { font-size: 14px; }
    .card-hint { font-size: 11.5px; color: var(--hl-muted); margin-left: auto; }

    .layout-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
    .layout-2 + .layout-2 { margin-top: 14px; }

    /* ── 表单 ── */
    .form { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
    .field > span, .field > label { font-size: 12px; color: var(--hl-muted); }
    .field i { color: var(--hl-danger-tx); font-style: normal; }
    .field input, .field select, .field textarea {
      width: 100%; padding: 10px 11px; border-radius: 10px;
      border: 1px solid var(--hl-line-2); background: rgba(21, 27, 37, 0.78);
      color: var(--hl-fg); font-size: 16px; font-family: inherit;
      transition: border-color 0.18s, box-shadow 0.18s;
      -webkit-appearance: none; appearance: none;
    }
    .field textarea { resize: vertical; line-height: 1.6; }
    .field input::placeholder, .field textarea::placeholder { color: rgba(168, 188, 212, 0.9); }
    .field input:focus, .field select:focus, .field textarea:focus {
      outline: none; border-color: rgba(56, 189, 248, 0.7);
      box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
    }
    .field select {
      background-image: linear-gradient(45deg, transparent 50%, var(--hl-muted) 50%), linear-gradient(135deg, var(--hl-muted) 50%, transparent 50%);
      background-position: calc(100% - 17px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
      background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
      padding-right: 32px;
    }
    .field select option { background: #0f1928; color: var(--hl-fg); }
    .form-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
    .form-note { font-size: 11.5px; color: var(--hl-muted); }
    .form-foot .btn { flex: 1 1 160px; }

    /* ── 任务卡片列表 ── */
    .task-list { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow-y: auto; padding-right: 2px; }
    .task-item {
      border: 1px solid var(--hl-line); border-radius: 13px;
      background: rgba(24, 32, 44, 0.72); padding: 12px 13px;
      transition: border-color 0.18s, transform 0.18s;
    }
    .task-item:hover { border-color: var(--hl-line-2); transform: translateY(-1px); }
    .task-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
    .task-code { font-size: 11px; color: var(--hl-muted); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
    .task-name { font-size: 13.5px; line-height: 1.45; }
    .task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11.5px; color: var(--hl-muted); margin-top: 5px; }
    .task-meta i { font-style: normal; opacity: 0.5; }
    .task-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .chip {
      padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 650;
      border: 1px solid transparent; white-space: nowrap;
    }
    .chip.warn { color: var(--hl-warn-tx); background: rgba(251, 191, 36, 0.09); border-color: rgba(251, 191, 36, 0.32); }
    .chip.ok { color: var(--hl-ok-tx); background: rgba(52, 211, 153, 0.09); border-color: rgba(52, 211, 153, 0.32); }
    .chip.danger { color: var(--hl-danger-tx); background: rgba(251, 113, 133, 0.09); border-color: rgba(251, 113, 133, 0.32); }
    .chip.info { color: var(--hl-cyan-tx); background: rgba(56, 189, 248, 0.09); border-color: rgba(56, 189, 248, 0.32); }
    .chip.plain { color: var(--hl-muted); background: rgba(125, 175, 230, 0.08); border-color: var(--hl-line); }
    .task-opinion {
      margin-top: 9px; padding: 8px 10px; border-radius: 10px;
      font-size: 11.5px; line-height: 1.6; color: var(--hl-fg-2);
      background: rgba(125, 175, 230, 0.07); border-left: 2px solid rgba(56, 189, 248, 0.5);
    }
    .task-opinion b { color: var(--hl-fg); font-weight: 650; }

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

    /* ── KPI ── */
    .kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
    .kpi {
      position: relative; overflow: hidden;
      border: 1px solid var(--hl-line); border-radius: 14px;
      background: var(--hl-panel); padding: 13px 14px 14px;
    }
    .kpi::after { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--hl-cyan); opacity: 0.85; }
    .kpi.warn::after { background: var(--hl-warn); }
    .kpi.ok::after { background: var(--hl-ok); }
    .kpi.danger::after { background: var(--hl-danger); }
    .kpi.info::after { background: var(--hl-cyan); }
    .kpi.violet::after { background: var(--hl-violet); }
    .kpi-label { font-size: 11.5px; color: var(--hl-muted); }
    .kpi-value { font-size: 24px; font-weight: 750; line-height: 1.25; margin-top: 4px; font-variant-numeric: tabular-nums; }
    .kpi-sub { font-size: 11px; color: var(--hl-muted); margin-top: 2px; }

    /* ── 图表 ── */
    .chart-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; align-items: stretch; }
    /* 三卡等高：高度锚定最稀疏维度（近 6 天），内容区统一最小高，避免被最长列表撑高 */
    .chart-card { display: flex; flex-direction: column; }
    .chart-body { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 215px; }
    .chart-body > .empty { margin: auto; }
    /* 数据稀疏时（如筛选到单个单位）让图形在剩余空间内居中，避免"顶部堆着、底部大片空白" */
    .chart-body > .bars, .chart-body > .zone-matrix { flex: 1 1 auto; justify-content: center; }
    .chart-sum { font-size: 11.5px; color: var(--hl-muted); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
    .chart-sum b { color: var(--hl-fg-2); font-weight: 700; }
    .chart-foot { font-size: 10.5px; color: var(--hl-muted); margin-top: 10px; font-variant-numeric: tabular-nums; line-height: 1.45; }
    .donut-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
    .donut { width: 148px; height: 148px; flex: 0 0 148px; }
    .donut-total { fill: var(--hl-fg); font-size: 22px; font-weight: 750; }
    .donut-sub { fill: var(--hl-muted); font-size: 10px; }
    .legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1 1 140px; min-width: 140px; }
    .legend li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hl-fg-2); }
    .legend .dot { width: 8px; height: 8px; flex: 0 0 8px; }
    .legend .lg-name { flex: 1 1 auto; }
    .legend .lg-val { font-variant-numeric: tabular-nums; color: var(--hl-fg); font-weight: 650; }
    .legend .lg-pct { width: 38px; text-align: right; color: var(--hl-muted); font-variant-numeric: tabular-nums; }

    .bars { display: flex; flex-direction: column; gap: 10px; }
    .bar-row { display: grid; grid-template-columns: 78px 1fr 30px; align-items: center; gap: 9px; font-size: 12px; }
    .bar-label { color: var(--hl-fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .bar-track { height: 9px; border-radius: 99px; background: rgba(125, 175, 230, 0.12); overflow: hidden; }
    .bar-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(56, 189, 248, 0.55), #38bdf8); transition: width 0.5s ease; }
    .bar-value { text-align: right; color: var(--hl-fg); font-variant-numeric: tabular-nums; font-weight: 650; }

    /* ── 各单位任务项统计：Top N + 长尾聚合（固定 8 行高） ── */
    .bars.is-dense { gap: 6px; }
    .bars.is-dense .bar-row { grid-template-columns: 116px minmax(0, 1fr) 34px; font-size: 11.5px; gap: 8px; }
    .bars.is-dense .bar-track { height: 7px; }
    .bar-row.is-rest .bar-label { color: var(--hl-muted); }
    .bar-row.is-rest .bar-track {
      background: transparent; box-shadow: inset 0 0 0 1px var(--hl-line-2);
    }
    .bar-row.is-rest .bar-fill { background: linear-gradient(90deg, rgba(125, 175, 230, 0.28), rgba(125, 175, 230, 0.55)); }
    .bar-row.is-rest .bar-value { color: var(--hl-muted); }

    /* ── 近 6 天填报与归档：纵向分组柱（时间序列用柱更贴合直觉） ── */
    .vbars { flex: 1 1 auto; display: flex; align-items: flex-end; gap: 12px; min-height: 150px; padding-top: 18px; }
    .vbar-grp { flex: 1 1 0; min-width: 0; display: flex; height: 100%; }
    .vbar-pair { flex: 1 1 auto; display: flex; align-items: flex-end; justify-content: center; gap: 3px; min-width: 0; min-height: 0; }
    .vbar {
      position: relative; width: calc((100% - 3px) / 2); max-width: 18px; min-height: 2px;
      border-radius: 3px 3px 0 0; transition: height 0.45s ease;
    }
    .vbar.filed { background: linear-gradient(180deg, #38bdf8, rgba(56, 189, 248, 0.55)); }
    .vbar.archived { background: linear-gradient(180deg, #34d399, rgba(52, 211, 153, 0.55)); }
    .vbar.is-zero { background: rgba(125, 175, 230, 0.2); border-radius: 2px; }
    .vbar-val {
      position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
      font-size: 10px; font-weight: 650; color: var(--hl-fg-2); font-variant-numeric: tabular-nums; white-space: nowrap;
    }
    .vbar-axis { display: flex; gap: 12px; margin-top: 7px; }
    .vbar-axis span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 10px; color: var(--hl-muted); line-height: 1.35; }
    .vbar-axis b { display: block; color: var(--hl-fg-2); font-weight: 650; font-size: 10.5px; font-variant-numeric: tabular-nums; }
    .vbar-axis i { font-style: normal; }

    /* ── 区域任务分布：A/B 分区矩阵（17 个固定枚举一屏看全） ── */
    .zone-matrix { display: flex; flex-direction: column; gap: 8px; }
    .zm-group { display: flex; flex-direction: column; gap: 5px; }
    .zm-label { font-size: 10.5px; font-weight: 700; color: var(--hl-muted); letter-spacing: 0.04em; }
    .zm-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
    .zm-cells.is-b { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .zm-cell {
      position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
      height: 42px; padding-bottom: 3px; border-radius: 6px; border: 1px solid var(--hl-line);
      background: var(--zm-bg, rgba(56, 189, 248, 0.1)); overflow: hidden; min-width: 0;
    }
    .zm-cell b { font-size: 10px; font-weight: 650; color: var(--hl-muted); line-height: 1.1; }
    .zm-cell i {
      font-style: normal; font-size: 13.5px; font-weight: 750; color: var(--hl-fg);
      font-variant-numeric: tabular-nums; line-height: 1.2;
    }
    .zm-cell.is-zero { opacity: 0.4; }
    .zm-bar-bg { position: absolute; left: 0; bottom: 0; right: 0; height: 3px; background: rgba(125, 175, 230, 0.14); }
    .zm-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: rgba(52, 211, 153, 0.9); }

    .trend { width: 100%; height: auto; display: block; }
    .trend-dot { fill: #04121f; stroke: #38bdf8; stroke-width: 2; }
    .trend-labels { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10.5px; color: var(--hl-muted); font-variant-numeric: tabular-nums; }

    /* ── 队列 / 时间线 ── */
    .seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(125, 175, 230, 0.08); flex-wrap: wrap; }
    .seg-item {
      border: 0; background: transparent; color: var(--hl-muted);
      padding: 6px 10px; border-radius: 8px; font-size: 12px; cursor: pointer;
      display: inline-flex; align-items: center; gap: 5px; min-height: 32px;
    }
    .seg-item i { font-style: normal; font-size: 10.5px; opacity: 0.85; font-variant-numeric: tabular-nums; }
    .seg-item.is-active { background: rgba(56, 189, 248, 0.18); color: #eaf7ff; box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.32); }

    .queue { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; }
    .queue-item {
      display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap;
      padding: 11px 12px; border-radius: 12px;
      border: 1px solid var(--hl-line); background: rgba(24, 32, 44, 0.7);
    }
    .queue-main { flex: 1 1 200px; min-width: 0; }
    .queue-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
    .queue-meta { font-size: 11.5px; color: var(--hl-muted); margin-top: 4px; }
    .queue-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

    /* ── 审批中心 · 任务清单导出条 ── */
    .dayexport {
      display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
      padding: 11px 14px; margin-bottom: 12px;
      border: 1px solid var(--hl-line); border-radius: 12px;
      background: linear-gradient(180deg, rgba(32, 45, 64, .72), rgba(25, 33, 45, .82));
    }
    .de-l { flex: 1 1 260px; min-width: 0; }
    .de-l b { display: block; font-size: 13px; font-weight: 700; color: var(--hl-fg); }
    .de-l span { display: block; margin-top: 3px; font-size: 11px; line-height: 1.5; color: var(--hl-muted); }
    .de-r { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
    .de-r .mini-input { height: 30px; }
    .eb-hint { flex: 0 0 auto; font-size: 11px; color: var(--hl-muted); white-space: nowrap; }
    .eb-hint.is-ok { color: #6ee7b7; }
    @media (max-width: 720px) {
      .de-l { flex: 1 1 100%; }
      .de-r { width: 100%; }
      .de-r .mini-input { flex: 1 1 auto; }
      .eb-hint { width: 100%; white-space: normal; }
    }

    /* ── 导出结果面板（保存 / 下载 / 新窗口 / 打印） ── */
    .pdfact { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
    .pdfact-mask { position: absolute; inset: 0; background: rgba(3, 7, 14, .68); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
    .pdfact-card {
      position: relative; width: min(470px, 100%);
      border: 1px solid var(--hl-line-2); border-radius: 16px;
      background: linear-gradient(180deg, rgba(32, 45, 64, .99), rgba(23, 29, 39, .99));
      padding: 18px 18px 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .72);
      max-height: calc(100dvh - 40px); overflow-y: auto;
      animation: pdfactIn .2s cubic-bezier(.22, .61, .36, 1) both;
    }
    @keyframes pdfactIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
    .pdfact-title { font-size: 16px; font-weight: 750; letter-spacing: .01em; }
    .pdfact-meta { margin-top: 5px; font-size: 11.5px; color: var(--hl-muted); }
    .pdfact-file {
      margin-top: 11px; padding: 9px 11px; border-radius: 9px;
      border: 1px dashed var(--hl-line-2); background: rgba(21, 27, 37, .5);
      font-family: var(--hl-mono); font-size: 11px; color: var(--hl-fg-2); word-break: break-all;
    }
    .pdfact-view {
      position: relative; margin-top: 12px;
      border: 1px solid var(--hl-line-2); border-radius: 10px;
      background: #fff; overflow: hidden;
      max-height: 44vh; display: flex; align-items: flex-start; justify-content: center;
    }
    .pdfact-img { display: block; width: 100%; height: auto; max-height: 44vh; object-fit: contain; background: #fff; }
    .pdfact-nav {
      position: absolute; top: 50%; transform: translateY(-50%);
      width: 34px; height: 34px; border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, .45); background: rgba(20, 28, 38, .55);
      color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center;
      cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    }
    .pdfact-nav:disabled { opacity: .28; cursor: default; }
    .pdfact-nav.prev { left: 8px; }
    .pdfact-nav.next { right: 8px; }
    .pdfact-pager {
      position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
      padding: 2px 10px; border-radius: 999px; background: rgba(20, 28, 38, .62);
      color: #dff2ff; font-size: 11px; letter-spacing: .04em; font-variant-numeric: tabular-nums;
    }
    .pdfact-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
    .pdfact-tip { margin-top: 12px; font-size: 11px; line-height: 1.65; color: var(--hl-muted); }

    /* ── 审批中心 · 计划进场日期分组 / 日期快捷筛选 ── */
    .day-group { display: flex; flex-direction: column; gap: 10px; }
    .day-head {
      display: flex; align-items: center; gap: 8px;
      padding: 2px 2px 7px;
      border-bottom: 1px dashed var(--hl-line-2);
    }
    .day-head b { font-size: 13px; letter-spacing: .01em; color: var(--hl-fg); }
    .day-tag {
      display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
      border-radius: 999px; font-size: 11px; font-weight: 600;
      border: 1px solid rgba(56, 189, 248, .4); background: rgba(56, 189, 248, .12); color: #9fe4ff;
      white-space: nowrap;
    }
    .day-n { margin-left: auto; font-size: 11.5px; color: var(--hl-muted); white-space: nowrap; }
    .qday-bar {
      display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
      padding: 8px; border-radius: 12px;
      border: 1px solid var(--hl-line); background: rgba(24, 32, 44, .6);
    }
    .qday-btn {
      height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer;
      border: 1px solid var(--hl-line-2); background: rgba(21, 27, 37, .7);
      color: var(--hl-fg-2); font-size: 12px; font-family: inherit;
      transition: border-color .16s, background .16s, color .16s;
    }
    .qday-btn:hover { border-color: rgba(56, 189, 248, .5); color: #cdefff; }
    .qday-btn.active {
      border-color: rgba(56, 189, 248, .75); background: rgba(56, 189, 248, .18);
      color: #bfe9ff; font-weight: 600;
    }
    .qday-sep { flex: 1 1 auto; min-width: 8px; }
    .day-more {
      display: flex; align-items: center; justify-content: center; gap: 10px;
      padding: 10px; font-size: 12px; color: var(--hl-muted);
    }
    .day-sub { font-size: 11px; color: var(--hl-muted); white-space: nowrap; }

    /* 已处理 · 日期组内「通过 / 驳回 / 其他」二次分组 */
    .res-group { display: flex; flex-direction: column; gap: 8px; }
    .res-head { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
    .res-head i {
      width: 16px; height: 16px; border-radius: 5px;
      display: grid; place-items: center;
      font-style: normal; font-size: 10px; font-weight: 700; line-height: 1;
    }
    .res-head b { font-size: 12px; font-weight: 650; letter-spacing: .01em; }
    .res-head span { font-size: 11px; color: var(--hl-muted); }
    .res-head.ok i { background: rgba(52, 211, 153, .18); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, .4); }
    .res-head.ok b { color: #6ee7b7; }
    .res-head.danger i { background: rgba(251, 113, 133, .16); color: #fda4af; border: 1px solid rgba(251, 113, 133, .4); }
    .res-head.danger b { color: #fda4af; }
    .res-head.plain i { background: rgba(148, 163, 184, .16); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, .36); }
    .res-head.plain b { color: #cbd5e1; }

    .timeline { display: flex; flex-direction: column; gap: 0; }
    .tl-item { position: relative; padding: 0 0 14px 18px; }
    .tl-item::before { content: ""; position: absolute; left: 3px; top: 5px; width: 7px; height: 7px; border-radius: 99px; background: var(--hl-cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16); }
    .tl-item::after { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--hl-line); }
    .tl-item:last-child::after { display: none; }
    .tl-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; }
    .tl-name { color: var(--hl-fg); font-weight: 600; }
    .tl-time { margin-left: auto; font-size: 11px; color: var(--hl-muted); font-variant-numeric: tabular-nums; }
    .tl-text { font-size: 11.5px; color: var(--hl-muted); margin-top: 4px; line-height: 1.6; }

    /* ── 弹窗 ── */
    .modal-root { display: none; }
    .modal-root.is-open { display: block; }
    .modal-mask { position: fixed; inset: 0; background: rgba(2, 6, 14, 0.72); backdrop-filter: blur(3px); z-index: 70; }
    .modal {
      position: fixed; z-index: 71; left: 50%; top: 50%; transform: translate(-50%, -50%);
      width: min(440px, calc(100vw - 32px)); max-height: 86vh; overflow: auto;
      border: 1px solid var(--hl-line-2); border-radius: 16px;
      background: #192332; box-shadow: 0 26px 60px rgba(2, 6, 14, 0.6);
      padding: 16px;
    }
    .modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
    .modal-head h3 { font-size: 15px; }
    .icon-btn {
      margin-left: auto; width: 32px; height: 32px; border-radius: 9px;
      border: 1px solid var(--hl-line); background: transparent; color: var(--hl-muted);
      font-size: 18px; line-height: 1; cursor: pointer;
    }
    .icon-btn:hover { color: var(--hl-fg); background: rgba(125, 175, 230, 0.1); }
    .modal-body { display: flex; flex-direction: column; gap: 12px; }
    .modal-task { padding: 11px 12px; border-radius: 11px; background: rgba(125, 175, 230, 0.07); border: 1px solid var(--hl-line); }
    .modal-task-name { font-size: 13.5px; font-weight: 650; }
    .modal-task-meta { font-size: 11.5px; color: var(--hl-muted); margin-top: 4px; }
    .modal-foot { display: flex; gap: 10px; margin-top: 16px; }
    .modal-foot .btn { flex: 1 1 0; }

    /* ── 子视图切换（审批中心 / 统计看板） ── */
    .subview-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
    .subview-note { font-size: 11.5px; color: var(--hl-muted); }
    .subview { display: none; }
    .subview.is-active { display: block; animation: fadeUp 0.28s ease; }

    /* ── 页签 ── */
    .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
    .tab {
      border: 1px solid var(--hl-line); background: rgba(125, 175, 230, 0.06);
      color: var(--hl-fg-2); border-radius: 11px; padding: 9px 13px;
      font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
    }
    .tab:hover { border-color: var(--hl-line-2); color: var(--hl-fg); }
    .tab.active { background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.42); color: #eaf7ff; }
    .tab-count {
      font-size: 10.5px; padding: 1px 7px; border-radius: 99px;
      background: rgba(125, 175, 230, 0.16); color: var(--hl-fg-2); font-variant-numeric: tabular-nums;
    }
    .tab-count.hot { background: rgba(251, 191, 36, 0.2); color: var(--hl-warn-tx); }

    /* ── 审批记录卡 ── */
    .record-list { display: flex; flex-direction: column; gap: 12px; }
    .rec-card {
      border: 1px solid var(--hl-line); border-radius: 14px;
      background: var(--hl-panel); padding: 13px 14px;
    }
    .rec-card:hover { border-color: var(--hl-line-2); }
    .rec-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .rec-title { font-size: 13.5px; font-weight: 650; color: var(--hl-fg); }
    .rec-time { margin-left: auto; font-size: 11px; color: var(--hl-muted); white-space: nowrap; }
    .rec-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--hl-muted); margin-top: 7px; }
    .rec-meta i { font-style: normal; opacity: 0.5; }
    .rec-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
    .risk-inline {
      margin-top: 8px; padding: 7px 10px; border-radius: 9px;
      font-size: 11.5px; line-height: 1.6; color: #ffe6ad;
      background: rgba(251, 191, 36, 0.1); border-left: 2px solid rgba(251, 191, 36, 0.6);
    }

    /* ── 归档台账 ── */
    .view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
    .view-title { font-size: 19px; font-weight: 700; margin: 0; letter-spacing: 0.4px; }
    .view-sub { font-size: 11.5px; color: var(--hl-muted); margin-top: 4px; line-height: 1.6; }
    .view-actions { display: flex; gap: 8px; }
    .input {
      min-height: 38px; padding: 0 10px; border-radius: 9px; width: 100%;
      border: 1px solid var(--hl-line-2); background: rgba(21, 27, 37, 0.78);
      color: var(--hl-fg); font-size: 12.5px; font-family: inherit;
    }
    .input:focus { outline: none; border-color: rgba(56, 189, 248, 0.7); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14); }
    .mono { font-family: ui-monospace, Menlo, monospace; }
    .tiny { font-size: 11px; }
    .muted { color: var(--hl-muted); }
    .cell-main { min-width: 0; }
    .arc-review-list { display: grid; gap: 10px; }
    .arc-review-card {
      border: 1px solid var(--hl-line); border-radius: 13px; padding: 12px 13px;
      background: rgba(24, 32, 44, 0.55);
    }
    .arc-review-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .arc-review-name { font-size: 13px; font-weight: 650; color: var(--hl-fg); }
    .arc-review-meta { margin-top: 6px; font-size: 11.5px; color: var(--hl-muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
    .arc-review-meta i { font-style: normal; opacity: 0.5; }
    .arc-note { margin-top: 8px; font-size: 11.5px; line-height: 1.6; color: var(--hl-fg-2); }
    .arc-note b { color: var(--hl-muted); font-weight: 600; }
    .arc-reject { margin-top: 8px; padding: 8px 10px; border-radius: 9px; font-size: 11.5px; line-height: 1.6; color: #ffd9df; background: rgba(251, 113, 133, 0.1); border-left: 2px solid rgba(251, 113, 133, 0.6); }
    .arc-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
    .arc-thumbs img { width: 84px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--hl-line-2); }
    .arc-review-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
    .arc-detail { margin-top: 8px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--hl-line); background: rgba(22, 31, 42, 0.55); display: flex; flex-direction: column; gap: 4px; }
    .ad-row { display: flex; gap: 8px; font-size: 11.5px; line-height: 1.6; }
    .ad-row i { flex: 0 0 76px; font-style: normal; color: var(--hl-muted); }
    .ad-row span { flex: 1 1 auto; color: var(--hl-fg-2); word-break: break-word; }
    .arc-review-summary { margin-bottom: 12px; }
    .ars-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hl-muted); margin-bottom: 4px; }
    .gate-field textarea {
      width: 100%; padding: 10px 11px; border-radius: 10px; resize: vertical;
      border: 1px solid var(--hl-line-2); background: rgba(21, 27, 37, 0.78);
      color: var(--hl-fg); font-size: 13px; font-family: inherit; line-height: 1.6;
    }
    .gate-field textarea:focus { outline: none; border-color: rgba(56, 189, 248, 0.7); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14); }

    /* 归档照片覆盖校验 */
    .arc-cover { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .ac-item { font-size: 10.5px; padding: 2px 8px; border-radius: 99px; border: 1px solid rgba(251, 191, 36, 0.4); color: #ffd9a0; background: rgba(251, 191, 36, 0.08); }
    .ac-item.is-ok { border-color: rgba(52, 211, 153, 0.45); color: #b9f5dd; background: rgba(52, 211, 153, 0.1); }
    .arc-thumb { position: relative; width: 84px; height: 62px; border-radius: 8px; overflow: hidden; border: 1px solid var(--hl-line-2); }
    .arc-thumb.is-permit { border-color: rgba(251, 191, 36, 0.65); }
    .arc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .arc-thumb-tag { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 1px 5px; border-radius: 5px; font-size: 9px; color: #d9f4ff; background: rgba(18, 24, 30, 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .arc-thumb.is-permit .arc-thumb-tag { color: #ffe6ad; background: rgba(70, 44, 16, 0.78); }

    /* ── 筛选条 ── */
    .filterbar {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 10px; align-items: end; margin-bottom: 14px;
      padding: 12px 13px; border: 1px solid var(--hl-line); border-radius: 14px; background: var(--hl-panel);
    }
    /* ── 归档台账 · 日期快捷筛选 ── */
    .arc-daybar {
      display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
      margin-bottom: 12px; padding: 10px 12px;
      border: 1px solid var(--hl-line); border-radius: 12px;
      background: linear-gradient(180deg, rgba(32, 45, 64, .72), rgba(25, 33, 45, .82));
    }
    .arc-day-btn {
      min-height: 32px; padding: 0 13px; border-radius: 999px; cursor: pointer;
      border: 1px solid var(--hl-line-2); background: rgba(21, 27, 37, 0.78);
      color: var(--hl-fg-2); font-size: 12px; font-family: inherit; white-space: nowrap;
      transition: border-color .16s, background .16s, color .16s;
    }
    .arc-day-btn:hover { border-color: rgba(56, 189, 248, 0.6); color: #cfe8fb; }
    .arc-day-btn.active {
      border-color: rgba(56, 189, 248, 0.8); background: rgba(56, 189, 248, 0.18);
      color: #bfe9ff; font-weight: 600;
    }
    .arc-day-sep { flex: 1 1 auto; min-width: 6px; }
    .arc-day-input { height: 32px; min-height: 32px; padding: 0 10px; border-radius: 9px; width: 148px; }
    .arc-day-label { font-size: 11.5px; color: var(--hl-muted); white-space: nowrap; }

    /* ── 归档台账 · 未归档 / 已归档 分组 ── */
    .arc-group { margin-bottom: 16px; }
    .arc-group:last-child { margin-bottom: 0; }
    .arc-group-head {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
      padding: 8px 2px 9px; margin-bottom: 2px;
      border-bottom: 1px dashed var(--hl-line-2);
    }
    .arc-group-head b { font-size: 13px; letter-spacing: .01em; }
    .arc-group-head.is-open b { color: #fcd34d; }
    .arc-group-head.is-done b { color: #6ee7b7; }
    .arc-group-n {
      display: inline-flex; align-items: center; height: 20px; padding: 0 9px;
      border-radius: 999px; font-size: 11px; font-weight: 600;
      border: 1px solid var(--hl-line-2); background: rgba(21, 27, 37, .7); color: var(--hl-fg-2);
    }
    .arc-group-head em { font-style: normal; font-size: 11px; color: var(--hl-muted); }

    .filter-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
    .filter-item label { font-size: 11.5px; color: var(--hl-muted); }
    .quick-range { display: flex; gap: 6px; flex-wrap: wrap; }
    .qr-btn {
      min-height: 38px; padding: 0 11px; border-radius: 9px; cursor: pointer;
      border: 1px solid var(--hl-line-2); background: rgba(21, 27, 37, 0.78);
      color: var(--hl-fg-2); font-size: 11.5px; font-family: inherit; white-space: nowrap;
    }
    .qr-btn:hover { border-color: rgba(56, 189, 248, 0.6); color: #cfe8fb; background: rgba(56, 189, 248, 0.1); }
    .filter-item input[type="date"] { min-height: 38px; }
    .filter-item select {
      min-height: 38px; padding: 0 10px; border-radius: 9px;
      border: 1px solid var(--hl-line-2); background: rgba(21, 27, 37, 0.78);
      color: var(--hl-fg); font-size: 12.5px; font-family: inherit; min-width: 0;
    }
    .filter-item select:disabled { opacity: 0.5; }
    .filter-item select:focus { outline: none; border-color: rgba(56, 189, 248, 0.7); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14); }
    .filter-item select option { background: #0f1928; color: var(--hl-fg); }
    .filter-actions { display: flex; align-items: flex-end; }
    .filter-actions .btn { width: 100%; }

    /* ── 数据表 ── */
    .table-wrap { overflow-x: auto; }
    .data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
    .data-table th {
      text-align: left; font-weight: 600; color: var(--hl-muted); font-size: 11.5px;
      padding: 8px 10px; border-bottom: 1px solid var(--hl-line); white-space: nowrap;
    }
    .data-table td { padding: 9px 10px; border-bottom: 1px solid rgba(125, 175, 230, 0.08); color: var(--hl-fg-2); vertical-align: middle; }
    .data-table tr:last-child td { border-bottom: 0; }
    .data-table tbody tr:hover td { background: rgba(125, 175, 230, 0.05); }
    .cell-strong { color: var(--hl-fg); font-weight: 650; font-variant-numeric: tabular-nums; }
    .row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .mini-bar { height: 5px; border-radius: 99px; background: rgba(125, 175, 230, 0.14); overflow: hidden; margin-top: 4px; }
    .mini-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(52, 211, 153, 0.55), var(--hl-ok)); }

    /* ── 今日施工内容明细 ── */
    .today-head { align-items: center; row-gap: 8px; }
    .today-count { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11.5px; color: var(--hl-muted); }
    .today-date-wrap { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--hl-muted); }
    .today-date {
      height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--hl-line-2);
      background: rgba(21, 27, 37, 0.78); color: var(--hl-fg); font: inherit; font-size: 12px;
      color-scheme: dark; cursor: pointer;
    }
    .today-date:focus { outline: none; border-color: rgba(56, 189, 248, 0.7); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14); }
    .today-note { margin: 9px 0 0; font-size: 11px; color: var(--hl-muted); line-height: 1.6; }

    /* 今日施工人数统计条 */
    .today-statbar {
      display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px; margin: 0 0 11px;
    }
    .today-statbar[hidden] { display: none; }
    .ts-item {
      border: 1px solid var(--hl-line); border-radius: 10px; padding: 8px 11px;
      background: linear-gradient(180deg, rgba(24, 36, 52, 0.72), rgba(20, 28, 38, 0.42));
      min-width: 0;
    }
    .ts-item span { display: block; font-size: 11px; color: var(--hl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ts-item b { display: inline-block; margin-top: 2px; font-size: 20px; line-height: 1.15; color: var(--hl-fg); font-variant-numeric: tabular-nums; }
    .ts-item em { font-style: normal; font-size: 11px; color: var(--hl-muted); margin-left: 3px; }
    .ts-item.is-accent { border-color: rgba(56, 189, 248, 0.42); background: linear-gradient(180deg, rgba(24, 46, 66, 0.85), rgba(20, 32, 44, 0.5)); }
    .ts-item.is-accent b { color: var(--hl-cyan-tx); }
    .ts-note { grid-column: 1 / -1; font-size: 11px; color: var(--hl-muted); padding: 0 2px; margin-top: -1px; }

    /* 作业人数列 */
    .today-crew { min-width: 86px; }
    .today-crew b { font-size: 13px; color: var(--hl-fg); font-variant-numeric: tabular-nums; }
    .today-crew i { font-style: normal; font-size: 10.5px; color: var(--hl-muted); margin-left: 2px; }
    .today-crew .mini-bar { max-width: 62px; margin-top: 3px; }
    .today-crew .mini-bar > span { background: linear-gradient(90deg, rgba(56, 189, 248, 0.45), #38bdf8); }
    .today-crew.is-zero b { color: var(--hl-muted); }
    .today-crew.is-muted b { color: var(--hl-muted); font-weight: 600; }
    .today-crew.is-muted .mini-bar > span { background: linear-gradient(90deg, rgba(148, 163, 184, 0.35), rgba(148, 163, 184, 0.65)); }
    .today-table tfoot td {
      border-top: 1px solid var(--hl-line); border-bottom: 0;
      background: rgba(56, 189, 248, 0.06); font-size: 11.5px; color: var(--hl-fg-2);
      padding: 9px 10px;
    }
    .today-table tfoot .today-crew-total { color: var(--hl-cyan-tx); font-weight: 650; font-variant-numeric: tabular-nums; }

    /* ── 区域人数 ── */
    .zp-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
    .zp-sum-item {
      border: 1px solid var(--hl-line); border-radius: 10px; padding: 8px 11px; min-width: 0;
      background: linear-gradient(180deg, rgba(24, 36, 52, 0.72), rgba(20, 28, 38, 0.42));
    }
    .zp-sum-item span { display: block; font-size: 11px; color: var(--hl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .zp-sum-item b { display: inline-block; margin-top: 2px; font-size: 21px; line-height: 1.15; color: var(--hl-fg); font-variant-numeric: tabular-nums; }
    .zp-sum-item em { font-style: normal; font-size: 11px; color: var(--hl-muted); margin-left: 3px; }
    .zp-sum-item.is-total { border-color: rgba(56, 189, 248, 0.42); background: linear-gradient(180deg, rgba(24, 46, 66, 0.85), rgba(20, 32, 44, 0.5)); }
    .zp-sum-item.is-total b { color: var(--hl-cyan-tx); }
    .zp-sum-item small { display: block; margin-top: 2px; font-size: 10px; color: var(--hl-muted); }

    .zp-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .zp-group { border: 1px solid var(--hl-line); border-radius: 12px; padding: 10px 11px 11px; background: rgba(22, 31, 42, 0.42); }
    .zp-group-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
    .zp-group-head b { font-size: 12.5px; color: var(--hl-fg); font-family: var(--mono); letter-spacing: .4px; }
    .zp-group-head span { font-size: 10.5px; color: var(--hl-muted); }
    .zp-group-head em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 650; color: var(--hl-cyan-tx); font-variant-numeric: tabular-nums; }
    .zp-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
    .zp-cell {
      position: relative; border-radius: 9px; padding: 6px 7px 7px; min-width: 0;
      border: 1px solid rgba(125, 175, 230, 0.16); background: rgba(20, 28, 38, 0.6);
      transition: border-color .18s ease, transform .18s ease;
    }
    .zp-cell.is-on { border-color: rgba(56, 189, 248, 0.35); }
    .zp-cell:hover { border-color: rgba(56, 189, 248, 0.7); transform: translateY(-1px); }
    .zp-cell .zp-id { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .5px; color: var(--hl-muted); }
    .zp-cell .zp-num { display: block; margin-top: 1px; font-size: 16px; font-weight: 700; line-height: 1.1; color: var(--hl-fg); font-variant-numeric: tabular-nums; }
    .zp-cell.is-zero .zp-num { color: rgba(168, 188, 212, 0.9); font-weight: 600; }
    .zp-cell .zp-bar { display: block; height: 3px; border-radius: 99px; margin-top: 5px; background: rgba(125, 175, 230, 0.14); overflow: hidden; }
    .zp-cell .zp-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(56, 189, 248, 0.5), #38bdf8); }
    .zp-empty { font-size: 12px; color: var(--hl-muted); padding: 6px 0 2px; }
    .today-table td { vertical-align: middle; }
    .today-row { cursor: pointer; }
    .today-row td:first-child { border-left: 2px solid transparent; }
    .today-row:hover td:first-child { border-left-color: var(--hl-cyan); }
    .today-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
    .today-title b { color: var(--hl-fg); font-weight: 650; font-size: 12.5px; }
    .today-code { display: block; margin-top: 3px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.3px; color: var(--hl-muted); }
    .today-zone b { display: inline-block; color: var(--hl-fg); font-weight: 650; }
    .today-zone i { font-style: normal; display: block; margin-top: 2px; font-size: 10.5px; color: var(--hl-muted); }
    .today-contact b { display: block; color: var(--hl-fg-2); font-weight: 600; font-size: 12px; }
    .today-contact i { font-style: normal; display: block; margin-top: 1px; font-size: 10.5px; color: var(--hl-muted); }
    .today-time { font-family: var(--mono); font-size: 11.5px; color: var(--hl-fg-2); }
    .today-time i { font-style: normal; display: block; margin-top: 2px; font-family: inherit; font-size: 10.5px; color: var(--hl-muted); }
    .today-act { text-align: right; white-space: nowrap; }

    /* ── 双色柱 / 周趋势 ── */
    .legend-inline { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--hl-muted); margin-bottom: 9px; }
    .legend-inline span { display: inline-flex; align-items: center; gap: 5px; }
    .legend-inline i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
    .wk-chart { width: 100%; height: auto; display: block; }
    .wk-bar-filed { fill: rgba(56, 189, 248, 0.85); }
    .wk-bar-archived { fill: rgba(52, 211, 153, 0.9); }
    .wk-labels { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 3px; font-size: 10.5px; color: var(--hl-muted); text-align: center; font-variant-numeric: tabular-nums; }

    /* ── 今日明细筛选 ── */
    .today-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 11px; }
    .today-filters .tf-label { font-size: 11.5px; color: var(--hl-muted); }
    .today-filters .tf-select {
      height: 30px; padding: 0 26px 0 9px; border-radius: 8px;
      border: 1px solid var(--hl-line-2); background: rgba(21, 27, 37, 0.78);
      color: var(--hl-fg); font: inherit; font-size: 12px; cursor: pointer;
      -webkit-appearance: none; appearance: none;
      background-image: linear-gradient(45deg, transparent 50%, var(--hl-muted) 50%), linear-gradient(135deg, var(--hl-muted) 50%, transparent 50%);
      background-position: calc(100% - 14px) calc(50% + 1px), calc(100% - 9px) calc(50% + 1px);
      background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
    }
    .today-filters .tf-select:focus { outline: none; border-color: rgba(56, 189, 248, 0.7); }
    .today-filters .tf-clear {
      height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer;
      border: 1px solid var(--hl-line-2); background: rgba(125, 175, 230, 0.06);
      color: var(--hl-fg-2); font: inherit; font-size: 11.5px;
    }
    .today-filters .tf-clear:hover { border-color: rgba(56, 189, 248, 0.5); color: var(--hl-fg); }
    .today-filters .tf-sum { margin-left: auto; font-size: 11.5px; color: var(--hl-muted); }
    .today-filters .tf-sum b { color: var(--hl-cyan-tx); font-variant-numeric: tabular-nums; }

    /* ── 甘特图 ── */
    .gantt { display: flex; flex-direction: column; gap: 6px; }
    .gantt-axis { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 9px; align-items: end; }
    .gantt-ticks { position: relative; height: 15px; }
    .gantt-ticks span { position: absolute; transform: translateX(-50%); font-size: 9.5px; color: var(--hl-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
    .gantt-row { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 9px; align-items: center; }
    .gantt-name { min-width: 0; }
    .gantt-name b { display: block; font-size: 11.5px; font-weight: 650; color: var(--hl-fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gantt-name span { display: block; margin-top: 1px; font-size: 10px; color: var(--hl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gantt-track { position: relative; height: 26px; border-radius: 7px; background: rgba(125, 175, 230, 0.08); overflow: hidden; }
    .gantt-grid { position: absolute; inset: 0; pointer-events: none; }
    .gantt-bar {
      position: absolute; top: 4px; bottom: 4px; border-radius: 6px; min-width: 8px;
      display: flex; align-items: center; padding: 0 6px; overflow: hidden;
      font-size: 10px; font-weight: 600; color: #04121f; white-space: nowrap;
      background: linear-gradient(180deg, #7dd3fc, #38bdf8);
      box-shadow: 0 3px 10px rgba(2, 10, 20, 0.35);
    }
    .gantt-bar.is-mid { background: linear-gradient(180deg, #fcd34d, #fbbf24); color: #2a1c02; }
    .gantt-bar.is-high { background: linear-gradient(180deg, #fca5a5, #f87171); color: #2a0a0a; }
    .gantt-bar span { overflow: hidden; text-overflow: ellipsis; }

    .data-note {
      margin-top: 14px; padding: 11px 13px; border-radius: 12px;
      font-size: 11.5px; line-height: 1.7; color: var(--hl-muted);
      border: 1px dashed var(--hl-line-2); background: rgba(125, 175, 230, 0.04);
    }

    /* ── 详情弹窗键值 ── */
    .kv-row { display: flex; gap: 10px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px dashed rgba(125, 175, 230, 0.12); }
    .kv-row:last-child { border-bottom: 0; }
    .kv-key { flex: 0 0 96px; color: var(--hl-muted); }
    .kv-val { flex: 1 1 auto; color: var(--hl-fg-2); word-break: break-word; }

    /* ── 任务详情弹窗（16:9 宽屏 · 三列信息布局） ──
       宽高按 16:9 锁定，同时不超过视口；信息分三列并排，
       让「施工内容 / 基本信息 / 负责人与风险 / 行车 / 审批与完成」一屏可见。 */
    .detail-modal {
      width: min(calc(100vw - 40px), calc((100vh - 132px) * 16 / 9), 1848px);
      height: min(calc((100vw - 40px) * 9 / 16), calc(100vh - 132px), 1040px);
      max-height: calc(100vh - 40px);
      padding: 16px 18px 14px;
      display: flex; flex-direction: column; overflow: hidden;
    }
    .detail-head { align-items: flex-start; flex: none; margin-bottom: 10px; }
    .detail-title { min-width: 0; }
    .detail-title h3 { font-size: 16px; margin: 0 0 6px; line-height: 1.35; }
    .detail-sub { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11.5px; color: var(--hl-muted); }
    .detail-sub .mono { font-family: var(--mono); letter-spacing: .3px; }
    .detail-body {
      flex: 1 1 auto; min-height: 0; overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.92fr) minmax(0, 1.2fr);
      grid-template-rows: auto minmax(0, 1fr);
      gap: 10px 14px;
      align-items: stretch;
    }
    /* 版块定位：
       上行 → 选中区域(col1) / 施工内容+基本信息(col2) / 右侧信息列(col3，跨两行)
       下行 → 作业人员清单（跨 col1–col2，落在三块正下方） */
    .detail-map { grid-column: 1; grid-row: 1; }
    .detail-info--mid { grid-column: 2; grid-row: 1; }
    .detail-info--side { grid-column: 3; grid-row: 1 / 3; }
    .detail-crew { grid-column: 1 / 3; grid-row: 2; }
    /* 中列内容少于地图高度时，把最后一块拉高填满，避免版块下方出现大片空白 */
    .detail-info--mid { display: flex; flex-direction: column; gap: 7px; height: auto; overflow: visible; }
    .detail-info--mid .detail-sec { flex: 0 0 auto; }
    .detail-info--mid .detail-sec:last-child { flex: 1 1 auto; min-height: 0; }
    .detail-modal .modal-foot { flex: none; margin-top: 10px; }

    .detail-map { min-height: 0; display: flex; flex-direction: column; }
    .detail-map .dm-canvas { flex: 0 1 auto; min-height: 0; }
    .detail-map .dm-legend { flex: none; }

    .dm-canvas {
      position: relative; overflow: hidden; border-radius: 12px;
      border: 1px solid rgba(56, 189, 248, 0.28); background: #121e2a;
      aspect-ratio: 5000 / 2812;
      box-shadow: inset 0 0 40px rgba(2, 10, 20, 0.7);
    }
    .dm-canvas img {
      display: block; width: 100%; height: 100%; object-fit: cover;
      filter: brightness(0.90) contrast(1.04) saturate(1.05);
    }
    .dm-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
    .dm-z { fill: rgba(56, 189, 248, 0.045); stroke: rgba(56, 189, 248, 0.28); stroke-width: 3; }
    .dm-z.is-on {
      fill: rgba(34, 211, 238, 0.24); stroke: #67e8f9; stroke-width: 9;
      filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.9));
      animation: dmPulse 2.6s ease-in-out infinite;
    }
    @keyframes dmPulse {
      0%, 100% { fill: rgba(34, 211, 238, 0.18); }
      50% { fill: rgba(34, 211, 238, 0.36); }
    }
    .dm-dot { fill: #67e8f9; opacity: 0.95; }
    .dm-id {
      fill: #f0feff; font-weight: 700; font-family: var(--mono); letter-spacing: 2px;
      paint-order: stroke; stroke: rgba(2, 10, 20, 0.62); stroke-width: 9; stroke-linejoin: round;
    }
    .dm-sub {
      fill: #bff2ff; font-family: var(--mono); letter-spacing: 1px;
      paint-order: stroke; stroke: rgba(2, 10, 20, 0.55); stroke-width: 7; stroke-linejoin: round;
    }

    .dm-legend { margin-top: 10px; }
    .dm-legend-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--hl-muted); }
    .dm-legend-head b { color: var(--hl-cyan-tx); font-size: 15px; }
    .dm-legend-head span { font-size: 11px; opacity: 0.85; }
    .dm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .dm-chip {
      display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
      font-size: 11px; border: 1px solid rgba(34, 211, 238, 0.42); background: rgba(34, 211, 238, 0.1); color: #cdefff;
    }
    .dm-chip b { color: #eafcff; font-weight: 700; }
    .dm-chip em { font-style: normal; color: #9fd7ea; }
    .dm-chip.is-empty { border-color: var(--hl-line); background: rgba(148, 163, 184, 0.1); color: var(--hl-muted); }

    .detail-info {
      display: grid; gap: 7px; align-content: start;
      min-height: 0; height: 100%; overflow-y: auto; padding-right: 5px;
    }
    .detail-info::-webkit-scrollbar { width: 6px; }
    .detail-info::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.24); border-radius: 4px; }
    /* 三列并排后纵向空间更紧：行距与字号收紧，保证 13 行审批信息尽量一屏显示 */
    .detail-info .kv-row { padding: 2px 0; font-size: 11.4px; gap: 7px; line-height: 1.4; }
    .detail-info .kv-key { flex: 0 0 76px; font-size: 10.8px; }
    .detail-sec { border: 1px solid var(--hl-line); border-radius: 10px; padding: 6px 10px 3px; background: rgba(22, 31, 42, 0.42); }
    .detail-sec h4 {
      margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px;
      color: var(--hl-cyan-tx); text-transform: uppercase;
    }

    /* ── 详情弹窗 · 作业人员清单（头像 + 姓名） ── */
    .detail-crew {
      border: 1px solid var(--hl-line); border-radius: 12px;
      padding: 7px 12px 7px; background: rgba(22, 31, 42, 0.42);
      min-height: 0; overflow-y: auto;
      display: flex; flex-direction: column;
    }
    .detail-crew .crew-grid { flex: 1 1 auto; align-content: space-evenly; }
    .detail-crew::-webkit-scrollbar { width: 6px; }
    .detail-crew::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.24); border-radius: 4px; }
    .detail-crew h4 {
      margin: 0 0 9px; font-size: 11px; font-weight: 600; letter-spacing: 1.2px;
      color: var(--hl-cyan-tx); text-transform: uppercase;
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    }
    .detail-crew h4 em { font-style: normal; font-size: 11px; letter-spacing: 0; color: var(--hl-muted); text-transform: none; }
    /* 人员清单占满下方区域：卡片按行列均分高度、内容垂直居中，不留大片空白 */
    .crew-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      grid-auto-rows: minmax(0, 1fr); gap: 8px;
    }
    /* 卡片高度被均分后空间有限：去掉常驻的「点击放大」提示行，保留 title 与指针样式 */
    .crew-grid .crew-zoom { display: none; }
    .crew-card {
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
      padding: 9px 8px; border-radius: 11px; min-width: 0; width: 100%;
      border: 1px solid rgba(125, 175, 230, 0.18);
      background: linear-gradient(180deg, rgba(24, 36, 52, 0.9), rgba(20, 28, 38, 0.66));
      font: inherit; color: inherit; text-align: center; cursor: zoom-in;
      transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    }
    .crew-card:hover, .crew-card:focus-visible {
      transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.6);
      box-shadow: 0 12px 26px rgba(2, 10, 20, 0.5); outline: none;
    }
    .crew-av {
      flex: 0 0 62px; width: 62px; height: 62px; border-radius: 50%; overflow: hidden;
      display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #0a1626;
      background: linear-gradient(150deg, #7dd3fc, #38bdf8);
      border: 1px solid rgba(125, 211, 252, 0.55);
      box-shadow: 0 6px 16px rgba(2, 10, 20, 0.45);
    }
    .crew-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .crew-av.is-test { box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.9); }
    .crew-av.is-empty { background: rgba(148, 163, 184, 0.22); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.3); }
    .crew-main { min-width: 0; width: 100%; }
    .crew-main b { display: block; font-size: 13px; font-weight: 650; color: var(--hl-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .crew-main span { display: block; margin-top: 2px; font-size: 11px; color: var(--hl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .crew-zoom { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 10px; color: rgba(56, 189, 248, 0.9); }
    .crew-empty { font-size: 11.5px; color: var(--hl-muted); }

    /* ── 作业人员大图查看器 ── */
    .crew-lightbox { position: fixed; inset: 0; z-index: 95; display: none; align-items: center; justify-content: center; padding: 24px; }
    .crew-lightbox.is-open { display: flex; }
    .crew-lb-mask { position: absolute; inset: 0; background: rgba(2, 6, 14, 0.86); backdrop-filter: blur(4px); }
    .crew-lb {
      position: relative; z-index: 1; width: min(520px, 100%); max-height: 88vh; overflow: auto;
      border: 1px solid rgba(56, 189, 248, 0.32); border-radius: 18px; padding: 14px 16px 16px;
      background: linear-gradient(160deg, #192637, #151d28);
      box-shadow: 0 30px 70px rgba(0, 0, 0, 0.62);
    }
    /* 标题与关闭按钮独立成行，绝不覆盖照片 */
    .crew-lb-head {
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
      margin-bottom: 10px; padding-right: 2px;
    }
    .crew-lb-head h3 { margin: 0; font-size: 18px; color: var(--hl-fg); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
    .crew-lb-head h3 em { font-style: normal; }
    .crew-lb-close {
      flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
      border: 1px solid rgba(125, 175, 230, 0.28); background: rgba(20, 28, 38, 0.8);
      color: var(--hl-fg-2); font-size: 18px; line-height: 1; cursor: pointer;
    }
    .crew-lb-close:hover { border-color: rgba(56, 189, 248, 0.6); color: #eafcff; }
    /* 照片框按原图比例贴合：不裁切、不留黑边、不设固定高度 */
    .crew-lb-photo {
      display: flex; align-items: center; justify-content: center;
      width: fit-content; max-width: 100%; margin: 0 auto;
      height: auto; overflow: visible; border: 0; background: transparent;
    }
    .crew-lb-photo img {
      display: block; max-width: 100%; max-height: min(58vh, 520px);
      object-fit: contain; border-radius: 14px;
      background: rgba(20, 28, 38, 0.9);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    }
    .crew-lb-photo.is-empty {
      width: 100%; height: min(46vh, 320px); border-radius: 14px;
      background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.16), rgba(20, 28, 38, 0.92));
      border: 1px solid rgba(56, 189, 248, 0.2);
    }
    .crew-lb-initial { font-size: 92px; font-weight: 800; color: rgba(203, 213, 225, 0.72); }
    .crew-lb-info { margin-top: 12px; }
    .crew-lb-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
    .crew-lb-row { display: flex; gap: 6px; font-size: 12px; min-width: 0; }
    .crew-lb-row i { flex: 0 0 62px; font-style: normal; color: var(--hl-muted); }
    .crew-lb-row b { flex: 1 1 auto; font-weight: 600; color: var(--hl-fg-2); word-break: break-all; }
    .crew-lb-note { margin: 10px 0 0; font-size: 11.5px; color: var(--hl-warn, #fbbf24); }
    @media (max-width: 1180px) {
      /* 窄屏 / 小笔记本：放弃 16:9 固定高度，改单列纵向滚动，保证可读 */
      .detail-modal { width: calc(100vw - 24px); height: auto; max-height: calc(100vh - 24px); }
      .detail-body { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; align-content: start; }
      /* 禁止子版块被 flex 压缩：容器负责滚动，版块保持内容自然高度 */
      .detail-body > * { flex: 0 0 auto; }
      /* 关键：align-content:start —— grid 默认 stretch 会把各行均分拉伸，
         导致四个版块被压成等高窄条（约 160px），内容互相重叠；
         导致「基本信息」等版块内容与相邻版块重叠 */
      .detail-info {
        display: flex; flex-direction: column; gap: 8px;
        height: auto; overflow: visible; padding-right: 0;
      }
      /* 关键修复：单列下必须重置三列定位，否则版块仍按 col1/col2/col3 放置，
         在单列网格里被压成约 1/3 宽度的窄条，文字疯狂折行 */
      .detail-map, .detail-info--mid, .detail-info--side, .detail-crew {
        grid-column: auto; grid-row: auto;
      }
      /* 取消「最后一块拉伸填满」的桌面逻辑：单列下它会把区块压成极矮高度导致内容不可见 */
      .detail-info--mid .detail-sec:last-child { flex: 0 0 auto; min-height: auto; }
      .detail-crew { max-height: none; }
    }
    @media (max-width: 860px) {
      .detail-modal { width: calc(100vw - 20px); }
    }

    /* ── 手机端任务详情：全屏抽屉 + 可读字号 + 达标触控 ── */
    @media (max-width: 640px) {
      .detail-modal {
        left: 0; top: 0; transform: none; margin: 0;
        width: 100vw; height: 100dvh; max-height: 100dvh;
        border-radius: 0; border-left: 0; border-right: 0;
        padding: calc(10px + env(safe-area-inset-top)) 13px calc(10px + env(safe-area-inset-bottom));
        display: flex; flex-direction: column; overflow: hidden;
      }
      /* 头部与底部固定，仅中间内容滚动 */
      .detail-head { flex: none; margin-bottom: 9px; gap: 8px; }
      .detail-title h3 { font-size: 15.5px; line-height: 1.4; margin-bottom: 7px; }
      .detail-sub { font-size: 12px; gap: 6px; }
      .detail-modal .icon-btn { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; flex: none; }
      .detail-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; gap: 10px; padding-right: 0; }
      .detail-modal .modal-foot { flex: none; margin-top: 9px; }
      .detail-modal .modal-foot .btn { min-height: 46px; font-size: 14px; }

      /* 版块：加大内边距与行距，避免文字挤压折叠 */
      .detail-sec { padding: 11px 13px 9px; border-radius: 12px; }
      .detail-sec h4 { font-size: 11.5px; letter-spacing: 0.8px; margin-bottom: 6px; }
      .detail-info .kv-row { font-size: 12.5px; padding: 6px 0; gap: 10px; line-height: 1.5; }
      .detail-info .kv-key { flex: 0 0 84px; font-size: 12px; }
      .detail-info { gap: 8px; }

      /* 作业人员：两列均分，头像与卡片加大 */
      .detail-crew { padding: 11px 13px; border-radius: 12px; }
      .detail-crew h4 { font-size: 11.5px; margin-bottom: 9px; }
      .crew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
      .crew-card { padding: 12px 10px; min-height: 96px; }
      .crew-av { flex-basis: 56px; width: 56px; height: 56px; font-size: 20px; }

      /* 施工内容等长文本：行距放宽，避免行与行贴在一起 */
      .detail-sec p, .detail-sec .d-text, .detail-sec .kv-val {
        line-height: 1.6; word-break: break-word;
      }
    }

    /* ── 统计大屏（参考 HL-3 安装任务数字大屏） ── */
    :root {
      --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
      --text: #e8f0fb;
      --text-2: #c2d3e8;
      --dim: #5d6f87;
      --cyan: #22d3ee;
      --green: #34d399;
      --line: rgba(125, 175, 230, 0.14);
    }
    body.screen-mode { overflow: hidden; background: #11141a; }
    body.screen-mode .sidebar,
    body.screen-mode .topbar,
    body.screen-mode .mobile-nav { display: none !important; }
    body.screen-mode .shell { min-height: 100vh; }
    body.screen-mode .main { min-height: 100vh; }
    body.screen-mode .content { padding: 0; height: 100vh; overflow: hidden; }

    .screen-page {
      position: relative;
      height: 100vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      color: var(--text);
      background:
        radial-gradient(1250px 640px at 50% -12%, rgba(34, 211, 238, 0.153), transparent 62%),
        radial-gradient(950px 560px at 104% 108%, rgba(56, 189, 248, 0.09), transparent 58%),
        radial-gradient(700px 420px at -6% 100%, rgba(14, 116, 144, 0.09), transparent 60%),
        linear-gradient(180deg, #11151a, #131a23 48%, #11151a);
    }
    .screen-page::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(34, 211, 238, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.025) 1px, transparent 1px),
        radial-gradient(circle, rgba(103, 232, 249, 0.22) 1px, transparent 1.4px);
      background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px, 26px 26px;
      -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 86%);
      mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 86%);
      z-index: 0;
    }
    .screen-page::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background: repeating-linear-gradient(180deg, rgba(16, 16, 16, 0.14) 0 1px, transparent 1px 4px);
      opacity: 0.28;
    }
    .screen-head {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      padding: 11px 20px;
      border-bottom: 1px solid rgba(34, 211, 238, 0.26);
      background: linear-gradient(90deg, rgba(20, 28, 37, 0.98), rgba(20, 34, 48, 0.92) 50%, rgba(20, 28, 37, 0.98));
      box-shadow: 0 12px 42px rgba(0, 0, 0, 0.48), inset 0 -1px 0 rgba(34, 211, 238, 0.08);
    }
    .screen-head::before {
      content: "";
      position: absolute;
      left: 0; right: 0; top: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.85), transparent);
      animation: headScan 8s linear infinite;
    }
    .screen-head::after {
      content: "";
      position: absolute;
      left: 18px; bottom: -1px;
      width: 150px; height: 1px;
      background: linear-gradient(90deg, #22d3ee, transparent);
      box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
    }
    .screen-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
    .screen-brand::before {
      content: "";
      width: 3px; height: 34px; flex: none;
      border-radius: 1px;
      background: linear-gradient(180deg, transparent, #22d3ee 28%, #a5f3fc 50%, #22d3ee 72%, transparent);
      box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
    }
    .screen-logo {
      width: 42px; height: 42px; flex: none;
      display: grid; place-items: center;
      border: 1px solid rgba(34, 211, 238, 0.55);
      border-radius: 3px;
      clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
      font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
      color: #8ff2ff;
      background: linear-gradient(145deg, rgba(34, 211, 238, 0.24), rgba(17, 28, 38, 0.92));
      box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.16), 0 0 20px rgba(34, 211, 238, 0.15);
      text-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
    }
    .screen-title {
      margin: 0;
      font-size: 22px;
      line-height: 1.2;
      letter-spacing: 1.4px;
      font-weight: 700;
      background: linear-gradient(90deg, #f4f9ff, #a5f3fc 46%, #38e0f5 76%, #22d3ee);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.22));
    }
    .screen-sub { margin-top: 3px; color: #a8bdd2; font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
    .screen-sub > span:not(.screen-status) { color: var(--cyan); margin: 0 2px; }
    .screen-status {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 1px 6px;
      border: 1px solid rgba(52, 211, 153, 0.35);
      border-radius: 2px;
      color: #5eead4;
      background: rgba(52, 211, 153, 0.07);
      font-size: 8px;
      letter-spacing: 1px;
      text-shadow: 0 0 8px rgba(52, 211, 153, 0.35);
    }
    .screen-status i { width: 4px; height: 4px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: livePulse 1.8s ease-in-out infinite; }
    .screen-kpis { display: flex; align-items: stretch; gap: 7px; margin-left: auto; flex-wrap: wrap; }
    .screen-kpi {
      position: relative;
      min-width: 72px;
      padding: 4px 9px 5px;
      border: 1px solid rgba(56, 189, 248, 0.18);
      border-radius: 2px;
      clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
      background: linear-gradient(155deg, rgba(22, 38, 55, 0.92), rgba(20, 28, 37, 0.82));
      display: flex;
      flex-direction: column;
      gap: 1px;
      box-shadow: inset 0 0 22px rgba(34, 211, 238, 0.035);
    }
    .screen-kpi::before {
      content: "";
      position: absolute;
      left: 0; top: 0; right: 0;
      height: 1px;
      background: linear-gradient(90deg, var(--tone, var(--cyan)), transparent 78%);
      opacity: 0.85;
      box-shadow: 0 0 8px var(--tone, var(--cyan));
    }
    .screen-kpi::after {
      content: "";
      position: absolute;
      left: 0; top: 0;
      width: 2px; height: 100%;
      background: var(--tone, var(--cyan));
      opacity: 0.6;
      box-shadow: 0 0 8px var(--tone, var(--cyan));
    }
    .screen-kpi b { font-family: var(--mono); font-size: 18px; line-height: 1.1; color: var(--tone, var(--cyan)); text-shadow: 0 0 15px rgba(34, 211, 238, 0.24); }
    .screen-kpi span { font-family: var(--mono); font-size: 9px; color: #a8c1d6; letter-spacing: 0.9px; white-space: nowrap; }
    .screen-kpi.cyan { --tone: #22d3ee; }
    .screen-kpi.violet { --tone: #a78bfa; }
    .screen-kpi.amber { --tone: #f5b942; }
    .screen-kpi.green { --tone: #34d399; }
    .screen-kpi.blue { --tone: #60a5fa; }
    .screen-kpi.rose { --tone: #fb7185; }
    .screen-clockbox { position: relative; text-align: right; min-width: 108px; padding-left: 12px; border-left: 1px solid rgba(34, 211, 238, 0.16); }
    .screen-clockbox::before {
      content: "SYS TIME";
      position: absolute;
      left: 12px; top: -3px;
      font-family: var(--mono);
      font-size: 6.5px;
      letter-spacing: 1.4px;
      color: #3e5a70;
    }
    .screen-clock {
      font-family: var(--mono);
      font-size: 24px;
      line-height: 1.1;
      letter-spacing: 2px;
      color: #a5f3fc;
      text-shadow: 0 0 14px rgba(34, 211, 238, 0.6), 0 0 34px rgba(34, 211, 238, 0.18);
    }
    .screen-date { margin-top: 2px; font-family: var(--mono); font-size: 9px; color: #a8bdd2; white-space: nowrap; }
    .screen-actions { display: flex; gap: 6px; }
    .screen-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      height: 31px; padding: 0 11px;
      border: 1px solid rgba(34, 211, 238, 0.28);
      border-radius: 2px;
      clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
      background: linear-gradient(160deg, rgba(21, 36, 51, 0.9), rgba(20, 28, 37, 0.8));
      color: #a8bdd2;
      font-family: var(--mono);
      font-size: 10.5px;
      white-space: nowrap;
      transition: all 0.15s;
      cursor: pointer;
    }
    .screen-btn svg { width: 14px; height: 14px; }
    .screen-btn:hover { color: #a5f3fc; border-color: rgba(34, 211, 238, 0.65); background: rgba(34, 211, 238, 0.08); box-shadow: 0 0 18px rgba(34, 211, 238, 0.12); }
    .screen-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.65); }
    .screen-btn.primary { color: #021117; border-color: transparent; background: linear-gradient(135deg, #8df3ff, #22d3ee 60%, #0ea5b7); box-shadow: 0 0 18px rgba(34, 211, 238, 0.22); }
    .screen-btn.primary:hover { color: #010c10; background: linear-gradient(135deg, #c5f8ff, #22d3ee 65%, #0891b2); }

    .screen-map-wrap {
      position: relative;
      z-index: 1;
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      padding: 8px 18px 0;
    }
    .screen-map-stage {
      position: relative;
      flex: 1 1 auto;
      min-height: 0;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* ── 仪表盘（任务 / 人员 / 工种 / 高风险） ── */
    .screen-dash {
      flex: none;
      width: 100%;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .dash-panel {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 5px;
      padding: 7px 12px 8px;
      border: 1px solid rgba(34, 211, 238, 0.18);
      border-radius: 2px;
      clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
      background: linear-gradient(150deg, rgba(21, 36, 51, 0.92), rgba(20, 28, 37, 0.86));
      box-shadow: inset 0 0 26px rgba(34, 211, 238, 0.04);
      overflow: hidden;
    }
    .dash-panel::before {
      content: "";
      position: absolute;
      left: 0; top: 0; right: 0;
      height: 1px;
      background: linear-gradient(90deg, var(--tone, #22d3ee), transparent 78%);
      opacity: 0.85;
      box-shadow: 0 0 8px var(--tone, #22d3ee);
    }
    .dash-panel::after {
      content: "";
      position: absolute;
      left: 0; top: 0;
      width: 2px; height: 100%;
      background: var(--tone, #22d3ee);
      opacity: 0.5;
      box-shadow: 0 0 8px var(--tone, #22d3ee);
    }
    .dash-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
    .dash-head h3 {
      margin: 0;
      font-size: 11.5px;
      font-weight: 600;
      letter-spacing: 1.1px;
      color: #d6f2ff;
      white-space: nowrap;
      text-shadow: 0 0 10px rgba(34, 211, 238, 0.28);
    }
    .dash-head span {
      font-family: var(--mono);
      font-size: 7.5px;
      letter-spacing: 1.3px;
      color: #a8c1d6;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .dash-head b {
      margin-left: auto;
      font-family: var(--mono);
      font-size: 9px;
      font-weight: 500;
      color: #a8c1d6;
      white-space: nowrap;
    }
    .dash-body { display: flex; align-items: center; gap: 12px; min-width: 0; }

    /* 环形仪表 */
        .g-track { stroke: rgba(120, 170, 210, 0.13); }
    .g-fill {
      stroke: var(--tone, #22d3ee);
      stroke-linecap: round;
      filter: drop-shadow(0 0 5px var(--tone, #22d3ee));
      transition: stroke-dashoffset 0.7s ease;
    }
                    /* 环形（工种分布） */
                        /* 指标列表 */
                        /* 工种图例 */
                            .dash-empty { color: #4d6a7e !important; }
    .screen-map {
      position: relative;
      width: 100%;
      max-width: 100%;
      aspect-ratio: 5000 / 2812;
      margin: 0 auto;
      border: 1px solid rgba(34, 211, 238, 0.36);
      border-radius: 2px;
      overflow: hidden;
      background: #12171e;
      box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.65),
        0 0 0 4px rgba(34, 211, 238, 0.025),
        0 0 70px rgba(34, 211, 238, 0.14),
        inset 0 0 64px rgba(0, 0, 0, 0.4);
    }
    .screen-map::before {
      content: "";
      position: absolute; inset: 0;
      z-index: 2;
      pointer-events: none;
      background: repeating-linear-gradient(180deg, rgba(34, 211, 238, 0.04) 0 1px, transparent 1px 4px);
      opacity: 0.16;
      mix-blend-mode: screen;
    }
    .screen-map::after {
      content: "";
      position: absolute; left: 0; right: 0; top: -22%;
      height: 18%;
      z-index: 2;
      pointer-events: none;
      background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.055), transparent);
      animation: mapSweep 11s linear infinite;
    }
    .screen-map > img {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: fill;
      filter: brightness(0.92) contrast(1.06) saturate(1.05);
      transform: none;
    }
    .screen-map-tint {
      position: absolute; inset: 0; pointer-events: none;
      z-index: 1;
      background:
        radial-gradient(ellipse at center, transparent 58%, rgba(17, 21, 27, 0.2) 100%),
        linear-gradient(180deg, rgba(18, 26, 34, 0.09), rgba(18, 26, 34, 0.004) 26%, rgba(18, 24, 30, 0.11)),
        repeating-linear-gradient(0deg, rgba(34, 211, 238, 0.022) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.022) 0 1px, transparent 1px 72px);
    }
    .screen-zone-briefs { position: absolute; inset: 0; z-index: 3; }
    .map-beam {
      position: absolute;
      left: 0; right: 0;
      height: 1px;
      z-index: 6;
      overflow: hidden;
      pointer-events: none;
    }
    .map-beam.top { top: 0; }
    .map-beam.bottom { bottom: 0; }
    .map-beam::before {
      content: "";
      position: absolute;
      top: 0;
      width: 28%;
      height: 100%;
      background: linear-gradient(90deg, transparent, #a5f3fc 42%, #22d3ee 54%, transparent);
      filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.9));
      animation: beamX 8s linear infinite;
    }
    .map-beam.bottom::before { animation-direction: reverse; animation-delay: 2.4s; }
    .screen-map-wrap::before,
    .screen-map-wrap::after {
      content: "";
      position: absolute;
      top: 12%;
      bottom: 16%;
      width: 1px;
      z-index: 1;
      pointer-events: none;
      background: repeating-linear-gradient(180deg, rgba(34, 211, 238, 0.45) 0 1px, transparent 1px 12px);
      opacity: 0.32;
    }
    .screen-map-wrap::before { left: 7px; }
    .screen-map-wrap::after { right: 7px; }
    .map-corner {
      position: absolute;
      z-index: 5;
      width: 22px; height: 22px;
      pointer-events: none;
      border-color: #67e8f9;
      filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.65));
    }
    .map-corner.tl { left: 7px; top: 7px; border-left: 1px solid; border-top: 1px solid; }
    .map-corner.tr { right: 7px; top: 7px; border-right: 1px solid; border-top: 1px solid; }
    .map-corner.bl { left: 7px; bottom: 7px; border-left: 1px solid; border-bottom: 1px solid; }
    .map-corner.br { right: 7px; bottom: 7px; border-right: 1px solid; border-bottom: 1px solid; }
    .screen-map-hud {
      position: absolute;
      left: 13px; top: 12px;
      z-index: 5;
      display: flex; align-items: center; gap: 6px;
      padding: 3px 8px;
      border: 1px solid rgba(34, 211, 238, 0.22);
      background: rgba(18, 26, 34, 0.66);
      color: #72d8e8;
      font-family: var(--mono);
      font-size: 8px;
      letter-spacing: 1.4px;
      pointer-events: none;
      clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
      text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
    }
    .screen-map-hud b { color: #22d3ee; font-weight: 600; }
    .screen-map-hud .hud-led { width: 4px; height: 4px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 8px #22d3ee; animation: livePulse 1.8s ease-in-out infinite; }

    .zone-brief {
      --status: #64748b;
      position: absolute;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 4px 6px 3px;
      border: 1px solid rgba(94, 234, 255, 0.2);
      border-radius: 1px;
      clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
      background:
        linear-gradient(135deg, rgba(160, 240, 255, 0.05) 0%, transparent 28%),
        linear-gradient(135deg, rgba(19, 27, 36, 0.22) 0%, rgba(18, 36, 53, 0.12) 58%, rgba(20, 43, 63, 0.05) 100%);
      color: var(--text-2);
      text-align: left;
      cursor: pointer;
      overflow: hidden;
      backdrop-filter: saturate(1.02);
      box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.02), 0 1px 8px rgba(0, 0, 0, 0.08);
      transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
      opacity: 0.9;                               /* 透明度 -10%：叠加框更实、金色文字更清晰 */
    }
    .zone-brief::before {
      content: "";
      position: absolute;
      left: 0; top: 0; right: 0;
      height: 1px;
      background: linear-gradient(90deg, var(--status), transparent 82%);
      box-shadow: 0 0 8px var(--status);
      opacity: 0.9;
    }
    .zone-brief::after {
      content: "";
      position: absolute;
      right: 0; bottom: 0;
      width: 7px; height: 7px;
      border-right: 1px solid var(--status);
      border-bottom: 1px solid var(--status);
      opacity: 0.65;
    }
    .zone-brief:hover, .zone-brief:focus-visible {
      z-index: 20;
      background:
        linear-gradient(135deg, rgba(160, 240, 255, 0.09) 0%, transparent 32%),
        linear-gradient(135deg, rgba(18, 31, 44, 0.5), rgba(19, 42, 62, 0.34));
      border-color: rgba(103, 232, 249, 0.6);
      box-shadow: 0 0 22px rgba(34, 211, 238, 0.18), inset 0 0 20px rgba(34, 211, 238, 0.05);
      transform: scale(1.012);
    }
    .zone-brief:focus-visible { outline: 2px solid rgba(34, 211, 238, 0.7); outline-offset: 1px; }
    .zone-brief.active { --status: #22d3ee; }
    .zone-brief.pending { --status: #f5b942; }
    .zone-brief.rejected { --status: #fb7185; }
    .zone-brief.archived { --status: #34d399; }
    .zone-brief.draft { --status: #64748b; }
    .zone-brief.is-none { --status: #334155; border-style: dashed; background: rgba(19, 26, 34, 0.1); opacity: 0.34; }
    .zb-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
    /* 区域编号：圆形徽标，悬浮于叠加框正中心（水平+垂直居中） */
    .zb-id {
      position: absolute;
      left: 50%; top: 50%;
      transform: translate(-50%, -50%);
      z-index: 5;
      display: flex; align-items: center; justify-content: center;
      width: 34px; height: 34px;
      border-radius: 50%;
      opacity: 0.7;                      /* 透明度 +30% */
      border: 1px solid rgba(192, 132, 252, 0.92);
      background: radial-gradient(circle at 50% 42%, rgba(95, 35, 142, 0.78), rgba(19, 26, 34, 0.86));
      box-shadow: 0 0 11px rgba(168, 85, 247, 0.45), inset 0 0 9px rgba(168, 85, 247, 0.28);
      font-family: var(--mono);
      font-size: 15.6px;                 /* 12px × 1.3 */
      font-weight: 700;
      color: #d8b4fe;                    /* 紫色 */
      line-height: 1;
      letter-spacing: 0.4px;
      -webkit-text-stroke: 0.26px rgba(255, 255, 255, 0.6);
      text-shadow: 0 0 7px rgba(168, 85, 247, 0.8), 0 1px 2px rgba(0, 0, 0, 0.95);
    }
    /* 编号移出标题行后，任务数靠右对齐 */
    .zb-head { justify-content: flex-end; }
    /* 窄框 / 扁条框：徽标缩小，避免压住任务数或文字 */
    .zone-brief.narrow .zb-id { width: 28px; height: 28px; font-size: 13px; }
    .zone-brief.strip .zb-id { width: 26px; height: 26px; font-size: 12px; }
    .zone-brief.short .zb-id { width: 27px; height: 27px; font-size: 13px; }
    .zb-count {
      font-family: var(--mono);
      font-size: 8.4px;
      color: #c8f542;
      opacity: 0.98;
      white-space: nowrap;
      -webkit-text-stroke: 0.38px rgba(255, 255, 255, 0.92);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.88), 0 0 5px rgba(255, 255, 255, 0.45);
    }
    .zb-count::before {
      content: "";
      display: inline-block;
      width: 4px; height: 4px;
      margin-right: 4px;
      vertical-align: 1px;
      border-radius: 50%;
      background: var(--status);
      box-shadow: 0 0 7px var(--status);
    }
    .zb-sub { display: flex; flex-wrap: wrap; gap: 1px 5px; font-family: var(--mono); font-size: 7.8px; line-height: 1.35; color: #c8f542; -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.9); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.92), 0 0 3px rgba(0, 0, 0, 0.85), 0 0 4px rgba(255, 255, 255, 0.4); }
    .zb-sub b { color: #c8f542; font-weight: 600; }
    .zb-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 2px; gap: 3px; overflow: hidden; }
    .zb-item { min-width: 0; overflow: hidden; }
    .zb-task {
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      font-size: 9px; line-height: 1.24; color: #c8f542;
      white-space: normal; overflow: hidden; word-break: break-all;
      -webkit-text-stroke: 0.38px rgba(255, 255, 255, 0.92);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.9), 0 0 5px rgba(255, 255, 255, 0.45);
    }
    .zb-unit {
      font-size: 7.8px; line-height: 1.2; color: #c8f542;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.9);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.92), 0 0 3px rgba(0, 0, 0, 0.85), 0 0 4px rgba(255, 255, 255, 0.4);
    }
    /* 叠加框文字锐化 +30%（对比度提升） */
    .zb-id, .zb-count, .zb-sub, .zb-sub b, .zb-task, .zb-unit, .zb-foot, .zb-empty {
      filter: contrast(1.3);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    .zone-brief.narrow .zb-task { -webkit-line-clamp: 1; }
    .zone-brief.strip .zb-task { -webkit-line-clamp: 1; }
    .zone-brief.strip .zb-unit { display: none; }
    .zb-empty { font-family: var(--mono); font-size: 7.8px; color: #b6e33c; letter-spacing: 0.3px; -webkit-text-stroke: 0.26px rgba(255, 255, 255, 0.8); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 3px rgba(0, 0, 0, 0.8), 0 0 4px rgba(255, 255, 255, 0.32); }
    .zb-foot {
      font-family: var(--mono);
      font-size: 7.8px;
      line-height: 1.2;
      color: #c8f542;
      -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.9);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.92), 0 0 3px rgba(0, 0, 0, 0.85), 0 0 4px rgba(255, 255, 255, 0.4);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      border-top: 1px solid rgba(94, 234, 255, 0.18);
      padding-top: 2px;
    }
    .zone-brief.narrow .zb-foot { display: none; }
    .zone-brief.narrow .zb-body { justify-content: flex-start; }
    .zone-brief.a8 .zb-foot { display: none; }
    .zone-brief.a8 .zb-body { justify-content: flex-start; }
    .zone-brief.strip { flex-direction: row; align-items: center; gap: 7px; padding: 2px 6px; }
    .zone-brief.strip .zb-head { flex: none; gap: 7px; }
    .zone-brief.strip .zb-body { flex: 1; justify-content: center; align-items: flex-end; padding-bottom: 1px; }
    .zone-brief.strip .zb-foot { display: none; }
    .zone-brief.strip .zb-task { font-size: 11.4px; }

    .screen-map-foot {
      position: absolute; right: 12px; bottom: 9px;
      z-index: 8;
      width: auto;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 14px;
      flex-wrap: nowrap;
      padding: 5px 11px;
      border: 1px solid rgba(34, 211, 238, 0.2);
      border-radius: 2px;
      background: rgba(18, 26, 34, 0.74);
      font-family: var(--mono);
      font-size: 9.5px;
      letter-spacing: 0.4px;
      color: #a8bdd2;
    }
    .screen-legend { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
    .legend-dot {
      display: inline-block;
      width: 5px; height: 5px;
      border-radius: 1px;
      margin-right: 5px;
      vertical-align: 1px;
      transform: rotate(45deg);
    }
    .legend-dot.active { background: #22d3ee; box-shadow: 0 0 7px #22d3ee; }
    .legend-dot.pending { background: #f5b942; box-shadow: 0 0 7px #f5b942; }
    .legend-dot.rejected { background: #fb7185; box-shadow: 0 0 7px #fb7185; }
    .legend-dot.archived { background: #34d399; box-shadow: 0 0 7px #34d399; }
    .legend-dot.none { background: #475569; }
    .screen-updated { white-space: nowrap; }

    .screen-mobile-briefs { display: none; }
    .screen-mobile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--text-2); font-size: 13px; }
    .screen-mobile-head span { color: var(--dim); font-size: 10.5px; }
    .screen-mobile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
    .mobile-zone-card {
      text-align: left;
      padding: 9px 10px;
      border: 1px solid var(--line);
      border-left: 2px solid var(--cyan);
      border-radius: 6px;
      background: rgba(25, 35, 49, 0.72);
      color: var(--text-2);
      cursor: pointer;
      font-family: inherit;
    }
    .mz-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); color: var(--cyan); font-size: 12px; font-weight: 700; }
    .mz-head span { color: var(--dim); font-size: 9.5px; font-weight: 400; }
    .mz-tasks { margin-top: 4px; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mz-foot { display: flex; gap: 10px; margin-top: 5px; font-size: 9.5px; color: var(--dim); }

    .screen-foot {
      position: relative;
      z-index: 2;
      flex: none;
      min-height: 33px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 18px;
      border-top: 1px solid rgba(34, 211, 238, 0.24);
      background: linear-gradient(90deg, rgba(18, 24, 31, 0.98), rgba(19, 33, 46, 0.94), rgba(18, 24, 31, 0.98));
      box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(34, 211, 238, 0.06);
      overflow: hidden;
      font-family: var(--mono);
    }
    .screen-foot::before {
      content: "";
      position: absolute;
      left: 0; right: 0; top: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), transparent);
    }
    .screen-ticker { flex: 1; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
    .screen-ticker-track { display: inline-flex; gap: 60px; white-space: nowrap; animation: screenTicker 55s linear infinite; will-change: transform; font-size: 10.5px; color: #8fb2c8; }
    .screen-ticker-track span { white-space: nowrap; }
    .screen-foot-meta { font-size: 9px; color: #a8bdd2; white-space: nowrap; }
    @keyframes screenTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
    @keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
    @keyframes headScan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
    @keyframes mapSweep { 0% { transform: translateY(0); } 100% { transform: translateY(680%); } }
    @keyframes beamX { 0% { transform: translateX(-110%); } 100% { transform: translateX(460%); } }

    /* ══ 16:9 固定画布（1600×900）+ 左右侧栏 ═════════════════════ */
    .screen-fit {
      position: fixed; inset: 0; z-index: 1;
      display: flex; align-items: center; justify-content: center;
      overflow: hidden; background: #11151a;
    }
    .screen-page {
      width: 1600px; height: 900px; flex: none;
      transform-origin: center center;
      will-change: transform;
    }
    /* 地图铺满「顶部横幅 ↔ 底部实时信息」之间；统计模块以 HUD 形式悬浮其上 */
    .screen-body {
      position: relative; z-index: 1;
      flex: 1 1 auto; min-height: 0;
      padding: 0;
      display: block;
    }
    .screen-map-stage {
      position: absolute; inset: 0;
      width: auto; height: auto;
      display: block;
      padding: 0;
    }
    .screen-map-stage .screen-map {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      max-width: none; aspect-ratio: auto;
      margin: 0;
      border: 0; border-radius: 0;
    }
    .screen-map-stage .screen-map > img { object-fit: fill; }
    /* 左上角让位给「任务统计」模块，HUD 标签右移 */
    .screen-map-hud { left: 262px; top: 14px; }

    /* ── 悬浮统计模块（任务统计：左上角；人员/工种/风险：B5 之下横排） ── */
    .screen-dash {
      position: absolute; z-index: 9;
      display: flex; min-width: 0; min-height: 0;
    }
    .screen-dash.is-topleft {
      left: 10px; top: 10px;
      width: 241px; height: 133px;      /* 原 344×190，整体缩小 30% */
      flex-direction: column;
    }
    .screen-dash.is-bottomrow {
      left: 10px;
      top: calc(85.7% + 6px);
      bottom: 7px;
      width: calc(51.96% - 20px);
      gap: 8px;
      align-items: stretch;
    }
    /* 无边框化：去掉边框/切角/顶部亮线/左侧色条，仅留一层淡背景，与底图融合 */
    .screen-dash .dash-panel {
      flex: 1 1 0; min-width: 0; min-height: 0;
      padding: 5px 10px 6px; gap: 3px;
      border: 0; border-radius: 0;
      clip-path: none;
      box-shadow: none;
      background: linear-gradient(150deg, rgba(22, 36, 50, 0.62), rgba(20, 28, 37, 0.46));
    }
    .screen-dash .dash-panel::before,
    .screen-dash .dash-panel::after { display: none; }
    /* 标题字号 -30% */
    .screen-dash .dash-head h3 { font-size: 8.75px; letter-spacing: .6px; }
    .screen-dash .dash-head span { font-size: 6px; letter-spacing: .8px; }
    .screen-dash .dash-head b { font-size: 8.5px; }
    .screen-dash .dash-body { flex-direction: column; align-items: stretch; gap: 0; flex: 1 1 auto; min-height: 0; justify-content: flex-start; overflow: hidden; }
    .screen-dash .dash-body.has-bars { justify-content: flex-start; gap: 0; }
    .screen-dash .dash-bars { gap: 0; }
    .screen-dash .dash-roll { gap: 2px; }
    .screen-dash .db-row { grid-template-columns: 60px minmax(0, 1fr) 26px; gap: 6px; height: 10px; }
    .screen-dash .db-label { font-size: 9.5px; line-height: 1; }
    .screen-dash .db-track { height: 7px; }
    .screen-dash .db-val { font-size: 10.5px; line-height: 1; }
    .screen-dash .dash-empty-line { font-size: 10px; }
    .screen-dash .risk-legend { padding-top: 2px; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
    .screen-dash .risk-legend span { font-size: 8px; gap: 3px; line-height: 1; }
    .screen-dash .risk-legend i { width: 6px; height: 6px; }

    .screen-dash.is-topleft .dash-panel { padding: 6px 9px 7px; gap: 4px; }
    .screen-dash.is-topleft .dash-head h3 { font-size: 8.4px; letter-spacing: .7px; }
    .screen-dash.is-topleft .dash-head span { font-size: 5.6px; }
    .screen-dash.is-topleft .dash-head b { font-size: 7.6px; }
    .screen-dash.is-topleft .dash-roll { gap: 4px; }
    .screen-dash.is-topleft .db-row { grid-template-columns: 58px minmax(0, 1fr) 24px; gap: 6px; height: 10px; }
    .screen-dash.is-topleft .db-label { font-size: 9.5px; }
    .screen-dash.is-topleft .db-track { height: 8px; }
    .screen-dash.is-topleft .db-val { font-size: 11px; }

    /* ── 横向柱状图（任务/人员/工种/风险共用） ── */
    /* .dash-bars 为可视裁剪区；.dash-roll 为内容轨道（顶端对齐，超高时循环滚动） */
    .dash-bars {
      list-style: none; margin: 0; padding: 0;
      display: block;
      flex: 1 1 auto; min-height: 0; overflow: hidden;
    }
    .dash-roll {
      display: flex; flex-direction: column; justify-content: flex-start;
      gap: 10px; will-change: transform;
    }
    .dash-bars.is-roll {
      -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
      mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    }
    @keyframes dashRoll { from { transform: translateY(0); } to { transform: translateY(var(--roll-dist, -100px)); } }
    .db-row {
      display: grid; grid-template-columns: 84px minmax(0, 1fr) 36px;
      align-items: center; gap: 9px; min-width: 0;
    }
    .db-label {
      font-family: var(--mono); font-size: 12px; line-height: 1.2;
      color: #9fbdd2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .db-track {
      position: relative; display: flex; height: 16px; border-radius: 2px;
      background: rgba(120, 170, 210, 0.12); overflow: hidden;
      box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.08);
    }
    .db-fill { display: block; height: 100%; border-radius: 2px; min-width: 3px; }
    .db-seg { display: block; height: 100%; }
    .db-seg:first-child { border-radius: 2px 0 0 2px; }
    .db-seg:last-child { border-radius: 0 2px 2px 0; }
    .db-val {
      font-family: var(--mono); font-size: 14px; font-weight: 600;
      color: #d9f3ff; text-align: right; font-variant-numeric: tabular-nums;
    }
    .dash-empty-line {
      display: flex; align-items: center; justify-content: center;
      flex: 1 1 auto; font-family: var(--mono); font-size: 11px; color: #4d6a7e;
      letter-spacing: .5px;
    }
    /* 风险图例（四色） */
    .risk-legend {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
      padding-top: 8px; border-top: 1px dashed rgba(34, 211, 238, 0.16);
    }
    .risk-legend span { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 10px; color: #a8bdd2; }
    .risk-legend i { width: 8px; height: 8px; border-radius: 1px; display: block; }


    /* 顶部信息条字号放大（画布固定，不再按视口缩放） */
    .screen-head { padding: 12px 20px; gap: 14px; }
    .screen-kpis { gap: 9px; }
    .screen-kpi { min-width: 88px; padding: 6px 12px 7px; }
    .screen-kpi b { font-size: 25px; }
    .screen-kpi span { font-size: 10.5px; letter-spacing: 1px; }
    .screen-clock { font-size: 29px; }
    .screen-date { font-size: 10.5px; }
    .screen-title { font-size: 22px; }
    .screen-sub { font-size: 9.5px; }

    /* ── 人员热度图 ── */
    .screen-heat {
      position: absolute; inset: 0; z-index: 2;
      pointer-events: none;
      mix-blend-mode: screen;
      opacity: .95;
    }
    .screen-heat i {
      position: absolute; display: block; border-radius: 50%;
      transform: translate(-50%, -50%);
      filter: blur(var(--heat-blur, 14px));
      will-change: opacity;
      animation: heatBreathe 4.5s ease-in-out infinite;
    }
    @keyframes heatBreathe { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
    .screen-heat-legend {
      position: absolute; right: 10px; top: 10px; z-index: 6;
      display: flex; align-items: center; gap: 9px;
      padding: 5px 10px 4px;
      border: 1px solid rgba(34, 211, 238, 0.26);
      background: rgba(18, 26, 34, 0.78);
      font-family: var(--mono); font-size: 10px; color: #8fb2c8;
      letter-spacing: .5px;
    }
    .screen-heat-legend .hl-title { white-space: nowrap; }
    .screen-heat-legend .hl-wrap {
      display: flex; flex-direction: column; gap: 2px;
    }
    /* 四段等宽色块，与「1-2 / 3-5 / 6-9 / 10+」四档一一对应 */
    .screen-heat-legend .hl-bar {
      width: 112px; height: 7px; border-radius: 1px;
      background: linear-gradient(90deg,
        #22d3ee 0 24%, #a3e635 26% 49%, #fbbf24 51% 74%, #ef4444 76% 100%);
      box-shadow: 0 0 10px rgba(249, 115, 22, 0.35);
    }
    .screen-heat-legend .hl-ticks {
      display: grid; grid-template-columns: repeat(4, 1fr);
      width: 112px; text-align: center;
      font-size: 8.5px; color: #a8bdd2; letter-spacing: 0;
    }
    .screen-heat-legend .hl-ticks i { font-style: normal; }
    .screen-heat-legend b { color: #d9f3ff; font-weight: 600; white-space: nowrap; }

    @media (max-width: 900px) {
      body.screen-mode { overflow: auto; }
      body.screen-mode .main { min-height: 100vh; }
      body.screen-mode .content { height: auto; min-height: 100vh; overflow: auto; }
      .screen-fit { position: static; display: block; overflow: visible; background: transparent; }
      .screen-page { width: 100%; height: auto; min-height: 100vh; overflow: visible; transform: none !important; }
      .screen-body { display: block; padding: 0; }
      .screen-map-stage { position: relative; inset: auto; flex: none; padding: 8px 11px 0; }
      .screen-map-stage .screen-map {
        position: relative; inset: auto;
        width: 100% !important; height: auto !important;
        aspect-ratio: 5000 / 2812;
        border: 1px solid rgba(34, 211, 238, 0.36); border-radius: 2px;
      }
      .screen-head { position: static; flex-wrap: wrap; gap: 9px; padding: 10px 13px 8px; }
      .screen-brand { flex: 1; min-width: 0; }
      .screen-brand::before { height: 28px; }
      .screen-logo { width: 35px; height: 35px; font-size: 10px; }
      .screen-title { font-size: 18px; }
      .screen-sub { font-size: 8px; letter-spacing: 1px; }
      .screen-status { font-size: 7px; padding: 1px 5px; }
      .screen-clockbox { min-width: 92px; }
      .screen-map-hud { left: 9px; top: 8px; font-size: 7px; padding: 2px 6px; }
      .screen-map-wrap::before, .screen-map-wrap::after { display: none; }
      .map-corner { width: 16px; height: 16px; }
      .map-corner.tl { left: 5px; top: 5px; }
      .map-corner.tr { right: 5px; top: 5px; }
      .map-corner.bl { left: 5px; bottom: 5px; }
      .map-corner.br { right: 5px; bottom: 5px; }
      .screen-clock { font-size: 18px; letter-spacing: 1px; }
      .screen-date { font-size: 8.5px; }
      .screen-actions { width: 100%; order: 5; }
      .screen-btn { flex: 1; height: 32px; }
      .screen-kpis { order: 4; width: 100%; margin-left: 0; display: flex; gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
      .screen-kpi { flex: 0 0 auto; min-width: 70px; }
      .screen-map-wrap { flex: none; padding: 8px 11px 0; }
      .screen-dash {
        position: static; inset: auto;
        width: auto !important; height: auto !important;
        display: grid; grid-template-columns: 1fr;
        gap: 8px; padding: 9px 11px 0;
      }
      .screen-dash .dash-panel { padding: 9px 11px 10px; gap: 6px; }
      .screen-dash .dash-head h3 { font-size: 13.5px; letter-spacing: 1.1px; }
      .screen-dash .dash-head span { font-size: 8.5px; letter-spacing: 1px; }
      .screen-dash .dash-head b { font-size: 10.5px; }
      .screen-dash .dash-roll { gap: 7px; }
      .screen-dash .db-row { grid-template-columns: 82px minmax(0, 1fr) 30px; gap: 8px; }
      .screen-dash .db-label { font-size: 11.5px; }
      .screen-dash .db-track { height: 12px; }
      .screen-dash .db-val { font-size: 13px; }
      .screen-dash .risk-legend { padding-top: 6px; gap: 8px; flex-wrap: wrap; }
      .screen-dash .risk-legend span { font-size: 9.5px; gap: 4px; }
      .screen-dash .risk-legend i { width: 8px; height: 8px; }
      .screen-map-foot {
        position: static; inset: auto;
        width: 100%; margin-top: 7px;
        padding: 5px 11px;
        justify-content: space-between; flex-wrap: wrap; gap: 7px;
      }
      .view-head { margin-bottom: 10px; }
      .view-head .view-title, .view-head .view-sub { display: none; }
      .view-actions { width: 100%; }
      .view-actions .btn { flex: 1; }
      .data-table { min-width: 660px; }
      .today-table { min-width: 900px; }
      .today-statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
      .ts-item { padding: 7px 9px; }
      .ts-item b { font-size: 18px; }
      .zp-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
      .zp-sum-item { padding: 7px 9px; }
      .zp-sum-item b { font-size: 18px; }
      .zp-groups { grid-template-columns: 1fr; gap: 8px; }
      .zp-cells { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); }
      .today-head { row-gap: 7px; }
      .today-date-wrap { margin-left: 0; }
      .today-count { order: 3; width: 100%; }
      .crew-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 7px; }
      .crew-card { padding: 10px 8px 9px; }
      .crew-av { flex-basis: 64px; width: 64px; height: 64px; font-size: 22px; }
      .crew-lb { padding: 12px 13px 13px; }
      .crew-lb-head h3 { font-size: 16px; }
      .crew-lb-photo img { max-height: min(46vh, 380px); }
      .crew-lb-photo.is-empty { height: min(38vh, 260px); }
      .crew-lb-rows { grid-template-columns: 1fr; }
      .screen-map { width: 100% !important; height: auto !important; max-width: 100%; }
      .screen-zone-briefs { display: none; }
      .screen-map-foot { width: 100%; font-size: 9px; }
      .screen-updated { display: none; }
      .screen-mobile-briefs { display: block; padding: 12px 13px 14px; }
      .screen-mobile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .screen-foot { min-height: 34px; height: auto; flex-wrap: wrap; padding: 7px 12px; gap: 7px; }
      .screen-ticker { flex-basis: 100%; order: 3; }
      .screen-foot-meta { display: none; }
    }
    @media (max-width: 480px) {
      .screen-title { font-size: 17px; }
      .screen-sub { display: none; }
      .screen-mobile-grid { grid-template-columns: 1fr; }
    }

    /* ── 身份绑定网关 ── */
    .gate {
      position: fixed; inset: 0; z-index: 120;
      display: flex; align-items: center; justify-content: center; padding: 20px;
      background:
        radial-gradient(700px 380px at 50% 18%, rgba(56, 189, 248, 0.162), transparent 68%),
        #161a22;
    }
    .gate-card {
      width: min(420px, 100%);
      border: 1px solid rgba(56, 189, 248, 0.28); border-radius: 18px;
      padding: 24px 22px 18px;
      background: linear-gradient(160deg, rgba(25, 35, 50, 0.98), rgba(22, 29, 40, 0.98));
      box-shadow: 0 30px 70px rgba(2, 6, 14, 0.6);
    }
    .gate-brand {
      width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px;
      display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: 0.08em;
      color: #eaf7ff;
      background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(56, 189, 248, 0.08));
      border: 1px solid rgba(56, 189, 248, 0.45);
    }
    .gate-card h2 { font-size: 19px; margin-bottom: 6px; }
    .gate-sub { font-size: 12.5px; color: var(--hl-muted); line-height: 1.65; margin-bottom: 16px; }
    .gate-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
    .gate-field > span { font-size: 12px; color: var(--hl-muted); }
    .gate-field i { color: var(--hl-danger-tx); font-style: normal; }
    .gate-field input {
      min-height: 44px; padding: 0 12px; border-radius: 11px;
      border: 1px solid var(--hl-line-2); background: rgba(21, 27, 37, 0.8);
      color: var(--hl-fg); font-size: 14px; font-family: inherit;
    }
    .gate-field input:focus { outline: none; border-color: rgba(56, 189, 248, 0.7); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16); }
    #gate-code { letter-spacing: 0.12em; text-transform: uppercase; font-family: ui-monospace, Menlo, monospace; }
    .gate-msg { min-height: 18px; font-size: 12px; color: var(--hl-danger-tx); margin-bottom: 8px; }
    .gate-btn { width: 100%; min-height: 44px; }
    .gate-foot { margin-top: 12px; font-size: 11px; color: rgba(180, 198, 220, 0.95); text-align: center; }

    /* ── 当前身份 / 权限提示 ── */
    .id-chip {
      display: flex; flex-direction: column; gap: 1px; padding: 5px 11px; border-radius: 11px;
      border: 1px solid rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.1);
      max-width: 240px;
    }
    .id-chip b { font-size: 12.5px; color: #eaf7ff; font-weight: 650; }
    .id-chip span { font-size: 10.5px; color: var(--hl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .nav-item.is-denied { opacity: 0.55; }
    .deny-card { padding: 34px 18px; text-align: center; }
    .deny-card h3 { font-size: 15px; margin-bottom: 6px; }
    .deny-card p { font-size: 12.5px; color: var(--hl-muted); line-height: 1.7; }

    /* ── 双重审批进度 ── */
    .stage-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
    .stage {
      display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
      font-size: 11.5px; border: 1px solid var(--hl-line-2); background: rgba(125, 175, 230, 0.06); color: var(--hl-fg-2);
    }
    .stage i { width: 6px; height: 6px; border-radius: 99px; background: var(--hl-muted); font-style: normal; }
    .stage.ok { border-color: rgba(52, 211, 153, 0.42); background: rgba(52, 211, 153, 0.12); color: #ccfbe8; }
    .stage.ok i { background: var(--hl-ok); }
    .stage.reject { border-color: rgba(251, 113, 133, 0.42); background: rgba(251, 113, 133, 0.12); color: #ffd9df; }
    .stage.reject i { background: var(--hl-danger); }
    .stage.wait { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.1); color: #ffe6ad; }
    .stage.wait i { background: var(--hl-warn); }
    .stage-hint { font-size: 11px; color: var(--hl-muted); margin-top: 6px; }

    /* ── 移动端底部导航 ── */
    .mobile-nav { display: none; }

    @media (min-width: 640px) {
      .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .field.span-2 { grid-column: 1 / -1; }
    }
    @media (min-width: 768px) {
      .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .chart-grid .card:first-child { grid-column: 1 / -1; }
    }
    @media (min-width: 1024px) {
      .layout-2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
      /* 单位名较长、区域格较多，按内容形态微调列宽（不再严格三等分） */
      .chart-grid { grid-template-columns: 1.05fr 0.95fr 1.1fr; }
      .chart-grid .card:first-child { grid-column: auto; }
      .content { padding: 20px 26px 40px; }
    }
    @media (max-width: 900px) {
      .sidebar { display: none; }
      /* 移动端顶栏：标题行 + 操作行两段式，操作区允许收缩换行，避免撑破视口 */
      .topbar { padding: 14px 16px 12px; flex-wrap: wrap; row-gap: 8px; }
      .topbar-main { flex: 1 1 100%; min-width: 0; }
      .topbar h1 { font-size: 16.5px; }
      .topbar-actions {
        width: 100%; margin-left: 0; flex-wrap: wrap; gap: 8px;
        justify-content: flex-end; min-width: 0;
      }
      .topbar-actions .id-chip { flex: 1 1 150px; min-width: 0; max-width: none; }
      .topbar-actions .btn { flex: 0 0 auto; }
      .content { padding: 14px 14px calc(92px + env(safe-area-inset-bottom)); }
      .mobile-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: rgba(22, 28, 38, 0.94); border-top: 1px solid var(--hl-line);
        backdrop-filter: blur(10px);
      }
      .mobile-nav button {
        flex: 1 1 0; min-height: 46px; border-radius: 12px; border: 1px solid transparent;
        background: transparent; color: var(--hl-muted); font-size: 12.5px; cursor: pointer;
        display: flex; align-items: center; justify-content: center; gap: 7px;
      }
      .mobile-nav button.is-active {
        color: #eaf7ff; background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.34);
      }
      .task-list, .queue { max-height: none; }
    }

    /* ── 平板竖屏 / 大手机（≤768px）：区域矩阵降为 4 列，避免格子过窄 ── */
    @media (max-width: 768px) {
      .zm-cells, .zm-cells.is-b { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }

    /* ── 手机端适配（≤480px）：条形图标签通栏、字号与触控达标 ── */
    @media (max-width: 480px) {
      /* 横条图：标签独占一行完整显示，条形与数值分列，避免单位名被省略 */
      .bar-row, .bars.is-dense .bar-row {
        grid-template-columns: minmax(0, 1fr) 42px;
        grid-template-rows: auto auto;
        row-gap: 4px; column-gap: 8px; font-size: 12px;
      }
      .bar-row .bar-label, .bars.is-dense .bar-row .bar-label {
        grid-column: 1 / -1;
        white-space: normal; overflow: visible; text-overflow: clip;
        line-height: 1.35; font-size: 12px;
      }
      .bar-row .bar-track, .bars.is-dense .bar-row .bar-track { grid-column: 1; }
      .bar-row .bar-value, .bars.is-dense .bar-row .bar-value { grid-column: 2; }
      .bars.is-dense { gap: 8px; }
      /* 区域矩阵：A 区 4 列（12 格 3 行）、B 区 5 列（5 格 1 行），比 3 列更紧凑 */
      .zm-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .zm-cells.is-b { grid-template-columns: repeat(5, minmax(0, 1fr)); }
      .zm-cell { height: 40px; }
      /* 纵向柱状图：轴标签隔一显示星期，柱宽收窄 */
      .vbar-axis span:nth-child(even) i { display: none; }
      .vbars, .vbar-axis { gap: 6px; }
      .vbar-val { font-size: 9px; top: -12px; }

      /* 触控：次级按钮与筛选控件最小高度 42px */
      .btn.sm, .btn.ghost.sm, .tab, .arc-day-btn, .qr-btn, .screen-btn,
      .tf-select, .tf-btn {
        min-height: 42px;
      }
      /* 筛选区：控件占满整行，避免小控件并排挤压 */
      .filter-bar select, .filter-bar .tf-select { min-width: 0; }
      /* 可读性：10.5px 级正文/表格文本抬到 11.5px（大屏 16:9 画布除外） */
      .data-table th, .data-table td, .data-note, .kv, .chip, .task-meta,
      .arc-meta, .stat-sub, .id-chip span,
      .today-code, .today-zone i, .today-contact i, .today-time i,
      .trend-labels, .wk-labels, .zp-group-head span,
      .today-crew i, .seg-item i, .ac-item {
        font-size: 11.5px;
      }
      /* 今日任务清单：行高同步放大，避免字号变大后文字挤压 */
      .today-code, .today-zone i, .today-contact i, .today-time i { line-height: 1.45; }
    }

    /* 统计大屏（手机端）：标签列加宽、字号微调，减少单位名折叠 */
    @media (max-width: 900px) {
      .screen-dash .db-row { grid-template-columns: 100px minmax(0, 1fr) 32px; gap: 7px; }
      .screen-dash .db-label { font-size: 11px; }
      .screen-dash .db-val { font-size: 12.5px; }
    }

  /* =========================================================
     未来科技感主题层（审批端）— 仅视觉覆盖，不改结构与逻辑
     深空蓝紫渐变 / 毛玻璃拟态 / 霓虹光晕 / 高对比文字
     ========================================================= */
  :root {
    --ss-bg: #10141c;
    --ss-fg: #eef3fa;
    --ss-muted: #d3dfee;
    --ss-muted-bg: rgba(158, 182, 214, 0.12);
    --ss-border: rgba(158, 182, 214, 0.2);
    --ss-card: rgba(34, 40, 54, 0.72);
    --ss-card-fg: #eef3fa;
    --ss-primary: #6366f1;
    --ss-primary-fg: #ffffff;
    --ss-danger: #ff93a4;
    --ss-radius: 14px;
    color-scheme: dark;
    --tk-glass: linear-gradient(160deg, rgba(43, 50, 68, 0.72), rgba(27, 32, 43, 0.62));
    --tk-glass-2: linear-gradient(160deg, rgba(50, 58, 77, 0.62), rgba(29, 34, 47, 0.5));
    --tk-edge: 0 0 0 1px rgba(158, 182, 214, 0.22);
    --tk-lift: 0 18px 46px -24px rgba(2, 6, 23, 0.95), 0 2px 8px -4px rgba(2, 6, 23, 0.7);
    --tk-inset: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --tk-font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
      "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  }
  /* 强制深色（覆盖系统亮色偏好） */
  @media (prefers-color-scheme: light) {
    :root {
      --ss-bg: #10141c; --ss-fg: #eef3fa; --ss-muted: #d3dfee;
      --ss-muted-bg: rgba(158, 182, 214, 0.12); --ss-border: rgba(158, 182, 214, 0.2);
      --ss-card: rgba(34, 40, 54, 0.72); --ss-card-fg: #eef3fa;
      --ss-primary: #6366f1; --ss-primary-fg: #ffffff; --ss-danger: #ff93a4;
    }
  }

  body {
    background-color: #10141c;
    background-image:
      radial-gradient(1200px 620px at 78% -14%, rgba(56, 189, 248, 0.108), transparent 60%),
      radial-gradient(980px 560px at -10% 106%, rgba(139, 92, 246, 0.108), transparent 62%),
      radial-gradient(760px 460px at 50% 44%, rgba(45, 212, 191, 0.045), transparent 68%),
      linear-gradient(rgba(158, 182, 214, 0.026) 1px, transparent 1px),
      linear-gradient(90deg, rgba(158, 182, 214, 0.026) 1px, transparent 1px),
      linear-gradient(180deg, #161a23 0%, #10141c 48%, #0f121a 100%);
    background-size: auto, auto, auto, 62px 62px, 62px 62px, auto;
    background-attachment: fixed;
    font-family: var(--tk-font);
    color: var(--ss-fg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .card, .kpi, .side-card {
    background: var(--tk-glass) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    border-color: rgba(129, 140, 248, 0.16) !important;
    box-shadow: var(--tk-edge), var(--tk-lift), var(--tk-inset);
  }
  .kpi-value { text-shadow: 0 0 18px rgba(34, 211, 238, 0.32); }

  .btn {
    border-radius: 12px;
    transition: box-shadow 0.2s, transform 0.16s, background 0.2s, border-color 0.2s;
  }
  .btn.primary {
    background: linear-gradient(135deg, #22d3ee, #6366f1 54%, #a78bfa) !important;
    border-color: transparent !important;
    color: #04060f !important;
    font-weight: 700;
    box-shadow: 0 0 20px -4px rgba(99, 102, 241, 0.7), 0 8px 20px -12px rgba(34, 211, 238, 0.8), var(--tk-inset);
  }
  .btn.primary:hover:not(:disabled) {
    color: #04060f !important;
    filter: none;
    box-shadow: 0 0 30px -2px rgba(99, 102, 241, 0.85), 0 10px 24px -12px rgba(34, 211, 238, 0.95);
    transform: translateY(-1px);
  }
  .btn.ghost {
    background: rgba(32, 38, 62, 0.55) !important;
    border-color: rgba(129, 140, 248, 0.28) !important;
    color: #c7d2fe !important;
  }
  .btn.ghost:hover { border-color: rgba(34, 211, 238, 0.55) !important; box-shadow: 0 0 18px -8px rgba(34, 211, 238, 0.8); }

  .input, select, textarea {
    background: rgba(24, 28, 44, 0.7) !important;
    border-color: rgba(129, 140, 248, 0.22) !important;
    border-radius: 12px;
    color: var(--ss-fg);
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  }
  .input:focus, select:focus, textarea:focus {
    border-color: rgba(34, 211, 238, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14), 0 0 20px -8px rgba(34, 211, 238, 0.9) !important;
  }

  .chip { border-radius: 99px; border-color: rgba(129, 140, 248, 0.26); background: rgba(99, 102, 241, 0.12); }

  .modal-mask { background: rgba(3, 5, 14, 0.72) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .modal {
    background: linear-gradient(165deg, rgba(34, 40, 68, 0.92), rgba(23, 26, 42, 0.94)) !important;
    border: 1px solid rgba(129, 140, 248, 0.22) !important;
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.12), 0 40px 90px -40px rgba(2, 6, 23, 1),
      0 0 60px -30px rgba(99, 102, 241, 0.8) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
  }

  ::-webkit-scrollbar { width: 9px; height: 9px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.45), rgba(139, 92, 246, 0.45));
    border-radius: 99px; border: 2px solid transparent; background-clip: padding-box;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.7), rgba(139, 92, 246, 0.7));
    background-clip: padding-box;
  }

  /* 首屏加载条：数据未到齐时显示，数据填充后自动移除 */
  .load-bar {
    position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 99999;
    background: linear-gradient(90deg, transparent, #22d3ee 35%, #a78bfa 65%, transparent);
    background-size: 45% 100%;
    background-repeat: no-repeat;
    animation: loadSlide 1.1s linear infinite;
    pointer-events: none;
  }
  @keyframes loadSlide { 0% { background-position: -45% 0; } 100% { background-position: 145% 0; } }

  /* 业务数据未到时的占位提示（身份已就绪、界面已显示，数据在后台补齐） */
  .data-pending {
    display: flex; align-items: center; gap: 9px;
    margin: 0 0 14px; padding: 11px 14px; border-radius: 11px;
    border: 1px dashed rgba(125, 175, 230, 0.38);
    background: rgba(125, 175, 230, 0.06);
    font-size: 12.5px; color: var(--hl-muted);
  }
  .data-pending::before {
    content: ''; width: 13px; height: 13px; border-radius: 50%;
    border: 2px solid rgba(125, 175, 230, 0.3); border-top-color: #22d3ee;
    animation: dpSpin 0.8s linear infinite; flex: none;
  }
  @keyframes dpSpin { to { transform: rotate(360deg); } }

  /* 移动端性能降级：固定背景 + 大半径毛玻璃在低端机 / 微信内核上会明显拖慢首屏 */
  @media (max-width: 900px) {
    body { background-attachment: scroll; }
    .card, .kpi, .side-card, .modal {
      -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
      backdrop-filter: blur(8px) saturate(120%) !important;
    }
  }

  @media (prefers-contrast: more) {
    :root { --ss-muted: #a8b6e0; --ss-fg: #f5f7ff; }
    .card, .kpi { background: rgba(12, 16, 34, 0.92) !important; }
  }

  /* ── 今日行车使用矩阵（时间 × 任务） ── */
  .crane-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
  .crane-sum > span {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 5px 12px; border-radius: 999px; font-size: 11.5px;
    border: 1px solid var(--hl-line); background: rgba(125, 175, 230, 0.06);
    color: var(--hl-muted);
  }
  .crane-sum b { font-size: 13.5px; color: var(--hl-fg); font-weight: 700; }
  .crane-sum .cs-clash {
    border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.1); color: #fecaca;
  }
  .crane-sum .cs-clash b { color: #fca5a5; }
  .crane-sum .cs-warn { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); color: #fde68a; }

  .crane-matrix-wrap { overflow-x: auto; padding-bottom: 2px; }
  /* 全天 48 格：给足最小宽度保证每格可读（约 14px），窄屏由外层横向滚动承载 */
  .crane-matrix { min-width: 900px; }

  .cm-head, .cm-row {
    display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 12px; align-items: center;
  }
  .cm-head {
    padding-bottom: 6px; margin-bottom: 5px; border-bottom: 1px solid var(--hl-line);
  }
  .cm-label { font-size: 10.5px; letter-spacing: 1px; color: var(--hl-muted); text-transform: uppercase; }
  .cm-slots { display: grid; gap: 2px; }
  /* 刻度按「格边界」绝对定位（相对刻度行容器），首端左对齐 / 末端右对齐，避免半格错位与截断 */
  .cm-ticks {
    position: relative; height: 15px; display: block !important;
    font-family: var(--mono); font-size: 9.5px; color: var(--hl-muted);
  }
  .cm-ticks span {
    position: absolute; top: 0; transform: translateX(-50%);
    white-space: nowrap; overflow: visible; text-align: center;
  }
  .cm-ticks span.is-first { transform: none; }
  .cm-ticks span.is-last { transform: translateX(-100%); }

  .cm-row { padding: 5px 0; border-bottom: 1px dashed rgba(125, 175, 230, 0.1); }
  .cm-row:last-child { border-bottom: 0; }
  .cm-task { min-width: 0; line-height: 1.45; }
  .cm-task b {
    display: block; font-size: 12px; color: var(--hl-fg-2); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .cm-task span {
    display: block; font-size: 10.5px; color: var(--hl-muted); line-height: 1.4;
    white-space: normal; overflow-wrap: anywhere;
  }
  .cm-row.is-pending .cm-task b { color: #fbbf24; }
  .cm-row.is-rejected .cm-task b { color: #ffa8a8; }

  .cm-slot {
    height: 24px; border-radius: 4px;
    background: rgba(125, 175, 230, 0.07);
    transition: background 0.15s;
  }
  .cm-slot.is-on {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.78), rgba(56, 189, 248, 0.5));
    box-shadow: 0 0 10px -3px rgba(56, 189, 248, 0.9);
  }
  .cm-slot.is-clash {
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.88), rgba(248, 113, 113, 0.6));
    box-shadow: 0 0 12px -3px rgba(248, 113, 113, 1);
  }
  .cm-slot:hover { outline: 1px solid rgba(56, 189, 248, 0.5); }

  @media (max-width: 1100px) {
    .cm-head, .cm-row { grid-template-columns: 190px minmax(0, 1fr); gap: 9px; }
    .crane-matrix { min-width: 860px; }
  }

  /* 手机端数据组件未加载时的引导面板 */
  .env-guide {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
    z-index: 99998; width: min(360px, calc(100vw - 32px));
    padding: 16px 16px 14px; border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: linear-gradient(165deg, rgba(50, 42, 24, 0.97), rgba(30, 27, 20, 0.98));
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
    color: #fde68a;
  }
  .env-guide .eg-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: #fcd34d; }
  .env-guide .eg-body { font-size: 12px; line-height: 1.75; color: #fde68a; opacity: 0.92; }
  .env-guide .eg-body b { color: #fff7d6; }
  .env-guide .eg-acts { display: flex; gap: 8px; margin-top: 13px; }
  .env-guide .eg-acts .btn { flex: 1 1 0; }

  
大，避免字号变大后文字挤压 */
      .today-code, .today-zone i, .today-contact i, .today-time i { line-height: 1.45; }
    }

    /* 统计大屏（手机端）：标签列加宽、字号微调，减少单位名折叠 */
    @media (max-width: 900px) {
      .screen-dash .db-row { grid-template-columns: 100px minmax(0, 1fr) 32px; gap: 7px; }
      .screen-dash .db-label { font-size: 11px; }
      .screen-dash .db-val { font-size: 12.5px; }
    }


    /* =========================================================
       主题层：日间 / 夜间（三端统一 token）
       html[data-theme] = auto | light | dark；auto 跟随系统
       仅覆盖颜色与视觉，不改结构与业务逻辑
       ========================================================= */
    :root {
      --hl-theme-shadow: 0 12px 34px -18px rgba(2, 6, 14, 0.72);
      --hl-theme-shadow-2: 0 20px 48px -26px rgba(2, 6, 14, 0.86);
      --hl-glass: rgba(27, 32, 43, 0.95);
      --hl-input-bg: rgba(25, 31, 41, 0.9);
      --hl-map-filter: brightness(0.52) saturate(0.85) contrast(1.04);
      --hl-map-blend: screen;
      --hl-body-bg:
        radial-gradient(1100px 560px at 82% -12%, 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);
    }
    html[data-theme="light"] {
      --hl-bg: #f2f6fc; --hl-panel: rgba(255,255,255,0.94); --hl-panel-2: #eaf1fa;
      --hl-line: rgba(23,62,110,0.12); --hl-line-2: rgba(23,62,110,0.22);
      --hl-fg: #0f2137; --hl-fg-2: #294761; --hl-muted: #5d7793; --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: #0a7ec2; --hl-ok: #0f9b6c; --hl-warn: #b0700a;
      --hl-danger: #d62f4d; --hl-violet: #6b4fd0;
      --ss-bg: #f2f6fc; --ss-fg: #0f2137; --ss-muted: #5d7793;
      --ss-muted-bg: #eaf1fa; --ss-border: rgba(23,62,110,0.14);
      --ss-card: rgba(255,255,255,0.94); --ss-card-fg: #0f2137; --ss-primary: #0a7ec2;
      --ss-primary-fg: #ffffff; --ss-danger: #d62f4d;
      --hl-theme-shadow: 0 8px 24px -16px rgba(20,50,90,0.35);
      --hl-theme-shadow-2: 0 16px 40px -24px rgba(20,50,90,0.4);
      --hl-glass: rgba(255,255,255,0.96); --hl-input-bg: #ffffff;
      --hl-map-filter: brightness(1.04) saturate(0.96) contrast(1.02);
      --hl-map-blend: multiply;
      --hl-body-bg:
        radial-gradient(1100px 560px at 82% -12%, rgba(10,126,194,0.10), transparent 62%),
        radial-gradient(900px 520px at -8% 104%, rgba(107,79,208,0.08), transparent 60%),
        var(--hl-bg);
      --tk-glass: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(240,246,252,0.84));
      --tk-glass-2: linear-gradient(160deg, rgba(255,255,255,0.82), rgba(238,244,251,0.74));
      --tk-edge: 0 0 0 1px rgba(23,62,110,0.12);
      --tk-lift: 0 14px 36px -22px rgba(20,50,90,0.35), 0 2px 8px -4px rgba(20,50,90,0.22);
      --tk-inset: inset 0 1px 0 rgba(255,255,255,0.85);
      color-scheme: light;
    }
    @media (prefers-color-scheme: light) {
      html[data-theme="auto"] {
        --hl-bg: #f2f6fc; --hl-panel: rgba(255,255,255,0.94); --hl-panel-2: #eaf1fa;
        --hl-line: rgba(23,62,110,0.12); --hl-line-2: rgba(23,62,110,0.22);
        --hl-fg: #0f2137; --hl-fg-2: #294761; --hl-muted: #5d7793; --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: #0a7ec2; --hl-ok: #0f9b6c; --hl-warn: #b0700a;
        --hl-danger: #d62f4d; --hl-violet: #6b4fd0;
        --ss-bg: #f2f6fc; --ss-fg: #0f2137; --ss-muted: #5d7793;
        --ss-muted-bg: #eaf1fa; --ss-border: rgba(23,62,110,0.14);
        --ss-card: rgba(255,255,255,0.94); --ss-card-fg: #0f2137; --ss-primary: #0a7ec2;
        --ss-primary-fg: #ffffff; --ss-danger: #d62f4d;
        --hl-theme-shadow: 0 8px 24px -16px rgba(20,50,90,0.35);
        --hl-theme-shadow-2: 0 16px 40px -24px rgba(20,50,90,0.4);
        --hl-glass: rgba(255,255,255,0.96); --hl-input-bg: #ffffff;
        --hl-map-filter: brightness(1.04) saturate(0.96) contrast(1.02);
        --hl-map-blend: multiply;
        --hl-body-bg:
          radial-gradient(1100px 560px at 82% -12%, rgba(10,126,194,0.10), transparent 62%),
          radial-gradient(900px 520px at -8% 104%, rgba(107,79,208,0.08), transparent 60%),
          var(--hl-bg);
        --tk-glass: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(240,246,252,0.84));
        --tk-glass-2: linear-gradient(160deg, rgba(255,255,255,0.82), rgba(238,244,251,0.74));
        --tk-edge: 0 0 0 1px rgba(23,62,110,0.12);
        --tk-lift: 0 14px 36px -22px rgba(20,50,90,0.35), 0 2px 8px -4px rgba(20,50,90,0.22);
        --tk-inset: inset 0 1px 0 rgba(255,255,255,0.85);
        color-scheme: light;
      }
    }
    html[data-theme="light"] body { background: var(--hl-body-bg); }
    html[data-theme="light"] .topbar,
    html[data-theme="light"] .mobile-nav {
      background: var(--hl-glass); border-color: var(--hl-line);
      box-shadow: var(--hl-theme-shadow);
    }
    html[data-theme="light"] .sidebar {
      background: linear-gradient(180deg, #ffffff, #f0f5fb) !important;
    }
    html[data-theme="light"] .brand-mark {
      background: linear-gradient(135deg, #22d3ee, #0a6fab 52%, #6b4fd0) !important;
      color: #ffffff !important;
    }
    /* 选中态可读性：浅底上改用深色文字（原浅色文字在日间不可见） */
    html[data-theme="light"] .nav-item.is-active,
    html[data-theme="light"] .nav-item.is-on {
      background: linear-gradient(120deg, rgba(10,126,194,0.14), rgba(107,79,208,0.10)) !important;
      border-color: rgba(10,126,194,0.38) !important;
      color: #075a8c !important;
      font-weight: 650;
    }
    html[data-theme="light"] .nav-item.is-active .nav-badge,
    html[data-theme="light"] .nav-item.is-on .nav-badge {
      background: #0a7ec2 !important; color: #ffffff !important;
    }
    html[data-theme="light"] .nav-item:hover { background: rgba(10,126,194,0.08); color: var(--hl-fg); }
    html[data-theme="light"] .arc-day-btn {
      background: #ffffff; border-color: rgba(23,62,110,0.22); color: var(--hl-fg-2);
    }
    html[data-theme="light"] .arc-day-btn:hover { border-color: #0a7ec2; color: #085f93; }
    html[data-theme="light"] .arc-day-btn.active {
      background: rgba(10,126,194,0.14) !important;
      border-color: #0a7ec2 !important;
      color: #075a8c !important;
      font-weight: 650;
    }
    html[data-theme="light"] .nav-item.is-on {
      background: linear-gradient(120deg, rgba(10,126,194,0.12), rgba(107,79,208,0.12)) !important;
      color: #085f93 !important;
    }
    html[data-theme="light"] .card, html[data-theme="light"] .mod-card,
    html[data-theme="light"] .gate-card, html[data-theme="light"] .closure-kpi,
    html[data-theme="light"] .kpi, html[data-theme="light"] .combo,
    html[data-theme="light"] .task-item, html[data-theme="light"] .rec-card,
    html[data-theme="light"] .detail-sec, html[data-theme="light"] .detail-crew,
    html[data-theme="light"] .detail-modal, html[data-theme="light"] .modal {
      background: var(--tk-glass) !important;
      border-color: rgba(23,62,110,0.14) !important;
      color: var(--hl-fg);
      box-shadow: var(--tk-edge), var(--tk-lift), var(--tk-inset);
    }
    html[data-theme="light"] .modal, html[data-theme="light"] .detail-modal,
    html[data-theme="light"] .boot {
      background: #ffffff !important;
      box-shadow: var(--hl-theme-shadow-2);
    }
    html[data-theme="light"] .btn.primary {
      background: linear-gradient(135deg, #38bdf8, #0a6fab 54%, #6b4fd0) !important;
      color: #ffffff !important;
    }
    html[data-theme="light"] .btn.ghost {
      background: #ffffff !important;
      border-color: rgba(23,62,110,0.22) !important;
      color: var(--hl-fg-2) !important;
    }
    html[data-theme="light"] .btn.danger {
      background: linear-gradient(135deg, #f87171, #c81e4a) !important;
      color: #ffffff !important;
    }
    html[data-theme="light"] .input, html[data-theme="light"] .mini-input,
    html[data-theme="light"] .mini-select, html[data-theme="light"] select,
    html[data-theme="light"] textarea {
      background: #ffffff !important; color: var(--hl-fg) !important;
      border-color: rgba(23,62,110,0.22) !important;
    }
    html[data-theme="light"] .tab { background: #eef4fb; color: var(--hl-fg-2); }
    html[data-theme="light"] .tab.active { background: rgba(10,126,194,0.14); color: #085f93; }
    html[data-theme="light"] .chip { background: #e9f1fa; border-color: var(--hl-line); color: var(--hl-fg-2); }
    html[data-theme="light"] .data-table th { background: #eaf1fa; color: var(--hl-fg-2); }
    html[data-theme="light"] .data-table td { border-color: var(--hl-line); }
    html[data-theme="light"] .today-table th { background: #eaf1fa; }
    html[data-theme="light"] .crane-matrix { background: var(--hl-panel); border-color: var(--hl-line); }
    html[data-theme="light"] .cm-slot { background: #e8eef6; }
    html[data-theme="light"] .cm-slot.is-on { background: linear-gradient(180deg, #7dd3fc, #38bdf8); }
    html[data-theme="light"] .cm-slot.is-clash { background: linear-gradient(180deg, #fca5a5, #f87171); }
    html[data-theme="light"] .screen-dash .dash-panel {
      background: var(--tk-glass) !important; border-color: rgba(23,62,110,0.14) !important;
    }
    html[data-theme="light"] .screen-dash .db-track { background: rgba(23,62,110,0.10); }
    html[data-theme="light"] .detail-info .kv-row { border-color: var(--hl-line); }
    html[data-theme="light"] .record-list .rec-card, html[data-theme="light"] .day-group,
    html[data-theme="light"] .qday-bar { background: var(--hl-panel); border-color: var(--hl-line); color: var(--hl-fg); }
    html[data-theme="light"] .crew-card { background: #f4f8fd; border-color: var(--hl-line); }
    html[data-theme="light"] .crew-av { border-color: rgba(10,126,194,0.4); }
    html[data-theme="light"] .map-stage { background: #e8eef6; }
    html[data-theme="light"] .map-stage img { filter: var(--hl-map-filter); }
    html[data-theme="light"] .map-heat { mix-blend-mode: var(--hl-map-blend); opacity: 0.72; }
    html[data-theme="light"] .zone-rect { stroke: rgba(10,126,194,0.45); }
    html[data-theme="light"] .modal-mask { background: rgba(15,30,55,0.38) !important; }
    html[data-theme="light"] .kpi-value, html[data-theme="light"] .closure-kpi b,
    html[data-theme="light"] .donut-total b, html[data-theme="light"] .db-val { text-shadow: none; }
    html[data-theme="light"] .kv-row, html[data-theme="light"] .kv-row:last-child { border-color: var(--hl-line); }
    html[data-theme="light"] .task-meta, html[data-theme="light"] .task-code { color: var(--hl-muted); }
    html[data-theme="light"] .bar-track { background: rgba(23,62,110,0.10); }
    html[data-theme="light"] .id-chip { background: rgba(10,126,194,0.08); border-color: rgba(10,126,194,0.3); }
    html[data-theme="light"] .sync-pill { background: rgba(15,155,108,0.1); color: #0b7a55; }
    html[data-theme="light"] .theme-toggle { background: #ffffff; }
    /* 高亮背景块文字可读性（语义按钮 / 状态标签 / 提示条） */
    html[data-theme="light"] .btn {
      background: #ffffff !important;
      border-color: rgba(23, 62, 110, 0.22) !important;
      color: var(--hl-fg-2) !important;
    }
    html[data-theme="light"] .btn.ok {
      background: rgba(15, 155, 108, 0.12) !important;
      border-color: rgba(15, 155, 108, 0.45) !important;
      color: #0b7a55 !important;
    }
    html[data-theme="light"] .btn.danger {
      background: rgba(214, 47, 77, 0.10) !important;
      border-color: rgba(214, 47, 77, 0.42) !important;
      color: #b02440 !important;
    }
    html[data-theme="light"] .btn.warn {
      background: rgba(176, 112, 10, 0.12) !important;
      border-color: rgba(176, 112, 10, 0.42) !important;
      color: #8a5806 !important;
    }
    html[data-theme="light"] .stage.ok { color: #0b7a55 !important; background: rgba(15,155,108,0.12) !important; }
    html[data-theme="light"] .stage.reject { color: #b02440 !important; background: rgba(214,47,77,0.10) !important; }
    html[data-theme="light"] .stage.wait { color: #8a5806 !important; background: rgba(176,112,10,0.12) !important; }
    html[data-theme="light"] .stage { color: var(--hl-fg-2); }
    html[data-theme="light"] .day-tag {
      color: #075a8c !important; background: rgba(10,126,194,0.12) !important;
      border-color: rgba(10,126,194,0.4) !important;
    }
    html[data-theme="light"] .risk-inline {
      color: #8a5806 !important; background: rgba(176,112,10,0.10) !important;
      border-left-color: rgba(176,112,10,0.6) !important;
    }
    html[data-theme="light"] .qday-bar, html[data-theme="light"] .day-group {
      background: #eef4fb !important; border-color: var(--hl-line) !important;
    }
    html[data-theme="light"] .brand-mark {
      background: linear-gradient(135deg, #0e7fb8, #4a3ab0) !important;
      color: #ffffff !important;
    }
    html[data-theme="light"] .screen-btn { background: #ffffff !important; color: var(--hl-fg-2) !important; border-color: rgba(23,62,110,0.22) !important; }
    html[data-theme="light"] .screen-btn.primary {
      background: linear-gradient(135deg, #0a7ec2, #075a8c) !important; color: #ffffff !important;
    }
    /* 高亮小块（统计 KPI 小格 / 冲突提示） */
    html[data-theme="light"] .ts-item,
    html[data-theme="light"] .zp-sum-item {
      background: #eef4fb !important;
      border-color: rgba(23, 62, 110, 0.16) !important;
      color: var(--hl-fg) !important;
    }
    html[data-theme="light"] .ts-item b,
    html[data-theme="light"] .zp-sum-item b { color: #0a5c8f !important; }
    html[data-theme="light"] .ts-item.is-accent,
    html[data-theme="light"] .zp-sum-item.is-total {
      background: rgba(10, 126, 194, 0.12) !important;
      border-color: rgba(10, 126, 194, 0.34) !important;
    }
    html[data-theme="light"] .cs-clash {
      color: #b02440 !important;
      background: rgba(214, 47, 77, 0.10) !important;
      border-color: rgba(214, 47, 77, 0.4) !important;
    }
    html[data-theme="light"] .cs-ok { color: #0b7a55 !important; }
    /* 归档台账：日期筛选条（自带深色渐变）与记录卡 */
    html[data-theme="light"] .arc-daybar {
      background: linear-gradient(180deg, #eaf1fa, #f6fafe) !important;
      border-color: var(--hl-line) !important;
    }
    html[data-theme="light"] .arc-head, html[data-theme="light"] .arc-summary,
    html[data-theme="light"] .arc-note { color: var(--hl-fg-2); }
    /* 任务清单导出条 */
    html[data-theme="light"] .dayexport {
      background: linear-gradient(180deg, #eaf1fa, #f6fafe) !important;
      border-color: var(--hl-line) !important;
      color: var(--hl-fg);
    }
    html[data-theme="light"] .dayexport b { color: var(--hl-fg); }
    html[data-theme="light"] .dayexport span { color: var(--hl-muted); }
    /* 看板筛选区：普通按钮统一浅底（主/危按钮与主题切换除外） */
    html[data-theme="light"] #sub-stats button:not(.btn.primary):not(.btn.danger):not(.theme-toggle),
    html[data-theme="light"] .quick-zone button,
    html[data-theme="light"] .zone-quick button {
      background: #eef4fb !important;
      background-image: none !important;
      border-color: rgba(23, 62, 110, 0.2) !important;
      color: var(--hl-fg-2) !important;
    }
    html[data-theme="light"] .view-head, html[data-theme="light"] .ap-head, html[data-theme="light"] .screen-top {
      background: var(--tk-glass-2) !important;
    }
    html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(23,62,110,0.22); }

    /* 主题切换按钮 */
    .theme-toggle {
      display: inline-flex; align-items: center; gap: 6px;
      height: 34px; padding: 0 11px; border-radius: 10px;
      border: 1px solid var(--hl-line-2); background: transparent;
      color: var(--hl-fg-2); font-family: inherit; font-size: 12px;
      cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s;
    }
    .theme-toggle:hover { border-color: var(--hl-cyan); color: var(--hl-cyan-tx); }
    .theme-toggle .tt-icon { font-size: 14px; line-height: 1; }
    @media (max-width: 480px) {
      .theme-toggle { min-height: 42px; padding: 0 10px; }
      .theme-toggle .tt-label { display: none; }
    }

  /* =========================================================
     未来科技感主题层（审批端）— 仅视觉覆盖，不改结构与逻辑
     深空蓝紫渐变 / 毛玻璃拟态 / 霓虹光晕 / 高对比文字
     ========================================================= */
  :root {
    --ss-bg: #10141c;
    --ss-fg: #eef3fa;
    --ss-muted: #d3dfee;
    --ss-muted-bg: rgba(158, 182, 214, 0.12);
    --ss-border: rgba(158, 182, 214, 0.2);
    --ss-card: rgba(34, 40, 54, 0.72);
    --ss-card-fg: #eef3fa;
    --ss-primary: #6366f1;
    --ss-primary-fg: #ffffff;
    --ss-danger: #ff93a4;
    --ss-radius: 14px;
    color-scheme: dark;
    --tk-glass: linear-gradient(160deg, rgba(43, 50, 68, 0.72), rgba(27, 32, 43, 0.62));
    --tk-glass-2: linear-gradient(160deg, rgba(50, 58, 77, 0.62), rgba(29, 34, 47, 0.5));
    --tk-edge: 0 0 0 1px rgba(158, 182, 214, 0.22);
    --tk-lift: 0 18px 46px -24px rgba(2, 6, 23, 0.95), 0 2px 8px -4px rgba(2, 6, 23, 0.7);
    --tk-inset: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --tk-font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
      "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  }
  /* 强制深色（覆盖系统亮色偏好） */
  @media (prefers-color-scheme: light) {
    :root {
      --ss-bg: #10141c; --ss-fg: #eef3fa; --ss-muted: #d3dfee;
      --ss-muted-bg: rgba(158, 182, 214, 0.12); --ss-border: rgba(158, 182, 214, 0.2);
      --ss-card: rgba(34, 40, 54, 0.72); --ss-card-fg: #eef3fa;
      --ss-primary: #6366f1; --ss-primary-fg: #ffffff; --ss-danger: #ff93a4;
    }
  }

  body {
    background-color: #10141c;
    background-image:
      radial-gradient(1200px 620px at 78% -14%, rgba(56, 189, 248, 0.108), transparent 60%),
      radial-gradient(980px 560px at -10% 106%, rgba(139, 92, 246, 0.108), transparent 62%),
      radial-gradient(760px 460px at 50% 44%, rgba(45, 212, 191, 0.045), transparent 68%),
      linear-gradient(rgba(158, 182, 214, 0.026) 1px, transparent 1px),
      linear-gradient(90deg, rgba(158, 182, 214, 0.026) 1px, transparent 1px),
      linear-gradient(180deg, #161a23 0%, #10141c 48%, #0f121a 100%);
    background-size: auto, auto, auto, 62px 62px, 62px 62px, auto;
    background-attachment: fixed;
    font-family: var(--tk-font);
    color: var(--ss-fg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .card, .kpi, .side-card {
    background: var(--tk-glass) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    border-color: rgba(129, 140, 248, 0.16) !important;
    box-shadow: var(--tk-edge), var(--tk-lift), var(--tk-inset);
  }
  .kpi-value { text-shadow: 0 0 18px rgba(34, 211, 238, 0.32); }

  .btn {
    border-radius: 12px;
    transition: box-shadow 0.2s, transform 0.16s, background 0.2s, border-color 0.2s;
  }
  .btn.primary {
    background: linear-gradient(135deg, #22d3ee, #6366f1 54%, #a78bfa) !important;
    border-color: transparent !important;
    color: #04060f !important;
    font-weight: 700;
    box-shadow: 0 0 20px -4px rgba(99, 102, 241, 0.7), 0 8px 20px -12px rgba(34, 211, 238, 0.8), var(--tk-inset);
  }
  .btn.primary:hover:not(:disabled) {
    color: #04060f !important;
    filter: none;
    box-shadow: 0 0 30px -2px rgba(99, 102, 241, 0.85), 0 10px 24px -12px rgba(34, 211, 238, 0.95);
    transform: translateY(-1px);
  }
  .btn.ghost {
    background: rgba(32, 38, 62, 0.55) !important;
    border-color: rgba(129, 140, 248, 0.28) !important;
    color: #c7d2fe !important;
  }
  .btn.ghost:hover { border-color: rgba(34, 211, 238, 0.55) !important; box-shadow: 0 0 18px -8px rgba(34, 211, 238, 0.8); }

  .input, select, textarea {
    background: rgba(24, 28, 44, 0.7) !important;
    border-color: rgba(129, 140, 248, 0.22) !important;
    border-radius: 12px;
    color: var(--ss-fg);
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  }
  .input:focus, select:focus, textarea:focus {
    border-color: rgba(34, 211, 238, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14), 0 0 20px -8px rgba(34, 211, 238, 0.9) !important;
  }

  .chip { border-radius: 99px; border-color: rgba(129, 140, 248, 0.26); background: rgba(99, 102, 241, 0.12); }

  .modal-mask { background: rgba(3, 5, 14, 0.72) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .modal {
    background: linear-gradient(165deg, rgba(34, 40, 68, 0.92), rgba(23, 26, 42, 0.94)) !important;
    border: 1px solid rgba(129, 140, 248, 0.22) !important;
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.12), 0 40px 90px -40px rgba(2, 6, 23, 1),
      0 0 60px -30px rgba(99, 102, 241, 0.8) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
  }

  ::-webkit-scrollbar { width: 9px; height: 9px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.45), rgba(139, 92, 246, 0.45));
    border-radius: 99px; border: 2px solid transparent; background-clip: padding-box;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.7), rgba(139, 92, 246, 0.7));
    background-clip: padding-box;
  }

  /* 首屏加载条：数据未到齐时显示，数据填充后自动移除 */
  .load-bar {
    position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 99999;
    background: linear-gradient(90deg, transparent, #22d3ee 35%, #a78bfa 65%, transparent);
    background-size: 45% 100%;
    background-repeat: no-repeat;
    animation: loadSlide 1.1s linear infinite;
    pointer-events: none;
  }
  @keyframes loadSlide { 0% { background-position: -45% 0; } 100% { background-position: 145% 0; } }

  /* 业务数据未到时的占位提示（身份已就绪、界面已显示，数据在后台补齐） */
  .data-pending {
    display: flex; align-items: center; gap: 9px;
    margin: 0 0 14px; padding: 11px 14px; border-radius: 11px;
    border: 1px dashed rgba(125, 175, 230, 0.38);
    background: rgba(125, 175, 230, 0.06);
    font-size: 12.5px; color: var(--hl-muted);
  }
  .data-pending::before {
    content: ''; width: 13px; height: 13px; border-radius: 50%;
    border: 2px solid rgba(125, 175, 230, 0.3); border-top-color: #22d3ee;
    animation: dpSpin 0.8s linear infinite; flex: none;
  }
  @keyframes dpSpin { to { transform: rotate(360deg); } }

  /* 移动端性能降级：固定背景 + 大半径毛玻璃在低端机 / 微信内核上会明显拖慢首屏 */
  @media (max-width: 900px) {
    body { background-attachment: scroll; }
    .card, .kpi, .side-card, .modal {
      -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
      backdrop-filter: blur(8px) saturate(120%) !important;
    }
  }

  @media (prefers-contrast: more) {
    :root { --ss-muted: #a8b6e0; --ss-fg: #f5f7ff; }
    .card, .kpi { background: rgba(12, 16, 34, 0.92) !important; }
  }

  /* ── 今日行车使用矩阵（时间 × 任务） ── */
  .crane-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
  .crane-sum > span {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 5px 12px; border-radius: 999px; font-size: 11.5px;
    border: 1px solid var(--hl-line); background: rgba(125, 175, 230, 0.06);
    color: var(--hl-muted);
  }
  .crane-sum b { font-size: 13.5px; color: var(--hl-fg); font-weight: 700; }
  .crane-sum .cs-clash {
    border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.1); color: #fecaca;
  }
  .crane-sum .cs-clash b { color: #fca5a5; }
  .crane-sum .cs-warn { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); color: #fde68a; }

  .crane-matrix-wrap { overflow-x: auto; padding-bottom: 2px; }
  /* 全天 48 格：给足最小宽度保证每格可读（约 14px），窄屏由外层横向滚动承载 */
  .crane-matrix { min-width: 900px; }

  .cm-head, .cm-row {
    display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 12px; align-items: center;
  }
  .cm-head {
    padding-bottom: 6px; margin-bottom: 5px; border-bottom: 1px solid var(--hl-line);
  }
  .cm-label { font-size: 10.5px; letter-spacing: 1px; color: var(--hl-muted); text-transform: uppercase; }
  .cm-slots { display: grid; gap: 2px; }
  /* 刻度按「格边界」绝对定位（相对刻度行容器），首端左对齐 / 末端右对齐，避免半格错位与截断 */
  .cm-ticks {
    position: relative; height: 15px; display: block !important;
    font-family: var(--mono); font-size: 9.5px; color: var(--hl-muted);
  }
  .cm-ticks span {
    position: absolute; top: 0; transform: translateX(-50%);
    white-space: nowrap; overflow: visible; text-align: center;
  }
  .cm-ticks span.is-first { transform: none; }
  .cm-ticks span.is-last { transform: translateX(-100%); }

  .cm-row { padding: 5px 0; border-bottom: 1px dashed rgba(125, 175, 230, 0.1); }
  .cm-row:last-child { border-bottom: 0; }
  .cm-task { min-width: 0; line-height: 1.45; }
  .cm-task b {
    display: block; font-size: 12px; color: var(--hl-fg-2); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .cm-task span {
    display: block; font-size: 10.5px; color: var(--hl-muted); line-height: 1.4;
    white-space: normal; overflow-wrap: anywhere;
  }
  .cm-row.is-pending .cm-task b { color: #fbbf24; }
  .cm-row.is-rejected .cm-task b { color: #ffa8a8; }

  .cm-slot {
    height: 24px; border-radius: 4px;
    background: rgba(125, 175, 230, 0.07);
    transition: background 0.15s;
  }
  .cm-slot.is-on {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.78), rgba(56, 189, 248, 0.5));
    box-shadow: 0 0 10px -3px rgba(56, 189, 248, 0.9);
  }
  .cm-slot.is-clash {
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.88), rgba(248, 113, 113, 0.6));
    box-shadow: 0 0 12px -3px rgba(248, 113, 113, 1);
  }
  .cm-slot:hover { outline: 1px solid rgba(56, 189, 248, 0.5); }

  @media (max-width: 1100px) {
    .cm-head, .cm-row { grid-template-columns: 190px minmax(0, 1fr); gap: 9px; }
    .crane-matrix { min-width: 860px; }
  }

  /* 手机端数据组件未加载时的引导面板 */
  .env-guide {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
    z-index: 99998; width: min(360px, calc(100vw - 32px));
    padding: 16px 16px 14px; border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: linear-gradient(165deg, rgba(50, 42, 24, 0.97), rgba(30, 27, 20, 0.98));
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
    color: #fde68a;
  }
  .env-guide .eg-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: #fcd34d; }
  .env-guide .eg-body { font-size: 12px; line-height: 1.75; color: #fde68a; opacity: 0.92; }
  .env-guide .eg-body b { color: #fff7d6; }
  .env-guide .eg-acts { display: flex; gap: 8px; margin-top: 13px; }
  .env-guide .eg-acts .btn { flex: 1 1 0; }

  

    /* 日间主题 · 最终覆盖（压过科技感层 !important） */
    html[data-theme="light"] .btn.primary,
    html[data-theme="light"] .btn.sm.primary {
      background: linear-gradient(180deg, #0f8fd0, #0a6a9f) !important;
      border-color: transparent !important;
      color: #ffffff !important;
    }
    html[data-theme="light"] .screen-dash .dash-head h3,
    html[data-theme="light"] .screen-dash .dash-head b { color: #0f2137 !important; }
    html[data-theme="light"] .screen-dash .dash-head span,
    html[data-theme="light"] .screen-dash .db-label,
    html[data-theme="light"] .screen-dash .risk-legend span { color: #294761 !important; }
    html[data-theme="light"] .screen-dash .db-val { color: #0a5c8f !important; }
    html[data-theme="light"] .screen-top, html[data-theme="light"] .screen-title { color: #0f2137 !important; }

    /* 日间主题 · 最终覆盖（压过科技感层 !important） */
    html[data-theme="light"] .btn.primary,
    html[data-theme="light"] .btn.sm.primary {
      background: linear-gradient(180deg, #0f8fd0, #0a6a9f) !important;
      border-color: transparent !important;
      color: #ffffff !important;
    }
    html[data-theme="light"] .arc-group-n {
      background: #eef4fb !important;
      border-color: rgba(23, 62, 110, 0.18) !important;
      color: var(--hl-fg-2) !important;
    }
    html[data-theme="light"] .screen-dash .dash-panel {
      background: rgba(255, 255, 255, 0.92) !important;
      border-color: rgba(23, 62, 110, 0.14) !important;
    }
    html[data-theme="light"] .screen-dash .dash-head h3,
    html[data-theme="light"] .screen-dash .dash-head b { color: #0f2137 !important; }
    html[data-theme="light"] .screen-dash .dash-head span,
    html[data-theme="light"] .screen-dash .db-label,
    html[data-theme="light"] .screen-dash .risk-legend span { color: #294761 !important; }
    html[data-theme="light"] .screen-dash .db-val { color: #0a5c8f !important; }
    html[data-theme="light"] .screen-top, html[data-theme="light"] .screen-title { color: #0f2137 !important; }
    html[data-theme="light"] .screen-btn { background: #ffffff !important; color: var(--hl-fg-2) !important; }
    html[data-theme="light"] .screen-btn.primary { background: linear-gradient(180deg, #0f8fd0, #0a6a9f) !important; color: #ffffff !important; }
