/* ============================================================
   苜星能源运维管理平台 · 设计系统
   方向：调度中心明亮工作台 / 深海军蓝导航 / 青绿运行色
   ============================================================ */

:root {
  --bg: #eef2f6;
  --bg-soft: #f4f7fa;
  --panel: #ffffff;
  --panel-2: #f7f9fb;
  --panel-3: #eef3f7;
  --rail: #0c202d;
  --rail-2: #102a3a;
  --rail-text: #dbe7ee;
  --rail-muted: #7890a0;
  --text: #132635;
  --text-2: #576a7b;
  --text-3: #8797a6;
  --line: #dce5ec;
  --line-2: #e9eff4;
  --line-strong: #c8d5df;
  --accent: #0e9384;
  --accent-deep: #0b766b;
  --accent-soft: rgba(14, 147, 132, .1);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, .09);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, .1);
  --red: #c2415d;
  --red-soft: rgba(194, 65, 93, .1);
  --violet: #7048c8;
  --violet-soft: rgba(112, 72, 200, .1);
  --green: #0e9384;
  --ring-track: #e8eff4;
  --shadow: 0 10px 28px rgba(18, 45, 66, .055);
  --shadow-lg: 0 20px 52px rgba(18, 45, 66, .13);
  --r-lg: 15px;
  --r: 11px;
  --r-sm: 8px;
  --font: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --head-font: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

[data-theme="dark"] {
  --bg: #07141d;
  --bg-soft: #0a1a25;
  --panel: #0e202c;
  --panel-2: #0b1a24;
  --panel-3: #122936;
  --rail: #06131b;
  --rail-2: #0a1e2a;
  --rail-text: #d8e6ee;
  --rail-muted: #7892a3;
  --text: #e7f0f6;
  --text-2: #9fb2c1;
  --text-3: #6e8798;
  --line: #1b3342;
  --line-2: #142b38;
  --line-strong: #264556;
  --accent: #2dd4bf;
  --accent-deep: #14b8a6;
  --accent-soft: rgba(45, 212, 191, .1);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, .1);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, .1);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, .1);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, .1);
  --green: #2dd4bf;
  --ring-track: #1a3241;
  --shadow: 0 12px 30px rgba(0, 0, 0, .22);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
}

/* ============================================================
   四种界面风格：传统 / 工业 / 科技 / 简明
   通过 html[data-ui] 切换，明暗主题仍可独立切换
   ============================================================ */
html[data-ui="classic"] {
  --accent: #1f6f5c;
  --accent-deep: #155444;
  --accent-soft: rgba(31, 111, 92, .1);
  --blue: #355f86;
  --blue-soft: rgba(53, 95, 134, .09);
  --amber: #b4771c;
  --amber-soft: rgba(180, 119, 28, .1);
  --red: #9e3f3a;
  --red-soft: rgba(158, 63, 58, .1);
  --violet: #6d527f;
  --violet-soft: rgba(109, 82, 127, .1);
  --green: #4f7250;
  --r-lg: 10px;
  --r: 8px;
  --r-sm: 6px;
  --head-font: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --shadow: 0 8px 22px rgba(70, 52, 25, .07);
  --shadow-lg: 0 20px 46px rgba(52, 38, 18, .16);
}
html[data-ui="classic"][data-theme="light"] {
  --bg: #f2ede2;
  --bg-soft: #f7f2e8;
  --panel: #fffdf7;
  --panel-2: #faf5e9;
  --panel-3: #efe6d4;
  --rail: #17251f;
  --rail-2: #1f332a;
  --rail-text: #eee3cc;
  --rail-muted: #a99a7f;
  --text: #2c251b;
  --text-2: #685d4c;
  --text-3: #928572;
  --line: #dfd2bb;
  --line-2: #ece3d3;
  --line-strong: #c9b99e;
  --ring-track: #e8decd;
}
html[data-ui="classic"][data-theme="dark"] {
  --bg: #17150f;
  --bg-soft: #1d1a12;
  --panel: #211d15;
  --panel-2: #19160f;
  --panel-3: #2a251a;
  --rail: #100f0a;
  --rail-2: #191610;
  --rail-text: #f0e6d3;
  --rail-muted: #9d8e75;
  --text: #f0e6d3;
  --text-2: #c0b19a;
  --text-3: #8e806b;
  --line: #3a3123;
  --line-2: #2c261a;
  --line-strong: #4a3e2b;
  --accent: #c9a96a;
  --accent-deep: #a8874a;
  --accent-soft: rgba(201, 169, 106, .12);
  --blue: #8ca9c4;
  --amber: #d9a441;
  --red: #d47a70;
  --violet: #b79ac9;
  --green: #8fb08a;
  --ring-track: #3a3123;
}
html[data-ui="classic"] body {
  background:
    radial-gradient(1000px 520px at 8% -12%, rgba(167, 128, 58, .1), transparent 60%),
    radial-gradient(900px 500px at 96% 0%, rgba(31, 111, 92, .06), transparent 55%),
    var(--bg);
}
html[data-ui="classic"] .brand-name,
html[data-ui="classic"] .login-brand h1,
html[data-ui="classic"] .page-head h1,
html[data-ui="classic"] .cat-banner h2 { letter-spacing: .02em; }

html[data-ui="industrial"] {
  --accent: #c2761c;
  --accent-deep: #97580f;
  --accent-soft: rgba(194, 118, 28, .12);
  --blue: #3f6f8f;
  --blue-soft: rgba(63, 111, 143, .1);
  --amber: #c2761c;
  --amber-soft: rgba(194, 118, 28, .12);
  --red: #b24a3a;
  --red-soft: rgba(178, 74, 58, .1);
  --violet: #7a6585;
  --violet-soft: rgba(122, 101, 133, .1);
  --green: #617a4e;
  --r-lg: 2px;
  --r: 2px;
  --r-sm: 1px;
  --head-font: "Bahnschrift", "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  --shadow: 0 0 0 1px rgba(0, 0, 0, .03);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, .24);
}
html[data-ui="industrial"][data-theme="light"] {
  --bg: #e9ebe7;
  --bg-soft: #eff1ed;
  --panel: #f8f9f6;
  --panel-2: #f1f3ef;
  --panel-3: #e4e7e1;
  --rail: #252b2e;
  --rail-2: #30383b;
  --rail-text: #e5e9e4;
  --rail-muted: #9aa5a2;
  --text: #22261f;
  --text-2: #5e6559;
  --text-3: #858d80;
  --line: #cfd4c9;
  --line-2: #dfe3da;
  --line-strong: #b7bfae;
  --ring-track: #d9ded3;
}
html[data-ui="industrial"][data-theme="dark"] {
  --bg: #191d1b;
  --bg-soft: #1f2421;
  --panel: #232927;
  --panel-2: #1b201e;
  --panel-3: #2b3330;
  --rail: #101412;
  --rail-2: #1a201d;
  --rail-text: #e7ece7;
  --rail-muted: #7f8c84;
  --text: #e7ece7;
  --text-2: #aeb8b0;
  --text-3: #7f8c84;
  --line: #353e3a;
  --line-2: #2a322f;
  --line-strong: #48534e;
  --accent: #e0912f;
  --accent-deep: #c2761c;
  --accent-soft: rgba(224, 145, 47, .12);
  --blue: #6da0bf;
  --amber: #e0a13d;
  --red: #d46b5b;
  --violet: #a08aad;
  --green: #8ba66f;
  --ring-track: #353e3a;
}
html[data-ui="industrial"] body {
  background:
    repeating-linear-gradient(135deg, rgba(20, 30, 24, .025) 0 1px, transparent 1px 9px),
    var(--bg);
}
html[data-ui="industrial"] h1,
html[data-ui="industrial"] h2,
html[data-ui="industrial"] h3 { letter-spacing: .04em; font-weight: 700; }
html[data-ui="industrial"] .card,
html[data-ui="industrial"] .btn,
html[data-ui="industrial"] .icon-btn,
html[data-ui="industrial"] .global-search,
html[data-ui="industrial"] .nav-item { border-radius: 2px; }
html[data-ui="industrial"] .topbar { border-bottom-width: 2px; }

html[data-ui="tech"] {
  --accent: #0891b2;
  --accent-deep: #06738f;
  --accent-soft: rgba(8, 145, 178, .1);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, .1);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, .1);
  --red: #d6455d;
  --red-soft: rgba(214, 69, 93, .1);
  --violet: #7c3aed;
  --violet-soft: rgba(124, 58, 237, .1);
  --green: #059669;
  --r-lg: 14px;
  --r: 10px;
  --r-sm: 7px;
  --head-font: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
  --shadow: 0 0 0 1px rgba(34, 211, 238, .035), 0 14px 36px rgba(5, 30, 45, .12);
  --shadow-lg: 0 0 0 1px rgba(34, 211, 238, .08), 0 24px 60px rgba(0, 20, 35, .35);
}
html[data-ui="tech"][data-theme="light"] {
  --bg: #eef7fb;
  --bg-soft: #f5fbfe;
  --panel: #ffffff;
  --panel-2: #f1f8fc;
  --panel-3: #e4f1f8;
  --rail: #071823;
  --rail-2: #0b2433;
  --rail-text: #d9f4fb;
  --rail-muted: #6f94a6;
  --text: #0c2535;
  --text-2: #4c6c7d;
  --text-3: #7896a6;
  --line: #cfe4ee;
  --line-2: #e1eff6;
  --line-strong: #b3d6e5;
  --ring-track: #dcebf2;
}
html[data-ui="tech"][data-theme="dark"] {
  --bg: #05111b;
  --bg-soft: #071925;
  --panel: #0a1d2a;
  --panel-2: #071722;
  --panel-3: #0f2836;
  --rail: #030b11;
  --rail-2: #061720;
  --rail-text: #e4f6fc;
  --rail-muted: #628999;
  --text: #e4f6fc;
  --text-2: #9cc0cf;
  --text-3: #628999;
  --line: #133646;
  --line-2: #0d2938;
  --line-strong: #1d4d61;
  --accent: #22d3ee;
  --accent-deep: #06b6d4;
  --accent-soft: rgba(34, 211, 238, .1);
  --blue: #60a5fa;
  --amber: #fbbf24;
  --red: #fb7185;
  --violet: #a78bfa;
  --green: #34d399;
  --ring-track: #133646;
}
html[data-ui="tech"] body {
  background:
    linear-gradient(rgba(8, 145, 178, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, .045) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
}
html[data-ui="tech"][data-theme="dark"] body {
  background:
    linear-gradient(rgba(34, 211, 238, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .05) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
}
html[data-ui="tech"] .card { box-shadow: 0 0 0 1px rgba(8, 145, 178, .045), var(--shadow); }
html[data-ui="tech"] .rail { box-shadow: inset -1px 0 0 rgba(34, 211, 238, .14); }
html[data-ui="tech"] .topbar { border-bottom-color: color-mix(in srgb, var(--accent) 24%, var(--line)); }

html[data-ui="minimal"] {
  --accent: #111827;
  --accent-deep: #000000;
  --accent-soft: rgba(17, 24, 39, .06);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, .07);
  --amber: #b45309;
  --amber-soft: rgba(180, 83, 9, .07);
  --red: #b91c1c;
  --red-soft: rgba(185, 28, 28, .07);
  --violet: #6d28d9;
  --violet-soft: rgba(109, 40, 217, .07);
  --green: #047857;
  --r-lg: 6px;
  --r: 5px;
  --r-sm: 4px;
  --shadow: none;
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .08);
}
html[data-ui="minimal"][data-theme="light"] {
  --bg: #f7f8fa;
  --bg-soft: #fbfbfc;
  --panel: #ffffff;
  --panel-2: #fafbfc;
  --panel-3: #f1f3f5;
  --rail: #111827;
  --rail-2: #1f2937;
  --rail-text: #f9fafb;
  --rail-muted: #9ca3af;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --line: #e5e7eb;
  --line-2: #f0f1f3;
  --line-strong: #d1d5db;
  --ring-track: #e5e7eb;
}
html[data-ui="minimal"][data-theme="dark"] {
  --bg: #0b0d10;
  --bg-soft: #101317;
  --panel: #15181d;
  --panel-2: #101317;
  --panel-3: #1d2229;
  --rail: #080a0c;
  --rail-2: #11151a;
  --rail-text: #f3f4f6;
  --rail-muted: #6b7280;
  --text: #f3f4f6;
  --text-2: #b5bcc7;
  --text-3: #6b7280;
  --line: #262b33;
  --line-2: #1b2027;
  --line-strong: #3a414b;
  --accent: #e5e7eb;
  --accent-deep: #ffffff;
  --accent-soft: rgba(255, 255, 255, .07);
  --ring-track: #262b33;
}
html[data-ui="minimal"] body { background: var(--bg); }
html[data-ui="minimal"] .card { box-shadow: none; }
html[data-ui="minimal"] .topbar { background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-ui="minimal"] .rail { box-shadow: none; }
html[data-ui="classic"][data-theme="dark"] .btn.primary,
html[data-ui="industrial"][data-theme="dark"] .btn.primary,
html[data-ui="tech"][data-theme="dark"] .btn.primary,
html[data-ui="minimal"][data-theme="dark"] .btn.primary { color: #0b1115; box-shadow: none; }
html[data-ui="classic"][data-theme="dark"] .btn.primary:hover,
html[data-ui="industrial"][data-theme="dark"] .btn.primary:hover,
html[data-ui="tech"][data-theme="dark"] .btn.primary:hover,
html[data-ui="minimal"][data-theme="dark"] .btn.primary:hover { color: #0b1115; }


* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 8% -12%, rgba(14, 147, 132, .07), transparent 60%),
    radial-gradient(900px 500px at 96% 0%, rgba(37, 99, 235, .055), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
[data-theme="dark"] body {
  background:
    radial-gradient(1000px 520px at 8% -12%, rgba(45, 212, 191, .06), transparent 60%),
    radial-gradient(900px 500px at 96% 0%, rgba(96, 165, 250, .05), transparent 55%),
    var(--bg);
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--head-font); }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(14, 147, 132, .22); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
::-webkit-scrollbar-track { background: transparent; }

.mono { font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.muted { color: var(--text-3); }
.small { font-size: 11px; }
.block { display: block; }
.spacer { flex: 1 1 auto; }
.ta-r { text-align: right !important; }
.ta-c { text-align: center !important; }
.danger-text { color: var(--red) !important; }

/* ---------------- 骨架 ---------------- */
.app-shell { display: flex; height: 100vh; }
.rail {
  width: 228px; flex: 0 0 228px; height: 100vh;
  background: linear-gradient(180deg, var(--rail), var(--rail-2));
  color: var(--rail-text);
  display: flex; flex-direction: column;
  position: relative; z-index: 40;
  box-shadow: 10px 0 30px rgba(6, 24, 35, .08);
}
.rail::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.brand {
  height: 66px; flex: 0 0 66px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative; z-index: 1;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  background: linear-gradient(145deg, #14b8a6, #0e9384 55%, #1d5fa8);
  color: #062523; font-size: 17px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(20, 184, 166, .22), inset 0 1px 0 rgba(255,255,255,.28);
}
.brand-txt b { display: block; color: #f2f8fb; font-size: 14px; letter-spacing: .6px; line-height: 1.3; }
.brand-txt span { display: block; color: #7292a5; font-size: 8.5px; letter-spacing: 2.1px; margin-top: 1px; }
.brand-ver {
  margin-left: auto; font-size: 8.5px; color: #7f9aab; padding: 2px 5px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 4px;
}
.nav { flex: 1 1 auto; overflow-y: auto; padding: 12px 9px 16px; position: relative; z-index: 1; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); }
.nav-group { margin-bottom: 11px; }
.nav-group h6 {
  margin: 0 0 4px; padding: 0 10px; font-size: 9px; font-weight: 600;
  letter-spacing: 1.8px; color: #5f7d90; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px;
  border-radius: 8px; color: #a9bdc9; font-size: 12.3px; position: relative;
  transition: background .15s, color .15s; user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,.055); color: #eef7fb; }
.nav-item.active {
  color: #fff; background: linear-gradient(90deg, rgba(20,184,166,.19), rgba(20,184,166,.025));
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .15);
}
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2.5px;
  border-radius: 4px; background: #2dd4bf; box-shadow: 0 0 10px #2dd4bf;
}
.nav-ic { width: 17px; height: 17px; flex: 0 0 17px; color: #7391a3; display: inline-flex; }
.nav-ic .ic { width: 16px; height: 16px; }
.nav-item.active .nav-ic { color: #2dd4bf; }
.nav-item .nav-ic[style*="--nc"] { color: var(--nc); }
.nav-badge {
  margin-left: auto; min-width: 19px; height: 17px; padding: 0 5px;
  border-radius: 9px; background: rgba(248, 113, 113, .16); color: #fca5a5;
  font-family: var(--num); font-size: 9.5px; display: grid; place-items: center;
}
.rail-foot {
  flex: 0 0 auto; padding: 12px 16px 15px; border-top: 1px solid rgba(255,255,255,.07);
  font-size: 9.5px; color: #7690a1; line-height: 1.8; position: relative; z-index: 1;
}
.rail-foot b { color: #b9d2de; font-weight: 600; }
.rail-ver { color: #5d7889; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 0 3px rgba(45,212,191,.12); margin-right: 5px; vertical-align: 1px; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; height: 100vh; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  height: 62px; flex: 0 0 62px; display: flex; align-items: center; gap: 12px;
  padding: 0 24px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  position: relative; z-index: 50;
}
.menu-btn { display: none !important; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.crumb i { font-style: normal; color: var(--line-strong); }
.crumb b { color: var(--text); font-weight: 600; }
.global-search {
  position: relative; width: 310px; height: 34px; margin-left: 10px;
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2);
  transition: border-color .15s, box-shadow .15s;
}
.global-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.global-search .ic { width: 15px; height: 15px; color: var(--text-3); flex: 0 0 15px; }
.global-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 11.5px;
}
.global-search input::placeholder { color: var(--text-3); }
.global-search kbd {
  font-family: var(--font); font-size: 9px; color: var(--text-3);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px;
  padding: 1px 5px; background: var(--panel);
}
.date-chip { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.sync-chip {
  height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 9px;
  border-radius: 7px; background: var(--accent-soft); color: var(--accent-deep);
  font-size: 10.5px; white-space: nowrap;
}
.sync-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sync-chip b { font-family: var(--num); font-size: 10px; }
.icon-btn {
  width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--panel); color: var(--text-2);
  display: inline-grid; place-items: center; position: relative; transition: all .15s;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--text); background: var(--panel-2); }
.icon-btn .ic { width: 17px; height: 17px; }
.icon-btn.sm { width: 26px; height: 26px; flex-basis: 26px; border-radius: 7px; }
.icon-btn.sm .ic { width: 14px; height: 14px; }
.notify-badge {
  position: absolute; top: -4px; right: -4px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff; font-size: 8.5px; font-family: var(--num);
  display: grid; place-items: center; border: 2px solid var(--panel); box-sizing: content-box;
}
.user-chip {
  height: 40px; display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 4px;
  border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left;
}
.user-chip:hover { background: var(--panel-2); border-color: var(--line); }
.user-text b { display: block; font-size: 11.5px; line-height: 1.3; }
.user-text small { display: block; font-size: 9px; color: var(--text-3); }
.chev { width: 12px; height: 12px; color: var(--text-3); }
.avatar {
  display: inline-grid; place-items: center; border-radius: 50%;
  background: linear-gradient(145deg, var(--av, #0e9384), color-mix(in srgb, var(--av, #0e9384) 62%, #0b2a3a));
  color: #fff; font-weight: 600; letter-spacing: .4px; flex: 0 0 auto;
}
.top-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* 顶栏浮层 */
.top-pop {
  position: absolute; top: calc(100% + 8px); right: 96px; z-index: 80;
  width: 338px; max-height: 430px; overflow: auto; display: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow-lg); padding: 8px;
}
.top-pop.open { display: block; animation: popIn .16s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.style-pop { right: 152px; width: 360px; padding: 8px; }
.style-option { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; }
.style-option:hover { background: var(--panel-2); }
.style-option.active { border-color: var(--accent); background: var(--accent-soft); }
.style-option > div { flex: 1 1 auto; min-width: 0; }
.style-option b { display: block; font-size: 11px; }
.style-option > div > span { display: block; font-size: 8px; color: var(--text-3); margin-top: 2px; }
.style-option .style-preview { display: grid; font-size: 0; color: inherit; margin: 0; }
.style-option em { font-style: normal; font-size: 8px; color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; }
.style-option > .ic { width: 15px; height: 15px; color: var(--accent); flex: 0 0 15px; }
.style-preview { width: 54px; height: 38px; flex: 0 0 54px; border-radius: 6px; border: 1px solid var(--line); display: grid; grid-template-columns: 12px 1fr; grid-template-rows: 11px 1fr; gap: 3px; padding: 4px; overflow: hidden; }
.style-preview i { display: block; border-radius: 2px; }
.style-preview i:first-child { grid-row: span 2; }
.style-preview i:nth-child(2) { opacity: .75; }
.style-preview i:nth-child(3) { opacity: .45; }
.style-preview[data-style="classic"] { background: #f2ede2; }
.style-preview[data-style="classic"] i { background: #1f6f5c; }
.style-preview[data-style="classic"] i:nth-child(2) { background: #b4771c; }
.style-preview[data-style="industrial"] { background: #e9ebe7; }
.style-preview[data-style="industrial"] i { background: #252b2e; border-radius: 0; }
.style-preview[data-style="industrial"] i:nth-child(2) { background: #c2761c; }
.style-preview[data-style="tech"] { background: #071823; border-color: #133646; }
.style-preview[data-style="tech"] i { background: #22d3ee; }
.style-preview[data-style="tech"] i:nth-child(2) { background: #60a5fa; }
.style-preview[data-style="minimal"] { background: #fff; }
.style-preview[data-style="minimal"] i { background: #111827; }
.style-preview[data-style="minimal"] i:nth-child(2) { background: #d1d5db; }
.style-pop-foot { padding: 8px 9px 3px; border-top: 1px solid var(--line-2); margin-top: 4px; color: var(--text-3); font-size: 8px; }
.search-pop { left: 0; right: auto; top: calc(100% + 7px); width: 420px; max-height: 470px; padding: 8px; }
.user-pop { right: 18px; width: 260px; padding: 7px; }
.notify-pop { right: 82px; width: 350px; }
.pop-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 9px 9px; border-bottom: 1px solid var(--line-2); }
.pop-head b { font-size: 12.5px; }
.pop-head span { font-size: 9.5px; color: var(--text-3); }
.pop-item { display: flex; gap: 9px; padding: 9px; border-radius: 8px; align-items: flex-start; }
.pop-item:hover { background: var(--panel-2); }
.pop-item b { display: block; font-size: 11.5px; line-height: 1.35; }
.pop-item span { display: block; font-size: 9.5px; color: var(--text-3); margin-top: 3px; }
.pop-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex: 0 0 7px; background: var(--accent); }
.pop-dot.bad { background: var(--red); }
.pop-dot.warn { background: var(--amber); }
.pop-dot.info { background: var(--blue); }
.pop-foot { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px; margin-top: 4px; border-top: 1px solid var(--line-2); font-size: 10.5px; color: var(--accent); }
.user-pop-head { display: flex; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 5px; }
.user-pop-head b { display: block; font-size: 12.5px; }
.user-pop-head span { display: block; font-size: 10px; color: var(--text-2); }
.user-pop-head small { display: block; font-size: 9px; color: var(--text-3); margin-top: 2px; }
.user-pop > a { display: block; padding: 8px 10px; border-radius: 7px; font-size: 11.5px; color: var(--text-2); }
.user-pop > a:hover { background: var(--panel-2); color: var(--text); }
.user-pop > a.danger { color: var(--red); }
.sp-head { display: flex; justify-content: space-between; padding: 7px 9px 8px; color: var(--text-3); font-size: 10px; border-bottom: 1px solid var(--line-2); }
.sp-head span { color: var(--text-3); }
.sp-group { padding: 8px 9px 4px; font-size: 9px; letter-spacing: 1px; color: var(--text-3); }
.sp-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; }
.sp-item:hover { background: var(--panel-2); }
.sp-item .ic:last-child { width: 13px; height: 13px; color: var(--text-3); margin-left: auto; }
.sp-ic { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 11%, transparent); color: var(--c); }
.sp-ic .ic { width: 15px; height: 15px; }
.sp-item b { display: block; font-size: 11px; font-weight: 600; }
.sp-item span { display: block; font-size: 9px; color: var(--text-3); }
.sp-empty { padding: 24px 12px; text-align: center; color: var(--text-3); font-size: 11px; }

/* ---------------- 内容区 ---------------- */
.view { flex: 1 1 auto; overflow-y: auto; padding: 24px 26px 44px; }
.view > * { width: 100%; max-width: 1580px; margin-left: auto; margin-right: auto; }
.statusbar {
  height: 28px; flex: 0 0 28px; display: flex; align-items: center; gap: 16px; padding: 0 24px;
  border-top: 1px solid var(--line); background: var(--panel); color: var(--text-3); font-size: 9px;
}
.statusbar .s { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.statusbar b { color: var(--text-2); font-family: var(--num); }

.page-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 20px; }
.page-head-main { min-width: 0; flex: 1 1 auto; }
.eyebrow { display: block; font-size: 9px; letter-spacing: 1.9px; color: var(--text-3); text-transform: uppercase; margin-bottom: 6px; }
.page-head h1 { font-size: 27px; line-height: 1.2; font-weight: 650; letter-spacing: -.5px; }
.page-sub { font-size: 11.5px; color: var(--text-3); margin-top: 7px; line-height: 1.6; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-bottom: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 33px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--text-2); font-size: 11px; font-weight: 500;
  transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--line-strong); color: var(--text); background: var(--panel-2); }
.btn .ic { width: 14px; height: 14px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(14,147,132,.18); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
.btn.danger:hover { background: var(--red-soft); }
.btn.tiny { height: 26px; padding: 0 9px; font-size: 10px; border-radius: 6px; }
.btn.tiny .ic { width: 12px; height: 12px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 29px; font-size: 10.5px; padding: 0 10px; }
.btn:disabled { opacity: .55; cursor: wait; }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 10.5px; cursor: pointer; }
.link .ic { width: 13px; height: 13px; }

/* ---------------- 卡片 / KPI ---------------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); min-width: 0;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 18px 10px; }
.card-title h3 { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 650; line-height: 1.3; }
.card-title h3 .ic { width: 15px; height: 15px; color: var(--accent); }
.card-title p { font-size: 9.5px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }
.card-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.card-body { padding: 0 18px 16px; }

.kpi-grid { display: grid; gap: 12px; margin-bottom: 20px; }
.kpi-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi {
  position: relative; overflow: hidden; padding: 15px 16px 13px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); min-width: 0;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: .9; }
.kpi.blue::before { background: var(--blue); }
.kpi.green::before { background: var(--accent); }
.kpi.amber::before { background: var(--amber); }
.kpi.red::before { background: var(--red); }
.kpi.violet::before { background: var(--violet); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--text-3); }
.kpi-ic { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px; background: var(--panel-2); color: var(--text-3); }
.kpi-ic .ic { width: 14px; height: 14px; }
.kpi.blue .kpi-ic { background: var(--blue-soft); color: var(--blue); }
.kpi.green .kpi-ic { background: var(--accent-soft); color: var(--accent); }
.kpi.amber .kpi-ic { background: var(--amber-soft); color: var(--amber); }
.kpi.red .kpi-ic { background: var(--red-soft); color: var(--red); }
.kpi.violet .kpi-ic { background: var(--violet-soft); color: var(--violet); }
.kpi-value { display: flex; align-items: baseline; gap: 4px; margin-top: 5px; font-family: var(--num); }
.kpi-value b { font-size: 29px; line-height: 1.15; font-weight: 650; letter-spacing: -.8px; }
.kpi-value small { font-size: 10px; color: var(--text-3); font-weight: 500; font-family: var(--font); }
.kpi-foot { margin-top: 5px; font-size: 9.5px; color: var(--text-3); line-height: 1.45; min-height: 14px; }
.kpi-foot b { color: var(--text-2); font-weight: 600; }
.kpi-bar { height: 3px; background: var(--panel-3); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.kpi.blue .kpi-bar i { background: var(--blue); }
.kpi.amber .kpi-bar i { background: var(--amber); }
.kpi.violet .kpi-bar i { background: var(--violet); }
.delta { display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px; border-radius: 4px; font-family: var(--num); font-size: 9px; font-weight: 600; }
.delta.up { color: var(--accent-deep); background: var(--accent-soft); }
.delta.down { color: var(--red); background: var(--red-soft); }

.pill {
  display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 7px;
  border-radius: 5px; font-size: 9.5px; font-weight: 500; white-space: nowrap;
  background: var(--panel-3); color: var(--text-2);
}
.pill.mini { height: 17px; font-size: 9px; padding: 0 6px; }
.pill .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--accent-soft); color: var(--accent-deep); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.info { background: var(--blue-soft); color: var(--blue); }
.pill.muted { background: var(--panel-3); color: var(--text-3); }
[data-theme="dark"] .pill.ok { color: var(--accent); }
[data-theme="dark"] .pill.warn { color: var(--amber); }
[data-theme="dark"] .pill.bad { color: var(--red); }
[data-theme="dark"] .pill.info { color: var(--blue); }

/* ---------------- 总览 ---------------- */
.overview-top {
  display: grid; grid-template-columns: 1.42fr repeat(4, minmax(0, 1fr));
  gap: 12px; margin-bottom: 23px;
}
.health-hero {
  display: flex; align-items: center; gap: 10px; padding: 15px 14px;
  background:
    radial-gradient(200px 130px at 100% 0%, var(--accent-soft), transparent 70%),
    var(--panel);
  min-width: 0;
}
.health-ring { flex: 0 0 124px; }
.health-copy { min-width: 0; }
.health-copy h2 { font-size: 17px; font-weight: 650; margin-top: 2px; }
.health-copy p { font-size: 9.5px; color: var(--text-3); line-height: 1.55; margin-top: 4px; }
.health-tags { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-txt { text-align: center; line-height: 1.1; }
.ring-txt b { display: block; font-family: var(--num); font-size: 25px; font-weight: 650; letter-spacing: -1px; }
.ring-txt span { display: block; font-size: 8px; color: var(--text-3); margin-top: 3px; }
.health-hero .ring-txt b { font-size: 27px; }

.section-line { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin: 0 0 9px; }
.section-line h2 { font-size: 14px; font-weight: 650; }
.section-line p { font-size: 9.5px; color: var(--text-3); margin-top: 2px; }
.section-note { font-size: 9px; color: var(--text-3); white-space: nowrap; }
.domain-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); gap: 9px; overflow-x: auto; padding-bottom: 5px; margin-bottom: 19px; }
.domain-strip::-webkit-scrollbar { height: 4px; }
.domain-card {
  display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 11px 9px; box-shadow: var(--shadow); min-width: 112px;
  transition: transform .15s, border-color .15s, box-shadow .15s; position: relative; overflow: hidden;
}
.domain-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c); opacity: .5; }
.domain-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 42%, var(--line)); box-shadow: 0 10px 24px rgba(18,45,66,.1); }
.dc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dc-icon { width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.dc-icon .ic { width: 14px; height: 14px; }
.dc-name { display: block; font-size: 12px; font-weight: 650; margin-top: 6px; white-space: nowrap; }
.dc-count { display: block; font-size: 8.5px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-bar { height: 3px; background: var(--panel-3); border-radius: 3px; margin: 7px 0 5px; overflow: hidden; }
.dc-bar i { display: block; height: 100%; background: var(--c); border-radius: 3px; }
.dc-foot { display: flex; justify-content: space-between; gap: 4px; font-size: 8px; color: var(--text-3); white-space: nowrap; }
.dc-foot em { display: inline-block; width: 4px; height: 4px; border-radius: 50%; margin-right: 3px; vertical-align: 1px; }
.warn-dot { background: var(--amber); }
.ok-dot { background: var(--accent); }

.overview-main { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(320px, .86fr); gap: 15px; margin-bottom: 15px; }
.topo-card { min-height: 390px; }
.topo { padding: 2px 6px 0; }
.topo svg { width: 100%; height: auto; display: block; }
.topo-wire path { fill: none; stroke: var(--line-strong); stroke-width: 1.3; }
.topo-wire .topo-bus { stroke: var(--blue); stroke-width: 2.3; opacity: .75; }
.topo-wire .topo-junction { fill: var(--blue); opacity: .7; }
.topo-node { cursor: pointer; }
.topo-node rect:first-child { fill: var(--panel-2); stroke: var(--line); stroke-width: 1; transition: fill .15s, stroke .15s; }
.topo-node:hover rect:first-child { fill: color-mix(in srgb, var(--c) 9%, var(--panel)); stroke: var(--c); }
.tn-title { fill: var(--text); font-size: 11.5px; font-weight: 650; font-family: var(--font); }
.tn-val { fill: var(--text-2); font-size: 9.5px; font-family: var(--font); }
.tn-sub { fill: var(--text-3); font-size: 8px; font-family: var(--font); }
.tn-bus { fill: var(--blue); font-size: 8.5px; font-family: var(--font); letter-spacing: .6px; }
.tn-note { fill: var(--text-3); font-size: 8px; font-family: var(--font); }
.topo-legend text { fill: var(--text-3); font-size: 8px; font-family: var(--font); }
.topo-bg { fill: var(--panel); stroke: var(--line-2); }
.topo-full { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.topo-full svg { width: 100%; height: auto; min-width: 760px; }
.topo-editable .topo-node { cursor: grab; touch-action: none; }
.topo-editable .topo-node:active { cursor: grabbing; }
.topo-editable .topo-node rect:first-child { stroke-dasharray: 4 3; }
.topo-editable .topo-node:hover rect:first-child { stroke-dashoffset: -4; }

.modal.topo-modal {
  width: min(1500px, 97vw); height: min(900px, 93vh); max-height: 93vh;
  overflow: hidden; display: flex; flex-direction: column;
}
.topo-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 18px 11px; border-bottom: 1px solid var(--line-2); }
.topo-modal-head h3 { font-size: 17px; font-weight: 650; margin-top: 2px; }
.topo-modal-head p { font-size: 9px; color: var(--text-3); margin-top: 3px; }
.topo-modal-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.topo-modal-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 10px 16px 0; }
.topo-modal-canvas { flex: 1 1 auto; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); padding: 8px; }
.topo-edit-hint { display: flex; align-items: center; gap: 5px; padding: 6px 2px 4px; color: var(--text-3); font-size: 8px; flex: 0 0 auto; }
.topo-edit-hint .ic { width: 12px; height: 12px; color: var(--accent); }
.topo-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px 13px; border-top: 1px solid var(--line-2); margin-top: 8px; }
.topo-modal-foot span { font-size: 8px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
@media (max-width: 720px) {
  .modal.topo-modal { width: calc(100vw - 14px); height: calc(100vh - 22px); max-height: calc(100vh - 22px); }
  .topo-modal-head { flex-direction: column; }
  .topo-modal-actions { width: 100%; justify-content: flex-start; }
  .topo-full svg { min-width: 680px; }
}

.alarm-list { display: flex; flex-direction: column; }
.alarm-row { display: grid; grid-template-columns: 3px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.alarm-row:last-child { border-bottom: 0; }
.alarm-row:hover .alarm-main b { color: var(--accent); }
.alarm-level { width: 3px; height: 30px; border-radius: 3px; background: var(--amber); }
.alarm-level.bad { background: var(--red); }
.alarm-level.warn { background: var(--amber); }
.alarm-level.info { background: var(--blue); }
.alarm-main { min-width: 0; }
.alarm-main b { display: block; font-size: 11px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alarm-main span { display: block; font-size: 8.5px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alarm-card .card-body { padding-top: 4px; }

.overview-bottom { display: grid; grid-template-columns: 1.15fr .82fr; gap: 15px; }
.overview-bottom .card { min-height: 300px; }
.chart-note { display: flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--text-3); }
.lg-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-left: 5px; }
.chart-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 9px; gap: 8px; }
.mini-metric { min-width: 0; }
.mini-metric span { display: block; font-size: 8.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-metric b { display: block; font-family: var(--num); font-size: 16px; font-weight: 650; margin-top: 2px; }
.mini-metric b small { font-size: 8.5px; color: var(--text-3); font-family: var(--font); font-weight: 400; margin-left: 2px; }
.mini-metric.warn b { color: var(--amber); }
.mini-metric.ok b { color: var(--accent); }
.inspection-ring { display: flex; justify-content: center; padding: 3px 0 5px; }
.inspection-ring .ring-txt b { font-size: 28px; }
.inspection-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding-top: 7px; border-top: 1px solid var(--line-2); }
.hint-line { display: flex; align-items: center; gap: 5px; margin-top: 9px; padding: 7px 8px; border-radius: 7px; background: var(--panel-2); color: var(--text-3); font-size: 8.5px; }
.hint-line .ic { width: 12px; height: 12px; color: var(--amber); flex: 0 0 12px; }
.job-list { display: flex; flex-direction: column; }
.job-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.job-row:last-child { border-bottom: 0; }
.job-row:hover .job-main b { color: var(--accent); }
.job-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.job-main { min-width: 0; flex: 1 1 auto; }
.job-main b { display: block; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-main span { display: block; font-size: 8.5px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-time { font-family: var(--num); font-size: 8.5px; color: var(--text-3); white-space: nowrap; }

/* ---------------- 图表 ---------------- */
.chart-box { position: relative; width: 100%; }
.chart-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend { display: flex; justify-content: flex-end; gap: 12px; margin: 2px 4px 0; font-size: 8.5px; color: var(--text-3); }
.chart-legend span { display: flex; align-items: center; gap: 4px; }
.chart-legend i { width: 6px; height: 6px; border-radius: 50%; }
.chart-grid { stroke: var(--line-2); stroke-width: 1; }
.chart-axis { fill: var(--text-3); font-size: 8.5px; font-family: var(--font); }
.chart-zero { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.hv { fill: transparent; }
.chart-tip {
  position: absolute; z-index: 5; display: none; min-width: 118px; padding: 7px 9px;
  background: var(--rail); color: #eaf5fa; border-radius: 7px; pointer-events: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.28); font-size: 9px;
}
.chart-tip.show { display: block; }
.chart-tip b { display: block; font-size: 9.5px; margin-bottom: 3px; color: #fff; }
.chart-tip span { display: block; color: #a9c2d0; line-height: 1.6; }
.spark { display: block; width: 100%; height: 28px; }

/* ---------------- 通用表格 ---------------- */
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.tbl thead th {
  padding: 9px 12px; background: var(--panel-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  text-align: left; font-weight: 600; font-size: 9px; letter-spacing: .2px; color: var(--text-3); white-space: nowrap;
}
.tbl thead th:first-child { padding-left: 18px; }
.tbl thead th:last-child { padding-right: 18px; }
.tbl tbody td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody td:first-child { padding-left: 18px; }
.tbl tbody td:last-child { padding-right: 18px; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr[data-action] { cursor: pointer; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl small { display: block; font-size: 8.5px; color: var(--text-3); margin-top: 1px; }
.tbl b { font-weight: 600; }
.asset-code, .wo-code, .alarm-code { font-size: 9.5px; color: var(--text-2); }
.wo-code { color: var(--blue); }
.asset-name b, .wo-title b { display: block; font-size: 10.5px; line-height: 1.35; }
.asset-name span, .wo-title span { display: block; font-size: 8.5px; color: var(--text-3); margin-top: 1px; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-cell { display: flex; align-items: center; gap: 6px; }
.health-cell b { font-family: var(--num); font-size: 10.5px; min-width: 27px; }
.health-bar { flex: 1 1 auto; min-width: 34px; max-width: 58px; height: 3px; background: var(--panel-3); border-radius: 3px; overflow: hidden; }
.health-bar i { display: block; height: 100%; border-radius: 3px; }
.metric-val { font-family: var(--num); font-size: 11.5px; font-weight: 650; }
.metric-val + small { font-family: var(--font); }
.date-cell { font-family: var(--num); font-size: 9.5px; color: var(--text-2); white-space: nowrap; }
.person-cell { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.person-cell span { font-size: 10px; }
.row-arrow { color: var(--text-3); display: inline-flex; }
.row-arrow .ic { width: 14px; height: 14px; }
.progress-cell { display: flex; align-items: center; gap: 6px; min-width: 82px; }
.progress { display: block; height: 4px; background: var(--panel-3); border-radius: 4px; overflow: hidden; flex: 1 1 auto; min-width: 38px; }
.progress.big { height: 5px; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.progress-cell small { font-family: var(--num); font-size: 8.5px; color: var(--text-3); white-space: nowrap; }
.domain-tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  border-radius: 4px; white-space: nowrap; font-size: 9px;
  background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--c);
}
.pager { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 13px; border-top: 1px solid var(--line-2); font-size: 9.5px; color: var(--text-3); }
.pager > div { display: flex; gap: 4px; }
.pg { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 9px; color: var(--text-2); }
.pg.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.filterbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.seg-tabs { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.seg-tabs button {
  height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--text-3); font-size: 10px; display: inline-flex; align-items: center; gap: 4px;
}
.seg-tabs button b { font-family: var(--num); font-size: 8.5px; padding: 0 4px; border-radius: 4px; background: var(--panel-3); color: var(--text-3); }
.seg-tabs button.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 4px rgba(15,40,60,.08); font-weight: 600; }
.seg-tabs button.active b { background: var(--accent-soft); color: var(--accent-deep); }
.filter-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-input { display: flex; align-items: center; gap: 6px; height: 33px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.search-input.sm { height: 29px; }
.search-input .ic { width: 13px; height: 13px; color: var(--text-3); flex: 0 0 13px; }
.search-input input { border: 0; outline: 0; background: transparent; width: 185px; font-size: 10.5px; }
.search-input input::placeholder { color: var(--text-3); }
.select {
  height: 33px; padding: 0 26px 0 9px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); font-size: 10.5px; color: var(--text-2); outline: 0;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 12px) 14px, calc(100% - 8px) 14px;
  background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
}
.select.sm { height: 29px; font-size: 10px; background-position: calc(100% - 12px) 12px, calc(100% - 8px) 12px; }
.wo-table { min-width: 980px; }

/* ---------------- 专业页 ---------------- */
.cat-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 19px; border: 1px solid color-mix(in srgb, var(--c) 20%, var(--line));
  border-left: 4px solid var(--c); border-radius: var(--r-lg);
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 7%, var(--panel)), var(--panel) 62%);
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.cat-banner-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.cat-big-icon {
  width: 47px; height: 47px; flex: 0 0 47px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent);
}
.cat-big-icon .ic { width: 25px; height: 25px; }
.cat-kicker { font-size: 8.5px; letter-spacing: 1.1px; color: var(--text-3); text-transform: uppercase; }
.cat-banner h2 { font-size: 18px; font-weight: 650; margin-top: 2px; }
.cat-banner p { font-size: 9.5px; color: var(--text-3); margin-top: 2px; }
.cat-banner-stats { display: flex; gap: 26px; flex: 0 0 auto; }
.cat-banner-stats .mini-metric { min-width: 72px; }
.cat-banner-stats .mini-metric b { font-size: 19px; }
.domain-main { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(310px, .85fr); gap: 15px; margin-bottom: 15px; }
.domain-main .card { min-height: 420px; }
.insight-list { display: flex; flex-direction: column; gap: 1px; }
.insight-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.insight-row:last-child { border-bottom: 0; }
.insight-label { font-size: 10.5px; color: var(--text-2); }
.insight-value { font-family: var(--num); font-size: 11.5px; font-weight: 650; }
.insight-value.ok { color: var(--accent); }
.insight-value.warn { color: var(--amber); }
.insight-value.bad { color: var(--red); }
.insight-value.info { color: var(--blue); }
.standard-box { margin-top: 9px; padding: 8px 9px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line-2); }
.standard-box span { display: block; font-size: 8px; letter-spacing: 1px; color: var(--text-3); }
.standard-box p { font-size: 8.5px; color: var(--text-2); margin-top: 2px; line-height: 1.55; }
.risk-title { display: flex; justify-content: space-between; align-items: center; margin: 13px 0 5px; font-size: 10.5px; font-weight: 600; }
.risk-title span { font-size: 8.5px; color: var(--text-3); font-weight: 400; }
.risk-item { padding: 9px 0; border-top: 1px solid var(--line-2); cursor: pointer; }
.risk-head { display: flex; align-items: flex-start; gap: 6px; }
.risk-head b { font-size: 10px; font-weight: 600; line-height: 1.4; }
.risk-item p { font-size: 8.5px; color: var(--text-3); line-height: 1.5; margin: 4px 0 4px 0; }
.risk-link { display: inline-flex; align-items: center; gap: 2px; font-size: 8.5px; color: var(--accent); }
.risk-link .ic { width: 11px; height: 11px; }
.domain-main .standard-box + .risk-title { margin-top: 12px; }

/* ---------------- 巡视计划 ---------------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.plan-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 13px 14px 11px; box-shadow: var(--shadow); cursor: pointer; position: relative; overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.plan-card::after { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--c); opacity: .8; }
.plan-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 30%, var(--line)); }
.plan-head { display: flex; justify-content: space-between; align-items: center; }
.plan-icon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 11%, transparent); color: var(--c); }
.plan-icon .ic { width: 14px; height: 14px; }
.plan-name { display: block; font-size: 11.5px; font-weight: 650; margin-top: 7px; line-height: 1.35; }
.plan-meta { display: block; font-size: 8.5px; color: var(--text-3); margin-top: 2px; }
.plan-progress { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.plan-progress b { font-family: var(--num); font-size: 9.5px; }
.plan-foot { display: flex; justify-content: space-between; gap: 6px; font-size: 8px; color: var(--text-3); margin-top: 6px; }
.plan-route { display: flex; align-items: center; gap: 4px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line-2); font-size: 8px; color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.plan-route .ic { width: 11px; height: 11px; flex: 0 0 11px; color: var(--c); }

/* ---------------- 缺陷看板 ---------------- */
.defect-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 11px; flex-wrap: wrap; }
.severity-summary { display: flex; align-items: center; gap: 14px; font-size: 9.5px; color: var(--text-3); flex-wrap: wrap; }
.sev-item { display: inline-flex; align-items: center; gap: 4px; }
.sev-item i { width: 6px; height: 6px; border-radius: 50%; }
.sev-item b { color: var(--text); font-family: var(--num); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; align-items: start; }
.kanban-col { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); min-height: 220px; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 11px; border-bottom: 1px solid var(--line); }
.kanban-head b { display: block; font-size: 11px; }
.kanban-head span { display: block; font-size: 8px; color: var(--text-3); margin-top: 1px; }
.kanban-head em { font-style: normal; min-width: 19px; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--panel); display: grid; place-items: center; font-family: var(--num); font-size: 9.5px; font-weight: 600; }
.kanban-head em.ok { color: var(--accent); }
.kanban-head em.info { color: var(--blue); }
.kanban-head em.warn { color: var(--amber); }
.kanban-head em.muted { color: var(--text-3); }
.kanban-body { padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.defect-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px; cursor: pointer; box-shadow: 0 2px 8px rgba(15,40,60,.035); transition: border-color .15s, transform .15s; }
.defect-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.defect-top { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.defect-title { display: block; font-size: 10px; font-weight: 600; line-height: 1.4; margin-top: 6px; }
.defect-asset { display: block; font-size: 8.5px; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.defect-foot { display: flex; justify-content: space-between; gap: 5px; margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line-2); font-size: 8px; color: var(--text-3); }
.kanban-empty { padding: 22px 8px; text-align: center; font-size: 9px; color: var(--text-3); }
.foot-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-3); font-size: 9px; }
.foot-note .ic { width: 13px; height: 13px; color: var(--accent); flex: 0 0 13px; }

/* ---------------- 安全 ---------------- */
.safety-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, .85fr); gap: 15px; margin-bottom: 14px; }
.safety-side { display: flex; flex-direction: column; gap: 15px; }
.safety-side .card { flex: 1 1 auto; }
.tool-list { display: flex; flex-direction: column; }
.tool-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.tool-row:last-child { border-bottom: 0; }
.tool-row b { display: block; font-size: 10px; font-weight: 600; }
.tool-row span { display: block; font-size: 8px; color: var(--text-3); margin-top: 1px; }
.duty-list { display: flex; flex-direction: column; }
.duty-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.duty-row:last-child { border-bottom: 0; }
.duty-row > div { flex: 1 1 auto; min-width: 0; }
.duty-row b { display: block; font-size: 10px; }
.duty-row span { display: block; font-size: 8px; color: var(--text-3); }
.safety-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--amber) 26%, var(--line)); background: var(--amber-soft); }
.safety-note .ic { width: 17px; height: 17px; color: var(--amber); flex: 0 0 17px; margin-top: 1px; }
.safety-note b { display: block; font-size: 10.5px; }
.safety-note span { display: block; font-size: 9px; color: var(--text-2); margin-top: 2px; line-height: 1.55; }

/* ---------------- 备件 ---------------- */
.spare-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 15px; margin-bottom: 15px; }
.spare-layout .card { min-height: 250px; }
.restock-list { display: flex; flex-direction: column; gap: 3px; }
.restock-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.restock-row:last-child { border-bottom: 0; }
.restock-row > div { flex: 1 1 auto; min-width: 0; }
.restock-row b { display: block; font-size: 10px; }
.restock-row span { display: block; font-size: 8px; color: var(--text-3); margin-top: 1px; }

/* ---------------- 可靠性 ---------------- */
.reliability-top { display: grid; grid-template-columns: 1.65fr 1fr; gap: 15px; margin-bottom: 15px; }
.reliability-bottom { display: grid; grid-template-columns: .78fr 1.5fr; gap: 15px; }
.health-dist { display: flex; align-items: center; gap: 18px; padding: 4px 0; }
.donut { width: 132px; height: 132px; border-radius: 50%; position: relative; flex: 0 0 132px; }
.donut::after { content: ""; position: absolute; inset: 18px; background: var(--panel); border-radius: 50%; }
.donut-in { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-in b { font-family: var(--num); font-size: 26px; line-height: 1; }
.donut-in span { font-size: 8px; color: var(--text-3); margin-top: 3px; }
.legend-list { flex: 1 1 auto; min-width: 0; }
.legend-list > div { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px dashed var(--line-2); font-size: 9.5px; color: var(--text-2); }
.legend-list > div:last-child { border-bottom: 0; }
.legend-list i { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.legend-list b { margin-left: auto; font-family: var(--num); font-size: 10.5px; }
.small-tbl { font-size: 9.5px; }
.small-tbl thead th { font-size: 8.5px; padding: 7px 10px; }
.small-tbl tbody td { padding: 6px 10px; }
.bar-list { display: flex; flex-direction: column; gap: 8px; }
.bar-row { min-width: 0; }
.bar-label { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; color: var(--text-2); margin-bottom: 4px; }
.bar-label b { font-family: var(--num); font-size: 9px; font-weight: 600; }
.bar-track { height: 5px; border-radius: 5px; background: var(--panel-3); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 5px; }

/* ---------------- 报表 ---------------- */
.report-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.report-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 13px 14px 11px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, border-color .15s; position: relative; overflow: hidden; }
.report-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--c); opacity: .65; }
.report-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 38%, var(--line)); }
.report-top { display: flex; justify-content: space-between; align-items: center; }
.report-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 11%, transparent); color: var(--c); }
.report-icon .ic { width: 16px; height: 16px; }
.report-name { display: block; font-size: 11.5px; font-weight: 650; margin-top: 9px; }
.report-card p { font-size: 8.5px; color: var(--text-3); line-height: 1.55; margin-top: 4px; min-height: 27px; }
.report-meta { display: flex; justify-content: space-between; gap: 6px; padding-top: 8px; margin-top: 7px; border-top: 1px dashed var(--line-2); font-size: 8px; color: var(--text-3); }
.report-meta span { display: flex; align-items: center; gap: 3px; }
.report-meta .ic { width: 10px; height: 10px; }
.report-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 9px; }
.report-foot > span { font-size: 8px; color: var(--text-3); }
.report-file { width: 24px; height: 24px; border-radius: 6px; background: var(--panel-2); display: grid; place-items: center; color: var(--text-3); }
.report-file .ic { width: 13px; height: 13px; }

/* ---------------- 设置 ---------------- */
.settings-tabs { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); width: fit-content; margin-bottom: 16px; box-shadow: var(--shadow); }
.settings-tabs button { height: 31px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); font-size: 10.5px; display: inline-flex; align-items: center; gap: 5px; }
.settings-tabs button .ic { width: 14px; height: 14px; }
.settings-tabs button.active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.sync-map { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow); margin-bottom: 15px; }
.sync-source { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.sync-logo { width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, var(--accent), #1d5fa8); color: #fff; font-size: 16px; font-weight: 700; }
.sync-source.target .sync-logo { background: linear-gradient(145deg, #1d5fa8, #7048c8); }
.sync-source b { display: block; font-size: 12px; }
.sync-source span { display: block; font-size: 8.5px; color: var(--text-3); }
.sync-source em { margin-left: auto; }
.sync-arrow { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--accent); }
.sync-arrow .ic { width: 20px; height: 20px; animation: rotate 5s linear infinite; }
.sync-arrow span { font-size: 8px; color: var(--text-3); }
@keyframes rotate { to { transform: rotate(360deg); } }
.sync-status { margin-left: auto; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sync-status > span:first-child { font-size: 8.5px; color: var(--text-3); }
.sync-status b { font-family: var(--num); font-size: 10px; }
.sync-progress { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-top: -4px; margin-bottom: 15px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 8px; color: var(--accent-deep); font-size: 9.5px; }
.sync-progress i { width: 16px; height: 16px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.kv-list { display: flex; flex-direction: column; }
.kv-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.kv-list > div:last-child { border-bottom: 0; }
.kv-list span { font-size: 9.5px; color: var(--text-3); white-space: nowrap; }
.kv-list b { font-size: 9.5px; font-weight: 600; text-align: right; }
.principle-list { display: flex; flex-direction: column; gap: 9px; }
.principle-list > div { padding: 9px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); }
.principle-list b { display: block; font-size: 9.5px; }
.principle-list span { display: block; font-size: 8.5px; color: var(--text-3); line-height: 1.55; margin-top: 2px; }
.team-list { display: flex; flex-direction: column; }
.team-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.team-row:last-child { border-bottom: 0; }
.team-badge { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); font-size: 9px; font-weight: 600; flex: 0 0 27px; }
.team-row > div { flex: 1 1 auto; min-width: 0; }
.team-row b { display: block; font-size: 9.5px; }
.team-row span { display: block; font-size: 8px; color: var(--text-3); }
.team-row .mono { font-size: 8px; color: var(--text-3); }

/* ---------------- 抽屉 ---------------- */
body.drawer-open { overflow: hidden; }
.drawer-mask { position: fixed; inset: 0; background: rgba(4, 18, 28, .42); z-index: 100; animation: fade .18s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 101; width: min(720px, 92vw);
  background: var(--panel); box-shadow: -24px 0 70px rgba(5, 20, 32, .28);
  display: flex; flex-direction: column; animation: slideIn .22s cubic-bezier(.22,.8,.3,1);
}
.drawer.wide { width: min(780px, 94vw); }
@keyframes slideIn { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer-head { flex: 0 0 auto; padding: 18px 20px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 14px; }
.dh-main { flex: 1 1 auto; min-width: 0; }
.dh-main h2 { font-size: 20px; line-height: 1.3; font-weight: 650; letter-spacing: -.3px; }
.dh-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; font-size: 9.5px; color: var(--text-3); }
.asset-hero { padding: 14px 20px; display: flex; align-items: center; gap: 15px; background: linear-gradient(100deg, var(--panel-2), var(--panel)); border-bottom: 1px solid var(--line-2); }
.asset-ring { flex: 0 0 94px; }
.asset-hero-main { min-width: 0; }
.asset-hero-main h3 { font-size: 12.5px; font-weight: 650; margin-top: 4px; }
.asset-hero-main p { font-size: 9px; color: var(--text-3); margin-top: 3px; line-height: 1.55; }
.asset-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.tag { display: inline-flex; height: 18px; align-items: center; padding: 0 6px; border-radius: 4px; background: var(--panel-3); color: var(--text-3); font-size: 8px; }
.drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 20px 18px; }
.drawer-section { padding: 14px 0 4px; border-bottom: 1px solid var(--line-2); }
.drawer-section:last-child { border-bottom: 0; }
.ds-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ds-head h4 { font-size: 10px; font-weight: 650; letter-spacing: .3px; color: var(--text-2); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 24px; }
.info-item { padding: 6px 0; border-bottom: 1px dashed var(--line-2); min-width: 0; }
.info-item span { display: block; font-size: 8px; color: var(--text-3); }
.info-item b { display: block; font-size: 9.5px; font-weight: 600; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.metric-card { padding: 8px 9px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line-2); }
.metric-card span { display: block; font-size: 7.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-card b { display: block; font-family: var(--num); font-size: 15px; font-weight: 650; margin-top: 2px; }
.metric-card b small { font-size: 7.5px; color: var(--text-3); font-family: var(--font); font-weight: 400; margin-left: 2px; }
.related-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); cursor: pointer; }
.related-row:last-child { border-bottom: 0; }
.related-row > div { min-width: 0; }
.related-row b { display: block; font-size: 9.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-row span { display: block; font-size: 8px; color: var(--text-3); }
.related-row .pill, .hazard-row .pill { display: inline-flex; font-size: 9px; }
.empty-line { padding: 9px 0; font-size: 9px; color: var(--text-3); }
.timeline { display: flex; flex-direction: column; position: relative; }
.tl-item { display: flex; gap: 9px; padding: 5px 0 9px; position: relative; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 3px; top: 14px; bottom: -2px; width: 1px; background: var(--line); }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 7px; margin-top: 4px; box-shadow: 0 0 0 3px var(--accent-soft); z-index: 1; }
.tl-item b { display: block; font-size: 9px; font-weight: 500; line-height: 1.45; }
.tl-item span { display: block; font-size: 7.5px; color: var(--text-3); margin-top: 1px; }
.drawer-foot { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--panel); }
.drawer-foot.inline { border: 0; padding: 12px 0 0; background: transparent; justify-content: flex-end; }
.steps { display: flex; gap: 0; padding: 12px 20px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); }
.step { flex: 1 1 0; display: flex; align-items: center; gap: 6px; position: relative; font-size: 8.5px; color: var(--text-3); }
.step:not(:last-child)::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); margin: 0 6px; }
.step > span { width: 19px; height: 19px; flex: 0 0 19px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); color: var(--text-3); font-family: var(--num); font-size: 8px; border: 1px solid var(--line); }
.step > span .ic { width: 10px; height: 10px; }
.step.done > span { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.now > span { background: var(--panel); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.step.done, .step.now { color: var(--text); font-weight: 600; }
.wo-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line-2); }
.wo-summary > div { background: var(--panel-2); padding: 9px 10px; min-width: 0; }
.wo-summary span { display: block; font-size: 8px; color: var(--text-3); }
.wo-summary b { display: block; font-size: 10px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wo-summary small { display: block; font-size: 8px; color: var(--text-3); margin-top: 1px; }
.drawer-text { font-size: 9.5px; color: var(--text-2); line-height: 1.7; }
.alert-banner { display: flex; align-items: flex-start; gap: 9px; margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 24%, var(--line)); }
.alert-banner.bad { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 24%, var(--line)); }
.alert-banner.info { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 24%, var(--line)); }
.alert-banner .ic { width: 16px; height: 16px; color: var(--amber); flex: 0 0 16px; margin-top: 1px; }
.alert-banner.bad .ic { color: var(--red); }
.alert-banner.info .ic { color: var(--blue); }
.alert-banner b { display: block; font-size: 9.5px; line-height: 1.45; }
.alert-banner span { display: block; font-size: 8px; color: var(--text-3); margin-top: 2px; }
.action-list { padding-left: 16px; }
.action-list li { font-size: 9px; color: var(--text-2); line-height: 1.65; margin-bottom: 4px; }
.check-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.check-row { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--line-2); cursor: pointer; font-size: 9.5px; }
.check-row:last-child { border-bottom: 0; }
.check-row input { display: none; }
.check-box { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 4px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: transparent; background: var(--panel); }
.check-box .ic { width: 10px; height: 10px; }
.check-row input:checked + .check-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.check-row em { margin-left: auto; font-style: normal; font-size: 8px; color: var(--text-3); }
.check-row.done .check-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.check-row.done em { color: var(--accent); }
.check-list.static .check-row { cursor: default; }
.inspect-complete { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-deep); }
.inspect-complete .ic { width: 24px; height: 24px; }
.inspect-complete b { display: block; font-size: 11px; }
.inspect-complete span { display: block; font-size: 8.5px; color: var(--text-3); margin-top: 1px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span, .field > label { font-size: 9px; color: var(--text-3); font-weight: 500; }
.field > span i { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 7px; background: var(--panel); padding: 8px 9px;
  outline: 0; font-size: 10.5px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------------- 弹窗 ---------------- */
body.modal-open { overflow: hidden; }
.modal-mask { position: fixed; inset: 0; z-index: 120; background: rgba(4, 18, 28, .48); animation: fade .16s ease; }
.modal {
  position: fixed; z-index: 121; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(620px, calc(100vw - 36px)); max-height: 88vh; overflow: auto;
  background: var(--panel); border-radius: 15px; box-shadow: var(--shadow-lg);
  animation: modalIn .2s cubic-bezier(.22,.8,.3,1);
}
@keyframes modalIn { from { opacity: .5; transform: translate(-50%, -48%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { font-size: 18px; font-weight: 650; margin-top: 2px; }
.modal-head p { font-size: 9.5px; color: var(--text-3); margin-top: 3px; }
.modal-body { padding: 15px 20px 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .col2 { grid-column: span 2; }
.form-tip { display: flex; align-items: center; gap: 5px; margin-top: 12px; padding: 8px 9px; border-radius: 7px; background: var(--panel-2); color: var(--text-3); font-size: 8.5px; }
.form-tip .ic { width: 12px; height: 12px; color: var(--amber); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line-2); margin-top: 13px; }

/* ---------------- 报表预览 ---------------- */
.report-preview-head { display: flex; align-items: center; gap: 11px; margin-top: 10px; padding: 12px; border-radius: 9px; background: color-mix(in srgb, var(--c) 7%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line)); }
.report-preview-head b { display: block; font-size: 11.5px; }
.report-preview-head span { display: block; font-size: 8.5px; color: var(--text-3); }
.preview-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.preview-kpis > div { background: var(--panel-2); padding: 9px; }
.preview-kpis span { display: block; font-size: 7.5px; color: var(--text-3); }
.preview-kpis b { display: block; font-family: var(--num); font-size: 12px; font-weight: 650; margin-top: 1px; }

/* ---------------- 空态 / 提示 ---------------- */
.empty { padding: 34px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.empty-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); color: var(--text-3); display: grid; place-items: center; margin-bottom: 4px; }
.empty-ic .ic { width: 19px; height: 19px; }
.empty b { font-size: 11px; }
.empty span { font-size: 9px; color: var(--text-3); }
.toast-root { position: fixed; right: 22px; bottom: 38px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; min-width: 220px; max-width: 360px; padding: 10px 12px; border-radius: 9px; background: var(--rail); color: #eef7fb; box-shadow: 0 16px 36px rgba(3,16,25,.3); font-size: 10.5px; opacity: 0; transform: translateY(6px); transition: all .22s ease; }
.toast.show { opacity: 1; transform: none; }
.toast .toast-ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(45,212,191,.16); color: #2dd4bf; flex: 0 0 20px; }
.toast .ic { width: 12px; height: 12px; }
.toast.bad .toast-ic { background: rgba(248,113,113,.16); color: #fca5a5; }
.toast.warn .toast-ic { background: rgba(251,191,36,.16); color: #fcd34d; }

/* ---------------- 多站点 / 站点工作台 ---------------- */
.site-wrap { position: relative; }
.domain-wrap { position: relative; }
.domain-pop { width: 300px; }
.domain-pop .site-pop-row { padding: 7px 8px; }
.domain-pop-ic { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 7px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.domain-pop-ic .ic { width: 14px; height: 14px; }
.crumb .site-switch { height: 32px; border-color: transparent; background: transparent; padding: 0 6px 0 4px; border-radius: 7px; }
.crumb .site-switch:hover { border-color: var(--line); background: var(--panel-2); }
.crumb .site-switch .site-switch-txt small, .crumb .site-switch .site-switch-txt em { display: none; }
.crumb .site-switch .site-switch-txt b { max-width: 170px; font-size: 12px; }
.site-switch {
  height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 9px 0 6px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text-2);
}
.site-switch:hover { border-color: var(--accent); background: var(--panel-2); }
.site-switch-ic { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); flex: 0 0 24px; }
.site-switch-ic .ic { width: 14px; height: 14px; }
.site-switch-txt { text-align: left; line-height: 1.25; max-width: 125px; }
.site-switch-txt small { display: block; font-size: 7px; letter-spacing: .6px; color: var(--text-3); }
.site-switch-txt b { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 125px; }
.site-switch-txt em { display: block; font-style: normal; font-size: 7.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 125px; }
.site-switch .chev { width: 11px; height: 11px; margin-left: 1px; }
.site-pop { left: 0; right: auto; top: calc(100% + 8px); width: 360px; padding: 7px; }
.site-pop-row { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; }
.site-pop-row:hover { background: var(--panel-2); }
.site-pop-row.active { background: var(--accent-soft); }
.site-pop-row > div { flex: 1 1 auto; min-width: 0; }
.site-pop-row b { display: block; font-size: 10.5px; }
.site-pop-row span { display: block; font-size: 8px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-pop-row .site-pop-scope { color: var(--accent); font-size: 7px; margin-top: 2px; }
.site-pop-row .ic { width: 14px; height: 14px; color: var(--text-3); flex: 0 0 14px; }
.site-pop-row.active .ic { color: var(--accent); }
.site-pop-badge { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 7px; background: var(--panel-3); color: var(--text-2); font-family: var(--num); font-size: 9px; font-weight: 600; display: grid !important; place-items: center; }
.site-pop-badge.all { background: var(--accent-soft); color: var(--accent-deep); }
.site-pop-row .site-pop-badge { display: grid !important; font-size: 9px; color: var(--text-2); }
.site-pop-row .site-pop-badge.all { color: var(--accent-deep); }
.site-pop-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line-2); margin-top: 5px; padding: 8px 7px 4px; }

.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }
.site-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 15px 16px 12px; position: relative; overflow: hidden;
}
.site-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--c), transparent 72%); opacity: .85; }
.site-card-head { display: flex; align-items: center; gap: 9px; }
.site-badge { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); font-family: var(--num); font-size: 12px; font-weight: 650; }
.site-badge.big { width: 46px; height: 46px; flex: 0 0 46px; font-size: 15px; }
.site-title { flex: 1 1 auto; min-width: 0; }
.site-title b { display: block; font-size: 13px; }
.site-title span { display: block; font-size: 8.5px; color: var(--text-3); margin-top: 1px; }
.site-loc { display: flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--text-3); margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-loc .ic { width: 11px; height: 11px; flex: 0 0 11px; color: var(--accent); }
.site-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.site-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.site-metrics .mini-metric b { font-size: 15px; }
.site-health-row { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.site-health-row > div:first-child { display: flex; align-items: baseline; gap: 3px; }
.site-health-row span { font-size: 8px; color: var(--text-3); }
.site-health-row b { font-family: var(--num); font-size: 12px; }
.site-health-row .progress { flex: 1 1 auto; }
.site-card-foot { display: flex; gap: 5px; margin-top: 10px; }
.site-card-foot .btn:first-child { margin-right: auto; }
.site-link-banner { display: flex; align-items: center; gap: 13px; padding: 14px 17px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); background: linear-gradient(100deg, var(--accent-soft), var(--panel) 72%); margin-bottom: 15px; flex-wrap: wrap; }
.slb-icon { width: 37px; height: 37px; flex: 0 0 37px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.slb-icon .ic { width: 19px; height: 19px; }
.site-link-banner > div:nth-child(2) { flex: 1 1 400px; min-width: 0; }
.site-link-banner b { display: block; font-size: 12px; }
.site-link-banner span { display: block; font-size: 8.5px; color: var(--text-2); line-height: 1.55; margin-top: 2px; }
.slb-stats { display: flex; gap: 15px; }
.slb-stats b { display: block; font-family: var(--num); font-size: 17px; }
.slb-stats span { display: block; font-size: 7.5px; color: var(--text-3); }
.site-bottom-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 15px; }
.submit-list { display: flex; flex-direction: column; }
.submit-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.submit-row:last-child { border-bottom: 0; }
.submit-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--accent); }
.submit-row > div { flex: 1 1 auto; min-width: 0; }
.submit-row b { display: block; font-size: 9.5px; }
.submit-row span { display: block; font-size: 8px; color: var(--text-3); margin-top: 1px; }
.activity-list { display: flex; flex-direction: column; }
.activity-row { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.activity-row:last-child { border-bottom: 0; }
.activity-time { font-family: var(--num); font-size: 8px; color: var(--text-3); width: 32px; flex: 0 0 32px; }
.activity-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; margin-top: 5px; }
.activity-row > div { min-width: 0; }
.activity-row b { display: block; font-size: 9.5px; }
.activity-row span { display: block; font-size: 8px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line)); border-left: 4px solid var(--c); background: linear-gradient(100deg, color-mix(in srgb, var(--c) 7%, var(--panel)), var(--panel) 60%); box-shadow: var(--shadow); margin-bottom: 15px; flex-wrap: wrap; }
.site-hero-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-hero-main h2 { font-size: 20px; font-weight: 650; }
.site-hero-main p { font-size: 9px; color: var(--text-3); margin-top: 2px; }
.site-hero-stats { display: flex; gap: 22px; }
.site-hero-stats .mini-metric b { font-size: 18px; }
.site-tabs { display: none; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); width: fit-content; margin-bottom: 15px; box-shadow: var(--shadow); }
.site-tabs button { height: 31px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); font-size: 10px; display: inline-flex; align-items: center; gap: 5px; }
.site-tabs button .ic { width: 13px; height: 13px; }
.site-tabs button.active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.site-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.site-exec { display: flex; align-items: center; gap: 18px; }
.exec-list { flex: 1 1 auto; }
.exec-list > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.exec-list > div:last-child { border-bottom: 0; }
.exec-list b { font-family: var(--num); font-size: 10.5px; }
.link-site-head { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); }
.link-site-head > div { flex: 1 1 auto; min-width: 0; }
.link-site-head b { display: block; font-size: 10px; }
.link-site-head span { display: block; font-size: 8px; color: var(--text-3); margin-top: 1px; }
.link-site-head .sync-logo { display: grid; color: #fff; font-size: 16px; margin-top: 0; }
.module-pills { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.card-inline-actions { display: flex; gap: 6px; margin-top: 9px; }
.card-inline-actions.center { justify-content: center; }
.card-inline-actions .btn { flex: 1 1 0; }
.scope-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.scope-columns h5 { font-size: 9px; color: var(--text-3); margin: 0 0 4px; font-weight: 500; }
.scope-item { display: flex; align-items: center; gap: 5px; padding: 4px 0; font-size: 8.5px; color: var(--text-2); }
.scope-item .ic { width: 11px; height: 11px; flex: 0 0 11px; }
.scope-item.ok .ic { color: var(--accent); }
.scope-item.deny { color: var(--text-3); }
.scope-item.deny .ic { color: var(--red); }
.site-link-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 15px; }
.hazard-mini-list { display: flex; flex-direction: column; gap: 2px; }
.hazard-mini { display: flex; align-items: center; gap: 7px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); cursor: pointer; }
.hazard-mini:last-child { border-bottom: 0; }
.hazard-thumb { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, var(--h, #c2415d) 12%, transparent); color: var(--h, #c2415d); }
.hazard-thumb .ic { width: 14px; height: 14px; }
.hazard-mini > div { flex: 1 1 auto; min-width: 0; }
.hazard-mini b { display: block; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hazard-mini span { display: block; font-size: 7.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hazard-mini .hazard-thumb { display: grid; font-size: initial; }
.today-route { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow); padding: 12px 15px; margin-bottom: 15px; }
.tr-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.tr-icon { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tr-icon .ic { width: 15px; height: 15px; }
.tr-head > div { flex: 1 1 auto; }
.tr-head b { display: block; font-size: 10.5px; }
.tr-head span { display: block; font-size: 8px; color: var(--text-3); }
.tr-list { display: flex; flex-direction: column; }
.tr-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.tr-item:last-child { border-bottom: 0; }
.tr-no { width: 19px; height: 19px; border-radius: 50%; background: var(--panel-2); color: var(--text-3); display: grid; place-items: center; font-family: var(--num); font-size: 8px; flex: 0 0 19px; }
.tr-item > div { flex: 1 1 auto; min-width: 0; }
.tr-item b { display: block; font-size: 9.5px; }
.tr-item span { display: block; font-size: 8px; color: var(--text-3); }
.tr-item > .ic:last-child { width: 12px; height: 12px; color: var(--text-3); }
.checkin-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.checkin-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.checkin-row:last-child { border-bottom: 0; }
.checkin-no { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: var(--panel-2); color: var(--text-3); display: grid; place-items: center; font-family: var(--num); font-size: 8px; }
.checkin-no .ic { width: 11px; height: 11px; }
.checkin-row.done .checkin-no { background: var(--accent); color: #fff; }
.checkin-main { flex: 1 1 auto; min-width: 0; }
.checkin-main b { display: block; font-size: 9px; }
.checkin-main span { display: block; font-size: 7.5px; color: var(--text-3); margin-top: 1px; }
.checkin-meta { text-align: right; }
.checkin-meta b { display: block; font-family: var(--num); font-size: 8px; }
.checkin-meta span { display: block; font-size: 7px; color: var(--text-3); }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-tile { position: relative; aspect-ratio: 4/3; border-radius: 7px; background: linear-gradient(145deg, color-mix(in srgb, var(--h, #0e9384) 18%, var(--panel-2)), var(--panel-2)); border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--h, #0e9384); overflow: hidden; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-tile > .ic { width: 19px; height: 19px; }
.photo-tile > span { font-size: 7.5px; color: var(--text-3); }
.photo-tile > em { position: absolute; left: 3px; bottom: 3px; font-style: normal; font-family: var(--num); font-size: 6px; color: #fff; background: rgba(4,20,30,.5); padding: 1px 3px; border-radius: 2px; }
.hazard-list { display: flex; flex-direction: column; }
.hazard-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); cursor: pointer; }
.hazard-row:last-child { border-bottom: 0; }
.hazard-row > div { flex: 1 1 auto; min-width: 0; }
.hazard-row b { display: block; font-size: 9px; }
.hazard-row span { display: block; font-size: 7.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 移动巡检平台页 ---------------- */
.mobile-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; margin-bottom: 15px; }
.mobile-filter { display: flex; align-items: center; gap: 9px; margin: -6px 0 13px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: var(--shadow); width: fit-content; }
.mobile-filter > span:first-child { display: flex; align-items: center; gap: 4px; font-size: 9px; color: var(--text-3); }
.mobile-filter > span:first-child .ic { width: 12px; height: 12px; color: var(--accent); }
.phone-stage { display: flex; justify-content: center; padding: 4px 0; }
.phone-shell { width: 306px; height: 600px; border-radius: 35px; background: #0a1e2a; border: 8px solid #0b202c; box-shadow: 0 24px 55px rgba(5, 25, 38, .22), inset 0 0 0 1px rgba(255,255,255,.08); position: relative; overflow: hidden; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 82px; height: 17px; background: #0b202c; border-radius: 0 0 11px 11px; z-index: 6; }
.phone-screen { height: 100%; background: #f2f6f8; overflow: hidden; position: relative; padding: 22px 11px 0; display: flex; flex-direction: column; }
.pm-top { display: flex; align-items: center; justify-content: space-between; padding: 7px 3px 6px; }
.pm-brand { font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.pm-sync { display: flex; align-items: center; gap: 3px; font-size: 6.5px; color: #0e9384; }
.pm-sync i { width: 4px; height: 4px; border-radius: 50%; background: #0e9384; }
.pm-greeting { padding: 3px 3px 8px; }
.pm-greeting b { display: block; font-size: 13px; }
.pm-greeting span { display: block; font-size: 6.5px; color: #8ea0ad; margin-top: 2px; }
.pm-progress { background: #0c2d3c; border-radius: 12px; padding: 10px 11px; color: #eaf8fa; }
.pm-progress > div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
.pm-progress span { font-size: 7px; color: #8fb4bf; }
.pm-progress b { font-family: var(--num); font-size: 16px; }
.pm-progress .progress { margin-top: 5px; background: rgba(255,255,255,.14); }
.pm-progress .progress i { background: #2dd4bf; }
.pm-section { font-size: 7px; color: #8ea0ad; margin: 11px 3px 5px; }
.pm-task { background: #fff; border-radius: 10px; padding: 8px 9px; margin-bottom: 6px; box-shadow: 0 4px 14px rgba(18,45,66,.05); }
.pm-task-top { display: flex; justify-content: space-between; align-items: center; }
.pm-task-top .small { font-size: 6.5px; }
.pm-task > b { display: block; font-size: 8.5px; margin-top: 4px; }
.pm-task > span { display: block; font-size: 6.5px; color: #8ea0ad; margin-top: 1px; }
.pm-task-bar { height: 3px; border-radius: 3px; background: #edf2f5; margin-top: 6px; overflow: hidden; }
.pm-task-bar i { display: block; height: 100%; background: #0e9384; border-radius: 3px; }
.pm-task em { display: block; font-style: normal; font-size: 6px; color: #8ea0ad; margin-top: 3px; }
.pm-tabbar { margin-top: auto; height: 43px; border-top: 1px solid #e2eaef; display: flex; align-items: center; justify-content: space-around; font-size: 6.5px; color: #8ea0ad; background: #fff; margin-left: -11px; margin-right: -11px; }
.pm-tabbar span.active { color: #0e9384; font-weight: 600; }
.mobile-side { display: flex; flex-direction: column; gap: 15px; }
.mobile-side .card:first-child { flex: 0 0 auto; }
.qr-wrap { display: flex; justify-content: center; padding: 8px 0 3px; }
.qr-wrap svg { width: 172px; height: 172px; border-radius: 6px; }
.qr-fallback { width: 172px; height: 172px; border-radius: 8px; background: var(--panel-2); display: grid; place-items: center; color: var(--text-3); }
.qr-url { text-align: center; font-family: var(--num); font-size: 7.5px; color: var(--text-3); word-break: break-all; padding: 0 10px; }
.mobile-features { display: flex; flex-direction: column; gap: 2px; }
.mf-row { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.mf-row:last-child { border-bottom: 0; }
.mf-ic { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.mf-ic .ic { width: 11px; height: 11px; }
.mf-row b { display: block; font-size: 9px; }
.mf-row span { display: block; font-size: 7.5px; color: var(--text-3); line-height: 1.45; margin-top: 1px; }
.mobile-bottom-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 15px; }
.mobile-hazard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mobile-hazard { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--panel-2); }
.mh-photo { height: 64px; background: linear-gradient(145deg, color-mix(in srgb, var(--h) 15%, var(--panel-2)), var(--panel-2)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--h); position: relative; overflow: hidden; }
.mh-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mh-photo .ic { width: 18px; height: 18px; }
.mh-photo span { font-size: 6.5px; color: var(--text-3); }
.mh-body { padding: 6px 7px; }
.mh-body > div { display: flex; justify-content: space-between; align-items: center; }
.mh-body b { display: block; font-size: 8px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-body > span { display: block; font-size: 6.5px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miniapp-hero { display: flex; align-items: center; gap: 11px; margin-top: 10px; padding: 11px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-2); }
.mini-qr { width: 43px; height: 43px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 43px; }
.mini-qr .ic { width: 24px; height: 24px; }
.miniapp-hero b { display: block; font-size: 10px; }
.miniapp-hero span { display: block; font-size: 8.5px; color: var(--text-3); line-height: 1.5; margin-top: 2px; }
.mini-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.mini-page { display: flex; align-items: flex-start; gap: 7px; padding: 6px 7px; border-radius: 7px; background: var(--panel-2); }
.mini-page > span { font-family: var(--num); font-size: 8px; color: var(--accent); }
.mini-page b { display: block; font-size: 9px; }
.mini-page span { display: block; font-size: 7.5px; color: var(--text-3); }

/* ---------------- 专业内容上下文导航 ---------------- */
.ctx-head {
  display: flex; align-items: center; gap: 8px; margin: 0 2px 13px; padding: 10px 9px;
  border-radius: 10px; background: color-mix(in srgb, var(--c) 9%, rgba(255,255,255,.04));
  border: 1px solid color-mix(in srgb, var(--c) 22%, rgba(255,255,255,.06));
}
.ctx-icon { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.ctx-icon .ic { width: 17px; height: 17px; }
.ctx-head > div { flex: 1 1 auto; min-width: 0; }
.ctx-head b { display: block; color: #edf7fb; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-head span { display: block; color: #7f9aaa; font-size: 8px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-head em { font-style: normal; font-family: var(--num); font-size: 8px; color: #6f8d9e; padding: 2px 5px; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; }
.ctx-back { display: flex; align-items: center; gap: 6px; width: calc(100% - 4px); margin: 10px 2px 0; padding: 9px 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; color: #8fa8b6; font-size: 10px; text-align: left; background: rgba(255,255,255,.025); }
.ctx-back:hover { color: #eaf7fb; border-color: rgba(45,212,191,.24); }
.ctx-back .ic { width: 14px; height: 14px; transform: rotate(180deg); }
.nav-collapse .nav-item { height: 30px; font-size: 11.5px; }
.nav-collapse .nav-item .nav-ic .ic { width: 14px; height: 14px; }

.domain-tabs { display: none; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 15px; }
.domain-tabs button { height: 31px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); font-size: 10px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.domain-tabs button .ic { width: 13px; height: 13px; }
.domain-tabs button b { font-family: var(--num); font-size: 8px; color: var(--text-3); background: var(--panel-3); border-radius: 4px; padding: 0 4px; }
.domain-tabs button.active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.domain-tabs button.active b { background: var(--panel); color: var(--accent-deep); }
.domain-foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.mini-list { display: flex; flex-direction: column; }
.mini-list-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.mini-list-row:last-child { border-bottom: 0; }
.mini-list-row > div { flex: 1 1 auto; min-width: 0; }
.mini-list-row b { display: block; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list-row span { display: block; font-size: 7.5px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list-row .pill { flex: 0 0 auto; }
.domain-split { display: grid; grid-template-columns: 1fr; gap: 15px; }
.domain-split.wide-left { grid-template-columns: minmax(0, 1.7fr) minmax(300px, .7fr); }
.test-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 15px; }
.test-summary > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; box-shadow: var(--shadow); }
.test-summary b { display: block; font-family: var(--num); font-size: 21px; font-weight: 650; }
.test-summary span { display: block; font-size: 8px; color: var(--text-3); margin-top: 1px; }
.domain-analysis-grid { display: grid; grid-template-columns: .78fr 1.5fr; gap: 15px; }
.domain-analysis-grid .health-dist { padding: 10px 0; }

/* ---------------- 响应式 ---------------- */
.nav-scrim { display: none; }
@media (max-width: 1380px) {
  .view { padding: 20px 20px 40px; }
  .topbar { padding: 0 20px; }
  .global-search { width: 260px; }
  .date-chip { display: none; }
  .cat-banner-stats { gap: 16px; }
}
@media (max-width: 1180px) {
  .overview-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .health-hero { grid-column: span 2; }
  .overview-main, .domain-main, .reliability-top, .reliability-bottom, .safety-layout, .spare-layout { grid-template-columns: 1fr; }
  .overview-bottom { grid-template-columns: 1fr 1fr; }
  .report-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-main .card { min-height: auto; }
  .settings-grid { grid-template-columns: 1fr; }
  .cat-banner-stats { display: none; }
}
@media (max-width: 1024px) {
  .rail { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .22s ease; }
  body.nav-open .rail { transform: none; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(3,16,25,.42); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-grid !important; }
  .crumb { display: flex; }
  .crumb > span, .crumb > i { display: none; }
  .site-switch-txt em { display: none; }
  .global-search { margin-left: 0; width: 240px; }
  .top-pop.notify-pop { right: 56px; }
  .sync-chip { display: none; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  .site-grid { grid-template-columns: 1fr; }
  .site-overview-grid, .site-link-grid, .mobile-bottom-grid { grid-template-columns: 1fr; }
  .domain-split.wide-left, .domain-analysis-grid { grid-template-columns: 1fr; }
  .mobile-layout { grid-template-columns: 1fr; }
  .phone-stage { order: 1; }
  .mobile-side { order: 2; flex-direction: row; flex-wrap: wrap; }
  .mobile-side .card { flex: 1 1 320px; }
  .site-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-switch { height: 34px; }
  .site-switch-txt small, .site-switch-txt em { display: none; }
  .site-switch-txt b { max-width: 82px; font-size: 10px; }
  .crumb .site-switch .site-switch-txt b { max-width: 76px; font-size: 10px; }
  .site-pop { position: fixed; left: 10px; right: 10px; top: 58px; width: auto; max-height: 72vh; overflow: auto; }
  .style-pop { position: fixed; left: 10px; right: 10px; top: 58px; width: auto; max-height: 72vh; overflow: auto; }
  .site-pop { width: 300px; }
  .site-tabs { width: 100%; overflow-x: auto; }
  .site-tabs button { flex: 1 0 auto; justify-content: center; }
  .domain-tabs { width: 100%; }
  .domain-tabs button { flex: 1 0 auto; justify-content: center; }
  .test-summary { grid-template-columns: 1fr 1fr; }
  .site-metrics { grid-template-columns: 1fr 1fr; }
  .site-hero-stats { width: 100%; justify-content: space-between; gap: 8px; }
  .site-hero-stats .mini-metric b { font-size: 16px; }
  .scope-columns { grid-template-columns: 1fr; }
  .phone-shell { width: 290px; height: 570px; }
  .site-link-banner { align-items: flex-start; }
  .slb-stats { width: 100%; justify-content: space-between; }
  .mobile-side { flex-direction: column; }
  .mobile-side .card { flex: 1 1 auto; }
  .topbar { height: 56px; flex-basis: 56px; padding: 0 12px; gap: 7px; }
  .global-search { width: 150px; height: 32px; }
  .global-search kbd { display: none; }
  .user-text, .user-chip .chev { display: none; }
  .user-chip { padding: 2px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-head h1 { font-size: 23px; }
  .head-actions { width: 100%; justify-content: flex-start; }
  .overview-top { grid-template-columns: 1fr 1fr; }
  .health-hero { grid-column: span 2; }
  .overview-bottom { grid-template-columns: 1fr; }
  .domain-tabs, .site-tabs { display: flex; }
  .kpi-grid.four { grid-template-columns: 1fr 1fr; }
  .kpi-value b { font-size: 24px; }
  .cat-banner { flex-direction: column; align-items: stretch; gap: 10px; }
  .cat-banner h2 { font-size: 16px; }
  .table-card { border-radius: 12px; }
  .plan-grid, .report-grid, .kanban { grid-template-columns: 1fr; }
  .filterbar { align-items: stretch; }
  .filter-right { width: 100%; }
  .search-input { flex: 1 1 auto; }
  .search-input input { width: 100%; }
  .tbl { font-size: 10px; }
  .statusbar { padding: 0 12px; gap: 8px; overflow: hidden; }
  .statusbar .s:nth-child(n+5) { display: none; }
  .toast-root { right: 12px; bottom: 38px; left: 12px; }
  .toast { max-width: none; }
  .drawer, .drawer.wide { width: 100vw; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .wo-summary { grid-template-columns: 1fr; }
  .steps { overflow-x: auto; }
  .step { min-width: 100px; }
  .settings-tabs { width: 100%; overflow-x: auto; }
  .settings-tabs button { flex: 1 0 auto; justify-content: center; }
  .sync-map { gap: 10px; }
  .sync-status { margin-left: 0; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .col2 { grid-column: auto; }
  .preview-kpis { grid-template-columns: 1fr 1fr; }
  .health-dist { flex-direction: column; align-items: flex-start; }
  .global-search .search-pop { width: calc(100vw - 24px); left: -45px; }
}
