:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --ink: #172033;
  --muted: #6b7485;
  --line: #e2e7ef;
  --navy: #10233e;
  --blue: #2b66d9;
  --cyan: #39a8c7;
  --green: #0b906a;
  --green-soft: #e9f8f2;
  --red: #d34a4a;
  --red-soft: #fff0ee;
  --amber: #a36a10;
  --shadow: 0 12px 36px rgba(23, 38, 63, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 238px; padding: 26px 20px;
  background: linear-gradient(180deg, #10233e 0%, #142d50 70%, #10233e 100%);
  color: #fff; display: flex; flex-direction: column; z-index: 20;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 0 6px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; font-weight: 800; background: linear-gradient(135deg, #4e8cff, #42c4bb); box-shadow: 0 8px 22px rgba(57,168,199,.25); }
.brand strong { display: block; font-size: 16px; letter-spacing: .06em; }
.brand small { display: block; font-size: 9px; letter-spacing: .2em; color: #8da7c8; margin-top: 2px; }
.nav { display: grid; gap: 5px; margin-top: 26px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; color: #b8c8dc; font-size: 13px; transition: .2s ease; }
.nav a span { font-size: 10px; color: #6f8caf; letter-spacing: .08em; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.09); }
.nav a.active { box-shadow: inset 3px 0 0 #4fc3d8; }
.side-card { margin-top: auto; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); overflow: hidden; }
.side-label { color: #829dbd; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.side-card strong { display: block; margin-top: 2px; font-size: 15px; }
.side-card code { display: block; font-size: 9px; color: #9fc0dd; margin-top: 4px; word-break: break-all; }
.side-line { height: 1px; background: rgba(255,255,255,.09); margin: 13px 0; }
.export-link { margin-top: 12px; text-align: center; font-size: 12px; padding: 9px; border-radius: 9px; color: #d7e7f7; border: 1px solid rgba(255,255,255,.12); }
.export-link:hover { background: rgba(255,255,255,.08); }
.main { margin-left: 238px; padding: 32px 42px 56px; max-width: 1580px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.eyebrow, .panel-kicker { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--blue); text-transform: uppercase; }
.topbar h1 { margin: 4px 0 0; font-size: 28px; letter-spacing: -.02em; }
.topbar-actions { display: flex; gap: 10px; }
.primary-btn, .ghost-btn { border-radius: 10px; padding: 10px 16px; font-size: 13px; transition: .2s; }
.primary-btn { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16,35,62,.18); }
.ghost-btn { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.ghost-btn:hover { border-color: #b8c4d7; }
.section { scroll-margin-top: 24px; margin-bottom: 44px; }
.hero-card { position: relative; overflow: hidden; min-height: 248px; padding: 30px 34px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(79,195,216,.28), transparent 30%), linear-gradient(125deg, #11233f, #1c3c69 65%, #204a76); box-shadow: 0 20px 46px rgba(16,35,62,.18); display: flex; justify-content: space-between; align-items: center; }
.hero-card:after { content:""; position:absolute; width:420px; height:420px; border:1px solid rgba(255,255,255,.09); border-radius:50%; right:-170px; bottom:-220px; }
.hero-copy { position: relative; z-index: 2; max-width: 790px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.status-badge, .plain-badge { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.status-badge.on { background: #0b906a; color: #fff; }
.status-badge.off { background: #d34a4a; color: #fff; }
.status-badge.muted { background: rgba(255,255,255,.12); color: #d7e5f4; }
.plain-badge { background: rgba(255,255,255,.1); color: #d8e5f4; border: 1px solid rgba(255,255,255,.12); }
.hero-copy h2 { font-size: 29px; margin: 18px 0 7px; letter-spacing: -.02em; }
.hero-copy p { color: #c6d6e8; margin: 0; font-size: 14px; max-width: 670px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; color: #a9bfd6; font-size: 11px; }
.hero-meta strong { color: #fff; margin-left: 5px; font-size: 13px; }
.risk-orbit { width: 150px; height: 150px; position: relative; display: grid; place-items: center; flex: 0 0 auto; margin-right: 18px; z-index: 2; }
.orbit-ring { position: absolute; inset: 2px; border-radius: 50%; border: 1px solid rgba(109,204,223,.5); border-left-color: transparent; transform: rotate(-30deg); }
.orbit-core { width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: rgba(9,25,48,.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.orbit-core small { color: #8fb0d0; font-size: 9px; letter-spacing: .24em; }
.orbit-core strong { font-size: 22px; margin-top: 1px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 17px 19px; box-shadow: 0 4px 16px rgba(23,38,63,.03); }
.kpi span { display: block; color: var(--muted); font-size: 11px; }
.kpi strong { display: block; margin: 4px 0 2px; font-size: 25px; letter-spacing: -.02em; }
.kpi small { color: #8a93a2; font-size: 10px; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.content-grid { display: grid; gap: 16px; margin-top: 16px; }
.two-one { grid-template-columns: minmax(0, 1.75fr) minmax(300px, .75fr); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-one { grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 21px 22px; box-shadow: 0 5px 22px rgba(23,38,63,.04); min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.panel h3 { margin: 3px 0 0; font-size: 17px; }
.legend { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.dot.strategy { background: var(--blue); }
.dot.benchmark { background: #aeb8c8; }
.chart { min-height: 250px; position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: #8b95a5; font-size: 10px; }
.year-bars { display: grid; gap: 14px; margin-top: 20px; }
.year-row { display: grid; grid-template-columns: 44px minmax(0,1fr) 66px; gap: 10px; align-items: center; }
.year-row span { font-size: 12px; color: var(--muted); }
.bar-track { height: 12px; background: #edf1f6; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--green); }
.bar-fill.negative { background: var(--red); }
.year-row strong { text-align: right; font-size: 12px; }
.mini-note { margin-top: 19px; padding-top: 14px; border-top: 1px solid var(--line); color: #8a93a2; font-size: 10px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 2px 14px; }
.section-heading h2 { margin: 3px 0 0; font-size: 23px; letter-spacing: -.02em; }
.table-tools { display: flex; gap: 9px; align-items: center; }
input[type="search"] { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 9px 12px; min-width: 190px; outline: none; color: var(--ink); }
input[type="search"]:focus { border-color: #9cb7e9; box-shadow: 0 0 0 3px rgba(43,102,217,.09); }
.count-pill { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #e9eff8; color: #3b5d8e; font-size: 11px; font-weight: 700; white-space: nowrap; }
.muted-copy { color: var(--muted); font-size: 11px; }
.inline-alert { border-radius: 11px; padding: 10px 13px; margin-bottom: 13px; background: var(--red-soft); color: #9d3333; font-size: 12px; }
.inline-alert.on { background: var(--green-soft); color: #08745a; }
.table-panel { padding: 17px 18px 10px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 12px; font-size: 10px; color: #7e8797; font-weight: 700; letter-spacing: .05em; text-align: right; border-bottom: 1px solid var(--line); background: #fbfcfe; white-space: nowrap; }
th:nth-child(1), th:nth-child(2), th:nth-child(3) { text-align: left; }
td { padding: 12px; border-bottom: 1px solid #edf0f4; text-align: right; font-size: 12px; white-space: nowrap; }
td:nth-child(1), td:nth-child(2), td:nth-child(3) { text-align: left; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f8fafd; }
.stock-cell { display: flex; align-items: center; gap: 10px; }
.rank-num { color: #8a93a2; font-weight: 700; width: 18px; }
.stock-cell strong { display: block; font-size: 13px; }
.stock-cell small { display: block; color: #8b95a5; font-size: 10px; }
.board-tag { display: inline-flex; padding: 3px 7px; border-radius: 6px; background: #eef3fb; color: #4a6790; font-size: 9px; }
.score-bar { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.score-bar i { width: 54px; height: 5px; border-radius: 99px; background: #e8edf4; overflow: hidden; display: block; }
.score-bar i b { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.detail-btn { border: 1px solid var(--line); background: #fff; color: var(--blue); border-radius: 7px; padding: 5px 9px; font-size: 10px; }
.detail-btn:hover { background: #eef4ff; }
.empty-cell { padding: 28px; color: var(--muted); text-align: center !important; }
.compact td { padding: 9px 11px; }
.metric-list { list-style: none; padding: 0; margin: 10px 0 0; }
.metric-list li { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid #edf0f4; font-size: 12px; }
.metric-list li:last-child { border-bottom: none; }
.metric-list span { color: var(--muted); }
.metric-list strong { font-size: 13px; }
.factor-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 28px; }
.factor-item { display: grid; grid-template-columns: 104px minmax(0,1fr) 58px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f0f2f6; font-size: 11px; }
.factor-item label { color: #4c5668; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.factor-track { height: 7px; background: #edf1f6; border-radius: 99px; overflow: hidden; }
.factor-fill { height: 100%; border-radius: 99px; }
.factor-fill.positive { background: var(--green); }
.factor-fill.negative { background: var(--red); }
.factor-item strong { text-align: right; font-size: 10px; }
.db-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.db-stat { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.db-stat span { display: block; color: var(--muted); font-size: 10px; }
.db-stat strong { display: block; margin-top: 3px; font-size: 20px; }
.flow-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 13px; }
.flow-list li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; font-size: 12px; }
.flow-list b { color: var(--blue); }
.flow-list span { color: var(--muted); }
.warning-panel { background: #fffaf1; border-color: #efdfb9; }
.warning-panel h3 { margin-top: 0; }
.warning-panel p { color: #725a2c; font-size: 12px; }
.footer { color: #8b95a5; text-align: center; font-size: 10px; padding: 20px 0 0; }
.drawer {
  position: fixed; top: 0; right: 0; width: min(520px, 92vw); height: 100vh; background: #fff;
  box-shadow: -20px 0 50px rgba(16,35,62,.16); transform: translateX(105%); transition: transform .26s ease;
  z-index: 60; overflow-y: auto; padding: 30px 28px;
}
.drawer.open { transform: translateX(0); }
.drawer-close { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 50%; font-size: 22px; line-height: 1; color: #5d6676; }
.drawer-head { padding-right: 36px; margin-bottom: 18px; }
.drawer-head p { margin: 0; color: var(--muted); font-size: 11px; }
.drawer-head h2 { margin: 4px 0 6px; font-size: 26px; }
.drawer-meta { display: flex; gap: 9px; flex-wrap: wrap; }
.drawer-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; }
.drawer-section h3 { margin: 0 0 12px; font-size: 15px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.detail-cell { padding: 11px 12px; border-radius: 10px; background: var(--surface-2); }
.detail-cell span { display: block; color: var(--muted); font-size: 10px; }
.detail-cell strong { display: block; font-size: 14px; margin-top: 2px; }
.spark-chart { width: 100%; height: 160px; }
.loading { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: rgba(238,242,247,.78); backdrop-filter: blur(4px); z-index: 100; color: #5d6b80; font-size: 12px; transition: opacity .2s ease; }
.loading.hide { opacity: 0; pointer-events: none; visibility: hidden; }
.spinner { width: 34px; height: 34px; border: 3px solid #dce4ef; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.skeleton-block { min-height: 100px; }
@keyframes spin { to { transform: rotate(360deg); } }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c9d2df; border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 1180px) {
  .sidebar { width: 205px; padding: 22px 14px; }
  .main { margin-left: 205px; padding: 26px 24px 48px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .db-grid { grid-template-columns: repeat(3, 1fr); }
  .two-one, .three-one { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; min-height: auto; padding: 16px; }
  .brand { padding-bottom: 14px; }
  .nav { grid-template-columns: repeat(5, 1fr); margin-top: 14px; gap: 4px; }
  .nav a { display: grid; place-items: center; gap: 2px; padding: 8px 2px; font-size: 10px; }
  .nav a span { font-size: 8px; }
  .side-card, .export-link { display: none; }
  .main { margin-left: 0; padding: 20px 14px 42px; }
  .topbar { align-items: flex-start; }
  .topbar h1 { font-size: 22px; }
  .topbar-actions .ghost-btn { display: none; }
  .hero-card { min-height: 0; padding: 24px 20px; align-items: flex-start; }
  .hero-copy h2 { font-size: 23px; }
  .risk-orbit { display: none; }
  .hero-meta { gap: 12px; }
  .kpi-grid, .two, .factor-list { grid-template-columns: 1fr; }
  .db-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .table-tools { width: 100%; }
  input[type="search"] { flex: 1; min-width: 0; }
  .section { margin-bottom: 34px; }
  .drawer { padding: 26px 18px; }
}

body { overflow-x: hidden; }
@media (max-width: 760px) {
  .sidebar { width: 100%; }
  .nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav a { min-width: 0; overflow: hidden; }
  .topbar { flex-direction: column; gap: 14px; width: 100%; }
  .topbar-actions { width: 100%; justify-content: flex-end; }
  .topbar-actions .primary-btn { margin-left: auto; }
  .hero-card { width: 100%; }
  .hero-copy { min-width: 0; }
  .hero-copy p { overflow-wrap: anywhere; }
  .content-grid, .kpi-grid, .db-grid, .factor-list { width: 100%; }
  .panel { padding: 18px 15px; }
}
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
.app-shell { width: 100vw; max-width: 100vw; overflow-x: hidden; }
.main { width: calc(100% - 238px); max-width: calc(100vw - 238px); min-width: 0; }
.sidebar { max-width: 100vw; }
.topbar, .section, .hero-card { max-width: 100%; }
@media (max-width: 1180px) and (min-width: 761px) {
  .main { width: calc(100% - 205px); max-width: calc(100vw - 205px); }
}
@media (max-width: 760px) {
  .sidebar { width: 100vw; max-width: 100vw; }
  .main { width: 100vw; max-width: 100vw; margin-left: 0; }
  .topbar, .hero-card, .section, .panel { max-width: 100%; }
}
/* Dark terminal theme */
:root {
  color-scheme: dark;
  --bg: #080e18;
  --surface: #111a2a;
  --surface-2: #162236;
  --ink: #e7edf7;
  --muted: #8b98ad;
  --line: #223047;
  --navy: #0a1424;
  --blue: #6d9cff;
  --cyan: #56d4c7;
  --green: #41d39c;
  --green-soft: rgba(39, 190, 137, .14);
  --red: #ff737c;
  --red-soft: rgba(255, 90, 104, .13);
  --amber: #f1b75d;
  --shadow: 0 16px 44px rgba(0, 0, 0, .28);
}
html, body { background: #080e18; color: var(--ink); }
body {
  background:
    radial-gradient(circle at 72% -8%, rgba(47, 91, 160, .18), transparent 34%),
    radial-gradient(circle at 12% 78%, rgba(27, 122, 118, .08), transparent 28%),
    var(--bg);
}
.sidebar {
  background: linear-gradient(180deg, #07101d 0%, #0b1728 55%, #07101d 100%);
  border-right: 1px solid rgba(118, 152, 198, .12);
  box-shadow: 12px 0 36px rgba(0,0,0,.18);
}
.brand { border-bottom-color: rgba(135, 165, 205, .13); }
.brand small { color: #6885a8; }
.brand-mark { background: linear-gradient(135deg, #346ed8, #2aa79e); box-shadow: 0 8px 24px rgba(51, 130, 190, .24); }
.nav a { color: #8292aa; }
.nav a span { color: #4f6581; }
.nav a:hover, .nav a.active { color: #eef5ff; background: rgba(111, 154, 215, .12); }
.nav a.active { box-shadow: inset 3px 0 0 #56d4c7; }
.side-card { background: rgba(111, 154, 215, .06); border-color: rgba(124, 160, 210, .13); }
.side-card code { color: #7fa4cc; }
.export-link { color: #a8c7e6; border-color: rgba(132, 169, 216, .18); }
.export-link:hover { background: rgba(111, 154, 215, .09); }
.primary-btn { background: #386fd1; border-color: #467fe3; color: #fff; box-shadow: 0 8px 22px rgba(39, 92, 188, .22); }
.primary-btn:hover { background: #447fdf; box-shadow: 0 10px 25px rgba(39, 92, 188, .3); }
.ghost-btn { background: #111b2b; border-color: #2a3a54; color: #cbd7e8; }
.ghost-btn:hover { background: #17243a; border-color: #436181; }
.hero-card {
  background:
    radial-gradient(circle at 82% 16%, rgba(67, 210, 198, .15), transparent 27%),
    radial-gradient(circle at 18% 110%, rgba(61, 110, 205, .25), transparent 35%),
    linear-gradient(125deg, #0b1627, #10233d 60%, #132b49);
  border: 1px solid rgba(117, 155, 207, .14);
  box-shadow: 0 24px 55px rgba(0,0,0,.32);
}
.hero-copy p { color: #9fb0c6; }
.hero-meta { color: #7187a3; }
.hero-meta strong { color: #e6effb; }
.orbit-core { background: rgba(4, 12, 24, .72); box-shadow: inset 0 0 0 1px rgba(131,170,219,.16); }
.orbit-core small { color: #6f8fb3; }
.kpi, .panel, .db-stat, .dialog, .drawer {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.kpi span, .kpi small, .mini-note, .muted-copy, .footer, .section-heading .muted-copy { color: var(--muted); }
.kpi strong, .panel h3, .section-heading h2, .topbar h1 { color: #edf3fc; }
.panel-head { border-color: var(--line); }
.year-row span, .legend { color: #8392a8; }
.bar-track, .factor-track, .score-bar i { background: #202d41; }
.mini-note { border-top-color: var(--line); }
input[type="search"] { background: #0d1624; border-color: #293a53; color: #e5edf8; }
input[type="search"]::placeholder { color: #63748c; }
input[type="search"]:focus { border-color: #5d89ce; box-shadow: 0 0 0 3px rgba(96, 148, 227, .13); }
.count-pill { background: #192943; color: #9fc5f5; }
.inline-alert { background: var(--red-soft); color: #ff9da5; border: 1px solid rgba(255, 111, 124, .16); }
.inline-alert.on { background: var(--green-soft); color: #71e3b9; border-color: rgba(65, 211, 156, .18); }
.table-panel { background: #0f1827; }
th { background: #0d1624; color: #7f90a8; border-bottom-color: #223047; }
td { border-bottom-color: #1c293d; color: #c9d4e4; }
tbody tr:hover { background: #142033; }
.stock-cell strong { color: #e7edf7; }
.stock-cell small { color: #728198; }
.rank-num { color: #667891; }
.board-tag { background: #182941; color: #8bb7ee; border: 1px solid rgba(100, 145, 205, .12); }
.detail-btn { background: #101d2e; border-color: #2b405d; color: #83b2f4; }
.detail-btn:hover { background: #182a45; }
.compact td { color: #c1cedf; }
.metric-list li { border-bottom-color: #1d2a3d; }
.metric-list span { color: #7f8fa5; }
.metric-list strong { color: #e3ebf7; }
.factor-item { border-bottom-color: #1c293c; }
.factor-item label { color: #aebbd0; }
.factor-fill.positive { background: #35c995; }
.factor-fill.negative { background: #f46772; }
.warning-panel { background: rgba(122, 85, 23, .13); border-color: rgba(224, 172, 81, .2); }
.warning-panel p { color: #cfb27c; }
.warning-panel h3 { color: #f2cf8b; }
.flow-list b { color: #78a7ee; }
.flow-list span { color: #8b99ae; }
.chart text { fill: #73839a; }
.status-badge.off { background: #c84c59; color: #fff; }
.status-badge.on { background: #159b72; color: #fff; }
.plain-badge { background: rgba(108, 144, 193, .1); color: #afc6e2; border-color: rgba(123, 160, 210, .16); }
.drawer { box-shadow: -24px 0 65px rgba(0,0,0,.5); }
.drawer-close { background: #172337; border-color: #2b3b52; color: #b9c6d9; }
.drawer-head p { color: #8190a5; }
.drawer-head h2 { color: #edf3fc; }
.drawer-section { border-top-color: #223047; }
.detail-cell { background: #162236; }
.detail-cell span { color: #7e8ea5; }
.detail-cell strong { color: #dfe8f4; }
.spark-chart { background: #0f1928; border-radius: 10px; }
.loading { background: rgba(6, 11, 20, .82); color: #9aabc1; }
.spinner { border-color: #26364d; border-top-color: #6d9cff; }
::-webkit-scrollbar-thumb { background: #334762; }
::-webkit-scrollbar-thumb:hover { background: #47617f; }
@media (max-width: 760px) {
  .sidebar { border-right: none; border-bottom: 1px solid rgba(118, 152, 198, .12); }
  .primary-btn { background: #386fd1; }
}
.kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.readiness-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.ready-check { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; background: #0f1928; border: 1px solid #1d2a3d; font-size: 11px; }
.ready-check .check-icon { width: 18px; height: 18px; }
.ready-check.pass { border-color: rgba(65,211,156,.22); }
.ready-check.fail { border-color: rgba(255,115,124,.18); }
.ready-check strong { display: block; color: #cfd9e7; font-size: 11px; }
.ready-check span { display: block; color: #7f8fa5; font-size: 9px; }
@media (max-width: 1180px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .readiness-grid { grid-template-columns: 1fr; } }
