/* SecureSolar Gujarat - dark SOC dashboard */
:root {
  --bg: #08111f;
  --panel: #0d192a;
  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .05);
  --text: #edf6ff;
  --muted: #93a8bd;
  --dim: #6f869d;
  --cyan: #25d9ff;
  --blue: #377dff;
  --purple: #7657ff;
  --green: #27e5a1;
  --yellow: #ffd76a;
  --orange: #ffb547;
  --red: #ff4d6d;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: radial-gradient(circle at 30% 10%, #102642 0, var(--bg) 38%, #03070d 100%);
  overflow-x: hidden;
}
button, input, select { font: inherit; }
a { color: inherit; }
.muted { color: var(--muted); }
.empty { color: var(--muted); font-size: 14px; padding: 12px 4px; margin: 0; }
.warn-text { color: var(--orange); font-size: 12px; }
[hidden] { display: none !important; }

#bgCanvas { position: fixed; inset: 0; z-index: 0; opacity: .45; pointer-events: none; }
.glass {
  background: linear-gradient(145deg, rgba(15, 27, 47, .86), rgba(8, 17, 31, .72));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .03);
}

/* ---------------------------------------------------------------- shell */
.app-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  margin: 16px; padding: 20px 14px; border-radius: 22px;
  position: sticky; top: 16px; height: calc(100vh - 32px);
  display: flex; flex-direction: column;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 8px 10px 24px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple)); box-shadow: 0 0 26px rgba(37, 217, 255, .25);
}
.brand strong { display: block; font-size: 18px; }
.brand span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item {
  border: 0; background: transparent; color: #aabbd0; padding: 12px; border-radius: 12px;
  display: flex; align-items: center; gap: 11px; font-size: 15px; cursor: pointer; text-align: left;
}
.nav-item svg { width: 19px; flex: none; }
.nav-item span { white-space: nowrap; }
.nav-item.active, .nav-item:hover { color: #fff; background: rgba(37, 217, 255, .09); box-shadow: inset 0 0 0 1px rgba(37, 217, 255, .12); }
.nav-item:focus-visible, .btn:focus-visible, .attack-grid button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sidebar-foot { margin-top: auto; color: var(--muted); font-size: 13px; padding: 12px; display: grid; gap: 6px; }
.sidebar-foot div { display: flex; align-items: center; gap: 8px; }
.sidebar-foot small { color: var(--dim); font-size: 12px; }

.pulse-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 1.8s infinite; flex: none; }
.pulse-dot.red { background: var(--red); animation-name: pulseRed; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(39, 229, 161, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(39, 229, 161, 0); } }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, .7); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255, 77, 109, 0); } }

.main { padding: 28px 30px 50px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #6fcce1; margin: 0 0 6px; }
.topbar h1 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
.sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.status-chip, .badge {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; color: #dff9ff; background: rgba(255, 255, 255, .03); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.clock { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.badge.ai { color: #cbbfff; border-color: rgba(118, 87, 255, .3); }
.badge.red { color: #ffc2cd; border-color: rgba(255, 77, 109, .5); background: rgba(255, 77, 109, .12); animation: blink 1.4s infinite; }
.badge.green { color: #b9f7df; border-color: rgba(39, 229, 161, .45); background: rgba(39, 229, 161, .1); }

.btn {
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 15px; color: #fff; background: rgba(255, 255, 255, .05);
  display: inline-flex; gap: 8px; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, .09); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(135deg, rgba(37, 217, 255, .25), rgba(118, 87, 255, .28)); border-color: rgba(37, 217, 255, .4); }
.btn.primary:hover:not(:disabled) { border-color: var(--cyan); box-shadow: 0 0 24px rgba(37, 217, 255, .18); }
.btn.small { padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------- alert banner */
.alert-banner {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; margin-bottom: 16px;
  border: 1px solid rgba(255, 77, 109, .45); background: linear-gradient(90deg, rgba(255, 77, 109, .18), rgba(255, 77, 109, .05));
  animation: bannerIn .3s ease;
}
.alert-banner.high, .alert-banner.medium { border-color: rgba(255, 181, 71, .45); background: linear-gradient(90deg, rgba(255, 181, 71, .16), rgba(255, 181, 71, .04)); }
.alert-banner > svg { width: 22px; color: var(--red); flex: none; animation: blink 1.2s infinite; }
.alert-banner.high > svg, .alert-banner.medium > svg { color: var(--orange); }
.alert-text { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.alert-text strong { font-size: 15px; }
.alert-text span { color: #d6e2ee; font-size: 14px; }
@keyframes blink { 50% { opacity: .35; } }
@keyframes bannerIn { from { opacity: 0; transform: translateY(-6px); } }

/* --------------------------------------------------------------- layout */
.view { display: none; animation: viewIn .28s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.mon-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }

.panel { border-radius: var(--radius); padding: 20px; min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { font-size: 18px; margin: 0; letter-spacing: -.01em; }
.panel-head > svg { width: 22px; color: var(--cyan); flex: none; }
.panel-head .meta { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.helper { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; line-height: 1.5; }

/* ----------------------------------------------------------------- KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { padding: 20px; border-radius: var(--radius); position: relative; overflow: hidden; }
.kpi::after {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -45px; top: -45px;
  background: radial-gradient(circle, rgba(37, 217, 255, .18), transparent 68%);
}
.kpi.good::after { background: radial-gradient(circle, rgba(39, 229, 161, .18), transparent 68%); }
.kpi.warn::after { background: radial-gradient(circle, rgba(255, 181, 71, .2), transparent 68%); }
.kpi.critical::after { background: radial-gradient(circle, rgba(255, 77, 109, .24), transparent 68%); }
.kpi span { color: var(--muted); font-size: 14px; }
.kpi strong { display: block; font-size: 28px; margin: 8px 0; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--dim); font-size: 13px; }
.kpi.good small { color: var(--green); }
.kpi.warn small { color: var(--orange); }
.kpi.critical small { color: #ff8da1; }

/* ---------------------------------------------------------- guide panel */
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: g; }
.guide-steps li {
  counter-increment: g; position: relative; padding: 16px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px;
}
.guide-steps li::before { content: counter(g); position: absolute; top: 12px; right: 14px; font-size: 22px; font-weight: 800; color: rgba(255, 255, 255, .08); }
.guide-steps svg { width: 24px; height: 24px; color: var(--cyan); }
.guide-steps b { font-size: 15px; }
.guide-steps span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.chart-wrap { height: 230px; position: relative; }
.chart-wrap.tall { height: 290px; }
.chart-large { height: 340px; position: relative; }

/* ------------------------------------------------------------ incidents */
.incident-cards { display: grid; gap: 10px; }
.incident-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px;
  border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); border-left: 3px solid var(--orange);
}
.incident-card.critical { border-left-color: var(--red); }
.incident-card.resolved { border-left-color: var(--green); }
.ic-main b { display: block; font-size: 14px; }
.ic-main span { color: var(--muted); font-size: 13px; }
.ic-actions { display: flex; gap: 6px; }

.timeline { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; padding-right: 4px; }
.timeline.wide { max-height: 460px; }
.event {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px;
  border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); border-left: 3px solid var(--line);
  animation: viewIn .3s ease;
}
.event.warn { border-left-color: var(--orange); }
.event.critical { border-left-color: var(--red); }
.event.ai { border-left-color: var(--purple); }
.event.response { border-left-color: var(--cyan); }
.event.resolved { border-left-color: var(--green); }
.event time { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.event strong { font-size: 14px; display: block; }
.event p { font-size: 13px; color: var(--muted); margin: 3px 0 0; line-height: 1.45; }
.sev { justify-self: end; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 5px 8px; border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, .05); color: var(--muted); }
.sev.warn, .sev.high { background: rgba(255, 181, 71, .12); color: var(--orange); }
.sev.medium { background: rgba(255, 215, 106, .1); color: var(--yellow); }
.sev.critical { background: rgba(255, 77, 109, .14); color: var(--red); }
.sev.ai { background: rgba(118, 87, 255, .16); color: #cbbfff; }
.sev.response { background: rgba(37, 217, 255, .1); color: var(--cyan); }
.sev.resolved, .sev.low { background: rgba(39, 229, 161, .1); color: var(--green); }

/* -------------------------------------------------------------- stepper */
.story { margin-bottom: 16px; padding: 16px 20px; }
.stepper { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stepper li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .02); color: var(--muted); transition: all .3s;
}
.stepper .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 1px solid var(--line); flex: none; }
.stepper b { display: block; font-size: 14px; color: #c8d6e4; }
.stepper small { font-size: 12px; }
.stepper li.done .num { background: rgba(39, 229, 161, .15); border-color: var(--green); color: var(--green); }
.stepper li.done b { color: var(--green); }
.stepper li.active { border-color: rgba(37, 217, 255, .5); background: rgba(37, 217, 255, .08); box-shadow: 0 0 24px rgba(37, 217, 255, .1); }
.stepper li.active .num { background: var(--cyan); color: #04121c; border-color: var(--cyan); animation: pulseCyan 1.6s infinite; }
.stepper li.active b { color: #fff; }
@keyframes pulseCyan { 0% { box-shadow: 0 0 0 0 rgba(37, 217, 255, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(37, 217, 255, 0); } }
.story-bar { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.story-bar p { margin: 0; font-size: 15px; line-height: 1.55; color: #d4e1ee; }
.story-bar p b { color: #fff; }
.story-bar .btn { flex: none; padding: 11px 18px; font-size: 15px; }

/* -------------------------------------------------------------- network */
.network-panel { display: flex; flex-direction: column; }
.network-panel .net-wrap { flex: 1; }
.net-wrap { position: relative; min-height: 380px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .04); background: radial-gradient(circle at center, rgba(30, 93, 129, .2), rgba(2, 7, 13, .1)); }
#network3d { position: absolute; inset: 0; }
#network3d canvas { display: block; width: 100% !important; height: 100% !important; }
.net-labels { position: absolute; inset: 0; pointer-events: none; }
.net-label {
  position: absolute; left: 0; top: 0; text-align: center; white-space: nowrap; transition: opacity .4s;
  padding: 4px 8px; border-radius: 8px; background: rgba(6, 14, 25, .7); border: 1px solid rgba(255, 255, 255, .06);
}
.net-label b { display: block; font-size: 12px; color: #dcecff; }
.net-label small { display: block; font-size: 11px; color: var(--muted); }
.net-label.hot { border-color: rgba(255, 77, 109, .5); }
.net-label.hot small { color: #ff8da1; }
.net-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 13px; }
.net-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot.red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.fallback3d { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 14px; padding: 20px; text-align: center; }

/* --------------------------------------------------------------- device */
.device-panel select {
  background: #091524; color: #d8edff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; max-width: 200px; font-size: 14px;
}
.dev-status { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; }
.status-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .05em; background: rgba(39, 229, 161, .1); color: var(--green); }
.status-badge.medium { background: rgba(255, 215, 106, .1); color: var(--yellow); }
.status-badge.high { background: rgba(255, 181, 71, .12); color: var(--orange); }
.status-badge.critical { background: rgba(255, 77, 109, .15); color: var(--red); animation: blink 1.4s infinite; }
.telemetry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.telemetry div, .check { background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); padding: 12px; border-radius: 12px; }
.telemetry span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.telemetry strong { font-size: 20px; font-variant-numeric: tabular-nums; }

.risk-meter { margin-bottom: 16px; }
.risk-meter-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.risk-meter-head > span:first-child { color: var(--muted); font-size: 14px; flex: 1; }
.risk-meter-head strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.level-pill { font-size: 12px; font-weight: 800; letter-spacing: .08em; padding: 5px 10px; border-radius: 8px; background: rgba(39, 229, 161, .12); color: var(--green); }
.level-pill.medium { background: rgba(255, 215, 106, .12); color: var(--yellow); }
.level-pill.high { background: rgba(255, 181, 71, .14); color: var(--orange); }
.level-pill.critical { background: rgba(255, 77, 109, .18); color: var(--red); }
.risk-track { position: relative; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.risk-track i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .8s cubic-bezier(.2, .8, .2, 1), background .5s; }
.risk-track em { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(8, 17, 31, .9); }
.risk-scale { display: grid; grid-template-columns: 35fr 25fr 20fr 20fr; font-size: 11px; color: var(--dim); margin-top: 5px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; }
.check span { color: var(--muted); font-size: 13px; }
.check b { font-size: 13px; text-align: right; }
.check.ok b { color: var(--green); }
.check.warn b { color: var(--orange); }
.check.bad { border-color: rgba(255, 77, 109, .25); background: rgba(255, 77, 109, .05); }
.check.bad b { color: var(--red); }

/* ------------------------------------------------------------------- AI */
.baseline { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; min-width: 0; }
.baseline th, .baseline td { padding: 9px 6px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 14px; }
.baseline thead th { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; position: static; background: none; }
.baseline tbody th { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; position: static; background: none; font-size: 13px; }
.baseline td { word-break: break-word; }
.baseline td.ok { color: var(--green); }
.baseline td.bad { color: var(--red); font-weight: 700; }
.anomaly { margin-bottom: 14px; }
.anomaly-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.anomaly-head strong { color: var(--text); }
.bar { height: 8px; background: rgba(255, 255, 255, .06); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--purple)); transition: width .8s ease; }
.ai-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.confidence { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); }
.confidence span, .classification span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.confidence strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.classification { padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(118, 87, 255, .12), rgba(37, 217, 255, .05)); border: 1px solid rgba(118, 87, 255, .18); }
.classification strong { font-size: 15px; color: #dcd6ff; }
.classification.alert { background: linear-gradient(135deg, rgba(255, 77, 109, .15), rgba(118, 87, 255, .06)); border-color: rgba(255, 77, 109, .35); }
.classification.alert strong { color: #ffc2cd; }
.findings { margin: 0; padding-left: 18px; font-size: 13px; color: #c2d1df; line-height: 1.7; }
.findings li.ok { color: var(--green); }

/* ------------------------------------------------------------- factors */
.factors { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.factors li {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 11px; background: rgba(255, 77, 109, .04); border: 1px solid rgba(255, 77, 109, .14); overflow: hidden;
}
.factors li > i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--red); opacity: .7; }
.factors li.ai { background: rgba(118, 87, 255, .07); border-color: rgba(118, 87, 255, .25); }
.factors li.ai > i { background: var(--purple); }
.factors li.clean { background: rgba(39, 229, 161, .05); border-color: rgba(39, 229, 161, .2); }
.factors b { display: block; font-size: 14px; }
.factors span { font-size: 12px; color: var(--muted); }
.factors em { font-style: normal; font-weight: 800; font-size: 16px; color: #ff8da1; }
.factors li.ai em { color: #cbbfff; }
.factors li.clean em { color: var(--green); }
.factor-total { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.factor-total b { color: var(--text); }

/* -------------------------------------------------------------- attack */
.attack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.attack-grid button {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 10px; align-items: center; text-align: left;
  padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .07); background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  color: #d9e9f8; border-radius: 12px; cursor: pointer; transition: .25s;
}
.attack-grid button svg { width: 20px; height: 20px; color: #ff8da1; grid-row: span 2; }
.attack-grid button b { font-size: 13px; }
.attack-grid button small { font-size: 11px; color: var(--muted); line-height: 1.35; }
.attack-grid button:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255, 77, 109, .45); box-shadow: 0 10px 30px rgba(255, 77, 109, .1); }
.attack-grid button:disabled { opacity: .4; cursor: not-allowed; }
.attack-grid button.running { opacity: 1; border-color: rgba(255, 77, 109, .7); background: rgba(255, 77, 109, .15); }
.attack-grid.large button { padding: 14px; }
.attack-grid.large button b { font-size: 14px; }
.attack-grid.large button small { font-size: 12px; }
.progress { margin-top: 14px; }
.progress .bar { height: 8px; }
.progress.red .bar i { background: linear-gradient(90deg, var(--orange), var(--red)); }
.progress.green .bar i { background: linear-gradient(90deg, var(--cyan), var(--green)); }
.progress span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ response */
.response-hero { padding: 14px 16px; border-radius: 13px; margin-bottom: 12px; border: 1px solid rgba(39, 229, 161, .2); background: linear-gradient(135deg, rgba(39, 229, 161, .1), rgba(37, 217, 255, .04)); }
.response-hero span { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--green); display: block; margin-bottom: 6px; }
.response-hero strong { font-size: 15px; line-height: 1.4; display: block; }
.response-hero.medium { border-color: rgba(255, 215, 106, .25); background: linear-gradient(135deg, rgba(255, 215, 106, .1), transparent); }
.response-hero.medium span { color: var(--yellow); }
.response-hero.high { border-color: rgba(255, 181, 71, .3); background: linear-gradient(135deg, rgba(255, 181, 71, .12), transparent); }
.response-hero.high span { color: var(--orange); }
.response-hero.critical { border-color: rgba(255, 77, 109, .35); background: linear-gradient(135deg, rgba(255, 77, 109, .14), transparent); }
.response-hero.critical span { color: var(--red); }
.actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.actions li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .02); transition: background .3s; }
.actions .n { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(37, 217, 255, .1); color: var(--cyan); }
.actions b { font-size: 14px; display: block; }
.actions small { font-size: 12px; color: var(--muted); }
.actions li.done { background: rgba(39, 229, 161, .07); }
.actions li.done .n { background: var(--green); color: #04121c; }
.actions li.done b { color: var(--green); }
.actions li.pending b { color: var(--muted); font-weight: 500; }
.actions li.pending::before { content: ""; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--purple); animation: blink 1s infinite; flex: none; }
.response-buttons { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }

/* -------------------------------------------------------------- threats */
.big-risk { font-size: 82px; font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 10px 0 18px; transition: color .4s; }
.mini-bars { display: grid; gap: 14px; margin-top: 18px; }
.mini-bars div { display: grid; grid-template-columns: 130px 1fr 30px; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.mini-bars i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--c, var(--cyan)) var(--v), rgba(255, 255, 255, .06) var(--v)); }
.mini-bars b { color: var(--text); text-align: right; }

/* --------------------------------------------------------------- tables */
.page-panel { min-height: 420px; }
.table-toolbar { display: flex; gap: 10px; margin: 4px 0 16px; flex-wrap: wrap; }
.table-toolbar input, .table-toolbar select {
  flex: 1; min-width: 180px; background: #081422; border: 1px solid var(--line); border-radius: 11px; color: #eaf6ff; padding: 11px 13px; outline: none; font-size: 14px;
}
.table-toolbar input:focus, .table-toolbar select:focus { border-color: rgba(37, 217, 255, .4); box-shadow: 0 0 0 3px rgba(37, 217, 255, .07); }
.table-scroll { overflow: auto; border: 1px solid var(--line-soft); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
th { position: sticky; top: 0; background: #0b1726; color: #8199b0; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
td { color: #c7d8e8; }
td small { font-size: 12px; }
tr:hover td { background: rgba(37, 217, 255, .03); }
tr.selected td { background: rgba(37, 217, 255, .06); }
.risk-pill { display: inline-grid; place-items: center; min-width: 38px; height: 30px; border: 1px solid; border-radius: 9px; font-weight: 700; }
.table-btn { border: 1px solid rgba(37, 217, 255, .2); background: rgba(37, 217, 255, .08); color: #c9f7ff; border-radius: 8px; padding: 7px 11px; cursor: pointer; font-size: 13px; text-decoration: none; display: inline-block; }
.table-btn:hover { background: rgba(37, 217, 255, .15); }

/* ------------------------------------------------------------- vendors */
.vendor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.vendor-card span { color: var(--muted); font-size: 14px; }
.vendor-card strong { display: block; font-size: 34px; margin: 9px 0 3px; }
.vendor-card small { color: var(--dim); font-size: 13px; }
.meter { height: 8px; background: rgba(255, 255, 255, .05); border-radius: 99px; overflow: hidden; margin-top: 15px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--purple)); border-radius: inherit; }
.vendor-bars { display: grid; gap: 16px; }
.vendor-row { display: grid; grid-template-columns: 200px 1fr 60px; gap: 16px; align-items: center; }
.vendor-row div:first-child span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.vendor-row strong { text-align: right; }

/* ------------------------------------------------------------ analytics */
.analytics-score { padding: 30px; text-align: center; border-radius: 18px; margin-bottom: 18px; background: radial-gradient(circle, rgba(118, 87, 255, .18), rgba(37, 217, 255, .03) 55%, transparent 70%); }
.analytics-score strong { display: block; font-size: 56px; letter-spacing: -.05em; }
.analytics-score span { color: var(--muted); font-size: 13px; }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signal-grid div { background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; }
.signal-grid span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.signal-grid b { font-size: 15px; }

/* ------------------------------------------------------------ gujarat map */
.guide-panel { margin-bottom: 16px; }
.map-panel { display: flex; flex-direction: column; }
.map-wrap { position: relative; flex: 1; min-height: 420px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .04); background: radial-gradient(circle at 60% 40%, rgba(30, 93, 129, .18), transparent 70%); }
.gj-svg { display: block; width: 100%; height: 100%; max-height: 560px; }
.gj-land { stroke: rgba(37, 217, 255, .45); stroke-width: 1.4; filter: drop-shadow(0 0 14px rgba(37, 217, 255, .18)); }
.gj-dots { pointer-events: none; }
.gj-sea { fill: rgba(147, 168, 189, .35); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; font-style: italic; }
.gj-link { fill: none; stroke: rgba(37, 217, 255, .45); stroke-width: 1.4; stroke-dasharray: 3 7; animation: flow 1.6s linear infinite; }
.gj-link.alert { stroke: var(--red); stroke-width: 2.2; animation-duration: .6s; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.gj-node { cursor: pointer; outline: none; }
.gj-core { fill: var(--green); fill-opacity: .85; stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; transition: fill .4s; }
.gj-pulse { fill: none; stroke: var(--green); stroke-width: 1.5; opacity: .6; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
.gj-node.medium .gj-core { fill: var(--yellow); } .gj-node.medium .gj-pulse { stroke: var(--yellow); }
.gj-node.high .gj-core { fill: var(--orange); } .gj-node.high .gj-pulse { stroke: var(--orange); }
.gj-node.critical .gj-core { fill: var(--red); } .gj-node.critical .gj-pulse { stroke: var(--red); }
.gj-node.incident .gj-pulse { animation-duration: 1s; stroke-width: 2.5; }
.gj-node:hover .gj-core, .gj-node:focus .gj-core { stroke: #fff; stroke-width: 2.5; }
@keyframes ring { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.gj-name { fill: #e6f2ff; font-size: 13px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: rgba(4, 10, 18, .85); stroke-width: 3px; pointer-events: none; }
.gj-count { fill: var(--muted); font-size: 11px; text-anchor: middle; paint-order: stroke; stroke: rgba(4, 10, 18, .85); stroke-width: 3px; pointer-events: none; }
.gj-soc rect { fill: var(--purple); stroke: #cbbfff; stroke-width: 1; }
.gj-soc text { fill: #cbbfff; font-size: 11px; font-weight: 700; letter-spacing: .06em; paint-order: stroke; stroke: rgba(4, 10, 18, .85); stroke-width: 3px; }
.gj-dev { fill: var(--green); stroke: #04121c; stroke-width: 1; cursor: pointer; transition: fill .4s; }
.gj-dev.medium { fill: var(--yellow); } .gj-dev.high { fill: var(--orange); } .gj-dev.critical { fill: var(--red); }
.gj-dev.busy { stroke: #fff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: devPulse .9s ease-in-out infinite; }
.gj-dev.selected { stroke: var(--cyan); stroke-width: 2; }
.gj-dev:hover { stroke: #fff; stroke-width: 2; }
@keyframes devPulse { 50% { transform: scale(1.8); } }
.map-tooltip {
  position: absolute; left: 0; top: 0; z-index: 5; min-width: 200px; pointer-events: none; padding: 12px 14px; border-radius: 12px;
  background: rgba(8, 17, 31, .96); border: 1px solid rgba(37, 217, 255, .3); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-size: 13px;
}
.map-tooltip b { font-size: 15px; display: block; margin-bottom: 6px; }
.map-tooltip dl { display: grid; grid-template-columns: auto auto; gap: 3px 16px; margin: 0; }
.map-tooltip dt { color: var(--muted); }
.map-tooltip dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.map-tooltip small { display: block; margin-top: 8px; color: var(--cyan); font-size: 12px; }
.map-tooltip .tip-alert { margin: 8px 0 0; color: #ff8da1; font-weight: 600; }
:is(.map-tooltip, .signal-grid, .stat) .ok { color: var(--green); }
:is(.map-tooltip, .signal-grid, .stat) .warn { color: var(--orange); }
:is(.map-tooltip, .signal-grid, .stat) .bad { color: var(--red); }
.dot.yellow { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.dot.orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.side-stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.district-list { display: grid; gap: 6px; }
.district-row {
  display: grid; grid-template-columns: minmax(0, 1.3fr) 56px minmax(0, 1fr) 40px 72px; gap: 10px; align-items: center; width: 100%;
  padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .02); color: var(--text); cursor: pointer; text-align: left; font-size: 14px;
}
.district-row:hover { border-color: rgba(37, 217, 255, .35); background: rgba(37, 217, 255, .05); }
.district-row .dname { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.district-row .dot { flex: none; }
.district-row .dcount { color: var(--muted); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.dbar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.dbar i { display: block; height: 100%; border-radius: inherit; }
.district-row .sev { font-size: 10px; padding: 4px 6px; }

/* --------------------------------------------------------- threat center */
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { padding: 16px 18px; border-radius: var(--radius); }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { display: block; font-size: 24px; margin: 6px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { color: var(--dim); font-size: 12px; }
.threat-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.scenario-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); transition: border-color .2s; }
.scenario-card:hover { border-color: rgba(255, 77, 109, .35); }
.scenario-card header { display: flex; gap: 10px; align-items: flex-start; }
.scenario-card header svg { width: 22px; height: 22px; color: #ff8da1; flex: none; margin-top: 2px; }
.scenario-card header b { display: block; font-size: 15px; }
.scenario-card header small { color: var(--muted); font-size: 12px; }
.scenario-card p { margin: 0; font-size: 13px; line-height: 1.55; color: #c2d1df; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 11px; padding: 4px 8px; border-radius: 999px; background: rgba(118, 87, 255, .12); color: #cbbfff; border: 1px solid rgba(118, 87, 255, .2); }
.sc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sc-foot small { color: var(--dim); font-size: 12px; line-height: 1.4; }
.sc-foot .btn { flex: none; }

/* ---------------------------------------------------------------- vendor */
.vendor-card .vc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vendor-card .vc-head em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--red); background: rgba(255, 77, 109, .12); padding: 3px 7px; border-radius: 6px; }
.vendor-card p { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.vendor-card.good strong { color: var(--green); }
.vendor-card.warn strong { color: var(--orange); }
.vendor-card.bad { border-color: rgba(255, 77, 109, .35); }
.vendor-card.bad strong { color: var(--red); }
.vendor-card.bad .meter i { background: linear-gradient(90deg, var(--orange), var(--red)); }
.vendor-table td.good { color: var(--green); }
.vendor-table td.warn { color: var(--orange); }
.vendor-table td.bad { color: var(--red); font-weight: 700; }
.vendor-row.bad .bar i { background: linear-gradient(90deg, var(--orange), var(--red)); }
.vendor-row.bad strong { color: var(--red); }
.vendor-row .bar { height: 10px; }

/* ------------------------------------------------------------- AI engine */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px; }
.pipeline li {
  position: relative; padding: 16px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 6px; transition: border-color .3s, background .3s;
}
.pipeline li:not(:last-child)::after { content: "→"; position: absolute; right: -21px; top: 50%; transform: translateY(-50%); color: var(--cyan); font-size: 18px; font-weight: 700; }
.pipeline svg { width: 24px; height: 24px; color: var(--cyan); }
.pipeline b { font-size: 14px; }
.pipeline span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pipeline li.hot { border-color: rgba(255, 77, 109, .45); background: rgba(255, 77, 109, .07); }
.pipeline li.hot svg { color: #ff8da1; }
.pipeline li.hot span { color: #ffc2cd; }
.engine-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.rules-table { min-width: 560px; }
.rules-table tr.fired td { background: rgba(255, 77, 109, .05); }
.explain-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.explain-list li { padding: 11px 13px; border-radius: 11px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); }
.explain-list b { display: block; font-size: 14px; margin-bottom: 3px; }
.explain-list span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.levels { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------- polish */
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kpi, .stat, .vendor-card, .guide-steps li, .scenario-card { transition: transform .25s ease, border-color .2s; will-change: transform; }
.status-chip.offline { color: #ffc2cd; border-color: rgba(255, 77, 109, .5); }
.status-chip.offline .pulse-dot { background: var(--dim); animation: none; }
.alert-banner.offline { border-color: rgba(147, 168, 189, .4); background: linear-gradient(90deg, rgba(147, 168, 189, .14), rgba(147, 168, 189, .04)); }
.alert-banner.offline > svg { color: var(--muted); animation: none; }
.alert-banner code { background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 5px; font-size: 13px; }

/* Presenter (auto-play demo) */
.presenter {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; width: min(760px, calc(100vw - 32px));
  padding: 16px 18px 14px; border-radius: 16px; background: rgba(8, 17, 31, .96); border: 1px solid rgba(37, 217, 255, .4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(37, 217, 255, .12); backdrop-filter: blur(16px); animation: bannerIn .3s ease;
}
.pr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pr-badge { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #04121c; background: var(--cyan); padding: 4px 8px; border-radius: 6px; }
.pr-step { flex: 1; color: var(--muted); font-size: 13px; font-weight: 600; }
.pr-text { margin: 0 0 12px; font-size: 17px; line-height: 1.55; color: #e6f2ff; }
.pr-text b { color: #fff; }
.pr-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pr-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.pr-bar i.indeterminate { width: 35% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.pr-end { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.spotlight { position: relative; z-index: 2; box-shadow: 0 0 0 2px var(--cyan), 0 0 50px rgba(37, 217, 255, .3) !important; transition: box-shadow .4s; }
body.presenting .main { padding-bottom: 220px; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: 420px; background: #0c1a2a; border: 1px solid rgba(37, 217, 255, .25);
  padding: 13px 16px; border-radius: 12px; color: #e9f5ff; opacity: 0; transform: translateY(12px); transition: .25s; pointer-events: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45); font-size: 14px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1500px) {
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipeline li:nth-child(3)::after { display: none; }
  .district-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 40px auto; }
  .district-row .dcount { display: none; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .threat-row, .engine-row { grid-template-columns: minmax(0, 1fr); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three > :nth-child(3) { grid-column: 1 / -1; }
  .guide-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { padding: 14px 8px; }
  .brand > div:last-child, .sidebar-foot, .nav-item span { display: none; }
  .brand { justify-content: center; padding: 8px 0 20px; }
  .nav-item { justify-content: center; }
  .nav-item svg { width: 21px; }
  .mon-top, .cc-row { grid-template-columns: minmax(0, 1fr); }
  .vendor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper small { display: none; }
}
@media (max-width: 900px) {
  .app-shell { display: block; padding-bottom: 76px; }
  .sidebar {
    display: flex; position: fixed; top: auto; bottom: 0; left: 0; right: 0; margin: 0; height: 66px; z-index: 20;
    border-radius: 18px 18px 0 0; padding: 6px 8px; flex-direction: row; align-items: center;
  }
  .brand { display: none; }
  .sidebar nav { flex-direction: row; justify-content: space-around; width: 100%; gap: 2px; }
  .nav-item { flex: 1; flex-direction: column; gap: 3px; padding: 7px 2px; }
  .nav-item span { display: block; font-size: 10px; }
  .main { padding: 18px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two, .grid.three { grid-template-columns: minmax(0, 1fr); }
  .grid.three > :nth-child(3) { grid-column: auto; }
  .topbar { flex-direction: column; }
  .top-actions { justify-content: flex-start; }
  .stepper { gap: 6px; }
  .stepper li { flex-direction: column; text-align: center; padding: 8px 4px; }
  .stepper b { font-size: 11px; }
  .story-bar { flex-direction: column; align-items: stretch; }
  .toast { bottom: 86px; left: 16px; right: 16px; max-width: none; }
  .presenter { bottom: 78px; padding: 12px 14px; }
  .pr-text { font-size: 15px; }
}
@media (max-width: 650px) {
  .main { padding: 12px; }
  .topbar h1 { font-size: 24px; }
  .kpi strong { font-size: 22px; }
  .guide-steps { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pipeline li::after { display: none; }
  .pipeline li:not(:last-child)::before { content: "↓"; position: absolute; bottom: -20px; left: 50%; color: var(--cyan); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-wrap { min-height: 300px; }
  .gj-name { font-size: 15px; }
  .district-row { grid-template-columns: minmax(0, 1fr) 50px 40px; }
  .district-row .dcount { display: block; }
  .district-row .dbar, .district-row .sev, .district-row > span:last-child { display: none; }
  .table-toolbar input, .table-toolbar select { min-width: 100%; }
  .telemetry, .checks, .attack-grid { grid-template-columns: minmax(0, 1fr); }
  .net-wrap { min-height: 300px; }
  .net-label small { display: none; }
  .net-label { padding: 2px 5px; }
  .net-label b { font-size: 10px; }
  .vendor-grid, .signal-grid { grid-template-columns: minmax(0, 1fr); }
  .vendor-row { grid-template-columns: 110px 1fr 45px; }
  .event { grid-template-columns: 58px minmax(0, 1fr); }
  .event .sev { display: none; }
  .incident-card { grid-template-columns: minmax(0, 1fr); }
  .big-risk { font-size: 64px; }
  .ai-foot { grid-template-columns: minmax(0, 1fr); }
  .response-buttons { grid-template-columns: minmax(0, 1fr); }
  .stepper .num { width: 26px; height: 26px; font-size: 12px; }
  .stepper b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
