:root {
  --bg: #f2f5f9;
  --panel: #ffffff;
  --ink: #101b2d;
  --ink-soft: #2d3b50;
  --muted: #708095;
  --muted-2: #98a5b7;
  --line: #e5eaf1;
  --line-strong: #d8e0ea;
  --navy: #0a1424;
  --navy-2: #101e32;
  --teal: #16b8a6;
  --teal-dark: #0d8178;
  --teal-soft: #e4f8f5;
  --blue: #3e6df3;
  --blue-soft: #edf2ff;
  --orange: #f59f3d;
  --orange-soft: #fff5e8;
  --red: #e6575e;
  --red-soft: #fff0f1;
  --purple: #8b6df6;
  --green: #17a673;
  --green-soft: #e8f8f1;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .04), 0 4px 12px rgba(15, 27, 45, .03);
  --shadow: 0 10px 30px rgba(15, 27, 45, .07);
  --shadow-lg: 0 22px 60px rgba(8, 18, 35, .2);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
svg { display: block; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 252px; padding: 0 15px 16px;
  background:
    radial-gradient(circle at 15% 8%, rgba(22, 184, 166, .14), transparent 26%),
    radial-gradient(circle at 80% 55%, rgba(62, 109, 243, .07), transparent 30%),
    linear-gradient(180deg, #0a1424 0%, #0b1728 55%, #0a1422 100%);
  color: #c7d3e2; display: flex; flex-direction: column; z-index: 60;
  border-right: 1px solid rgba(255, 255, 255, .04);
}
.sidebar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 65%);
}
.sidebar > * { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; padding: 24px 10px 26px; color: #fff; }
.brand-mark { width: 40px; height: 40px; color: var(--teal); filter: drop-shadow(0 0 14px rgba(22,184,166,.28)); flex: 0 0 auto; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: 17px; letter-spacing: .06em; font-weight: 700; }
.brand-copy small { margin-top: 6px; font-size: 8px; letter-spacing: .16em; color: #6f8199; font-weight: 600; }
.nav-section-label { padding: 4px 13px 9px; color: #586a82; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.nav-section-spaced { margin-top: 22px; }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 11px;
  color: #8fa1b8; font-size: 13.5px; transition: all .2s ease; position: relative;
}
.nav-item .icon { width: 19px; height: 19px; opacity: .88; }
.nav-item span { flex: 1; }
.nav-item em { font-style: normal; font-size: 10px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; background: rgba(255,255,255,.06); color: #a8b8cb; }
.nav-item:hover { background: rgba(255,255,255,.045); color: #e4edf7; }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(22,184,166,.22), rgba(22,184,166,.06)); box-shadow: inset 0 0 0 1px rgba(45, 211, 191, .14); }
.nav-item.active::before { content: ""; position: absolute; left: -15px; width: 3px; height: 24px; border-radius: 0 4px 4px 0; background: var(--teal); box-shadow: 0 0 12px rgba(22,184,166,.7); }
.nav-item.active .icon { color: #35d4c2; }
.sidebar-foot { margin-top: auto; }
.system-card { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); border-radius: 13px; padding: 14px; margin: 14px 2px 12px; }
.system-card-head { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #dbe6f3; margin-bottom: 12px; }
.system-card-head small { margin-left: auto; color: #61758e; font-size: 9px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2bd8a7; box-shadow: 0 0 0 4px rgba(43,216,167,.12), 0 0 10px rgba(43,216,167,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(43,216,167,0), 0 0 12px rgba(43,216,167,.45); } }
.system-row { display: flex; justify-content: space-between; font-size: 10.5px; color: #6f829a; margin: 7px 0; }
.system-row b { font-weight: 500; color: #b6c5d8; }
.system-row b.ok-text { color: #44d7ad; }
.system-meter { height: 3px; border-radius: 4px; background: rgba(255,255,255,.07); margin: 11px 0 8px; overflow: hidden; }
.system-meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #17a895, #3ce0c3); }
.system-note { font-size: 9px; color: #5f728a; line-height: 1.5; }
.operator { display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; border-top: 1px solid rgba(255,255,255,.055); }
.operator .avatar { width: 31px; height: 31px; border-radius: 9px; background: linear-gradient(135deg, #1b2c46, #263c5b); color: #dbe8f6; display: grid; place-items: center; font-size: 12px; border: 1px solid rgba(255,255,255,.08); }
.operator > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.operator b { font-size: 11px; color: #ccd9e8; font-weight: 500; }
.operator small { font-size: 9px; color: #60748c; }
.operator .icon { width: 16px; height: 16px; color: #53677f; }

.main-wrap { margin-left: 252px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 69px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(247,249,252,.84); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgba(218, 226, 237, .8);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.crumb { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted-2); }
.crumb i { font-style: normal; color: #c4ccd7; }
.crumb b { color: var(--ink-soft); font-weight: 500; }
.engine-pill { display: flex; align-items: center; gap: 9px; padding: 6px 11px 6px 7px; border: 1px solid var(--line); background: rgba(255,255,255,.72); border-radius: 10px; margin-right: 4px; }
.engine-pill > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.engine-pill small { font-size: 7px; color: #98a4b5; letter-spacing: .12em; margin-bottom: 2px; }
.engine-pill b { font-size: 10.5px; color: #5f6f84; font-weight: 500; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.engine-pill.ready b { color: var(--teal-dark); }
.engine-orb { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: #eef2f7; color: #7a8ba2; }
.engine-pill.ready .engine-orb { background: var(--teal-soft); color: var(--teal-dark); }
.engine-orb .icon { width: 15px; height: 15px; }
.icon-btn { border: 1px solid var(--line); background: rgba(255,255,255,.8); color: #6d7d91; width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; transition: .18s; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.icon-btn .icon { width: 18px; height: 18px; }
.notification { position: relative; }
.notification i { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); border: 1px solid #fff; }
.mobile-menu { display: none; }

.main-content { padding: 28px 34px 28px; width: 100%; max-width: 1720px; margin: 0 auto; flex: 1; }
.page-footer { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 9.5px; color: #a2adbc; letter-spacing: .03em; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head-copy .eyebrow, .eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--teal-dark); font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 7px; }
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--teal); }
.page-head h1 { font-size: 27px; line-height: 1.15; margin: 0 0 7px; letter-spacing: -.04em; font-weight: 700; color: #0e1b2f; }
.page-head p { margin: 0; font-size: 12px; color: var(--muted); }
.page-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.date-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #6d7d90; font-size: 11px; }
.date-chip .icon { width: 15px; height: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 500; transition: all .18s; white-space: nowrap; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(135deg, #109d90, #17b8a6); color: #fff; box-shadow: 0 6px 16px rgba(18, 166, 152, .2); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(18, 166, 152, .28); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #13243c; }
.btn-ghost { background: #fff; border-color: var(--line); color: #5d6e83; }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--ink); background: #fbfcfd; }
.btn-soft { background: var(--teal-soft); color: var(--teal-dark); border-color: #c9f0ea; }
.btn-soft:hover { background: #d8f5ef; }
.btn-danger { color: var(--red); background: var(--red-soft); border-color: #ffd9dc; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 11px; border-radius: 8px; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-block { width: 100%; }
.link-btn { border: 0; background: transparent; color: var(--teal-dark); font-size: 11px; display: inline-flex; align-items: center; gap: 3px; padding: 2px; }
.link-btn .icon { width: 13px; height: 13px; }

.panel { background: var(--panel); border: 1px solid rgba(224, 231, 240, .9); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-head { padding: 20px 22px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.panel-title { display: flex; flex-direction: column; gap: 3px; }
.panel-title h2, .panel-title h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.panel-title span { font-size: 10px; color: var(--muted-2); }
.panel-body { padding: 20px 22px; }
.panel-badge { height: 23px; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; font-size: 9px; background: #f4f7fa; color: #7b8b9e; }
.panel-badge.live { color: var(--teal-dark); background: var(--teal-soft); }
.panel-badge.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.kpi-card { position: relative; padding: 16px 16px 14px; background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; box-shadow: var(--shadow-sm); min-height: 116px; }
.kpi-card::after { content: ""; position: absolute; width: 74px; height: 74px; right: -26px; top: -26px; border-radius: 50%; background: var(--kpi-soft, #f3f6fa); opacity: .8; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.kpi-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--kpi-soft, #f1f5f9); color: var(--kpi-color, #63748a); }
.kpi-icon .icon { width: 16px; height: 16px; }
.kpi-trend { font-size: 9.5px; color: var(--green); background: var(--green-soft); border-radius: 5px; padding: 2px 5px; display: inline-flex; align-items: center; gap: 2px; }
.kpi-trend.neutral { color: #8a99ab; background: #f3f6f9; }
.kpi-trend.warn { color: var(--red); background: var(--red-soft); }
.kpi-label { margin-top: 10px; color: #7b8a9d; font-size: 10.5px; }
.kpi-main { display: flex; align-items: baseline; gap: 5px; margin-top: 1px; }
.kpi-main b { font-size: 25px; line-height: 1.15; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi-main span { font-size: 9.5px; color: #9aa7b7; }
.kpi-sub { margin-top: 4px; font-size: 9px; color: #a0acba; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(300px, .85fr); gap: 16px; margin-bottom: 16px; }
.posture-card {
  min-height: 246px; border-radius: var(--radius); padding: 24px 26px; position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 80% 30%, rgba(24,196,177,.16), transparent 35%), radial-gradient(circle at 15% 100%, rgba(57,105,222,.16), transparent 42%), linear-gradient(125deg, #0b1628 0%, #0c1a2d 55%, #0a1728 100%);
  box-shadow: 0 16px 44px rgba(10, 20, 36, .16);
}
.posture-card::before { content: ""; position: absolute; inset: 0; opacity: .33; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 70% 50%, #000, transparent 72%); }
.posture-card::after { content: ""; position: absolute; right: -70px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(31,207,186,.1); box-shadow: 0 0 0 46px rgba(31,207,186,.025), 0 0 0 96px rgba(31,207,186,.018); }
.posture-content { display: grid; grid-template-columns: 155px 1fr; gap: 26px; align-items: center; position: relative; z-index: 1; }
.posture-ring { width: 152px; height: 152px; border-radius: 50%; position: relative; display: grid; place-items: center; background: conic-gradient(from 210deg, var(--ring-color) var(--ring-deg), rgba(255,255,255,.075) 0); box-shadow: 0 0 0 1px rgba(255,255,255,.045); }
.posture-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #0e1b2d; box-shadow: inset 0 0 24px rgba(0,0,0,.2); }
.posture-ring::after { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.08); }
.ring-inner { position: relative; z-index: 1; text-align: center; line-height: 1; }
.ring-inner b { font-size: 43px; font-weight: 700; letter-spacing: -.06em; font-variant-numeric: tabular-nums; color: #fff; }
.ring-inner small { display: block; font-size: 8px; color: #7e93ac; letter-spacing: .16em; margin-top: 8px; }
.posture-info { max-width: 490px; }
.posture-kicker { display: flex; align-items: center; gap: 8px; font-size: 9.5px; color: #8498b0; letter-spacing: .12em; text-transform: uppercase; }
.posture-kicker .live-dot { width: 5px; height: 5px; }
.posture-info h2 { margin: 8px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.posture-info h2 em { font-style: normal; color: var(--ring-color); }
.posture-info > p { margin: 0; max-width: 480px; color: #8598b0; font-size: 10.5px; line-height: 1.72; }
.posture-stats { margin-top: 19px; display: flex; gap: 26px; }
.posture-stat { border-left: 1px solid rgba(255,255,255,.1); padding-left: 14px; }
.posture-stat:first-child { border: 0; padding: 0; }
.posture-stat span { display: block; font-size: 8.5px; color: #6e829b; margin-bottom: 4px; }
.posture-stat b { font-size: 15px; font-weight: 600; color: #dbe6f3; }
.posture-stat b small { font-size: 9px; font-weight: 400; color: #7489a0; margin-left: 2px; }
.posture-tag { position: absolute; top: 22px; right: 24px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: #73cdbf; background: rgba(22,184,166,.09); border: 1px solid rgba(22,184,166,.16); border-radius: 6px; padding: 5px 8px; }
.posture-tag::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }

.signal-panel { padding: 0; overflow: hidden; }
.signal-panel .panel-head { padding: 19px 20px 13px; align-items: center; }
.signal-list { padding: 0 20px 8px; }
.signal-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid #f0f3f7; }
.signal-item:first-child { border-top: 0; }
.signal-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #f3f6fa; color: #71839a; }
.signal-icon .icon { width: 14px; height: 14px; }
.signal-icon.critical { color: var(--red); background: var(--red-soft); }
.signal-icon.warning { color: var(--orange); background: var(--orange-soft); }
.signal-icon.success { color: var(--green); background: var(--green-soft); }
.signal-copy b { display: block; font-size: 10.5px; font-weight: 500; color: #2e3d51; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 225px; }
.signal-copy span { display: block; margin-top: 2px; color: #91a0b2; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 225px; }
.signal-time { color: #adb7c4; font-size: 8.5px; white-space: nowrap; padding-top: 2px; }
.signal-foot { margin-top: 2px; border-top: 1px solid #eef2f6; padding: 10px 20px 12px; display: flex; justify-content: space-between; align-items: center; color: #8d9bad; font-size: 9px; }
.top-asset-list { padding: 0 20px 13px; }
.top-asset-row { display: grid; grid-template-columns: 22px 1fr 30px; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #f0f3f7; }
.top-asset-row:first-child { border-top: 0; }
.top-asset-rank { font-size: 8px; color: #abb6c4; font-family: monospace; }
.top-asset-copy b { display: block; font-size: 9.5px; font-weight: 500; color: #3b4d62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-asset-copy span { display: block; margin: 2px 0 6px; font-size: 7.5px; color: #9ba7b6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-asset-meter { height: 3px; border-radius: 4px; background: #edf1f5; overflow: hidden; }
.top-asset-meter i { display: block; height: 100%; border-radius: 4px; }
.top-asset-row > strong { font-size: 15px; font-weight: 700; text-align: right; letter-spacing: -.03em; }

.charts-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.chart-panel { min-height: 330px; }
.chart-panel .panel-head { padding: 19px 21px 0; }
.chart-panel .panel-body { padding: 6px 15px 10px; }
.chart-toolbar { display: flex; align-items: center; gap: 13px; font-size: 9.5px; color: #96a3b4; }
.chart-legend { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.echart { width: 100%; height: 264px; }
.echart.tall { height: 302px; }
.echart.donut { height: 250px; }

.alert-strip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #fde3c7; border-radius: 10px; background: #fff8ef; color: #996324; font-size: 10.5px; margin-bottom: 16px; }
.alert-strip .icon { width: 15px; height: 15px; color: #e78c24; flex: 0 0 auto; }
.alert-strip b { color: #7d4f12; font-weight: 600; }
.alert-strip .link-btn { margin-left: auto; color: #b87424; }

.data-panel { overflow: hidden; }
.data-panel .panel-head { padding-bottom: 15px; }
.data-panel .panel-body { padding: 0; }
.table-wrap { overflow-x: auto; }
.table-wrap.compact { border: 1px solid var(--line); border-radius: 9px; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { text-align: left; font-size: 9px; font-weight: 600; letter-spacing: .05em; color: #93a0b1; background: #fafbfd; border-bottom: 1px solid var(--line); padding: 10px 17px; }
.data-table td { border-bottom: 1px solid #f0f3f7; padding: 12px 17px; font-size: 10.5px; color: #506176; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .14s; }
.data-table tbody tr:hover { background: #fbfcfe; }
.data-table .cell-main { display: flex; align-items: center; gap: 9px; }
.cell-icon { width: 28px; height: 28px; border-radius: 8px; background: #f2f6fa; color: #62768e; display: grid; place-items: center; flex: 0 0 auto; }
.cell-icon .icon { width: 14px; height: 14px; }
.cell-title { color: #26374c; font-weight: 500; max-width: 310px; overflow: hidden; text-overflow: ellipsis; }
.cell-sub { color: #a0acba; font-size: 8.5px; margin-top: 1px; }
.table-task a:hover .cell-title { color: var(--teal-dark); }
.table-actions { display: flex; gap: 5px; align-items: center; }
.table-link { font-size: 9.5px; color: #74869c; padding: 4px 7px; border: 1px solid transparent; border-radius: 5px; }
.table-link:hover { border-color: var(--line); background: #fff; color: var(--teal-dark); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 9px; font-weight: 500; white-space: nowrap; }
.badge i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.ghost { color: #6c7f95; background: #f3f6fa; border: 1px solid #e9eef5; }
.severity-critical { color: #d9444c; background: #fff0f1; }
.severity-high { color: #d97d12; background: #fff5e7; }
.severity-medium { color: #bb9018; background: #fdf9e9; }
.severity-low { color: #168569; background: #eaf8f3; }
.status-completed { color: #168569; background: #eaf8f3; }
.status-protected { color: #195cae; background: #edf4ff; }
.status-verified { color: #5a48b8; background: #f0edff; }
.status-running, .status-pending { color: #bf790e; background: #fff6e9; }
.status-failed { color: #d9444c; background: #fff0f1; }
.status-open { color: #d9444c; background: #fff0f1; }
.status-applied { color: #168569; background: #eaf8f3; }
.muted { color: var(--muted); }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.tiny { font-size: 9px; }

.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.asset-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); transition: .2s; position: relative; overflow: hidden; }
.asset-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #dbe5ef; }
.asset-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -45px; top: -45px; border-radius: 50%; background: radial-gradient(circle, rgba(22,184,166,.07), transparent 68%); }
.asset-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.asset-type { display: inline-flex; align-items: center; gap: 6px; color: #799; font-size: 9px; letter-spacing: .04em; }
.asset-type .icon { width: 13px; height: 13px; color: #5d748d; }
.asset-score { display: flex; align-items: center; gap: 7px; position: relative; z-index: 1; }
.score-bubble { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--score-color) calc(var(--score) * 1%), #edf1f5 0); position: relative; }
.score-bubble::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.score-bubble b { position: relative; font-size: 11px; font-weight: 700; color: var(--score-color); }
.asset-card h3 { margin: 11px 0 5px; font-size: 14px; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; overflow-wrap: anywhere; }
.asset-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; font-size: 9px; color: #95a3b5; line-height: 1.45; }
.asset-meta i { width: 2px; height: 2px; border-radius: 50%; background: #c3ccd7; }
.modality-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0 15px; }
.modality-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; background: #f4f7fa; color: #5c728b; font-size: 8.5px; }
.modality-chip .icon { width: 11px; height: 11px; }
.asset-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid #f0f3f7; border-bottom: 1px solid #f0f3f7; }
.asset-stat span { display: block; color: #a1acba; font-size: 8px; margin-bottom: 3px; }
.asset-stat b { font-size: 11px; font-weight: 600; color: #3f5268; }
.asset-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.asset-finger { font-size: 8px; color: #adb7c4; font-family: monospace; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-actions { display: flex; gap: 5px; flex-shrink: 0; }
.asset-actions .btn { height: 27px; padding: 0 9px; font-size: 9.5px; border-radius: 6px; }
.asset-video-strip { display: block; position: relative; width: 100%; aspect-ratio: 16 / 10; margin-top: 12px; padding: 0; border: 0; border-radius: 9px; overflow: hidden; background: #0c1421; cursor: pointer; text-align: left; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.asset-video-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.asset-video-strip:hover img { transform: scale(1.025); }
.asset-video-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,10,18,.10), rgba(5,10,18,.02) 48%, rgba(5,10,18,.76)); pointer-events: none; }
.video-chip { position: absolute; top: 9px; left: 9px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 5px; background: rgba(10,18,30,.72); backdrop-filter: blur(6px); color: #eaf8f4; font-size: 8px; letter-spacing: .04em; }
.video-chip i { width: 5px; height: 5px; border-radius: 50%; background: #28d7b7; box-shadow: 0 0 0 3px rgba(40,215,183,.16); }
.video-counts { position: absolute; z-index: 1; left: 10px; bottom: 9px; display: flex; align-items: center; gap: 5px; color: #dbe8f4; font-size: 8.5px; }
.video-counts b { font-size: 13px; color: #fff; line-height: 1; }
.video-counts em { width: 1px; height: 10px; background: rgba(255,255,255,.28); margin: 0 2px; }
.sensitivity { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 5px; font-size: 8px; font-weight: 500; }
.sensitivity::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.sens-公开 { color: #5c7a91; background: #f1f5f8; }
.sens-内部 { color: #2d6cbf; background: #edf4ff; }
.sens-敏感 { color: #bd7b16; background: #fff6e9; }
.sens-核心 { color: #d4454c; background: #fff0f1; }
.upload-zone { border: 1.5px dashed #cfdbe6; border-radius: 10px; background: #fafcfd; padding: 20px 16px; text-align: center; transition: .18s; cursor: pointer; }
.upload-zone:hover, .upload-zone.dragover { border-color: #7ed7cc; background: #f4fcfa; }
.upload-zone .icon { width: 24px; height: 24px; margin: 0 auto 7px; color: #7ea99f; }
.upload-zone b { display: block; font-size: 10px; color: #51657c; font-weight: 500; }
.upload-zone span { display: block; font-size: 8.5px; color: #9aa7b6; margin-top: 3px; }
.upload-zone .file-selected { color: var(--teal-dark); font-size: 9px; margin-top: 6px; }
.form-note[hidden] { display: none; }
.form-note.video-note { margin-top: -2px; color: #6d5b29; background: #fffaed; border-color: #f2e1b6; }
.form-note.video-note .icon { color: #c28a20; }
.asset-detail-hero { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #eef2f6; }
.asset-detail-hero .score-bubble { width: 58px; height: 58px; }
.asset-detail-hero .score-bubble b { font-size: 16px; }
.asset-detail-hero h3 { margin: 0 0 4px; font-size: 15px; }
.asset-detail-hero p { margin: 0; font-size: 9px; color: #8a99aa; }
.detail-section { margin-top: 17px; }
.detail-section h4 { margin: 0 0 9px; font-size: 10.5px; color: #3b4f66; }
.video-detail-card { margin-top: 18px; border: 1px solid #dfe8ef; border-radius: 12px; overflow: hidden; background: #f9fbfd; }
.video-detail-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 15px 16px 12px; }
.video-detail-head h4 { margin: 3px 0 4px; font-size: 13px; color: #21374e; }
.video-detail-head p { margin: 0; font-size: 9px; line-height: 1.65; color: #718298; }
.video-legend { display: flex; gap: 6px; flex-shrink: 0; }
.video-legend span { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 8.5px; background: #fff; border: 1px solid #e7edf3; }
.video-legend span::before { content: ""; width: 9px; height: 9px; border-radius: 2px; border: 2px solid currentColor; }
.video-legend .ped { color: #16855a; }
.video-legend .veh { color: #d9851e; }
.video-cover-link { display: block; position: relative; margin: 0 16px; border-radius: 9px; overflow: hidden; background: #0b1421; }
.video-cover-link img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #0b1421; }
.video-cover-tip { position: absolute; left: 10px; bottom: 9px; padding: 5px 8px; border-radius: 5px; color: #edf6fb; background: rgba(8,15,25,.78); backdrop-filter: blur(5px); font-size: 8.5px; letter-spacing: .02em; }
.video-metric-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 14px 16px 0; border-radius: 8px; overflow: hidden; background: #e6edf3; }
.video-metric-row > div { background: #fff; padding: 10px 11px; }
.video-metric-row span { display: block; color: #93a0af; font-size: 8px; margin-bottom: 4px; }
.video-metric-row b { color: #263b51; font-size: 17px; line-height: 1; letter-spacing: -.03em; }
.video-metric-row small { margin-left: 2px; color: #8795a6; font-size: 8px; font-weight: 400; }
.video-risk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 16px 0; }
.video-risk-tag { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; border: 1px solid #e7edf3; border-left: 3px solid #d9a51e; border-radius: 6px; background: #fff; }
.video-risk-tag b { font-size: 9px; color: #394e64; }
.video-risk-tag span { font-size: 8.5px; line-height: 1.55; color: #7f8d9d; }
.video-risk-tag.level-high, .video-risk-tag.level-critical { border-left-color: #e6575e; }
.video-risk-tag.level-medium { border-left-color: #f59f3d; }
.video-risk-tag.level-low { border-left-color: #16b8a6; }
.video-clear-note { margin: 12px 16px 0; padding: 9px 10px; border-radius: 6px; background: #eefaf6; color: #377c6c; font-size: 9px; }
.video-frame-section { margin: 14px 16px 0; }
.video-frame-section h5 { margin: 0 0 7px; color: #596c80; font-size: 9px; font-weight: 500; }
.video-frame-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.video-frame-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 29px; padding: 0 9px; border: 1px solid #e4ebf2; border-radius: 6px; background: #fff; font-size: 8.5px; color: #6c7f92; }
.video-frame-pill span { color: #9aa8b7; font-family: monospace; }
.video-frame-pill b { color: #32495f; font-size: 8.5px; font-weight: 600; }
.video-frame-pill i { width: 1px; height: 9px; background: #e1e8ef; }
.video-actions { display: flex; gap: 7px; justify-content: flex-end; padding: 13px 16px 15px; }
.video-actions .btn { height: 29px; font-size: 9px; }
.dimension-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
.dimension-item { }
.dimension-item .dim-top { display: flex; justify-content: space-between; font-size: 8.5px; color: #75879b; margin-bottom: 4px; }
.dimension-item .dim-top b { color: #33485f; font-weight: 500; }
.dimension-bar { height: 5px; border-radius: 4px; background: #eef2f6; overflow: hidden; }
.dimension-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #1fc4b2, #6aa0f6); }
.profile-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f2f5f8; font-size: 8.5px; color: #6e8094; }
.profile-row:last-child { border-bottom: 0; }
.profile-row .progress-track { height: 4px; }
.profile-row b { text-align: right; color: #4d6278; }
.filter-strip { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.filter-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-tab { height: 30px; padding: 0 11px; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #708197; border: 1px solid transparent; background: transparent; }
.filter-tab:hover { background: #fff; border-color: var(--line); }
.filter-tab.active { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.filter-tab b { font-size: 9px; color: #a0adbd; font-weight: 500; }
.filter-right { display: flex; align-items: center; gap: 9px; }
.search-box { position: relative; width: 220px; }
.search-box .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: #9aa9ba; }
.search-box input { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px 0 30px; font-size: 10px; background: #fff; outline: none; }
.search-box input:focus { border-color: #8cd9cf; box-shadow: 0 0 0 3px rgba(22,184,166,.08); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 16px; }
.mini-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; border-radius: 11px; }
.mini-stat-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--stat-soft, #f1f5f9); color: var(--stat-color, #62778e); }
.mini-stat-icon .icon { width: 17px; height: 17px; }
.mini-stat span { display: block; font-size: 8.5px; color: #98a5b5; margin-bottom: 2px; }
.mini-stat b { font-size: 18px; font-weight: 700; letter-spacing: -.03em; color: #24354a; }
.mini-stat b small { font-size: 9px; font-weight: 400; color: #94a1b2; margin-left: 3px; }

.task-table .progress-cell { width: 86px; }
.progress-track { height: 5px; border-radius: 5px; background: #edf1f5; overflow: hidden; }
.progress-track i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #21c7b5, #119e91); transition: width .35s; }
.progress-track.large { height: 7px; background: #e9eef4; }
.progress-meta { display: flex; justify-content: space-between; font-size: 8.5px; color: #a3aebd; margin-top: 4px; }
.risk-counts { display: flex; gap: 4px; }
.risk-count { display: inline-flex; align-items: center; gap: 2px; font-size: 8.5px; font-weight: 600; }
.risk-count.critical { color: var(--red); }
.risk-count.high { color: var(--orange); }
.risk-count.medium { color: #b99a21; }
.risk-count.low { color: var(--teal-dark); }

.score-cell { display: flex; align-items: center; gap: 7px; }
.score-ring-mini { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--score-color) calc(var(--score) * 1%), #eef2f6 0); }
.score-ring-mini::before { content: ""; position: absolute; inset: 3px; background: #fff; border-radius: 50%; }
.score-ring-mini b { position: relative; font-size: 8px; color: var(--score-color); font-weight: 700; }

.detail-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; margin-bottom: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 5px; color: #8998aa; font-size: 10px; margin-bottom: 10px; }
.back-link .icon { width: 13px; height: 13px; transform: rotate(180deg); }
.detail-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-title-row h1 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.detail-sub { margin-top: 7px; display: flex; gap: 12px; flex-wrap: wrap; color: #8c9aac; font-size: 9.5px; }
.detail-sub span { display: inline-flex; align-items: center; gap: 5px; }
.detail-sub .icon { width: 12px; height: 12px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.detail-summary-grid { display: grid; grid-template-columns: 210px 1fr; gap: 16px; margin-bottom: 16px; }
.score-panel { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.score-panel::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 1px dashed #e3e9f0; inset: auto -80px -100px auto; }
.score-gauge { width: 116px; height: 116px; border-radius: 50%; position: relative; display: grid; place-items: center; background: conic-gradient(var(--score-color) calc(var(--score) * 1%), #edf1f5 0); }
.score-gauge::before { content: ""; position: absolute; inset: 8px; background: #fff; border-radius: 50%; }
.score-gauge-inner { position: relative; text-align: center; line-height: 1; }
.score-gauge-inner b { font-size: 30px; letter-spacing: -.05em; color: var(--score-color); }
.score-gauge-inner span { display: block; font-size: 8px; color: #99a6b6; margin-top: 5px; }
.score-panel h3 { margin: 14px 0 2px; font-size: 11px; font-weight: 600; }
.score-panel p { margin: 0; font-size: 8.5px; color: #9ba7b5; }
.summary-panel { padding: 21px 24px; }
.summary-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.summary-top h3 { margin: 0 0 7px; font-size: 14px; }
.summary-top p { margin: 0; color: #66788e; font-size: 11px; line-height: 1.8; max-width: 700px; }
.summary-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 19px; }
.summary-metric { border: 1px solid #edf1f6; border-radius: 9px; padding: 10px 12px; background: #fbfcfe; }
.summary-metric span { display: block; font-size: 8px; color: #9da9b8; margin-bottom: 3px; }
.summary-metric b { font-size: 12px; color: #35485f; }

.pipeline-card { padding: 17px 22px; margin-bottom: 16px; }
.pipeline-steps { display: flex; align-items: center; gap: 0; }
.pipeline-step { display: flex; align-items: center; gap: 9px; flex: 1; position: relative; }
.pipeline-step::after { content: ""; height: 1px; background: #e7edf4; flex: 1; margin: 0 10px; }
.pipeline-step:last-child::after { display: none; }
.step-num { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #f2f5f9; color: #96a4b5; font-size: 9px; border: 1px solid #e6ebf1; flex: 0 0 auto; }
.pipeline-step.done .step-num { background: var(--teal-soft); color: var(--teal-dark); border-color: #bcece5; }
.pipeline-step.current .step-num { background: var(--teal); color: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(22,184,166,.1); }
.step-copy { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.step-copy b { font-size: 9.5px; font-weight: 500; color: #52657b; }
.step-copy span { font-size: 7.5px; color: #a4afbd; margin-top: 2px; }
.pipeline-step.done .step-copy b { color: #1a796d; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 16px; margin-bottom: 16px; }
.risk-list { display: flex; flex-direction: column; }
.risk-row { display: grid; grid-template-columns: 6px 1fr auto; gap: 14px; padding: 15px 20px; border-top: 1px solid #f0f3f7; align-items: center; transition: .16s; cursor: pointer; }
.risk-row:first-child { border-top: 0; }
.risk-row:hover { background: #fbfcfe; }
.risk-severity-line { width: 3px; height: 36px; border-radius: 3px; background: var(--sev-color); }
.risk-row-title b { display: block; font-size: 11px; font-weight: 500; color: #2d3e53; margin-bottom: 4px; }
.risk-row-title span { display: flex; gap: 7px; align-items: center; color: #96a3b3; font-size: 8.5px; }
.risk-row-title span i { width: 2px; height: 2px; border-radius: 50%; background: #bfc9d5; }
.risk-row-right { display: flex; align-items: center; gap: 14px; }
.risk-score-text { font-size: 20px; font-weight: 700; letter-spacing: -.04em; color: var(--sev-color); font-variant-numeric: tabular-nums; }
.risk-score-text small { display: block; font-size: 7.5px; color: #a5b0be; text-align: right; letter-spacing: .02em; font-weight: 400; }
.risk-row .icon { width: 14px; height: 14px; color: #b6c1ce; }
.donut-panel { min-height: 300px; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; padding: 0 22px 17px; }
.donut-legend-item { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; color: #6f8094; }
.donut-legend-item span { display: flex; align-items: center; gap: 7px; }
.donut-legend-item i { width: 6px; height: 6px; border-radius: 50%; }
.donut-legend-item b { color: #32465d; }

.trace-panel { min-height: 470px; }
.trace-panel .echart { height: 420px; }
.trace-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 16px; }
.trace-side { display: flex; flex-direction: column; gap: 16px; }
.trace-risk-list { display: flex; flex-direction: column; gap: 7px; padding: 0 16px 16px; max-height: 450px; overflow: auto; }
.trace-risk-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; cursor: pointer; transition: .16s; background: #fff; }
.trace-risk-item:hover { border-color: #cce9e5; }
.trace-risk-item.active { border-color: #9adfd7; background: #f5fcfa; box-shadow: inset 3px 0 0 var(--teal); }
.trace-risk-item b { display: block; font-size: 9.5px; color: #3b4d62; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace-risk-item span { display: flex; justify-content: space-between; margin-top: 4px; font-size: 8px; color: #97a4b5; }
.trace-risk-item strong { color: var(--sev-color); font-size: 11px; }
.path-list { padding: 0 22px 20px; }
.path-item { display: flex; gap: 10px; position: relative; padding-bottom: 18px; }
.path-item:last-child { padding-bottom: 0; }
.path-item::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1px; background: #e4eaf1; }
.path-item:last-child::before { display: none; }
.path-node { width: 21px; height: 21px; border-radius: 50%; background: #f0f5f9; border: 1px solid #e2eaf2; color: #7f93a9; font-size: 7.5px; display: grid; place-items: center; z-index: 1; flex: 0 0 auto; }
.path-copy { padding-top: 2px; }
.path-copy b { display: block; font-size: 10px; color: #43556b; font-weight: 500; }
.path-copy span { color: #98a5b5; font-size: 8.5px; }

.plan-grid { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; }
.plan-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: flex-start; transition: .16s; }
.plan-card:hover { border-color: #cfe4e1; background: #fcfefd; }
.plan-check { position: relative; width: 17px; height: 17px; margin-top: 1px; }
.plan-check input { position: absolute; opacity: 0; }
.plan-check span { width: 17px; height: 17px; border: 1px solid #d5dee8; border-radius: 5px; display: grid; place-items: center; background: #fff; color: transparent; transition: .15s; }
.plan-check span .icon { width: 11px; height: 11px; stroke-width: 2.5; }
.plan-check input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.plan-main b { font-size: 10.5px; font-weight: 500; color: #2d4056; }
.plan-main p { margin: 4px 0 8px; font-size: 9px; color: #8695a8; line-height: 1.6; }
.plan-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.plan-tags span { padding: 2px 5px; border-radius: 4px; background: #f3f7fa; color: #75879c; font-size: 7.5px; }
.plan-side { text-align: right; }
.plan-score { font-size: 10px; color: #6e8095; }
.plan-score b { color: var(--teal-dark); font-size: 12px; }
.plan-reduce { margin-top: 4px; font-size: 8px; color: var(--green); background: var(--green-soft); border-radius: 4px; padding: 2px 5px; display: inline-block; }
.plan-status { margin-top: 8px; }
.plan-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 20px; padding: 10px 12px; border: 1px solid #e7eef5; border-radius: 8px; background: #fafcfd; font-size: 9px; color: #798b9f; }
.plan-toolbar b { color: var(--teal-dark); }
.plan-toolbar-actions { display: flex; align-items: center; gap: 7px; }
.task-live-banner { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border: 1px solid #ffe2bd; border-radius: 11px; background: #fffaf2; margin-bottom: 16px; }
.task-live-banner .scan-mini { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #f0c987; border-top-color: #e79829; animation: spin 1s linear infinite; flex: 0 0 auto; }
.task-live-banner b { display: block; font-size: 10.5px; color: #7b541c; }
.task-live-banner span { display: block; font-size: 8.5px; color: #b08a53; margin-top: 2px; }
.task-live-banner .progress-track { width: 150px; margin-left: auto; }
.trace-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 20px 16px; }
.trace-stat { border: 1px solid #edf1f6; border-radius: 8px; padding: 9px 10px; background: #fbfcfe; }
.trace-stat span { display: block; font-size: 8px; color: #9da9b8; }
.trace-stat b { display: block; margin-top: 2px; font-size: 15px; color: #344a61; letter-spacing: -.03em; }
.trace-risk-title { padding: 0 20px 9px; font-size: 8px; color: #9aa7b6; letter-spacing: .1em; text-transform: uppercase; }
.trace-path-title { padding: 16px 20px 7px; font-size: 9.5px; color: #3c5067; border-top: 1px solid #eef2f6; margin-top: 0; }
.empty-state { padding: 40px 20px; text-align: center; color: #94a2b3; }
.empty-state-icon { width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 12px; display: grid; place-items: center; background: #f2f6fa; color: #8fa2b7; }
.empty-state-icon .icon { width: 24px; height: 24px; }
.empty-state h3 { margin: 0 0 5px; font-size: 13px; color: #53677e; font-weight: 500; }
.empty-state p { margin: 0; font-size: 9.5px; }

.toolbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid #eef2f6; background: #fafbfd; border-radius: 0 0 0 0; }
.toolbar-left { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #7f8fa3; }
.toolbar-left b { color: #40536a; }
.bulk-bar { display: none; }
.bulk-bar.show { display: flex; }

.retest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.retest-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 19px 20px; box-shadow: var(--shadow-sm); }
.retest-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.retest-card-head h3 { margin: 0 0 3px; font-size: 13px; font-weight: 600; }
.retest-card-head p { margin: 0; font-size: 8.5px; color: #9aa7b7; }
.verdict { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; font-size: 9px; font-weight: 500; }
.verdict.pass { color: var(--green); background: var(--green-soft); }
.verdict.warn { color: var(--orange); background: var(--orange-soft); }
.retest-compare { display: grid; grid-template-columns: 1fr 42px 1fr 1fr; gap: 10px; align-items: center; margin: 17px 0 13px; }
.compare-score { padding: 12px; border-radius: 9px; background: #fbfcfe; border: 1px solid #eef2f6; }
.compare-score span { display: block; font-size: 8px; color: #9da9b8; }
.compare-score b { display: block; margin-top: 3px; font-size: 24px; letter-spacing: -.04em; color: #3a4e65; }
.compare-score.after b { color: var(--teal-dark); }
.compare-arrow { width: 32px; height: 32px; border-radius: 50%; background: #f2f7f6; color: var(--teal-dark); display: grid; place-items: center; }
.compare-arrow .icon { width: 15px; height: 15px; }
.compare-pass { text-align: right; }
.compare-pass b { display: block; font-size: 19px; color: var(--teal-dark); }
.compare-pass span { font-size: 8px; color: #9aa6b5; }
.retest-foot { border-top: 1px solid #f0f3f7; padding-top: 11px; display: flex; justify-content: space-between; align-items: center; font-size: 8.5px; color: #99a5b5; }
.comparison-bars { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 20px; }
.comparison-row { display: grid; grid-template-columns: 150px 1fr 50px; gap: 10px; align-items: center; font-size: 9px; color: #64778e; }
.comparison-row .bar-track { height: 8px; border-radius: 5px; background: #f0f4f7; position: relative; overflow: hidden; }
.comparison-row .bar-before { position: absolute; height: 100%; background: #dfe6ee; width: var(--before); border-radius: 5px; }
.comparison-row .bar-after { position: absolute; height: 100%; background: linear-gradient(90deg, #20c8b6, #109f92); width: var(--after); border-radius: 5px; }
.comparison-row b { color: var(--teal-dark); text-align: right; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); gap: 16px; align-items: start; }
.settings-card { padding: 0; overflow: hidden; }
.settings-card .panel-head { padding: 20px 22px; border-bottom: 1px solid #eef2f6; background: linear-gradient(180deg, #fcfdfe, #fff); }
.settings-form { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 17px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field > label { font-size: 10px; color: #5f7289; font-weight: 500; }
.form-field > label em { color: var(--red); font-style: normal; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid #dde5ee; border-radius: 8px; background: #fff; height: 38px; padding: 0 11px;
  font-size: 11px; color: #2d3f54; outline: none; transition: .16s;
}
.form-field textarea { height: auto; min-height: 78px; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #a9b4c2; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .input-focus { border-color: #7fd5cb; box-shadow: 0 0 0 3px rgba(22,184,166,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 46px; }
.input-suffix { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); height: 24px; min-width: 30px; border: 0; background: #f2f6fa; color: #7e8fa3; border-radius: 5px; font-size: 9px; }
.form-hint { font-size: 8.5px; color: #9ba8b7; line-height: 1.55; }
.form-note { display: flex; align-items: flex-start; gap: 7px; background: #f7fafc; border: 1px solid #eef3f7; border-radius: 8px; padding: 10px 11px; color: #7c8ca0; font-size: 9px; line-height: 1.6; }
.form-note .icon { width: 14px; height: 14px; color: #6d9c96; flex: 0 0 auto; margin-top: 1px; }
.provider-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.provider-option { border: 1px solid #e0e7ef; border-radius: 8px; padding: 9px 6px; text-align: center; font-size: 8.5px; color: #708197; cursor: pointer; transition: .16s; }
.provider-option:hover { border-color: #bfe7e1; }
.provider-option input { display: none; }
.provider-option.selected { border-color: #7ed7cc; background: #f2fcfa; color: var(--teal-dark); box-shadow: inset 0 0 0 1px #7ed7cc; }
.provider-option b { display: block; font-size: 9.5px; font-weight: 500; margin-bottom: 2px; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--teal); height: 5px; }
.range-value { min-width: 38px; text-align: center; font-size: 10px; color: #4b5e74; background: #f3f7fa; border-radius: 5px; padding: 4px 6px; }
.switch { position: relative; width: 34px; height: 19px; display: inline-block; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 20px; background: #dce4ed; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; left: 3px; top: 3px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.14); transition: .2s; }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(15px); }
.engine-choice { display: flex; align-items: center; gap: 10px; border: 1px solid #e6edf4; border-radius: 9px; padding: 10px 11px; background: #fbfcfe; }
.engine-choice-icon { width: 29px; height: 29px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; flex: 0 0 auto; }
.engine-choice-icon .icon { width: 15px; height: 15px; }
.engine-choice > span:nth-child(2) { flex: 1; }
.engine-choice b { display: block; font-size: 9.5px; color: #40556b; }
.engine-choice small { display: block; font-size: 8px; color: #97a5b5; margin-top: 2px; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.check-card { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 9px; border: 1px solid #e4ebf2; border-radius: 7px; color: #65788e; font-size: 9px; cursor: pointer; transition: .14s; }
.check-card input { position: absolute; opacity: 0; }
.check-card > span { width: 14px; height: 14px; border-radius: 4px; border: 1px solid #d7e0e9; background: #fff; display: grid; place-items: center; color: transparent; flex: 0 0 auto; }
.check-card > span .icon { width: 9px; height: 9px; stroke-width: 3; }
.check-card input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.check-card:has(input:checked) { border-color: #b8e9e2; background: #f6fdfb; color: var(--teal-dark); }
.settings-actions { display: flex; gap: 8px; margin-top: 2px; }
.connection-status { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-top: 1px solid #eef2f6; background: #fafcfd; font-size: 9px; color: #8190a3; }
.connection-status .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #c7d2de; }
.connection-status.ok .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(23,166,115,.1); }
.connection-status.fail .status-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(230,87,94,.1); }
.connection-status b { margin-left: auto; color: #5b6e84; font-weight: 500; }
.system-info { padding: 18px 22px 21px; display: flex; flex-direction: column; gap: 0; }
.info-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f3f7; font-size: 9.5px; color: #8392a5; }
.info-row:last-child { border-bottom: 0; }
.info-row b { color: #3f536a; font-weight: 500; }
.info-row .ok { color: var(--green); }
.api-code { margin: 0 22px 20px; background: #0b1728; color: #b8cce2; border-radius: 9px; padding: 13px 14px; font-family: monospace; font-size: 8.5px; line-height: 1.7; overflow: auto; }
.api-code .k { color: #72d8c9; }
.api-code .s { color: #e1bd76; }

.docs-hero { padding: 30px 32px; border-radius: var(--radius); background: radial-gradient(circle at 86% 30%, rgba(22,184,166,.15), transparent 30%), linear-gradient(120deg, #0b1628, #0d1d32); color: #fff; margin-bottom: 16px; position: relative; overflow: hidden; }
.docs-hero::after { content: "DATA"; position: absolute; right: 28px; bottom: -28px; font-size: 100px; font-weight: 800; letter-spacing: -.08em; color: rgba(255,255,255,.025); }
.docs-hero h1 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.04em; }
.docs-hero p { margin: 0; max-width: 730px; color: #8da1b9; font-size: 11px; line-height: 1.8; }
.docs-tags { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; }
.docs-tags span { padding: 5px 8px; border: 1px solid rgba(22,184,166,.18); background: rgba(22,184,166,.07); color: #73cdbf; border-radius: 5px; font-size: 8.5px; }
.flow-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: stretch; margin-bottom: 16px; }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px; position: relative; }
.flow-step:not(:last-child)::after { content: "›"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: #c7d1dd; font-size: 18px; z-index: 1; }
.flow-icon { width: 30px; height: 30px; border-radius: 8px; background: #f0f7f6; color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 10px; }
.flow-icon .icon { width: 16px; height: 16px; }
.flow-step b { display: block; font-size: 10.5px; color: #34485f; margin-bottom: 4px; }
.flow-step span { display: block; font-size: 8px; color: #98a6b6; line-height: 1.55; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.module-card { padding: 20px; border-radius: 13px; background: #fff; border: 1px solid var(--line); }
.module-num { font-size: 9px; color: #a7b3c1; letter-spacing: .15em; }
.module-card h3 { margin: 8px 0 6px; font-size: 13px; }
.module-card p { margin: 0 0 12px; font-size: 9.5px; color: #7f8fa3; line-height: 1.7; }
.module-list { display: flex; flex-direction: column; gap: 5px; }
.module-list span { font-size: 8.5px; color: #5d7289; display: flex; gap: 6px; align-items: center; }
.module-list span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }
.endpoint-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f0f3f7; }
.endpoint-row:last-child { border-bottom: 0; }
.method { min-width: 38px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-family: monospace; font-size: 8px; font-weight: 700; }
.method.get { background: #eaf8f3; color: #138267; }
.method.post { background: #edf2ff; color: #355cc4; }
.method.put { background: #fff5e7; color: #b37412; }
.endpoint-row code { font-family: monospace; font-size: 9px; color: #3b4f66; }
.endpoint-row span { margin-left: auto; font-size: 8.5px; color: #96a3b3; }

.modal-root { position: fixed; inset: 0; z-index: 120; display: none; }
.modal-root.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 16, 29, .55); backdrop-filter: blur(4px); animation: fadeIn .18s ease; }
.modal-card { position: relative; margin: 5vh auto; width: min(620px, calc(100vw - 38px)); max-height: 90vh; display: flex; flex-direction: column; background: #fff; border-radius: 17px; box-shadow: var(--shadow-lg); animation: modalIn .22s cubic-bezier(.2,.8,.3,1); overflow: hidden; }
.modal-card.modal-wide { width: min(840px, calc(100vw - 38px)); }
.modal-head { padding: 22px 24px 16px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid #eef2f6; }
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.modal-head .modal-close { width: 30px; height: 30px; border: 0; background: #f4f7fa; }
.modal-body { padding: 20px 24px; overflow: auto; }
.modal-foot { padding: 14px 24px; border-top: 1px solid #eef2f6; background: #fbfcfd; display: flex; justify-content: flex-end; gap: 8px; }
.form-stack { display: flex; flex-direction: column; gap: 15px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.risk-modal-head { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.risk-modal-score { width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--score-color) calc(var(--score) * 1%), #edf1f5 0); position: relative; display: grid; place-items: center; }
.risk-modal-score::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.risk-modal-score b, .risk-modal-score span { position: relative; text-align: center; }
.risk-modal-score b { font-size: 27px; color: var(--score-color); line-height: 1; }
.risk-modal-score span { display: block; font-size: 7.5px; color: #98a4b4; margin-top: 4px; }
.risk-modal-title h3 { margin: 9px 0 5px; font-size: 17px; letter-spacing: -.02em; }
.risk-modal-title p { margin: 0; font-size: 10.5px; line-height: 1.75; color: #6d7e92; }
.inline-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.detail-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 13px 0 16px; border-top: 1px solid #eef2f6; border-bottom: 1px solid #eef2f6; margin-bottom: 4px; }
.detail-meta-grid div span { display: block; color: #9aa6b5; font-size: 8px; margin-bottom: 3px; }
.detail-meta-grid div b { font-size: 9.5px; color: #465a70; font-weight: 500; }
.section-mini-title { margin: 17px 0 8px; font-size: 10.5px; color: #3b4f66; }
.table-wrap.compact .data-table th { padding: 8px 10px; font-size: 8px; }
.table-wrap.compact .data-table td { padding: 9px 10px; font-size: 9px; white-space: normal; }
.path-pills { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.path-pills span { padding: 5px 8px; border-radius: 5px; background: #f3f7fa; color: #5d7289; font-size: 8.5px; }
.path-pills i { font-style: normal; color: #bbc5d1; font-size: 10px; }

.toast-stack { position: fixed; top: 82px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { min-width: 260px; max-width: 370px; display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 9px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(10,20,36,.12); font-size: 10.5px; color: #40546b; pointer-events: auto; animation: toastIn .22s ease; }
.toast-icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: 0 0 auto; }
.toast-icon .icon { width: 13px; height: 13px; }
.toast-error .toast-icon { background: var(--red-soft); color: var(--red); }
.toast-warning .toast-icon { background: var(--orange-soft); color: var(--orange); }
.toast-info .toast-icon { background: var(--blue-soft); color: var(--blue); }
.toast-close { margin-left: auto; border: 0; background: transparent; color: #adb8c4; width: 20px; height: 20px; display: grid; place-items: center; }
.toast-close .icon { width: 12px; height: 12px; }
.toast.leaving { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(18px); } }
.spinner { width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.processing-overlay { position: fixed; inset: 0; z-index: 180; display: none; place-items: center; background: rgba(7,14,26,.6); backdrop-filter: blur(7px); }
.processing-overlay.open { display: grid; }
.processing-card { width: min(390px, calc(100vw - 40px)); padding: 30px 30px 24px; border-radius: 18px; background: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.scan-rings { width: 74px; height: 74px; margin: 0 auto 18px; position: relative; display: grid; place-items: center; color: var(--teal-dark); }
.scan-rings span { position: absolute; inset: 0; border: 1px solid rgba(22,184,166,.12); border-radius: 50%; animation: scan 2s ease-out infinite; }
.scan-rings span:nth-child(2) { animation-delay: .55s; }
.scan-rings span:nth-child(3) { animation-delay: 1.1s; }
.scan-rings .icon { width: 28px; height: 28px; position: relative; }
@keyframes scan { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.processing-card h3 { margin: 0 0 6px; font-size: 15px; }
.processing-card p { margin: 0 0 18px; font-size: 9.5px; color: #8a99ab; }
.processing-meta { display: flex; justify-content: space-between; margin-top: 7px; font-size: 8.5px; color: #98a5b5; }
.processing-meta b { color: var(--teal-dark); }

.mobile-backdrop { display: none; }
.error-page { display: grid; place-items: center; min-height: 60vh; text-align: center; }
.error-page b { font-size: 64px; color: #dce5ef; letter-spacing: -.07em; }
.error-page h1 { margin: 0 0 6px; font-size: 20px; }
.error-page p { margin: 0 0 18px; color: #8a99ab; font-size: 11px; }

/* Report */
.report-page { background: #eef2f7; padding: 28px; }
.report-sheet { width: 940px; max-width: 100%; margin: 0 auto; background: #fff; min-height: 1000px; box-shadow: 0 8px 34px rgba(15,27,45,.08); padding: 40px 48px; }
.report-brand { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #0b1728; padding-bottom: 16px; }
.report-brand h1 { margin: 0; font-size: 21px; }
.report-brand p { margin: 5px 0 0; font-size: 9px; color: #7f8fa3; letter-spacing: .08em; }
.report-brand span { font-size: 9px; color: #8796a8; text-align: right; }
.report-title { margin: 30px 0 8px; font-size: 24px; letter-spacing: -.035em; }
.report-meta { display: flex; gap: 24px; color: #718197; font-size: 9px; padding-bottom: 23px; border-bottom: 1px solid #e6ecf2; }
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.report-kpi { border: 1px solid #e5ebf2; padding: 12px 14px; border-radius: 7px; }
.report-kpi span { display: block; font-size: 8px; color: #91a0b2; }
.report-kpi b { display: block; font-size: 20px; margin-top: 3px; color: #1d2f44; }
.report-section { margin-top: 25px; }
.report-section h2 { font-size: 13px; margin: 0 0 10px; padding-left: 9px; border-left: 3px solid var(--teal); }
.report-section p { font-size: 9.5px; line-height: 1.8; color: #5f7187; margin: 0; }
.report-table { width: 100%; border-collapse: collapse; font-size: 8.5px; }
.report-table th { background: #f5f8fb; color: #8494a7; text-align: left; padding: 7px 8px; border-bottom: 1px solid #e4ebf2; }
.report-table td { padding: 8px; border-bottom: 1px solid #eef2f6; color: #4d6177; vertical-align: top; }
.report-foot { margin-top: 38px; border-top: 1px solid #e6ecf2; padding-top: 13px; display: flex; justify-content: space-between; font-size: 8px; color: #98a5b5; }
.report-sign { margin-top: 28px; display: flex; justify-content: flex-end; gap: 50px; font-size: 9px; color: #75869a; }

@media print {
  body { background: #fff; }
  .report-page { padding: 0; background: #fff; }
  .report-sheet { width: auto; box-shadow: none; padding: 20mm 18mm; }
  .no-print { display: none !important; }
}

@media (max-width: 1400px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-card { min-height: 110px; }
  .chart-panel { min-height: 310px; }
  .chart-panel.col-8 { grid-column: span 7; }
  .chart-panel.col-4 { grid-column: span 5; }
  .chart-panel.col-5 { grid-column: span 6; }
  .chart-panel.col-3 { grid-column: span 6; }
}
@media (max-width: 1180px) {
  .main-content { padding: 24px; }
  .topbar { padding: 0 24px; }
  .engine-pill { display: none; }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-hero { grid-template-columns: 1fr; }
  .posture-card { min-height: 230px; }
  .detail-grid, .settings-grid, .trace-layout { grid-template-columns: 1fr; }
  .trace-side { display: grid; grid-template-columns: 1fr 1fr; }
  .flow-grid { grid-template-columns: repeat(3, 1fr); }
  .flow-step:nth-child(3)::after { display: none; }
  .module-grid { grid-template-columns: 1fr; }
  .detail-summary-grid { grid-template-columns: 185px 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-260px); transition: transform .24s ease; box-shadow: 20px 0 50px rgba(7,14,26,.18); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-open .mobile-backdrop { display: block; position: fixed; inset: 0; background: rgba(7,14,26,.42); z-index: 55; }
  .main-wrap { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 0 17px; }
  .main-content { padding: 20px 17px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head h1 { font-size: 23px; }
  .detail-head { grid-template-columns: 1fr; }
  .detail-actions { justify-content: flex-start; margin-top: 4px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .chart-panel, .chart-panel.col-8, .chart-panel.col-7, .chart-panel.col-6, .chart-panel.col-5, .chart-panel.col-4, .chart-panel.col-3 { grid-column: span 1; }
  .asset-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .retest-grid { grid-template-columns: 1fr; }
  .posture-content { grid-template-columns: 120px 1fr; gap: 18px; }
  .posture-ring { width: 118px; height: 118px; }
  .ring-inner b { font-size: 34px; }
  .posture-tag { display: none; }
  .posture-stats { gap: 16px; }
  .pipeline-steps { flex-wrap: wrap; gap: 7px; }
  .pipeline-step { flex: 0 0 30%; }
  .pipeline-step::after { display: none; }
  .detail-summary-grid { grid-template-columns: 1fr; }
  .score-panel { min-height: 170px; }
  .summary-metrics { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-step::after { display: none; }
  .detail-meta-grid { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
  .video-metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-footer { flex-direction: column; gap: 4px; }
}
@media (max-width: 620px) {
  .topbar-right .notification, .crumb span, .crumb i { display: none; }
  .topbar-right { gap: 7px; }
  .topbar-right .btn { padding: 0 10px; }
  .page-actions { width: 100%; }
  .date-chip { display: none; }
  .kpi-grid { gap: 9px; }
  .kpi-card { padding: 13px; min-height: 104px; }
  .kpi-main b { font-size: 22px; }
  .posture-card { padding: 19px 17px; }
  .posture-content { grid-template-columns: 1fr; justify-items: start; }
  .posture-ring { display: none; }
  .posture-info h2 { font-size: 19px; }
  .posture-stats { flex-wrap: wrap; gap: 10px; }
  .posture-stat { border-left: 0; padding-left: 0; min-width: 72px; }
  .signal-panel { min-height: 260px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .mini-stat { padding: 12px; }
  .mini-stat b { font-size: 16px; }
  .filter-strip { flex-direction: column; align-items: stretch; }
  .alert-strip { flex-wrap: wrap; line-height: 1.65; }
  .alert-strip .link-btn { margin-left: 0; }
  .toolbar-row { flex-direction: column; align-items: stretch; gap: 9px; }
  .plan-toolbar-actions { justify-content: space-between; }
  .filter-right { justify-content: space-between; }
  .search-box { width: 100%; }
  .detail-title-row h1 { font-size: 19px; }
  .detail-actions { justify-content: flex-start; }
  .trace-side { grid-template-columns: 1fr; }
  .trace-panel .echart { height: 340px; }
  .summary-metrics { grid-template-columns: 1fr 1fr; }
  .risk-modal-head { grid-template-columns: 1fr; }
  .risk-modal-score { width: 74px; height: 74px; }
  .table-wrap { margin: 0 -1px; }
  .data-table th, .data-table td { padding-left: 12px; padding-right: 12px; }
  .modal-head { padding: 18px 18px 14px; }
  .modal-body { padding: 17px 18px; }
  .modal-foot { padding: 12px 18px; }
  .provider-grid { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .video-detail-head { flex-direction: column; gap: 8px; }
  .video-metric-row { grid-template-columns: 1fr 1fr; }
  .video-risk-list { grid-template-columns: 1fr; }
  .video-cover-link { margin: 0 10px; }
  .video-metric-row, .video-risk-list, .video-frame-section { margin-left: 10px; margin-right: 10px; }
  .video-actions { flex-wrap: wrap; justify-content: flex-start; padding-left: 10px; padding-right: 10px; }
  .retest-compare { grid-template-columns: 1fr 30px 1fr; }
  .compare-pass { grid-column: span 3; text-align: left; }
  .comparison-row { grid-template-columns: 95px 1fr 42px; }
  .flow-grid { grid-template-columns: 1fr; }
  .toast-stack { right: 12px; left: 12px; top: 76px; }
  .toast { min-width: 0; width: 100%; }
}
