:root {
  --bg: #060709;
  --fg: #f4f5f7;
  --white: #ffffff;
  --ink: #0a0b0e;
  --muted: rgba(255, 255, 255, 0.5);
  --body: rgba(255, 255, 255, 0.72);
  --hairline: rgba(255, 255, 255, 0.07);
  --field-border: rgba(255, 255, 255, 0.13);
  --field-focus: rgba(255, 255, 255, 0.5);
  --field-bad: rgba(255, 140, 125, 0.7);
  --error: #ff9b8f;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glow: 1; /* background intensity, 0.2–1.6 */

  /* blue-violet palette (default) */
  --c1: 64, 108, 255;
  --c2: 140, 84, 255;
  --c3: 255, 160, 70;
}
.light-field[data-palette="teal-violet"] { --c1: 40, 190, 210; --c2: 120, 90, 255; --c3: 255, 150, 80; }
.light-field[data-palette="mono"] { --c1: 150, 160, 190; --c2: 120, 125, 150; --c3: 200, 190, 170; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--white); }
::selection { background: rgba(120, 140, 255, 0.35); }
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.32); }
select option { background: #15171d; color: var(--fg); }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 3px; }

/* ---------- Background light field ---------- */
.light-field {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  background: var(--bg);
}
.blob {
  position: absolute; border-radius: 50%;
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.blob-1 {
  width: 80vmax; height: 80vmax; top: -34vmax; left: -24vmax;
  background: radial-gradient(circle at center, rgba(var(--c1), calc(0.26 * var(--glow))) 0%, rgba(var(--c1), 0) 70%);
  animation-name: drift1; animation-duration: 40s;
}
.blob-2 {
  width: 70vmax; height: 70vmax; top: 30vh; right: -30vmax;
  background: radial-gradient(circle at center, rgba(var(--c2), calc(0.2 * var(--glow))) 0%, rgba(var(--c2), 0) 70%);
  animation-name: drift2; animation-duration: 48s;
}
.blob-3 {
  width: 54vmax; height: 54vmax; bottom: -26vmax; left: 18vw;
  background: radial-gradient(circle at center, rgba(var(--c3), calc(0.07 * var(--glow))) 0%, rgba(var(--c3), 0) 70%);
  animation-name: drift3; animation-duration: 56s;
}
@keyframes drift1 { to { transform: translate3d(10vw, 8vh, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-10vw, -6vh, 0) scale(1.08); } }
@keyframes drift3 { to { transform: translate3d(6vw, -8vh, 0) scale(1.12); } }

/* ---------- Shared ---------- */
.glass {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1120px, calc(100vw - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  background: rgba(16, 18, 24, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.nav-brand { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); white-space: nowrap; }
.btn-pill {
  font-size: 14px; font-weight: 500; color: var(--ink); background: var(--fg);
  padding: 9px 16px; border-radius: 999px; transition: background .25s ease;
}
.btn-pill:hover { color: var(--ink); background: var(--white); }

/* ---------- Layout ---------- */
main {
  position: relative; z-index: 1;
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 clamp(40px, 6vw, 72px);
}
.hero-eyebrow { margin: 0 0 clamp(20px, 3vw, 32px); font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.6); }
.hero-title {
  margin: 0 0 0 -0.04em;
  font-size: clamp(72px, 16vw, 232px); font-weight: 700;
  letter-spacing: -0.06em; line-height: 0.86; color: var(--white);
}
.facts {
  margin: clamp(40px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-radius: 24px; overflow: hidden;
}
.fact { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; border-right: 1px solid var(--hairline); }
.fact:last-child { border-right: none; }
.fact dt { font-size: 12px; font-weight: 500; color: var(--muted); }
.fact dd { margin: 0; font-size: 17px; font-weight: 500; color: var(--white); }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(96px, 14vw, 180px) 0;
  scroll-margin-top: 80px;
  border-top: 1px solid var(--hairline);
}
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px clamp(40px, 6vw, 96px); align-items: start;
}
.contact-intro { display: flex; flex-direction: column; gap: 28px; }
.contact-intro h2 {
  margin: 0; font-size: clamp(36px, 5vw, 64px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1; color: var(--white);
}
.lede { margin: 0; max-width: 380px; font-size: 17px; font-weight: 300; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.contact-details { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.detail { display: flex; flex-direction: column; gap: 6px; }
.detail-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.detail-value { font-size: 17px; font-weight: 500; color: var(--white); }
.detail-regular { font-weight: 400; }

.form-card {
  padding: clamp(24px, 3.4vw, 40px); border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* ---------- Form ---------- */
#contact-form { display: flex; flex-direction: column; gap: 20px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.req { color: rgba(255, 255, 255, 0.4); }
.opt { font-weight: 400; color: rgba(255, 255, 255, 0.4); }

.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--white);
  padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--field-border);
  background: rgba(0, 0, 0, 0.28);
  outline: none; transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--field-focus); }
.field [aria-invalid="true"] { border-color: var(--field-bad); }
.field textarea { line-height: 1.5; resize: vertical; min-height: 132px; }

.select-wrap { position: relative; display: block; }
.select-wrap select { width: 100%; appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select-caret {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  pointer-events: none; font-size: 12px; color: rgba(255, 255, 255, 0.55);
}

.field-error { font-size: 13px; color: var(--error); }
.field-error[hidden], .form-error[hidden], .sent[hidden], #contact-form[hidden] { display: none; }
.consent-error { margin-top: -12px; }
.form-error { margin: 0; font-size: 14px; line-height: 1.5; color: var(--error); }

.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.consent input { margin: 2px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--fg); cursor: pointer; }
.consent span { font-size: 14px; font-weight: 300; line-height: 1.5; color: var(--body); }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }
.req-note { font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.btn-submit {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 14px 28px; border-radius: 999px; border: none; background: var(--fg);
  cursor: pointer; transition: background .25s ease, transform .25s ease, opacity .25s ease;
}
.btn-submit:hover { background: var(--white); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Sent state ---------- */
.sent { display: flex; flex-direction: column; gap: 12px; padding: 32px 0; }
.sent-check {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); font-size: 18px; color: var(--white);
}
.sent-title { margin: 8px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.sent-body { margin: 0; font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--body); }
.btn-ghost {
  align-self: flex-start; margin-top: 12px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--white);
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; cursor: pointer;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 40px 0 56px; border-top: 1px solid var(--hairline);
  font-size: 12px; color: rgba(255, 255, 255, 0.45);
}
.footer-brand { flex: none; white-space: nowrap; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.8); }

/* ---------- Scroll reveal (enabled by script.js) ---------- */
.js-reveal [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js-reveal .contact [data-reveal] { transition-duration: .9s; }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
}

/* ---------- Nav actions (shared) ---------- */
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-link { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.75); padding: 9px 14px; border-radius: 999px; transition: background .25s ease, color .25s ease; }
.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
button.btn-pill { font: inherit; font-size: 14px; font-weight: 500; border: none; cursor: pointer; }

/* ---------- Portal ---------- */
.portal [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.portal-main { min-height: 100svh; padding-top: 120px; padding-bottom: 80px; }
.portal-status { font-size: 15px; color: var(--muted); text-align: center; margin: 40px 0; }
.nav-user { font-size: 13px; color: rgba(255, 255, 255, 0.6); padding: 0 10px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.auth-card { max-width: 440px; margin: 6vh auto 0; }
.step, .stack { display: flex; flex-direction: column; gap: 18px; }
.step-title { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--white); }
.step-lede { margin: -6px 0 4px; font-size: 15px; font-weight: 300; line-height: 1.55; color: var(--body); }
.auth-note { margin: 18px 0 0; font-size: 14px; color: var(--body); }
.link-btn { font: inherit; font-size: 14px; color: rgba(255, 255, 255, 0.7); background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--white); }
.form-ok { margin: 0; font-size: 14px; color: #9be3b4; }
.totp-qr { display: grid; place-items: center; padding: 16px; background: #fff; border-radius: 16px; width: max-content; margin: 0 auto; }
.totp-qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.totp-secret { font-size: 13px; color: var(--body); }
.totp-secret summary { cursor: pointer; }
.totp-secret code { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); font-size: 13px; letter-spacing: 0.08em; word-break: break-all; color: var(--white); user-select: all; }

.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.app-head .hero-eyebrow { margin: 0 0 10px; }
.app-title { margin: 0; font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--white); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.tab { font: inherit; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.7); background: none; border: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--fg); color: var(--ink); }
.panel { display: flex; flex-direction: column; gap: 24px; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: start; }
.card-title { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.kv { margin: 16px 0 0; display: flex; flex-direction: column; gap: 16px; }
.kv div { display: flex; flex-direction: column; gap: 4px; }
.kv dt { font-size: 12px; font-weight: 500; color: var(--muted); }
.kv dd { margin: 0; font-size: 16px; color: var(--white); word-break: break-word; }

.users-card { display: flex; flex-direction: column; gap: 16px; }
.users-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.count { font-weight: 400; color: var(--muted); }
.filter { font: inherit; font-size: 14px; color: var(--white); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--field-border); background: rgba(0, 0, 0, 0.28); outline: none; min-width: 0; width: min(280px, 100%); }
.filter:focus { border-color: var(--field-focus); }
.table-wrap { overflow-x: auto; margin: 0 -8px; }
table.users { width: 100%; border-collapse: collapse; font-size: 14px; }
.users th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.users td { padding: 12px 8px; border-bottom: 1px solid var(--hairline); color: var(--body); vertical-align: middle; }
.users td.c-name { color: var(--white); font-weight: 500; }
.users td.c-email { word-break: break-all; }
.users tr.is-self td.c-name::after { content: " (you)"; font-weight: 400; color: var(--muted); }
.users .actions-col { width: 1%; }
.c-actions { white-space: nowrap; text-align: right; }
.c-role select { font: inherit; font-size: 13px; color: var(--white); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--field-border); border-radius: 8px; padding: 6px 8px; }
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8); white-space: nowrap; }
.badge.ok { background: rgba(110, 220, 150, 0.14); color: #9be3b4; }
.badge.warn { background: rgba(255, 190, 90, 0.14); color: #ffd28a; }
.badge.off { background: rgba(255, 140, 125, 0.14); color: var(--error); }
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--white); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: rgba(255, 255, 255, 0.08); }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 200px; display: flex; flex-direction: column; padding: 6px; border-radius: 14px; background: #15171d; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.menu-list button { font: inherit; font-size: 14px; text-align: left; color: var(--fg); background: none; border: none; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.menu-list button:hover { background: rgba(255, 255, 255, 0.08); }
.menu-list button.danger { color: var(--error); }
.roles-help { font-size: 13px; color: var(--body); }
.roles-help summary { cursor: pointer; color: rgba(255, 255, 255, 0.7); }
.roles-help ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.7; }

@media (max-width: 640px) {
  .users thead { display: none; }
  .users tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .users td { border: none; padding: 0; }
  .users td.c-name { grid-column: 1; }
  .users td.c-email { grid-column: 1; font-size: 13px; }
  .users td.c-role, .users td.c-status { grid-column: 1; }
  .users td.c-actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .nav-user { display: none; }
}

/* ---------- Portal: SSO + passkeys ---------- */
.sso { display: flex; flex-direction: column; gap: 10px; }
.btn-sso { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font: inherit; font-size: 15px; font-weight: 500; color: var(--white); padding: 13px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); cursor: pointer; transition: background .2s ease; }
.btn-sso:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sso:disabled { opacity: 0.6; cursor: progress; }
.divider { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.12); }
.passkey-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.passkey-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); font-size: 14px; color: var(--white); }
.passkey-list li small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.passkey-list .empty { background: none; padding: 0; color: var(--muted); }
.passkey-list button { font: inherit; font-size: 13px; color: var(--error); background: none; border: none; cursor: pointer; }

/* ---------- Portal: Geopolitical Watch ---------- */
.watch { gap: 20px; }
.watch-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.watch-title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--white); }
.watch-sub { margin: 6px 0 0; max-width: 620px; font-size: 14px; font-weight: 300; line-height: 1.55; color: var(--body); }
.watch-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.watch-live { display: inline-flex; align-items: center; gap: 8px; color: #9be3b4; }
.watch-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(155, 227, 180, 0.15); }
.watch-live.stale { color: #ffd28a; }
.watch-live.stale::before { box-shadow: 0 0 0 4px rgba(255, 210, 138, 0.15); }
.watch-warn { flex-basis: 100%; margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; color: #ffd28a; background: rgba(255, 190, 90, 0.08); border: 1px solid rgba(255, 190, 90, 0.2); }
.watch-note { margin: 2px 0 14px; font-size: 13px; font-weight: 300; line-height: 1.5; color: var(--muted); }
.watch .muted { color: var(--muted); font-size: 14px; }
.sub-title { margin: 22px 0 10px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }

.watch-theaters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.theater-card { display: flex; flex-direction: column; gap: 10px; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.11); transition: border-color .2s ease, transform .2s var(--ease); }
.theater-card:hover { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.theater-card[aria-pressed="true"] { border-color: rgba(var(--c1), 0.8); box-shadow: 0 0 0 1px rgba(var(--c1), 0.5), 0 30px 70px rgba(0, 0, 0, 0.35); }
.theater-name { font-size: 15px; font-weight: 600; color: var(--white); }
.theater-nums { display: flex; align-items: baseline; gap: 8px; }
.theater-count { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--white); }
.theater-label { font-size: 13px; color: var(--muted); }
.theater-trend { font-size: 13px; color: var(--muted); }
.theater-trend.up { color: #ffb4a8; }
.theater-trend.down { color: #9be3b4; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 46px; margin-top: 4px; }
.spark span { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: rgba(var(--c1), 0.75); }
.spark span.zero { background: rgba(255, 255, 255, 0.08); }
.spark-axis { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255, 255, 255, 0.35); margin-top: -4px; }
.topic-chips, .post-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--body); }
.chip b { color: var(--white); font-weight: 600; }
.chip.t-military { background: rgba(255, 130, 110, 0.13); color: #ffb4a8; }
.chip.t-maritime { background: rgba(90, 180, 255, 0.13); color: #a8d4ff; }
.chip.t-nuclear { background: rgba(255, 210, 90, 0.13); color: #ffe08a; }
.chip.t-diplomacy { background: rgba(110, 220, 150, 0.13); color: #9be3b4; }
.chip.t-economic { background: rgba(190, 150, 255, 0.14); color: #d2bcff; }
.chip.muted { background: none; padding-left: 0; }
.theater-latest { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 10px; }
.theater-latest li, .mini-feed li { display: flex; flex-direction: column; gap: 3px; }
.who { font-size: 12px; color: var(--muted); }
.what { font-size: 14px; line-height: 1.45; color: var(--body); overflow-wrap: anywhere; }

.watch-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.mini-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mini-feed a { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; }
.mini-feed a:hover { background: rgba(255, 255, 255, 0.05); }
.mini-feed li.flag a { background: rgba(90, 180, 255, 0.08); border-left: 2px solid #a8d4ff; }

table.power { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
table.power th { font-weight: 500; color: var(--muted); padding: 4px 6px; white-space: nowrap; }
table.power thead th { writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; padding: 6px 2px; }
table.power tbody th { text-align: right; }
table.power td { min-width: 30px; height: 30px; text-align: center; border-radius: 6px; color: var(--white); background: rgba(var(--c2), calc(0.08 + var(--v, 0) * 0.82)); }
table.power td.self { background: rgba(255, 255, 255, 0.03); }
.top-pairs, .voices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--body); }
.top-pairs li { display: flex; justify-content: space-between; gap: 12px; }
.top-pairs b, .voices b { color: var(--white); font-weight: 600; }
.voices li { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; }
.voices .side { font-size: 13px; }
.voices .bar { display: block; height: 8px; border-radius: 4px; background: rgba(var(--c1), 0.7); }
.voices b { text-align: right; }

.watch-feed { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 100px; }
.feed-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.seg-btn { font: inherit; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.7); background: none; border: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--fg); color: var(--ink); }
.feed-select select { font: inherit; font-size: 13px; color: var(--white); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--field-border); border-radius: 999px; padding: 8px 34px 8px 14px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.feed-select { display: inline-block; }
.feed-select .select-caret { right: 12px; }
.feed-list { list-style: none; margin: 0; padding: 0; }
.post { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.post:last-child { border-bottom: none; }
.post-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.post-who b { color: var(--white); font-weight: 600; }
.post-who span { color: var(--muted); }
.post-time { margin-left: auto; color: var(--muted); }
.post-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg); white-space: pre-line; overflow-wrap: anywhere; }
.post-quote { margin: 0; padding: 8px 12px; border-left: 2px solid rgba(255, 255, 255, 0.2); font-size: 14px; line-height: 1.5; color: var(--body); white-space: pre-line; overflow-wrap: anywhere; }
.post-link { margin-left: auto; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.badge.type-government { background: rgba(110, 160, 255, 0.14); color: #b4ccff; }
.badge.type-military { background: rgba(255, 130, 110, 0.14); color: #ffb4a8; }
.badge.type-state-media { background: rgba(255, 190, 90, 0.14); color: #ffd28a; }
.badge.type-news { background: rgba(255, 255, 255, 0.08); color: var(--body); }
.badge.type-maritime { background: rgba(90, 180, 255, 0.14); color: #a8d4ff; }
.badge.type-international { background: rgba(110, 220, 150, 0.14); color: #9be3b4; }
.feed-more { display: flex; justify-content: center; }
.feed-more:empty { display: none; }

@media (max-width: 640px) {
  .theater-count { font-size: 36px; }
  .voices li { grid-template-columns: 90px 1fr 32px; }
  .post-time { margin-left: 0; }
}

/* ---------- Portal: X collection switch ---------- */
.collector { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; }
.watch-live.paused { color: #ffb4a8; }
.watch-live.paused::before { box-shadow: 0 0 0 4px rgba(255, 180, 168, 0.15); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--body); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.16); transition: background .2s ease, border-color .2s ease; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); transition: transform .2s var(--ease); }
.switch input:checked + .switch-track { background: #3fb871; border-color: #3fb871; }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 3px; }
.switch input:disabled + .switch-track { opacity: 0.5; }
.switch-error { flex-basis: 100%; font-size: 12px; color: var(--error); }
.switch-error:empty { display: none; }

/* ---------- Portal: Situation Room ---------- */
.situation { --sr-amber: #ffb35c; --sr-red: #ff6b81; --sr-blue: #6ea8ff; gap: 20px; }
.situation .muted { color: var(--muted); font-size: 14px; }
.sr-card { position: relative; min-width: 0; }
.sr-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.sr-note { margin: 4px 0 0; font-size: 13px; font-weight: 300; line-height: 1.5; color: var(--muted); max-width: 640px; }
.sr-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sr-seg .seg-btn { padding: 6px 12px; }

.sr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.sr-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sr-amber); }
.sr-title { margin: 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: var(--white); }
.sr-head-text { flex: 1 1 380px; min-width: 0; }
.sr-sub { margin: 10px 0 0; max-width: 520px; font-size: 14px; font-weight: 300; line-height: 1.55; color: var(--body); }
.sr-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.sr-clocks { display: grid; grid-template-columns: repeat(6, auto); gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.sr-clock { display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 12px; }
.sr-clock:first-child { background: rgba(255, 255, 255, 0.07); }
.sr-clock-name { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sr-clock-time { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--white); }

/* Shared SVG pieces */
.sr-map-wrap { position: relative; }
.sr-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sr-grat { fill: none; stroke: rgba(255, 255, 255, 0.045); stroke-width: 0.6; }
.sr-world { overflow: hidden; }
.sr-land { fill: rgba(150, 165, 210, 0.11); stroke: none; }
.sr-land.lens { fill: rgba(160, 172, 205, 0.15); }
.sr-coast { fill: none; stroke: rgba(190, 205, 255, 0.22); stroke-width: 0.6; }
.sr-coast.lens { stroke: rgba(200, 215, 255, 0.4); stroke-width: 0.9; }
.sr-borders { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 0.5; }
.sr-borders.lens { stroke: rgba(255, 255, 255, 0.2); stroke-width: 0.8; }
.sr-sea { fill: rgba(4, 8, 18, 0.55); }
.sr-hit, .sr-hit-line { fill: transparent; cursor: pointer; }
.sr-hit-line { stroke: transparent; stroke-width: 14; fill: none; }

.sr-ring { fill: none; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: sr-ring 3s ease-out infinite; }
@keyframes sr-ring { from { transform: scale(0.6); opacity: 0.85; } to { transform: scale(3.1); opacity: 0; } }
.sr-arc-base { fill: none; stroke: rgba(201, 195, 255, 0.07); stroke-linecap: round; }
.sr-arc { fill: none; stroke: #d9d4ff; stroke-linecap: round; stroke-dasharray: 2 7; animation: sr-flow 2s linear infinite; }
@keyframes sr-flow { to { stroke-dashoffset: -18; } }
.sr-anchor { fill: #0d0f14; stroke: #d9d4ff; stroke-width: 1.4; }
.sr-anchor-label { font-size: 11px; font-weight: 600; fill: rgba(225, 222, 255, 0.85); paint-order: stroke; stroke: rgba(6, 7, 9, 0.85); stroke-width: 3px; }
.sr-dot-core { stroke: rgba(6, 7, 9, 0.9); stroke-width: 1.2; filter: drop-shadow(0 0 6px currentColor); transition: transform .2s var(--ease); transform-box: fill-box; transform-origin: center; }
.sr-dot:hover .sr-dot-core, .sr-dot.selected .sr-dot-core { transform: scale(1.35); }
.sr-dot.selected .sr-dot-core { stroke: var(--white); stroke-width: 2; }
.sr-ping { fill: none; stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: sr-ping 2.2s ease-out infinite; }
@keyframes sr-ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3); opacity: 0; } }
.sr-tlabel-name { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; fill: rgba(255, 255, 255, 0.82); paint-order: stroke; stroke: rgba(6, 7, 9, 0.9); stroke-width: 4px; }
.sr-tlabel-num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; paint-order: stroke; stroke: rgba(6, 7, 9, 0.9); stroke-width: 4px; }

.sr-tip { position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; opacity: 0; max-width: 280px; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; color: var(--body); background: rgba(14, 16, 22, 0.94); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); transition: opacity .12s ease; }
.sr-tip.on { opacity: 1; }
.sr-tip b { color: var(--white); font-size: 13px; }

/* Places */
.sr-places { margin-top: 14px; padding-top: 6px; border-top: 1px solid var(--hairline); }
.sr-places .sub-title { margin-top: 14px; }
.sr-place-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-place-chip { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; color: var(--body); background: rgba(255, 255, 255, 0.06); border: 1px solid transparent; border-radius: 999px; padding: 5px 11px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.sr-place-chip:hover { background: rgba(255, 255, 255, 0.1); }
.sr-place-chip b { color: var(--white); font-weight: 600; }
.sr-place-chip[aria-pressed="true"] { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.12); }
.sr-place-detail { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 2px; }
.sr-place-detail-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.sr-place-detail-head .link-btn { margin-left: auto; font-size: 13px; }
.sr-place-name { margin: 0; font-size: 16px; font-weight: 600; color: var(--white); }

.sr-post { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; margin: 0 -10px; border-radius: 12px; }
.sr-post:hover { background: rgba(255, 255, 255, 0.05); }
.sr-post-who { font-size: 12px; color: var(--muted); }
.sr-post-who b { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.sr-post-text { font-size: 14px; line-height: 1.45; color: var(--body); overflow-wrap: anywhere; }

/* Gauges */
.sr-gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.sr-gauge { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.sr-gauge::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, var(--tc), transparent); opacity: 0.09; pointer-events: none; }
.sr-gauge-head { display: flex; align-items: center; gap: 9px; }
.sr-gauge-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--white); }
.sr-meter { position: relative; width: min(240px, 100%); margin: 2px auto 0; }
.sr-gauge-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sr-gauge-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 12; stroke-linecap: round; }
.sr-gauge-tick { stroke: rgba(6, 7, 9, 0.9); stroke-width: 2; }
.sr-gauge-fill, .sr-gauge-glow { fill: none; stroke-width: 12; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: sr-draw 1.1s var(--ease) forwards; }
.sr-gauge-glow { stroke-width: 22; opacity: 0.18; filter: blur(4px); }
@keyframes sr-draw { to { stroke-dashoffset: 0; } }
.sr-gauge-knob { stroke: #0b0d12; stroke-width: 3; }
.sr-readout { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sr-value { font-size: 52px; font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; color: var(--white); font-variant-numeric: tabular-nums; }
.sr-band { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--body); }
.sr-band.b-elevated { background: rgba(255, 190, 90, 0.16); color: #ffd28a; }
.sr-band.b-high { background: rgba(255, 130, 110, 0.18); color: #ffb4a8; }
.sr-band.b-intense { background: rgba(255, 80, 100, 0.25); color: #ffc2c9; }
.sr-band.b-active { background: rgba(110, 160, 255, 0.16); color: #b4ccff; }
.sr-delta { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.sr-delta.up { color: #ffb4a8; }
.sr-delta.down { color: #9be3b4; }
.sr-gauge-count { margin: -6px 0 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.sr-drivers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 26px; }
.sr-drivers-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.sr-line { display: block; width: 100%; height: 54px; margin-top: 4px; }
.sr-line-grid { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sr-line-area { opacity: 0.12; }
.sr-line-stroke { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sr-line-empty { font-size: 12px; fill: rgba(255, 255, 255, 0.35); }
.sr-line-axis { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255, 255, 255, 0.35); margin-top: -4px; }

/* Tempo */
.sr-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--body); }
.sr-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.sr-grid { stroke: rgba(255, 255, 255, 0.06); }
.sr-axis { stroke: rgba(255, 255, 255, 0.18); }
.sr-day { stroke: rgba(255, 255, 255, 0.1); stroke-dasharray: 2 4; }
.sr-tick { font-size: 11px; fill: rgba(255, 255, 255, 0.42); }
.sr-bar { opacity: 0.88; }
.sr-cursor { fill: rgba(255, 255, 255, 0.07); opacity: 0; pointer-events: none; }
.sr-cursor.on { opacity: 1; }
.sr-pin-stem { stroke-width: 1.5; }
.sr-pin circle { stroke: #0b0d12; stroke-width: 2; }
.sr-pin-num { font-size: 11px; font-weight: 700; fill: #0b0d12; }
.sr-surges { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 10px 24px; }
.sr-surge { display: flex; gap: 12px; align-items: flex-start; }
.sr-surge-num { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 8px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #0b0d12; }
.sr-surge-body { min-width: 0; flex: 1; }
.sr-surge-meta { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.sr-surge-meta b { color: var(--white); font-weight: 600; }

/* Bottom row */
.sr-bottom { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sr-water { font-size: 11px; font-style: italic; letter-spacing: 0.06em; fill: rgba(150, 190, 255, 0.45); }
.sr-country { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; fill: rgba(255, 255, 255, 0.28); }
.sr-route-base { fill: none; stroke: rgba(255, 179, 92, 0.12); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.sr-route { fill: none; stroke: rgba(255, 210, 150, 0.8); stroke-width: 1.6; stroke-dasharray: 6 6; stroke-linecap: round; animation: sr-flow-route 3s linear infinite; }
@keyframes sr-flow-route { to { stroke-dashoffset: -24; } }
.sr-route-label { font-size: 11px; fill: rgba(255, 210, 150, 0.75); paint-order: stroke; stroke: rgba(6, 7, 9, 0.85); stroke-width: 3px; }
.sr-dot-label { font-size: 12px; font-weight: 600; fill: var(--white); paint-order: stroke; stroke: rgba(6, 7, 9, 0.92); stroke-width: 4px; pointer-events: none; }
.sr-callout { position: absolute; right: 10px; max-width: 250px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.45; color: var(--body); background: rgba(10, 12, 18, 0.78); border: 1px solid rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sr-callout.at-br { bottom: 10px; }
.sr-callout.at-tr { top: 10px; }
.sr-callout.at-bl { bottom: 10px; left: 10px; right: auto; }
.sr-callout-live { margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }
.sr-callout b { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sr-amber); }
.sr-lens-latest { margin-top: 4px; }

.sr-terms { display: flex; flex-direction: column; }
.sr-term-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sr-term { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: inherit; text-align: left; color: var(--fg); background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; border-radius: 10px; padding: 8px 12px; cursor: pointer; overflow: hidden; }
.sr-term:hover { border-color: rgba(255, 255, 255, 0.2); }
.sr-term-bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(var(--c1), 0.32), rgba(var(--c2), 0.18)); border-radius: 10px; pointer-events: none; }
.sr-term-label, .sr-term-meta { position: relative; }
.sr-term-label { font-size: 14px; font-weight: 500; }
.sr-term-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.sr-term-meta b { font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.sr-new, .sr-lift { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 999px; }
.sr-new { background: rgba(255, 179, 92, 0.2); color: #ffd28a; text-transform: uppercase; }
.sr-lift { background: rgba(255, 255, 255, 0.08); color: var(--body); }
.sr-voices-note { margin: -4px 0 10px; font-size: 12px; }
.sr-voices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.sr-voices li { display: grid; grid-template-columns: minmax(0, 150px) 1fr 28px; align-items: center; gap: 10px; font-size: 13px; color: var(--body); }
.sr-voice-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-voice-bar { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--sr-amber), var(--sr-red)); }
.sr-voices b { text-align: right; color: var(--white); font-weight: 600; }

.sr-method { font-size: 13px; color: var(--muted); padding: 4px 4px 0; }
.sr-method summary { cursor: pointer; color: var(--body); }
.sr-method-body dl { margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px 28px; }
.sr-method-body dt { font-weight: 600; color: var(--body); margin-bottom: 3px; }
.sr-method-body dd { margin: 0; line-height: 1.55; }

@media (max-width: 960px) {
  .sr-bottom { grid-template-columns: minmax(0, 1fr); }
  .sr-head-side { align-items: flex-start; }
}
@media (max-width: 640px) {
  .sr-clocks { grid-template-columns: repeat(3, auto); }
  .sr-anchor-label, .sr-tlabel-name { font-size: 9px; }
  .sr-tlabel-num { font-size: 16px; }
  .sr-dot-label { font-size: 10px; }
  .sr-callout { position: static; max-width: none; margin-top: 10px; }
  .sr-value { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .sr-ring, .sr-ping, .sr-arc, .sr-route { animation: none; }
  .sr-ring, .sr-ping { display: none; }
  .sr-gauge-fill, .sr-gauge-glow { animation: none; stroke-dashoffset: 0; }
}
