/* AEWAY 作业台 · 与官网视觉体系对齐：深蓝 / 电光青 / 亮橙点睛 */

:root {
  --bg: #F7F4EF;
  --bg-2: #F0EBE3;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --panel-2: rgba(255, 255, 255, 0.55);
  --line: rgba(26, 42, 94, 0.1);
  --line-strong: rgba(26, 42, 94, 0.18);
  --text: #1A2A5E;
  --muted: #5A6A8E;
  --accent: #1A2A5E;
  --accent-cyan: #00D4FF;
  --accent-orange: #FF6B35;
  --accent-soft: rgba(0, 212, 255, 0.1);
  --crit: #b71c1c;
  --crit-bg: #fdecea;
  --high: #e65100;
  --high-bg: #fff3e0;
  --med: #8d6e00;
  --med-bg: #fff8e1;
  --low: #2e7d32;
  --low-bg: #e8f5e9;
  --ok: #1b5e20;
  --busy: #FF6B35;
  --demo: #8a4b00;
  --font: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 56px;
  --side-w: 236px;
  --shadow: 0 8px 28px rgba(26, 42, 94, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

.demo-banner {
  background: linear-gradient(90deg, #8a4b00, #FF6B35);
  color: #fff;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  font-size: 12px;
  text-transform: none;
  margin-left: var(--side-w);
}

/* —— 壳层：顶栏 + 侧栏 —— */
.shell {
  display: block;
  min-height: 100vh;
  background: var(--bg);
  padding-left: var(--side-w);
  transition: padding-left .25s ease;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--side-w);
  z-index: 200;
  background: #162448;
  color: #F4F7FC;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(26, 42, 94, 0.14);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  transform: translateX(0);
  transition: transform .25s ease;
}

.shell.sidebar-hidden {
  padding-left: 0;
}
.shell.sidebar-hidden .sidebar {
  transform: translateX(-100%);
  pointer-events: none;
}
.shell.sidebar-hidden .demo-banner {
  margin-left: 0;
}

.sidebar-head {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-head .brand {
  flex: 1;
  border-bottom: none;
  min-width: 0;
}
.sidebar-hide {
  width: 36px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #D7E0EE;
  font-size: 22px;
  cursor: pointer;
  border-left: 1px solid rgba(255,255,255,.08);
}
.sidebar-hide:hover { background: rgba(255,255,255,.08); color: #fff; }

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sidebar-show {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.55);
}
.brand-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.04em;
}
.brand-sub {
  color: #B8C4D8;
  font-size: 11px;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  flex: 1;
}
.nav a {
  color: #D7E0EE;
  text-decoration: none;
  padding: 12px 14px;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  text-shadow: none;
  filter: none;
}
.nav a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}
.nav a.active {
  color: #FFFFFF;
  background: rgba(0, 212, 255, 0.18);
  border-left-color: var(--accent-cyan);
  box-shadow: none;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid;
  gap: 8px;
}
.mode-pill {
  display: inline-flex;
  width: fit-content;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  font-size: 12px;
  font-weight: 600;
  color: #E8F7FF;
  background: rgba(0, 212, 255, 0.12);
  letter-spacing: 0.03em;
}
.hint {
  color: #A9B6CA;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.main {
  padding: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(0, 212, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 35% at 90% 80%, rgba(255, 107, 53, 0.05), transparent),
    var(--bg);
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  min-height: var(--header-h);
  box-shadow: 0 4px 20px rgba(26, 42, 94, 0.04);
}
.topbar h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.muted {
  color: var(--muted);
  margin: 2px 0 0;
  font-size: 12px;
}
.top-actions { display: flex; gap: 8px; align-items: center; }

.view {
  padding: 18px 22px 36px;
}
.view-home {
  flex: 1;
  min-height: 0;
  padding: 8px 16px 10px;
  overflow: hidden;
}

/* —— 控件 —— */
.btn, button.btn, .btn-primary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
}
.btn:hover { background: #fff; border-color: var(--accent-cyan); color: var(--accent); box-shadow: 0 4px 14px rgba(0, 212, 255, 0.12); }
.btn-primary {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.28);
}
.btn-primary:hover { background: #FF7A4A; border-color: #FF7A4A; color: #fff; }
.btn-danger { border-color: var(--crit); color: var(--crit); background: var(--crit-bg); }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: 1.2fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.card {
  background: var(--panel);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.kpi {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.kpi-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters input, .filters select, .form input, .form select, .form textarea,
.input, .card input.input, .card select.input {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font: inherit;
}
.filters input { min-width: 180px; }
.form { display: grid; gap: 10px; }
.form label, .card label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.form textarea { min-height: 80px; resize: vertical; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--panel-2);
}
tr:hover td { background: rgba(0, 212, 255, 0.05); }
a.link, .link-btn {
  color: #0e7490;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
a.link:hover, .link-btn:hover { text-decoration: underline; color: #155e75; }

.alarm-table .alarm-row {
  cursor: pointer;
}
.alarm-table .alarm-row:hover td {
  background: rgba(0, 212, 255, 0.08);
}
.alarm-table .alarm-open {
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.sev-critical { background: var(--crit-bg); color: var(--crit); border-color: #ef9a9a; }
.sev-high { background: var(--high-bg); color: var(--high); border-color: #ffcc80; }
.sev-medium { background: var(--med-bg); color: var(--med); border-color: #ffe082; }
.sev-low { background: var(--low-bg); color: var(--low); border-color: #a5d6a7; }
.st-active { color: var(--crit); font-weight: 700; }

.stack { display: grid; gap: 12px; }
.list { margin: 0; padding-left: 18px; }
.list li { margin: 6px 0; }
.source-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 6px;
  background: var(--panel-2);
}
.note {
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 13px;
}
.mono { font-family: var(--mono); font-size: 12.5px; }
.split-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.span-2 { grid-column: 1 / -1; }

.demo-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
button.demo-preset {
  text-align: left;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}
button.demo-preset:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
button.demo-preset:disabled { opacity: 0.55; cursor: wait; }
.demo-preset-title { font-weight: 700; margin-bottom: 4px; font-size: 13px; }
.demo-log { display: grid; gap: 8px; margin-top: 12px; }
.demo-log-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

/* —— 运行看板 —— */
.ops-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  margin-bottom: 12px;
}
.ops-banner.is-alert {
  border-left-color: var(--crit);
  background: #fff8f7;
}
.ops-banner-title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.ops-banner-meta {
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.metric-cell {
  background: var(--panel);
  padding: 12px 14px;
  min-height: 78px;
}
.metric-cell .label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.metric-cell .value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.metric-cell .hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.metric-cell.is-crit .value { color: var(--crit); }
.metric-cell.is-high .value { color: var(--high); }
.metric-cell.is-accent .value { color: var(--accent); }
.metric-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: var(--panel-2);
  padding: 10px 12px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.panel-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.panel-body { padding: 0; }

/* 兼容旧类名 */
.dash-kpi-strip,
.dash-kpi-strip-6,
.downtime-strip { display: none; }
.dash-kpi, .downtime-card { display: none; }

.online-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.online-tech {
  border: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  background: var(--panel);
}
.online-tech.is-free { box-shadow: inset 3px 0 0 var(--ok); }
.online-tech.is-busy { box-shadow: inset 3px 0 0 var(--busy); }
.online-tech-name { font-weight: 700; margin-bottom: 4px; font-size: 14px; }
.online-tech-status {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ok);
}
.online-tech.is-busy .online-tech-status { color: var(--busy); }

.crew-table { width: 100%; }
.crew-table th, .crew-table td { padding: 8px 12px; }

.dash-section { margin-top: 0; margin-bottom: 12px; }
.dash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-bottom: none;
  background: var(--panel-2);
}
.dash-section-head h3 {
  margin: 0;
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.dash-empty {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  background: var(--panel);
}

.alarm-card-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
a.alarm-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: none;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 0;
  padding: 10px 12px;
  transition: background .12s;
}
a.alarm-card:last-child { border-bottom: none; }
a.alarm-card:hover {
  background: #f3f6f9;
  transform: none;
}
a.alarm-card.sev-critical { border-left-color: var(--crit); }
a.alarm-card.sev-high { border-left-color: var(--high); }
a.alarm-card.sev-medium { border-left-color: #c9a227; }
a.alarm-card.sev-low { border-left-color: var(--low); }

.alarm-card-top {
  display: contents;
}
.alarm-card-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.alarm-card-title .mono {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.alarm-card-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.alarm-card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  grid-column: 2;
}
.alarm-card-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-top: 0;
  font-size: 12px;
  color: var(--muted);
  border-top: none;
  padding-top: 0;
  text-align: right;
  white-space: nowrap;
}
.alarm-card-foot .link { font-weight: 600; }

.dash-more {
  margin-top: 4px;
}
.dash-more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 0;
}

@media (max-width: 1200px) {
  .metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-actions { grid-column: 1 / -1; flex-direction: row; }
  a.alarm-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .alarm-card-meta { grid-column: 1; }
  .alarm-card-foot {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 1100px) {
  .shell { padding-left: 0; }
  .demo-banner { margin-left: 0; }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    bottom: auto;
    z-index: auto;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    overflow: visible;
    box-shadow: none;
    transform: none;
  }
  .shell.sidebar-hidden .sidebar {
    display: none;
    transform: none;
    pointer-events: none;
  }
  .brand { border-bottom: none; border-right: 1px solid rgba(255,255,255,.08); }
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px;
    gap: 2px;
  }
  .nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 8px 10px;
  }
  .nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent-cyan);
  }
  .sidebar-foot {
    margin-top: 0;
    margin-left: auto;
    border-top: none;
    border-left: 1px solid rgba(255,255,255,.08);
  }
  .grid-4, .grid-2, .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid-4, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .view { padding: 12px; }
}

/* —— AI 预测中心 —— */
.pred-metrics { margin-bottom: 12px; }
.pred-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 12px;
  align-items: start;
}
.pred-dist { padding: 14px; }
.dist-row {
  display: grid;
  grid-template-columns: 110px 1fr 28px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}
.dist-label { color: var(--muted); }
.dist-track {
  height: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.dist-fill { height: 100%; }
.dist-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.trend-wrap { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 4px; }
.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
  padding-top: 8px;
}
.trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 4px;
}
.trend-bar {
  width: 100%;
  max-width: 28px;
  background: var(--accent);
  opacity: 0.85;
}
.trend-day { font-size: 10px; color: var(--muted); }

.pred-warn-list {
  display: grid;
  gap: 0;
}
.pred-card {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  background: var(--panel);
}
.pred-card:last-child { border-bottom: none; }
.pred-card.risk-high { border-left-color: var(--crit); background: #fffaf9; }
.pred-card.risk-medium { border-left-color: var(--high); background: #fffdf8; }
.pred-card.risk-low { border-left-color: #c9a227; }
.pred-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.pred-idx {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.risk-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.risk-tag.risk-high { background: var(--crit-bg); color: var(--crit); border-color: #ef9a9a; }
.risk-tag.risk-medium { background: var(--high-bg); color: var(--high); border-color: #ffcc80; }
.risk-tag.risk-low { background: var(--med-bg); color: var(--med); border-color: #ffe082; }
.pred-eq {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.pred-fault {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 8px;
}
.pred-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.pred-drivers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.driver-chip {
  font-size: 11px;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 2px 8px;
}
.pred-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.pred-more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.pred-more .list { margin-top: 6px; font-size: 13px; }

@media (max-width: 1100px) {
  .pred-layout { grid-template-columns: 1fr; }
}

/* —— 运行监视首页（参考 AEWAY 布局） —— */
.top-meta { display:flex; gap:10px; align-items:center; }
.top-chip {
  display:inline-flex; align-items:center; gap:6px;
  background:#fff; border:1px solid var(--line); border-radius:999px;
  padding:4px 10px; font-size:12px; color:var(--muted);
}
.top-chip .ico { width:22px; height:22px; border-radius:999px; }
.top-chip .ico img { width:12px; height:12px; }

.ico {
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center; flex:0 0 auto;
}
.ico img { width:20px; height:20px; display:block; }
.ico.tone-blue,.ico.tone-soft { background:#e8f1ff; }
.ico.tone-orange { background:#fff3e0; }
.ico.tone-red { background:#fdecea; }
.ico.tone-green { background:#e8f8ef; }
.ico.tone-cyan { background:#e6f7fb; }

.btn-sm { padding:5px 10px; font-size:12px; }

.home { display:grid; gap:8px; height:100%; grid-template-rows: auto minmax(0,1.05fr) minmax(0,.95fr) minmax(0,.85fr); overflow:hidden; }
.home-kpi-row {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.home-kpi {
  background:#fff;
  border:1px solid #e6ebf2;
  border-radius:12px;
  padding:8px 10px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.home-kpi-top { display:flex; justify-content:flex-start; align-items:center; gap:8px; }
.home-kpi-label { margin-top:0; font-size:12px; color:var(--muted); }
.home-kpi-value {
  margin-top:2px; font-size:20px; font-weight:700;
  font-variant-numeric:tabular-nums; letter-spacing:-0.02em;
}
.home-kpi-delta { margin-top:2px; font-size:11px; font-weight:600; }

.home-card {
  background:#fff;
  border:1px solid #e6ebf2;
  border-radius:12px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
  overflow:hidden;
  min-height:0;
  display:flex;
  flex-direction:column;
}
.home-card-head {
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 12px; border-bottom:1px solid #eef2f6;
  flex-shrink:0;
}
.home-card-head h3 {
  margin:0; font-size:13px; font-weight:700; color:var(--text);
  letter-spacing:0; text-transform:none;
}
.home-card-body { padding:8px 12px; min-height:0; overflow:hidden; flex:1; }
.home-card-foot { padding:0 12px 8px; }

.home-grid-mid {
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  gap:8px;
  min-height:0;
}
.home-grid-low {
  display:grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap:8px;
  min-height:0;
}
.home-grid-bottom {
  display:grid;
  grid-template-columns: 1.15fr 1fr;
  gap:8px;
  min-height:0;
}

.donut-wrap { position:relative; margin:0 auto; }
.donut-center {
  position:absolute; inset:0; display:grid; place-content:center; text-align:center;
}
.donut-n { font-size:28px; font-weight:700; line-height:1; }
.donut-s { font-size:12px; color:var(--muted); margin-top:4px; }
.health-board {
  display:grid; grid-template-columns:120px 1fr; gap:10px; align-items:center;
}
.legend { display:grid; gap:8px; font-size:13px; }
.legend .dot, .wo-row .dot, .dot {
  width:8px; height:8px; border-radius:999px; display:inline-block; margin-right:8px;
}

.ai-warn-list { display:grid; gap:6px; }
.ai-warn-item {
  display:block;
  text-decoration:none; color:inherit;
  border:1px solid #eef2f6; border-radius:10px; padding:8px 10px;
  background:#fafbfd;
}
.ai-warn-item:hover { border-color:#c9daf0; background:#f5f9ff; }
.ai-warn-head { display:flex; gap:8px; align-items:center; margin-bottom:4px; }
.ai-warn-title { font-size:12px; color:var(--muted); }
.ai-warn-fault { font-size:13px; font-weight:600; margin:2px 0; }
.ai-warn-foot { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--muted); }
.ai-warn-foot .pct { color:#2563eb; font-weight:700; }
.ai-warn-thumb {
  width:56px; height:56px; border-radius:12px;
  display:grid; place-items:center;
}
.ai-warn-thumb img { width:26px; height:26px; }
.ai-warn-thumb.tone-red { background:#fdecea; }
.ai-warn-thumb.tone-orange { background:#fff3e0; }
.ai-warn-thumb.tone-blue { background:#e8f1ff; }

.line-badges { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.line-badge {
  font-size:12px; padding:4px 10px; border-radius:999px; border:1px solid var(--line);
  background:#f8fafc; font-weight:600;
}
.line-badge.ln-ok { color:#15803d; background:#ecfdf3; border-color:#bbf7d0; }
.line-badge.ln-warn { color:#c2410c; background:#fff7ed; border-color:#fed7aa; }
.line-badge.ln-crit { color:#b91c1c; background:#fef2f2; border-color:#fecaca; }

.line-visual {
  background:linear-gradient(180deg,#f8fbff,#eef4fb);
  border:1px solid #e6eef8; border-radius:12px; padding:18px 12px; margin-bottom:12px;
}
.line-track {
  display:flex; align-items:center; justify-content:center; gap:0; flex-wrap:wrap;
}
.line-node {
  width:88px; text-align:center; font-size:12px; font-weight:600;
}
.line-node-ico {
  width:48px; height:48px; margin:0 auto 6px; border-radius:12px;
  display:grid; place-items:center; background:#fff; border:1px solid #dbe7f5;
}
.line-node-ico img { width:22px; height:22px; }
.line-node.is-ok .line-node-ico { box-shadow:inset 0 0 0 2px #86efac; }
.line-node.is-warn .line-node-ico { box-shadow:inset 0 0 0 2px #fdba74; }
.line-node.is-crit .line-node-ico { box-shadow:inset 0 0 0 2px #fca5a5; }
.line-conn {
  width:28px; height:2px; background:#c5d4e8; margin:0 2px 22px;
}
.line-stats {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px;
}
.line-stats > div {
  display:flex; gap:8px; align-items:center;
  background:#f8fafc; border:1px solid #eef2f6; border-radius:10px; padding:8px;
}
.line-stats .ico { width:32px; height:32px; border-radius:10px; }
.line-stats .ico img { width:16px; height:16px; }

.wo-board {
  display:grid; grid-template-columns:110px 1fr; gap:8px; align-items:center;
}
.wo-side { display:grid; gap:8px; }
.wo-row { display:flex; align-items:center; gap:6px; font-size:13px; }
.wo-row strong { margin-left:auto; }

.task-list { display:grid; gap:6px; }
.task-row {
  display:grid; grid-template-columns:44px 1fr auto; gap:8px; align-items:center;
  border:1px solid #eef2f6; border-radius:8px; padding:6px 8px; background:#fafbfd;
}
.urg {
  font-size:11px; font-weight:700; text-align:center; padding:4px 0; border-radius:6px;
}
.urg-crit { background:#fef2f2; color:#b91c1c; }
.urg-high { background:#fff7ed; color:#c2410c; }
.urg-norm { background:#f1f5f9; color:#475569; }
.task-title { font-size:13px; font-weight:600; margin-bottom:2px; }

.dt-board { display:grid; gap:8px; }
.dt-kpis { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.dt-kpis > div {
  background:#f8fafc; border:1px solid #eef2f6; border-radius:10px; padding:8px;
}
.dt-val { margin-top:2px; font-size:18px; font-weight:700; color:#1A2A5E; }
.cause-row {
  display:grid; grid-template-columns:120px 1fr 64px; gap:8px; align-items:center;
  margin-bottom:8px; font-size:12px;
}
.cause-name { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cause-bar {
  height:8px; background:#eef2f6; border-radius:999px; overflow:hidden;
}
.cause-bar i {
  display:block; height:100%; background:#00D4FF; border-radius:999px;
}
.cause-n { text-align:right; font-weight:700; font-variant-numeric:tabular-nums; }

.crew-head-meta { display:flex; align-items:center; gap:10px; }
.crew-wrap {
  display:flex;
  align-items:stretch;
  gap:6px;
  min-height:0;
}
.crew-nav {
  flex:0 0 28px;
  width:28px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:8px;
  color:var(--text);
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  line-height:1;
}
.crew-nav:hover { background:#f5f9ff; border-color:#b7c9e0; }
.crew-scroller {
  display:flex;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  flex:1;
  min-width:0;
  padding:2px 2px 4px;
  scrollbar-width:thin;
}
.crew-scroller::-webkit-scrollbar { height:4px; }
.crew-scroller::-webkit-scrollbar-thumb { background:#c5d0de; border-radius:99px; }
.crew-person {
  flex:0 0 112px;
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:4px;
  padding:10px 8px 8px;
  border:1px solid #eef2f6;
  border-radius:12px;
  background:#fafbfd;
  min-height:118px;
}
.crew-person:hover { border-color:#b7c9e0; background:#f8fbff; }
.crew-avatar {
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center;
  font-weight:800; font-size:16px; color:#fff;
  background:#1b5e20;
}
.crew-person.is-busy .crew-avatar,
.crew-person.is-st-assigned .crew-avatar { background:#1A2A5E; }
.crew-person.is-st-viewed .crew-avatar { background:#0e7490; }
.crew-person.is-st-accepted .crew-avatar { background:#1b5e20; }
.crew-person.is-st-arrived .crew-avatar { background:#e65100; }
.crew-person.is-st-repairing .crew-avatar { background:#b45309; }
.crew-person.is-st-completed .crew-avatar { background:#166534; }
.crew-name {
  font-weight:700; font-size:13px; line-height:1.2;
  max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.crew-dept, .crew-skill {
  font-size:11px; color:var(--muted); line-height:1.2;
  max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.crew-st {
  font-size:11px; font-weight:700;
  padding:2px 8px; border-radius:999px;
  background:#e8f5e9; color:#1b5e20;
}
.crew-st.is-free { background:#e8f5e9; color:#1b5e20; }
.crew-st.is-st-assigned { background:#e8f0f7; color:#1A2A5E; }
.crew-st.is-st-viewed { background:#e0f7fa; color:#0e7490; }
.crew-st.is-st-accepted { background:#e8f5e9; color:#1b5e20; }
.crew-st.is-st-arrived { background:#fff3e0; color:#e65100; }
.crew-st.is-st-repairing { background:#fff8e1; color:#b45309; }
.crew-st.is-st-completed { background:#dcfce7; color:#166534; }
.crew-person.is-busy .crew-st,
.crew-person.is-st-assigned .crew-st { background:#e8f0f7; color:#1A2A5E; }
.crew-person.is-st-viewed .crew-st { background:#e0f7fa; color:#0e7490; }
.crew-person.is-st-accepted .crew-st { background:#e8f5e9; color:#1b5e20; }
.crew-person.is-st-arrived .crew-st { background:#fff3e0; color:#e65100; }
.crew-person.is-st-repairing .crew-st { background:#fff8e1; color:#b45309; }
.crew-person.is-st-completed .crew-st { background:#dcfce7; color:#166534; }
.crew-person.is-free { box-shadow: inset 0 0 0 1px rgba(27,94,32,.12); }
.crew-person.is-busy,
.crew-person.is-st-assigned { box-shadow: inset 0 0 0 1px rgba(26,42,94,.16); }
.crew-person.is-st-viewed { box-shadow: inset 0 0 0 1px rgba(14,116,144,.16); }
.crew-person.is-st-accepted { box-shadow: inset 0 0 0 1px rgba(27,94,32,.16); }
.crew-person.is-st-arrived { box-shadow: inset 0 0 0 1px rgba(230,81,0,.16); }
.crew-person.is-st-repairing { box-shadow: inset 0 0 0 1px rgba(180,83,9,.16); }

@media (max-width: 1200px) {
  .home-kpi-row { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .home-grid-mid, .home-grid-low, .home-grid-bottom { grid-template-columns:1fr; }
  .line-stats { grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px) {
  .home-kpi-row { grid-template-columns:1fr 1fr; }
  .health-board, .wo-board { grid-template-columns:1fr; }
  .task-row { grid-template-columns:1fr; }
}



/* —— 首页可点与尺寸修正 —— */
a.home-kpi, a.home-card, a.task-row, a.crew-card, a.line-stat, a.dt-kpi, a.ai-warn-item, a.dash-empty.is-link, a.top-chip {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.home-kpi.is-link, .home-card.is-link {
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.home-kpi.is-link:hover, .home-card.is-link:hover {
  border-color: #b7c9e0;
  box-shadow: 0 4px 14px rgba(15,76,129,.08);
  transform: translateY(-1px);
}
.home-kpi {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 10px;
}
.home-kpi-label {
  margin-top: 0;
  font-size: 12px;
  font-weight: 600;
  color: #5a6878;
  letter-spacing: 0.01em;
}
.home-kpi-value {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
  word-break: break-word;
}
.home-kpi-delta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
  min-height: 0;
}
.home-kpi-go { display: none; }
.view-home .ico { width: 28px; height: 28px; border-radius: 8px; }
.view-home .ico img { width: 14px; height: 14px; }
.view-home .donut-n { font-size: 18px; }
.view-home .donut-s { font-size: 11px; margin-top: 2px; }
.view-home .hl-range { display: none; }
.view-home .hl-item { padding: 4px 0; }
.view-home .task-go { font-size: 11px; }
.view-home .crew-person { min-height: 110px; padding: 8px 6px; }
.risk-tag {
  font-size: 12px;
  line-height: 1.2;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.urg {
  min-width: 44px;
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 4px;
  border-radius: 6px;
}
.legend > div, .wo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.legend-label { color: var(--muted); flex: 1; }
.legend strong, .wo-row strong {
  font-variant-numeric: tabular-nums;
  min-width: 24px;
  text-align: right;
}
.line-badge {
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  padding: 6px 12px;
}
.line-badge:hover { filter: brightness(0.97); }
button.line-node {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
  color: inherit;
}
.line-node-name {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}
.line-stat {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 8px;
  text-decoration: none;
  color: inherit;
}
.line-stat:hover { border-color: #b7c9e0; background: #f3f8ff; }
.line-stats > div { display: contents; } /* legacy */
.task-row.is-link {
  text-decoration: none;
  color: inherit;
}
.task-row.is-link:hover { border-color: #b7c9e0; background: #f3f8ff; }
.task-go {
  font-size: 12px;
  font-weight: 700;
  color: #1A2A5E;
  white-space: nowrap;
}
.task-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}
.cause-row.is-btn {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
}
.cause-row.is-btn:hover .cause-name { color: #1A2A5E; }
.dt-kpi {
  display: block;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}
.dt-kpi:hover { border-color: #b7c9e0; background: #f3f8ff; }
.dt-val {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #1A2A5E;
}
.crew-card.is-link:hover { border-color: #b7c9e0; background: #f8fbff; }
.dash-empty.is-link {
  display: block;
  color: var(--muted);
}
.dash-empty.is-link:hover { color: #1A2A5E; }
.ai-warn-fault {
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-card-head h3 { font-size: 13px; }



/* —— 健康分布图例 —— */
.health-board {
  display: grid;
  grid-template-columns: 118px minmax(140px, 1fr);
  gap: 10px;
  align-items: center;
}
.health-legend {
  display: grid;
  gap: 6px;
}
.hl-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fafbfd;
}
.hl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.hl-text { min-width: 0; }
.hl-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a2330;
  line-height: 1.2;
}
.hl-range {
  margin-top: 2px;
  font-size: 12px;
  color: #7a8796;
  line-height: 1.2;
}
.hl-count {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1A2A5E;
  line-height: 1;
  white-space: nowrap;
}
.hl-count small {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #7a8796;
}
.donut-n { font-size: 26px; }
.donut-s { font-size: 12px; letter-spacing: 0; }
@media (max-width: 720px) {
  .health-board { grid-template-columns: 1fr; justify-items: center; }
  .health-legend { width: 100%; }
}



/* —— AEWAY Wordmark（与官网一致） —— */
a.brand.brand-wordmark {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 16px 18px;
  text-decoration: none;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand-wordmark .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #1A2A5E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.brand-wordmark .logo-mark span {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: none;
  filter: none;
}
.brand-wordmark .logo-mark::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.55);
}
.brand-wordmark .logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.wm-en,
.brand-wordmark .logo-en {
  display: block;
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.1em;
  line-height: 1.1;
  color: #FFFFFF;
  text-shadow: none;
  filter: none;
}
.wm-en .wm-accent {
  color: var(--accent-cyan);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
.wm-zh,
.brand-wordmark .logo-cn {
  display: block;
  color: #C5D2E6;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
  padding-left: 1px;
  text-shadow: none;
  filter: none;
}
.wm-zh b { font-weight: 600; }
.wm-zh span { display: none; }
.wm-tag {
  display: none;
}
a.brand.brand-wordmark:hover .logo-en,
a.brand.brand-wordmark:hover .wm-en {
  color: #ffffff;
}
a.brand.brand-wordmark:hover .logo-cn,
a.brand.brand-wordmark:hover .wm-tag {
  color: #E2EAF6;
}
@media (max-width: 1100px) {
  a.brand.brand-wordmark {
    min-width: 150px;
    padding: 12px 14px;
    border-right: 1px solid rgba(255,255,255,.1);
    border-bottom: none;
  }
  .brand-wordmark .logo-en,
  .wm-en { font-size: 16px; }
  .brand-wordmark .logo-cn,
  .wm-zh { font-size: 12px; }
}

/* —— 通知中心 —— */
.notify-page { display: grid; gap: 16px; }
.nt-machine {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin-top: 12px;
}
.nt-node {
  display: inline-block; padding: 6px 10px; border-radius: 999px;
  background: rgba(26,42,94,.06); color: var(--text); font-size: 12px; font-weight: 700;
}
.nt-node.is-core {
  background: rgba(255,107,53,.14); color: #c2410c;
}
.nt-arrow { color: var(--muted); font-size: 12px; padding: 0 2px; }
.kpi-unit { font-size: 14px; font-weight: 600; color: var(--muted); }
.nt-funnel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-top: 8px;
}
.nt-funnel-item {
  min-width: 78px; text-align: center; padding: 10px 8px;
  background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 12px;
}
.nt-funnel-n { font-size: 22px; font-weight: 800; color: var(--text); }
.nt-funnel-sep { color: var(--muted); font-weight: 700; }
.nt-channels { display: flex; flex-wrap: wrap; gap: 10px; }
.nt-ch-toggle {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.7);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.nt-ch-toggle em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 500; }
.nt-policies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nt-policy-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.nt-policy-head h3 { margin: 0; font-size: 16px; text-transform: none; letter-spacing: 0; border: none; padding: 0; color: var(--text); }
.nt-steps { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 12px; }
.nt-step-role { font-weight: 700; font-size: 13px; }
.nt-step-ch { margin: 4px 0 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.nt-ch {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: rgba(0,212,255,.12); color: #0A7A96;
}
.nt-wait { font-size: 12px; color: var(--muted); display: grid; gap: 4px; max-width: 160px; }
.nt-st {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.st-sent { background: #eef2f6; color: #5A6A8E; }
.st-delivered { background: #e8f0f7; color: #1A2A5E; }
.st-viewed { background: #e0f7fa; color: #0e7490; }
.st-accepted { background: #e8f5e9; color: #1b5e20; }
.st-arrived { background: #fff3e0; color: #e65100; }
.st-repairing { background: #fff8e1; color: #b45309; }
.st-completed { background: #e8f5e9; color: #1b5e20; }
.st-escalated { background: #fdecea; color: #b71c1c; }
.st-failed { background: #f3e5f5; color: #6a1b9a; }
.split-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }

/* 语音对讲 */
.voice-page .voice-form {
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center;
  font-size: 13px; font-weight: 600;
}
.voice-page .voice-form label { display: inline-flex; align-items: center; gap: 6px; }
.voice-queue { display: grid; gap: 10px; }
.voice-q-item {
  padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,.55);
}
.voice-q-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.voice-q-item .btn { margin-top: 8px; }
#radio-transcript {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  font: inherit; background: rgba(255,255,255,.7); color: var(--text);
}
@media (max-width: 1100px) {
  .nt-policies { grid-template-columns: 1fr; }
}
