/* ============================================================
   Syndicate · Observatory — design system
   Monitor surface. No rounded corners except 3px chips.
   ============================================================ */

:root {
  --bg:#040b11; --bg2:#06131c; --panel:#071721; --panel2:#091d28; --panel3:#0b2230;
  --rule:#153343; --rule2:#235266; --text:#eaf2f5; --muted:#7f99a7; --dim:#587482;
  --cyan:#46d3d6; --cyan2:#7ee7e4; --blue:#4ebbe8; --amber:#e8b54f; --orange:#e88045;
  --red:#eb5b55; --green:#47c9a6; --purple:#9a7be0;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-mono: "Azeret Mono", "IBM Plex Mono", ui-monospace, monospace;

  --sidebar-w: 194px;
  --topbar-h: 58px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 480px at 88% -6%, rgba(70,211,214,.10), transparent 60%),
    radial-gradient(900px 520px at -6% 6%, rgba(78,187,232,.07), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* fixed grid overlay — 64px cyan grid at 0.03 alpha, fading downward */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(70,211,214,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,211,214,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 55%, transparent 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 55%, transparent 100%);
}

::selection { background: rgba(70,211,214,.22); color: var(--text); }

/* ---------- typography ---------- */
h1, h2, h3, .serif, .wordmark { font-family: var(--serif); font-weight: 500; }
h1 { font-size: 2.4rem; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h2 { font-size: 1.25rem; margin: 0 0 .25rem; }
h3 { font-size: 1.05rem; margin: 0; }

.mono, .label, .tag, .timestamp, .metric, table, .kpi-num, code {
  font-family: var(--mono);
}
.tile-num { font-family: var(--display-mono); }

.label {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .68rem;
  color: var(--muted);
  font-weight: 500;
}
.label--dim { color: var(--dim); }
.label--cyan { color: var(--cyan); }

.num, .score, .big-num, .kpi-num, .tile-num, td.num, .metric {
  font-variant-numeric: tabular-nums;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan2); text-decoration: underline; text-underline-offset: 3px; }

/* focus states */
:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- shell layout ---------- */
.shell { position: relative; z-index: 1; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  border-right: 1px solid var(--rule);
  padding: 0 12px 20px;
  overflow-y: auto;
  z-index: 20;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--rule2); }

.wordmark {
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: var(--text);
  padding: 18px 6px 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 10px;
  display: block;
}
.wordmark .sub {
  display: block;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 2px;
}

.nav-group { margin: 12px 0; }
.nav-group > .label { display: block; padding: 0 6px 4px; color: var(--dim); }
.nav-group a {
  display: block;
  padding: 5px 8px;
  margin: 1px 0;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-group a:hover { color: var(--text); background: var(--panel2); }
.nav-group a.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(70,211,214,.05);
}

.nav-toggle {
  display: flex; align-items: center; gap: 6px;
  width: 100%; background: none; border: 0; cursor: pointer;
  padding: 6px 8px; font-family: var(--mono); font-size: .74rem;
  color: var(--muted); text-align: left;
}
.nav-toggle:hover { color: var(--text); }
.nav-toggle[aria-expanded="false"] + .nav-items { display: none; }
.nav-items { padding-left: 4px; }

.topbar {
  position: fixed;
  top: 0; left: var(--sidebar-w); right: 0;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  background: rgba(4,11,17,.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  z-index: 15;
}
.topbar .search {
  margin-left: auto;
  background: var(--panel2);
  border: 1px solid var(--rule2);
  color: var(--text);
  font-family: var(--mono);
  font-size: .74rem;
  padding: 7px 12px;
  width: 220px;
}
.topbar .search::placeholder { color: var(--dim); }
.topbar .clock { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.topbar .date { font-family: var(--mono); font-size: .74rem; color: var(--dim); }

.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green);
  border: 1px solid var(--green); padding: 4px 9px;
}
.live-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(71,201,166,.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(71,201,166,.55); }
  70% { box-shadow: 0 0 0 7px rgba(71,201,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(71,201,166,0); }
}
@media (prefers-reduced-motion: reduce) { .live-badge .dot { animation: none; } }

.main {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
}
.page { max-width: 1440px; margin: 0 auto; padding: 26px 28px 60px; }

/* ---------- panels ---------- */
.panel {
  position: relative;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.012) 0, rgba(255,255,255,.012) 1px, transparent 1px, transparent 30px),
    linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--rule2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  padding: 16px;
}
.panel::before {
  content: "";
  position: absolute; top: -1px; left: -1px;
  width: 2px; height: 34px;
  background: var(--cyan);
}
.panel--amber::before { background: var(--amber); }
.panel--red::before { background: var(--red); }
.panel--green::before { background: var(--green); }

.panel > .panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}

/* ---------- chips & tags ---------- */
.chip, .tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 8px;
  border: 1px solid var(--rule2); border-radius: 3px;
  color: var(--muted); white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: rgba(70,211,214,.4); }
.tag--blue { color: var(--blue); border-color: rgba(78,187,232,.4); }
.tag--amber { color: var(--amber); border-color: rgba(232,181,79,.4); }
.tag--orange { color: var(--orange); border-color: rgba(232,128,69,.4); }
.tag--red { color: var(--red); border-color: rgba(235,91,85,.4); }
.tag--green { color: var(--green); border-color: rgba(71,201,166,.4); }
.tag--purple { color: var(--purple); border-color: rgba(154,123,224,.4); }
.tag--solid-red { background: rgba(235,91,85,.14); color: var(--red); border-color: rgba(235,91,85,.4); }
.tag--solid-amber { background: rgba(232,181,79,.12); color: var(--amber); border-color: rgba(232,181,79,.4); }

/* band chip */
.band { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px; border: 1px solid; font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.band .sq { width: 10px; height: 10px; }
.band--normal { color: var(--green); border-color: rgba(71,201,166,.5); }
.band--normal .sq { background: var(--green); box-shadow: 0 0 12px var(--green); }
.band--guarded { color: var(--blue); border-color: rgba(78,187,232,.5); }
.band--guarded .sq { background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.band--elevated { color: var(--amber); border-color: rgba(232,181,79,.5); }
.band--elevated .sq { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.band--high { color: var(--orange); border-color: rgba(232,128,69,.5); }
.band--high .sq { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.band--critical { color: var(--red); border-color: rgba(235,91,85,.5); }
.band--critical .sq { background: var(--red); box-shadow: 0 0 12px var(--red); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-bottom: 22px; }
.eyebrow { font-family: var(--mono); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.score-row { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 2px; }
.score { font-family: var(--serif); font-size: 88px; line-height: .95; font-variant-numeric: tabular-nums; }
.score + .per { font-family: var(--mono); color: var(--muted); font-size: 1.1rem; }
.live-line { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 6px; }

.tiles7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.tile7 {
  display: block; text-align: center; padding: 9px 4px 7px;
  border: 1px solid var(--rule2); border-radius: 3px;
  font-family: var(--display-mono);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
}
.tile7 .n { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tile7 .d { font-family: var(--mono); font-size: .56rem; color: var(--dim); letter-spacing: .05em; margin-top: 3px; }
.tile7:hover { border-color: var(--cyan); }
.tile7.t-normal { color: var(--green); }
.tile7.t-guarded { color: var(--blue); }
.tile7.t-elevated { color: var(--amber); }
.tile7.t-high { color: var(--orange); }
.tile7.t-critical { color: var(--red); }

.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-wrap output { display: block; font-family: var(--mono); font-size: .72rem; color: var(--cyan); min-height: 1.2em; margin-top: 6px; }
.chart-key { font-family: var(--mono); font-size: .68rem; color: var(--muted); margin-top: 8px; }
.globe { position: absolute; right: 0; top: 0; opacity: .5; pointer-events: none; }
.globe .wire { transform-origin: 130px 130px; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .globe .wire { animation: none; } }

/* ---------- alert ticker ---------- */
.alert-row { margin-bottom: 22px; }
.ticker { border: 1px solid var(--rule2); background: var(--panel); margin-bottom: 10px; }
.ticker-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.ticker-head .label { margin-right: auto; }
.ticker-head .checked { font-family: var(--mono); font-size: .64rem; color: var(--dim); }
.ticker-track {
  display: flex; gap: 10px; overflow-x: auto; padding: 12px;
  scroll-behavior: smooth;
}
.ticker-track.paused { scroll-behavior: auto; }
.tick-card {
  flex: 0 0 330px; position: relative;
  border: 1px solid var(--rule2); border-radius: 3px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  padding: 10px 12px 10px 16px;
}
.tick-card .sevbar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.sevbar.critical { background: var(--red); }
.sevbar.high { background: var(--orange); }
.tick-card .title { font-size: .86rem; font-weight: 600; line-height: 1.3; }
.tick-card .meta { font-family: var(--mono); font-size: .62rem; color: var(--dim); margin-top: 6px; }
.tick-card .lead { position: absolute; top: -7px; right: 10px; font-family: var(--mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bg); background: var(--amber); padding: 1px 6px; border-radius: 3px; }
.tick-counter { min-width: 90px; text-align: right; font-family: var(--mono); font-size: .64rem; color: var(--muted); }
.tick-counter .n-new { color: var(--amber); font-size: .9rem; }
.pause-btn { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--panel2); border: 1px solid var(--rule2); border-radius: 3px; padding: 3px 8px; cursor: pointer; }
.pause-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.sep-dashed { border-top: 1px dashed var(--rule2); margin: 10px 0; }

/* ---------- vectors strip ---------- */
.vectors { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 22px; }
.vec { border: 1px solid var(--rule2); border-radius: 3px; background: linear-gradient(180deg, var(--panel2), var(--panel)); padding: 11px 12px; }
.vec .name { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vec .live { font-family: var(--display-mono); font-size: 1.5rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.vec .daily { font-family: var(--mono); font-size: .62rem; margin-top: 3px; }
.up { color: var(--red); }
.down { color: var(--green); }

/* ---------- tables ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: .78rem; }
table.data th {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--rule2);
  font-weight: 500;
}
table.data td { padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data tbody tr:hover { background: rgba(70,211,214,.04); }
table.data tr.clickable { cursor: pointer; }
table.data .head-link a { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.mono-cell { font-family: var(--mono); font-size: .72rem; }
.dim { color: var(--dim); }
.muted { color: var(--muted); }

/* ---------- bars / meters ---------- */
.bar-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.bar-row .lbl { flex: 0 0 150px; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.bar-track { flex: 1; height: 10px; background: var(--panel3); border: 1px solid var(--rule); }
.bar-fill { height: 100%; }
.bar-row .val { flex: 0 0 54px; text-align: right; font-family: var(--mono); font-size: .68rem; }

/* inline sector bars */
.sect-bar { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.sect-bar .lbl { flex: 0 0 120px; font-family: var(--mono); font-size: .64rem; color: var(--muted); }
.sect-bar .track { flex: 1; height: 6px; background: var(--panel3); }
.sect-bar .fill { height: 100%; }

/* ---------- sector matrix ---------- */
.matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mtile { border: 1px solid var(--rule2); border-radius: 3px; padding: 12px; background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.mtile .sname { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.mtile .m { font-family: var(--mono); font-size: .62rem; margin: 4px 0; display: flex; justify-content: space-between; }
.mtile .m .k { color: var(--dim); }
.mtile .m .v { color: var(--muted); }

/* ---------- role lens ---------- */
.role-band { position: relative; border: 1px solid var(--rule2); padding: 22px; margin-bottom: 22px; background: linear-gradient(180deg, var(--panel2), var(--panel)); overflow: hidden; }
.role-watermark {
  position: absolute; right: -10px; bottom: -30px; font-family: var(--serif);
  font-size: 7rem; color: rgba(255,255,255,.03); pointer-events: none; line-height: 1;
  letter-spacing: -.02em; user-select: none;
}
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.role-card { border: 1px solid var(--rule); border-left: 2px solid var(--cyan); background: var(--panel); padding: 14px; }
.role-card .rn { font-family: var(--display-mono); color: var(--cyan); font-size: 1.3rem; margin-bottom: 6px; }
select.persona {
  background: var(--panel2); border: 1px solid var(--rule2); color: var(--text);
  font-family: var(--mono); font-size: .78rem; padding: 7px 10px;
}
dl.why { margin: 10px 0 0; }
dl.why dt { font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-top: 9px; }
dl.why dd { margin: 2px 0 0; font-size: .82rem; color: var(--text); }

/* ---------- findings (priority vulns) ---------- */
.findings { counter-reset: f; }
.finding { border: 1px solid var(--rule); border-left: 2px solid var(--amber); background: var(--panel); padding: 12px 14px; margin: 8px 0; }
.finding .row { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.finding .rank { font-family: var(--display-mono); color: var(--amber); font-size: 1.1rem; }
.finding .why { font-size: .84rem; color: var(--muted); margin-top: 5px; }
.caps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- summary cards ---------- */
.summary-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.sum-card { border: 1px solid var(--rule2); border-left: 2px solid var(--blue); background: linear-gradient(180deg, var(--panel2), var(--panel)); padding: 16px; }
.sum-card .big { font-family: var(--serif); font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.sum-card .cap { font-family: var(--mono); font-size: .62rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* expandable rows */
.exp-row { border: 1px solid var(--rule); margin: 6px 0; }
.exp-row summary { cursor: pointer; padding: 12px 14px; list-style: none; }
.exp-row summary::-webkit-details-marker { display: none; }
.exp-row summary .sev { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.exp-row .body { padding: 0 14px 14px; font-size: .84rem; color: var(--muted); }
.exp-row .srcs { font-family: var(--mono); font-size: .64rem; color: var(--dim); margin-top: 10px; }

/* ---------- ddos map ---------- */
.map-wrap svg { width: 100%; height: auto; display: block; }
.kpi-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.kpi-block { border: 1px solid var(--rule2); border-left: 2px solid var(--orange); background: var(--panel); padding: 14px; }
.kpi-block .k { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kpi-block .v { font-family: var(--display-mono); font-size: 1.7rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-block .spark { margin-top: 8px; }

/* ---------- feed stream ---------- */
.feed-row { display: flex; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.feed-row .ts { flex: 0 0 76px; font-family: var(--mono); font-size: .66rem; color: var(--dim); }
.feed-row .src { flex: 0 0 120px; font-family: var(--mono); font-size: .66rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.feed-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); flex: none; }
.feed-row .t { font-size: .84rem; }

/* ---------- feeds & sources grid ---------- */
.source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 16px; }
.src-tile { border: 1px solid var(--rule); border-radius: 3px; background: var(--panel); padding: 9px 11px; display: flex; gap: 8px; align-items: center; }
.src-tile .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.src-tile .n { font-family: var(--mono); font-size: .66rem; color: var(--text); }
.src-tile .st { font-family: var(--mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.src-tile .meta { margin-left: auto; }
.dot-healthy { background: var(--green); }
.dot-impaired { background: var(--amber); }
.dot-unavailable { background: var(--red); }
.st-healthy { color: var(--green); }
.st-impaired { color: var(--amber); }
.st-unavailable { color: var(--red); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--rule);
  margin-top: 40px; padding: 22px 0 10px;
  font-family: var(--mono); font-size: .66rem; color: var(--dim);
}
footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--cyan); }
footer .attr { line-height: 1.9; }

/* ---------- failure state ---------- */
.fail {
  border: 1px solid var(--rule2); border-left: 2px solid var(--red);
  background: var(--panel); color: var(--muted);
  font-family: var(--mono); font-size: .74rem; padding: 14px 16px;
}

/* ---------- grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.grid-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
section.block { margin-bottom: 22px; }
.hr { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }
.lead { font-family: var(--mono); font-size: .66rem; color: var(--dim); margin-top: 2px; }
details.clean summary { cursor: pointer; color: var(--cyan); font-family: var(--mono); font-size: .72rem; }
details.clean { margin: 10px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  :root { --sidebar-w: 60px; }
  .sidebar { padding: 0 6px 14px; }
  .sidebar .wordmark .txt, .sidebar .wordmark .sub,
  .sidebar .nav-group > .label, .sidebar .nav-group a .txt,
  .sidebar .nav-group .nav-toggle .txt { display: none; }
  .sidebar .nav-group a, .sidebar .nav-group .nav-toggle { padding: 8px 6px; text-align: center; }
  .topbar { left: 60px; }
  .main { margin-left: 60px; }
  .matrix { grid-template-columns: repeat(2, 1fr); }
  .source-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .vectors { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .role-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; height: auto; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rule); }
  .sidebar .wordmark { display: none; }
  .topbar { position: static; }
  .main { margin-left: 0; padding-top: 0; }
  .vectors { grid-template-columns: repeat(2, 1fr); }
  .tiles7 { grid-template-columns: repeat(4, 1fr); }
  .matrix { grid-template-columns: 1fr; }
  .summary-cards, .grid-side { grid-template-columns: 1fr; }
  .kpi-blocks { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .ticker-track { scroll-behavior: auto; }
}

/* screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
