/* ── AOC / 公司总看板 共用 ── */
body.aocpage{overflow-x:hidden}
.ovwrap{display:grid; grid-template-columns:minmax(0,1fr) 372px; gap:13px; padding:13px 18px 20px;}
.aocwrap{display:grid; grid-template-columns:minmax(0,1fr) 396px; gap:13px; padding:13px 18px 20px;}
.navbtns{display:flex; gap:6px; align-items:center}
.navbtns button{font-size:11.5px; padding:5px 10px}
.mapcard{display:flex; flex-direction:column; min-height:0}
.layerbar{display:flex; align-items:center; gap:12px; font-size:11px; color:var(--dim)}
.layerbar label{display:flex; align-items:center; gap:4px; cursor:pointer; white-space:nowrap}
.layerbar input{accent-color:#4ea8ff; width:13px; height:13px}
.mapbox{padding:6px 8px 0; position:relative; display:flex; align-items:center; justify-content:center;
  background:radial-gradient(700px 380px at 55% 45%, #0e1a24 0%, #0a1117 70%);}
.mapbox svg{width:100%; height:auto; display:block; max-height:none}
.mapfoot{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:6px 12px 9px;
  border-top:1px solid var(--line); font-size:10.5px; color:var(--dim2); flex-wrap:wrap}
.leg{display:flex; gap:12px; flex-wrap:wrap}
.leg i{display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:4px; vertical-align:1px}
/* 地图上的机组点 */
.dot{cursor:pointer}
.dot .ring{fill:none; stroke-width:1.4; opacity:.85; animation:pulse 2.2s ease-out infinite}
.dot .core{stroke:#0a0f14; stroke-width:1}
.dot .lbl{font-size:11px; fill:#dce7f2; font-weight:600; pointer-events:none}
.dot .adm{font:8.8px/1.2 -apple-system,"PingFang SC",sans-serif; fill:#8aa2b6; letter-spacing:.2px}
.dot .sub{font-size:9.5px; fill:#8fa4b8; pointer-events:none}
.dot .lead{stroke:#3a5570; stroke-width:.8; opacity:.8}
.dot.sel .core{stroke:#fff; stroke-width:1.6}
.dot.sel .lbl{fill:#fff}
@keyframes pulse{0%{r:5;opacity:.9}70%{r:15;opacity:0}100%{r:15;opacity:0}}
.dim{opacity:.35}
/* 侧栏统计 */
.statgrid{display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-bottom:11px}
.stat{background:linear-gradient(180deg,var(--panel),var(--panel2)); border:1px solid var(--line);
  border-radius:10px; padding:9px 12px}
.stat .k{font-size:10.5px; color:var(--dim2); letter-spacing:.4px}
.stat .v{font-size:19px; font-weight:600; font-variant-numeric:tabular-nums; line-height:1.25; margin-top:1px}
.stat .v small{font-size:11px; font-weight:400; color:var(--dim); margin-left:3px}
/* 机组卡 */
.groups{display:flex; flex-direction:column; gap:11px}
.grouphd{display:flex; align-items:center; justify-content:space-between; font-size:11px; color:var(--dim);
  padding:0 2px 2px; letter-spacing:.5px}
.grouphd b{color:#9fc3e0; font-weight:600}
.glist{display:flex; flex-direction:column; gap:8px}
.crew{background:linear-gradient(180deg,var(--panel),var(--panel2)); border:1px solid var(--line);
  border-radius:10px; padding:9px 11px; cursor:pointer; transition:.15s; position:relative; overflow:hidden}
.crew:hover{border-color:#34506b; background:#152230}
.crew.sel{border-color:#2a6ea6; box-shadow:0 0 0 1px #2a6ea655 inset}
.crew .top{display:flex; align-items:center; gap:8px}
.st{width:7px; height:7px; border-radius:50%; flex:0 0 auto}
.crew .nm{font-size:12.5px; font-weight:600; letter-spacing:.2px}
.crew .loc{font-size:10.5px; color:var(--dim2); margin-left:auto; white-space:nowrap}
.crew .who{font-size:10.5px; color:var(--dim); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.crew .barwrap{display:flex; align-items:center; gap:7px; margin-top:6px}
.bar{flex:1; height:5px; background:#0b141c; border:1px solid #1b2836; border-radius:4px; overflow:hidden}
.bar i{display:block; height:100%; background:linear-gradient(90deg,#1f7bd0,#35d07f); border-radius:3px}
.crew .pc{font-size:11px; color:#cfe0ef; font-variant-numeric:tabular-nums; width:44px; text-align:right}
.crew .row3{display:flex; gap:10px; margin-top:5px; font-size:10.5px; color:var(--dim); flex-wrap:wrap}
.crew .row3 b{color:#cfe0ef; font-weight:600}
.badge{font-size:9.5px; border:1px solid #2a3f52; color:#8fa4b8; border-radius:4px; padding:0 4px; margin-left:5px}
.badge.sim{color:#c79a4a; border-color:#4a3a14}
.badge.live{color:#5fc79a; border-color:#1f4a37}
.wtag{font-size:10px; padding:1px 6px; border-radius:4px; border:1px solid #5a2a2a; color:#ff9d92; background:#2a1515}
.wtag.warn{border-color:#4d3a10; color:#f5c76a; background:#241c08}
/* AOC 表 */
.aocgroup{margin:2px 0 12px}
.aocgroup .gh{display:flex; align-items:center; gap:9px; padding:6px 13px; font-size:11px; color:var(--dim);
  background:rgba(255,255,255,.02); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.aocgroup .gh b{color:#9fc3e0; font-size:12px}
.arow{display:grid; grid-template-columns:14px minmax(150px,1.2fr) 74px minmax(120px,1fr) 96px 106px;
  gap:10px; align-items:center; padding:9px 13px; border-bottom:1px solid #16212c; cursor:pointer}
.arow:hover{background:#131e29}
.arow.sel{background:#122c42}
.arow .c1{display:flex; align-items:center; gap:7px}
.arow .name{font-size:12.5px; font-weight:600; white-space:nowrap}
.arow .base{font-size:10px; color:var(--dim2); margin-top:1px}
.arow .mid{font-size:10.5px; color:var(--dim); line-height:1.35}
.arow .mid b{color:#dce7f2; font-weight:600}
.arow .prog{display:flex; align-items:center; gap:6px}
.arow .prog .pc{width:42px; text-align:right; font-size:11px; font-variant-numeric:tabular-nums}
.arow .eta{font-size:10.5px; color:var(--dim); text-align:right; line-height:1.35}
.arow .eta b{color:#cfe0ef; font-size:11.5px}
.arow .risk{font-size:10px}
/* 详情 */
.detailpane{position:sticky; top:74px; align-self:start; max-height:calc(100vh - 92px); overflow:auto}
.dbody{padding:12px 14px}
.dname{display:flex; align-items:center; gap:9px; flex-wrap:wrap}
.dname h3{font-size:15px; font-weight:600}
.dmeta{font-size:11px; color:var(--dim); margin-top:4px}
.dsec{margin-top:14px}
.dsec h4{font-size:11px; font-weight:600; color:#9fc3e0; letter-spacing:.5px; margin-bottom:7px;
  display:flex; justify-content:space-between; align-items:center}
.dkv{display:grid; grid-template-columns:64px 1fr; gap:5px 8px; font-size:11.5px}
.dkv span:first-child{color:var(--dim2)}
.dkv span:last-child{color:#dce7f2}
.dcrew{display:flex; flex-wrap:wrap; gap:6px}
.dcrew span{font-size:11px; border:1px solid var(--line); background:#0e1822; border-radius:5px; padding:2px 7px; color:#cfe0ef}
.dcrew span em{color:var(--dim2); font-style:normal; margin-right:4px; font-size:10px}
.lines{display:flex; flex-direction:column; gap:5px}
.ln{display:grid; grid-template-columns:1fr 58px 40px; gap:8px; align-items:center; font-size:11px}
.ln .bar{height:4px}
.wlist{display:flex; flex-direction:column; gap:5px; font-size:11px}
.wlist div{padding:5px 8px; border-radius:6px; border:1px solid #3a2a12; background:#1d1708; color:#f5c76a; line-height:1.4}
.wlist div.bad{border-color:#5a2a2a; background:#231012; color:#ff9d92}
.wlist div.ok{border-color:#1f4a37; background:#0d2119; color:#7fe0b0}
.sorties{width:100%; border-collapse:collapse; font-size:10.5px}
.sorties th{color:var(--dim2); font-weight:400; text-align:left; padding:3px 4px; border-bottom:1px solid var(--line)}
.sorties td{padding:3px 4px; border-bottom:1px solid #16212c; color:#cfe0ef}
.note{font-size:11px; color:var(--dim); line-height:1.6; white-space:pre-wrap}
.dbtns{display:flex; gap:8px; margin-top:12px}
.empty{padding:26px 14px; text-align:center; color:var(--dim2); font-size:12px}
@media(max-width:1080px){
  .ovwrap,.aocwrap{grid-template-columns:1fr; padding:11px 12px 18px}
  .detailpane{position:static; max-height:none; order:-1}
  .arow{grid-template-columns:14px 1fr 80px; row-gap:6px}
  .arow .mid,.arow .eta,.arow .prog{grid-column:2 / -1}
  .arow .eta{text-align:left}
  .mapbox{overflow-x:auto; align-items:flex-start}
  .mapbox svg{min-width:820px; max-height:none}
  .hdr{flex-wrap:wrap; gap:8px}
  .hdr-mid{order:3; width:100%}
  .card-h{flex-wrap:wrap; align-items:center; row-gap:6px}
  .card-h h2{white-space:nowrap}
  .layerbar{flex-wrap:wrap; row-gap:4px}
}

/* 总公司标记与指挥弧线 */
#hqMark .hqring{animation:hqpulse 2.8s ease-out infinite}
#hqMark .hqlbl{font:12px -apple-system,"PingFang SC",sans-serif; fill:#ffe0a3; font-weight:700; pointer-events:none}
#hqMark .admsub{font:9px -apple-system,"PingFang SC",sans-serif; fill:#c9a86a; pointer-events:none}
@keyframes hqpulse{0%{r:7;opacity:.8}70%{r:16;opacity:0}100%{r:16;opacity:0}}

/* 大屏 / 全屏展示 */
body.wall{overflow:hidden}
body.wall .ovwrap{height:calc(100vh - 46px); padding:4px 10px; gap:8px; overflow:hidden}
body.wall .mapcard{display:flex; flex-direction:column; min-height:0}
body.wall .mapcard .hint, body.wall .mapfoot span:last-child, body.wall #watchCard{display:none}
body.wall .mapbox{flex:1; min-height:0; overflow:hidden; align-items:center}
body.wall #asia{height:100%; width:auto; max-width:100%; min-width:0}
body.wall .mapfoot{padding:4px 10px}
body.wall .card-h{padding:7px 12px}
body.wall .statgrid{gap:8px}
body.wall .groups{overflow:auto}
body.wall .crew{padding:7px 10px}
body.wall #ovClock{font-size:24px}
body.wall .hdr-mid{display:none}
body.wall .hdr{padding:6px 14px}

/* ── 飞书中转：数据源 / 同步状态 ── */
button.pill{cursor:pointer;font:inherit;font-size:12px;line-height:1.4}
button.pill.src{color:#63cdf5;border-color:#2b4d63}
.fsline{font-size:11px;color:#8ba0b3;text-align:right;margin-top:2px;max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fsline.on{color:#8fe0a8}
.fsline.err{color:#f08a8a}
body.wall .fsline{position:fixed;right:12px;top:6px;z-index:9;max-width:46vw;font-size:11px;background:rgba(8,16,24,.7);padding:2px 8px;border-radius:10px}
body.wall .pill.src{position:fixed;left:12px;top:6px;z-index:9;background:rgba(8,16,24,.75)}

/* 大屏：数据源角标与紧凑指标条 */
.srcmini{display:none;font-size:11px;color:#63cdf5;border:1px solid #2b4d63;border-radius:10px;padding:1px 8px;white-space:nowrap}
body.wall .srcmini{display:inline-block}
body.wall .fsline, body.wall .pill.src{display:none}
body.wall .statgrid{grid-template-columns:repeat(4, minmax(0,1fr)); gap:6px}
body.wall .statgrid .stat{padding:6px 9px}
body.wall .statgrid .k{font-size:10px}
body.wall .statgrid .v{font-size:17px;line-height:1.25}
body.wall .groups{margin-top:6px}

/* ── AOC 增强：公司级指标 / 预警条 / 在线与 FTL ── */
.aocmain{display:flex;flex-direction:column;gap:10px;min-width:0}
.aockpi{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.aockpi .stat{padding:8px 11px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}
.aockpi .stat .v{font-size:19px}
.warnbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:0}
.warnbar .wchip{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:4px 9px;border-radius:12px;border:1px solid #4d3a10;background:rgba(240,163,10,.08);color:#f5c76a;cursor:pointer}
.warnbar .wchip.bad{border-color:#5a2a2a;background:rgba(240,90,90,.1);color:#f08a8a}
.warnbar .wchip .n{font-weight:600;color:#dce7f2}
.warnbar .wchip.ok{border-color:#1f4a37;background:rgba(53,208,127,.08);color:#8fe0a8;cursor:default}
.ftlbar{height:3px;border-radius:2px;background:#16232f;margin-top:3px;overflow:hidden}
.ftlbar i{display:block;height:100%;background:#4ea8ff}
.ftlbar i.warn{background:#f0a30a}
.ftlbar i.bad{background:#f06a6a}
.onl{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:#8fe0a8}
.onl i{width:5px;height:5px;border-radius:50%;background:#35d07f;display:inline-block}
.onl.stale{color:#f5c76a}.onl.stale i{background:#f0a30a}
.onl.off{color:#f08a8a}.onl.off i{background:#f06a6a}
.onl.local{color:#8ba0b3}.onl.local i{background:#7f92a5}

/* ── 大屏：顶部 KPI 条 + 底部预警跑马灯 ── */
.wallbar{display:none}
body.wall .wallbar{display:grid;grid-column:1/-1;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:6px}
body.wall .wallbar .stat{padding:6px 11px;border:1px solid #21394d;border-radius:9px;background:rgba(10,20,30,.65)}
body.wall .wallbar .stat .k{font-size:10px}
body.wall .wallbar .stat .v{font-size:21px;line-height:1.2}
body.wall .wallbar .stat .s{font-size:10px;color:var(--dim2)}
body.wall .statgrid{display:none}
.ticker{display:none}
body.wall .ticker{display:block;position:fixed;left:0;right:0;bottom:0;height:24px;line-height:24px;padding:0 12px;background:rgba(8,16,24,.9);border-top:1px solid #1d3345;font-size:11.5px;color:#f5c76a;overflow:hidden;z-index:8}
body.wall .ticker span{display:inline-block;white-space:nowrap;padding-left:100%;animation:tickmove 38s linear infinite}
@keyframes tickmove{to{transform:translateX(-100%)}}
body.wall .ovwrap{height:calc(100vh - 46px - 24px); padding-bottom:4px}
body.wall .mapbox{padding-bottom:2px}

@media (max-width:1100px){
  .aockpi{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ── 科技感动效 ── */
body.aocpage{background:
  radial-gradient(1200px 700px at 72% -10%, rgba(30,86,120,.16), transparent 65%),
  radial-gradient(900px 500px at 8% 105%, rgba(20,70,92,.12), transparent 60%),
  #070e15;}
body.aocpage::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  background-image:linear-gradient(rgba(78,168,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(78,168,255,.045) 1px,transparent 1px);
  background-size:44px 44px;mask-image:radial-gradient(ellipse at 50% 40%,#000 20%,transparent 78%)}
body.wall.aocpage::before{background-image:linear-gradient(rgba(78,168,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(78,168,255,.07) 1px,transparent 1px);background-size:56px 56px}
.hdr, main{position:relative;z-index:1}
.hqarc{animation:arcflow 7s linear infinite}
@keyframes arcflow{to{stroke-dashoffset:-44}}
.dot .ring{animation:dotpulse 2.6s ease-out infinite}
@keyframes dotpulse{0%{transform:scale(1);opacity:.85}70%{transform:scale(2.1);opacity:0}100%{transform:scale(2.1);opacity:0}}
.dot .ring{transform-box:fill-box;transform-origin:center}
.hqring{animation:hqbreath 3.4s ease-in-out infinite}
@keyframes hqbreath{0%,100%{opacity:.55;r:11}50%{opacity:1;r:15}}
.radarspin{animation:radarrot 9s linear infinite;transform-box:fill-box;transform-origin:center}
@keyframes radarrot{to{transform:rotate(360deg)}}
.scanline{animation:scandown 8s linear infinite}
@keyframes scandown{0%{transform:translateY(-30px);opacity:0}8%{opacity:.9}92%{opacity:.45}100%{transform:translateY(760px);opacity:0}}
body.wall .wallbar .stat .v{text-shadow:0 0 14px rgba(99,205,245,.35)}
body.wall .brand h1{text-shadow:0 0 18px rgba(99,205,245,.35)}
body.wall .ticker{box-shadow:0 -1px 18px rgba(78,168,255,.18)}
body.wall .mapcard{box-shadow:inset 0 0 60px rgba(30,90,130,.18),0 0 0 1px rgba(78,168,255,.12)}

.hangarbase .baselbl{font:9.5px -apple-system,"PingFang SC",sans-serif;fill:#9fd8f5;font-weight:600;pointer-events:none}

/* ── 机组状态图标：直升机/汽车/机库/完成 ── */
.dot .ico{pointer-events:none}
.dot .ring{opacity:.55}
.dot.mode-run .ring{animation:dotpulse 2.4s ease-out infinite}
.dot.mode-idle .ring,.dot.mode-truck .ring,.dot.mode-hangar .ring,.dot.mode-done .ring{animation:none}
.dot.mode-done .ring{opacity:.3}
.dot .rotor.spin{animation:rotorspin .42s linear infinite;transform-box:fill-box;transform-origin:center}
@keyframes rotorspin{to{transform:rotate(360deg)}}
.dot.mode-idle .rotor{opacity:.9}
.dot .rotor.spin{animation-duration:1.1s}
.dot .rotorblur{animation:rotorblur 1.15s ease-in-out infinite}
@keyframes rotorblur{0%,100%{opacity:.2}50%{opacity:.4}}
.dot .lead{stroke:#7ba7c9;stroke-width:1;opacity:.9}

/* 放行台 + 证照台账 */
.reltable{width:100%;border-collapse:collapse;font-size:11.5px}
.reltable th{text-align:left;color:#8aa2b6;font-weight:600;padding:6px 8px;border-bottom:1px solid #1e3345;white-space:nowrap}
.reltable td{padding:7px 8px;border-bottom:1px solid #142434;color:#c9d7e4;vertical-align:middle}
.reltable tr[data-id]{cursor:pointer}
.reltable tr[data-id]:hover td{background:rgba(78,168,255,.07)}
.reltable .sub2{display:block;font-size:9.5px;color:#7f93a6;margin-top:1px}
.reltable .num{font-variant-numeric:tabular-nums;white-space:nowrap}
.ftlmini{width:96px;height:4px;background:#16283a;border-radius:3px;overflow:hidden;margin-bottom:3px}
.ftlmini i{display:block;height:100%;border-radius:3px}
.onpill{font-size:10px;padding:1px 7px;border-radius:10px;border:1px solid #26425a;color:#9fb6c9}
.onpill.stale{color:#f0a30a;border-color:#5a4420}
.onpill.off{color:#e05a5a;border-color:#5a2a2a}
.qrow{display:flex;align-items:center;gap:8px;padding:5px 2px;border-bottom:1px solid #13212f;font-size:11.5px}
.qrow b{color:#dce7f2;min-width:64px}
.qrow .qr{color:#7f93a6;font-size:10px;min-width:44px}
.qrow .qd{color:#9fb6c9;flex:1;line-height:1.35}
.qrow.bad .qd{color:#ff8b8b}
.qrow.warn .qd{color:#f5c76a}
.qrow.none .qd{color:#6f8296}
#qualList{overflow:visible}
#qualList::-webkit-scrollbar{width:6px}
#qualList::-webkit-scrollbar-thumb{background:#26425a;border-radius:3px}
.simtag{display:inline-block;margin-left:8px;padding:1px 7px;border-radius:9px;font-size:9.5px;font-weight:500;color:#f5c76a;border:1px solid #5a4420;background:rgba(240,163,10,.1);vertical-align:2px}
.crewcell b{display:block}
.crewcell .sub2{display:block;font-size:9.5px;color:#8fa4b8;margin-top:1px;white-space:nowrap}
.arow .mid span{display:block}
.arow .mid .cc{color:#5b6d7f;font-size:9.5px;margin-top:1px}
.rulenote{margin-top:7px;padding-top:6px;border-top:1px dashed #1b2c3d;font-size:9.5px;line-height:1.5;color:#6f8296}

/* 公司总看板公开只读：隐藏需登录的操作入口 */
body.public-view #btnFsPush,
body.public-view #navAoc,
body.public-view #navBoard { display: none !important; }

/* ── 手机/飞书内置浏览器：总看板单列、无横向裁切 ── */
@media (max-width:760px){
  .hdr{padding:9px 12px 8px; gap:6px}
  .brand{min-width:0; flex:1 1 210px}
  .brand h1{font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .brand .sub{font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .navbtns{flex-wrap:wrap; gap:5px; width:100%}
  .navbtns button,.navbtns a{font-size:11px!important; padding:0 8px!important; height:28px!important}
  .hdr-right{width:100%; display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-left:0}
  .hdr-right .navbtns{order:1}
  .hdr-right .fsline{order:2; flex:1 1 140px; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .hdr-right .clock{order:3; margin-left:auto}
  .clock .t{font-size:16px}
  .clock .d{font-size:9px}
  .ovwrap{padding:8px 10px 16px; gap:9px}
  .mapbox{overflow-x:hidden; padding:2px 4px 0}
  .mapbox svg{min-width:0; width:100%; height:auto}
  .mapcard .card-h{padding:8px 10px 4px}
  .layerbar{gap:7px; font-size:10px}
  .statgrid{grid-template-columns:1fr 1fr; gap:7px}
  .stat .v{font-size:16px}
  .crew .loc{display:none}
  .card-h h2{font-size:13px}
}

/* ── 天气实况：机组卡/行内小徽标；地图点旁的小圆由 aoc.js 绘制 ── */
.wxline { margin: 4px 0 1px; }
.wxtag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 7px; border-radius: 999px; border: 1px solid #30495b; background: #0f1c28; color: #cfe0ec; font-size: 10.5px; line-height: 1.25; vertical-align: middle; }
.wxtag svg { flex: 0 0 14px; }
.wxtag b { font-weight: 650; white-space: nowrap; }
.wxtag span { color: #8197a9; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wxtag.ok { border-color: rgba(110,231,183,.42); background: rgba(110,231,183,.08); }
.wxtag.warn { border-color: rgba(245,199,106,.55); background: rgba(245,199,106,.09); }
.wxtag.bad { border-color: rgba(255,123,114,.62); background: rgba(255,123,114,.10); }
.wxtag.none { border-color: #3a4b5b; color: #7f92a5; }
.wxbadge { pointer-events: none; }
