/* 总经理台样式：自 index.html 外置，便于浏览器缓存 */
* { margin:0; padding:0; box-sizing:border-box; }
  body { font-family:"PingFang SC","Microsoft YaHei",sans-serif; background:#0a0e1a; color:#e6edf3; height:100vh; overflow:hidden; font-size:13px; }
  .app { display:flex; flex-direction:column; height:100vh; }
  .topbar { flex:0 0 auto; min-height:0; background:linear-gradient(90deg,#0f1830,#16233f); border-bottom:0; display:flex; align-items:center; padding:3px 10px; gap:8px; }
  .brand { flex:0 0 auto; min-width:92px; }
  .logo { font-size:15px; font-weight:700; color:#4da3ff; white-space:nowrap; }
  .clock { font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; color:#e6edf3; margin-top:1px; }
  .ring { flex:0 0 auto; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }
  .kpi-row { display:flex; gap:6px; flex:1 1 auto; min-width:0; justify-content:center; flex-wrap:nowrap; overflow-x:auto; }
  .kpi-row .kpi { flex:0 0 auto; }
  .top-meta { margin-left:auto; display:flex; align-items:center; gap:6px; flex:0 0 auto; }
  .biz-kpi-bar { flex:0 0 auto; background:#0f1628; border-top:1px solid #1c2740; border-bottom:1px solid #1c2740; padding:2px 10px; display:flex; gap:6px; justify-content:center; overflow-x:auto; }
  .kpi { background:#141d33; border:1px solid #23314f; border-radius:7px; padding:3px 9px; text-align:center; min-width:100px; flex:0 0 auto; }
  .kpi.clk { cursor:pointer; }
  .kpi.biz { min-width:110px; text-align:left; padding:4px 8px; }
  .kpi .v { font-size:15px; font-weight:700; } .kpi .v.g { color:#3fb950; } .kpi .v.y { color:#ffc53d; } .kpi .v.r { color:#f85149; }
  .kpi .l { font-size:10px; color:#8b95aa; margin-top:1px; }
  .kpi .s { font-size:9px; color:#6b7690; margin-top:0; }
  .kpi.biz .pair { display:flex; justify-content:space-between; align-items:baseline; gap:6px; margin-top:2px; }
  .kpi.biz .pair .v { font-size:14px; }
  .kpi.biz .pair .s { font-size:10px; color:#8b95aa; white-space:nowrap; }
  .role { background:#141d33; color:#c9d4e0; border:1px solid #23314f; border-radius:6px; padding:4px 8px; }
  .cols { flex:1 1 auto; display:flex; min-height:0; align-items:stretch; }
  .col { flex:1 1 0; min-width:0; display:flex; flex-direction:column; border-right:1px solid #1c2740; }
  .col:last-child { border-right:none; }
  .col-h { min-height:36px; padding:5px 10px; font-size:13px; font-weight:700; background:#111a2e; border-bottom:1px solid #23314f; color:#4da3ff; display:flex; justify-content:space-between; align-items:center; gap:6px; }
  .col-h .cnt { font-size:11px; font-weight:400; color:#8b95aa; flex-shrink:0; }
  .col-h .gm-mid-tools { display:flex; align-items:center; gap:6px; flex:1; min-width:0; margin:0 4px; }
  .col-h .col-tools { display:flex; gap:6px; flex-shrink:0; align-items:center; }
  .col-h .gm-nav { padding:0; }
  .vivo-qc-dirs { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; min-height:0; flex:1; }
  .vivo-qc-dir { border:1px solid #23314f; border-radius:8px; background:#0f1628; display:flex; flex-direction:column; min-height:0; max-height:none; }
  .vivo-qc-dir .dir-h { padding:10px 12px; border-bottom:1px solid #23314f; font-size:13px; color:#4da3ff; font-weight:700; display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
  .vivo-qc-dir .dir-h .dir-tools { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-weight:400; }
  .vivo-qc-dir .dir-h .dir-tools input[type="date"] { background:#0f1628; border:1px solid #23314f; color:#c9d4e0; border-radius:6px; padding:2px 6px; font-size:11px; }
  .vivo-qc-dir .dir-b { overflow:auto; padding:6px 8px 10px; flex:1; min-height:0; }
  .vivo-qc-item { border:1px solid #23314f; border-radius:7px; padding:8px 10px; margin:0 0 6px; background:#141d33; cursor:pointer; }
  .vivo-qc-item:hover { border-color:#2f6ea8; }
  .vivo-qc-item .t { font-size:12px; color:#e6edf3; font-weight:600; }
  .vivo-qc-item .b { font-size:11px; color:#8b95aa; margin-top:3px; line-height:1.45; }
  /* 真全屏：盖过通用 .mat-box 的 1080px/88vh，避免内联样式被缓存旧页盖住 */
  #vivo-qc-panel { align-items:stretch; justify-content:stretch; padding:0; }
  #vivo-qc-panel .mat-box {
    width:100% !important; height:100% !important;
    max-width:none !important; max-height:none !important;
    border-radius:0; border:0; padding:12px;
  }
  @media (max-width:1100px){ .vivo-qc-dirs { grid-template-columns:1fr; } }
  .col-b { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; padding:0 8px 8px; }
  .col-b::-webkit-scrollbar { width:8px; }
  .col-b::-webkit-scrollbar-thumb { background:#23314f; border-radius:4px; }
  .col-b::-webkit-scrollbar-track { background:transparent; }
  /* 列头与首张置顶卡贴齐：无顶距，顶圆角抹平避免露底缝 */
  .col-b > .col-pin:first-child { margin-top:0; border-top-left-radius:0; border-top-right-radius:0; }
  .card { background:#111a2e; border:1px solid #1e2a45; border-radius:7px; padding:7px 9px; margin-bottom:6px; }
  .card-pen { border-color:#8b2e2e; background:#1c1014; box-shadow:inset 0 0 0 1px #6e2a2a; }
  .card-pen .card-t { color:#f85149; }
  .card-t { font-size:12px; font-weight:700; color:#c9d4e0; margin-bottom:5px; display:flex; justify-content:space-between; align-items:center; gap:6px; }
  .card-t .more { font-size:10px; color:#8b95aa; font-weight:400; }
  .item { display:flex; justify-content:space-between; align-items:flex-start; padding:4px 0; border-bottom:1px dashed #1e2a45; gap:6px; }
  .item.od-clk, .item.clk { cursor:pointer; }
  .item:last-child { border-bottom:none; }
  .item .txt { font-size:11.5px; line-height:1.5; flex:1; }
  .item .txt .sub { color:#8b95aa; font-size:10.5px; }
  .item.done .txt { text-decoration:line-through; color:#5c6a82; }
  .xbtn, .gbtn, .rbtn { flex:0 0 auto; height:22px; border-radius:5px; cursor:pointer; font-size:11px; padding:0 7px; }
  .xbtn { background:#1b3a24; border:1px solid #2a5c36; color:#3fb950; }
  .gbtn { background:#102a45; border:1px solid #1d4a7a; color:#4da3ff; }
  .rbtn { background:#3d1c1c; border:1px solid #6e2a2a; color:#f85149; }
  .tag { display:inline-block; padding:1px 6px; border-radius:4px; font-size:10px; font-weight:700; }
  .tg-g { background:#1b3a24; color:#3fb950; } .tg-y { background:#3d3410; color:#ffc53d; }
  .tg-r { background:#3d1c1c; color:#f85149; } .tg-b { background:#10283d; color:#4da3ff; } .tg-p { background:#2d1f3d; color:#d2a8ff; }
  .meta { font-size:10.5px; color:#8b95aa; }
  .danger { color:#f85149; font-weight:700; } .warn { color:#ffc53d; font-weight:700; } .ok { color:#3fb950; font-weight:700; }
  /* 当月积分分析：三级下钻 = 一级（类目/人）→ 二级（人/类目占比）→ 明细 */
  .sa-l1{display:flex;align-items:center;gap:8px;padding:6px 2px;border-bottom:1px solid rgba(255,255,255,.05);cursor:pointer;font-size:12px}
  .sa-l1>span:first-child,.sa-sub>span:first-child{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sa-l1>span:first-child{font-weight:700}
  .sa-sub{display:flex;align-items:center;gap:8px;padding:5px 2px 5px 14px;font-size:11.5px;color:#c9d1d9;cursor:pointer}
  .sa-sub.on{background:rgba(255,255,255,.05);border-radius:5px}
  .sa-items{padding:2px 0 6px 22px}
  /* 下钻行：一级行 + 它展开的二级/明细要同属一个纵向块。
     .dlg-seg 是 space-between，若两者并列会各占一端，二级列表被挤到右侧成一窄列，
     宽弹窗下尤其别扭 —— 这里用一层容器把它们收在一起。 */
  .sa-grp{flex:1 1 auto;min-width:0}
  /* 总经理待办：一行一组，组名 + 条数 + 这句是干什么的，点开看明细 */
  .gm-todo-row{padding:6px 2px;border-bottom:1px dashed #1e2a45;cursor:pointer;display:block}
  .gm-todo-row:hover{background:rgba(255,255,255,.05);border-radius:5px}
  .gm-todo-row .l1{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:12px}
  .gm-todo-row .l1>b{font-weight:700}
  .gm-todo-row.zero .l1>b{color:#8b95aa;font-weight:400}
  .gm-todo-row .sub{margin-top:1px}
  /* 积分待办明细：按科目分块，块标题钉住类型与条数 */
  .gm-todo-kind{margin:10px 0 4px;padding-top:6px;border-top:1px solid rgba(255,255,255,.08)}
  .gm-todo-kind:first-child{margin-top:0;padding-top:0;border-top:0}
  .gm-todo-kind-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;
    font-size:12px;font-weight:700;color:#c5d0e6;margin:0 0 4px;padding:0 2px}
  .gm-todo-kind-h b{font-weight:600;color:#8b95aa}
  /* 预订订单目录：企微同款详情 + 已阅消项 */
  .gm-book-card{padding:10px 8px;border-bottom:1px solid #1e2a45;margin:0 0 4px}
  .gm-book-md{font-size:12px;line-height:1.55;color:#d5dbeb;white-space:pre-wrap;word-break:break-word}
  .gm-book-md .h{font-size:14px;font-weight:700;color:#f0f3fa;margin:0 0 6px}
  .gm-book-md .q{color:#a8b3cc;margin:0 0 2px}
  .gm-book-md b{color:#e8eefc;font-weight:700}
  .gm-book-act{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}
  .gm-follow-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 4px}
  .gm-follow-tabs .kpi{min-width:72px}
  /* 已豁免归档：一天一块纵向排，条目行左右两端对齐（左科目·人，右分数） */
  .ex-day{padding:8px 0 4px;border-top:1px dashed rgba(255,255,255,.1)}
  .ex-day .txt{margin-bottom:2px}
  .ex-peek{padding:5px 6px;border-radius:5px;cursor:pointer}
  .ex-peek:hover{background:rgba(255,255,255,.05)}
  .ex-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
  .ex-line b{flex:0 0 auto;white-space:nowrap}
  /* 待确认认领的行：整行可点进详情，行上不给按钮 */
  .cf-row{cursor:pointer;border-radius:5px}
  .cf-row:hover{background:rgba(255,255,255,.05)}
  /* 卡片里的占比行：三列定宽，分数和百分比各占一列右对齐，扫一眼就能比大小 */
  .sa-row{cursor:pointer;border-radius:5px}
  .sa-row:hover{background:rgba(255,255,255,.05)}
  /* 分数、占比两列定宽右对齐 —— 名字长短不一，不定宽的话两列会跟着内容左右晃，
     上下行之间没法一眼比大小 */
  .sa-row>span:nth-child(2),.sa-l1>span:nth-child(2){flex:0 0 112px;text-align:right;color:#c9d1d9;white-space:nowrap}
  /* 科目行带等长上期环比时，中间列加宽并允许换行，避免挤掉占比列 */
  .sa-row>span:nth-child(2).has-wow,.sa-l1>span:nth-child(2).has-wow{flex:0 0 148px;white-space:normal;line-height:1.35}
  .sa-wow{display:block;font-size:10.5px;color:#8b98a8;margin-top:2px;font-variant-numeric:tabular-nums}
  .sa-wow .up{color:#3fb950;font-weight:700}
  .sa-wow .down{color:#f85149;font-weight:700}
  .sa-row>span:nth-child(3),.sa-l1>span:nth-child(3){flex:0 0 124px;text-align:right;white-space:nowrap}
  /* 二级行同样定宽，才能跟上面一级行的分数、占比列对齐（只向左缩进，右边缘齐平） */
  .sa-sub>span:nth-child(2){flex:0 0 112px;text-align:right;white-space:nowrap}
  .sa-sub>span:nth-child(3){flex:0 0 124px;text-align:right;white-space:nowrap}
  .sa-head{font-size:11px;color:#8b95aa;cursor:default;border-bottom:1px solid rgba(255,255,255,.14)}
  .sa-head>span:first-child{font-weight:400}
  /* 豁免弹窗：同一件事可能记在好几个人头上，一行一个人，勾了才算 */
  .ex-pick-row{display:flex;align-items:center;gap:7px;padding:5px 2px;font-size:12px;cursor:pointer;border-bottom:1px solid rgba(255,255,255,.05)}
  .ex-pick-row:hover{background:rgba(255,255,255,.05);border-radius:5px}
  .ex-pick-row>span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ex-pick-row>span.more{flex:0 0 auto}
  /* 积分排行（总经理台）：单行三段式 = 名次+升降 / 姓名+徽标 / 分数+条数+差距 */
  .rank-row{display:flex;align-items:center;gap:8px;padding:7px 8px;border-bottom:1px solid rgba(255,255,255,.06);border-radius:6px}
  .rank-row.clk{cursor:pointer}
  .rank-row:last-child{border-bottom:0}
  .rank-lead{flex:0 0 42px;display:flex;align-items:center;gap:2px}
  .rank-no{flex:0 0 auto;width:22px;text-align:center;color:#8b9bb4;font-weight:700;font-variant-numeric:tabular-nums}
  .rank-who{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:6px;overflow:hidden;flex-wrap:wrap}
  .rank-name{flex:0 1 auto;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .rank-score{flex:0 0 auto;display:flex;align-items:baseline;gap:6px;font-variant-numeric:tabular-nums;white-space:nowrap}
  .rank-score .rank-unit{font-size:10px;color:#8b95aa}
  .rank-gap{color:#6b7a93;font-size:10.5px}
  /* 人名旁：个人分数相对等长上期的环比（与顶部总分条同口径） */
  .rank-wow{flex:0 0 auto;font-size:10px;font-weight:700;white-space:nowrap;line-height:1.2}
  .rank-wow.more{font-weight:500;color:#8b95aa}
  /* 今日积分对比条：今日 / 上周同星期 两格并排，带长度条 + 升降箭头 */
  .tm-badge { display:inline-block; margin-left:5px; min-width:16px; padding:0 5px; border-radius:8px;
    background:#3d1c1c; color:#f85149; font-size:10px; font-weight:700; line-height:16px; text-align:center; }
  .cmp-strip{display:flex;gap:5px;margin:0 0 6px}
  .cmp-cell{flex:1 1 0;min-width:0;padding:4px 6px;border-radius:6px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
  .cmp-cell.now{background:rgba(63,185,80,.10);border-color:rgba(63,185,80,.30)}
  .cmp-lab{font-size:11px;color:#8b98a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cmp-val{font-size:16px;font-weight:800;color:#e6edf3;line-height:1.2;margin-top:0;font-variant-numeric:tabular-nums}
  .cmp-val .u{font-size:11px;font-weight:600;color:#8b98a8;margin-left:2px}
  .cmp-bar{height:3px;border-radius:3px;background:rgba(255,255,255,.09);margin-top:3px;overflow:hidden}
  .cmp-bar i{display:block;height:100%;border-radius:3px;background:#4a6fa5}
  .cmp-cell.now .cmp-bar i{background:#3fb950}
  .cmp-foot{font-size:10.5px;margin-top:2px;color:#8b98a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cmp-foot .up{color:#3fb950;font-weight:700} .cmp-foot .down{color:#f85149;font-weight:700}
  .rank-up{color:#3fb950;font-size:10px;font-weight:700}
  .rank-down{color:#f85149;font-size:10px;font-weight:700}
  .rank-last .rank-no,.rank-last .rank-name,.rank-last .rank-score{color:#f85149}
  .rank-prev .rank-no,.rank-prev .rank-name,.rank-prev .rank-score{color:#ffc53d}
  .gbtn.rank-sw{padding:0 9px}
  .gbtn.rank-sw.on{background:#1d4a7a;border-color:#2f6ea8;color:#fff}
  .rank-query-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:0 0 8px}
  /* 人名积分明细：科目分类纵向列表，别塞进不换行的 rowform */
  .ps-kinds{margin:8px 0 10px;border:1px solid rgba(255,255,255,.08);border-radius:8px;overflow:hidden}
  .ps-kinds .ps-k-head{display:flex;align-items:center;justify-content:space-between;gap:8px;
    padding:6px 10px;font-size:11px;color:#8b95aa;background:rgba(255,255,255,.03);
    border-bottom:1px solid rgba(255,255,255,.08)}
  .ps-kinds .ps-k-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;
    padding:7px 10px;border-bottom:1px solid rgba(255,255,255,.05);font-size:12px}
  .ps-kinds .ps-k-row:last-child{border-bottom:0}
  .ps-kinds .ps-k-lab{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
  .ps-kinds .ps-k-n{flex:0 0 auto;color:#8b95aa;font-size:11px;white-space:nowrap}
  .ps-kinds .ps-k-sc{flex:0 0 auto;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700;text-align:right}
  .ps-kinds .ps-k-sc.has-wow{white-space:normal;line-height:1.35;min-width:108px}
  .ps-cmp{margin:4px 0 8px;padding:6px 8px;border-radius:6px;background:rgba(255,255,255,.03);
    font-size:11.5px;color:#c9d1d9;line-height:1.5}
  .ps-cmp .up{color:#3fb950;font-weight:700}
  .ps-cmp .down{color:#f85149;font-weight:700}
  .rank-meta{font-size:12px;color:#8b98a8;line-height:1.55;margin:0 0 8px;padding:6px 8px;
    background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);border-radius:6px}
  .rank-meta b{color:#e6edf3;font-variant-numeric:tabular-nums}
  .bar { margin:5px 0; } .bar .bl { display:flex; justify-content:space-between; font-size:11px; margin-bottom:2px; }
  .track { height:7px; background:#1b2540; border-radius:4px; overflow:hidden; }
  .fill { height:100%; border-radius:4px; }
  .tl { border-left:2px solid #23314f; margin-left:6px; padding-left:10px; }
  .msg { margin:5px 0; font-size:11px; line-height:1.5; }
  .who { font-weight:700; margin-right:5px; color:#8b95aa; }
  .msg.f .who { color:#4da3ff; }
  /* 复盘原文：整场会话里被判定的那一轮要高亮 */
  .msg.cur { margin-left:-8px; padding-left:6px; border-left:2px solid #f0b429; border-radius:0 4px 4px 0; }
  .msg.cur .bubble { background:#3b2f12; }
  .msg.cur .who { color:#f0b429; }
  .bubble { display:inline-block; padding:3px 7px; border-radius:5px; background:#16233f; margin-top:2px; }
  .sess { background:#0c1426; border:1px solid #2a3c62; border-radius:8px; padding:9px 10px; margin:12px 0; border-left-width:4px; }
  .card > .sess:first-of-type { margin-top:4px; }
  .card > .sess:last-child { margin-bottom:2px; }
  .sess-head { font-size:11.5px; font-weight:700; color:#e6edf3; margin-bottom:8px; display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
  .sess-head .meta { font-weight:400; }
  .sess-prev { background:#0a101c; border:1px dashed #5c4a14; border-radius:6px; padding:7px 8px; margin-bottom:8px; }
  .sess-new { background:#122038; border:1px solid #1d4a7a; border-radius:6px; padding:8px; }
  .sess-lab { font-size:10px; font-weight:700; letter-spacing:.04em; }
  .sess-prev .sess-lab { color:#ffc53d; }
  .sess-new .sess-lab { color:#79c0ff; }
  .sess-lab-row { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:4px; }
  .sess-prev .tl { border-left-color:#5c4a14; opacity:.88; }
  .sess-new .tl { border-left-color:#1d4a7a; }
  .sop-pts { margin:5px 0 5px 14px; font-size:11px; line-height:1.7; color:#c9d4e0; }
  .sop-block { padding:8px 0; border-top:1px solid rgba(255,255,255,.07); }
  .sop-block:first-child { border-top:0; padding-top:0; }
  .sop-block.clk { cursor:pointer; }
  .sop-block.clk:hover { background:rgba(255,255,255,.035); }
  .item.clk:hover { background:rgba(255,255,255,.035); }
  .sess.clk { cursor:pointer; }
  .done-sec-t { font-size:11px; color:#8b95aa; margin:10px 0 4px; padding-top:8px; border-top:1px solid #23314f; }
  .rowform { display:flex; gap:6px; margin-top:6px; }
  .via.on { background:#102a45; border-color:#1d4a7a; color:#4da3ff; font-weight:700; }
  .rowform input, .rowform select { flex:1; background:#0f1628; border:1px solid #23314f; color:#e6edf3; border-radius:5px; padding:4px 7px; font-size:11px; }
  .rowform select { min-width:120px; }
  .sop-form { display:flex; gap:6px; margin-top:6px; align-items:flex-start; }
  .sop-form textarea { flex:1; background:#0f1628; border:1px solid #23314f; color:#e6edf3; border-radius:5px; padding:5px 7px; font-size:11px; font-family:inherit; line-height:1.6; resize:vertical; min-height:52px; }
  .sop-form textarea:focus { outline:none; border-color:#1d4a7a; }
  .bottombar { height:26px; background:#0f1628; border-top:1px solid #1c2740; display:flex; align-items:center; padding:0 16px; gap:14px; font-size:10.5px; color:#8b95aa; }
  .dot { width:7px; height:7px; border-radius:50%; background:#3fb950; display:inline-block; margin-right:3px; }
  .empty { color:#5c6a82; font-size:11px; padding:4px 0; }
  .mailgrid { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; font-size:11px; }
  .mailgrid b { color:#4da3ff; }
  .desk-link { color:#4da3ff; text-decoration:none; font-size:12px; white-space:nowrap; border:1px solid #1d4a7a; background:#102a45; border-radius:6px; padding:4px 8px; cursor:pointer; }
  /* 系统入口：工程 / 客房 / 中枢 / 销售操作台 */
  .sys-entry { position:relative; flex:0 0 auto; }
  .sys-entry-menu {
    position:absolute; right:0; top:calc(100% + 4px); z-index:40;
    min-width:168px; padding:6px; border-radius:8px;
    background:#0f1830; border:1px solid #23314f;
    box-shadow:0 8px 24px rgba(0,0,0,.35);
    display:flex; flex-direction:column; gap:4px;
  }
  .sys-entry-menu.hidden { display:none; }
  .sys-entry-item {
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    color:#c9d4e0; text-decoration:none; font-size:12px; white-space:nowrap;
    border:1px solid #1e2a45; background:#111a2e; border-radius:6px;
    padding:7px 10px; cursor:pointer; text-align:left; font:inherit;
  }
  .sys-entry-item:hover { border-color:#1d4a7a; color:#4da3ff; }
  .out-btn { background:transparent; color:#8b95aa; border:1px solid #23314f; border-radius:6px; padding:4px 8px; cursor:pointer; font-size:12px; white-space:nowrap; }
  .gate { position:fixed; inset:0; background:rgba(8,12,22,.96); z-index:20; display:flex; align-items:center; justify-content:center; }
  .gate .box { width:min(380px,92vw); background:#111a2e; border:1px solid #23314f; border-radius:12px; padding:22px 20px; }
  .gate h2 { font-size:18px; margin-bottom:8px; color:#e6edf3; }
  .gate p { color:#8b95aa; font-size:13px; line-height:1.6; margin-bottom:14px; }
  .gate input { width:100%; margin-bottom:10px; background:#0f1628; border:1px solid #23314f; color:#e6edf3; border-radius:6px; padding:8px 10px; font-size:14px; }
  .gate .gbtn { width:100%; height:40px; font-size:15px; }
  .gate .err { color:#f85149; font-size:12px; min-height:18px; margin-bottom:8px; }
  .hidden { display:none !important; }
  .done-panel { position:fixed; inset:118px 0 26px 0; background:rgba(8,12,22,.72); z-index:15; display:flex; justify-content:flex-end; }
  .done-box { width:min(420px,100%); height:100%; overflow:auto; background:#0f1628; border-left:1px solid #23314f; padding:14px 16px; }
  .done-box .card-t { font-size:14px; }
  .ft-form { display:flex; gap:6px; margin:6px 0; flex-wrap:wrap; }
  .ft-form input, .ft-form select { background:#0f1628; border:1px solid #23314f; color:#e6edf3; border-radius:5px; padding:5px 7px; font-size:12px; }
  .ft-form input[type=date] { color-scheme:dark; width:140px; flex:0 0 auto; }
  .ft-form select { flex:0 0 auto; }
  .ft-day { font-size:11px; color:#8b95aa; margin:10px 0 2px; padding-top:8px; border-top:1px solid #23314f; }
  .ft-day:first-child { border-top:none; margin-top:2px; padding-top:0; }
  .ft-item { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; padding:7px 0; border-bottom:1px dashed #1e2a45; }
  .ft-item:last-child { border-bottom:none; }
  .ft-item.done { opacity:.55; }
  .ft-item.done .ft-t { text-decoration:line-through; }
  .ft-act { display:flex; gap:6px; flex:0 0 auto; }
  .model-panel { position:fixed; inset:0; background:rgba(8,12,22,.86); z-index:25; display:flex; align-items:center; justify-content:center; }
  .model-box { width:min(560px,94vw); max-height:90vh; overflow:auto; background:#111a2e; border:1px solid #23314f; border-radius:12px; padding:18px 16px; }
  .model-box h2 { font-size:16px; margin-bottom:8px; }
  .model-box p { color:#8b95aa; font-size:12px; line-height:1.6; margin-bottom:12px; }
  .model-box input, .model-box select { width:100%; margin-bottom:8px; background:#0f1628; border:1px solid #23314f; color:#e6edf3; border-radius:6px; padding:8px 10px; }
  .settings-tabs { display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
  .settings-tabs .gbtn.on { outline:1px solid #3d8bfd; }
  .acct-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:8px 0; border-bottom:1px dashed #1e2a45; font-size:13px; }
  .acct-row:last-child { border-bottom:none; }
  .acct-meta { flex:1 1 160px; min-width:140px; }
  .acct-acts { display:flex; flex-wrap:wrap; gap:6px; }
  .acct-form { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:10px 0 4px; }
  .acct-form .full { grid-column:1 / -1; }
  @media (max-width:560px){ .acct-form { grid-template-columns:1fr; } }
  .report-panel { position:fixed; inset:0; background:rgba(8,12,22,.88); z-index:26; display:flex; align-items:center; justify-content:center; }
  .report-box { width:min(720px,94vw); max-height:86vh; background:#111a2e; border:1px solid #23314f; border-radius:12px; padding:18px 16px; display:flex; flex-direction:column; }
  .report-box h2 { font-size:16px; margin-bottom:6px; flex:0 0 auto; }
  .report-box .meta { margin-bottom:10px; flex:0 0 auto; }
  .report-body { flex:1 1 auto; min-height:0; overflow:auto; white-space:pre-wrap; line-height:1.7; font-size:13px; color:#c9d4e0; background:#0f1628; border:1px solid #1e2a45; border-radius:8px; padding:12px; }
  .report-box .rowform { flex:0 0 auto; margin-top:12px; }
  .mat-panel { position:fixed; inset:0; background:rgba(8,12,22,.88); z-index:26; display:flex; align-items:center; justify-content:center; }
  .mat-box { width:min(1080px,96vw); max-height:88vh; background:#111a2e; border:1px solid #23314f; border-radius:12px; padding:16px; display:flex; flex-direction:column; }
  .mat-box h2 { font-size:16px; margin-bottom:6px; }
  .mat-table-wrap { flex:1 1 auto; min-height:0; overflow:auto; border:1px solid #1e2a45; border-radius:8px; }
  .mat-table { width:100%; border-collapse:collapse; font-size:11px; }
  .mat-table th { position:sticky; top:0; background:#16233f; color:#8b95aa; font-weight:600; text-align:left; padding:6px 7px; white-space:nowrap; }
  .mat-table td { padding:6px 7px; border-top:1px solid #1e2a45; vertical-align:middle; }
  .mat-table tr.warn td { background:#2a1a1a; }
  .mat-fold { margin-top:10px; border:1px solid #1e2a45; border-radius:8px; background:#0f1628; }
  .mat-fold > summary { cursor:pointer; list-style:none; padding:8px 10px; font-size:12px; font-weight:700; color:#8b95aa; user-select:none; }
  .mat-fold > summary::-webkit-details-marker { display:none; }
  .mat-fold > summary::before { content:"▸ "; color:#4da3ff; }
  .mat-fold[open] > summary::before { content:"▾ "; }
  .mat-fold > summary:hover { color:#c9d4e0; }
  .mat-fold .mat-table-wrap { border:none; border-top:1px solid #1e2a45; border-radius:0 0 8px 8px; max-height:40vh; }
  .mat-del-bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 8px; padding:8px 10px; background:#2a1a1a; border:1px solid #6e2a2a; border-radius:8px; }
  #mat-del-open:disabled { opacity:.45; cursor:not-allowed; }
  .mat-table tr.mat-pick { cursor:pointer; }
  .mat-table tr.mat-pick:hover td { background:#1a2438; }
  .mat-table tr.mat-pick.on td { background:#2a1a1a; }
  .mat-add { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; align-items:center; }
  .kpi-block { padding:8px 0; border-bottom:1px dashed #1e2a45; }
  .kpi-block:last-child { border-bottom:none; }
  .kpi-block .name { font-weight:700; margin-bottom:4px; }
  .kpi-block .line { display:flex; justify-content:space-between; gap:8px; font-size:11px; color:#8b95aa; margin-top:2px; }
  .kpi-block .line b { color:#c9d4e0; font-weight:600; }
  .chk-row { display:block; padding:7px 0; border-bottom:1px dashed #1e2a45; }
  .chk-row:last-child { border-bottom:none; }
  .chk-head { display:flex; justify-content:space-between; align-items:center; gap:8px; }
  .chk-note { width:100%; margin-top:5px; background:#0f1628; border:1px solid #23314f; color:#e6edf3; border-radius:5px; padding:5px 7px; font-size:11px; font-family:inherit; line-height:1.6; resize:vertical; min-height:52px; }
  .chk-note:focus { outline:none; border-color:#1d4a7a; }
  .chk-saved { margin-top:5px; white-space:pre-wrap; word-break:break-word; font-size:11px; line-height:1.65; color:#c9d4e0; background:#0f1628; border:1px solid #1e2a45; border-left:2px solid #2a5c36; border-radius:5px; padding:6px 8px; }
  .chk-saved .none { color:#5c6a82; }
  .drbtn { flex:0 0 auto; height:22px; border-radius:5px; cursor:pointer; font-size:11px; padding:0 7px; background:#3d3410; border:1px solid #6b5a17; color:#ffc53d; }
  .dlg-panel { position:fixed; inset:0; background:rgba(8,12,22,.88); z-index:27; display:flex; align-items:center; justify-content:center; padding:4px; box-sizing:border-box; }
  /* 总经理台弹窗统一铺满可视区，字号整体大一号 */
  .dlg-box,
  .dlg-panel .dlg-box,
  #axis-band-panel .dlg-box,
  #eng-panel .dlg-box {
    width: calc(100vw - 8px) !important;
    max-width: none !important;
    height: calc(100vh - 8px) !important;
    max-height: calc(100vh - 8px) !important;
    background:#111a2e; border:1px solid #23314f; border-radius:8px;
    padding:16px 18px; display:flex; flex-direction:column;
    box-sizing:border-box; font-size:14px;
  }
  .dlg-box.perf-wide { /* 与全局铺满一致，保留类名兼容旧调用 */ }
  /* 弹窗正文自己滚：以前没有 overflow，内容一多（有效沟通三本目录）就撑出屏幕、既看不到也滚不动 */
  .dlg-body { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; font-size:14px; line-height:1.55; }
  .dlg-box .card-t { font-size:15px; }
  .dlg-box .hint { font-size:13px; line-height:1.55; }
  .dlg-box .item .txt { font-size:13px; line-height:1.55; }
  .dlg-box .item .txt .sub,
  .dlg-box .sub,
  .dlg-box .more { font-size:12px; }
  .dlg-box .empty { font-size:13px; }
  .dlg-box .xbtn,
  .dlg-box .gbtn,
  .dlg-box .rbtn,
  .dlg-box .out-btn { font-size:12px; height:26px; padding:0 10px; }
  .dlg-box .gm-todo-row .l1 { font-size:14px; }
  .dlg-box .gm-todo-row .sub { font-size:12px; }
  /* SOP 改写：正文再略大一点，长时间对着意见改写不费眼 */
  .dlg-body.sop-rw { font-size:16px; line-height:1.65; }
  .dlg-body.sop-rw .hint { font-size:15px; line-height:1.6; margin-bottom:8px; }
  .dlg-body.sop-rw .item .txt { font-size:15.5px; line-height:1.65; }
  .dlg-body.sop-rw .item .txt .sub,
  .dlg-body.sop-rw .sub { font-size:14px; line-height:1.6; }
  .dlg-body.sop-rw .empty { font-size:14.5px; padding:8px 0; }
  .dlg-body.sop-rw #sop-rw-text {
    font-size:16px; line-height:1.7; min-height:180px; padding:10px 12px;
    background:#0f1628; border:1px solid #23314f; color:#e6edf3; border-radius:8px;
    font-family:inherit;
  }
  .dlg-box.sop-rw-box { /* 铺满已全局，保留类名 */ }
  /* 多轮重写的顶部轮次标记：①原始 ②第1次重写 … 点号切回看那一版的记录与反馈 */
  .sop-rounds { display:flex; flex-wrap:wrap; align-items:center; gap:6px;
                margin:0 0 10px; padding-bottom:9px; border-bottom:1px solid #23314f; }
  .sop-rounds .rd-lab { font-size:12px; color:#8fa3bf; }
  .sop-rd { cursor:pointer; min-width:34px; height:27px; padding:0 10px; border-radius:14px;
            background:#0f1628; border:1px solid #23314f; color:#9fb2c9;
            font-size:12.5px; font-weight:700; display:inline-flex; align-items:center;
            gap:5px; font-family:inherit; }
  .sop-rd:hover { border-color:#3d5f8f; color:#e6edf3; }
  .sop-rd.on { background:#1d4a7a; border-color:#3f7ab8; color:#fff; }
  .sop-hist-text { white-space:pre-wrap; word-break:break-word; background:#0f1628;
                   border:1px solid #23314f; border-radius:8px; padding:10px 12px;
                   font-size:14.5px; line-height:1.7; margin:4px 0 2px; }
  .owner-box { margin-top:12px; padding-top:10px; border-top:1px dashed #2a3c62; }
  .owner-box .ob-h { font-size:11px; font-weight:700; color:#d2a8ff; margin-bottom:6px; }
  .owner-list .item { padding:5px 0; }
  .gbtn.owner-sec-btn { background:#2d1f3d; border-color:#6e4a9e; color:#d2a8ff; flex:0 0 auto; }
  .owner-sec-box { width:min(1180px,96vw); height:min(92vh,900px); }
  .owner-sec-split .chk-left { flex:1.2 1 0; }
  .owner-sec-split .chk-right { flex:0.95 1 0; min-width:0; }
  .owner-sec-form { flex:1 1 52%; display:flex; flex-direction:column; gap:8px; margin-top:8px; min-height:200px; }
  .owner-sec-form textarea {
    width:100%; flex:1 1 auto; min-height:200px; resize:vertical; background:#0f1628; border:1px solid #23314f;
    color:#e6edf3; border-radius:6px; padding:10px 12px; font-size:13px; font-family:inherit; line-height:1.7;
  }
  #owner-sec-notes { flex:1 1 36%; min-height:140px; }
  .owner-sec-form textarea:focus { outline:none; border-color:#6e4a9e; }
  @media (max-width:980px){
    .owner-sec-split { flex-direction:column; }
    .owner-sec-split .chk-left, .owner-sec-split .chk-right { flex:1 1 46%; }
  }
  .perf-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .perf-grid .kpi { min-width:0; text-align:left; }
  .perf-grid .kpi .v { font-size:20px; }
  .dlg-fields { display:grid; grid-template-columns:96px 1fr; gap:8px 12px; font-size:13px; }
  .dlg-fields .k { color:#8b95aa; }
  .dlg-fields .v { color:#e6edf3; word-break:break-all; }
  .dlg-fields .v.danger { color:#f85149; }
  .dlg-raw { margin-top:10px; white-space:pre-wrap; word-break:break-word; line-height:1.65; font-size:13px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; color:#c9d4e0; background:#0f1628; border:1px solid #1e2a45; border-radius:8px; padding:10px; max-height:36vh; overflow:auto; }
  .dlg-seg { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; padding:7px 0; border-bottom:1px dashed #1e2a45; }
  .dlg-seg:last-child { border-bottom:none; }
  .dlg-seg.clk { cursor:pointer; }
  /* 原因/判语可以很长（未达标目录尤其），nowrap 会把行撑破导致排版错乱，改成可换行并限宽 */
  .dlg-seg .txt { min-width:0; word-break:break-word; }
  .dlg-seg .why { color:#8b95aa; font-size:11px; white-space:normal; word-break:break-word; text-align:right; max-width:48%; flex:0 1 auto; }
  .dlg-seg .pts { color:#4ade80; font-size:11px; white-space:nowrap; margin-left:6px; }
  .dlg-seg .pts.dim { color:#8b95aa; }   /* 预计分：当天积分还没生成时灰显 */
  .dlg-book { margin-top:12px; }
  .dlg-book-t { font-size:12px; font-weight:700; color:#c9d4e0; margin-bottom:4px; }
  .dlg-book.dim .dlg-book-t { color:#8b95aa; font-weight:600; }
  .dlg-book-t .more { font-weight:400; color:#5c6a82; margin-left:6px; }
  .dlg-form { display:flex; flex-direction:column; gap:8px; }
  .dlg-form input, .dlg-form textarea {
    width:100%; background:#0f1628; border:1px solid #23314f; color:#e6edf3;
    border-radius:5px; padding:6px 8px; font-size:12px; font-family:inherit;
  }
  .dlg-form textarea { min-height:80px; resize:vertical; line-height:1.6; }
  .std-panel { position:fixed; inset:0; background:rgba(8,12,22,.88); z-index:28; display:flex; align-items:center; justify-content:center; }
  .std-box { width:min(640px,94vw); height:min(82vh,720px); background:#111a2e; border:1px solid #23314f; border-radius:12px; padding:16px; display:flex; flex-direction:column; }
  .std-box .gbtn.on { background:#1d4a7a; border-color:#2f6ea8; color:#fff; }
  .std-meta { font-size:11px; color:#8b95aa; margin-top:4px; }
  #std-ask-view, #std-imp-view { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
  #std-ask-view.hidden, #std-imp-view.hidden { display:none !important; }
  .std-log { flex:1 1 auto; min-height:0; overflow:auto; margin-top:10px; background:#0f1628; border:1px solid #1e2a45; border-radius:8px; padding:10px 12px; }
  .std-msg { margin:0 0 10px; font-size:12px; line-height:1.65; }
  .std-msg .who { font-size:11px; color:#8b95aa; margin-bottom:3px; }
  .std-msg.user .who { color:#4da3ff; }
  .std-msg.bot .who { color:#3fb950; }
  .std-msg .txt { white-space:pre-wrap; word-break:break-word; color:#e6edf3; }
  .std-cite { margin-top:4px; font-size:11px; color:#8b95aa; }
  .std-picks { display:flex; flex-direction:column; gap:6px; margin-top:6px; }
  .std-picks button { text-align:left; background:#102a45; border:1px solid #1d4a7a; color:#c9d4e0; border-radius:6px; padding:7px 10px; cursor:pointer; font-size:12px; }
  .std-picks button:hover { border-color:#4da3ff; color:#fff; }
  .std-picks .sub { display:block; color:#8b95aa; font-size:11px; margin-top:2px; }
  .std-input { flex:0 0 auto; display:flex; gap:6px; margin-top:8px; align-items:flex-end; }
  .std-input textarea { flex:1; min-height:44px; max-height:90px; resize:vertical; background:#0f1628; border:1px solid #23314f; color:#e6edf3; border-radius:5px; padding:6px 8px; font-size:12px; font-family:inherit; line-height:1.5; }
  .std-input .xbtn { height:36px; font-size:13px; padding:0 14px; }
  .std-imp select { height:32px; background:#0f1628; border:1px solid #23314f; color:#e6edf3; border-radius:5px; padding:0 8px; font-size:12px; }
  .std-imp textarea { flex:1; min-height:0; resize:none; background:#0f1628; border:1px solid #23314f; color:#e6edf3; border-radius:6px; padding:8px 10px; font-size:12px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; line-height:1.55; }
  .std-hint { font-size:11px; color:#8b95aa; line-height:1.55; }
  .std-sec-t { font-size:11px; color:#4da3ff; margin:2px 0 8px; font-weight:700; }
  .gbtn.todo-hot { background:#3d1c1c; border-color:#8b3a3a; color:#ff7b72; font-weight:700; }
  .std-todo { border:1px solid #23314f; border-radius:8px; padding:8px 10px; margin-bottom:8px; background:#0f1628; cursor:pointer; }
  .std-todo:hover { border-color:#2f6ea8; }
  .std-todo .l1 { display:flex; justify-content:space-between; font-size:11px; color:#8b95aa; }
  .std-todo .q { font-size:12px; color:#e6edf3; margin-top:4px; white-space:pre-wrap; word-break:break-word; }
  .std-log textarea, .std-todo-detail textarea { width:100%; background:#0f1628; border:1px solid #23314f; color:#e6edf3; border-radius:5px; padding:6px 8px; font-size:12px; font-family:inherit; line-height:1.6; resize:vertical; }
  @keyframes flash { 0% { box-shadow:0 0 0 2px #4da3ff; } 100% { box-shadow:none; } }
  .flash { animation: flash 1.2s ease; }
  /* 三列各自置顶：左绩效 / 中今日积分+业务跳转 / 右扣分 —— 同高同构，横扫对齐 */
  .col-pin { position:sticky; top:0; z-index:6;
    border-radius:7px; border:1px solid #2a3c62; padding:5px 7px 6px; margin:0 0 6px;
    box-shadow:0 1px 0 rgba(255,255,255,.04) inset;
    min-height:92px; display:flex; flex-direction:column; justify-content:flex-start; }
  /* 偶发提醒：预警态突出，压在物资卡之上 */
  #card-ops-event { border-color:#7a5a1f; background:linear-gradient(180deg,#2a210e 0%,#1a160c 100%);
    box-shadow:inset 0 0 0 1px rgba(255,197,61,.18); }
  #card-ops-event .card-t { color:#ffc53d; font-size:13.5px; }
  #card-ops-event .card-t .more { color:#c9a84a; }
  #card-ops-event .item .txt { font-size:13px; font-weight:700; color:#ffe8a3; line-height:1.45; }
  #card-ops-event .item .txt .sub { font-size:11.5px; color:#d6c07a; font-weight:500; }
  .col-pin#perf-col-pin {
    background:linear-gradient(180deg,#152a45 0%,#102038 100%);
    border-color:#1d4a7a; border-left:3px solid #4da3ff; }
  .col-pin#score-col-pin {
    background:linear-gradient(180deg,#143528 0%,#0f241c 100%);
    border-color:#2a5c36; border-left:3px solid #3fb950; }
  /* 今日积分同比：达标绿（默认）/ 未达涨 10% 黄 / 下滑红 */
  .col-pin#score-col-pin.tone-warn {
    background:linear-gradient(180deg,#3a2e12 0%,#2a210e 100%);
    border-color:#7a5a1f; border-left-color:#ffc53d; }
  .col-pin#score-col-pin.tone-bad {
    background:linear-gradient(180deg,#3a1c22 0%,#2a1418 100%);
    border-color:#6e2a2a; border-left-color:#f85149; }
  /* 扣分置顶：越少越好。达标绿 / 边缘黄 / 远不达标红（默认绿，避免「今天 0 扣分」仍一片红） */
  .col-pin#penalty-col-pin {
    background:linear-gradient(180deg,#143528 0%,#0f241c 100%);
    border-color:#2a5c36; border-left:3px solid #3fb950; }
  .col-pin#penalty-col-pin.tone-warn {
    background:linear-gradient(180deg,#3a2e12 0%,#2a210e 100%);
    border-color:#7a5a1f; border-left-color:#ffc53d; }
  .col-pin#penalty-col-pin.tone-bad {
    background:linear-gradient(180deg,#3a1c22 0%,#2a1418 100%);
    border-color:#6e2a2a; border-left-color:#f85149; }
  .col-pin .cmp-strip { margin:0; background:rgba(0,0,0,.18); border-radius:6px; padding:2px;
    flex:1 1 auto; align-items:stretch; }
  .col-pin .cmp-cell { background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.10);
    display:flex; flex-direction:column; justify-content:center; min-height:64px; }
  .col-pin .cmp-lab { min-height:16px; }
  .col-pin .cmp-foot { min-height:14px; }
  .col-pin .cmp-cell.now { background:rgba(63,185,80,.14); border-color:rgba(63,185,80,.35); }
  .col-pin .cmp-cell.pen .cmp-val { color:#f85149; }
  .col-pin .cmp-cell.pen-ok .cmp-val { color:#3fb950; }
  .col-pin .cmp-cell.pen-warn .cmp-val { color:#ffc53d; }
  /* 销售部追踪列顶·绩效数字：≥85 绿 / ≥70 黄 / 其余红 */
  .col-pin .cmp-val.g { color:#3fb950; }
  .col-pin .cmp-val.y { color:#ffc53d; }
  .col-pin .cmp-val.r { color:#f85149; }
  .col-pin .pin-lab { font-size:11px; color:#c9d4e0; font-weight:700; margin:0 0 3px; letter-spacing:.02em;
    min-height:16px; line-height:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .gm-nav { position:static; display:flex; flex-wrap:wrap; gap:5px;
    background:transparent; border:0; padding:4px 0 0; margin:0; }
  .gm-nav-wrap { position:relative; }
  .gm-nav-btn { height:24px; padding:0 8px; border-radius:5px; cursor:pointer; font-size:11px;
    background:#141d33; border:1px solid #23314f; color:#c9d4e0; white-space:nowrap;
    display:inline-flex; align-items:center; gap:4px; }
  .gm-nav-btn:hover { border-color:#1d4a7a; color:#4da3ff; }
  .gm-nav-btn.on { background:#102a45; border-color:#1d4a7a; color:#4da3ff; }
  .gm-nav-btn .tm-badge { margin-left:2px; flex:0 0 auto; }
  .gm-nav-menu { position:absolute; left:0; top:calc(100% + 4px); z-index:8;
    min-width:168px; max-height:min(52vh,420px); overflow:auto;
    background:#111a2e; border:1px solid #23314f; border-radius:8px; padding:6px;
    box-shadow:0 8px 24px rgba(0,0,0,.45); display:flex; flex-direction:column; gap:3px; }
  .gm-nav-menu .gm-nav-btn { width:100%; text-align:left; height:auto; min-height:28px;
    justify-content:space-between; padding:5px 8px; }
  .chk-panel { position:fixed; inset:0; background:rgba(8,12,22,.88); z-index:24; display:flex; align-items:center; justify-content:center; }
  #owner-sec-panel { z-index:29; }
  .chk-box { width:min(920px,95vw); height:min(86vh,780px); background:#111a2e; border:1px solid #23314f; border-radius:12px; padding:16px; display:flex; flex-direction:column; }
  .chk-box-h { flex:0 0 auto; display:flex; justify-content:space-between; align-items:center; gap:10px; }
  .chk-box-h h2 { font-size:16px; margin:0; }
  .chk-box-h .more { font-size:11px; color:#5c6a82; font-weight:400; margin-left:6px; }
  .chk-split { flex:1 1 auto; min-height:0; display:flex; gap:14px; margin-top:10px; }
  .chk-left { flex:0 0 350px; min-width:0; display:flex; flex-direction:column; }
  .chk-right { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
  .chk-list { flex:1 1 auto; min-height:0; overflow:auto; background:#0f1628; border:1px solid #1e2a45; border-radius:8px; padding:8px 10px; }
  .chk-day { font-size:11px; color:#8ea2bd; margin:6px 0 2px; }
  .chk-day:first-child { margin-top:0; }
  .chk-card { padding:6px 0; border-bottom:1px dashed #1e2a45; }
  .chk-card:last-child { border-bottom:none; }
  .chk-card .no { font-weight:600; color:#e6edf3; }
  .chk-card .note { margin-top:4px; white-space:pre-wrap; word-break:break-word; font-size:11px; line-height:1.65; color:#c9d4e0; }
  .chk-card .note.none { color:#5c6a82; }
  .chk-tab.on, .op-tab.on { background:#1d4a7a; border-color:#2f6ea8; color:#fff; }
  @media (max-width:880px){
    .chk-split { flex-direction:column; }
    .chk-left { flex:0 0 38%; }
  }

body.eng-role .cols, body.eng-role #kpis,
  body.eng-role .top-meta > *:not(#sys-entry):not(#logout),
  body.eng-role #sys-entry-toggle,
  body.eng-role #sys-entry-menu .sys-entry-item:not(#eng-open),
  body.eng-role #week-panel, body.eng-role #std-panel,
  body.eng-role #axis-band-panel, body.eng-role #dlg-panel,
  body.eng-role #mat-panel, body.eng-role #mat-in-panel,
  body.eng-role #fin-panel, body.eng-role #settings-panel { display: none !important; }
  /* 工程岗：系统入口菜单常显，只留「工程管理」 */
  body.eng-role #sys-entry-menu {
    display: flex !important; position: static; box-shadow: none;
    padding: 0; border: 0; background: transparent; min-width: 0;
  }
  body.eng-role #eng-open {
    color:#4da3ff; border:1px solid #1d4a7a; background:#102a45;
  }
  /* 工程管理弹窗：铺满可视区，便于折线与多序列对照 */
  #eng-panel .dlg-box.eng-dlg-box,
  body.eng-role #eng-panel .dlg-box {
    width: min(100vw - 16px, 100%);
    max-width: none;
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 10px;
  }
  #eng-panel .dlg-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
  /* 工程目录导航 */
  #eng-tabs.eng-nav {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 10px 12px 8px; margin: 0;
    border: 0; border-bottom: 1px solid #1e2a45;
    background: linear-gradient(180deg, #121a2c 0%, #0f1628 100%);
  }
  #eng-tabs.eng-nav .gbtn {
    height: auto; min-height: 30px; padding: 6px 12px;
    border-radius: 8px; font-size: 13px; line-height: 1.2;
    border: 1px solid #2a3a5a; background: #121a2c; color: #aeb9cc;
    transition: background .15s, border-color .15s, color .15s;
  }
  #eng-tabs.eng-nav .gbtn:hover { border-color: #3d5a8a; color: #e6edf3; }
  #eng-tabs.eng-nav .gbtn.on {
    background: #1d4a7a; border-color: #3d8bfd; color: #fff; font-weight: 600;
  }
  #eng-tabs.eng-nav .gbtn .tm-badge { vertical-align: middle; }
  .eng-scope-hint {
    font-size: 12px; color: #8b95aa; line-height: 1.45;
    margin: 0 0 10px; padding: 8px 10px;
    border: 1px solid #23314f; border-radius: 8px; background: #0c1424;
  }
  .eng-jump {
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
  }
  .eng-jump:hover {
    border-color: #3d8bfd !important;
    background: #152238;
    box-shadow: inset 0 0 0 1px rgba(61, 139, 253, 0.25);
  }
  .eng-jump-line { cursor: pointer; }
  .eng-jump-line:hover .hint { text-decoration: underline; }
  .eng-en-chips { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 8px; }
  .eng-en-chip {
    display:inline-flex; align-items:center; gap:6px;
    padding:5px 10px; border-radius:999px; cursor:pointer;
    border:1px solid #2a3a5a; background:#121a2c; color:#8b95aa;
    font-size:12px; user-select:none;
  }
  .eng-en-chip input { position:absolute; opacity:0; pointer-events:none; width:0; height:0; }
  .eng-en-chip .dot {
    width:8px; height:8px; border-radius:50%;
    background:var(--chip, #8b95aa); opacity:0.45;
  }
  .eng-en-chip.on {
    border-color: color-mix(in srgb, var(--chip, #4da3ff) 55%, #2a3a5a);
    background: color-mix(in srgb, var(--chip, #4da3ff) 14%, #121a2c);
    color:#e6edf3;
  }
  .eng-en-chip.on .dot { opacity:1; }
  .eng-en-chart-box {
    border:1px solid #23314f; border-radius:8px; background:#0f1628;
    padding:6px 4px 2px; overflow:hidden;
  }
  body.eng-role #eng-close { display: none; }
  /* 工程/主管整页模式：面板盖住顶栏，须在面板内提供退出 */
  #eng-logout { display: none; }
  body.eng-role #eng-logout { display: inline-flex !important; }
  /* 工程岗无权总览/复核/月报；可抄表（水泵水箱/能耗）；主管/总经理另有能耗阅览 */
  body.eng-worker #eng-tab-ov,
  body.eng-worker #eng-tab-rev,
  body.eng-worker #eng-tab-mon { display: none !important; }
  body.eng-worker #eng-tab-energy .tm-badge { display: none !important; }

  /* 保证金测算（仅 xue-pro，ETF 期权）；独立 #hold-panel 与设置共用 wide */
  .model-box.wide,
  #settings-panel .model-box.wide { width:min(1120px,96vw); }
  .hold-rows, .hold-flows { display:flex; flex-direction:column; gap:6px; max-height:340px; overflow-y:auto; }
  .hold-param-split { display:grid; grid-template-columns:minmax(260px,1fr) minmax(300px,1.15fr);
    gap:10px 16px; align-items:start; }
  .hold-global { display:flex; flex-direction:column; gap:8px; min-width:0; }
  .hold-ret-panel { min-width:0; background:#0c1424; border:1px solid #1e2a45; border-radius:8px;
    padding:8px 10px; }
  .hold-ret-hint { margin:0 0 6px; color:#8b95aa; font-size:11px; line-height:1.5; }
  .hold-ret-grid { display:flex; flex-direction:column; gap:6px; margin:0; }
  .hold-ret-row { display:grid; grid-template-columns:88px minmax(100px,1fr) auto; gap:6px 8px; align-items:center;
    background:#0f1628; border:1px solid #23314f; border-radius:8px; padding:6px 8px; }
  .hold-ret-lab { font-size:12px; color:#aeb9cc; white-space:nowrap; }
  .hold-ret-row input { margin:0; width:100%; background:#0a1120; border:1px solid #23314f; color:#e6edf3;
    border-radius:6px; padding:5px 8px; font-size:12px; box-sizing:border-box; }
  .hold-ret-val { font-size:13px; font-weight:600; color:#e6edf3; font-variant-numeric:tabular-nums;
    text-align:right; min-width:4.5em; }
  .hold-ret-val.ok { color:#3fb950; }
  .hold-ret-val.bad { color:#ff7b72; }
  @media (max-width:900px){
    .hold-param-split { grid-template-columns:1fr; }
  }
  @media (max-width:720px){
    .hold-ret-row { grid-template-columns:1fr; gap:4px; }
    .hold-ret-val { text-align:left; min-width:0; }
  }
  .hold-flow-form { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 10px; }
  .hold-flow-form label.full { grid-column:1 / -1; }
  .hold-flow-op { border-top:1px dashed #23314f; padding-top:10px; }
  .hold-flow-op.hidden { display:none; }
  .hold-row { display:grid; grid-template-columns:minmax(150px,1.5fr) 100px 92px 96px 108px 130px 70px 56px;
    gap:6px; align-items:center; background:#0f1628; border:1px solid #23314f; border-radius:6px; padding:7px 8px; }
  .hold-row.near { border-color:#b8871a; background:#1b1810; }
  .hold-row input, .hold-row select { width:100%; margin:0; background:#0a1120; border:1px solid #23314f;
    color:#e6edf3; border-radius:4px; padding:5px 6px; font-size:12px; box-sizing:border-box; }
  .hold-row input[readonly], .hold-row select:disabled { opacity:.92; cursor:default; }
  .hold-row .hold-edit-btn { background:#1b2a4a; border:1px solid #3d5a8a; color:#9ecbff; cursor:pointer;
    border-radius:4px; height:26px; font-size:12px; line-height:1; padding:0 6px; display:none; }
  body.hold-editing .hold-row .hold-edit-btn { display:inline-block; }
  /* 到期行：行权/作废按钮列（2026-11-20） */
  .hold-row.expired { border-color:#8a2f2f; background:#1b1214; }
  .hold-row .hold-acts { display:flex; flex-direction:column; gap:3px; }
  .hold-row .hold-act-btn { font-size:11px; padding:3px 4px; border-radius:6px; cursor:pointer;
    text-align:center; line-height:1.3; }
  .hold-row .act-ex { background:#1b2a4a; border:1px solid #3d5a8a; color:#9ecbff; }
  .hold-row .act-ex:hover { background:#24375e; }
  .hold-row .act-void { background:#2a1620; border:1px solid #8a2f2f; color:#ff9d9d; }
  .hold-row .act-void:hover { background:#3a1c2a; }
  .hold-flow-row { display:grid; grid-template-columns:100px 52px 88px 88px 88px minmax(60px,1fr) 36px;
    gap:6px; align-items:center; background:#0f1628; border:1px solid #23314f; border-radius:6px; padding:7px 8px; font-size:12px; color:#e6edf3; }
  .hold-flow-row .hold-flow-del { background:#3d1c1c; border:1px solid #6e3030; color:#ff7b72; cursor:pointer;
    border-radius:4px; height:26px; font-size:14px; line-height:1; }
  .hold-flow-head { display:grid; grid-template-columns:100px 52px 88px 88px 88px minmax(60px,1fr) 36px;
    gap:6px; font-size:12px; color:#8b95aa; padding:0 8px 5px; }
  #hold-cash[readonly] { background:#0a1120; color:#9ecbff; cursor:default; }
  .hold-head { display:grid; grid-template-columns:minmax(150px,1.5fr) 100px 92px 96px 108px 130px 70px 56px;
    gap:6px; font-size:12px; color:#8b95aa; padding:0 8px 5px; }
  .hold-result { background:#0f1628; border:1px solid #23314f; border-radius:8px; padding:10px 12px; font-size:12px; line-height:1.9; }
  .hold-result .hr-line { display:flex; justify-content:space-between; gap:10px; }
  .hold-result .hr-line b { font-weight:500; }
  .hold-result .hr-indent { padding-left:12px; color:#aeb9cc; }
  .hold-result .ok { color:#3fb950; }
  .hold-result .bad { color:#ff7b72; }
  .hold-result .warn { color:#e3b341; }
  .hold-result .hr-sec { color:#8b95aa; border-top:1px dashed #23314f; margin-top:6px; padding-top:6px; }
  .hold-result .hr-note { color:#8b95aa; font-size:11px; line-height:1.6; margin-top:6px; }
  #hold-under[readonly] { background:#0a1120; color:#9ecbff; cursor:default; }
  .hold-tips-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:8px; align-items:stretch; }
  .hold-tips-left { display:flex; flex-direction:column; gap:6px; min-width:0; }
  .hold-tip { background:#0f1628; border:1px solid #23314f; border-radius:8px; padding:8px 10px; font-size:12px; line-height:1.7; color:#aeb9cc; }
  .hold-tip b { color:#e6edf3; font-weight:600; }
  .hold-tip .ok { color:#3fb950; }
  .hold-tip .bad { color:#ff7b72; }
  .hold-tip .warn { color:#e3b341; }
  .hold-drop-tip { border-color:#3d4f74; background:linear-gradient(180deg,#121a2e 0%,#0f1628 100%); }
  .hold-drop-tip .drop-main { font-size:13px; margin-top:4px; }
  @media (max-width: 860px) {
    .hold-tips-grid { grid-template-columns:1fr; }
  }
  /* 持仓录入弹窗 */
  .hold-add-mask { position:absolute; inset:0; background:rgba(8,12,22,.92); z-index:6; display:flex; align-items:center; justify-content:center; }
  .hold-add-box { width:min(620px,94%); max-height:92%; overflow:auto; background:#131d33; border:1px solid #2f4062;
    border-radius:12px; padding:16px 18px; }
  .hold-add-form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; }
  .hold-add-form label { font-size:12px; color:#aeb9cc; }
  .hold-add-form input, .hold-add-form select { margin-top:3px; }
  @media (max-width:760px){
    .hold-flow-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .hold-row, .hold-head { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .hold-flow-row, .hold-flow-head { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .hold-add-form { grid-template-columns:1fr; }
  }

/* ===== 客房品质趋势看板（2026-11-22 规格书）：三卡片 + 交叉验证，配色沿用 .ok/.bad/.warn ===== */
.hkq-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
@media (max-width:900px){ .hkq-grid { grid-template-columns:1fr; } }
.hkq-card { background:#0c1424; border:1px solid #1e2a45; border-radius:8px; padding:8px 10px; min-width:0; }
.hkq-card-t { font-weight:700; font-size:13px; margin-bottom:6px; }
.hkq-row { display:flex; align-items:center; gap:6px; margin:5px 0 0; flex-wrap:wrap; }
.hkq-row b { font-size:12px; }
.hkq-val { font-weight:800; margin-left:auto; font-variant-numeric:tabular-nums; }
.hkq-dot { width:10px; height:10px; border-radius:50%; display:inline-block; flex:0 0 auto; }
.hkq-dot.green { background:#3fb950; }
.hkq-dot.yellow { background:#e3b341; }
.hkq-dot.red { background:#f85149; }
.hkq-dot.insufficient { background:#4a5568; }
.hkq-cross { margin:10px 0; padding:8px 10px; border-radius:8px; background:#101a2e;
  border:1px solid #23314f; font-size:13px; }
.hkq-cross.ok { border-color:#2e5a3c; background:#12240f; }
.hkq-cross.bad { border-color:#8a2f2f; background:#1b1214; }
.hkq-cross.warn { border-color:#8a6d1a; background:#1b1810; }
.hkq-sec { font-weight:700; font-size:13px; margin:12px 0 4px; }
.hkq-red-row { display:flex; align-items:center; gap:8px; margin:6px 0; flex-wrap:wrap; }
.hkq-clo { margin:6px 0; padding:6px 8px; background:#0f1628; border:1px solid #23314f; border-radius:6px; }
