:root {
  --bg: #09070d;
  --bg-2: #130d18;
  --panel: rgba(15, 11, 21, 0.88);
  --panel-border: rgba(255, 0, 111, 0.12);
  --text: #f6f2f8;
  --muted: #b0a2b8;
  --grid: rgba(255, 51, 143, 0.06);
  --line: rgba(255, 67, 153, 0.18);
  --magenta: #ff1f74;
  --rose: #ff4fa2;
  --amber: #ffb320;
  --violet: #af36ff;
  --cyan: #63d7ff;
  --green: #58f3bf;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 31, 116, 0.08), transparent 24%),
    radial-gradient(circle at 85% 0%, rgba(175, 54, 255, 0.09), transparent 20%),
    linear-gradient(180deg, #07060a 0%, #0c0911 48%, #09070d 100%);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.28;
}

.top-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--magenta), #ff337f, #ff8a4c);
  box-shadow: 0 0 24px rgba(255, 31, 116, 0.5);
}

.app-shell {
  width: min(1920px, calc(100% - 20px));
  margin: 0 auto;
  padding: 18px 10px 26px;
}

.auth-shell {
  min-height: calc(100vh - 4px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(520px, 100%);
  padding: 28px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 31, 116, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(18, 13, 26, 0.98), rgba(9, 8, 13, 0.96));
}

.auth-brand {
  margin-bottom: 18px;
}

.auth-kicker,
.auth-label,
.auth-error {
  font-family: "IBM Plex Mono", monospace;
}

.auth-kicker {
  margin: 0;
  color: #ffd1e8;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-title {
  margin: 10px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.auth-note {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-label {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff7fc;
  padding: 14px 16px;
  font: inherit;
}

.auth-input:focus {
  outline: 2px solid rgba(255, 79, 162, 0.36);
  outline-offset: 2px;
}

.auth-error {
  margin: 0;
  color: #ff9db6;
  font-size: 0.76rem;
}

.auth-button,
.logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 79, 162, 0.24);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 31, 116, 0.22), rgba(255, 79, 162, 0.14));
  color: #fff5fb;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.auth-button {
  min-height: 46px;
  padding: 0 16px;
  font: inherit;
  font-weight: 600;
}

.logout-link {
  padding: 8px 14px;
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
}

.auth-button:hover,
.logout-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 79, 162, 0.4);
  background: linear-gradient(90deg, rgba(255, 31, 116, 0.28), rgba(255, 79, 162, 0.2));
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 10px 24px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 35%, #ff5fb0, var(--magenta));
  box-shadow: 0 0 28px rgba(255, 31, 116, 0.4);
}

.brand-mark span {
  position: absolute;
  display: block;
  background: #0a0710;
  border-radius: 999px;
}

.brand-mark span:nth-child(1) {
  width: 12px;
  height: 12px;
  left: 8px;
  top: 18px;
}

.brand-mark span:nth-child(2) {
  width: 12px;
  height: 12px;
  right: 8px;
  top: 18px;
}

.brand-mark span:nth-child(3) {
  width: 10px;
  height: 10px;
  left: 18px;
  top: 8px;
}

.brand-kicker,
.source-meta,
.panel-note,
.metric-note,
.summary-label,
.panel-count,
.headline-kicker,
.headline-subtitle,
.headline-note,
.domain-stats,
.target-meta,
.source-meta,
.feed-time {
  font-family: "IBM Plex Mono", monospace;
}

.brand-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-title {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 2vw, 2.7rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.topbar-meta {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 31, 116, 0.22);
  background: rgba(255, 31, 116, 0.08);
  color: #ffd1e8;
  box-shadow: inset 0 0 0 1px rgba(255, 31, 116, 0.06);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 18px var(--magenta);
  animation: blink 1.8s infinite;
}

.source-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.main-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.sidebar,
.center-stage {
  min-width: 0;
}

.panel {
  background: linear-gradient(180deg, rgba(20, 14, 27, 0.96), rgba(10, 8, 14, 0.92));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.side-panel {
  border-radius: 20px;
  padding: 18px 16px;
  overflow: hidden;
}

.left-sidebar,
.right-sidebar {
  display: grid;
  gap: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
}

.panel-count {
  color: var(--magenta);
  font-size: 0.78rem;
}

.panel-note,
.headline-note,
.section-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.headline-wrap {
  text-align: center;
  padding: 10px 20px 18px;
}

.headline-kicker {
  margin: 0;
  color: #fff3fa;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
}

.headline-value {
  margin: 10px 0 8px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--magenta);
  text-shadow: 0 0 24px rgba(255, 31, 116, 0.28);
}

.headline-subtitle {
  margin: 0;
  color: #ffd7e8;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
}

.overview-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.overview-pill {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.overview-label {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
}

.overview-pill strong {
  font-size: 1rem;
  line-height: 1.35;
  color: #fff8fc;
  overflow-wrap: anywhere;
}

.overview-tone {
  justify-self: start;
}

.stats-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 31, 116, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(99, 215, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(18, 13, 26, 0.98), rgba(8, 7, 12, 0.96));
}

.stats-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.45;
}

.stats-summary,
.insight-grid {
  position: relative;
  z-index: 1;
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(10, 8, 14, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.summary-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
  color: #fff6fb;
  word-break: break-word;
  line-height: 1.1;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}

.insight-panel {
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.spotlight-panel,
.vector-panel {
  grid-column: 1;
}

.posture-panel,
.error-panel {
  grid-column: 2;
}

.spotlight-list,
.vector-list,
.error-list {
  display: grid;
  gap: 12px;
}

.spotlight-item,
.vector-item,
.error-item,
.empty-state {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(7, 7, 10, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.spotlight-top,
.vector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.spotlight-item strong,
.vector-item strong,
.empty-state strong {
  font-size: 0.92rem;
}

.spotlight-value,
.vector-value {
  color: #fff2f8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.spotlight-bar-track,
.vector-bar-track {
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.spotlight-bar,
.vector-bar {
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.14);
}

.spotlight-bar.severity-high,
.vector-bar.severity-high {
  background: linear-gradient(90deg, rgba(255, 51, 75, 0.76), #ff5f82);
}

.spotlight-bar.severity-medium,
.vector-bar.severity-medium {
  background: linear-gradient(90deg, rgba(255, 179, 32, 0.78), #ffc85d);
}

.spotlight-bar.severity-guarded,
.spotlight-bar.severity-low,
.vector-bar.severity-guarded,
.vector-bar.severity-low {
  background: linear-gradient(90deg, rgba(99, 215, 255, 0.8), rgba(88, 243, 191, 0.8));
}

.spotlight-meta,
.empty-state span,
.error-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
  font-family: "IBM Plex Mono", monospace;
}

.ip-disclosure {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.ip-disclosure summary {
  cursor: pointer;
  list-style: none;
  color: #ffd7e8;
  font-size: 0.76rem;
  font-family: "IBM Plex Mono", monospace;
  user-select: none;
}

.ip-disclosure summary::-webkit-details-marker {
  display: none;
}

.ip-disclosure summary::before {
  content: "+";
  display: inline-block;
  width: 14px;
  margin-right: 6px;
  color: var(--magenta);
}

.ip-disclosure[open] summary::before {
  content: "-";
}

.ip-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ip-row,
.empty-ip-panel {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ip-row-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.ip-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ip-row strong,
.ip-hits,
.ip-type,
.empty-ip-panel,
.ip-copy-btn,
.ip-block-command {
  font-family: "IBM Plex Mono", monospace;
}

.ip-row strong,
.ip-hits {
  font-size: 0.74rem;
}

.ip-row strong {
  overflow-wrap: anywhere;
}

.ip-hits {
  color: #ffd7e8;
  flex-shrink: 0;
}

.ip-copy-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff3fa;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.66rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ip-copy-btn:hover {
  background: rgba(255, 79, 162, 0.12);
  border-color: rgba(255, 79, 162, 0.3);
  transform: translateY(-1px);
}

.ip-type,
.empty-ip-panel {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.ip-block-command {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: #ffcedf;
  font-size: 0.68rem;
  overflow-x: auto;
  white-space: nowrap;
}

.section-note {
  margin-top: -2px;
  margin-bottom: 14px;
  max-width: 56ch;
}

.posture-strip {
  display: flex;
  gap: 6px;
  height: 16px;
  margin: 6px 0 16px;
}

.posture-segment {
  min-width: 12px;
  border-radius: 999px;
}

.posture-segment.severity-high {
  background: linear-gradient(90deg, rgba(255, 51, 75, 0.82), #ff6f87);
}

.posture-segment.severity-medium {
  background: linear-gradient(90deg, rgba(255, 179, 32, 0.82), #ffd071);
}

.posture-segment.severity-guarded {
  background: linear-gradient(90deg, rgba(99, 215, 255, 0.86), rgba(88, 243, 191, 0.84));
}

.posture-legend {
  display: grid;
  gap: 12px;
}

.posture-item {
  display: grid;
  grid-template-columns: 14px auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.posture-item strong {
  font-size: 0.92rem;
}

.posture-item span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
}

.posture-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.posture-dot.severity-high {
  background: #ff5d79;
  box-shadow: 0 0 16px rgba(255, 93, 121, 0.46);
}

.posture-dot.severity-medium {
  background: #ffc54a;
  box-shadow: 0 0 16px rgba(255, 197, 74, 0.4);
}

.posture-dot.severity-guarded {
  background: #76e8ff;
  box-shadow: 0 0 16px rgba(118, 232, 255, 0.34);
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 150px;
  margin-top: 8px;
}

.bar-wrap {
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 8px;
}

.bar {
  width: 100%;
  min-height: 6px;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, rgba(255, 79, 162, 0.95), rgba(255, 31, 116, 0.34));
  box-shadow: 0 0 18px rgba(255, 31, 116, 0.2);
  transition: height 220ms ease;
}

.bar-label {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: "IBM Plex Mono", monospace;
}

.feed-list,
.target-list,
.domain-grid,
.source-list {
  display: grid;
  gap: 10px;
}

.feed-list.compact {
  max-height: 690px;
  overflow: auto;
  padding-right: 4px;
}

.feed-list.compact::-webkit-scrollbar {
  width: 8px;
}

.feed-list.compact::-webkit-scrollbar-thumb {
  background: rgba(255, 31, 116, 0.18);
  border-radius: 999px;
}

.feed-item,
.target-item,
.domain-card,
.source-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:focus-visible {
  outline: 2px solid rgba(255, 79, 162, 0.65);
  outline-offset: 2px;
}

.feed-item:hover,
.target-item:hover,
.domain-card:hover,
.source-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 79, 162, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.feed-top,
.target-top,
.domain-top,
.source-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.feed-item strong,
.target-item strong,
.domain-card strong,
.source-item strong,
.domain-name {
  font-size: 0.92rem;
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
}

.feed-item span,
.target-item span,
.domain-card span,
.source-item span {
  line-height: 1.55;
  min-width: 0;
  overflow-wrap: anywhere;
}

.feed-time,
.domain-stats,
.target-meta,
.source-meta {
  color: var(--muted);
  font-size: 0.72rem;
}

.feed-detail,
.target-detail,
.source-detail,
.domain-stats,
.target-meta,
.source-meta {
  display: block;
  margin-top: 6px;
}

.feed-detail,
.target-detail,
.source-detail {
  color: #fff6fb;
  font-weight: 500;
}

.domain-grid.stacked {
  grid-template-columns: 1fr;
}

.domain-badge,
.source-risk,
.feed-severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: start;
  max-width: 100%;
}

.severity-high {
  background: rgba(255, 51, 75, 0.16);
  color: #ff8ea1;
}

.severity-medium {
  background: rgba(255, 179, 32, 0.15);
  color: #ffd071;
}

.severity-low {
  background: rgba(88, 243, 191, 0.15);
  color: #84ffd4;
}

.severity-guarded {
  background: rgba(99, 215, 255, 0.14);
  color: #9de4ff;
}

.detail-modal[hidden] {
  display: none;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 6, 0.72);
  backdrop-filter: blur(10px);
}

.detail-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 920px);
  overflow: auto;
  padding: 26px 24px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 31, 116, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(19, 13, 27, 0.98), rgba(9, 8, 13, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5);
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff4fa;
  font-size: 1.5rem;
  cursor: pointer;
}

.detail-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
}

.detail-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.detail-body {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-metric,
.detail-section,
.detail-list-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-metric span,
.detail-list-item span,
.detail-text,
.detail-code {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.6;
}

.detail-metric strong,
.detail-list-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
  color: #fff7fc;
  overflow-wrap: anywhere;
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-text {
  margin: 0;
}

.detail-code {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  color: #ffd6e6;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-actions {
  display: grid;
  gap: 10px;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

@media (max-width: 1400px) {
  .main-layout {
    grid-template-columns: 280px minmax(0, 1fr) 280px;
  }

  .stats-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .overview-ribbon {
    grid-template-columns: 1fr;
  }

  .spotlight-panel,
  .vector-panel,
  .posture-panel,
  .error-panel {
    grid-column: auto;
  }
}

@media (max-width: 1120px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar-meta {
    justify-items: start;
  }

  .topbar {
    flex-direction: column;
  }

  .source-meta {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: calc(100% - 10px);
    padding-inline: 4px;
  }

  .headline-value {
    font-size: 2.7rem;
  }

  .stats-stage {
    padding: 14px;
  }

  .stats-summary {
    grid-template-columns: 1fr;
  }

  .overview-pill {
    padding: 12px 14px;
  }

  .feed-top,
  .target-top,
  .domain-top,
  .source-top {
    grid-template-columns: 1fr;
  }

  .domain-badge,
  .source-risk,
  .feed-severity {
    justify-self: start;
  }

  .detail-dialog {
    padding: 22px 16px 18px;
  }

  .detail-metrics {
    grid-template-columns: 1fr;
  }
}
