:root {
  color-scheme: dark;
  --bg: #06090d;
  --surface: rgba(14, 20, 27, 0.76);
  --surface-strong: rgba(17, 24, 32, 0.94);
  --line: rgba(151, 170, 188, 0.13);
  --line-bright: rgba(151, 170, 188, 0.24);
  --text: #f0f5f8;
  --muted: #84909d;
  --muted-bright: #a8b3bd;
  --cyan: #58efd0;
  --cyan-rgb: 88, 239, 208;
  --blue: #4ca8ff;
  --amber: #f6bd60;
  --red: #ff6b76;
  --radius: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(67, 105, 130, 0.16), transparent 37rem),
    linear-gradient(180deg, #080c11 0%, var(--bg) 44%, #05080b 100%);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.ambient,
.noise {
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.ambient {
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.09;
}

.ambient-a {
  top: 6rem;
  left: -18rem;
  background: var(--blue);
}

.ambient-b {
  top: 24rem;
  right: -20rem;
  background: var(--cyan);
}

.noise {
  inset: 0;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(var(--cyan-rgb), 0.32);
  border-radius: 11px;
  background: rgba(var(--cyan-rgb), 0.07);
  box-shadow: inset 0 0 22px rgba(var(--cyan-rgb), 0.07);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  content: "";
  border: 1px solid rgba(var(--cyan-rgb), 0.8);
  border-radius: 50%;
}

.brand-mark::before {
  width: 22px;
  height: 22px;
}

.brand-mark::after {
  width: 10px;
  height: 10px;
}

.brand-mark span {
  width: 3px;
  height: 3px;
  border: 0;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.13em;
}

.brand small {
  margin-top: 4px;
  color: #66727e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.21em;
}

.topbar-actions,
.service-state,
.scan-button {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 12px;
}

.service-state {
  gap: 8px;
  color: var(--muted-bright);
  font-size: 12px;
}

.service-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(246, 189, 96, 0.66);
}

.service-state[data-state="online"] .service-dot {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(var(--cyan-rgb), 0.75);
  animation: pulse-dot 2s ease-out infinite;
}

.service-state[data-state="offline"] .service-dot {
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 107, 118, 0.55);
}

.scan-button {
  min-height: 42px;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid rgba(var(--cyan-rgb), 0.28);
  border-radius: 11px;
  color: #dffdf6;
  background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.15), rgba(76, 168, 255, 0.08));
  box-shadow: inset 0 0 18px rgba(var(--cyan-rgb), 0.04);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.scan-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(var(--cyan-rgb), 0.55);
  background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.22), rgba(76, 168, 255, 0.1));
}

.scan-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.scan-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.scan-button-icon {
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  border-left-color: transparent;
}

.scan-button.is-loading .scan-button-icon {
  animation: spin 0.85s linear infinite;
}

.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  min-height: 400px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  overflow: hidden;
  border-radius: 28px;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.035) 50%, transparent 50.1%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  mask-image: linear-gradient(90deg, transparent, black 55%, black);
}

.hero::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 46%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb), 0.7), transparent);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 54px 26px 50px 56px;
}

.overline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.overline.compact {
  font-size: 9px;
}

.overline-line {
  width: 23px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.state-heading {
  margin-top: 35px;
}

.state-kicker {
  color: var(--muted-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.state-heading h1 {
  max-width: 640px;
  margin: 7px 0 0;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 610;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero[data-state="watch"] .state-heading h1 {
  color: #dcfff7;
  text-shadow: 0 0 30px rgba(var(--cyan-rgb), 0.12);
}

.hero[data-state="unavailable"] .overline,
.hero[data-state="unavailable"] .state-kicker {
  color: var(--amber);
}

.hero-description {
  max-width: 620px;
  min-height: 46px;
  margin: 18px 0 0;
  color: #9aa6b2;
  font-size: 14px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  gap: 50px;
  margin-top: 34px;
}

.hero-meta span,
.hero-meta strong {
  display: block;
}

.hero-meta span {
  color: #64717d;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.hero-meta strong {
  margin-top: 7px;
  color: #bfc9d2;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
}

.radar-wrap {
  position: relative;
  z-index: 1;
  justify-self: center;
  text-align: center;
}

.radar {
  position: relative;
  width: min(25vw, 270px);
  min-width: 210px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(var(--cyan-rgb), 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(var(--cyan-rgb), 0.08) 0 2%, transparent 2.5%),
    radial-gradient(circle, rgba(10, 19, 24, 0.8), rgba(6, 10, 14, 0.3));
  box-shadow:
    0 0 70px rgba(var(--cyan-rgb), 0.06),
    inset 0 0 50px rgba(var(--cyan-rgb), 0.035);
}

.radar-ring,
.radar-cross,
.radar-sweep,
.radar-core,
.radar-blip {
  position: absolute;
}

.radar-ring {
  inset: 50%;
  translate: -50% -50%;
  border: 1px solid rgba(var(--cyan-rgb), 0.12);
  border-radius: 50%;
}

.ring-1 { width: 72%; height: 72%; }
.ring-2 { width: 46%; height: 46%; }
.ring-3 { width: 21%; height: 21%; }

.radar-cross {
  background: rgba(var(--cyan-rgb), 0.11);
}

.cross-x { top: 50%; left: 7%; width: 86%; height: 1px; }
.cross-y { top: 7%; left: 50%; width: 1px; height: 86%; }

.radar-sweep {
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 305deg,
    rgba(var(--cyan-rgb), 0.02) 318deg,
    rgba(var(--cyan-rgb), 0.3) 358deg,
    var(--cyan) 360deg
  );
  mask-image: radial-gradient(circle, transparent 0 3%, black 3.5%);
  animation: radar-sweep 4.4s linear infinite;
}

.radar-core {
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.radar-blip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(var(--cyan-rgb), 0.09), 0 0 12px var(--cyan);
  opacity: 0.22;
}

.blip-1 { top: 29%; left: 67%; animation: blip 4.4s 0.5s infinite; }
.blip-2 { top: 66%; left: 30%; animation: blip 4.4s 2.7s infinite; }
.blip-3 { top: 71%; left: 72%; animation: blip 4.4s 3.4s infinite; }

.hero[data-state="watch"] .radar-blip {
  background: #b7ffef;
}

.hero[data-state="unavailable"] .radar {
  filter: grayscale(0.65);
  opacity: 0.6;
}

.hero[data-state="unavailable"] .radar-sweep {
  animation-play-state: paused;
}

.radar-caption {
  margin-top: 17px;
}

.radar-caption span,
.radar-caption small {
  display: block;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.radar-caption span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.radar-caption small {
  margin-top: 5px;
  color: #52606c;
  font-size: 8px;
  letter-spacing: 0.13em;
}

.safety-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  margin: 14px 0;
  padding: 14px 18px;
  border: 1px solid rgba(246, 189, 96, 0.15);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(246, 189, 96, 0.07), rgba(246, 189, 96, 0.025));
}

.safety-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(246, 189, 96, 0.42);
  border-radius: 50%;
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 13px;
}

.safety-banner p {
  margin: 0;
  color: #9a9383;
  font-size: 11px;
  line-height: 1.65;
}

.safety-banner strong {
  color: #d8caa9;
}

.lock-label {
  padding: 6px 8px;
  border: 1px solid rgba(246, 189, 96, 0.16);
  border-radius: 6px;
  color: #a99569;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.metric-card {
  position: relative;
  min-height: 132px;
  padding: 20px 22px;
  overflow: hidden;
  border-radius: 16px;
}

.metric-card::after {
  position: absolute;
  right: -25px;
  bottom: -50px;
  width: 100px;
  height: 100px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
}

.metric-label,
.metric-card strong,
.metric-card small {
  display: block;
}

.metric-label {
  color: #788590;
  font-size: 10px;
}

.metric-card strong {
  margin-top: 12px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.metric-card small {
  margin-top: 8px;
  color: #5f6b76;
  font-size: 9px;
}

.accent-metric {
  border-color: rgba(var(--cyan-rgb), 0.16);
  background: linear-gradient(145deg, rgba(var(--cyan-rgb), 0.08), var(--surface));
}

.accent-metric strong {
  color: var(--cyan);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(285px, 0.75fr);
  gap: 12px;
}

.observations,
.risk-panel,
.runtime-panel,
.exclusions {
  border-radius: var(--radius);
}

.observations {
  min-height: 500px;
  padding: 29px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-header.small {
  align-items: center;
}

.section-header h2 {
  margin: 9px 0 0;
  font-size: 18px;
  font-weight: 580;
  letter-spacing: -0.02em;
}

.legend {
  display: flex;
  gap: 14px;
  color: #687580;
  font-size: 9px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-watch {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(var(--cyan-rgb), 0.7);
}

.legend-near {
  background: var(--amber);
}

.candidate-list {
  margin-top: 24px;
}

.candidate-row {
  display: grid;
  grid-template-columns: minmax(152px, 1.2fr) repeat(4, minmax(78px, 0.7fr));
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 13px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  transition: background 180ms ease, transform 180ms ease;
  animation: row-in 360ms both;
}

.candidate-row:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.018);
}

.candidate-row:first-child {
  border-top-color: rgba(var(--cyan-rgb), 0.13);
}

.candidate-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.rank {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  color: #667480;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.symbol strong,
.symbol small,
.datum span,
.datum strong {
  display: block;
}

.symbol strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.015em;
}

.symbol small {
  margin-top: 5px;
  color: #65727e;
  font-size: 9px;
}

.status-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--amber);
  background: rgba(246, 189, 96, 0.07);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.status-tag::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-tag.watch {
  color: var(--cyan);
  background: rgba(var(--cyan-rgb), 0.08);
}

.status-tag.risk {
  color: var(--red);
  background: rgba(255, 107, 118, 0.08);
}

.datum span {
  color: #5f6c77;
  font-size: 8px;
}

.datum strong {
  margin-top: 6px;
  color: #b8c2ca;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
}

.datum strong.positive {
  color: var(--cyan);
}

.datum strong.negative {
  color: var(--red);
}

.risk-note {
  grid-column: 2 / -1;
  margin: -7px 0 5px;
  color: #a47d80;
  font-size: 9px;
}

.empty-state {
  min-height: 350px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 40px;
  text-align: center;
}

.empty-orbit {
  position: relative;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(var(--cyan-rgb), 0.12);
  border-radius: 50%;
}

.empty-orbit::before,
.empty-orbit::after {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(var(--cyan-rgb), 0.14);
  border-radius: 50%;
}

.empty-orbit::after {
  inset: 32px;
  border: 0;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.empty-state h3 {
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 560;
}

.empty-state p {
  max-width: 360px;
  margin: 10px 0 0;
  color: #65727e;
  font-size: 11px;
  line-height: 1.75;
}

.empty-state.error .empty-orbit {
  border-color: rgba(255, 107, 118, 0.18);
}

.empty-state.error .empty-orbit::after {
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 107, 118, 0.7);
}

.skeleton-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 30px;
  padding: 26px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.skeleton-row span {
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, #111820, #1b252f, #111820);
  background-size: 200% 100%;
  animation: skeleton 1.5s linear infinite;
}

.risk-stack {
  display: grid;
  align-content: start;
  gap: 12px;
}

.risk-panel,
.runtime-panel {
  padding: 26px;
}

.shield {
  position: relative;
  width: 27px;
  height: 30px;
  border: 1px solid rgba(var(--cyan-rgb), 0.28);
  border-radius: 12px 12px 14px 14px;
  clip-path: polygon(50% 0, 100% 18%, 90% 75%, 50% 100%, 10% 75%, 0 18%);
}

.shield::after {
  position: absolute;
  top: 9px;
  left: 8px;
  width: 9px;
  height: 5px;
  content: "";
  border-bottom: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  rotate: -45deg;
}

.filter-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.filter-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aa6b0;
  font-size: 10px;
}

.check {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(var(--cyan-rgb), 0.2);
  border-radius: 5px;
  color: var(--cyan);
  background: rgba(var(--cyan-rgb), 0.045);
  font-size: 9px;
}

.filter-disclaimer {
  margin: 21px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #5f6b75;
  font-size: 9px;
  line-height: 1.65;
}

.runtime-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.runtime-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(246, 189, 96, 0.5);
}

.runtime-panel.is-online .runtime-pulse {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(var(--cyan-rgb), 0.65);
  animation: pulse-dot 2s infinite;
}

.runtime-head small,
.runtime-head strong {
  display: block;
}

.runtime-head small {
  color: #65717c;
  font-size: 9px;
}

.runtime-head strong {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 550;
}

.runtime-details {
  margin: 20px 0 0;
}

.runtime-details div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 9px;
}

.runtime-details dt {
  color: #5f6c77;
}

.runtime-details dd {
  margin: 0;
  color: #99a4ae;
  text-align: right;
}

.runtime-details dd.locked {
  color: var(--amber);
}

.exclusions {
  margin-top: 12px;
  padding: 25px 29px;
}

.muted {
  color: #5f6c77;
  font-size: 9px;
}

.exclusion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.exclusion-chip,
.placeholder-chip {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 7px;
  color: #75818c;
  background: rgba(255, 255, 255, 0.018);
  font-size: 9px;
}

.exclusion-chip strong {
  margin-left: 5px;
  color: #aeb7bf;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 500;
}

.footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #424d57;
  font-size: 9px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  max-width: min(390px, calc(100vw - 48px));
  padding: 13px 16px;
  border: 1px solid var(--line-bright);
  border-radius: 11px;
  color: #cbd4db;
  background: rgba(13, 19, 25, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.44);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  translate: 0 10px;
  transition: opacity 180ms ease, translate 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  translate: 0;
}

@keyframes radar-sweep { to { rotate: 360deg; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes blip {
  0%, 60%, 100% { opacity: 0.13; scale: 0.8; }
  72% { opacity: 1; scale: 1.1; }
  85% { opacity: 0.25; scale: 1; }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), 0.34); }
  55% { box-shadow: 0 0 0 6px rgba(var(--cyan-rgb), 0); }
}
@keyframes skeleton { to { background-position: -200% 0; } }
@keyframes row-in {
  from { opacity: 0; translate: 0 7px; }
  to { opacity: 1; translate: 0; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1.35fr 0.65fr;
  }

  .hero-copy {
    padding-left: 36px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .risk-stack {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 24px), 1180px);
  }

  .topbar {
    height: 78px;
  }

  .service-state {
    display: none;
  }

  .topbar-actions {
    flex: 0 0 auto;
    margin-left: 12px;
  }

  .scan-button {
    min-height: 39px;
    padding-inline: 13px;
  }

  .hero {
    min-height: 570px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hero-copy {
    padding: 38px 25px 12px;
  }

  .hero-meta {
    gap: 25px;
  }

  .radar-wrap {
    padding: 8px 0 32px;
  }

  .radar {
    width: 190px;
    min-width: 190px;
  }

  .safety-banner {
    grid-template-columns: auto 1fr;
  }

  .lock-label {
    display: none;
  }

  .metric-grid {
    gap: 8px;
  }

  .metric-card {
    min-height: 118px;
    padding: 17px;
  }

  .observations {
    padding: 23px 18px;
  }

  .legend {
    display: none;
  }

  .candidate-row {
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    gap: 10px;
  }

  .candidate-row .datum:nth-of-type(3),
  .candidate-row .datum:nth-of-type(4) {
    display: none;
  }

  .risk-note {
    grid-column: 1 / -1;
  }

  .risk-stack {
    grid-template-columns: 1fr;
  }

  .footer {
    min-height: 90px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
