/* =====================================================================
   训练监控管理系统 · 深色科技风设计系统
   依据《竞技体育科学训练系统 Style Reference》：蓝色荧光描边为核心视觉语言
   字体策略：Display=Orbitron / Body=Inter / 数据=JetBrains Mono（本地回退栈）
   ===================================================================== */
:root {
  /* ---- Colors ---- */
  --color-bg-base: #000000;  /* 纯黑背景（应用户要求覆盖原 #0B1120） */
  --color-surface-elevated: #131C31;
  --color-border-default: #1E293B;
  --color-accent-primary: #00F0FF;
  --color-accent-secondary: #3B82F6;
  --color-text-primary: #F1F5F9;
  --color-text-secondary: #94A3B8;
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  /* 四级语义状态（NSCA V-17：绿=正常 黄=观察 橙=干预 红=停训） */
  --lv0: #4ADE80;  --lv0-bg: rgba(34, 197, 94, .14);
  --lv1: #FBBF24;  --lv1-bg: rgba(245, 158, 11, .14);
  --lv2: #FB923C;  --lv2-bg: rgba(249, 115, 22, .14);
  --lv3: #F87171;  --lv3-bg: rgba(239, 68, 68, .15);
  --lvN: #64748B;  --lvN-bg: rgba(100, 116, 139, .16);

  /* ---- Typography ---- */
  --font-display: 'Orbitron', 'DIN Alternate', 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, 'Courier New', monospace;

  /* ---- Spacing / Radius ---- */
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 9999px;

  /* ---- Glow（荧光描边核心） ---- */
  --glow-primary: 0 0 8px rgba(0, 240, 255, .4), 0 0 20px rgba(0, 240, 255, .15);
  --glow-subtle: 0 0 4px rgba(0, 240, 255, .2);
  --border-glow: 1px solid rgba(0, 240, 255, .3);
  --border-glow-active: 1px solid rgba(0, 240, 255, .7);

  /* ---- Legacy 别名（页面内联样式与旧类兼容） ---- */
  --bg: var(--color-bg-base);
  --surface: var(--color-surface-elevated);
  --line: var(--color-border-default);
  --text: var(--color-text-primary);
  --text-dim: var(--color-text-secondary);
  --primary: var(--color-accent-primary);
  --primary-soft: rgba(0, 240, 255, .12);
  --severe: var(--lv3);
  --ok: var(--color-success);
  --nav-w: 232px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--color-bg-base);
  /* 低透明度网格底纹（Imagery：强化空间纵深感，5% 以下） */
  background-image:
    linear-gradient(rgba(0, 240, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, .028) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--color-text-primary); font-size: 14px; line-height: 1.55;
}
::selection { background: rgba(0, 240, 255, .3); }
a { color: var(--color-accent-primary); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #26344d; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

#app { display: flex; min-height: 100vh; }

/* ============ 导航（Web：左侧垂直导航 + 荧光指示条） ============ */
#nav {
  width: var(--nav-w); flex: none; background: var(--color-bg-base);
  border-right: 1px solid var(--color-border-default);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px 14px; }
.brand-logo {
  font-size: 0; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); border: var(--border-glow);
  background: radial-gradient(120% 120% at 30% 20%, rgba(0, 240, 255, .14), rgba(19, 28, 49, .6) 65%);
  backdrop-filter: blur(8px);
  box-shadow: var(--glow-subtle);
  color: var(--color-accent-primary);
}
.brand-title { font-weight: 700; color: var(--color-text-primary); font-size: 14.5px; letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: var(--color-text-secondary); margin-top: 2px; }
#nav-links { flex: 1; padding: 8px; overflow-y: auto; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 2px 0;
  border-radius: var(--radius-sm); color: var(--color-text-secondary); text-decoration: none;
  font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: color .15s, border-color .15s;
}
.nav-item:hover { background: rgba(59, 130, 246, .08); color: var(--color-text-primary); }
.nav-item.active {
  color: var(--color-accent-primary); font-weight: 600;
  background: rgba(0, 240, 255, .07); border: var(--border-glow);
}
/* 左侧荧光指示条 */
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
  background: var(--color-accent-primary); box-shadow: var(--glow-primary); border-radius: 2px;
}
.nav-item .ico {
  width: 22px; display: flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
  animation: qiBreath 3.4s ease-in-out infinite;
}
.nav-item.active .ico { color: var(--color-accent-primary); }
.nav-item .lbl { flex: 1; min-width: 0; }

/* ---- 分组导航（v0.8.4）：组头 + 缩进子项 ---- */
.nav-group { margin: 4px 0 2px; }
.nav-group-head {
  position: relative; width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: none; color: var(--color-text-secondary); font: inherit; font-size: 14px;
  text-align: left; cursor: pointer; transition: color .15s, background .15s;
}
.nav-group-head:hover { background: rgba(59, 130, 246, .08); color: var(--color-text-primary); }
.nav-group-head .ico {
  width: 22px; display: flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
  animation: qiBreath 3.4s ease-in-out infinite;
}
.nav-group-head .lbl { flex: 1; min-width: 0; }
.nav-grp-arrow {
  width: 7px; height: 7px; margin-right: 3px; opacity: .55;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.nav-group.open .nav-grp-arrow { transform: rotate(225deg); }
.nav-group.current > .nav-group-head { color: #7DD3FC; }
.nav-group.current > .nav-group-head .ico { color: #7DD3FC; }
.nav-group-body { max-height: 0; overflow: hidden; transition: max-height .24s ease; }
.nav-group.open > .nav-group-body { max-height: 420px; }
.nav-group-body .nav-item { padding-left: 36px; font-size: 13.5px; }
.nav-group-body .nav-item .ico { width: 18px; }
.nav-group-body .nav-item .ico svg { width: 17px; height: 17px; }
.nav-group-body .nav-item.active::before { left: 18px; }

/* 移动端组内页面面板（默认隐藏，仅 ≤768px 使用） */
.nav-sheet, .nav-sheet-mask { display: none; }

.qi { display: inline-block; vertical-align: middle; }
.qi-lg { width: 26px; height: 26px; }

/* 呼吸荧光（量子废墟图标） */
@keyframes qiBreath {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(0, 240, 255, .25)); }
  50%      { filter: drop-shadow(0 0 8px rgba(0, 240, 255, .7)); }
}
.nav-foot { padding: 12px 16px; font-size: 11px; color: #475569; border-top: 1px solid var(--color-border-default); }

/* ============ 主区 ============ */
#main { flex: 1; min-width: 0; padding: 20px 24px 48px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-title { font-size: 26px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.page-sub { color: var(--color-text-secondary); font-size: 13px; margin-top: 2px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ============ 卡片（毛玻璃 + 荧光渐变背景，默认荧光描边，悬停加亮） ============ */
.card {
  position: relative;
  background:
    radial-gradient(135% 95% at 0% 0%, rgba(0, 240, 255, .07), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(59, 130, 246, .08), transparent 60%),
    linear-gradient(160deg, rgba(19, 28, 49, .74), rgba(11, 17, 32, .55));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(0, 240, 255, .24);
  border-radius: var(--radius-md);
  box-shadow: var(--glow-subtle), inset 0 1px 0 rgba(241, 245, 249, .06);
  margin-bottom: 16px;
  transition: box-shadow .18s, border-color .18s;
}
.card:hover {
  border-color: rgba(0, 240, 255, .6);
  box-shadow: var(--glow-primary), inset 0 1px 0 rgba(241, 245, 249, .1);
}
.card-h {
  padding: 12px 16px; border-bottom: 1px solid var(--color-border-default); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
}
.card-h .hint { font-weight: 400; color: var(--color-text-secondary); font-size: 12px; }
.card-b { padding: 14px 16px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ KPI 指标块（毛玻璃 + 数值荧光） ============ */
.stat {
  position: relative;
  background:
    radial-gradient(130% 100% at 0% 0%, rgba(0, 240, 255, .08), transparent 60%),
    linear-gradient(160deg, rgba(19, 28, 49, .72), rgba(11, 17, 32, .5));
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  border: 1px solid rgba(0, 240, 255, .24);
  border-radius: var(--radius-md);
  box-shadow: var(--glow-subtle), inset 0 1px 0 rgba(241, 245, 249, .05);
  padding: 12px 16px;
}
.stat .k { color: var(--color-text-secondary); font-size: 12px; letter-spacing: .02em; }
.stat .v {
  font-family: var(--font-mono); font-size: 26px; font-weight: 700; margin-top: 2px;
  color: var(--color-accent-primary); text-shadow: 0 0 8px rgba(0, 240, 255, .35);
  font-variant-numeric: tabular-nums;
}
.stat .v small { font-size: 12px; font-weight: 400; color: var(--color-text-secondary); margin-left: 3px; text-shadow: none; }
.stat.lv0 .v { color: var(--lv0); text-shadow: 0 0 8px rgba(34, 197, 94, .3); }
.stat.lv1 .v { color: var(--lv1); text-shadow: 0 0 8px rgba(245, 158, 11, .3); }
.stat.lv2 .v { color: var(--lv2); text-shadow: 0 0 8px rgba(249, 115, 22, .3); }
.stat.lv3 .v { color: var(--lv3); text-shadow: 0 0 8px rgba(239, 68, 68, .3); }

/* ============ 表格（数据列等宽字体对齐） ============ */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--color-border-default); text-align: left; white-space: nowrap; }
.tbl th { background: rgba(59, 130, 246, .08); color: var(--color-text-secondary); font-weight: 600; position: sticky; top: 0; letter-spacing: .02em; }
.tbl td { color: #DBE4F0; }
.tbl tr:hover td { background: rgba(0, 240, 255, .04); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.num { font-family: var(--font-mono); font-size: 12.5px; }
.tbl .row-head { font-weight: 600; color: var(--color-text-primary); }

/* ============ 徽章（色 + 文字双编码，V-15） ============ */
.badge { display: inline-block; padding: 2px 9px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; line-height: 1.6; }
.badge.lv0 { background: var(--lv0-bg); color: var(--lv0); }
.badge.lv1 { background: var(--lv1-bg); color: var(--lv1); }
.badge.lv2 { background: var(--lv2-bg); color: var(--lv2); }
.badge.lv3 { background: var(--lv3-bg); color: var(--lv3); }
.badge.lvN { background: var(--lvN-bg); color: var(--lvN); }
.tag { display: inline-block; padding: 1px 8px; border-radius: var(--radius-sm); font-size: 12px; background: rgba(59, 130, 246, .12); color: #93C5FD; border: 1px solid rgba(59, 130, 246, .35); }
.delta-down { color: var(--lv3); font-weight: 600; }
.delta-up { color: var(--lv0); font-weight: 600; }

/* ============ 提醒条 ============ */
.alert-band { border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px; font-size: 13px; border: 1px solid; }
.alert-band.lv1 { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .4); color: #FCD34D; }
.alert-band.lv2 { background: rgba(249, 115, 22, .1); border-color: rgba(249, 115, 22, .45); color: #FDBA74; }
.alert-band.lv3 { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .5); color: #FCA5A5; }
.alert-band b { font-weight: 700; color: var(--color-text-primary); }

/* ============ 表单 ============ */
label.fld { display: block; margin-bottom: 10px; }
label.fld > span { display: block; font-size: 12px; color: var(--color-text-secondary); margin-bottom: 4px; letter-spacing: .02em; }
input[type=text], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 40px; padding: 8px 10px;
  border: 1px solid #263449; border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-body); background: var(--color-bg-base);
  color: var(--color-text-primary); transition: border-color .15s, box-shadow .15s;
}
input[type=number] { font-family: var(--font-mono); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(0, 240, 255, .7); box-shadow: var(--glow-subtle);
}
input:disabled, select:disabled { background: var(--color-surface-elevated); color: #64748B; }
.fld-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 130px; }
.grade-preview { font-size: 12px; margin-top: 3px; min-height: 18px; }
option { background: var(--color-surface-elevated); color: var(--color-text-primary); }

/* ============ 按钮（毛玻璃；主=荧光渐变填充+深色字；次=透明+荧光描边） ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, .3);
  background: linear-gradient(160deg, rgba(19, 28, 49, .68), rgba(11, 17, 32, .46));
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  color: #DBE4F0;
  font-size: 14px; cursor: pointer; font-family: inherit; text-decoration: none; white-space: nowrap;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.btn:hover { border-color: rgba(0, 240, 255, .7); box-shadow: var(--glow-subtle); color: var(--color-text-primary); }
.btn:active { background: rgba(0, 240, 255, .12); }
.btn.primary {
  background: linear-gradient(135deg, #00F0FF 0%, #38BDF8 55%, #3B82F6 100%);
  border: 1px solid rgba(0, 240, 255, .8); color: #04121C; font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 240, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn.primary:hover { background: linear-gradient(135deg, #4FF7FF 0%, #5FCBFA 55%, #5B90F2 100%); box-shadow: var(--glow-primary), inset 0 1px 0 rgba(255, 255, 255, .4); color: #04121C; }
.btn.primary:active { background: linear-gradient(135deg, #00C4D4 0%, #2BAAD6 55%, #3367C9 100%); }
.btn.danger { color: var(--lv3); border-color: rgba(239, 68, 68, .45); }
.btn.danger:hover { background: rgba(239, 68, 68, .12); box-shadow: 0 0 6px rgba(239, 68, 68, .25); }
.btn.sm { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ============ Tabs / Chips ============ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--color-border-default); margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  padding: 8px 16px; cursor: pointer; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--color-text-secondary); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--color-text-primary); }
.tab.active { color: var(--color-accent-primary); border-bottom-color: var(--color-accent-primary); text-shadow: 0 0 6px rgba(0, 240, 255, .3); }
.chip {
  min-height: 28px; padding: 3px 12px; border-radius: var(--radius-full);
  border: 1px solid #2C3B55; background: transparent; font-size: 12px; cursor: pointer;
  color: var(--color-text-secondary); font-family: inherit; transition: all .15s;
}
.chip:hover { border-color: rgba(0, 240, 255, .5); color: var(--color-text-primary); }
.chip.active {
  background: rgba(0, 240, 255, .1); border: var(--border-glow-active);
  color: var(--color-accent-primary); font-weight: 600; box-shadow: var(--glow-subtle);
}

/* ============ 弹窗（玻璃态面板滑入）/ Toast ============ */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(4, 8, 18, .66); backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px;
  animation: maskIn .2s ease both;
}
.modal {
  background:
    radial-gradient(140% 100% at 0% 0%, rgba(0, 240, 255, .08), transparent 55%),
    linear-gradient(165deg, rgba(19, 28, 49, .88), rgba(13, 20, 38, .78));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(0, 240, 255, .4);
  border-radius: var(--radius-lg); width: 560px; max-width: 100%; max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: var(--glow-primary), inset 0 1px 0 rgba(241, 245, 249, .1);
  animation: modalIn .3s cubic-bezier(.2, .7, .3, 1) both;
}
.modal-mask.closing { opacity: 0; transition: opacity .16s ease; }
.modal-mask.closing .modal { opacity: 0; transform: translateY(14px) scale(.97); filter: blur(5px); transition: all .16s ease; animation: none; }
@keyframes maskIn { from { opacity: 0; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(22px) scale(.96); filter: blur(8px); }
}
.modal-h { padding: 14px 18px; font-weight: 700; border-bottom: 1px solid var(--color-border-default); display: flex; justify-content: space-between; align-items: center; }
.modal-b { padding: 16px 18px; overflow-y: auto; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--color-border-default); display: flex; justify-content: flex-end; gap: 8px; }
.modal-x { cursor: pointer; color: var(--color-text-secondary); font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: var(--radius-sm); }
.modal-x:hover { background: rgba(239, 68, 68, .15); color: var(--lv3); }
#toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--color-surface-elevated); border: var(--border-glow-active); color: var(--color-text-primary);
  padding: 9px 18px; border-radius: var(--radius-sm); font-size: 13px;
  box-shadow: var(--glow-primary); animation: toastIn .18s ease;
}
.toast.err { border-color: rgba(239, 68, 68, .6); color: #FCA5A5; box-shadow: 0 0 10px rgba(239, 68, 68, .3); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ============ 图表 ============ */
.chart { width: 100%; height: 260px; }
.chart.sm { height: 210px; }
.chart.acwr { height: 300px; }

/* ============ 录入卡片 ============ */
.entry-card { border: var(--border-glow); border-radius: var(--radius-md); background: var(--color-surface-elevated); box-shadow: var(--glow-subtle); padding: 14px; margin-bottom: 12px; }
.entry-card h3 { margin: 0 0 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.metric-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--color-border-default); }
.metric-row:last-child { border-bottom: 0; }
.metric-row .m-name { flex: 1; min-width: 96px; font-size: 13px; }
.metric-row .m-name small { display: block; color: var(--color-text-secondary); font-size: 11px; }
.metric-row input { width: 96px; text-align: right; }
.metric-row .m-grade { width: 96px; text-align: right; }

.empty { text-align: center; color: var(--color-text-secondary); padding: 32px 12px; font-size: 13px; }
.legend-note { font-size: 12px; color: var(--color-text-secondary); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ok-ico { color: var(--lv0); font-weight: 700; }
.bad-ico { color: var(--lv3); font-weight: 700; }
.na-ico { color: var(--lvN); }
.dim-tag { display: inline-block; background: rgba(59, 130, 246, .1); color: #93C5FD; border-radius: var(--radius-sm); padding: 1px 8px; font-size: 11px; margin-right: 4px; }

/* ============ 训练计划 ============ */
.plan-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.plan-day { background: var(--color-surface-elevated); border: 1px solid var(--color-border-default); border-radius: var(--radius-md); min-width: 0; }
.plan-day.today { border: var(--border-glow-active); box-shadow: var(--glow-primary); }
.plan-day-h { padding: 8px 10px; border-bottom: 1px solid var(--color-border-default); font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.plan-day-h b { font-size: 13px; color: var(--color-text-primary); }
.plan-day-h .wd { color: var(--color-text-secondary); }
.plan-cell { padding: 8px 10px; border-bottom: 1px dashed var(--color-border-default); cursor: pointer; min-height: 54px; }
.plan-cell:last-child { border-bottom: 0; }
.plan-cell:hover { background: rgba(0, 240, 255, .05); }
.plan-cell .pc-slot { font-size: 10px; color: var(--color-text-secondary); letter-spacing: .02em; }
.plan-cell .pc-title { font-size: 12.5px; font-weight: 600; margin: 1px 0; color: var(--color-text-primary); }
.plan-cell .pc-meta { font-size: 11px; color: var(--color-text-secondary); }
.plan-cell.empty { color: #3E4C63; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.int-chip { display: inline-block; padding: 0 6px; border-radius: var(--radius-sm); font-size: 10.5px; font-weight: 600; }
.int-chip.high { background: rgba(239, 68, 68, .15); color: var(--lv3); }
.int-chip.midhigh { background: rgba(249, 115, 22, .15); color: var(--lv2); }
.int-chip.mid { background: rgba(245, 158, 11, .15); color: var(--lv1); }
.int-chip.low { background: rgba(34, 197, 94, .15); color: var(--lv0); }

/* ============ pad / 监控台视图（KPI 用荧光蓝 + 外发光） ============ */
.pad-wrap { background: var(--color-bg-base); min-height: calc(100vh - 40px); border-radius: var(--radius-lg); padding: 22px 26px; color: #DBE4F0; border: var(--border-glow); box-shadow: var(--glow-subtle); }
.pad-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.pad-date { font-size: clamp(22px, 3.4vw, 34px); font-weight: 700; color: var(--color-text-primary); font-family: var(--font-display); letter-spacing: .02em; }
.pad-clock { font-size: clamp(20px, 3vw, 30px); font-variant-numeric: tabular-nums; color: var(--color-accent-primary); font-weight: 700; font-family: var(--font-mono); text-shadow: 0 0 10px rgba(0, 240, 255, .45); }
.pad-plan-title { color: #7DD3FC; font-size: clamp(14px, 1.8vw, 18px); margin-bottom: 10px; }
.pad-sessions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pad-session { background: var(--color-surface-elevated); border: var(--border-glow); border-radius: var(--radius-md); padding: 18px 22px; }
.pad-session .ps-slot { color: var(--color-text-secondary); font-size: clamp(13px, 1.6vw, 16px); letter-spacing: 4px; }
.pad-session .ps-title { color: var(--color-text-primary); font-size: clamp(20px, 2.8vw, 30px); font-weight: 700; margin: 6px 0 10px; }
.pad-session .ps-line { font-size: clamp(15px, 2vw, 21px); line-height: 1.8; color: #C7D4E8; }
.pad-session .ps-meta { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.pad-session .ps-chip { background: rgba(59, 130, 246, .14); border: 1px solid rgba(59, 130, 246, .35); border-radius: var(--radius-sm); padding: 4px 12px; font-size: clamp(13px, 1.5vw, 16px); color: #93C5FD; font-family: var(--font-mono); }
.pad-status { margin-top: 16px; }
.pad-status .ps-h { color: #7DD3FC; font-size: clamp(14px, 1.8vw, 18px); margin-bottom: 8px; }
.pad-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pad-athlete { background: var(--color-surface-elevated); border: 1px solid var(--color-border-default); border-radius: var(--radius-sm); padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; font-size: clamp(14px, 1.7vw, 18px); }
.pad-athlete .pa-name { color: var(--color-text-primary); font-weight: 600; }
.pad-athlete .badge { font-size: 12.5px; }

/* =====================================================================
   响应式（Mobile ≤768 底部 Tab 导航；Tablet；Desktop）
   ===================================================================== */
@media (max-width: 1100px) {
  .plan-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  #app { flex-direction: column; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* ---- 底部 Tab 导航：选中图标荧光蓝 + glow（Don't: 移动端禁 hover 唯一反馈 → 提供 :active） ---- */
  #nav {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: auto; z-index: 60;
    flex-direction: row; align-items: stretch;
    background: rgba(11, 17, 32, .96); backdrop-filter: blur(10px);
    border-top: var(--border-glow);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .4);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .brand, .nav-foot { display: none; }
  #nav-links { display: flex; padding: 4px; overflow: visible; justify-content: space-around; }
  #nav-links > .nav-item, #nav-links > .nav-group { flex: 1 1 0; min-width: 0; }
  #nav-links > .nav-group { margin: 0; display: flex; }
  .nav-item {
    flex-direction: column; gap: 3px; padding: 6px 4px; margin: 0;
    min-width: 0; justify-content: center; text-align: center;
    white-space: nowrap; font-size: 10.5px; border: none; border-radius: var(--radius-sm);
  }
  .nav-item .ico { width: auto; display: flex; }
  .nav-item .ico svg { width: 21px; height: 21px; }
  .nav-item:active { background: rgba(0, 240, 255, .12); }
  .nav-item.active { background: transparent; border-color: transparent; color: var(--color-accent-primary); }
  /* 底部导航指示条移到顶部 */
  .nav-item.active::before { left: 10px; right: 10px; top: 0; bottom: auto; width: auto; height: 2px; }

  /* ---- 分组：底部 4 个入口，点组头弹组内页面面板 ---- */
  .nav-group-head {
    flex-direction: column; gap: 3px; height: 100%; padding: 6px 4px; margin: 0;
    justify-content: center; text-align: center; font-size: 10.5px;
    white-space: nowrap; border: none; border-radius: var(--radius-sm);
  }
  .nav-group-head .ico { width: auto; }
  .nav-group-head .ico svg { width: 21px; height: 21px; }
  .nav-group-head .lbl { flex: none; }
  .nav-group-head .nav-grp-arrow { display: none; }
  .nav-group-body { display: none !important; }
  .nav-group-head:active { background: rgba(0, 240, 255, .12); }
  .nav-group.current > .nav-group-head { color: var(--color-accent-primary); }
  .nav-group.current > .nav-group-head::before {
    content: ''; position: absolute; left: 10px; right: 10px; top: 0; height: 2px;
    background: var(--color-accent-primary); box-shadow: var(--glow-primary); border-radius: 2px;
  }

  /* ---- 组内页面面板 ---- */
  .nav-sheet-mask {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(0, 0, 0, .58); opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .nav-sheet-mask.show { opacity: 1; pointer-events: auto; }
  .nav-sheet {
    display: block; position: fixed; left: 8px; right: 8px;
    bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 61;
    padding: 10px;
    background: rgba(11, 17, 32, .98); border: 1px solid rgba(0, 240, 255, .32);
    border-radius: var(--radius-md); box-shadow: var(--glow-primary);
    opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav-sheet.show { opacity: 1; visibility: visible; transform: none; }
  .nav-sheet-h {
    display: flex; align-items: center; gap: 8px; padding: 0 2px 8px;
    border-bottom: 1px solid var(--color-border-default); margin-bottom: 8px;
  }
  .nav-sheet-title { flex: 1; font-weight: 600; color: var(--color-accent-primary); letter-spacing: .5px; }
  .nav-sheet-count { font-size: 11px; color: var(--color-text-secondary); font-family: var(--font-mono); }
  .nav-sheet-close {
    background: none; border: 0; color: var(--color-text-secondary);
    font-size: 20px; line-height: 1; padding: 4px 8px; cursor: pointer;
  }
  .nav-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 46vh; overflow-y: auto; }
  .nav-sheet-item {
    display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px;
    border: 1px solid var(--color-border-default); border-radius: var(--radius-sm);
    color: var(--color-text-secondary); text-decoration: none; font-size: 13px;
  }
  .nav-sheet-item .ico { display: flex; color: #7DD3FC; }
  .nav-sheet-item .lbl { flex: 1; min-width: 0; }
  .nav-sheet-item:active { background: rgba(0, 240, 255, .12); }
  .nav-sheet-item.active {
    color: var(--color-accent-primary); border-color: rgba(0, 240, 255, .55);
    background: rgba(0, 240, 255, .08);
  }
  body.nav-sheet-open { overflow: hidden; }

  #main { padding: 12px 12px 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page-title { font-size: 20px; }
  .metric-row input { width: 86px; }
  .chart { height: 220px; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-cell { min-height: 44px; }
  .pad-sessions { grid-template-columns: 1fr; }
  .pad-wrap { padding: 14px; }
  /* 移动端触控目标：按钮 ≥48px（表格内小按钮放宽到 40px 保证可用性） */
  .btn { min-height: 48px; }
  .btn.sm { min-height: 40px; }
  .chip { min-height: 36px; }
}

/* =====================================================================
   打印 / 导出 PDF（保持纸面浅色可读）
   ===================================================================== */
@media print {
  body { background: #fff; background-image: none; color: #111827; }
  #nav, .head-actions, .no-print, #toast-root, #modal-root, .nav-sheet, .nav-sheet-mask { display: none !important; }
  #app { padding-bottom: 0; }
  #main { padding: 0; color: #111827; }
  .card, .stat, .entry-card { background: #fff !important; border: 1px solid #d1d5db !important; box-shadow: none !important; break-inside: avoid; }
  .card-h, .card-h .hint, .page-sub, .legend-note, .tbl th { color: #374151 !important; }
  .tbl td, .tbl .row-head { color: #111827 !important; border-color: #e5e7eb !important; }
  .tbl th { background: #f3f4f6 !important; }
  .page-title { color: #000; }
  .alert-band { color: #111827; border-color: #bbb; background: #f9fafb; }
  .empty { color: #6b7280; }
}

/* =====================================================================
   转场引擎（v0.4）：立方体翻转 / 玻璃滑入 / 粒子消散 / 光栅重组
   ===================================================================== */
#main { perspective: 1500px; }
.page-view {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  min-height: 50vh;
}

/* ---- 3D 立方体翻转（跨导航模块） ---- */
.cube-out-r { transform-origin: left center; animation: cubeOutR .25s cubic-bezier(.5, .05, .7, .3) forwards; }
@keyframes cubeOutR { to { transform: rotateY(-82deg) translateZ(-60px); opacity: .25; filter: brightness(1.5); } }
.cube-in-r { transform-origin: left center; animation: cubeInR .34s cubic-bezier(.2, .65, .3, 1) both; }
@keyframes cubeInR { from { transform: rotateY(80deg) translateZ(-60px); opacity: 0; filter: brightness(1.7) blur(2px); } }
.cube-out-l { transform-origin: right center; animation: cubeOutL .25s cubic-bezier(.5, .05, .7, .3) forwards; }
@keyframes cubeOutL { to { transform: rotateY(82deg) translateZ(-60px); opacity: .25; filter: brightness(1.5); } }
.cube-in-l { transform-origin: right center; animation: cubeInL .34s cubic-bezier(.2, .65, .3, 1) both; }
@keyframes cubeInL { from { transform: rotateY(-80deg) translateZ(-60px); opacity: 0; filter: brightness(1.7) blur(2px); } }

/* ---- 玻璃态面板滑入（同模块内切换，背景轻微模糊由 backdrop-filter 提供） ---- */
.glass-out { animation: glassOut .21s ease-in forwards; }
@keyframes glassOut {
  to { opacity: 0; transform: translateX(-28px) scale(.99); filter: blur(9px) saturate(150%) brightness(1.3); }
}
.glass-in { animation: glassIn .33s cubic-bezier(.2, .65, .3, 1) both; }
@keyframes glassIn {
  from { opacity: 0; transform: translateX(36px) scale(.985); filter: blur(10px) brightness(1.6) saturate(140%); }
}
.fade-in { animation: fadeIn .32s ease both; }
@keyframes fadeIn { from { opacity: 0; filter: blur(6px); } }

/* ---- 光栅重组（卡片/表格 stagger 成型：模糊→锐利 + 亮度闪烁） ---- */
.rc { animation: reconstruct .55s cubic-bezier(.2, .7, .25, 1) both; }
@keyframes reconstruct {
  from { opacity: 0; filter: blur(8px) brightness(1.9) contrast(1.15); transform: translateY(6px) scale(.996); }
  60%  { filter: blur(1px) brightness(1.25) contrast(1.02); }
}

/* ---- 粒子消散层（量子碎片：圆点 + 方形残片） ---- */
.pt-layer { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.pt { position: absolute; pointer-events: none; opacity: .95; }

/* ---- 录入卡 / 计划日 / 监控台会话：同步毛玻璃化 ---- */
.entry-card {
  background:
    radial-gradient(130% 95% at 0% 0%, rgba(0, 240, 255, .06), transparent 55%),
    linear-gradient(160deg, rgba(19, 28, 49, .72), rgba(11, 17, 32, .52));
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  border: 1px solid rgba(0, 240, 255, .22);
  border-radius: var(--radius-md);
  box-shadow: var(--glow-subtle), inset 0 1px 0 rgba(241, 245, 249, .05);
  padding: 14px; margin-bottom: 12px;
}
.plan-day {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(0, 240, 255, .05), transparent 60%),
    linear-gradient(165deg, rgba(19, 28, 49, .68), rgba(11, 17, 32, .5));
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md); min-width: 0;
}
.plan-day.today { border: var(--border-glow-active); box-shadow: var(--glow-primary); }
.pad-session {
  background: linear-gradient(165deg, rgba(19, 28, 49, .78), rgba(11, 17, 32, .58));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: var(--border-glow); border-radius: var(--radius-md); padding: 18px 22px;
}
.pad-athlete {
  background: linear-gradient(165deg, rgba(19, 28, 49, .72), rgba(11, 17, 32, .5));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-sm); padding: 8px 12px;
  display: flex; justify-content: space-between; align-items: center;
}

/* ---- 无障碍：用户偏好减少动效时关闭转场与呼吸 ---- */
@media (prefers-reduced-motion: reduce) {
  .page-view, .page-view *, .rc, .ico, .qi { animation: none !important; }
}

/* =====================================================================
   玻璃态下拉组件 .gs（v0.4.1：渐进增强原生 select）
   ===================================================================== */
.gs { position: relative; display: inline-block; }
.gs-native { display: none !important; }
.gs-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 40px; padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, .3);
  background: linear-gradient(160deg, rgba(19, 28, 49, .68), rgba(11, 17, 32, .46));
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  color: #DBE4F0; font-size: 14px; font-family: inherit; cursor: pointer;
  min-width: 110px; text-align: left;
  transition: border-color .16s, box-shadow .16s;
}
.gs-btn:hover { border-color: rgba(0, 240, 255, .7); box-shadow: var(--glow-subtle); }
.gs-btn:active { background: rgba(0, 240, 255, .12); }
.gs-btn .gs-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-btn .gs-caret { color: var(--color-accent-primary); font-size: 11px; transition: transform .18s; }
.gs.open .gs-btn { border-color: rgba(0, 240, 255, .7); box-shadow: var(--glow-subtle); }
.gs.open .gs-btn .gs-caret { transform: rotate(180deg); }

.gs-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%;
  z-index: 90; padding: 6px; max-height: 320px; overflow-y: auto;
  background:
    radial-gradient(140% 100% at 0% 0%, rgba(0, 240, 255, .08), transparent 55%),
    linear-gradient(165deg, rgba(19, 28, 49, .9), rgba(13, 20, 38, .8));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(0, 240, 255, .4);
  border-radius: var(--radius-md);
  box-shadow: var(--glow-primary), 0 8px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(241, 245, 249, .1);
}
.gs.open .gs-menu {
  display: block;
  animation: gsPanelIn .24s cubic-bezier(.2, .7, .3, 1) both;
  transform-origin: top center;
}
@keyframes gsPanelIn {
  from { opacity: 0; transform: translateY(-10px) scale(.97); filter: blur(7px) brightness(1.4); }
}
.gs-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: #DBE4F0; cursor: pointer; white-space: nowrap;
  animation: gsOptIn .26s cubic-bezier(.2, .7, .25, 1) both;
  transition: background .12s, color .12s;
}
@keyframes gsOptIn {
  from { opacity: 0; transform: translateX(12px); filter: blur(3px); }
}
.gs-opt:hover { background: rgba(0, 240, 255, .09); color: #F1F5F9; }
.gs-opt.sel { color: var(--color-accent-primary); background: rgba(0, 240, 255, .1); }
.gs-opt .gs-check { color: var(--color-accent-primary); text-shadow: 0 0 6px rgba(0, 240, 255, .6); }
@media (max-width: 768px) {
  .gs-btn { min-height: 48px; }
  .gs-opt { padding: 11px 12px; }
}

/* =====================================================================
   驾驶舱仪表盘（v0.6）：KPI 表盘 + 警告牌面板
   ===================================================================== */
.cockpit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.inst {
  position: relative; padding: 12px 14px 10px; text-align: center;
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(0, 240, 255, .06), transparent 60%),
    linear-gradient(170deg, rgba(19, 28, 49, .74), rgba(11, 17, 32, .52));
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  border: 1px solid rgba(0, 240, 255, .22);
  border-radius: var(--radius-md);
  box-shadow: var(--glow-subtle), inset 0 1px 0 rgba(241, 245, 249, .05);
  animation: instPanelBreath 3.2s ease-in-out infinite;
}
/* HUD 角标 */
.inst::before, .inst::after {
  content: ''; position: absolute; width: 10px; height: 10px; pointer-events: none;
}
.inst::before { top: 5px; left: 5px; border-top: 1.5px solid rgba(0, 240, 255, .55); border-left: 1.5px solid rgba(0, 240, 255, .55); }
.inst::after { bottom: 5px; right: 5px; border-bottom: 1.5px solid rgba(0, 240, 255, .55); border-right: 1.5px solid rgba(0, 240, 255, .55); }
@keyframes instPanelBreath {
  0%, 100% { box-shadow: 0 0 4px rgba(0, 240, 255, .18), inset 0 1px 0 rgba(241, 245, 249, .05); }
  50%      { box-shadow: 0 0 12px rgba(0, 240, 255, .38), inset 0 1px 0 rgba(241, 245, 249, .08); }
}
.inst-gauge { width: 100%; height: 66px; display: block; }
.g-track { fill: none; stroke: #1E293B; stroke-width: 6; stroke-linecap: round; }
.g-val {
  fill: none; stroke-width: 6; stroke-linecap: round;
  animation: instArcBreath 2.6s ease-in-out infinite;
}
@keyframes instArcBreath {
  0%, 100% { opacity: .7; }
  50%      { opacity: 1; }
}
.g-needle { stroke-width: 2; stroke-linecap: round; animation: instArcBreath 2.6s ease-in-out infinite; }
.g-hub { fill: #94A3B8; }
.tick { stroke: #2C3B55; stroke-width: 1; }
.tick.maj { stroke: #46617F; stroke-width: 1.4; }
.inst-readout { margin-top: -30px; position: relative; }
.inst-num {
  font-family: var(--font-mono); font-size: 30px; font-weight: 700; line-height: 1;
  text-shadow: 0 0 12px currentColor;
  animation: instArcBreath 2.6s ease-in-out infinite;
}
.inst-unit { font-size: 12px; color: var(--color-text-secondary); margin-left: 3px; }
.inst-label {
  margin-top: 4px; font-size: 11px; letter-spacing: .12em; color: var(--color-text-secondary);
}

/* ---- 警告牌面板（annunciator） ---- */
.ann-tag {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 240, 255, .4); color: var(--color-accent-primary);
  font-size: 10px; letter-spacing: .2em; font-family: var(--font-mono);
}
.ann-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.ann-tile {
  position: relative; padding: 10px 14px 9px; border-radius: var(--radius-sm);
  border: 1px solid; background: rgba(11, 17, 32, .5);
}
.ann-tile.lv1 { border-color: rgba(245, 158, 11, .45); box-shadow: 0 0 6px rgba(245, 158, 11, .18); }
.ann-tile.lv2 { border-color: rgba(249, 115, 22, .55); animation: annBlink 1.8s ease-in-out infinite; }
.ann-tile.lv3 { border-color: rgba(239, 68, 68, .65); animation: annBlink 1.1s ease-in-out infinite; }
@keyframes annBlink {
  0%, 100% { box-shadow: 0 0 3px rgba(0, 240, 255, 0); filter: brightness(.92); }
  50%      { box-shadow: 0 0 14px rgba(0, 240, 255, .28); filter: brightness(1.12); }
}
.ann-lamp {
  position: absolute; top: 11px; right: 12px; width: 9px; height: 9px; border-radius: 50%;
  animation: lampBlink 1s steps(2, start) infinite;
}
.ann-tile.lv1 .ann-lamp { background: #FBBF24; box-shadow: 0 0 8px rgba(245, 158, 11, .8); }
.ann-tile.lv2 .ann-lamp { background: #FB923C; box-shadow: 0 0 8px rgba(249, 115, 22, .8); }
.ann-tile.lv3 .ann-lamp { background: #F87171; box-shadow: 0 0 9px rgba(239, 68, 68, .9); }
@keyframes lampBlink { 50% { opacity: .25; } }
.ann-name { font-weight: 700; color: var(--color-text-primary); font-size: 14px; }
.ann-lv {
  margin-left: 8px; padding: 0 6px; border-radius: var(--radius-sm); font-size: 10px;
  font-family: var(--font-mono); color: #04121C; font-weight: 700;
}
.ann-tile.lv1 .ann-lv { background: #FBBF24; }
.ann-tile.lv2 .ann-lv { background: #FB923C; }
.ann-tile.lv3 .ann-lv { background: #F87171; }
.ann-msg { font-size: 12.5px; color: #DBE4F0; margin: 3px 0 2px; line-height: 1.5; }
.ann-adv { font-size: 12px; color: var(--color-text-secondary); }
@media (max-width: 900px) { .cockpit-grid { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================================
   组织树 / 权限矩阵（v0.7：组织权限与指标评分）
   ===================================================================== */
.org-layout { margin-bottom: 14px; }
.ot-tree { min-width: 190px; max-width: 260px; padding-right: 10px; border-right: 1px solid var(--color-border-default); }
.ot-row {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--radius-sm);
  cursor: pointer; color: #DBE4F0; font-size: 13px;
}
.ot-row:hover { background: rgba(59, 130, 246, .08); }
.ot-row.active { background: rgba(0, 240, 255, .09); color: var(--color-accent-primary); border: var(--border-glow); }
.ot-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-cnt { font-size: 11px; color: var(--color-text-secondary); font-family: var(--font-mono); }
.ot-dis { font-size: 10px; color: #F87171; border: 1px solid rgba(239,68,68,.4); border-radius: 3px; padding: 0 3px; }
.ot-tw { cursor: pointer; color: var(--color-text-secondary); width: 14px; text-align: center; }
.ot-leaf-dot { width: 5px; height: 5px; border-radius: 1px; background: #3B82F6; margin: 0 4px 0 9px; }
.ot-kids { margin-left: 10px; border-left: 1px dashed var(--color-border-default); padding-left: 4px; }
.pm-item {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; margin: 2px;
  border: 1px solid var(--color-border-default); border-radius: var(--radius-sm);
  font-size: 12.5px; color: #DBE4F0; cursor: pointer; background: rgba(11, 17, 32, .4);
}
.pm-item:has(input:checked) { border-color: rgba(0, 240, 255, .6); color: var(--color-accent-primary); background: rgba(0, 240, 255, .08); }
.pm-item input { accent-color: #00F0FF; }
@media (max-width: 768px) {
  .org-layout .card-b { flex-direction: column !important; }
  .ot-tree { max-width: none; width: 100%; border-right: 0; border-bottom: 1px solid var(--color-border-default); padding-bottom: 8px; margin-bottom: 8px; }
}

/* =====================================================================
   监控台 v0.8：驾驶舱 KPI 行 / 图表栅格 / 视图切换动画
   ===================================================================== */
.pad-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 14px; }
.pad-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#pd-viewbox { position: relative; min-height: 40vh; }
.pv-out { animation: pvOut .17s ease-in forwards; }
@keyframes pvOut { to { opacity: 0; transform: translateX(-18px); filter: blur(6px); } }
.pv-in { animation: pvIn .32s cubic-bezier(.2, .65, .3, 1) both; }
@keyframes pvIn { from { opacity: 0; transform: translateX(22px); filter: blur(8px) brightness(1.4); } }
@media (max-width: 1200px) { .pad-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .pad-kpis { grid-template-columns: repeat(2, 1fr); }
  .pad-charts { grid-template-columns: 1fr; }
}

/* ============ 登录闸门 / 启动态 / 侧栏登录信息（v0.9.0 服务器模式） ============ */
.login-layer {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% 0%, rgba(0, 240, 255, .10), transparent 60%), #05070C;
  backdrop-filter: blur(6px);
}
.login-layer[hidden] { display: none !important; }
body.login-open { overflow: hidden; }

.login-card {
  width: 380px; max-width: calc(100vw - 32px);
  padding: 30px 28px 22px;
  border: 1px solid var(--color-border-default);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(19, 28, 49, .98), rgba(8, 13, 24, .98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 240, 255, .06) inset;
  animation: loginIn .35s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes loginIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.login-head { text-align: center; margin-bottom: 22px; }
.login-logo {
  width: 52px; height: 52px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; border: 1px solid rgba(0, 240, 255, .32);
  background: rgba(0, 240, 255, .07);
  box-shadow: 0 0 26px rgba(0, 240, 255, .18);
}
.login-title { font-family: var(--font-display); font-size: 19px; letter-spacing: .06em; color: var(--color-text-primary); }
.login-sub { margin-top: 6px; font-size: 12px; color: var(--color-text-secondary); }

.login-field { display: block; margin-bottom: 14px; }
.login-field > span { display: block; margin-bottom: 6px; font-size: 12px; color: var(--color-text-secondary); }
.login-field input {
  width: 100%; box-sizing: border-box;
  padding: 11px 13px; font-size: 14px; color: var(--color-text-primary);
  background: rgba(2, 6, 14, .85);
  border: 1px solid var(--color-border-default); border-radius: 9px;
  transition: border-color .18s, box-shadow .18s;
}
.login-field input:focus {
  outline: none; border-color: rgba(0, 240, 255, .55);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, .10);
}

.login-err { min-height: 18px; margin: 2px 0 10px; font-size: 12px; color: var(--lv3); }

.login-btn {
  width: 100%; padding: 11px 0; cursor: pointer;
  font-size: 14px; letter-spacing: .08em;
  color: #04121A; font-weight: 600;
  background: linear-gradient(180deg, #35F3FF, #00CDE0);
  border: none; border-radius: 9px;
  box-shadow: 0 8px 26px rgba(0, 240, 255, .26);
  transition: transform .12s, box-shadow .18s, opacity .18s;
}
.login-btn:hover { box-shadow: 0 10px 30px rgba(0, 240, 255, .38); }
.login-btn:active { transform: translateY(1px); }
.login-btn:disabled { opacity: .65; cursor: default; box-shadow: none; }

.login-hint { margin-top: 14px; text-align: center; font-size: 11px; color: #52627A; }

.boot-splash {
  min-height: 46vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.boot-ring {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, .18); border-top-color: var(--color-accent-primary);
  animation: bootSpin .9s linear infinite;
}
@keyframes bootSpin { to { transform: rotate(360deg); } }
.boot-text { font-size: 13px; color: var(--color-text-secondary); letter-spacing: .06em; }

.nav-user { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.nav-user-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--lv0); box-shadow: 0 0 8px rgba(74, 222, 128, .7);
}
.nav-user-txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.nav-user-txt b { font-size: 12px; color: var(--color-text-primary); font-weight: 600; }
.nav-user-txt span { font-size: 10px; color: #52627A; }
.nav-foot-tip { margin-top: 3px; color: #3B4A63; }
.nav-logout {
  width: 100%; padding: 6px 0; cursor: pointer;
  font-size: 11px; color: var(--color-text-secondary);
  background: transparent; border: 1px solid var(--color-border-default); border-radius: 7px;
  transition: color .16s, border-color .16s;
}
.nav-logout:hover { color: var(--lv3); border-color: rgba(248, 113, 113, .45); }

/* ===== Excel 导入预校验面板 ===== */
.imp-sum { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 6px; }
.imp-sum > div { text-align: center; }
.imp-sheet { border-top: 1px solid var(--color-border-default); padding: 12px 0 4px; }
.imp-sheet-h { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.imp-err-title { font-size: 12px; font-weight: 600; color: #F87171; margin: 8px 0 4px; }
.imp-err-row { font-size: 12px; color: var(--color-text-secondary); padding: 2px 0 2px 12px; line-height: 1.6; }
.imp-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.imp-opts label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.imp-opts input[type="checkbox"] { width: 15px; height: 15px; accent-color: #00F0FF; cursor: pointer; }
