/* ═══════════════════════════════════════════════════════════
   VOID LATTICE — Threat Command Interface
   Bento grid · Linear surfaces · HUD telemetry aesthetic
   ═══════════════════════════════════════════════════════════ */

:root {
  --void: #010102;
  --surface-0: #08090c;
  --surface-1: #0c0d12;
  --surface-2: #11131a;
  --surface-3: #161922;
  --surface-lift: #1c1f2a;

  --accent: #5e6ad2;
  --accent-bright: #7c85ff;
  --accent-glow: rgba(94, 106, 210, 0.35);
  --signal: #ff2d55;
  --mint: #3ddbd9;
  --violet: #c084fc;

  --primary: var(--accent);
  --primary-hover: var(--accent-bright);
  --primary-subtle: rgba(94, 106, 210, 0.12);
  --primary-glow: var(--accent-glow);
  --accent-warm: var(--violet);
  --accent-subtle: rgba(192, 132, 252, 0.1);

  --success: #34d399;
  --success-muted: #059669;
  --warning: #fbbf24;
  --warning-muted: #d97706;
  --danger: #ff2d55;
  --danger-deep: #e11d48;

  --sev-critical: #ff2d55;
  --sev-critical-bg: rgba(255, 45, 85, 0.1);
  --sev-high: #ff8a3d;
  --sev-high-bg: rgba(255, 138, 61, 0.1);
  --sev-medium: #ffd60a;
  --sev-medium-bg: rgba(255, 214, 10, 0.08);
  --sev-low: #30d158;
  --sev-low-bg: rgba(48, 209, 88, 0.1);
  --sev-info: #8b8d98;
  --sev-unknown: #5c5e6a;

  --text-primary: #ececef;
  --text-secondary: #a0a2ae;
  --text-muted: #6b6d78;
  --text-dim: #454652;

  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.1);
  --border-subtle: var(--hairline);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: var(--hairline-strong);
  --border-focus: rgba(94, 106, 210, 0.55);
  --glass: rgba(12, 13, 18, 0.85);
  --glass-hover: rgba(22, 25, 34, 0.95);
  --glass-border: var(--hairline);

  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --gradient-brand: linear-gradient(135deg, #5e6ad2 0%, #3ddbd9 50%, #c084fc 100%);
  --gradient-brand-soft: linear-gradient(145deg, rgba(94, 106, 210, 0.12) 0%, rgba(61, 219, 217, 0.06) 100%);
  --gradient-success: linear-gradient(90deg, #30d158, #059669);
  --gradient-warning: linear-gradient(90deg, #ffd60a, #d97706);
  --gradient-danger: linear-gradient(90deg, #ff2d55, #e11d48);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 22px;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 380ms;
}

* { box-sizing: border-box; }

html, body {
  background: var(--void);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Ambient environment */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 15% 10%, rgba(94, 106, 210, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 85% 20%, rgba(61, 219, 217, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 45% 30% at 50% 100%, rgba(192, 132, 252, 0.06) 0%, transparent 45%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  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: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: drift 20s ease-in-out infinite alternate;
}

.ambient-glow--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: 10%;
  background: rgba(94, 106, 210, 0.15);
}

.ambient-glow--2 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  right: 5%;
  background: rgba(61, 219, 217, 0.1);
  animation-delay: -8s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 20px) scale(1.08); }
}

header, main, aside, div[x-cloak], .app-layout {
  position: relative;
  z-index: 1;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv01";
}

.font-mono { font-family: var(--font-mono); letter-spacing: -0.02em; }

/* ── Brand header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: rgba(1, 1, 2, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.875rem; }

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-mark-core {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(94, 106, 210, 0.2);
  animation: pulse-core 3s ease-in-out infinite;
}

@keyframes pulse-core {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.92); }
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}

.brand-title-accent { color: var(--accent-bright); }

.brand-meta {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin: 0.2rem 0 0;
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.panel-label {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.kpi-label {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.375rem;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kpi-sub {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.kpi-accent {
  font-family: var(--font-display);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sev-count {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ── Bento grid ── */
.dashboard { display: flex; flex-direction: column; gap: 2rem; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.625rem;
  grid-auto-rows: minmax(5.5rem, auto);
  align-items: stretch;
}

.bento { min-height: 0; }

.bento-hero { grid-column: span 5; grid-row: span 2; min-height: 11.5rem; }

/* Top-right KPI cluster: 2×2 severity grid + fix panel */
.bento-kpi-cluster {
  grid-column: span 7;
  grid-row: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  gap: 0.625rem;
  min-height: 11.5rem;
  max-height: 13rem;
}

.bento-sev-grid {
  grid-column: 1;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  min-height: 0;
}

.bento-sev {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0.75rem 0.875rem;
}

.bento-sev .sev-count { font-size: 1.375rem; }

.bento-fix {
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  height: 100%;
  padding: 0.75rem 0.875rem;
}

.bento-fix-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex: 1;
  min-height: 0;
}

.bento-fix-copy { min-width: 0; }

.bento-fix-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bento-donut { grid-column: span 3; }
.bento-risk { grid-column: span 3; }
.bento-spark { grid-column: span 6; }
.bento-components { grid-column: span 4; }
.bento-datasets { grid-column: span 4; }
.bento-cves { grid-column: span 4; }
.bento-licenses { grid-column: span 4; }
.bento-fixrate { grid-column: span 4; }

@media (max-width: 1280px) {
  .bento-hero { grid-column: span 6; }
  .bento-kpi-cluster { grid-column: span 6; }
  .bento-donut, .bento-risk { grid-column: span 3; }
  .bento-spark { grid-column: span 12; }
  .bento-components, .bento-datasets, .bento-cves,
  .bento-licenses, .bento-fixrate { grid-column: span 6; }
}

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-hero { grid-column: 1; grid-row: auto; min-height: 10rem; }
  .bento-kpi-cluster {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .bento-sev-grid {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(4.75rem, auto));
  }
  .bento-fix {
    grid-column: 1;
    grid-row: 2;
    min-height: 6.5rem;
  }
  .bento-sev, .bento-donut, .bento-risk, .bento-spark,
  .bento-components, .bento-datasets, .bento-cves,
  .bento-licenses, .bento-fixrate { grid-column: 1; }
}

.bento-inner { position: relative; height: 100%; }

.kpi-ring {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 5rem;
  height: 5rem;
}

.kpi-ring-svg { width: 100%; height: 100%; }

.kpi-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* HUD cards */
.hud-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 1rem 1.125rem;
  box-shadow: var(--shadow-sm), var(--shadow-md);
  transition: border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.hud-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.hud-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm), var(--shadow-lg);
}

.stat-card--hero {
  background: linear-gradient(145deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border-color: rgba(94, 106, 210, 0.2);
}

.hud-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.5;
  pointer-events: none;
}

.hud-corner--tl { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.hud-corner--br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.sev-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.8;
}

.sev-glow--critical { background: var(--sev-critical); box-shadow: 0 0 12px var(--sev-critical); }
.sev-glow--high { background: var(--sev-high); box-shadow: 0 0 12px var(--sev-high); }
.sev-glow--medium { background: var(--sev-medium); }
.sev-glow--low { background: var(--sev-low); box-shadow: 0 0 12px rgba(48, 209, 88, 0.4); }

.risk-orb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid var(--hairline-strong);
  background: var(--surface-2);
}

.risk-orb--critical { border-color: var(--sev-critical); box-shadow: 0 0 24px rgba(255, 45, 85, 0.25); }
.risk-orb--medium { border-color: var(--sev-medium); }
.risk-orb--low { border-color: var(--sev-low); box-shadow: 0 0 24px rgba(48, 209, 88, 0.15); }

.risk-orb-value { font-size: 1.25rem; font-weight: 700; }

.cve-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.cve-row:hover {
  background: var(--primary-subtle);
  border-color: rgba(94, 106, 210, 0.2);
}

.data-terminal { margin-top: 0.5rem; }

.data-table-wrap { border-radius: var(--radius-xl); }

.command-deck {
  position: relative;
  border-right: 1px solid var(--hairline);
  background: rgba(8, 9, 12, 0.92) !important;
}

.command-deck::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--mint), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  margin-bottom: 1.25rem;
}

.section-heading-icon {
  display: none;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
}

.card:not(.hud-card) {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 1rem 1.125rem;
  box-shadow: var(--shadow-sm), var(--shadow-md);
}

.card-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.875rem;
}

.stat-card { position: relative; overflow: hidden; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.text-sev-critical { color: var(--sev-critical); }
.text-sev-high { color: var(--sev-high); }
.text-sev-medium { color: var(--sev-medium); }
.text-sev-low { color: var(--sev-low); }

/* ── Buttons ── */
button {
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
  font-weight: 600;
  cursor: pointer;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 4px 16px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-bright);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 8px 24px var(--accent-glow);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--glass-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--primary-subtle);
  border-color: var(--border-focus);
  color: var(--primary);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.btn-icon:hover:not(:disabled) {
  background: var(--primary-subtle);
  border-color: var(--border-focus);
  color: var(--primary);
}

.link-accent {
  color: var(--accent-bright);
  font-weight: 600;
  transition: color var(--duration-fast) ease;
}

.link-accent:hover {
  color: var(--mint);
}

/* ── Form inputs — clear focus feedback (recognition over recall) ── */
.input-field,
input[type="text"],
input[type="number"],
input[type="search"],
select {
  background: rgba(6, 8, 15, 0.5);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  transition:
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    background var(--duration-fast) ease;
  width: 100%;
}

.input-field::placeholder,
input::placeholder {
  color: var(--text-dim);
}

.input-field:focus,
input:focus,
select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-subtle);
  background: rgba(6, 8, 15, 0.7);
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ── App shell — persistent filter sidebar ── */
.app-layout {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 4rem);
}

.filter-sidebar {
  flex-shrink: 0;
  width: 17rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 4.25rem;
  height: calc(100vh - 4.25rem);
  overflow: hidden;
  background: rgba(8, 9, 12, 0.94);
  border-right: 1px solid var(--hairline);
  z-index: 30;
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem 1rem 2rem;
}

@media (min-width: 640px) {
  .app-main {
    padding: 1.5rem 1.5rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .filter-sidebar { width: 19rem; }

  .app-main {
    padding: 1.5rem 2rem 2.5rem;
  }
}

@media (max-width: 1023px) {
  .app-layout {
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
    position: static;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border-default);
  }

  .filter-panel-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.875rem;
    padding: 0.875rem 1rem 1rem;
  }

  .filter-panel-header {
    padding: 1rem 1rem 0.75rem;
  }

  .filter-panel-footer {
    padding: 0.875rem 1rem 1rem;
  }
}

.filter-panel-header {
  flex-shrink: 0;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06) 0%, transparent 100%);
}

.filter-panel-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

.filter-panel-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.filter-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.875rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.filter-section {
  padding: 0.875rem;
  border-radius: var(--radius-lg);
  background: rgba(6, 8, 15, 0.45);
  border: 1px solid var(--border-subtle);
}

.filter-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.875rem;
}

.filter-section-title svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--primary);
  opacity: 0.85;
}

/* Search */
.search-field-wrap {
  position: relative;
}

.search-field-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--text-dim);
  pointer-events: none;
}

.search-field {
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
}

.search-field-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  font-size: 1.125rem;
  line-height: 1;
  padding: 0;
}

.search-field-clear:hover {
  background: rgba(244, 63, 94, 0.15);
  color: var(--sev-critical);
  transform: translateY(-50%);
}

.suggest-dropdown {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-fast) ease;
}

.suggest-item:last-child {
  border-bottom: none;
}

.suggest-item:hover,
.suggest-item[aria-selected="true"] {
  background: var(--primary-subtle);
}

/* Severity pills */
.severity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.severity-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(6, 8, 15, 0.5);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-align: left;
}

.severity-pill:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.severity-pill.is-active {
  box-shadow: var(--shadow-sm);
}

.severity-pill--critical.is-active {
  background: var(--sev-critical-bg);
  border-color: rgba(244, 63, 94, 0.45);
}

.severity-pill--high.is-active {
  background: var(--sev-high-bg);
  border-color: rgba(251, 146, 60, 0.45);
}

.severity-pill--medium.is-active {
  background: var(--sev-medium-bg);
  border-color: rgba(250, 204, 21, 0.35);
}

.severity-pill--low.is-active {
  background: var(--sev-low-bg);
  border-color: rgba(74, 222, 128, 0.35);
}

.severity-pill-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.severity-pill-count {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
}

/* Segmented control — fix status */
.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
  padding: 0.25rem;
  border-radius: var(--radius-lg);
  background: rgba(6, 8, 15, 0.6);
  border: 1px solid var(--border-subtle);
}

.segment-btn {
  padding: 0.625rem 0.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.segment-btn:hover {
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.08);
  transform: none;
}

.segment-btn.is-active {
  background: var(--gradient-brand);
  color: var(--bg-deep);
  box-shadow: var(--shadow-sm);
}

.segment-btn--success.is-active {
  background: var(--gradient-success);
}

.segment-btn--danger.is-active {
  background: var(--gradient-danger);
  color: white;
}

/* CVSS */
.cvss-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}

.cvss-preset {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.cvss-preset:hover {
  border-color: var(--border-focus);
  color: var(--primary);
}

.cvss-preset.is-active {
  background: var(--primary-subtle);
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--primary);
}

.cvss-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cvss-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 0.375rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.15);
  outline: none;
}

.cvss-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
  cursor: pointer;
}

.cvss-slider::-moz-range-thumb {
  width: 1.125rem;
  height: 1.125rem;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
  cursor: pointer;
}

.cvss-value {
  min-width: 2.5rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary);
}

/* Dataset select */
.select-field-wrap {
  position: relative;
}

.select-field-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-dim);
  pointer-events: none;
}

.select-field {
  appearance: none;
  padding-right: 2.5rem !important;
  cursor: pointer;
}

.select-field option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Filter footer */
.filter-panel-footer {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-default);
  background: rgba(6, 8, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filter-result-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--primary-subtle);
  border: 1px solid rgba(34, 211, 238, 0.15);
}

.filter-result-count {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.filter-result-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-subtle);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--primary);
  transition: all var(--duration-fast) ease;
}

.filter-chip:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.35);
}

.filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.15);
  border: none;
  padding: 0;
  color: var(--primary);
  font-size: 0.625rem;
  line-height: 1;
}

.filter-chip-remove:hover {
  background: rgba(244, 63, 94, 0.2);
  color: var(--sev-critical);
  transform: none;
}

/* ── Badges — instant severity recognition ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-sm);
}

.badge-critical {
  background: linear-gradient(135deg, var(--sev-critical), var(--danger-deep));
  color: white;
}

.badge-high {
  background: linear-gradient(135deg, var(--sev-high), #ea580c);
  color: white;
}

.badge-medium {
  background: linear-gradient(135deg, var(--sev-medium), var(--warning-muted));
  color: #1a1a1a;
}

.badge-low {
  background: linear-gradient(135deg, var(--sev-low), var(--success-muted));
  color: #052e16;
}

.badge-info {
  background: linear-gradient(135deg, #64748b, #475569);
  color: white;
}

.badge-unknown {
  background: var(--glass);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
}

/* ── Progress bars — proportional encoding ── */
.bar {
  height: 0.375rem;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--gradient-brand);
  transition: width var(--duration-slow) var(--ease-out);
  position: relative;
}

.bar-fill--success { background: var(--gradient-success); }
.bar-fill--warning { background: var(--gradient-warning); }
.bar-fill--danger { background: var(--gradient-danger); }

.bar-fill--critical { background: linear-gradient(90deg, var(--sev-critical), var(--danger-deep)); }
.bar-fill--high { background: linear-gradient(90deg, var(--sev-high), #ea580c); }
.bar-fill--medium { background: linear-gradient(90deg, var(--sev-medium), var(--warning-muted)); }
.bar-fill--low { background: linear-gradient(90deg, var(--sev-low), var(--success-muted)); }

/* ── Table — scannable rows with severity cue ── */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

thead th {
  background: rgba(6, 8, 15, 0.6);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-default);
  padding: 0.875rem 1.25rem;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
}

tbody tr {
  transition: background var(--duration-fast) ease;
  border-bottom: 1px solid var(--border-subtle);
}

tbody tr:hover {
  background: rgba(34, 211, 238, 0.04);
}

tbody tr[data-severity="CRITICAL"] { border-left: 3px solid var(--sev-critical); }
tbody tr[data-severity="HIGH"] { border-left: 3px solid var(--sev-high); }
tbody tr[data-severity="MEDIUM"] { border-left: 3px solid var(--sev-medium); }
tbody tr[data-severity="LOW"] { border-left: 3px solid var(--sev-low); }

tbody td {
  padding: 0.875rem 1.25rem;
  vertical-align: middle;
}

tbody td svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ── Charts ── */
.donut-container svg,
.sparkline-container svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.sparkline-container {
  padding: 0.75rem;
  background: rgba(6, 8, 15, 0.4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.chart-bar-track {
  flex: 1;
  height: 0.375rem;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--gradient-brand);
  transition: width var(--duration-slow) var(--ease-out);
}

.chart-bar-fill--accent {
  background: linear-gradient(90deg, var(--accent-warm), var(--accent));
}

/* ── CVE list items — affordance through hover ── */
.list-item-interactive {
  padding: 0.875rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(6, 8, 15, 0.3);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.list-item-interactive:hover {
  background: var(--primary-subtle);
  border-color: rgba(34, 211, 238, 0.2);
  transform: translateX(2px);
}

/* ── Pagination ── */
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
  background: var(--glass);
  border: 1px solid var(--border-default);
}

/* ── Sidebar ── */
.mobile-sidebar-handle {
  background: var(--text-dim);
  opacity: 0.5;
  border-radius: 9999px;
  height: 4px;
  width: 40px;
  margin: 0 auto;
}

.sidebar-panel {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-default);
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.95) 60%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Risk meter ── */
.risk-meter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.risk-meter-cell {
  padding: 0.625rem;
  border-radius: var(--radius-md);
  background: rgba(6, 8, 15, 0.4);
  border: 1px solid var(--border-subtle);
}

.risk-meter-cell p:first-child {
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

/* ── Animations — progressive disclosure ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.animate-fade-in {
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.animate-slide-in {
  animation: slideInLeft var(--duration-normal) var(--ease-out) both;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-elevated);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ── Focus — accessibility first ── */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .card {
    padding: 1rem;
    border-radius: var(--radius-xl);
  }

  .stat-value {
    font-size: 1.75rem;
  }

  table.responsive {
    display: block;
    border: 0;
  }

  table.responsive thead {
    display: none;
  }

  table.responsive tbody {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  table.responsive tr {
    display: grid;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 0.875rem;
    background: rgba(6, 8, 15, 0.4);
  }

  table.responsive td {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.375rem;
    padding: 0.375rem 0;
    align-items: center;
  }

  table.responsive td svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
  }

  table.responsive td::before {
    content: attr(data-label);
    font-size: 0.6875rem;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
}

.compact-layout .grid { gap: 0.75rem; }
.compact-layout .card { padding: 1rem; }
.compact-table th,
.compact-table td {
  padding: 0.5rem !important;
  font-size: 0.875rem;
}

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

[x-cloak] {
  display: none !important;
}

/* ── Layout utilities (replaces Tailwind CDN for CSP) ── */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.w-full { width: 100%; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-48 { width: 12rem; }
.h-full { height: 100%; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.min-w-full { min-width: 100%; }
.max-w-md { max-width: 28rem; }
.max-h-48 { max-height: 12rem; }
.max-h-52 { max-height: 13rem; }
.shrink-0 { flex-shrink: 0; }
.mt-auto { margin-top: auto; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.p-0 { padding: 0; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.transform { transform: translateZ(0); }
.rotate-180 { transform: rotate(180deg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.\!w-auto { width: auto !important; }
.\!py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.\!px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.hover\:bg-cyan-500\/10:hover { background: rgba(6, 182, 212, 0.1); }
.icon-sm { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-xs { width: 0.75rem; height: 0.75rem; flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.min-h-0 { min-height: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.whitespace-nowrap { white-space: nowrap; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.pointer-events-none { pointer-events: none; }
.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;
}
.hidden { display: none !important; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-2 { padding-top: 0.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: 0.5rem; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.transition { transition-property: color, background-color, border-color, opacity, transform; transition-duration: 150ms; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

@media (min-width: 640px) {
  .sm\:hidden { display: none !important; }
  .sm\:inline-flex { display: inline-flex !important; }
  .sm\:flex { display: flex !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:items-center { align-items: center !important; }
  .sm\:justify-between { justify-content: space-between !important; }
  .sm\:gap-4 { gap: 1rem !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:col-span-1 { grid-column: span 1 / span 1 !important; }
  .sm\:text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:flex-row { flex-direction: row !important; }
  .md\:items-center { align-items: center !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .lg\:flex { display: flex !important; }
  .lg\:hidden { display: none !important; }
}

.load-error-banner {
  margin: 0 1rem 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md, 0.5rem);
  background: rgba(239, 68, 68, 0.08);
  color: var(--text, #e8eaed);
}

.load-error-title {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #f87171;
}

.load-error-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted, #9ca3af);
}
