:root {
  --bg: #060a12;
  --bg-deep: #04070e;
  --panel: rgba(12, 18, 30, 0.84);
  --panel-strong: rgba(11, 18, 28, 0.94);
  --chrome: rgba(10, 17, 28, 0.8);
  --chrome-strong: rgba(7, 14, 24, 0.95);
  --chrome-soft: rgba(11, 21, 34, 0.88);
  --ink: #f4f8ff;
  --muted: rgba(176, 194, 212, 0.72);
  --muted-strong: #c9d7e6;
  --line: rgba(179, 214, 247, 0.15);
  --line-strong: rgba(179, 214, 247, 0.24);
  --accent: #4dd7ff;
  --accent-dark: #a8efff;
  --accent-soft: rgba(77, 215, 255, 0.14);
  --accent-glow: rgba(77, 215, 255, 0.45);
  --green: #69f6c4;
  --alert: #ff746c;
  --amber: #ffb35d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --tag-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  --tag-border: rgba(255, 255, 255, 0.16);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --surface-card:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    linear-gradient(180deg, rgba(77, 215, 255, 0.02), transparent 38%);
  --surface-subtle: rgba(255, 255, 255, 0.035);
  --panel-edge-glow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --success-bg: rgba(37, 95, 74, 0.18);
  --error-bg: rgba(182, 70, 29, 0.18);
  --severity-high-bg: rgba(255, 134, 116, 0.16);
  --severity-high-ink: #ffd9d2;
  --severity-medium-bg: rgba(255, 180, 92, 0.18);
  --severity-medium-ink: #ffe7c3;
  --severity-low-bg: rgba(88, 247, 191, 0.12);
  --severity-low-ink: #c7ffe9;
  --logo-shield: #0f151c;
  --logo-face: #f5f9ff;
  --logo-node: #7fe8ff;
  --logo-outline: rgba(237, 246, 255, 0.12);
  --logo-wordmark: #edf6ff;
  --logo-wordmark-stroke: rgba(127, 232, 255, 0.12);
}

body[data-theme="light"] {
  --bg: #eef4fa;
  --bg-deep: #e0ebf7;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --chrome: rgba(247, 250, 255, 0.92);
  --chrome-strong: rgba(255, 255, 255, 0.96);
  --chrome-soft: rgba(241, 247, 255, 0.94);
  --ink: #17202a;
  --muted: #5f6f81;
  --muted-strong: #415263;
  --line: rgba(32, 60, 88, 0.12);
  --line-strong: rgba(32, 60, 88, 0.18);
  --accent: #0f87c9;
  --accent-dark: #045f92;
  --accent-soft: rgba(15, 135, 201, 0.12);
  --accent-glow: rgba(15, 135, 201, 0.25);
  --green: #255f4a;
  --alert: #c64b38;
  --amber: #cf7a27;
  --shadow: 0 18px 60px rgba(74, 52, 31, 0.12);
  --tag-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 255, 0.9));
  --tag-border: rgba(32, 60, 88, 0.16);
  --surface-soft: rgba(255, 255, 255, 0.84);
  --surface-card: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92));
  --surface-subtle: rgba(15, 135, 201, 0.05);
  --panel-edge-glow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --success-bg: rgba(37, 95, 74, 0.1);
  --error-bg: rgba(182, 70, 29, 0.1);
  --severity-high-bg: rgba(198, 75, 56, 0.12);
  --severity-high-ink: #7c261b;
  --severity-medium-bg: rgba(207, 122, 39, 0.14);
  --severity-medium-ink: #7d4a08;
  --severity-low-bg: rgba(37, 95, 74, 0.1);
  --severity-low-ink: #194636;
  --logo-shield: #14181d;
  --logo-face: #fbfdff;
  --logo-node: #b6461d;
  --logo-outline: rgba(24, 33, 38, 0.14);
  --logo-wordmark: #1a2026;
  --logo-wordmark-stroke: rgba(24, 33, 38, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(87, 117, 176, 0.22), transparent 20%),
    radial-gradient(circle at 82% 15%, rgba(46, 111, 173, 0.18), transparent 22%),
    radial-gradient(circle at 52% 2%, rgba(77, 215, 255, 0.08), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(76px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.68;
}

body::before {
  top: 70px;
  left: -80px;
  background: rgba(87, 117, 176, 0.18);
}

body::after {
  right: -120px;
  bottom: 120px;
  background: rgba(46, 111, 173, 0.14);
}

body.is-busy {
  overflow: hidden;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 56px;
}

.topbar,
.hero,
.panel,
.report-header {
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  margin-bottom: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, var(--chrome), var(--chrome-soft));
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
  box-shadow: var(--shadow), var(--panel-edge-glow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.brand-name {
  display: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.2;
}

.brand-mark,
.brand-logo {
  display: block;
  line-height: 0;
}

.brand-logo {
  width: clamp(210px, 22vw, 290px);
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.97);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
}

.brand-mark {
  display: none;
  width: 60px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.97);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
}

.brand-logo svg,
.brand-mark-image {
  display: block;
  width: 100%;
  height: auto;
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: auto;
}

body[data-theme="light"] .brand-logo,
body[data-theme="light"] .brand-mark {
  border-color: rgba(24, 33, 38, 0.08);
  background: rgba(255, 255, 255, 0.78);
  filter: drop-shadow(0 10px 24px rgba(74, 52, 31, 0.14));
}

.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;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.theme-switch-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.topnav a,
.secondary-link,
table a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.topnav a {
  color: var(--muted-strong);
}

.secondary-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-card);
}

.inline-auth-form {
  margin: 0;
}

.nav-button {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface-card);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px 10px 34px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.nav-button:hover,
.nav-button:focus-visible {
  border-color: var(--accent-glow);
  box-shadow: 0 0 0 3px rgba(77, 215, 255, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(39, 211, 255, 0.18), transparent 30%),
    radial-gradient(circle at left bottom, rgba(255, 180, 92, 0.1), transparent 35%),
    linear-gradient(135deg, var(--chrome-strong), var(--chrome-soft));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
}

h1 {
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 0.96;
  margin: 0 0 12px;
  max-width: 12ch;
}

.hero-text {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.98rem;
  max-width: 60ch;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.metric-card,
.panel,
.report-header {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 14px 16px;
}

a.metric-card {
  text-decoration: none;
  color: inherit;
}

.metric-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.metric-card strong {
  font-size: 1.45rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.kpi-grid,
.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

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

.kpi-panel {
  min-height: 100%;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-metric {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.mini-metric span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.mini-metric strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.leaderboard {
  display: grid;
  gap: 12px;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.leaderboard-row strong {
  color: var(--accent-dark);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.report-home-grid {
  margin-top: 24px;
}

.chart-panel {
  min-height: 100%;
}

.donut-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
}

.donut-chart {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--chart-fill);
  display: grid;
  place-items: center;
  position: relative;
}

.donut-chart::after {
  content: "";
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  position: absolute;
}

.donut-hole {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.donut-hole strong {
  font-size: 1.7rem;
}

.donut-hole span {
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.chart-legend {
  display: grid;
  gap: 10px;
}

.legend-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.legend-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.legend-row strong {
  flex: 0 0 auto;
}

.interactive-card,
.interactive-row,
.filter-chip,
.intel-tag {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.interactive-card:hover,
.interactive-card:focus-visible,
.interactive-row:hover,
.interactive-row:focus-visible,
.filter-chip:hover,
.filter-chip:focus-visible,
.intel-tag:hover,
.intel-tag:focus-visible {
  transform: translateY(-1px);
  border-color: var(--tag-border);
  box-shadow: 0 12px 28px rgba(10, 16, 28, 0.12);
  text-decoration: none;
}

.bar-chart {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(100px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

a.bar-row,
a.legend-row {
  color: inherit;
  text-decoration: none;
}

.bar-label {
  color: var(--muted-strong);
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.bar-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--green));
}

.advisory-fill {
  background: linear-gradient(90deg, var(--alert), var(--amber));
}

.latest-findings-panel {
  margin-top: 24px;
}

.panel {
  padding: 20px;
}

.panel-heading-with-actions {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-heading h2,
.report-header h1 {
  margin: 0;
  font-size: 1.45rem;
}

.compact-panel {
  padding: 18px;
}

.compact-panel .panel-heading h2 {
  font-size: 1.18rem;
}

.feed-toggle-button {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.feed-toggle-button:hover,
.feed-toggle-button:focus-visible {
  border-color: var(--accent-soft);
  background: color-mix(in srgb, var(--panel-strong) 82%, var(--accent-soft) 18%);
}

.feed-toggle-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


.control-form {
  display: grid;
  gap: 18px;
}

.backfill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field,
.vendor-fieldset {
  display: grid;
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
}

.field span,
.vendor-fieldset legend {
  font-weight: 700;
}

.field input[type="number"],
.field input[type="text"],
.field input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink);
  caret-color: var(--accent);
  font: inherit;
}

.field input[type="number"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

body[data-theme="light"] .field input[type="number"]::-webkit-calendar-picker-indicator {
  filter: none;
}

.field input[type="text"]:focus-visible,
.field input[type="password"]:focus-visible,
.field input[type="number"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field-hint,
.latest-meta,
.empty-state,
small {
  color: var(--muted-strong);
}

.vendor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vendor-pill {
  position: relative;
  cursor: pointer;
}

.vendor-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.vendor-pill span {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.vendor-pill input:checked + span {
  background: var(--accent-soft);
  border-color: var(--tag-border);
  transform: translateY(-1px);
}

.vendor-pill small {
  display: block;
  margin-top: 6px;
  margin-left: 14px;
  font-size: 0.74rem;
}

.vendor-pill-disabled span {
  opacity: 0.78;
}

.primary-button {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(77, 215, 255, 0.18), rgba(255, 179, 93, 0.2));
  color: var(--ink);
  padding: 13px 18px 13px 38px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.primary-button::before,
.secondary-link::before,
.filter-chip::before,
.tab-link::before,
.intel-tag::before,
.nav-button::before,
.theme-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(77, 215, 255, 0.08), 0 0 14px var(--accent-glow);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.danger-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(255, 179, 93, 0.18), rgba(255, 116, 108, 0.22));
}

.primary-button:hover,
.primary-button:focus-visible {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.8;
}

.primary-button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.primary-button.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

.theme-toggle,
.tab-link,
.tab-button,
.select-input {
  font: inherit;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-card);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px 8px 38px;
  cursor: pointer;
  min-width: 122px;
  justify-content: space-between;
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #d6ecff);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease;
}

.theme-toggle[aria-checked="true"] .theme-toggle-thumb {
  transform: translateX(18px);
}

.theme-toggle-text {
  font-weight: 700;
}

.schedule-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.schedule-card {
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.schedule-label {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.schedule-card strong {
  font-size: 1rem;
  line-height: 1.3;
}

.schedule-message {
  margin: 16px 0 0;
  color: var(--muted);
}

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

.auth-panel {
  width: min(520px, 100%);
}

.auth-form {
  margin-top: 18px;
}

.setup-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.warning-box {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 177, 80, 0.34);
  background: rgba(255, 177, 80, 0.12);
}

.warning-box strong {
  display: block;
  margin-bottom: 8px;
}

.warning-box p {
  margin: 0;
  color: var(--muted-strong);
}

.code-block {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  color: var(--ink);
  font-family: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.latest-meta,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 18px;
}

.latest-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.findings-list {
  display: grid;
  gap: 14px;
}

.findings-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.finding-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease;
  overflow-wrap: anywhere;
}

.advisory-card {
  border-left: 3px solid var(--alert);
}

.intel-card {
  border-left: 3px solid var(--green);
}

.large-card {
  padding: 22px;
}

.tag-row,
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.intel-tag {
  display: inline-flex;
  position: relative;
  padding: 7px 10px 7px 30px;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-card);
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}

.copy-button.is-copied {
  background: var(--severity-low-bg);
  color: var(--severity-low-ink);
  border-color: rgba(88, 247, 191, 0.28);
}

.copy-button-inline {
  padding: 5px 9px;
  font-size: 0.72rem;
}

.soft-tag {
  background: var(--surface-subtle);
  color: var(--muted-strong);
  border-color: var(--line);
}

.ancillary-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.tab-button,
.tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-card);
  color: var(--muted-strong);
  padding: 10px 14px 10px 34px;
  text-decoration: none;
  cursor: pointer;
}

.tab-button.is-active,
.tab-link.is-active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(77, 215, 255, 0.12), rgba(77, 215, 255, 0.03));
  color: var(--ink);
  border-color: var(--tag-border);
}

.tab-panel {
  display: none;
}

.filter-chip-row,
.active-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.active-filter-row {
  margin-top: 18px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 10px 12px 10px 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.filter-chip strong {
  color: var(--accent-dark);
}

.filter-chip.is-active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(77, 215, 255, 0.12), rgba(77, 215, 255, 0.03));
  border-color: var(--tag-border);
}

.tab-panel.is-active {
  display: block;
}

.report-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}

.report-day-stack {
  display: grid;
  gap: 22px;
}

.report-day-group {
  display: grid;
  gap: 14px;
}

.report-day-group > summary {
  list-style: none;
}

.report-day-group > summary::-webkit-details-marker {
  display: none;
}

.report-day-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.report-day-header:hover,
.report-day-header:focus-visible {
  border-color: var(--accent-soft);
  background: color-mix(in srgb, var(--surface-subtle) 86%, var(--accent-soft) 14%);
}

.report-day-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.report-day-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.report-day-arrow {
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 180ms ease;
  flex: 0 0 auto;
  margin-top: -2px;
}

.report-day-group[open] .report-day-arrow {
  transform: rotate(225deg);
}

.report-day-label {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.report-day-count {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--tag-border);
  background: var(--tag-bg);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  align-items: flex-start;
}

.card-actions > *,
.detail-link-grid > * {
  max-width: 100%;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
  margin-bottom: 24px;
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 32px;
  margin-bottom: 24px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(39, 211, 255, 0.16), transparent 34%),
    radial-gradient(circle at left bottom, rgba(255, 180, 92, 0.09), transparent 30%),
    linear-gradient(135deg, var(--chrome-strong), var(--chrome-soft));
  box-shadow: var(--shadow);
}

.detail-hero-copy h1 {
  max-width: 16ch;
}

.detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 24px;
}

.detail-main-column,
.detail-side-column,
.stack-list {
  display: grid;
  gap: 24px;
}

.detail-box {
  display: grid;
  gap: 14px;
}

.detail-box-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.detail-box-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.detail-box-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.copy-action-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.detail-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-start;
}

.nested-box {
  margin-top: 0;
}

.mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.mapping-visual-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin: 18px 0 22px;
}

.tactic-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.compact-tactic-matrix {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.tactic-chip {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(39, 211, 255, 0.2), rgba(39, 211, 255, 0.04) var(--chip-width), transparent var(--chip-width)),
    var(--surface-subtle);
  color: inherit;
  text-decoration: none;
}

.tactic-chip span {
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.3;
}

.tactic-chip strong {
  font-size: 1.4rem;
  color: var(--ink);
}

.confidence-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.confidence-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.confidence-high {
  color: var(--severity-high-ink);
  background: var(--severity-high-bg);
}

.confidence-medium {
  color: var(--severity-medium-ink);
  background: var(--severity-medium-bg);
}

.confidence-low {
  color: var(--severity-low-ink);
  background: var(--severity-low-bg);
}

.cis-chart .bar-label {
  max-width: 30ch;
}

.cis-fill {
  background: linear-gradient(90deg, var(--amber), var(--accent));
}

.micro-tactic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.micro-tactic {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(88, 247, 191, 0.08);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.mapping-card,
.support-card {
  min-height: 100%;
}

.mapping-section {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mapping-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.severity-pill,
.confidence-pill,
.importance-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.importance-urgent {
  background: var(--severity-high-bg);
  color: var(--severity-high-ink);
}

.importance-elevated {
  background: var(--severity-medium-bg);
  color: var(--severity-medium-ink);
}

.importance-watch {
  background: var(--severity-low-bg);
  color: var(--severity-low-ink);
}

.severity-critical,
.severity-high {
  background: var(--severity-high-bg);
  color: var(--severity-high-ink);
}

.severity-medium {
  background: var(--severity-medium-bg);
  color: var(--severity-medium-ink);
}

.severity-low,
.severity-unknown,
.confidence-pill {
  background: var(--severity-low-bg);
  color: var(--severity-low-ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-active {
  background: var(--severity-low-bg);
  color: var(--severity-low-ink);
}

.status-error {
  background: var(--severity-high-bg);
  color: var(--severity-high-ink);
}

.status-gap {
  background: rgba(255, 193, 92, 0.16);
  color: #b88216;
  border: 1px solid rgba(255, 193, 92, 0.35);
}

.status-disabled {
  background: rgba(133, 147, 168, 0.14);
  color: var(--muted-strong);
  border: 1px solid rgba(133, 147, 168, 0.22);
}

.status-quiet {
  background: var(--surface-soft);
  color: var(--muted-strong);
  border: 1px solid var(--line);
}

.analyst-box {
  border-color: rgba(255, 180, 92, 0.25);
}

.detail-summary {
  font-size: 1.05rem;
  line-height: 1.7;
}

.importance-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.importance-panel strong {
  color: var(--ink);
}

.importance-panel.importance-urgent {
  border-color: rgba(255, 132, 122, 0.38);
}

.importance-panel.importance-elevated {
  border-color: rgba(255, 194, 92, 0.3);
}

.importance-panel.importance-watch {
  border-color: rgba(88, 247, 191, 0.26);
}

.importance-panel-hero {
  margin-bottom: 24px;
}

.finding-signal-row {
  margin-top: 2px;
}

.detail-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.detail-note {
  color: var(--muted-strong);
  margin-top: 10px;
}

.select-input {
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink);
}

.saved-report-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin-top: 14px;
}

.saved-report-form .field {
  flex: 1 1 340px;
}

.saved-report-form .primary-button {
  min-width: 160px;
}

.report-jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.report-jump-chip {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  color: inherit;
  text-decoration: none;
}

.report-jump-chip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.report-jump-chip strong {
  font-size: 0.98rem;
}

.report-jump-chip.is-active {
  background: var(--accent-soft);
  border-color: var(--tag-border);
}

.finding-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.finding-card p,
.finding-card h3 {
  margin: 8px 0;
}

.finding-card h3 {
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.finding-card p {
  color: var(--muted-strong);
  line-height: 1.58;
}

.finding-card-static {
  cursor: default;
}

.finding-card-static:hover {
  transform: none;
}

.finding-vendor {
  display: inline-block;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 100%;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.finding-vendor a {
  color: inherit;
  text-decoration: none;
}

.history-panel {
  margin-top: 0;
}

.report-tools-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}

.report-filter-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.analysis-drawer {
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
}

.analysis-drawer > summary {
  list-style: none;
}

.analysis-drawer > summary::-webkit-details-marker {
  display: none;
}

.analysis-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 88%, var(--accent-soft) 12%), var(--panel));
}

.analysis-summary:hover,
.analysis-summary:focus-visible {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 82%, var(--accent-soft) 18%), var(--panel));
}

.analysis-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.analysis-summary-copy {
  display: grid;
  gap: 8px;
}

.analysis-summary-copy,
.analysis-summary-meta {
  min-width: 0;
}

.analysis-summary-copy h2 {
  margin: 0;
}

.analysis-summary-copy .field-hint {
  margin: 0;
}

.analysis-summary-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.analysis-summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--tag-border);
  background: var(--tag-bg);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.analysis-summary-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.analysis-summary-toggle-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 180ms ease;
  margin-top: -3px;
}

.analysis-drawer[open] .analysis-summary-toggle-label::before {
  transform: rotate(225deg);
}

.analysis-drawer[open] .analysis-summary-toggle-label {
  color: var(--accent-dark);
}

.analysis-drawer-body {
  padding: 0 20px 20px;
}

.analysis-grid {
  margin-top: 0;
}

.analysis-drawer-body > .chart-grid,
.analysis-drawer-body > .panel {
  margin-top: 16px;
}

.nested-panel {
  padding: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
}

.flash-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 9, 16, 0.68);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.loading-overlay[hidden] {
  display: none !important;
}

body[data-theme="light"] .loading-overlay {
  background: rgba(243, 239, 228, 0.7);
}

.loading-dialog {
  width: min(420px, 100%);
  padding: 28px 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--chrome), var(--chrome-soft));
  box-shadow: var(--shadow);
  text-align: center;
}

.loading-graphic {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.loading-radar-ring,
.loading-core,
.loading-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.loading-radar-ring {
  border: 1px solid rgba(39, 211, 255, 0.18);
  background: radial-gradient(circle at center, rgba(39, 211, 255, 0.05), transparent 68%);
}

.loading-radar-ring-outer {
  animation: pulse-ring 2.8s ease-in-out infinite;
}

.loading-radar-ring-mid {
  inset: 16px;
  animation: pulse-ring 2.8s ease-in-out infinite 0.25s;
}

.loading-radar-ring-inner {
  inset: 34px;
  animation: pulse-ring 2.8s ease-in-out infinite 0.5s;
}

.loading-sweep {
  inset: 8px;
  background: conic-gradient(from 0deg, rgba(39, 211, 255, 0.4), rgba(39, 211, 255, 0.04) 18%, transparent 28%);
  mask: radial-gradient(circle at center, transparent 0 34px, black 35px);
  animation: rotate-sweep 2.2s linear infinite;
}

.loading-core {
  inset: 42px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(88, 247, 191, 0.24), rgba(39, 211, 255, 0.08) 55%, rgba(4, 9, 16, 0.75));
  border: 1px solid rgba(39, 211, 255, 0.22);
  box-shadow: inset 0 0 24px rgba(39, 211, 255, 0.12);
}

.loading-dialog strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
}

.loading-dialog p {
  margin: 0;
  color: var(--muted-strong);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.loading-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255, 180, 92, 0.8);
}

.loading-node-1 {
  top: 20px;
  right: 38px;
  animation: node-blink 1.4s ease-in-out infinite;
}

.loading-node-2 {
  bottom: 32px;
  left: 24px;
  animation: node-blink 1.4s ease-in-out infinite 0.3s;
}

.loading-node-3 {
  bottom: 18px;
  right: 30px;
  animation: node-blink 1.4s ease-in-out infinite 0.6s;
}

.loading-progress {
  position: relative;
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.loading-progress-bar {
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 36%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--accent), var(--amber));
  animation: loading-progress-slide 1.8s ease-in-out infinite;
}

body[data-theme="light"] .loading-radar-ring {
  border-color: rgba(11, 127, 176, 0.18);
  background: radial-gradient(circle at center, rgba(11, 127, 176, 0.05), transparent 68%);
}

body[data-theme="light"] .loading-core {
  background:
    radial-gradient(circle at center, rgba(88, 247, 191, 0.18), rgba(11, 127, 176, 0.08) 55%, rgba(255, 255, 255, 0.92));
}

body[data-theme="light"] .loading-progress {
  background: rgba(11, 127, 176, 0.06);
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.flash-success {
  background: var(--success-bg);
}

.flash-error {
  background: var(--error-bg);
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 28px;
  margin-bottom: 24px;
}

a {
  color: var(--accent-dark);
}

.feed-hero-shell {
  gap: 16px;
}

.feed-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.feed-control-panel {
  margin-bottom: 16px;
}

.dashboard-top-rail {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at top right, rgba(39, 211, 255, 0.16), transparent 30%),
    radial-gradient(circle at left bottom, rgba(255, 180, 92, 0.08), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--chrome-strong) 92%, var(--panel) 8%), var(--chrome-soft));
}

.dashboard-top-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  flex-wrap: wrap;
}

.dashboard-top-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.dashboard-top-copy h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.dashboard-top-actions {
  justify-content: flex-end;
}

.dashboard-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-kpi-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  align-content: start;
}

.dashboard-kpi-card small,
.dashboard-kpi-card em {
  display: block;
  font-style: normal;
  color: var(--muted-strong);
  line-height: 1.35;
}

.dashboard-kpi-card em {
  font-size: 0.74rem;
}

.dashboard-kpi-advisory strong {
  color: rgba(96, 170, 255, 0.98);
}

.dashboard-kpi-news strong {
  color: var(--green);
}

.dashboard-kpi-critical strong {
  color: var(--alert);
}

.dashboard-kpi-high strong {
  color: var(--amber);
}

.dashboard-kpi-watch strong {
  color: var(--accent);
}

.top-filter-rail {
  display: grid;
  gap: 16px;
}

.top-filter-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.compact-window-form {
  justify-content: flex-end;
}

.saved-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.rolling-window-row,
.lane-switch-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-window-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.compact-field {
  min-width: 160px;
}

.compact-field .select-input {
  min-width: 0;
  width: 100%;
}

.feed-control-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feed-filter-form {
  gap: 18px;
}

.primary-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: end;
}

.primary-filter-actions {
  justify-content: flex-end;
}

.advanced-filter-drawer {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-subtle);
  overflow: hidden;
}

.advanced-filter-drawer > summary {
  list-style: none;
}

.advanced-filter-drawer > summary::-webkit-details-marker {
  display: none;
}

.advanced-filter-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
}

.advanced-filter-summary h3 {
  margin: 0;
  font-size: 1rem;
}

.advanced-filter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.advanced-filter-body {
  padding: 0 18px 18px;
}

.vendor-grid-compact {
  max-height: 190px;
  overflow: auto;
  padding-right: 4px;
}

.severity-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.severity-filter-chip strong {
  color: inherit;
}

.view-switch-row {
  justify-content: flex-end;
}

.header-actions {
  justify-content: flex-end;
}

.finding-card-headline-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  flex-wrap: wrap;
}

.compact-tag-row {
  margin-top: 4px;
}

.detail-hero-split {
  align-items: stretch;
}

.detail-hero-side {
  min-width: min(320px, 100%);
  max-width: 360px;
}

.detail-hero-summary-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: var(--surface-card);
}

.detail-mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-mini-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted-strong);
}

.sticky-action-bar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, var(--chrome), var(--chrome-soft));
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.detail-tab-shell {
  display: grid;
  gap: 18px;
}

.detail-tab-row {
  margin: 0;
}

.compact-stat-grid {
  margin-bottom: 0;
}

.accordion-panel {
  padding: 0;
  overflow: hidden;
}

.accordion-panel > summary {
  list-style: none;
}

.accordion-panel > summary::-webkit-details-marker {
  display: none;
}

.accordion-summary {
  cursor: pointer;
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  background: var(--surface-card);
}

.accordion-summary h2 {
  margin: 0;
  font-size: 1.12rem;
}

.accordion-summary:hover,
.accordion-summary:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(77, 215, 255, 0.12), rgba(77, 215, 255, 0.03));
}

.accordion-body {
  padding: 0 20px 20px;
}

.related-scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 360px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.related-scroll-card {
  min-height: 100%;
}

.mini-field {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.mini-field span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.mini-field input,
.mini-field select {
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink);
}

.graph-panel {
  margin-bottom: 18px;
}

.graph-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.graph-toolbar-stack {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.graph-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.graph-kind-chip {
  padding-left: 16px;
  gap: 10px;
}

.graph-kind-chip::before {
  display: none;
}

.graph-kind-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 1.5px solid currentColor;
  flex: 0 0 auto;
}

.graph-kind-icon-vendor {
  border-radius: 50%;
}

.graph-kind-icon-product {
  border-radius: 4px;
}

.graph-kind-icon-advisory {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid currentColor;
  border-top: 0;
  border-radius: 0;
}

.graph-kind-icon-cve {
  transform: rotate(45deg);
  border-radius: 2px;
}

.graph-kind-icon-article {
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  border-radius: 0;
}

.graph-kind-icon-summary {
  width: 16px;
  border-radius: 999px;
  border-style: dashed;
}

.graph-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.graph-stage-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 20% 20%, rgba(77, 215, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  min-height: 560px;
  padding: 16px;
}

.graph-stage-shell::before,
.graph-stage-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(26px);
  opacity: 0.26;
  z-index: 0;
}

.graph-stage-shell::before {
  top: -64px;
  right: -54px;
  background: radial-gradient(circle, rgba(77, 215, 255, 0.22), transparent 70%);
  animation: graph-orb-drift 18s ease-in-out infinite;
}

.graph-stage-shell::after {
  left: -70px;
  bottom: -88px;
  background: radial-gradient(circle, rgba(255, 180, 92, 0.14), transparent 72%);
  animation: graph-orb-drift 22s ease-in-out infinite reverse;
}

.graph-stage-shell > * {
  position: relative;
  z-index: 1;
}

.graph-status,
.graph-empty {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--muted-strong);
  z-index: 2;
}

.graph-canvas {
  width: 100%;
  height: 520px;
  display: block;
  cursor: grab;
  outline: none;
}

.graph-canvas.is-dragging {
  cursor: grabbing;
}

.graph-edge {
  stroke: rgba(173, 209, 241, 0.2);
  stroke-linecap: round;
  stroke-dasharray: 10 14;
  animation: graph-edge-flow 24s linear infinite;
  animation-delay: var(--graph-edge-delay, 0s);
}

.graph-node {
  text-decoration: none;
  outline: none;
}

.graph-node-group {
  isolation: isolate;
}

.graph-node-body {
  transform-box: fill-box;
  transform-origin: center;
  animation: graph-node-drift var(--graph-node-duration, 6.8s) ease-in-out infinite;
  animation-delay: var(--graph-node-delay, 0s);
}

.graph-node-halo {
  fill: transparent;
  stroke: rgba(77, 215, 255, 0.18);
  stroke-width: 1.2;
  opacity: 0.32;
  transform-origin: center;
  transform-box: fill-box;
  animation: graph-node-halo var(--graph-node-duration, 6.8s) ease-in-out infinite;
  animation-delay: var(--graph-node-delay, 0s);
}

.graph-node-halo-vendor {
  stroke: rgba(77, 215, 255, 0.28);
}

.graph-node-halo-product {
  stroke: rgba(105, 246, 196, 0.24);
}

.graph-node-halo-advisory {
  stroke: rgba(96, 170, 255, 0.24);
}

.graph-node-halo-cve {
  stroke: rgba(255, 179, 93, 0.3);
}

.graph-node-halo-article {
  stroke: rgba(196, 206, 222, 0.18);
}

.graph-node-halo-summary {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-dasharray: 4 5;
}

.graph-node-shape {
  fill: rgba(255, 255, 255, 0.1);
  stroke: rgba(255, 255, 255, 0.26);
  stroke-width: 1.5;
  transition: transform 180ms ease, filter 180ms ease, stroke 180ms ease, opacity 180ms ease;
  animation: graph-node-breathe var(--graph-node-duration, 6.8s) ease-in-out infinite;
  animation-delay: var(--graph-node-delay, 0s);
  transform-origin: center;
  transform-box: fill-box;
}

.graph-node-vendor .graph-node-shape {
  fill: rgba(77, 215, 255, 0.16);
  stroke: rgba(77, 215, 255, 0.7);
}

.graph-node-product .graph-node-shape {
  fill: rgba(105, 246, 196, 0.15);
  stroke: rgba(105, 246, 196, 0.64);
}

.graph-node-cve .graph-node-shape {
  fill: rgba(255, 179, 93, 0.14);
  stroke: rgba(255, 179, 93, 0.66);
}

.graph-node-advisory .graph-node-shape {
  fill: rgba(96, 170, 255, 0.16);
  stroke: rgba(96, 170, 255, 0.72);
}

.graph-node-article .graph-node-shape {
  fill: rgba(196, 206, 222, 0.12);
  stroke: rgba(196, 206, 222, 0.45);
}

.graph-node-summary .graph-node-shape {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-dasharray: 3 5;
}

.graph-node.is-selected .graph-node-shape,
.graph-node:hover .graph-node-shape,
.graph-node:focus-visible .graph-node-shape {
  filter: drop-shadow(0 0 16px rgba(77, 215, 255, 0.28));
  stroke: var(--ink);
}

.graph-node.is-search-hit .graph-node-shape {
  stroke: var(--accent);
  filter: drop-shadow(0 0 16px rgba(77, 215, 255, 0.35));
}

.graph-node.is-related .graph-node-shape {
  filter: drop-shadow(0 0 14px rgba(77, 215, 255, 0.18));
}

.graph-node.is-dimmed .graph-node-shape {
  opacity: 0.24;
  filter: none;
}

.graph-node-glyph {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  fill: var(--ink);
  pointer-events: none;
  animation: graph-glyph-glow var(--graph-node-duration, 6.8s) ease-in-out infinite;
  animation-delay: var(--graph-node-delay, 0s);
}

.graph-node-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  fill: var(--ink);
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease;
}

.graph-node.is-selected .graph-node-label,
.graph-node.is-related .graph-node-label,
.graph-node.is-search-hit .graph-node-label,
.graph-node:hover .graph-node-label,
.graph-node:focus-visible .graph-node-label,
.graph-show-all-labels .graph-node-label {
  opacity: 1;
}

.graph-node.is-dimmed .graph-node-label {
  opacity: 0;
}

.graph-canvas.is-dragging .graph-node-body,
.graph-canvas.is-dragging .graph-node-halo,
.graph-canvas.is-dragging .graph-node-shape,
.graph-canvas.is-dragging .graph-node-glyph,
.graph-canvas.is-node-dragging .graph-node-body,
.graph-canvas.is-node-dragging .graph-node-halo,
.graph-canvas.is-node-dragging .graph-node-shape,
.graph-canvas.is-node-dragging .graph-node-glyph {
  animation-play-state: paused;
}

.graph-summary-line {
  margin: 0;
  color: var(--muted-strong);
}

.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.graph-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-card);
  color: var(--muted-strong);
  font-weight: 700;
}

.graph-legend-chip::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.graph-legend-vendor::before {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--accent);
}

.graph-legend-product::before {
  background: color-mix(in srgb, var(--green) 22%, transparent);
  color: var(--green);
  border-radius: 4px;
}

.graph-legend-cve::before {
  background: color-mix(in srgb, var(--amber) 18%, transparent);
  color: var(--amber);
  border-radius: 2px;
  transform: rotate(45deg);
}

.graph-legend-advisory::before {
  background: rgba(96, 170, 255, 0.22);
  color: rgba(96, 170, 255, 0.92);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 0;
}

.graph-legend-article::before {
  background: rgba(196, 206, 222, 0.14);
  color: rgba(196, 206, 222, 0.82);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  border-radius: 0;
}

.graph-legend-summary::before {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.38);
  width: 16px;
  border-radius: 999px;
  border-style: dashed;
}

.graph-tooltip {
  position: absolute;
  max-width: 260px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 15, 24, 0.94);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 4;
}

.graph-tooltip strong,
.graph-tooltip span,
.graph-tooltip p {
  display: block;
}

.graph-tooltip span {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  margin-top: 4px;
}

.graph-tooltip p {
  margin: 8px 0 0;
  color: var(--muted-strong);
  font-size: 0.85rem;
  line-height: 1.45;
}

.graph-edge.is-related {
  stroke: rgba(96, 170, 255, 0.52);
  animation-duration: 14s;
}

.graph-edge.is-dimmed {
  opacity: 0.14;
}

.graph-inspector {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: var(--surface-card);
}

.graph-inspector h3 {
  margin: 0;
}

.graph-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.graph-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.graph-meta dt {
  color: var(--muted);
  font-weight: 700;
}

.graph-meta dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@keyframes rotate-sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes node-blink {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes loading-progress-slide {
  0% {
    transform: translateX(-10%);
  }
  50% {
    transform: translateX(165%);
  }
  100% {
    transform: translateX(-10%);
  }
}

@keyframes graph-orb-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate3d(18px, 10px, 0) scale(1.08);
    opacity: 0.3;
  }
}

@keyframes graph-node-halo {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.36;
    transform: scale(1.08);
  }
}

@keyframes graph-node-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(1.5px, -1px, 0);
  }
  50% {
    transform: translate3d(0, -2px, 0);
  }
  75% {
    transform: translate3d(-1.5px, 1px, 0);
  }
}

@keyframes graph-node-breathe {
  0%,
  100% {
    opacity: 0.94;
  }
  50% {
    opacity: 1;
  }
}

@keyframes graph-glyph-glow {
  0%,
  100% {
    opacity: 0.92;
  }
  50% {
    opacity: 1;
  }
}

@keyframes graph-edge-flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .graph-stage-shell::before,
  .graph-stage-shell::after,
  .graph-edge,
  .graph-node-body,
  .graph-node-halo,
  .graph-node-shape,
  .graph-node-glyph {
    animation: none !important;
  }
}

a:hover,
a:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible,
.topnav a:hover,
.topnav a:focus-visible,
.nav-button:hover,
.nav-button:focus-visible,
table a:hover,
table a:focus-visible {
  color: var(--accent);
}

.report-findings {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.finding-card[data-list-card] {
  outline: none;
}

.finding-card[data-list-card]:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow);
}

.finding-card-type-advisory {
  border-left: 3px solid rgba(96, 170, 255, 0.94);
}

.finding-card-type-news {
  border-left: 3px solid var(--green);
}

.finding-card-type-intel {
  border-left: 3px solid var(--amber);
}

.finding-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-card);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.finding-type-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.finding-type-chip-advisory {
  color: rgba(96, 170, 255, 0.95);
}

.finding-type-chip-news {
  color: var(--green);
}

.finding-type-chip-intel {
  color: var(--amber);
}

.finding-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  flex-wrap: wrap;
}

.finding-card-top > * {
  min-width: 0;
}

.finding-card-top small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.error-list {
  margin: 0;
  padding-left: 18px;
}

body[data-theme="light"] .warning-box {
  background: rgba(255, 177, 80, 0.16);
}

@media (max-width: 920px) {
  .hero,
  .dashboard-grid,
  .chart-grid,
  .kpi-grid,
  .report-summary-grid,
  .report-tools-grid,
  .report-header,
  .topbar,
  .detail-layout,
  .detail-hero,
  .graph-workspace {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar,
  .report-header {
    align-items: start;
  }

  .topbar-actions,
  .theme-switch-wrap,
  .lane-switch-row,
  .rolling-window-row,
  .graph-toolbar,
  .dashboard-top-actions,
  .saved-view-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-kpi-strip,
  .primary-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand-logo {
    width: min(100%, 260px);
  }

  h1 {
    max-width: unset;
  }

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

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

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

  .donut-panel {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .analysis-summary {
    flex-direction: column;
    align-items: start;
  }

  .analysis-summary-meta {
    justify-content: flex-start;
  }

  .advanced-filter-summary {
    flex-direction: column;
    align-items: start;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .finding-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-day-count {
    margin-left: 23px;
  }

  .report-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .detail-hero-side {
    max-width: none;
  }

  .sticky-action-bar {
    position: static;
  }

  .graph-stage-shell {
    min-height: 500px;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    display: none;
  }

  .brand-mark {
    display: block;
  }

  .brand-name {
    display: block;
  }

  .hero-metrics,
  .detail-stat-grid,
  .dashboard-kpi-strip,
  .primary-filter-grid {
    grid-template-columns: 1fr;
  }

  .analysis-drawer-body {
    padding: 0 16px 16px;
  }

  .topnav {
    gap: 12px;
    justify-content: flex-start;
  }

  .topbar-actions {
    gap: 12px;
  }

  .theme-switch-wrap {
    padding-left: 0;
    border-left: 0;
  }

  .report-tools-grid {
    gap: 14px;
  }

  .panel,
  .compact-panel,
  .nested-panel,
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .feed-hero-metrics,
  .graph-toolbar,
  .graph-toolbar-stack,
  .related-scroll-row {
    grid-template-columns: 1fr;
  }

  .graph-toolbar {
    display: grid;
  }

  .mini-field {
    min-width: 0;
  }

  .related-scroll-row {
    grid-auto-columns: minmax(240px, 86vw);
  }

  .graph-stage-shell {
    padding: 12px;
  }

  .graph-canvas {
    height: 420px;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
