/* AlphaRelay dashboard — components (global canvas + tokens: alpharelay-shell.css) */

@keyframes ar-dash-radar {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes ar-dash-enter-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ar-dash-timeline-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ar-dash-pulse-live {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(62, 142, 255, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(62, 142, 255, 0.12);
  }
}

@keyframes ar-hbar-fill {
  from {
    width: 0;
  }
  to {
    width: var(--ar-fill, 0%);
  }
}

/* FOUC guard also lives inline on dashboard/account (`html.ar-auth-shell-pending`) until external CSS loads. */
body.dashboard-pre-paint .dashboard-home {
  visibility: hidden;
}

body.dashboard-pre-paint::after {
  content: "Loading mission data…";
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font: 500 1rem/1.4 Inter, system-ui, sans-serif;
  color: #9eb6d0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(62, 142, 255, 0.14), transparent 52%),
    radial-gradient(circle at 100% 40%, rgba(40, 90, 160, 0.12), transparent 38%),
    var(--bg);
  pointer-events: none;
}

.dashboard-home {
  min-height: 100vh;
  padding: 0 clamp(16px, 3vw, 28px) 48px;
  font-family: var(--ar-font);
  color: var(--text);
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .ar-dash-mounted .mvp-home-grid > article,
  .ar-dash-mounted .mvp-home-command,
  .ar-dash-mounted .mvp-home-stats,
  .mvp-home-timeline-item--enter,
  .mvp-home-hbar-fill,
  .ar-dash-live-pill,
  .mvp-home-stat--live-slot.mvp-home-stat--has-live::after {
    animation: none !important;
  }

  .mvp-home-hbar-fill {
    width: var(--ar-fill, 0%) !important;
  }

  .mvp-home-timeline-item--enter {
    opacity: 1;
    transform: none;
  }
}

.mvp-home-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(20px, 2.2vw, 28px);
}

.mvp-home-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3vw, 36px) 0 4px;
  position: relative;
}

.mvp-home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(62, 142, 255, 0.45) 20%,
    rgba(120, 200, 255, 0.25) 50%,
    rgba(62, 142, 255, 0.35) 80%,
    transparent
  );
  opacity: 0.85;
  filter: blur(0.5px);
}

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

.mvp-home-brand {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  flex-wrap: wrap;
  min-width: 0;
}

.mvp-home-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mvp-home-logo {
  height: clamp(52px, 10vw, 80px);
  width: auto;
  max-width: min(280px, 72vw);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(0, 40, 90, 0.35));
}

.mvp-home-tagline {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.15;
}

.mvp-home-tagline-part {
  color: #f4f8ff;
}

.mvp-home-tagline-accent {
  color: #5cb8ff;
  text-shadow: 0 0 40px rgba(62, 142, 255, 0.35);
}

.mvp-home-hero-sub {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(154, 176, 200, 0.85);
  max-width: 52ch;
  line-height: 1.45;
}

.mvp-home-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(130, 190, 255, 0.38);
  background: linear-gradient(135deg, rgba(45, 120, 210, 0.95) 0%, rgba(22, 70, 140, 0.98) 55%, rgba(14, 52, 108, 1) 100%);
  color: #f6fbff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 12px 36px rgba(0, 30, 70, 0.45),
    0 0 28px rgba(62, 142, 255, 0.2);
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    border-color 0.2s ease,
    filter 0.2s ease;
}

.mvp-home-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 220, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 16px 44px rgba(0, 35, 85, 0.55),
    0 0 36px rgba(62, 142, 255, 0.28);
  filter: brightness(1.04);
}

.mvp-home-primary:active {
  transform: translateY(0);
}

.mvp-home-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mvp-home-primary-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-top: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
  margin-right: 2px;
  opacity: 0.9;
}

.mvp-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.mvp-home-account-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(12, 22, 36, 0.65);
  border: 1px solid var(--ar-edge-soft);
  backdrop-filter: blur(10px);
}

.mvp-home-text-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #a8c0dc;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mvp-home-text-link:hover {
  color: #eef4fc;
}

.mvp-home-text-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.mvp-home-sign-out {
  font-size: 0.82rem;
  opacity: 0.92;
}

.mvp-home-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mvp-home-stats-tier {
  display: grid;
  gap: 12px;
}

.mvp-home-stats-tier--primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mvp-home-stats-tier--secondary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1020px) {
  .mvp-home-stats-tier--secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mvp-home-stats-tier--primary {
    grid-template-columns: 1fr;
  }

  .mvp-home-stats-tier--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mvp-home-stat {
  position: relative;
  padding: 18px 18px 18px 20px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(22, 38, 58, 0.92) 0%, rgba(12, 22, 36, 0.88) 100%);
  border: 1px solid rgba(90, 130, 170, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 32px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    border-color 0.2s ease;
}

.mvp-home-stat::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--stat-edge, var(--ar-blue));
  box-shadow: 0 0 14px color-mix(in srgb, var(--stat-edge, var(--ar-blue)) 55%, transparent);
  pointer-events: none;
}

.mvp-home-stat--primary {
  padding-top: 20px;
  padding-bottom: 20px;
  min-height: 118px;
}

.mvp-home-stat--primary:nth-child(1) {
  --stat-edge: var(--ar-blue);
}

.mvp-home-stat--primary:nth-child(2) {
  --stat-edge: var(--ar-green);
}

.mvp-home-stat--live-slot {
  --stat-edge: var(--ar-purple);
}

.mvp-home-stat--secondary {
  padding: 14px 14px 14px 16px;
}

.mvp-home-stat--secondary:nth-child(1) {
  --stat-edge: #7da9ff;
}

.mvp-home-stat--secondary:nth-child(2) {
  --stat-edge: #6fd4b8;
}

.mvp-home-stat--secondary:nth-child(3) {
  --stat-edge: var(--ar-amber);
}

.mvp-home-stat--secondary:nth-child(4) {
  --stat-edge: #8eb8ff;
}

.mvp-home-stat--secondary:nth-child(5) {
  --stat-edge: #9fd4ff;
}

.mvp-home-stat:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(62, 142, 255, 0.08);
}

.mvp-home-stat--live-slot.mvp-home-stat--has-live {
  background: linear-gradient(155deg, rgba(32, 48, 86, 0.95) 0%, rgba(16, 28, 52, 0.92) 100%);
  --stat-edge: var(--ar-green);
}

.mvp-home-stat--live-slot.mvp-home-stat--has-live::after {
  animation: ar-dash-pulse-live 2.4s ease-in-out infinite;
}

.mvp-home-stat-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(154, 176, 200, 0.82);
}

.mvp-home-stat-value {
  margin: 8px 0 0;
  font-size: clamp(1.85rem, 3.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #f2f7ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.mvp-home-stat--secondary .mvp-home-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.mvp-home-stat-value.mvp-home-stat-compact {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0;
}

.mvp-home-stat--primary .mvp-home-stat-value.mvp-home-stat-compact {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

/* —— Surfaces (replaces generic .card for dashboard panels) —— */
.ar-dash-surface {
  position: relative;
  border-radius: 16px;
  padding: clamp(16px, 2vw, 20px);
  background: linear-gradient(165deg, rgba(20, 34, 52, 0.88) 0%, rgba(10, 18, 30, 0.92) 100%);
  border: 1px solid rgba(80, 120, 170, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 16px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    border-color 0.2s ease;
}

.ar-dash-surface:hover {
  border-color: rgba(100, 150, 210, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(62, 142, 255, 0.06);
}

.ar-dash-surface--live {
  background: linear-gradient(165deg, rgba(22, 40, 68, 0.92) 0%, rgba(10, 22, 40, 0.94) 100%);
}

.ar-dash-surface--live[data-ar-live="1"] {
  border-color: rgba(62, 180, 140, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 48px rgba(0, 30, 40, 0.35),
    0 0 32px rgba(62, 200, 150, 0.08);
}

/* Fills grid row beside Event load; inner viewport scrolls (min-height:0) instead of growing with every event. */
.ar-dash-surface--timeline {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ar-dash-surface--timeline .ar-dash-panel-head,
.ar-dash-surface--timeline .mvp-home-operator {
  flex-shrink: 0;
}

.ar-dash-surface--insight {
  background: linear-gradient(165deg, rgba(24, 32, 52, 0.9) 0%, rgba(12, 18, 34, 0.94) 100%);
}

.ar-dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.ar-dash-surface h2 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c5daf0;
}

.ar-dash-surface--live[data-ar-live="1"] h2 {
  color: #d8f4e8;
}

.ar-dash-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(154, 176, 200, 0.75);
  white-space: nowrap;
}

.ar-dash-eyebrow--live {
  color: rgba(120, 220, 180, 0.85);
}

.ar-dash-live-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0a1410;
  background: linear-gradient(90deg, #5ae0a8, #3ecf8e);
  box-shadow: 0 0 20px rgba(62, 207, 142, 0.35);
  animation: ar-dash-pulse-live 2.8s ease-in-out infinite;
}

.ar-dash-mounted .mvp-home-grid > article {
  opacity: 0;
  animation: ar-dash-enter-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ar-dash-mounted .mvp-home-grid > article:nth-child(1) {
  animation-delay: 0.04s;
}

.ar-dash-mounted .mvp-home-grid > article:nth-child(2) {
  animation-delay: 0.08s;
}

.ar-dash-mounted .mvp-home-grid > article:nth-child(3) {
  animation-delay: 0.11s;
}

.ar-dash-mounted .mvp-home-grid > article:nth-child(4) {
  animation-delay: 0.14s;
}

.ar-dash-mounted .mvp-home-grid > article:nth-child(5) {
  animation-delay: 0.17s;
}

.ar-dash-mounted .mvp-home-grid > article:nth-child(6) {
  animation-delay: 0.2s;
}

.ar-dash-mounted .mvp-home-grid > article:nth-child(7) {
  animation-delay: 0.23s;
}

.ar-dash-mounted .mvp-home-grid > article:nth-child(8) {
  animation-delay: 0.26s;
}

.ar-dash-mounted .mvp-home-grid > article:nth-child(9) {
  animation-delay: 0.29s;
}

.ar-dash-mounted .mvp-home-command {
  opacity: 0;
  animation: ar-dash-enter-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.02s forwards;
}

.ar-dash-mounted .mvp-home-stats {
  opacity: 0;
  animation: ar-dash-enter-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* —— Command search —— */
.mvp-home-search {
  margin: 0;
}

.mvp-home-command {
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(24, 42, 68, 0.95) 0%, rgba(10, 18, 32, 0.96) 100%);
  border: 1px solid rgba(100, 160, 230, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 56px rgba(0, 10, 30, 0.45),
    0 0 48px rgba(62, 142, 255, 0.1);
}

.mvp-home-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mvp-home-command-titles {
  flex: 1;
  min-width: 0;
}

.mvp-home-command-eyebrow {
  margin: 0 0 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(120, 170, 220, 0.75);
}

.mvp-home-command-title {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f0f6ff;
}

.mvp-home-command-sub {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  max-width: 62ch;
}

.mvp-home-command-meta {
  flex-shrink: 0;
}

.mvp-home-kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px 6px 8px;
  border-radius: 8px;
  font-family: var(--ar-font);
  font-size: 0.72rem;
  font-weight: 700;
  color: #c8daf0;
  background: rgba(8, 14, 24, 0.75);
  border: 1px solid rgba(100, 140, 190, 0.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.mvp-home-command-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}

.mvp-home-command-input-wrap {
  position: relative;
  flex: 1 1 420px;
  min-width: min(100%, 260px);
}

.mvp-home-command-input-glow {
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(62, 142, 255, 0.2), transparent 45%, rgba(180, 124, 255, 0.12));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.mvp-home-command-input-wrap:focus-within .mvp-home-command-input-glow {
  opacity: 1;
}

.mvp-home-search-input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(90, 130, 180, 0.35);
  background: rgba(6, 12, 22, 0.85);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.mvp-home-search-input::placeholder {
  color: rgba(127, 151, 178, 0.72);
  font-weight: 400;
}

.mvp-home-search-input:hover {
  border-color: rgba(120, 170, 220, 0.45);
}

.mvp-home-search-input:focus-visible {
  outline: none;
  border-color: rgba(100, 170, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(62, 142, 255, 0.25),
    0 12px 28px rgba(0, 20, 50, 0.35);
  background: rgba(8, 14, 26, 0.95);
}

.mvp-home-command-clear.ghost {
  align-self: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.mvp-home-search-chipbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.mvp-home-search-chip {
  padding: 7px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid rgba(100, 140, 190, 0.22) !important;
  background: rgba(12, 22, 36, 0.55) !important;
  color: #b9d4f0 !important;
  transition:
    transform 0.15s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.mvp-home-search-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 180, 255, 0.35) !important;
  background: rgba(20, 36, 58, 0.75) !important;
}

.mvp-home-search-chip.is-active {
  border-color: rgba(62, 142, 255, 0.55) !important;
  background: linear-gradient(135deg, rgba(40, 90, 160, 0.55), rgba(30, 60, 110, 0.65)) !important;
  color: #f0f7ff !important;
  box-shadow: 0 0 20px rgba(62, 142, 255, 0.18);
}

.mvp-home-search-summary {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.mvp-home-search-results {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-height: min(440px, 56vh);
  overflow: auto;
}

.mvp-home-search-results li {
  border-radius: 12px;
  border: 1px solid rgba(90, 130, 170, 0.16);
  background: linear-gradient(180deg, rgba(18, 32, 48, 0.95), rgba(10, 18, 30, 0.92));
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease;
}

.mvp-home-search-results li:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 170, 230, 0.28);
}

.mvp-home-search-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mvp-home-search-item-kind {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ec8ff;
}

.mvp-home-search-item-score {
  font-size: 0.68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.mvp-home-search-item-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #e4f0ff;
}

.mvp-home-search-item-snippet {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.mvp-home-search-item-meta {
  margin: 0;
  font-size: 0.74rem;
  color: #93b0ce;
}

.mvp-home-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mvp-home-search-actions .ghost {
  padding: 6px 11px;
  font-size: 0.76rem;
  border-radius: 8px;
}

.mvp-home-search mark {
  background: rgba(232, 168, 74, 0.22);
  color: #ffecc8;
  border-radius: 3px;
  padding: 0 2px;
}

.mvp-home-search-results .muted,
.mvp-home-search-empty {
  padding: 18px 14px;
  text-align: center;
  font-size: 0.88rem;
  border-radius: 12px;
  border: 1px dashed rgba(100, 140, 180, 0.22);
  background: rgba(8, 14, 24, 0.45);
}

.mvp-home-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
  align-items: stretch;
}

.mvp-home-panel {
  margin: 0;
}

.mvp-home-panel h2 {
  margin: 0 0 12px;
}

.mvp-home-span-5 {
  grid-column: span 5;
}

.mvp-home-span-7 {
  grid-column: span 7;
}

.mvp-home-span-12 {
  grid-column: span 12;
}

@media (max-width: 900px) {
  .mvp-home-span-5,
  .mvp-home-span-7 {
    grid-column: span 12;
  }
}

.mvp-home-spark {
  min-height: 200px;
  border-radius: 14px;
  border: 1px solid rgba(80, 120, 160, 0.14);
  background: rgba(5, 10, 18, 0.65);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.mvp-home-spark svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
}

.mvp-home-spark.mvp-home-spark-tall svg {
  max-height: 300px;
}

.mvp-home-spark .mvp-home-cadence-bar {
  transition:
    filter 0.18s ease,
    opacity 0.18s ease;
}

.mvp-home-spark g:hover .mvp-home-cadence-bar {
  filter: brightness(1.14) saturate(1.05);
}

.mvp-home-spark-caption {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: rgba(154, 176, 200, 0.88);
  line-height: 1.4;
}

.mvp-home-hbars {
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.mvp-home-hbars li {
  border-radius: 12px;
  border: 1px solid rgba(90, 130, 170, 0.14);
  background: linear-gradient(180deg, rgba(16, 28, 44, 0.9), rgba(8, 14, 24, 0.88));
  padding: 12px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.mvp-home-hbars li:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 170, 230, 0.22);
}

.mvp-home-hbars li[data-rank="1"] {
  border-color: rgba(62, 142, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(62, 142, 255, 0.12),
    0 10px 28px rgba(0, 20, 50, 0.28);
}

.mvp-home-hbar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mvp-home-hbar-name {
  color: #e4f0ff;
  font-size: 0.86rem;
  font-weight: 600;
}

.mvp-home-hbar-count {
  color: #9fd4ff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mvp-home-hbar-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.85);
  border: 1px solid rgba(60, 100, 140, 0.35);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.mvp-home-hbar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  background: linear-gradient(90deg, #2e7bdc, #5cb8ff 55%, #8ad4ff);
  box-shadow: 0 0 16px rgba(80, 170, 255, 0.35);
  animation: ar-hbar-fill 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mvp-home-hbars li[data-rank="1"] .mvp-home-hbar-fill {
  background: linear-gradient(90deg, #3ecf8e, #5ae0ff);
  box-shadow: 0 0 18px rgba(62, 207, 142, 0.35);
}

.mvp-home-hbar-meta {
  margin: 8px 0 0;
  color: rgba(154, 176, 200, 0.9);
  font-size: 0.74rem;
}

.mvp-home-sources-intro {
  margin: -2px 0 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.mvp-home-sources {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.mvp-home-sources li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(90, 130, 170, 0.12);
  background: rgba(10, 18, 30, 0.65);
  font-size: 0.86rem;
  transition: background 0.15s ease;
}

.mvp-home-sources li:hover {
  background: rgba(18, 30, 48, 0.75);
}

.mvp-home-sources span:first-child {
  color: var(--text);
  min-width: 0;
  flex: 1;
  line-height: 1.35;
}

.mvp-home-sources strong {
  color: #9fd4ff;
  font-variant-numeric: tabular-nums;
}

/* Operational insight modules */
.ar-dash-insights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .ar-dash-insights {
    grid-template-columns: 1fr;
  }
}

.ar-dash-insights li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(100, 140, 200, 0.14);
  background: linear-gradient(145deg, rgba(26, 38, 62, 0.75), rgba(12, 20, 36, 0.85));
  align-items: start;
}

.ar-dash-insight-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(154, 176, 200, 0.78);
}

.ar-dash-insight-value {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f2f7ff;
  line-height: 1.2;
  word-break: break-word;
}

.ar-dash-insight-context {
  font-size: 0.76rem;
  color: rgba(154, 176, 200, 0.92);
  line-height: 1.35;
}

.mvp-home-missions {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.mvp-home-missions a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(100, 150, 200, 0.16);
  background: linear-gradient(120deg, rgba(18, 34, 54, 0.9), rgba(10, 20, 36, 0.92));
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.2s ease;
}

.mvp-home-missions a:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 190, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 20, 50, 0.25);
}

.mvp-home-mission-live a {
  border-color: rgba(62, 200, 150, 0.35);
  background: linear-gradient(120deg, rgba(20, 52, 48, 0.55), rgba(12, 28, 44, 0.92));
  box-shadow: 0 0 24px rgba(62, 200, 150, 0.1);
}

.mvp-home-missions small {
  color: rgba(160, 190, 215, 0.9);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ar-dash-empty-missions {
  display: grid;
  gap: 14px;
  padding: 8px 4px 12px;
  text-align: center;
}

.ar-dash-empty-visual {
  position: relative;
  height: 120px;
  margin: 0 auto;
  max-width: 200px;
  display: grid;
  place-items: center;
}

.ar-dash-empty-radar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(100, 150, 200, 0.2);
  background: radial-gradient(circle, rgba(62, 142, 255, 0.06) 0%, transparent 65%);
  position: relative;
  overflow: hidden;
}

.ar-dash-empty-radar::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(100, 150, 190, 0.15);
}

.ar-dash-empty-radar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(62, 142, 255, 0.12) 52deg, transparent 54deg);
  animation: ar-dash-radar 6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ar-dash-empty-radar::after {
    animation: none;
    opacity: 0.15;
  }
}

.ar-dash-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dce8f8;
}

.ar-dash-empty-sub {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(154, 176, 200, 0.95);
  line-height: 1.45;
}

.ar-dash-empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ar-dash-empty-actions a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.ar-dash-empty-actions a.ghost {
  border: 1px solid rgba(120, 170, 220, 0.28);
  background: rgba(14, 24, 40, 0.85);
  color: #d2e6ff;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.15s ease;
}

.ar-dash-empty-actions a.ghost:hover {
  border-color: rgba(160, 200, 255, 0.4);
  background: rgba(22, 38, 58, 0.92);
  transform: translateY(-1px);
}

.mvp-home-timeline-viewport {
  position: relative;
  overflow: auto;
  margin-top: 4px;
  padding-left: 2px;
}

/* Two-column row: share row height with Event load; viewport fills and scrolls. */
@media (min-width: 901px) {
  .mvp-home-timeline-viewport {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }
}

/* Stacked: no peer row height — cap feed so it scrolls instead of stretching the page. */
@media (max-width: 900px) {
  .mvp-home-timeline-viewport {
    flex: none;
    min-height: 14rem;
    max-height: min(560px, 65vh);
  }
}

.mvp-home-timeline {
  margin: 0;
  padding: 0 0 8px 22px;
  list-style: none;
  display: grid;
  gap: 12px;
  position: relative;
}

.mvp-home-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(62, 142, 255, 0.45), rgba(62, 142, 255, 0.08) 55%, transparent);
  box-shadow: 0 0 12px rgba(62, 142, 255, 0.15);
}

.mvp-home-timeline li {
  position: relative;
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(90, 130, 170, 0.12);
  background: linear-gradient(165deg, rgba(18, 32, 50, 0.92), rgba(8, 14, 26, 0.9));
  font-size: 0.84rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.2s ease;
}

.mvp-home-timeline li::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1a2a3e;
  border: 2px solid rgba(120, 170, 220, 0.5);
  box-shadow: 0 0 10px rgba(62, 142, 255, 0.25);
}

.mvp-home-timeline li:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 170, 230, 0.22);
}

.mvp-home-timeline > li.mvp-home-timeline-empty {
  padding: 22px 18px;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(170, 190, 215, 0.92);
  border-style: dashed;
  list-style: none;
}

.mvp-home-timeline > li.mvp-home-timeline-empty::before {
  display: none;
}

.mvp-home-timeline-item--latest {
  border-color: rgba(62, 142, 255, 0.35) !important;
  box-shadow:
    0 0 0 1px rgba(62, 142, 255, 0.12),
    0 12px 32px rgba(0, 25, 60, 0.35),
    0 0 28px rgba(62, 142, 255, 0.12) !important;
}

.mvp-home-timeline-item--latest::before {
  border-color: rgba(120, 200, 255, 0.95);
  background: radial-gradient(circle at 30% 30%, #b8e0ff, #3e8eff);
  box-shadow: 0 0 14px rgba(100, 190, 255, 0.55);
}

.mvp-home-timeline-item--enter {
  animation: ar-dash-timeline-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mvp-home-timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.mvp-home-timeline-head strong {
  flex: 1 1 160px;
  color: #d0e4fc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mvp-home-event-type {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.mvp-home-event-type::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.mvp-home-event-type.is-pilot {
  color: #9fd4ff;
  border-color: rgba(100, 170, 255, 0.45);
  background: rgba(20, 50, 90, 0.45);
}

.mvp-home-event-type.is-quick {
  color: #7ec8ff;
  border-color: rgba(62, 142, 255, 0.55);
  background: rgba(15, 45, 85, 0.5);
}

.mvp-home-event-type.is-manual {
  color: #f0d090;
  border-color: rgba(232, 168, 74, 0.45);
  background: rgba(60, 42, 18, 0.4);
}

.mvp-home-event-type.is-auto {
  color: #d8c2ff;
  border-color: rgba(180, 124, 255, 0.45);
  background: rgba(48, 28, 78, 0.42);
}

.mvp-home-event-type.is-bridge {
  color: #a8e8c8;
  border-color: rgba(92, 184, 138, 0.45);
  background: rgba(22, 52, 38, 0.42);
}

.mvp-home-event-type.is-voice {
  color: #e8d4ff;
  border-color: rgba(200, 140, 255, 0.5);
  background: rgba(52, 28, 72, 0.45);
}

.mvp-home-event-type.is-other {
  border-color: rgba(150, 160, 180, 0.28);
  color: rgba(180, 195, 215, 0.85);
  background: rgba(20, 28, 40, 0.5);
}

.mvp-home-timeline-body {
  margin-top: 8px;
  color: rgba(180, 200, 220, 0.92);
  line-height: 1.5;
}

.mvp-home-timeline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.mvp-home-timeline-text {
  flex: 1 1 200px;
  min-width: 0;
  line-height: 1.45;
  font-size: 0.86rem;
}

.mvp-home-timeline-thumb,
.mvp-home-timeline-footage {
  flex-shrink: 0;
  width: 128px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(100, 150, 200, 0.25);
  cursor: zoom-in;
  background: #070d14;
  outline: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.mvp-home-timeline-thumb:hover,
.mvp-home-timeline-footage:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 26px rgba(0, 20, 50, 0.45);
}

.mvp-home-timeline-thumb:focus-visible,
.mvp-home-timeline-footage:focus-visible {
  box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mvp-home-foot {
  text-align: center;
  font-size: 0.78rem;
  padding-top: 12px;
  color: rgba(154, 176, 200, 0.75);
}

.mvp-home-operator {
  font-size: 0.8rem;
  color: rgba(154, 176, 200, 0.9);
  margin: 0 0 12px;
  line-height: 1.45;
}

.mvp-home-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.mvp-home-history-actions a.ghost {
  display: inline-block;
  text-decoration: none;
  font-size: inherit;
}

.mvp-home-mission-history .mvp-home-report-actions {
  margin-top: 12px;
}

.mvp-home-mission-history [data-dashboard-report-output] {
  margin-top: 12px;
}

.ar-dash-aar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
}

.ar-dash-aar-toolbar[hidden] {
  display: none !important;
}

.history-item.history-item--selected {
  outline: 2px solid rgba(88, 166, 255, 0.55);
  outline-offset: 2px;
  border-radius: 8px;
}

.mvp-home-account-email {
  margin: 0;
}

.mvp-home-account-form {
  margin-top: 14px;
}

.mvp-home-account-subhead {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #a9bdd4;
}
