/* ============================================================
   空域规划场景资产（自 airspace.html 抽取）
   - 作用域：body.as-active（场景激活时才可见/生效）
   - 面板右缘让位：#as-panel/.as-toggle/#alt-rail 改用 --as-right，
     避让右侧场景标尺（#scene-ruler）与九天助手（#ai-assistant）
   - 右翼三件（面板 / 把手 / 高度标尺）共用同一条垂直中轴 --as-center：
     面板 top136/bottom80 → 中轴 = 50vh + 28px；把手与标尺均以此居中，
     标尺不再锚定面板左下角，改为与面板垂直居中对齐
   ============================================================ */

/* —— 右翼垂直中轴与尺寸契约（1K 基准；2K 在下方媒体查询内覆写）——
   --as-center 面板垂直中轴 / --as-th·--as-tw 把手高·宽（收窄以让开标尺）
   --alt-h·--alt-w 标尺高·宽 / --alt-gap 把手↔标尺、标尺↔屏缘呼吸间隙 */
:root {
  --as-center: calc(50vh + 28px);
  --as-th: 46px;
  --as-tw: 16px;
  --alt-h: 380px;
  --alt-w: 72px;
  --alt-gap: 12px;
  --as-hug: 6px;    /* 把手贴附标尺左侧时的贴合间隙 */
  /* 面板收起/清屏后：标尺吸附位（让开场景标尺）与「把手贴标尺左侧」位 */
  --as-edge: calc(var(--sr-right, 16px) + var(--sr-w-collapsed, 9px) + var(--alt-gap));
  --as-edge-tg: calc(var(--sr-right, 16px) + var(--sr-w-collapsed, 9px) + var(--alt-gap) + var(--alt-w) + var(--as-hug));
}

#rli-mask {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
#rli-mask.open { opacity: 1; pointer-events: auto; }
#rli-modal {
  width: 940px; height: 520px;
  display: flex; flex-direction: column;
  border-radius: 12px;
  background: rgba(15, 20, 28, 0.44);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: translateY(10px) scale(0.97);
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
#rli-mask.open #rli-modal { transform: none; }
#rli-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; height: 48px; padding: 0 14px 0 20px;
  background: linear-gradient(90deg, rgba(15, 76, 129, 0.35) 0%, rgba(15, 76, 129, 0.08) 100%);
  border-bottom: 1px solid var(--color-line-strong);
}
.rli-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(180deg, #FFFFFF 0%, #EAF4FF 30%, #B8D6EF 55%, #8FB8DE 78%, #A9C8E6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #FFFFFF;
  filter: drop-shadow(0 0 9px rgba(130, 185, 230, 0.45));
}
.rli-title .bar { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: #6FA3D0; box-shadow: 0 0 8px rgba(111, 163, 208, 0.9); }
#rli-close {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #C9D4DE; font-family: inherit; font-size: 16px; line-height: 1; cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
#rli-close:hover {
  border-color: rgba(224, 108, 98, 0.55);
  background: rgba(190, 70, 62, 0.16);
  color: #F3C1BB;
  box-shadow: 0 0 10px rgba(200, 90, 80, 0.25);
}
#rli-tabs {
  display: flex; align-items: stretch; flex-shrink: 0;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--color-line);
}
.rli-tab {
  position: relative; padding: 13px 18px 12px;
  border: none; background: transparent;
  color: var(--text-2); font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: 1px;
  cursor: pointer; transition: color 180ms ease;
}
.rli-tab:hover { color: var(--text-1); }
.rli-tab.active { color: #FFFFFF; }
.rli-tab.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, #6FA3D0, #2F6FA8);
  box-shadow: 0 0 8px rgba(111, 163, 208, 0.6);
}
#rli-body { position: relative; flex: 1; min-height: 220px; overflow: auto; }
#rli-table { width: 100%; border-collapse: collapse; }
#rli-table thead th {
  position: sticky; top: 0; z-index: 1;
  padding: 10px 14px; text-align: center;
  background: rgba(20, 26, 34, 0.82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--text-2); font-size: 12.5px; font-weight: 600; letter-spacing: 1px;
  border-bottom: 1px solid rgba(111, 163, 208, 0.30);
  white-space: nowrap;
}
#rli-table thead th + th,
#rli-table tbody td + td { border-left: 1px solid rgba(255, 255, 255, 0.05); }
#rli-table tbody td {
  padding: 11px 14px; text-align: center;
  color: var(--text-1); font-size: 12.5px;
  border-bottom: 1px solid var(--color-line);
  white-space: nowrap;
}
#rli-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
#rli-table tbody tr:last-child td { border-bottom: none; }
#rli-table tbody tr:hover { background: rgba(255, 255, 255, 0.06); }
#rli-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 rgba(111, 163, 208, 0.60); }
/* 数值 / 日期等宽并提亮 */
.rli-mono { font-family: var(--font-mono); color: #CFE6F7; font-size: 12.5px; letter-spacing: 0; }
/* 语义色胶囊标签 */
.rli-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; line-height: 18px; letter-spacing: 1px; border: 1px solid transparent; }
.rli-tag-red { color: #F2A78E; background: rgba(214, 90, 62, 0.16); border-color: rgba(224, 110, 86, 0.40); }
.rli-tag-orange { color: #F0C08A; background: rgba(217, 154, 78, 0.16); border-color: rgba(228, 178, 116, 0.40); }
.rli-tag-amber { color: #E9C58F; background: rgba(205, 150, 82, 0.14); border-color: rgba(214, 168, 108, 0.34); }
.rli-tag-blue { color: #A9D1F0; background: rgba(111, 163, 208, 0.16); border-color: rgba(111, 163, 208, 0.40); }
.rli-tag-dim { color: var(--text-3); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
#rli-empty { display: none; padding: 64px 0; text-align: center; color: var(--text-3); font-size: 13px; letter-spacing: 2px; }
#rli-empty.show { display: block; }
#rli-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; padding: 10px 14px;
  border-top: 1px solid var(--color-line);
}
#rli-count { font-size: 12px; color: var(--text-3); }
#rli-pager { display: flex; align-items: center; gap: 4px; }
.rli-pg {
  min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: var(--r-ctl); border: 1px solid transparent; background: transparent;
  color: var(--text-2); font-family: inherit; font-size: 12px; cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.rli-pg:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.06); }
.rli-pg.on { border-color: rgba(111, 163, 208, 0.4); background: var(--accent-soft); color: #EAF4FF; }
.rli-pg[disabled] { opacity: 0.35; cursor: default; }
.rli-goto { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.rli-goto span { font-size: 12px; color: var(--text-3); }
.rli-goto input {
  width: 44px; height: 26px; padding: 0 6px;
  border-radius: var(--r-ctl); border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06); color: var(--text-1);
  font-family: var(--font-mono); font-size: 12px; text-align: center; outline: none;
}
.rli-goto input:focus { border-color: rgba(111, 163, 208, 0.55); }

/* 绿色调混合层：把影像整体压向墨绿暗调，贴近参考风格 */
#map-tint {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: rgba(34, 62, 44, 0.34);
  mix-blend-mode: multiply;
}

#air-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
#route-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
/* 网格流动光场已废弃（用户明确偏好纯色填充），保留 canvas 占位但隐藏 */
#grid-flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; display: none; }
.zone-label {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; will-change: transform;
  transition: opacity 350ms ease;
  opacity: 0.62;   /* 空域名称默认稍弱化（仍明显亮于区县名 .30，保持主次），hover 随色块一起提亮 */
  padding: 3px 9px 3px 8px; border-radius: 999px;
  background: rgba(12, 18, 26, 0.34);
  -webkit-backdrop-filter: blur(2px) saturate(100%); backdrop-filter: blur(2px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.zone-label.hl { opacity: 1; }
.zone-label.hl .zl-name { color: #FFFFFF; }
/* 选中态名称高亮：点击选中对象时保持常亮，与 hover 高亮独立（移出对象不消失，随信息面板一起收） */
.zone-label.sel-hl { opacity: 1; }
.zone-label.sel-hl .zl-name { color: #FFFFFF; text-shadow: 0 0 6px rgba(255,255,255,0.35), 0 0 4px rgba(8,12,18,0.95), 0 1px 3px rgba(8,12,18,0.95); }
.zl-dot { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; background: var(--rel-dot); transition: background 600ms ease; box-shadow: 0 0 5px rgba(0,0,0,0.5); }
.zl-name { font-size: 11.5px; font-weight: 500; color: rgba(222, 234, 244, 0.95); text-shadow: 0 0 4px rgba(8,12,18,0.95), 0 1px 3px rgba(8,12,18,0.95); }
.zl-ceil { font-family: var(--font-mono); font-size: 10px; color: rgba(178, 198, 218, 0.62); text-shadow: 0 0 4px rgba(8,12,18,0.95); }
.zone-label.dim { opacity: 0.22; }
.corr-label {
  position: absolute; transform: translate(-50%, -50%);
  font-size: 11px; letter-spacing: 1.5px; white-space: nowrap;
  color: rgba(178, 204, 230, 0.72);
  text-shadow: 0 0 4px rgba(8,12,18,0.95), 0 1px 3px rgba(8,12,18,0.95);
  will-change: transform;
}
/* 航线网络节点标注（十字准星 + 名称 + 标高） */
.rt-node {
  position: absolute; display: flex; align-items: center; gap: 6px;
  pointer-events: none; white-space: nowrap; will-change: transform;
}
.rt-node svg { width: 15px; height: 15px; color: #5FC9A2; filter: drop-shadow(0 0 3px rgba(12,18,14,0.9)); flex-shrink: 0; }
.rt-node .rt-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; transition: opacity .3s ease; }
.rt-node .rt-name { font-size: 12px; letter-spacing: 1px; color: rgba(206,240,226,0.95); text-shadow: 0 0 5px rgba(8,12,18,0.95), 0 1px 3px rgba(8,12,18,0.95); }
.rt-node .rt-ele { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.5px; color: rgba(235,244,240,0.72); text-shadow: 0 1px 2px rgba(8,12,18,0.95); }
/* 航线/通道名称胶囊（公共航路=宝蓝 · 低空目视通道=绿，统一胶囊样式，配色区分） */
/* 航线/通道名称胶囊（公共航路=宝蓝 · 低空目视通道=琥珀，统一胶囊样式，配色区分）。
   可点击（隐藏时由 JS 置 pointer-events:none）：点击出整条航线/通道信息；
   .sel = 该航线有选中航段或整条被选中，描边辉光取状态色（--sc 由 JS 注入） */
.rt-code-label {
  position: absolute; transform: translate(-50%,-50%); pointer-events: auto; cursor: pointer; white-space: nowrap; will-change: transform;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
  padding: 3px 10px; border-radius: 999px; background: rgba(9, 15, 22, 0.52);
  -webkit-backdrop-filter: blur(2px) saturate(100%); backdrop-filter: blur(2px) saturate(100%);
  border: 1px solid; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: opacity .3s ease, background .18s ease, box-shadow .18s ease; opacity: 0;
}
.rt-code-label:hover { background: rgba(13, 21, 30, 0.72); }
/* 名称胶囊左侧状态色标（3×11，与该航线最严重航段状态同色） */
.rt-code-label .rt-st { width: 3px; height: 11px; border-radius: 1.5px; flex-shrink: 0; box-shadow: 0 0 4px rgba(0, 0, 0, 0.45); }
.rt-code-label.corr { background: rgba(14, 32, 26, 0.52); }   /* 低空目视通道：绿暗底，与公共航路宝蓝暗底区分 */
.rt-code-label.sel { background: rgba(10, 17, 25, 0.85); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--sc, rgba(255, 255, 255, 0.4)), 0 0 12px var(--sc, transparent); }
/* 航线/通道航段信息面板（编号 + 航段属性） */
#rt-tip {
  position: absolute; display: block; pointer-events: none; z-index: 6;
  min-width: 250px; max-width: 320px; padding: 10px 14px 12px; border-radius: 10px; background: rgba(15, 20, 28, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), 0 0 12px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(3px) saturate(100%); backdrop-filter: blur(3px) saturate(100%);
}
#rt-tip .tt-code { font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; letter-spacing: 1.2px; }
#rt-tip .tt-name { font-size: 11px; letter-spacing: 0.5px; color: rgba(214, 228, 240, 0.85); margin-top: 3px; }
#rt-tip .tt-row { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.4px; color: #EAF2F8; margin-top: 3px; }
#rt-tip .seg-rows { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
#rt-tip .seg-row { display: flex; align-items: baseline; gap: 12px; font-size: 11.5px; line-height: 1.85; }
#rt-tip .seg-row .k { flex: 0 0 auto; min-width: 82px; color: var(--text-3); letter-spacing: 1px; }
#rt-tip .seg-row .v { flex: 1; font-family: var(--font-mono); font-weight: 500; color: #E6F0F9; letter-spacing: 0.2px; text-align: right; }
/* 信息面板类别徽标（空域信息 / 地理围栏信息 / 航线信息） */
.at-tag, #rt-tip .at-tag {
  display: inline-block; margin-left: auto; padding: 1.5px 7px; border-radius: 4px;
  font-size: 9.5px; font-weight: 500; letter-spacing: 1.5px; font-style: normal;
  color: var(--text-2); background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14); flex-shrink: 0;
}
/* 地图要素悬停信息面板（空域 / 地理围栏通用） */
#as-tip {
  position: absolute; display: block; pointer-events: none; z-index: 6;
  min-width: 214px; padding: 11px 14px 12px; border-radius: 9px;
  background: rgba(15, 20, 28, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), 0 0 12px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(3px) saturate(100%); backdrop-filter: blur(3px) saturate(100%);
}
#as-tip .at-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 7px; color: #EAF2F8; }
#as-tip .at-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 6px rgba(0,0,0,0.4); }
#as-tip .at-row { display: flex; align-items: baseline; gap: 10px; font-size: 11.5px; line-height: 1.95; }
#as-tip .at-row span { color: var(--text-3); flex-shrink: 0; letter-spacing: 1px; }
#as-tip .at-row b { font-family: var(--font-mono); font-weight: 500; color: #E6F0F9; letter-spacing: 0.2px; white-space: nowrap; }
/* 通导感设施悬停信息面板（名称 / 位置 / 在线离线状态） */
#fac-tip {
  position: absolute; display: block; pointer-events: none; z-index: 6;
  min-width: 214px; padding: 11px 14px 12px; border-radius: 9px;
  background: rgba(15, 20, 28, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), 0 0 12px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(3px) saturate(100%); backdrop-filter: blur(3px) saturate(100%);
}
/* 信息面板显隐过渡：.show 类驱动淡入淡出（面板永驻 block，仅用 opacity/transform 过渡，避免重排顿挫） */
#rt-tip, #as-tip, #fac-tip {
  transition: opacity .17s ease, transform .17s ease;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}
#rt-tip.show, #as-tip.show, #fac-tip.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;   /* 显示态可接收鼠标，悬停面板时不收起 */
}
#fac-tip .at-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 7px; color: #EAF2F8; }
#fac-tip .at-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 6px rgba(0,0,0,0.4); }
#fac-tip .at-row { display: flex; align-items: baseline; gap: 10px; font-size: 11.5px; line-height: 1.95; }
#fac-tip .at-row span { color: var(--text-3); flex-shrink: 0; letter-spacing: 1px; }
#fac-tip .at-row b { font-family: var(--font-mono); font-weight: 500; color: #E6F0F9; letter-spacing: 0.2px; white-space: nowrap; }

/* ============ 右侧组合面板：空域甘特图 × 高度标尺（固定位置 / 固定高度） ============ */
#as-panel {
  position: absolute; right: 16px; top: 136px; bottom: 80px;
  width: 484px; z-index: 10;
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(15, 20, 28, 0.40);
  -webkit-backdrop-filter: blur(3px) saturate(100%); backdrop-filter: blur(3px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}
#as-panel.off { opacity: 0; pointer-events: none; transform: translateX(16px); }
/* 收缩/展开把手：独立元素，紧贴面板左缘外侧，垂直居中于右翼面板（中轴 --as-center） */
.as-toggle {
  position: absolute; right: 500px;
  top: calc(var(--as-center) - var(--as-th) / 2);
  height: var(--as-th); width: var(--as-tw); z-index: 11;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(15, 20, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12); border-right: none;
  border-radius: 8px 0 0 8px;
  color: rgba(205, 224, 240, 0.72);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, right 340ms cubic-bezier(0.32, 0.72, 0, 1), opacity 260ms ease;
}
.as-toggle:hover { color: #EAF3FB; border-color: rgba(150, 200, 245, 0.4); }
.as-toggle svg { width: 13px; height: 13px; }
#as-toggle #ic-expand { display: none; }   /* 默认隐藏展开图标，折叠态由下方规则显示 */
/* 收缩态：面板完全淡出退场，标尺吸附屏缘（让开场景标尺），把手紧贴标尺左侧并与之居中对齐 */
#as-panel.collapsed { opacity: 0; pointer-events: none; transform: translateX(40px); }
#as-panel.collapsed ~ .as-toggle { right: var(--as-edge-tg); }
#as-panel.collapsed ~ #alt-rail { right: var(--as-edge); }
#as-panel.collapsed ~ .as-toggle #ic-collapse { display: none; }
#as-panel.collapsed ~ .as-toggle #ic-expand { display: block; }
/* 清屏 / 看板关闭：把手随面板一起隐藏 */
body.cleared .as-toggle, #as-panel.off ~ .as-toggle { opacity: 0; pointer-events: none; }
.as-head {
  flex-shrink: 0; position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
/* 标题行：面板名 + 图例（右对齐） */
.as-titlebar { display: flex; align-items: center; justify-content: space-between; }
.as-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 4px; margin: 0; background: linear-gradient(180deg, #FFFFFF 0%, #EAF4FF 30%, #B8D6EF 55%, #8FB8DE 78%, #A9C8E6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #FFFFFF; filter: drop-shadow(0 0 9px rgba(130, 185, 230, 0.45)); }
.as-title .bar { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: #6FA3D0; box-shadow: 0 0 8px rgba(111, 163, 208, 0.9); }
/* 工具栏行：分段切换卡居中 + 状态图例靠右 */
.as-toolbar { position: relative; display: flex; align-items: center; justify-content: center; }
.as-search {
  display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: border-color 160ms ease, background 160ms ease;
}
.as-search:focus-within { border-color: rgba(111, 163, 208, 0.55); background: rgba(111, 163, 208, 0.10); }
.as-search svg { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }
.as-search input {
  width: 168px; background: transparent; border: none; outline: none; padding: 0;
  font-family: inherit; font-size: 12px; color: var(--text-1); letter-spacing: 0.3px;
}
.as-search input::placeholder { color: var(--text-3); }
/* 分段切换控件（Apple 滑动指示 + 达索冷调） */
.seg { position: relative; display: flex; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.seg-ind {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 6px; z-index: 1;
  background: linear-gradient(180deg, #B4763C 0%, #96591F 100%);
  border: 1px solid rgba(228, 178, 116, 0.6);
  box-shadow: inset 0 0 10px rgba(217, 154, 78, 0.28);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), width 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.seg-btn {
  position: relative; z-index: 2; height: 26px; padding: 0 16px; border: none; border-radius: 6px;
  background: transparent; color: var(--text-3); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 2px;
  transition: color 200ms ease;
}
.seg-btn:hover { color: var(--text-2); }
.seg-btn.active { color: #FFF4E4; }
.as-legend { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 14px; }
.as-legend .lg { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); letter-spacing: 0.5px; }
.as-legend .sw-dot { width: 12px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.as-legend .sw-dot.rel { background: var(--rel-fill); border: 1px solid var(--rel-line); }
.as-legend .sw-dot.lim { background: var(--lim-fill); border: 1px solid var(--lim-line); }

.as-body { flex: 1; min-height: 0; display: flex; gap: 14px; padding: 12px 14px 14px; }

/* 面板小节标题 */
.sec-h { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; }
.sec-h:first-child { margin-top: 6px; }
.sec-h .bar { width: 3px; height: 13px; background: #6FA3D0; border-radius: 1px; flex-shrink: 0; }
.sec-h h3 { font-size: 13px; font-weight: 600; color: var(--text-1); letter-spacing: 1px; flex: 1; }
.sec-h .unit { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }

/* ============ 空域高度剖面：纵轴高度（顶值随 Tab 自适应） × 横轴时间 0–24h ============ */
.gt-col {
  --gt-yw: 26px;     /* 高度轴宽（刻度贴左，右侧只留短线） */
  --gt-namew: 88px;  /* 空域名称列宽（加宽同时为时间轴控制区胶囊让位，保持轨道与色带左缘对齐） */
  --gt-altw: 46px;   /* 高度区间数字列宽（向左压缩，腾出空间给右侧色带） */
  --lane-h: 16px;    /* 条带厚度（= 行高） */
  --gt-gap: 6px;     /* 行内三列间距 */
  --lane-off: calc(var(--gt-namew) + var(--gt-altw) + var(--gt-gap) * 2); /* 色带左缘相对绘图区 */
  flex: 1; min-width: 0; display: flex; flex-direction: column;
}
.gt-main { flex: 1; min-height: 0; display: flex; }
.gt-main[hidden], .gt-list[hidden] { display: none; }
/* 基础空域列表：垂直滚动，按高度自上而下排列（名称 + 高度 + 色条） */
.gt-list { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.gt-list-rows { display: flex; flex-direction: column; gap: 10px; padding: 4px 6px 4px 0; }
.gt-list-row {
  display: flex; align-items: center; gap: var(--gt-gap);
  height: 22px; flex-shrink: 0;
  transition: opacity 260ms ease;
}
/* 高度轴（左列）：0–3000 刻度，与高度标尺同源的非线性映射 */
.gt-yaxis { position: relative; flex: 0 0 var(--gt-yw); min-width: 0; }
.gt-yaxis .gt-y {
  position: absolute; left: 0; transform: translateY(50%);
  font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.2px;
}
.gt-yaxis .gt-y::after { content: ""; position: absolute; left: 100%; top: 50%; margin-left: 5px; width: 6px; height: 1px; background: rgba(255, 255, 255, 0.12); }
.gt-yaxis .gt-y:first-child { transform: translateY(0); }
/* 剖面绘图区 */
.gt-area { position: relative; flex: 1; min-width: 0; }
.gt-grid { position: absolute; left: var(--lane-off); right: 0; top: 0; bottom: 0; pointer-events: none; }
.gt-vl { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.02); }
.gt-vl.maj { background: rgba(255, 255, 255, 0.05); }
/* 水平高度参考线：与纵轴刻度同位，强化「空域悬浮在高度层」 */
.gt-hl { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, 0.05); }
.gt-time { position: absolute; left: var(--lane-off); right: 0; top: 0; bottom: 0; z-index: 3; pointer-events: none; }
.gt-cursor { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(178, 212, 242, 0.85); box-shadow: 0 0 8px rgba(130, 185, 235, 0.55); z-index: 6; }
.gt-cursor::before {
  content: ""; position: absolute; bottom: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(210, 232, 250, 0.92); box-shadow: 0 0 8px rgba(130, 185, 235, 0.6);
}
.gt-rows { position: absolute; inset: 0; }
.gt-rows[hidden] { display: none; }
/* 试点空域剖面行：名称 + 高度区间（左列）× 状态色带（右区），整行悬浮于自身高度中心 */
.gt-row {
  position: absolute; left: 0; right: 0; height: var(--lane-h);
  display: flex; align-items: center; gap: var(--gt-gap);
  transition: opacity 260ms ease;
}
.gt-row.dim, .gt-list-row.dim { opacity: 0.16; }
/* 搜索：非匹配行淡出、匹配行名称与色带琥珀高亮（优先级高于标尺 dim） */
.gt-row.srch-off, .gt-list-row.srch-off { opacity: 0.10; }
.gt-row.srch-hl, .gt-list-row.srch-hl { opacity: 1; }
.srch-hl .gt-name { color: #F0D6AF; text-shadow: 0 0 8px rgba(217, 154, 78, 0.35); }
.srch-hl .gt-lane { box-shadow: inset 0 0 0 1px rgba(228, 178, 116, 0.55), 0 0 8px rgba(217, 154, 78, 0.22); }
.gt-name {
  flex: 0 0 var(--gt-namew); min-width: 0;
  font-size: 11.5px; line-height: 1; font-weight: 500; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.3px;
}
.gt-alt {
  flex: 0 0 var(--gt-altw); min-width: 0; text-align: right;
  font-family: var(--font-mono); font-size: 9.5px; line-height: 1;
  color: var(--text-3); letter-spacing: 0.2px; white-space: nowrap;
}
.gt-lane {
  position: relative; flex: 1; min-width: 0; height: var(--lane-h); border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.gt-seg {
  position: absolute; top: 0; bottom: 0; height: auto;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 1px 0 0 rgba(12, 16, 22, 0.6);
}
.gt-seg:last-child { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.gt-seg.rel { background: linear-gradient(180deg, rgba(135, 168, 198, 0.58) 0%, rgba(90, 130, 164, 0.48) 100%); }
.gt-seg.lim { background: linear-gradient(180deg, rgba(190, 152, 108, 0.58) 0%, rgba(154, 110, 66, 0.48) 100%); }
/* 色块交互：hover 提亮 + 点击选中 */
.gt-seg { cursor: pointer; transition: filter 150ms ease, box-shadow 150ms ease; }
.gt-seg:hover { filter: brightness(1.22) saturate(1.08); }
.gt-seg.sel {
  filter: brightness(1.28) saturate(1.12);
  box-shadow: inset 0 0 0 1.5px rgba(235, 246, 255, 0.85), 0 0 10px rgba(140, 200, 245, 0.5);
  z-index: 1;
}

/* ============ 色块信息标签（Hover / 点击固定） ============ */
#seg-tip {
  position: fixed; z-index: 60; min-width: 208px; padding: 10px 14px 11px;
  background: rgba(12, 16, 22, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
#seg-tip.rel { border: 1px solid rgba(130, 164, 194, 0.45); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 22px rgba(60, 100, 140, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
#seg-tip.lim { border: 1px solid rgba(190, 152, 108, 0.45); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 22px rgba(140, 95, 55, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
#seg-tip .tip-name { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 7px; }
#seg-tip .tip-name.rel { color: #9DBBDA; }
#seg-tip .tip-name.lim { color: #C8A270; }
#seg-tip .tip-row { display: flex; align-items: baseline; gap: 10px; font-size: 11.5px; line-height: 1.9; }
#seg-tip .tip-row span { color: var(--text-3); flex-shrink: 0; letter-spacing: 1px; }
#seg-tip .tip-row b { font-family: var(--font-mono); font-weight: 500; color: #E6F0F9; letter-spacing: 0.2px; }
#seg-tip .tip-row b.rel { color: #A6C0D8; }
#seg-tip .tip-row b.lim { color: #C8A878; }

/* ============ 试点空域概况（总量环 + 场景清单） ============ */
.donut-row { display: flex; align-items: center; gap: 18px; }
.donut { flex-shrink: 0; display: block; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.sc-row { display: flex; align-items: center; gap: 8px; }
.sc-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.sc-name { flex: 1; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.sc-val { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-1); white-space: nowrap; }

/* ============ 地理围栏统计 ============ */
.legend-chips { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 8px; }
.lc { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); }
.lc i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.chart-svg { display: block; width: 100%; }

/* 基础空域·围栏汇总条 */
.bf-row { display: flex; align-items: center; gap: 10px; height: 28px; }
.bf-name { width: 48px; font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.bf-track { flex: 1; height: 8px; border-radius: 2px; background: rgba(255,255,255,0.06); position: relative; }
.bf-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; }
.bf-val { width: 30px; font-family: var(--font-mono); font-size: 12px; color: var(--text-1); text-align: right; flex-shrink: 0; }

/* ============ 空域高度筛选标尺（独立元素 · 与右翼面板垂直居中对齐 · 面板隐藏时吸附屏幕右缘） ============ */
#alt-rail {
  position: absolute; right: 514px;
  bottom: calc(100vh - var(--as-center) - var(--alt-h) / 2);
  height: var(--alt-h); width: var(--alt-w);
  z-index: 10; display: flex; flex-direction: column;
  padding: 8px 0 10px;
  background: rgba(15, 20, 28, 0.30);
  -webkit-backdrop-filter: blur(2px) saturate(100%); backdrop-filter: blur(2px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  user-select: none;
  transition: right 340ms cubic-bezier(0.32, 0.72, 0, 1), opacity 260ms ease, transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}
/* 面板隐藏（数据看板 / 清屏）→ 标尺不隐藏，吸附至屏幕右缘 */
body.cleared #alt-rail, #as-panel.off ~ #alt-rail { right: 16px; }
body.cleared #as-panel, #as-panel.off { opacity: 0; pointer-events: none; transform: translateX(16px); }
/* 顶栏仅作拖拽手柄（无文字）：细 grip 条暗示可拖动；标尺默认与面板垂直居中对齐，可上下拖移 */
.alt-head {
  flex-shrink: 0; height: 16px; margin: 3px 0 6px; display: flex; align-items: center; justify-content: center;
  cursor: grab; touch-action: none;
}
.alt-head::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.22); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: background 180ms ease;
}
.alt-head:hover::before { background: rgba(255, 255, 255, 0.34); }
.alt-head.dragging { cursor: grabbing; }
.alt-head.dragging::before { background: rgba(143, 192, 232, 0.55); }
.alt-stage { position: relative; flex: 1; min-height: 0; touch-action: none; }
/* 紧凑双栏：左=固定刻度 + 随手柄联动的动态值（同侧，值对准刻度时自然重叠），中=滑块 */
.alt-tk-lab {
  position: absolute; right: 27px; transform: translateY(50%);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: rgba(206, 222, 236, 0.66); letter-spacing: 0.3px; text-align: right;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
  transition: opacity 160ms ease;
}
.alt-tk-lab.hide { opacity: 0; }
.alt-tk { position: absolute; right: 20px; width: 5px; height: 1px; background: rgba(255, 255, 255, 0.22); transition: opacity 160ms ease; }
.alt-tk.hide { opacity: 0; }
.alt-track {
  position: absolute; left: auto; right: 14px; top: 0; bottom: 0; width: 6px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.03) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), 0 0 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.alt-val {
  position: absolute; right: 27px; left: auto; transform: translateY(50%);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.3px; line-height: 1; white-space: nowrap; pointer-events: none;
  padding: 2.5px 5px; border-radius: 8px;
  background: rgba(13, 21, 31, 0.78); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.alt-val-hi { color: #9FD0F2; }
.alt-val-lo { color: #C2D2E2; }
.alt-band {
  position: absolute; left: 0; right: 0; border-radius: 4px; cursor: grab;
  background: linear-gradient(180deg, rgba(125, 175, 220, 0.62) 0%, rgba(64, 116, 168, 0.50) 100%);
  box-shadow: 0 0 14px rgba(96, 160, 220, 0.35), inset 0 0 0 1px rgba(196, 224, 248, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.alt-band.drag { cursor: grabbing; }
.alt-grip {
  position: absolute; left: 50%; width: 18px; height: 9px; margin-left: -9px; border-radius: 4px; cursor: ns-resize;
  background: linear-gradient(180deg, #F2F8FD 0%, #C9DCEF 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(150, 200, 245, 0.40);
  transition: background 180ms ease, box-shadow 180ms ease;
}
.alt-grip::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 2px; margin: -1px 0 0 -5.5px; border-radius: 1px;
  background: rgba(20, 32, 46, 0.6);
  box-shadow: 0 -3px 0 rgba(20, 32, 46, 0.35), 0 3px 0 rgba(20, 32, 46, 0.35);
}
.alt-grip.top { top: -4px; }
.alt-grip.bot { bottom: -4px; }
.alt-grip:hover, .alt-grip.drag {
  background: linear-gradient(180deg, #FFFFFF 0%, #DCEAF7 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 0 14px rgba(160, 205, 245, 0.6);
}

/* ============ 左侧数据看板（基础/试点两套维度 · 窄长竖排 · 与右翼面板等高） ============ */
#ds-panel, #ps-panel {
  position: absolute; left: 16px; top: 136px; bottom: 80px;
  z-index: 10;
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(15, 20, 28, 0.40);
  -webkit-backdrop-filter: blur(3px) saturate(100%); backdrop-filter: blur(3px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}
#ds-panel { width: 224px; }
/* 试点统计维度与基础不同，左翼加宽以承载图表（区别于基础空域看板） */
#ps-panel { width: 300px; }
/* 顶部高光细线：点亮面板上缘 */
#ds-panel::before, #ps-panel::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(150, 200, 245, 0.38) 50%, transparent 100%);
}
/* 入场扫描光带：一道冷光自左向右掠过面板，落定后隐去 */
#ds-panel::after, #ps-panel::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 58%;
  background: linear-gradient(105deg, transparent 0%, rgba(150, 200, 245, 0.05) 42%, rgba(180, 220, 250, 0.13) 50%, rgba(150, 200, 245, 0.05) 58%, transparent 100%);
  transform: translateX(-130%);
  animation: ds-scan 2.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  pointer-events: none;
}
@keyframes ds-scan { to { transform: translateX(240%); } }
/* Tab 维度切换 / 清屏时整体淡出退场（基础看板 ↔ 试点看板互斥切换） */
#ds-panel.off, #ps-panel.off, body.cleared #ds-panel, body.cleared #ps-panel { opacity: 0; pointer-events: none; transform: translateX(-16px); }
.ds-head {
  height: 46px; flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 100%);
}
.ds-head .ds-ico { width: 6px; height: 6px; border-radius: 50%; background: #6FA3D0; box-shadow: 0 0 8px rgba(111, 163, 208, 0.9); flex-shrink: 0; }
/* 标题：品牌同款蓝白渐变字 + 微光晕 */
.ds-head .ds-title {
  font-size: 13px; font-weight: 700; letter-spacing: 4px; padding-left: 4px;
  background: linear-gradient(180deg, #FFFFFF 0%, #EAF4FF 30%, #B8D6EF 55%, #8FB8DE 78%, #A9C8E6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #FFFFFF;
  filter: drop-shadow(0 0 9px rgba(130, 185, 230, 0.45));
}
.ds-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px; gap: 6px; }
/* Hero 汇总：总空域面积大数字 + 底部发光基线（无副标） */
.ds-hero {
  position: relative; flex-shrink: 0; height: 84px; border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
  background:
    radial-gradient(120% 150% at 50% 0%, rgba(111, 163, 208, 0.16) 0%, rgba(15, 20, 28, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.2);
}
.ds-hero-cap { font-size: 11px; color: var(--text-3); letter-spacing: 3px; }
.ds-hero-num { display: flex; align-items: baseline; gap: 5px; }
.ds-hero-val {
  font-family: var(--font-mono); font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: 0.5px;
  background: linear-gradient(180deg, #EAF5FF 0%, #A9C9E8 45%, #6FA3D0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #D8EAFA;
  filter: drop-shadow(0 0 14px rgba(111, 163, 208, 0.5));
}
.ds-hero-line {
  width: 54px; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, transparent 0%, #6FA3D0 50%, transparent 100%);
  box-shadow: 0 0 8px rgba(111, 163, 208, 0.7);
}
/* Hero 式状态卡：名称行 / 居中大数字 / 次要数据 / 发光基线，与总览 Hero 同构 */
.ds-card {
  position: relative; flex: 1; min-height: 0;
  padding: 8px 12px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.012) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 3px 0 0 0 var(--st), inset 0 0 18px rgba(0, 0, 0, 0.16);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 180ms ease;
}
.ds-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 3px 0 0 0 var(--st-hi), inset 0 0 22px rgba(0, 0, 0, 0.22), 0 0 16px -4px var(--st-glow);
}
/* 名称行：切角 LED + 状态名（居中） */
.ds-main { display: flex; align-items: center; gap: 7px; }
/* 状态标识：雷达环 + 中心亮点（空域监控语义；清晰细环，非糊状光斑） */
.ds-led {
  width: 12px; height: 12px; flex-shrink: 0; position: relative;
  border-radius: 50%;
  border: 1.5px solid var(--st);
  box-shadow: 0 0 7px var(--st-glow);
}
.ds-led::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--st-hi);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px var(--st-hi);
}
.ds-led.hollow {
  border-style: dashed;
  background: transparent;
}
.ds-led.hollow::after {
  background: transparent; box-shadow: none;
  border: 1px dashed rgba(192, 86, 90, 0.9);
}
.ds-lab { font-size: 11px; color: var(--text-2); letter-spacing: 1px; white-space: nowrap; }
/* 主数据：状态色渐变大字 + 光晕（居中） */
.ds-num { display: flex; align-items: baseline; gap: 4px; }
.ds-val {
  font-family: var(--font-mono); font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: 0.2px;
  background: linear-gradient(180deg, var(--st-hi) 0%, var(--st) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--st-hi);
  filter: drop-shadow(0 0 10px var(--st-glow));
}
/* 次要数据：范围，小号右跟 */
.ds-num2 { display: flex; align-items: baseline; gap: 3px; }
.ds-val2 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--st-hi); opacity: 0.85;
}
.ds-unit { font-size: 10px; color: var(--text-3); }
/* 发光基线：居中短横线，与 Hero 同构收底 */
.ds-line {
  width: 44px; height: 2px; border-radius: 1px; flex-shrink: 0;
  background: linear-gradient(90deg, transparent 0%, var(--st-hi) 50%, transparent 100%);
  box-shadow: 0 0 8px var(--st-glow);
  transform-origin: center;
  animation: ds-line-in 800ms cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
@keyframes ds-line-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* 分组标签：居中小字 + 两侧渐变 hairline，切分「状态分布」与「专项统计」两组 */
.ds-sep {
  flex-shrink: 0; height: 13px;
  display: flex; align-items: center; gap: 9px;
}
.ds-sep::before { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.02) 100%); }
.ds-sep::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.18) 100%); }
.ds-sep span { font-size: 10.5px; color: var(--text-3); letter-spacing: 2px; white-space: nowrap; }
/* 状态 / 要素配色（与地图语义色一致） */
.st-c { --st: #B0784E; --st-hi: #D9A874; --st-glow: rgba(217, 168, 116, 0.35); }
.st-s { --st: #AC9B4E; --st-hi: #D6C77E; --st-glow: rgba(214, 199, 126, 0.35); }
.st-r { --st: #5C9070; --st-hi: #8EC69E; --st-glow: rgba(142, 198, 158, 0.35); }
.st-pilot { --st: #6FA3D0; --st-hi: #A9C9E8; --st-glow: rgba(169, 201, 232, 0.35); }
.st-fence { --st: #C0565A; --st-hi: #DD8E90; --st-glow: rgba(221, 142, 144, 0.35); }
.st-temp { --st: rgba(192, 86, 90, 0.55); --st-hi: #DD8E90; --st-glow: rgba(221, 142, 144, 0.28); }

/* ============ 试点空域统计看板（试点 Tab 维度：总面积构成 / 地理围栏统计 / 近7日利用率） ============ */
.ps-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px; }
/* 统计卡：三卡等高占满面板高度，内容纵向铺满（占满而非拉伸变形） */
.ps-card {
  flex: 1; min-height: 0; padding: 10px 12px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.012) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.16);
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
/* 小节标题行：蓝色竖条 + 标题 + 右侧单位/区间 */
.ps-sec-h { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.ps-sec-h .bar { width: 3px; height: 11px; border-radius: 2px; background: #6FA3D0; box-shadow: 0 0 6px rgba(111, 163, 208, 0.8); flex-shrink: 0; }
.ps-sec-h .t { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--text-2); white-space: nowrap; }
.ps-sec-h .u { font-size: 9.5px; color: var(--text-3); flex-shrink: 0; }
/* ① 总面积：放大环形图居中（去图例），扇区 hover 高亮 + 悬浮提示（区名 / 面积 / 占比） */
.ps-total { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.ps-donut { width: 172px; height: 172px; flex-shrink: 0; position: relative; --st: #6FA3D0; --st-hi: #A9C9E8; --st-glow: rgba(169, 201, 232, 0.35); }
.ps-donut svg { display: block; width: 100%; height: 100%; }
/* 环心合计：与基础空域看板 .ds-val 同款渐变发光大字 */
.ps-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ps-donut .seg { cursor: pointer; transition: stroke-width 140ms ease, opacity 140ms ease; }
.ps-donut .seg.dim { opacity: 0.26; }
.ps-donut .seg.on { stroke-width: 17; }
/* ②③ 地理围栏统计（纵向柱状） / 近7日利用率（多空域折线）共用图表容器 */
.ps-chart { flex: 1; min-height: 0; position: relative; }
.ps-chart svg { display: block; width: 100%; height: 100%; }
.ps-bar { cursor: pointer; transition: filter 140ms ease; }
.ps-bar:hover { filter: brightness(1.28); }
.ps-line { cursor: pointer; }
/* 悬浮提示：深色玻璃浮层（区名 + 面积/占比 或 利用率/日期） */
.ps-tip {
  position: absolute; z-index: 6; pointer-events: none;
  min-width: 112px; padding: 7px 10px; border-radius: 8px;
  background: rgba(16, 22, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ps-tip .tt { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #EAF5FF; letter-spacing: .3px; white-space: nowrap; margin-bottom: 4px; }
.ps-tip .tt i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.ps-tip .tr { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--text-3); white-space: nowrap; line-height: 1.7; }
.ps-tip .tr b { font-family: var(--font-mono); font-weight: 600; color: var(--text-1); }
/* 时间区间胶囊：近7日（与顶栏胶囊同构的静态区间标识） */
.ps-range {
  flex-shrink: 0; display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--text-2); white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 2.5px 9px;
  background: rgba(255, 255, 255, 0.04);
}
.ps-range svg { width: 9px; height: 9px; }
@media (prefers-reduced-motion: reduce) {
  #ds-panel::after { animation: none; }
  .ds-line { animation: none; }
}

/* ============ 时间轴（24H，合并在右翼底部，轨道对齐色带时间切片） ============ */
.gt-timeline {
  height: 52px; flex-shrink: 0;
  display: flex; align-items: center;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
/* 左侧控制区：播放 + 当前时间 + 倍率，宽度对齐色带左缘；控件整体右靠，紧贴轨道 */
.gt-tl-ctl {
  flex: 0 0 auto; width: calc(var(--gt-yw) + var(--gt-namew) + var(--gt-altw) + var(--gt-gap) * 2);
  display: flex; align-items: center; justify-content: flex-start; min-width: 0;
}
/* 胶囊控制组：倍率 + 播放/暂停 + 停止 + 时间（与顶栏时钟同构的胶囊包裹） */
.tl-pill {
  display: flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 8px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
}
/* 播放/停止按钮：与顶栏操作按钮同款质感（中性底 + 琥珀暖色 hover/激活），呼应“琥珀=动作/控制”定调 */
#tl-play, #tl-stop {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.09);
  color: #C9D4DE; display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
#tl-play:hover:not(:disabled), #tl-stop:hover {
  border-color: rgba(228, 178, 116, 0.55); background: rgba(217, 154, 78, 0.14);
  color: #F0D6AF; box-shadow: 0 0 10px rgba(217, 154, 78, 0.22);
}
#tl-play:disabled { opacity: 0.35; cursor: not-allowed; }
#tl-play.on {   /* 播放中：琥珀实心高亮（与顶栏二维/三维激活态同语言） */
  background: linear-gradient(180deg, #B4763C 0%, #96591F 100%);
  border-color: rgba(228, 178, 116, 0.6); color: #FFF4E4;
  box-shadow: 0 0 10px rgba(217, 154, 78, 0.28);
}
#tl-play svg { width: 13px; height: 13px; }
#tl-stop svg { width: 11px; height: 11px; }
#tl-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-1); flex-shrink: 0; letter-spacing: 0.3px; }
#tl-track { flex: 1; min-width: 0; height: 30px; position: relative; cursor: pointer; touch-action: none; }
#tl-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px;
  border-radius: 2px; background: rgba(255,255,255,0.10);
}
#tl-fill { position: absolute; left: 0; top: 10px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #2E5E8C, #5C97CB); }
#tl-handle {
  position: absolute; top: 3px; width: 2px; height: 24px;
  background: #EAF3FB; border-radius: 1px; transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(150,200,240,0.7);
}
#tl-ticks { position: absolute; left: 0; right: 0; top: 16px; height: 14px; pointer-events: none; }
#tl-ticks span {
  position: absolute; top: 0; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; color: var(--text-3);
}
#tl-ticks span:first-child { transform: none; }
#tl-ticks span:last-child { transform: translateX(-100%); }
#tl-speed {
  height: 22px; padding: 0 6px; flex-shrink: 0;
  border-radius: var(--r-ctl); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); color: var(--text-1);
  font-family: var(--font-mono); font-size: 11px; cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
#tl-speed:hover { background: rgba(217, 154, 78, 0.14); border-color: rgba(228, 178, 116, 0.5); }
#tl-speed:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============ 地图图例（释放/限制/目视通道/航线） ============ */

/* 清屏态：面板隐藏，高度标尺保留并吸附屏幕右缘 */
#as-panel { transition: opacity 260ms ease, transform 300ms cubic-bezier(0.32, 0.72, 0, 1); }
body.cleared #as-panel { opacity: 0; pointer-events: none; transform: translateX(16px); }

/* ============ 2K 适配（仅场景资产相关） ============ */
@media (min-width: 2048px) {
  :root {
    --as-center: calc(50vh + 26px);   /* 2K 面板 top140/bottom88 → 中轴 */
    --as-th: 72px;
    --as-tw: 18px;
    --alt-h: 430px;
    --alt-w: 84px;
    --alt-gap: 12px;
    --as-hug: 8px;
  }
  #as-panel { width: 560px; right: 20px; top: 140px; bottom: 88px; border-radius: 14px; }  .as-head { padding: 14px 16px 12px; gap: 12px; }  .as-title { font-size: 14px; }  .as-search { height: 32px; }  .as-search input { width: 180px; font-size: 13px; }
  .seg-btn { height: 32px; font-size: 14px; padding: 0 20px; }
  .as-legend .lg { font-size: 12px; }
  .as-body { padding: 14px 16px 16px; gap: 16px; }
  #alt-rail { right: 592px; border-radius: 14px; }   /* 高度/宽度/居中由 --alt-* 与 --as-center 统一给出 */
  .alt-track { right: 16px; }
  .alt-tk { right: 22px; }
  body.cleared #alt-rail, #as-panel.off ~ #alt-rail { right: 20px; }
  .alt-head { height: 24px; }
  .alt-val { font-size: 11.5px; padding: 3px 5px; border-radius: 9px; right: 30px; }
  .alt-tk-lab { font-size: 12px; right: 30px; }
  .gt-col { --gt-yw: 32px; --lane-h: 18px; --gt-namew: 72px; --gt-altw: 60px; }
  .gt-list-row { height: 26px; }
  .gt-list-rows { gap: 12px; padding: 4px 8px 4px 0; }
  .gt-yaxis .gt-y { font-size: 11px; }
  .gt-name { font-size: 12.5px; }
  .gt-alt { font-size: 10.5px; }
  .gt-timeline { height: 60px; }
  #tl-time { font-size: 12.5px; }
  #tl-ticks span { font-size: 11px; }
  .as-toggle { right: 580px; }   /* 尺寸与垂直居中由 --as-th/--as-tw/--as-center 统一给出 */
  #as-panel.collapsed ~ .as-toggle { right: var(--as-edge-tg); }
  #as-panel.collapsed ~ #alt-rail { right: var(--as-edge); }
  #ds-panel { left: 20px; top: 140px; bottom: 88px; width: 256px; border-radius: 14px; }
  #ps-panel { left: 20px; top: 140px; bottom: 88px; width: 340px; border-radius: 14px; }
  .ds-head { height: 54px; }
  .ds-head .ds-title { font-size: 14px; }
  .ds-body { padding: 14px; gap: 10px; }
  .ds-hero { height: 116px; border-radius: 12px; }
  .ds-hero-cap { font-size: 12px; }
  .ds-hero-val { font-size: 40px; }
  .ds-hero-line { width: 62px; }
  .ds-card { padding: 12px 14px; border-radius: 12px; }
  .ds-led { width: 14px; height: 14px; }
  .ds-led::after { width: 5px; height: 5px; }
  .ds-lab { font-size: 13px; }
  .ds-val { font-size: 32px; }
  .ds-val2 { font-size: 15px; }
  .ds-unit { font-size: 11px; }
  .ds-line { width: 52px; }
  .ds-sep { height: 18px; }
  .ds-sep span { font-size: 11.5px; }
  /* 试点空域统计看板 2K 适配 */
  .ps-body { padding: 14px; gap: 14px; }
  .ps-card { padding: 14px 16px; border-radius: 12px; gap: 12px; }
  .ps-sec-h { gap: 8px; }
  .ps-sec-h .bar { height: 13px; }
  .ps-sec-h .t { font-size: 14px; }
  .ps-sec-h .u { font-size: 11px; }
  .ps-donut { width: 240px; height: 240px; }
  .ps-range { font-size: 12px; padding: 3px 11px; }
}


/* ============ 场景门控（集成层新增） ============ */
/* 场景未激活：面板/标注/流光画布/信息标签整体退场 */
body:not(.as-active) #as-panel,
body:not(.as-active) .as-toggle,
body:not(.as-active) #alt-rail,
body:not(.as-active) #ds-panel,
body:not(.as-active) #ps-panel { opacity: 0 !important; pointer-events: none !important; }
/* 空域场景暗色绿蒙层：仅场景激活时显示（综合态势叠加态不套用，避免整图染绿） */
body:not(.as-active) #map-tint { display: none !important; }
/* 标注 / 流光画布 / 信息面板：场景激活或综合态势叠加态下可用 */
body:not(.as-active):not(.idx-overlay) #air-labels,
body:not(.as-active):not(.idx-overlay) #route-canvas,
body:not(.as-active):not(.idx-overlay) #as-tip,
body:not(.as-active):not(.idx-overlay) #rt-tip,
body:not(.as-active):not(.idx-overlay) #fac-tip,
body:not(.as-active):not(.idx-overlay) #seg-tip { display: none !important; }
/* 底图调色滤镜：空域场景激活、或综合态势下实际显示了叠加层（body.idx-live）时施加。
   两处使用同一档去艳滤镜（brightness 0.82 / saturate 0.6 / contrast 1.08 / hue-rotate -4deg），
   保证同一套空域/围栏/航线/设施图层两处观感一致。
   注意：不可再叠加 #map-tint 的压暗折算（brightness 0.72）——综合态势下 #map-tint 是关闭的，
   多乘一次会把本已偏暗的综合态势底图压到近乎发黑 */
body.as-active #globe canvas { filter: brightness(0.82) saturate(0.6) contrast(1.08) hue-rotate(-4deg); transition: filter 480ms ease; }
body.idx-live #globe canvas { filter: brightness(0.82) saturate(0.6) contrast(1.08) hue-rotate(-4deg); transition: filter 480ms ease; }
body:not(.as-active):not(.idx-live) #globe canvas { transition: filter 480ms ease; }

/* —— 进场编排第四步：面板滑入 ——
   图层淡入过半即起（body.as-entering/as-entering2 期间暂缓），
   解除后按各自 transition 平滑滑入：右翼先行、左翼看板紧随，形成层次 */
body.as-active.as-entering #as-panel,
body.as-active.as-entering .as-toggle,
body.as-active.as-entering #alt-rail { opacity: 0 !important; pointer-events: none !important; transform: translateX(22px); }
body.as-active.as-entering2 #ds-panel,
body.as-active.as-entering2 #ps-panel { opacity: 0 !important; pointer-events: none !important; transform: translateX(-18px); }

/* —— 进场编排：柔光揭幕（丝滑转场，无具象元素）——
   场景切换瞬间一层柔和深蓝光幕轻覆（.on），遮住底图/图层硬切；
   镜头到位后揭幕（.open）：清晰区（mask 中心透明区，半径 --veil-r）
   自画面中心向外匀滑扩张，光幕随之淡去，新场景丝滑显现。
   .fast 为切出场景的快档轻覆。--veil-r 经 @property 注册方可过渡 */
@property --veil-r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
#as-veil {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  --veil-r: 0%;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, transparent var(--veil-r), rgba(0, 0, 0, 1) calc(var(--veil-r) + 30%));
          mask-image: radial-gradient(circle at 50% 46%, transparent var(--veil-r), rgba(0, 0, 0, 1) calc(var(--veil-r) + 30%));
  background: radial-gradient(120% 95% at 50% 44%, rgba(32, 47, 70, 0.58) 0%, rgba(10, 16, 26, 0.94) 76%);
  backdrop-filter: blur(9px) saturate(85%);
  opacity: 0;
  transition: opacity 340ms cubic-bezier(0.33, 0, 0.2, 1);
}
#as-veil.on { opacity: 1; }
#as-veil.fast.on { transition: opacity 200ms cubic-bezier(0.33, 0, 0.2, 1); }
#as-veil.on.open {
  --veil-r: 150%;
  opacity: 0;
  transition:
    --veil-r 920ms cubic-bezier(0.30, 0.55, 0.25, 1),
    opacity 400ms cubic-bezier(0.4, 0, 0.6, 1) 500ms;
}

/* ============ 右缘让位（集成层新增） ============ */
/* 原页 #as-panel right:16/20px 会压住场景标尺与九天助手，
   统一右移至 --as-right（标尺占位 + 呼吸间隙），把手/标尺随动 */
:root { --as-right: calc(var(--sr-right) + var(--sr-w-collapsed) + 22px); }
@media (min-width: 2048px) { :root { --as-right: calc(var(--sr-right) + var(--sr-w-collapsed) + 26px); } }
#as-panel { right: var(--as-right); }
.as-toggle { right: calc(var(--as-right) + var(--as-w, 484px)); }
/* 标尺与面板垂直居中对齐（--as-center），水平向 = 面板左缘 + 把手宽 + 呼吸间隙，
   保证把手（已收窄至 --as-tw）与标尺互不重叠 */
#alt-rail { right: calc(var(--as-right) + var(--as-w, 484px) + var(--as-tw) + var(--alt-gap)); }
/* 面板收起：标尺吸附屏缘让开场景标尺，把手改贴标尺左侧（不落在标尺与层级指示器之间） */
#as-panel.collapsed ~ .as-toggle { right: var(--as-edge-tg); }
#as-panel.collapsed ~ #alt-rail { right: var(--as-edge); }
body.cleared #alt-rail, #as-panel.off ~ #alt-rail { right: var(--as-edge); }
/* 空域网格（三维视图）：右翼面板仅透明隐藏（无 collapsed/off 类），
   标尺直接吸附屏缘 —— 与空域规划下面板收起后的标尺完全同位（var(--as-edge)，1K/2K 自适应） */
body.as-grid-scene #alt-rail { right: var(--as-edge) !important; }
@media (min-width: 2048px) {
  :root { --as-w: 560px; }
  .as-toggle { right: calc(var(--as-right) + var(--as-w)); }
  #alt-rail { right: calc(var(--as-right) + var(--as-w) + var(--as-tw) + var(--alt-gap)); }
}

/* ============ 网格基本信息面板（右侧弹出） ============
   点击三维网格体素触发，与琥珀选中高亮同步；字段参照需求截图，
   样式完全套用平台毛玻璃 + 琥珀点缀设计语言（不照搬截图原样式） */
#grid-info {
  position: absolute; right: var(--as-right); top: 136px; z-index: 12;
  width: 484px; max-height: calc(100vh - 216px); overflow-y: auto;
  padding: 16px 18px 18px;
  border-radius: 12px;
  background: rgba(15, 20, 28, 0.40);
  -webkit-backdrop-filter: blur(3px) saturate(100%); backdrop-filter: blur(3px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0; transform: translateX(16px); pointer-events: none;
  transition: opacity .22s ease, transform .28s cubic-bezier(0.32, 0.72, 0, 1);
}
#grid-info.show { opacity: 1; transform: translateX(0); pointer-events: auto; }
#grid-info::-webkit-scrollbar { width: 4px; }
#grid-info::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 2px; }

#grid-info .gi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
#grid-info .gi-title { flex: 1; display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-1); letter-spacing: 1px; }
#grid-info .gi-title .bar { width: 3px; height: 13px; background: var(--accent-warm); border-radius: 1px; flex-shrink: 0; }
#grid-info .gi-close {
  width: 26px; height: 26px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 7px;
  background: rgba(255,255,255,0.04); color: var(--text-3); cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
#grid-info .gi-close svg { width: 12px; height: 12px; }
#grid-info .gi-close:hover { color: var(--text-1); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); }

#grid-info .gi-hero { display: flex; align-items: center; gap: 14px; padding: 10px 12px;
  margin-bottom: 12px; border-radius: 10px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08); }
#grid-info .gi-cube { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; }
#grid-info .gi-cube svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(123,196,160,0.35)); }
#grid-info .gi-hero-txt { flex: 1; min-width: 0; }
#grid-info .gi-dist { font-size: 14px; font-weight: 600; color: var(--text-1); letter-spacing: 1px; margin-bottom: 7px; }
#grid-info .gi-pos { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 0.3px; }
#grid-info .gi-tag { display: inline-block; padding: 2.5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  background: rgba(255,255,255,0.05); border: 1px solid currentColor; }

#grid-info .gi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
#grid-info .gi-cell {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 8px;
  border-radius: 9px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08);
}
#grid-info .gi-cell:nth-child(5) { grid-column: 1 / -1; }
#grid-info .gi-ico { width: 18px; height: 18px; color: #6FA3D0; display: grid; place-items: center; }
#grid-info .gi-ico svg { width: 100%; height: 100%; }
#grid-info .gi-cell span { font-size: 11px; color: var(--text-3); letter-spacing: 1px; }
#grid-info .gi-cell b { font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--text-1); letter-spacing: 0.3px; }

#grid-info .gi-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.09); }
#grid-info .gi-tab {
  position: relative; padding: 7px 12px; border: none; background: transparent;
  color: var(--text-3); font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 1px; cursor: pointer;
  transition: color .18s ease;
}
#grid-info .gi-tab:hover { color: var(--text-2); }
#grid-info .gi-tab.active { color: var(--accent-warm); }
#grid-info .gi-tab.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--accent-warm); border-radius: 1px;
}

#grid-info .gi-pane { min-height: 64px; }
#grid-info .gi-wx-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
#grid-info .gi-wx {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 7px 10px;
  border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
#grid-info .gi-wx i { width: 15px; height: 15px; color: #6FA3D0; display: grid; place-items: center; flex-shrink: 0; }
#grid-info .gi-wx i svg { width: 100%; height: 100%; }
#grid-info .gi-wx span { font-size: 10.5px; color: var(--text-3); letter-spacing: 1px; white-space: nowrap; }
#grid-info .gi-wx b { font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--text-1); white-space: nowrap; margin-left: auto; }
#grid-info .gi-empty { padding: 24px 0; text-align: center; color: var(--text-3); font-size: 12px; letter-spacing: 2px; }

@media (min-width: 2048px) {
  #grid-info { width: 560px; }
  #grid-info .gi-title { font-size: 14px; }
}
