:root {
  color-scheme: light;
  --bg: #f5ece0;
  --bg-radial: #e5dcc0;
  --navy-dark: #0f2439;
  --navy: #1a2b4c;
  --ink: #10233c;
  --muted: #5a708a;
  --line: #e5dcc0;
  --card: #ffffff;
  --primary: #0faa94;
  --accent-blue: #1d4ed8;
  --accent-gold: #ffb500;
  --hero-border: rgba(255, 181, 0, 0.28);
  --hero-spot-a: rgba(29, 78, 216, 0.30);
  --hero-spot-b: rgba(255, 181, 0, 0.14);
  --hero-bg-start: rgba(11, 22, 40, 0.99);
  --hero-bg-end: rgba(15, 36, 57, 0.98);
  --hero-text: #edf3ff;
  --hero-heading: #f4f7ff;
  --hero-copy: #d9e5f8;
  --hero-muted: #9eb2d6;
  --button-surface: #f5ece0;
  --button-surface-hover: #e5dcc0;
  --button-surface-active: #e5dcc0;
  --button-surface-active-hover: #d8cdb0;
  --button-primary-bg: linear-gradient(180deg, #ffd264 0%, #ffb500 100%);
  --button-primary-border: rgba(255, 181, 0, 0.34);
  --button-primary-hover-bg: #e6a300;
  --button-primary-text: #172033;
  --focus-border: rgba(29, 78, 216, 0.55);
  --focus-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
  --tutorial-card-spot-a: rgba(255, 181, 0, 0.20);
  --tutorial-card-spot-b: rgba(29, 78, 216, 0.28);
  --tutorial-card-bg: linear-gradient(145deg, rgba(11, 22, 40, 0.995), rgba(23, 50, 77, 0.97));
  --tutorial-mini-border: rgba(29, 78, 216, 0.16);
  --tutorial-mini-bg: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  --tutorial-mini-glow: rgba(96, 165, 250, 0.22);
  --goal-accent: #2563eb;
  --goal-hot-border: rgba(59, 130, 246, 0.26);
  --goal-hot-count-bg: rgba(59, 130, 246, 0.12);
  --goal-active-border: rgba(59, 130, 246, 0.42);
  --goal-active-shadow: rgba(59, 130, 246, 0.10);
  --goal-linked-shadow: rgba(37, 99, 235, 0.09);
  --goal-focus-shadow: rgba(37, 99, 235, 0.14);
  --goal-focus-bg: #f0f7ff;
  --target-hover-border: rgba(59, 130, 246, 0.28);
  --target-hover-shadow: rgba(37, 99, 235, 0.10);
  --target-selected-border: rgba(29, 78, 216, 0.44);
  --target-selected-bg-start: rgba(59, 130, 246, 0.16);
  --target-selected-bg-end: rgba(29, 78, 216, 0.08);
  --target-selected-shadow: rgba(29, 78, 216, 0.18);
  --target-selected-badge-bg: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
  --target-selected-badge-shadow: rgba(29, 78, 216, 0.24);
  --target-selected-text: rgba(30, 64, 175, 0.98);
  --target-subtle-text: rgba(29, 78, 216, 0.70);
  --target-lock-border: #b8cbf3;
  --target-lock-bg: rgba(59, 130, 246, 0.08);
  --target-lock-text: rgba(30, 64, 175, 0.86);
  --target-submit-shadow: rgba(29, 78, 216, 0.26);
  --target-submit-shadow-peak: rgba(29, 78, 216, 0.34);
  --details-pill-bg: #dbeafe;
  --details-pill-border: rgba(59, 130, 246, 0.22);
  --details-pill-text: #1e3a8a;
  --tab-active-bg: #dbeafe;
  --tab-active-border: #b8cbf3;
  --tab-active-text: #1e3a8a;
  --nudge-bg: rgba(59, 130, 246, 0.06);
  --nudge-border: #dbeafe;
  --mission-pill-bg: rgba(37, 99, 235, 0.10);
  --mission-pill-border: rgba(37, 99, 235, 0.22);
  --mission-pill-text: #1d4ed8;
  --mission-plan-text: #1d4ed8;
  --quick-badge-border: rgba(59, 130, 246, 0.35);
  --quick-badge-bg: rgba(59, 130, 246, 0.12);
  --quick-badge-text: #1e40af;
  --goal-row-hover-border: rgba(59, 130, 246, 0.28);
  --goal-row-hover-shadow: rgba(37, 99, 235, 0.12);
  --goal-row-focused-border: rgba(37, 99, 235, 0.45);
  --goal-row-focused-bg: #f0f7ff;
  --goal-row-focused-shadow: rgba(37, 99, 235, 0.16);
  --goal-focus-btn-border: rgba(37, 99, 235, 0.24);
  --goal-focus-btn-bg: rgba(37, 99, 235, 0.10);
  --goal-focus-btn-text: #1d4ed8;
  --goal-focus-btn-hover-border: rgba(37, 99, 235, 0.34);
  --goal-focus-btn-hover-bg: rgba(37, 99, 235, 0.14);
  --goal-focus-number-bg: rgba(37, 99, 235, 0.14);
  --goal-focus-number-text: #1d4ed8;
  --goal-focus-note-border: rgba(37, 99, 235, 0.24);
  --goal-focus-note-bg: rgba(239, 246, 255, 0.7);
  --goal-focus-note-text: #1e3a8a;
  --game-toast-border: #b8cbf3;
  --game-toast-bg: linear-gradient(120deg, rgba(29, 78, 216, 0.97) 0%, rgba(59, 130, 246, 0.97) 100%);
  --game-toast-shadow: rgba(30, 64, 175, 0.30);
  --reward-toast-border: rgba(255, 209, 102, 0.40);
  --reward-toast-glow: rgba(255, 210, 100, 0.18);
  --reward-toast-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(29, 78, 216, 0.97) 52%, rgba(15, 170, 148, 0.95) 100%);
  --tutorial-meter-fill: linear-gradient(90deg, #ffd264 0%, #ffb500 42%, #0faa94 100%);
  --reward-badge-bg: linear-gradient(180deg, #ffd264 0%, #ffb500 100%);
  --reward-badge-text: #172033;
  --reward-badge-shadow: rgba(255, 181, 0, 0.28);
}

:root[data-portal-theme='gov2'] {
  /* Patriot palette: navy base, crimson primary, blue interactive accents, gold trim. */
  --bg: #eef3fb;
  --bg-radial: rgba(29, 78, 216, 0.12);
  --navy-dark: #0b1a30;
  --navy: #14284a;
  --ink: #10233c;
  --muted: #5a708a;
  --line: #d8e2f0;
  --card: #ffffff;
  --primary: #a6192e;
  --accent-blue: #1d4ed8;
  --accent-gold: #ffb500;
  --hero-border: rgba(255, 181, 0, 0.30);
  --hero-spot-a: rgba(166, 25, 46, 0.32);
  --hero-spot-b: rgba(29, 78, 216, 0.20);
  --hero-bg-start: rgba(8, 18, 36, 0.99);
  --hero-bg-end: rgba(15, 30, 57, 0.98);
  --hero-text: #edf3ff;
  --hero-heading: #f4f7ff;
  --hero-copy: #d9e5f8;
  --hero-muted: #9eb2d6;
  --button-surface: #eef3fb;
  --button-surface-hover: #dde7f6;
  --button-surface-active: #dde7f6;
  --button-surface-active-hover: #c9d8ee;
  --button-primary-bg: linear-gradient(180deg, #c41f3a 0%, #a6192e 100%);
  --button-primary-border: rgba(166, 25, 46, 0.34);
  --button-primary-hover-bg: #8a1526;
  --button-primary-text: #fff7f4;
  --focus-border: rgba(29, 78, 216, 0.55);
  --focus-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
  --tutorial-card-spot-a: rgba(166, 25, 46, 0.22);
  --tutorial-card-spot-b: rgba(29, 78, 216, 0.28);
  --tutorial-card-bg: linear-gradient(145deg, rgba(8, 18, 36, 0.995), rgba(20, 40, 74, 0.97));
  --tutorial-mini-border: rgba(29, 78, 216, 0.16);
  --tutorial-mini-bg: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  --tutorial-mini-glow: rgba(96, 165, 250, 0.22);
  --goal-accent: #2563eb;
  --goal-hot-border: rgba(59, 130, 246, 0.26);
  --goal-hot-count-bg: rgba(59, 130, 246, 0.12);
  --goal-active-border: rgba(59, 130, 246, 0.42);
  --goal-active-shadow: rgba(59, 130, 246, 0.10);
  --goal-linked-shadow: rgba(37, 99, 235, 0.09);
  --goal-focus-shadow: rgba(37, 99, 235, 0.14);
  --goal-focus-bg: #f0f7ff;
  --target-hover-border: rgba(59, 130, 246, 0.28);
  --target-hover-shadow: rgba(37, 99, 235, 0.10);
  --target-selected-border: rgba(29, 78, 216, 0.44);
  --target-selected-bg-start: rgba(59, 130, 246, 0.16);
  --target-selected-bg-end: rgba(29, 78, 216, 0.08);
  --target-selected-shadow: rgba(29, 78, 216, 0.18);
  --target-selected-badge-bg: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
  --target-selected-badge-shadow: rgba(29, 78, 216, 0.24);
  --target-selected-text: rgba(30, 64, 175, 0.98);
  --target-subtle-text: rgba(29, 78, 216, 0.70);
  --target-lock-border: #b8cbf3;
  --target-lock-bg: rgba(59, 130, 246, 0.08);
  --target-lock-text: rgba(30, 64, 175, 0.86);
  --target-submit-shadow: rgba(29, 78, 216, 0.26);
  --target-submit-shadow-peak: rgba(29, 78, 216, 0.34);
  --details-pill-bg: #dbeafe;
  --details-pill-border: rgba(59, 130, 246, 0.22);
  --details-pill-text: #1e3a8a;
  --tab-active-bg: #dbeafe;
  --tab-active-border: #b8cbf3;
  --tab-active-text: #1e3a8a;
  --nudge-bg: rgba(59, 130, 246, 0.06);
  --nudge-border: #dbeafe;
  --mission-pill-bg: rgba(37, 99, 235, 0.10);
  --mission-pill-border: rgba(37, 99, 235, 0.22);
  --mission-pill-text: #1d4ed8;
  --mission-plan-text: #1d4ed8;
  --quick-badge-border: rgba(166, 25, 46, 0.34);
  --quick-badge-bg: rgba(166, 25, 46, 0.10);
  --quick-badge-text: #8a1526;
  --goal-row-hover-border: rgba(59, 130, 246, 0.28);
  --goal-row-hover-shadow: rgba(37, 99, 235, 0.12);
  --goal-row-focused-border: rgba(37, 99, 235, 0.45);
  --goal-row-focused-bg: #f0f7ff;
  --goal-row-focused-shadow: rgba(37, 99, 235, 0.16);
  --goal-focus-btn-border: rgba(37, 99, 235, 0.24);
  --goal-focus-btn-bg: rgba(37, 99, 235, 0.10);
  --goal-focus-btn-text: #1d4ed8;
  --goal-focus-btn-hover-border: rgba(37, 99, 235, 0.34);
  --goal-focus-btn-hover-bg: rgba(37, 99, 235, 0.14);
  --goal-focus-number-bg: rgba(37, 99, 235, 0.14);
  --goal-focus-number-text: #1d4ed8;
  --goal-focus-note-border: rgba(37, 99, 235, 0.24);
  --goal-focus-note-bg: rgba(239, 246, 255, 0.7);
  --goal-focus-note-text: #1e3a8a;
  --game-toast-border: rgba(166, 25, 46, 0.34);
  --game-toast-bg: linear-gradient(120deg, rgba(15, 23, 42, 0.97) 0%, rgba(166, 25, 46, 0.97) 100%);
  --game-toast-shadow: rgba(15, 23, 42, 0.30);
  --reward-toast-border: rgba(255, 209, 102, 0.40);
  --reward-toast-glow: rgba(255, 210, 100, 0.18);
  --reward-toast-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(29, 78, 216, 0.97) 52%, rgba(166, 25, 46, 0.95) 100%);
  --tutorial-meter-fill: linear-gradient(90deg, #ffd264 0%, #ffb500 42%, #a6192e 100%);
  --reward-badge-bg: linear-gradient(180deg, #ffd264 0%, #ffb500 100%);
  --reward-badge-text: #172033;
  --reward-badge-shadow: rgba(255, 181, 0, 0.28);
}

:root[data-portal-theme='virginia'] {
  --bg: #f6efea;
  --bg-radial: rgba(200, 145, 31, 0.18);
  --navy-dark: #1f2844;
  --navy: #2d3f67;
  --ink: #1a2438;
  --muted: #5f6678;
  --line: #e4d8d2;
  --card: #ffffff;
  --primary: #8b1e3f;
  --accent-blue: #6d1731;
  --accent-gold: #c8911f;
  --hero-border: rgba(200, 145, 31, 0.30);
  --hero-spot-a: rgba(139, 30, 63, 0.30);
  --hero-spot-b: rgba(200, 145, 31, 0.18);
  --hero-bg-start: rgba(77, 24, 44, 0.98);
  --hero-bg-end: rgba(31, 40, 68, 0.98);
  --hero-text: #fff7f0;
  --hero-heading: #fff7ef;
  --hero-copy: #ecd9c6;
  --hero-muted: #d7c1ab;
  --button-surface: #f4ebe6;
  --button-surface-hover: #ead9d1;
  --button-surface-active: #ead9d1;
  --button-surface-active-hover: #d8b8aa;
  --button-primary-bg: linear-gradient(180deg, #a32549 0%, #8b1e3f 100%);
  --button-primary-border: rgba(139, 30, 63, 0.34);
  --button-primary-hover-bg: #6d1731;
  --button-primary-text: #fff7ef;
  --focus-border: rgba(139, 30, 63, 0.55);
  --focus-shadow: 0 0 0 4px rgba(139, 30, 63, 0.12);
  --tutorial-card-spot-a: rgba(200, 145, 31, 0.22);
  --tutorial-card-spot-b: rgba(139, 30, 63, 0.30);
  --tutorial-card-bg: linear-gradient(145deg, rgba(77, 24, 44, 0.995), rgba(31, 40, 68, 0.97));
  --tutorial-mini-border: rgba(139, 30, 63, 0.16);
  --tutorial-mini-bg: linear-gradient(180deg, #fcf6f3 0%, #ffffff 100%);
  --tutorial-mini-glow: rgba(200, 145, 31, 0.20);
  --goal-accent: #8b1e3f;
  --goal-hot-border: rgba(139, 30, 63, 0.24);
  --goal-hot-count-bg: rgba(200, 145, 31, 0.16);
  --goal-active-border: rgba(139, 30, 63, 0.38);
  --goal-active-shadow: rgba(139, 30, 63, 0.12);
  --goal-linked-shadow: rgba(139, 30, 63, 0.10);
  --goal-focus-shadow: rgba(139, 30, 63, 0.14);
  --goal-focus-bg: #f9eef1;
  --target-hover-border: rgba(139, 30, 63, 0.28);
  --target-hover-shadow: rgba(139, 30, 63, 0.12);
  --target-selected-border: rgba(139, 30, 63, 0.40);
  --target-selected-bg-start: rgba(139, 30, 63, 0.14);
  --target-selected-bg-end: rgba(200, 145, 31, 0.10);
  --target-selected-shadow: rgba(139, 30, 63, 0.18);
  --target-selected-badge-bg: linear-gradient(90deg, #8b1e3f 0%, #c8911f 100%);
  --target-selected-badge-shadow: rgba(139, 30, 63, 0.24);
  --target-selected-text: #6d1731;
  --target-subtle-text: rgba(109, 23, 49, 0.72);
  --target-lock-border: rgba(200, 145, 31, 0.34);
  --target-lock-bg: rgba(200, 145, 31, 0.10);
  --target-lock-text: #8b5e10;
  --target-submit-shadow: rgba(139, 30, 63, 0.26);
  --target-submit-shadow-peak: rgba(139, 30, 63, 0.34);
  --details-pill-bg: rgba(139, 30, 63, 0.10);
  --details-pill-border: rgba(139, 30, 63, 0.20);
  --details-pill-text: #8b1e3f;
  --tab-active-bg: rgba(139, 30, 63, 0.10);
  --tab-active-border: rgba(139, 30, 63, 0.22);
  --tab-active-text: #8b1e3f;
  --nudge-bg: rgba(139, 30, 63, 0.06);
  --nudge-border: rgba(139, 30, 63, 0.14);
  --mission-pill-bg: rgba(139, 30, 63, 0.10);
  --mission-pill-border: rgba(139, 30, 63, 0.22);
  --mission-pill-text: #8b1e3f;
  --mission-plan-text: #8b1e3f;
  --quick-badge-border: rgba(200, 145, 31, 0.32);
  --quick-badge-bg: rgba(200, 145, 31, 0.14);
  --quick-badge-text: #7b5612;
  --goal-row-hover-border: rgba(139, 30, 63, 0.26);
  --goal-row-hover-shadow: rgba(139, 30, 63, 0.12);
  --goal-row-focused-border: rgba(139, 30, 63, 0.38);
  --goal-row-focused-bg: #faf1f3;
  --goal-row-focused-shadow: rgba(139, 30, 63, 0.16);
  --goal-focus-btn-border: rgba(139, 30, 63, 0.24);
  --goal-focus-btn-bg: rgba(139, 30, 63, 0.10);
  --goal-focus-btn-text: #8b1e3f;
  --goal-focus-btn-hover-border: rgba(139, 30, 63, 0.32);
  --goal-focus-btn-hover-bg: rgba(139, 30, 63, 0.14);
  --goal-focus-number-bg: rgba(139, 30, 63, 0.12);
  --goal-focus-number-text: #8b1e3f;
  --goal-focus-note-border: rgba(139, 30, 63, 0.24);
  --goal-focus-note-bg: rgba(251, 243, 245, 0.86);
  --goal-focus-note-text: #6d1731;
  --game-toast-border: rgba(200, 145, 31, 0.32);
  --game-toast-bg: linear-gradient(120deg, rgba(109, 23, 49, 0.97) 0%, rgba(139, 30, 63, 0.97) 52%, rgba(200, 145, 31, 0.97) 100%);
  --game-toast-shadow: rgba(77, 24, 44, 0.30);
  --reward-toast-border: rgba(200, 145, 31, 0.40);
  --reward-toast-glow: rgba(200, 145, 31, 0.22);
  --reward-toast-bg: linear-gradient(135deg, rgba(77, 24, 44, 0.98) 0%, rgba(31, 40, 68, 0.97) 46%, rgba(139, 30, 63, 0.95) 100%);
  --tutorial-meter-fill: linear-gradient(90deg, #c8911f 0%, #b6772c 40%, #8b1e3f 100%);
  --reward-badge-bg: linear-gradient(180deg, #c8911f 0%, #8b1e3f 100%);
  --reward-badge-text: #fff7ef;
  --reward-badge-shadow: rgba(139, 30, 63, 0.24);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", "Open Sans", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at top right, var(--bg-radial) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--ink);
}

/* Simple, dependency-free shell. Replace with real design system later. */
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.inboxChatWrap {
  max-width: none;
}

.inviteWrap {
  max-width: 1120px;
  padding-top: 18px;
}

.inviteHeroCard {
  margin: 0 0 16px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--hero-border);
  background:
    radial-gradient(ellipse 120% 130% at 95% -20%, var(--hero-spot-a), transparent 55%),
    radial-gradient(ellipse 110% 130% at -10% -45%, var(--hero-spot-b), transparent 50%),
    linear-gradient(140deg, var(--hero-bg-start), var(--hero-bg-end));
  color: var(--hero-text);
  box-shadow: 0 16px 36px rgba(11, 22, 40, 0.28);
}

.inviteHeroBrand {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 11px;
  color: var(--hero-muted);
  margin: 0 0 8px;
}

.inviteHeroTitle {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--hero-heading);
}

.inviteHeroSubtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hero-copy);
}

.inviteHeroHud {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  backdrop-filter: blur(6px);
}

.inviteHeroHudLabel {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 900;
  color: #a8bcdb;
}

.inviteHeroHudCodeRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.inviteCourseCodePill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  margin-top: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.inviteCourseCodePill span {
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 900;
  color: #a8bcdb;
  text-transform: uppercase;
}

.inviteCourseCodePill strong {
  letter-spacing: 0.12em;
}

.inviteHeroHudHint {
  margin-top: 10px;
  color: #d9e5f8;
  font-size: 13px;
  line-height: 1.45;
}

.inviteHeroHudSteps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.inviteHeroHud .pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  color: #eef4ff;
  font-weight: 800;
}

.inviteSurfaceGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.inviteSurfaceGridSingle {
  grid-template-columns: minmax(0, 1fr);
}

.inviteSurfaceGridLoginFirst {
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
}

.inviteSecondaryStack {
  display: grid;
  gap: 16px;
  height: 100%;
}

.inviteCard {
  margin-top: 0;
  border-radius: 16px;
  border: 1px solid #d4dfec;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 24px rgba(16, 35, 60, 0.10);
  overflow: hidden;
}

.inviteCard::before,
.inviteSecondary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-gold) 45%, var(--primary) 100%);
}

.inviteCardHead {
  margin-bottom: 18px;
}

.inviteCardTitle {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--navy-dark);
}

.inviteCodeField {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d4dfec;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.inviteCodeLabel {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.inviteCodeValue {
  font-size: 16px;
  font-weight: 900;
  color: var(--navy-dark);
}

.inviteSecondary {
  position: relative;
  margin-top: 0;
  padding: 0;
  height: 100%;
  border-radius: 16px;
  border: 1px solid #d4dfec;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 24px rgba(16, 35, 60, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.inviteSecondaryBody {
  margin-top: 0;
  padding: 0 20px 20px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.inviteLoginCard {
  margin-top: 0;
  width: 100%;
  max-width: 360px;
  margin: auto;
  padding: 8px 0;
  background: transparent;
  border: none;
  box-shadow: none;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inviteRecoveryDetails {
  margin-top: 18px;
  height: auto;
  box-shadow: none;
}

.inviteRecoveryDetails .inviteSecondaryBody {
  align-items: stretch;
}

.inviteRecoveryBody {
  width: 100%;
  display: block;
}

.inviteRecoveryBtn {
  width: 100%;
}

.inviteRecoveryStatus {
  min-height: 20px;
}

.inviteRecoveryHint {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
}

.inviteRecoveryHint[hidden] {
  display: none !important;
}

.inviteRecoveryNote {
  margin: 12px 0 0;
}

.inviteSignedInActions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inviteSecondary summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  color: var(--navy-dark);
}

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

.inviteSummaryMeta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.inviteSecondaryTitle {
  margin: 0 0 6px;
}

.inviteSecondaryCopy {
  margin: 0 0 16px;
}

.inviteFieldLabel {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.inviteInput {
  background: #ffffff;
  border-color: #d4dfec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.inviteInput:focus {
  border-color: var(--focus-border);
  box-shadow: var(--focus-shadow);
}

.invitePrimaryBtn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.inviteStatusRow {
  text-align: center;
  margin-top: 16px;
}

.inviteFormNote {
  color: var(--muted);
}

.inviteLoginCard .inviteForm {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inviteLoginCard .invitePrimaryBtn {
  margin-top: 12px;
}

.inviteLoginCard .inviteStatusRow {
  min-height: 20px;
}

@media (max-width: 920px) {
  .inviteSurfaceGrid {
    grid-template-columns: 1fr;
  }
}

.hero {
  --hero-side-pad: 22px;
  border-radius: 18px;
  padding: 22px var(--hero-side-pad) 16px;
  color: var(--navy-dark);
  background: transparent;
  border: none;
  box-shadow: none;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 12px;
  color: var(--navy);
}

.kickerIcon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--line);
  box-shadow: none;
}

.kickerText {
  display: inline-block;
}

.kickerLogo {
  height: 34px;
  max-height: 40px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: inline-block;
}

.heroTitle {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 10px 0 6px;
  color: var(--navy-dark);
}

.heroSub {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  color: var(--ink);
  font-size: 15px;
  margin: 0 0 14px;
}

.heroSubLabel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.heroSubTextWrap {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
}

.heroSubText {
  min-width: 0;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.heroSubTextWrap.isTicker {
  white-space: nowrap;
}

.heroSubText.isTicker {
  max-width: none;
  padding-right: 18px;
  will-change: transform;
  animation: heroTickerLeftToRight 18s linear infinite;
}

@keyframes heroTickerLeftToRight {
  0% {
    transform: translateX(calc(-100% - 12px));
  }
  100% {
    transform: translateX(100%);
  }
}

.heroPeriod {
  margin: 0 0 2px;
}

.heroPeriodMeta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  margin: 0 0 8px;
  color: var(--muted);
}

.heroPeriodLeft {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

.heroPeriodSep {
  opacity: 0.55;
}

.heroPeriodEndsLabel {
  opacity: 0.70;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.heroPeriodEnds {
  font-variant-numeric: tabular-nums;
  opacity: 0.92;
}

.heroRankStrip {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-inline: calc(-1 * var(--hero-side-pad));
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.heroRankArt {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.heroRankBody {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.heroRankHead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.heroRankLabel {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.heroRankTitle {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--navy);
}

.heroRankMeta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.heroRankMetric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  color: var(--ink);
}

.heroRankMetricLabel {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.heroRankMetric strong {
  font-size: 13px;
  color: var(--navy);
}

.heroRankMetricWide {
  flex: 1 1 240px;
  min-width: 180px;
}

.heroRankMetricBadge {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.heroRankMetricBadge[aria-disabled="true"] {
  cursor: default;
}

.heroRankMetricBadge[data-badge-ready="1"] {
  border-color: rgba(194, 116, 15, 0.28);
  background: linear-gradient(135deg, rgba(255, 245, 214, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.08), 0 8px 20px rgba(194, 116, 15, 0.16);
  animation: heroBadgeReadyGlow 4.8s ease-in-out infinite;
  cursor: pointer;
}

.heroRankMetricBadge[data-badge-ready="1"]::after {
  content: "";
  position: absolute;
  inset: -18%;
  width: 38%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.16) 26%,
    rgba(255, 255, 255, 0.88) 50%,
    rgba(255, 255, 255, 0.16) 74%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-185%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
  animation: heroBadgeReadySweep 4.8s ease-in-out infinite;
}

.heroRankMetricBadge[data-badge-ready="1"]:hover,
.heroRankMetricBadge[data-badge-ready="1"]:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12), 0 12px 24px rgba(194, 116, 15, 0.2);
  outline: none;
}

.heroRankNextBadgeArt {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.82) contrast(1.02);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
}

.heroRankMetricBadge[data-badge-ready="1"] .heroRankNextBadgeArt {
  opacity: 0.98;
  filter: saturate(1.08) contrast(1.04);
  box-shadow: 0 0 0 2px rgba(254, 243, 199, 0.95), 0 0 14px rgba(245, 158, 11, 0.42);
}

.heroRankNextBadgeText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heroRankMetricBadge[data-badge-ready="1"] .heroRankNextBadgeText {
  color: var(--navy);
  font-weight: 800;
}

@keyframes heroBadgeReadyGlow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.08), 0 8px 20px rgba(194, 116, 15, 0.15);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.16), 0 10px 26px rgba(194, 116, 15, 0.24);
  }
}

@keyframes heroBadgeReadySweep {
  0%, 12% {
    transform: translateX(-185%) skewX(-18deg);
    opacity: 0;
  }
  22% {
    opacity: 0.6;
  }
  48% {
    transform: translateX(305%) skewX(-18deg);
    opacity: 0.88;
  }
  60%, 100% {
    transform: translateX(305%) skewX(-18deg);
    opacity: 0;
  }
}

.heroRankBar {
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.heroRankBar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0891b2 0%, #14b8a6 100%);
}

.heroRankFoot {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .heroRankStrip {
    padding: 10px;
    align-items: flex-start;
  }

  .heroRankArt {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .heroRankMetricWide {
    flex-basis: 100%;
    min-width: 0;
  }
}

.hero .muted {
  color: var(--muted);
}

.heroActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.heroBadges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.heroFoot {
  margin: 0;
  color: var(--muted);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(16, 35, 60, 0.06);
}

.card.accent::before {
  display: none;
}

.todayTop {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.todayCopy {
  flex: 1 1 320px;
  min-width: 240px;
}

.todayNext {
  margin-top: 6px;
}

.todayCtas {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.tile {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
}

.tile:hover {
  background: #f8fafc;
}

.tile.hot {
  border-color: rgba(59, 130, 246, 0.38);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.10);
}

.tileTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tileTitle {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
}

.tileCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.tile.hot .tileCount {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.20);
}

.tileSub {
  margin-top: 6px;
}

.divider {
  height: 1px;
  background: rgba(0,0,0,0.05);
  margin: 16px 0;
}

.actionsSplit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.actionsPane {
  min-width: 0;
}

.actionsPaneLabel {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
  color: #64748b;
}

.guidedTutorialCard {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 82;
  box-sizing: border-box;
  width: min(460px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.20);
  background:
    radial-gradient(ellipse 120% 150% at 100% -16%, var(--tutorial-card-spot-a), transparent 38%),
    radial-gradient(ellipse 110% 140% at 0% 0%, var(--tutorial-card-spot-b), transparent 44%),
    linear-gradient(145deg, rgba(10, 18, 34, 0.985), rgba(18, 39, 66, 0.975));
  box-shadow:
    0 28px 64px rgba(8, 15, 30, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(24px);
  color: #f7fbff;
  transition:
    top 220ms ease,
    left 220ms ease,
    right 220ms ease,
    bottom 220ms ease,
    width 220ms ease,
    max-width 220ms ease,
    max-height 220ms ease,
    box-shadow 220ms ease;
}

.guidedTutorialMini {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 82;
  box-sizing: border-box;
  width: min(336px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-color: var(--tutorial-mini-border);
  background: var(--tutorial-mini-bg);
  box-shadow:
    0 20px 42px rgba(16, 35, 60, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px);
}

.guidedTutorialCard::before,
.guidedTutorialMini::before {
  content: "";
  position: absolute;
  top: -72px;
  right: -52px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--tutorial-mini-glow) 0%, rgba(96, 165, 250, 0) 72%);
  pointer-events: none;
}

.guidedTutorialMiniCopy {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.guidedTutorialMiniTitle {
  font-size: 16px;
  font-weight: 900;
  color: #10233c;
}

.guidedTutorialMiniText {
  margin-top: 4px;
  max-width: 260px;
  font-size: 13px;
  line-height: 1.45;
  color: #5a708a;
}

.guidedTutorialMiniActions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.guidedTutorialMiniActions .btn {
  min-width: 116px;
  justify-content: center;
}

.guidedTutorialMini.guidedTutorialMiniCompact {
  width: min(272px, calc(100vw - 24px));
  gap: 8px;
  box-shadow:
    0 14px 28px rgba(16, 35, 60, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.56);
}

.guidedTutorialMini.guidedTutorialMiniCompact .guidedTutorialMiniCopy {
  align-items: center;
  gap: 10px;
}

.guidedTutorialMini.guidedTutorialMiniCompact .guidedTutorialPills {
  margin-bottom: 0;
}

.guidedTutorialMini.guidedTutorialMiniCompact .guidedTutorialMiniTitle {
  font-size: 14px;
}

.guidedTutorialMini.guidedTutorialMiniCompact .guidedTutorialMiniText {
  display: none;
}

.guidedTutorialMini.guidedTutorialMiniCompact .guidedTutorialMiniActions .btn {
  min-width: 104px;
}

.guidedTutorialHead {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.guidedTutorialCard .pill {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #f7fbff;
}

.guidedTutorialPills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.guidedTutorialTitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f7fbff;
}

.guidedTutorialSubtitle {
  margin-top: 4px;
  max-width: 320px;
  font-size: 12px;
  line-height: 1.35;
  color: #deebff;
}

.guidedTutorialCard .muted {
  color: #deebff;
}

.guidedTutorialCard .btn {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.guidedTutorialCard .btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.guidedTutorialCard .btn.primary {
  background: var(--button-primary-bg);
  border-color: var(--button-primary-border);
  color: var(--button-primary-text);
}

.guidedTutorialDismissInlineBtn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #dce8f8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  align-self: flex-start;
  margin-top: 2px;
}

.guidedTutorialDismissInlineBtn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.guidedTutorialLead {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: #f7fbff;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.guidedTutorialStatus {
  margin-top: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  max-height: calc(100vh - 248px);
}

.guidedTutorialShell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
}

.guidedTutorialStage {
  position: relative;
  overflow: visible;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(7, 14, 28, 0.58) 0%, rgba(12, 24, 44, 0.54) 100%);
  padding: 18px;
  color: #f3f8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(5, 10, 22, 0.20);
}

.guidedTutorialStage::after {
  content: none;
}

.guidedTutorialMeter {
  position: relative;
  z-index: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.guidedTutorialMeter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--tutorial-meter-fill);
  box-shadow: 0 0 18px rgba(255, 181, 0, 0.22);
}

.guidedTutorialStageEyebrow {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d5e3fa;
}

.guidedTutorialStageTitle {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #f7fbff;
}

.guidedTutorialStageCopy {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #eef5ff;
}

.guidedTutorialPreview {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.07) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.guidedTutorialPreviewLabel {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d7e6ff;
}

.guidedTutorialBadgeExample {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  pointer-events: none;
  cursor: default;
}

.guidedTutorialPreviewCaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #eef5ff;
}

.guidedTutorialStageHint {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.11);
  font-size: 13px;
  line-height: 1.45;
  color: #f7fbff;
}

.guidedTutorialStageActions {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.guidedTutorialFooter {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.guidedTutorialFooterMeta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #eef5ff;
}

.guidedTourSpotlight {
  position: relative;
  z-index: 76;
  isolation: isolate;
}

.guidedTourSpotlightElevated {
  z-index: 86;
}

.guidedTutorialTargetLocked {
  pointer-events: none !important;
  cursor: default !important;
}

.guidedTourSpotlight::before {
  content: none;
}

.guidedTourSpotlight::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 6px rgba(29, 78, 216, 0.18),
    0 0 26px rgba(29, 78, 216, 0.28),
    0 0 52px rgba(15, 170, 148, 0.24);
  pointer-events: none;
  animation: guidedTourSpotlightPulse 1.6s ease-in-out infinite;
}

.heroStat.guidedTourSpotlight::after,
.heroPillLink.guidedTourSpotlight::after {
  inset: -7px;
  border-radius: 999px;
}

#heroHudBadges.guidedTourSpotlight::after {
  inset: -10px;
  border-radius: 24px;
}

.heroStat.guidedTourSpotlight,
.heroPillLink.guidedTourSpotlight {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 233, 0.95) 100%) !important;
  border-color: rgba(255, 255, 255, 0.98) !important;
  color: #10233c !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.94),
    0 14px 28px rgba(15, 23, 42, 0.14),
    0 0 34px rgba(255, 210, 100, 0.30);
  filter: brightness(1.12) saturate(1.14);
  transform: translateY(-1px);
}

.heroStat.guidedTourSpotlight .heroStatLabel,
.heroPillLink.guidedTourSpotlight .heroStatLabel {
  color: rgba(57, 84, 117, 0.82);
  opacity: 1;
}

.heroStat.guidedTourSpotlight .heroStatValue,
.heroPillLink.guidedTourSpotlight .heroStatValue {
  color: #10233c;
}

.heroStat.guidedTourSpotlight .infoTooltipIcon,
.heroPillLink.guidedTourSpotlight .infoTooltipIcon {
  border-color: rgba(59, 130, 246, 0.30);
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

#missionCard.guidedTourSpotlight::after,
#positionGoalsCard.guidedTourSpotlight::after,
#actionsCard.guidedTourSpotlight::after {
  inset: -12px;
  border-radius: 24px;
}

.bottomNavItem.guidedTourSpotlight::after {
  inset: -6px;
  border-radius: 18px;
}

.guidedTutorialViewportScrim {
  position: fixed;
  inset: 0;
  z-index: 73;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  touch-action: none;
  background: linear-gradient(180deg, rgba(7, 15, 30, 0.16) 0%, rgba(7, 15, 30, 0.36) 100%);
  backdrop-filter: blur(4px) saturate(0.86);
  -webkit-backdrop-filter: blur(4px) saturate(0.86);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.guidedTutorialViewportScrim.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.guidedTutorialViewportHalo {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 18px;
  pointer-events: none;
  z-index: 74;
  opacity: 0;
  transform: translate(-9999px, -9999px);
  transition:
    transform 220ms ease,
    width 220ms ease,
    height 220ms ease,
    border-radius 220ms ease,
    opacity 180ms ease,
    box-shadow 220ms ease;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.96),
    0 0 0 8px rgba(59, 130, 246, 0.20),
    0 18px 52px rgba(15, 170, 148, 0.28),
    0 8px 26px rgba(15, 23, 42, 0.22);
}

.guidedTutorialViewportHalo.visible {
  opacity: 1;
}

.guidedTutorialViewportHalo--elevated {
  z-index: 85;
}

.guidedTutorialViewportHalo::before {
  content: attr(data-guided-tour-label);
  position: absolute;
  top: 0;
  left: 14px;
  transform: translateY(calc(-100% - 10px));
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0faa94 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  white-space: nowrap;
}

.guidedTutorialViewportHalo--below::before {
  top: auto;
  bottom: 0;
  transform: translateY(calc(100% + 10px));
}

body.actionsManualOpen {
  overflow: hidden;
}

.actionsManualOverlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 24px 16px max(24px, env(safe-area-inset-bottom));
  background: rgba(7, 15, 30, 0.56);
  backdrop-filter: blur(8px) saturate(0.92);
  -webkit-backdrop-filter: blur(8px) saturate(0.92);
  overflow: auto;
}

.actionsManualSurface {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(11, 22, 40, 0.995), rgba(23, 50, 77, 0.97));
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.38);
  overflow: hidden;
}

.actionsManualHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.actionsManualTitle {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.06;
  color: #f7fbff;
}

.actionsManualSubtitle {
  margin-top: 4px;
  max-width: 360px;
  color: #c8d7ef;
  font-size: 13px;
  line-height: 1.45;
}

.actionsManualBody {
  margin-top: 14px;
  max-height: calc(100vh - 170px);
  overflow: auto;
  padding-right: 4px;
}

.actionsManualSummary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.actionsManualSummaryText {
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #eef5ff;
}

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

.actionsManualSection {
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.actionsManualSectionEyebrow {
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9eb2d6;
}

.actionsManualSectionTitle {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 800;
  color: #f7fbff;
}

.actionsManualSectionCopy {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: #dbe7f8;
}

@keyframes guidedTourSpotlightPulse {
  0%, 100% {
    box-shadow:
      0 0 0 6px rgba(29, 78, 216, 0.16),
      0 0 24px rgba(29, 78, 216, 0.22),
      0 0 44px rgba(15, 170, 148, 0.20);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(29, 78, 216, 0.24),
      0 0 32px rgba(29, 78, 216, 0.28),
      0 0 60px rgba(15, 170, 148, 0.28);
  }
}

@media (max-width: 720px) {
  .guidedTutorialCard,
  .guidedTutorialMini {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .guidedTutorialCard {
    max-height: calc(100vh - 92px);
  }

  .guidedTutorialHead {
    flex-wrap: wrap;
  }

  .guidedTutorialMiniCopy {
    flex-direction: column;
    gap: 10px;
  }

  .guidedTutorialStage {
    padding: 16px;
  }

  .guidedTutorialStageActions,
  .guidedTutorialFooter {
    flex-direction: column;
    align-items: stretch;
  }

  .guidedTutorialFooterMeta {
    align-self: flex-start;
  }

  .guidedTutorialViewportHalo::before {
    left: 10px;
    font-size: 10px;
  }

  .missionCardGrid,
  .actionsManualGrid {
    grid-template-columns: 1fr;
  }

  .missionGoalsHeader,
  .missionGoalsSectionHead {
    align-items: flex-start;
  }

  .missionGoalsHeaderActions,
  .missionGoalsSectionActions {
    width: 100%;
    justify-content: flex-start;
  }

  .actionsManualOverlay {
    padding: 12px 8px calc(12px + env(safe-area-inset-bottom));
  }

  .actionsManualSurface {
    max-height: calc(100vh - 24px);
    padding: 16px;
    border-radius: 20px;
  }

  .actionsManualHead {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guidedTutorialRewardToast,
  .guidedTutorialViewportScrim,
  .guidedTutorialViewportHalo,
  .guidedTourSpotlight::after {
    transition: none;
    animation: none;
  }
}

.actionsBadgeDock {
  position: relative;
  overflow: hidden;
  border-color: rgba(234, 211, 154, 0.95);
  background: linear-gradient(180deg, #fffdf6 0%, #ffffff 240px);
  box-shadow: 0 14px 34px rgba(194, 116, 15, 0.12);
  animation: actionsBadgeDockPulse 5.2s ease-in-out infinite;
}

.actionsBadgeDock::after {
  content: "";
  position: absolute;
  inset: -18%;
  width: 34%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 26%,
    rgba(255, 255, 255, 0.86) 50%,
    rgba(255, 255, 255, 0.18) 74%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-190%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
  animation: actionsBadgeDockSweep 5.2s ease-in-out infinite;
}

@keyframes actionsBadgeDockPulse {
  0%, 100% {
    box-shadow: 0 14px 34px rgba(194, 116, 15, 0.12);
  }
  50% {
    box-shadow: 0 18px 38px rgba(194, 116, 15, 0.2);
  }
}

@keyframes actionsBadgeDockSweep {
  0%, 12% {
    transform: translateX(-190%) skewX(-18deg);
    opacity: 0;
  }
  22% {
    opacity: 0.56;
  }
  48% {
    transform: translateX(330%) skewX(-18deg);
    opacity: 0.82;
  }
  60%, 100% {
    transform: translateX(330%) skewX(-18deg);
    opacity: 0;
  }
}

.actionsBadgeInline {
  margin-top: 0;
}

.actionsBadgeInlineStatus {
  margin: 0 0 10px;
}

.actionsBadgeInlineFrame {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 1px solid rgba(234, 211, 154, 0.95);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(194, 116, 15, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .heroStatRewardBurst,
  .heroRankMetricBadge[data-badge-ready="1"],
  .actionsBadgeDock {
    animation: none;
  }

  .heroRankMetricBadge[data-badge-ready="1"]::after,
  .actionsBadgeDock::after {
    animation: none;
    opacity: 0;
  }
}

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

.actionsCategoryGrid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.actionsPaneCategories .catCard {
  padding: 12px;
  gap: 12px;
}

.actionsPaneCategories .catImg,
.actionsPaneCategories .catImgPlaceholder {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.actionsPaneCategories .catCount {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
}

.actionsPaneCategories .catSub {
  font-size: 11px;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.actionsPaneCategories .catSubMini {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.2;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catCard {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
  text-decoration: none;
  overflow: hidden;
}

.catCard:hover {
  background: #f8fafc;
}

.catCard.hot {
  border-color: var(--goal-hot-border);
}

.catCard.active {
  border-color: var(--goal-active-border);
  box-shadow: 0 10px 30px var(--goal-active-shadow);
}

.catCard.goalLinked {
  border-color: var(--goal-accent);
  box-shadow: 0 8px 18px var(--goal-linked-shadow);
}

.catCard.goalFocusMatch {
  border-color: var(--goal-accent);
  box-shadow: 0 10px 24px var(--goal-focus-shadow);
}

.catCard.goalLinked::before,
.catCard.goalFocusMatch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--goal-accent);
}

.catCard.goalFocusActive {
  border-color: var(--goal-accent);
  background: var(--goal-focus-bg);
}

.catImg,
.catImgPlaceholder {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.03);
  object-fit: contain;
  object-position: center;
}

.catMain {
  flex: 1 1 auto;
  min-width: 0;
}

.catTitle {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catSub {
  margin-top: 3px;
}

.catCount {
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--line);
  color: var(--ink);
}

.catCard.hot .catCount {
  background: var(--goal-hot-count-bg);
  border-color: var(--goal-hot-border);
}

.catHeaderTitle {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.decisionGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

#decisionsStatus.decisionsRefreshing {
  opacity: 0.86;
}

#decisionsStatus.decisionsRefreshed {
  animation: decisionsRefreshedIn 280ms ease;
}

@keyframes decisionsRefreshedIn {
  0% {
    opacity: 0.78;
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.decisionCard {
  border-radius: 16px;
  padding: 12px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
}

.decisionTitle {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.decisionPreview {
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.decisionBlurb {
  margin-top: 6px;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card.flash {
  border-color: rgba(34, 197, 94, 0.28);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.10);
}

.card.flash .pill {
  background: #dcfce7;
  border-color: #9dd8b3;
  color: #166534;
}

.decisionItem {
  position: relative;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.decisionItem::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 58%, #1e3a8a 100%);
}

.decisionItem.costTone-mid::before {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 55%, #f59e0b 100%);
}

.decisionItem.costTone-high::before {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 60%, #991b1b 100%);
}

.decisionItem[open] {
  border-color: rgba(59, 130, 246, 0.26);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.10);
}

.decisionItem.decisionSubmitted {
  animation: decisionSubmitCardPulse 1.05s ease;
}

.decisionItem.decisionSubmitted::before {
  height: 6px;
  filter: saturate(1.15) brightness(1.08);
}

@keyframes decisionSubmitCardPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0,0,0,0.02);
  }
  35% {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 14px 34px rgba(34, 197, 94, 0.18);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0,0,0,0.02);
  }
}

.decisionItem.decisionPending {
  pointer-events: none;
}

.decisionItem.decisionPending .decisionBody {
  opacity: 0.72;
}

.decisionItem.decisionPendingSettling .decisionBody {
  opacity: 0.88;
  transition: opacity 220ms ease;
}

.decisionItem.decisionPending::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.00) 12%, #dbeafe 52%, rgba(59, 130, 246, 0.00) 88%);
  animation: decisionPendingSweep 780ms ease;
}

.decisionItem.decisionPending-mid::after {
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.00) 12%, rgba(245, 158, 11, 0.14) 52%, rgba(245, 158, 11, 0.00) 88%);
}

.decisionItem.decisionPending-high::after {
  background: linear-gradient(120deg, rgba(239, 68, 68, 0.00) 12%, rgba(239, 68, 68, 0.16) 52%, rgba(239, 68, 68, 0.00) 88%);
}

@keyframes decisionPendingSweep {
  0% {
    transform: translateX(-40%);
    opacity: 0.4;
  }
  100% {
    transform: translateX(40%);
    opacity: 1;
  }
}

.decisionLockBadge {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.24);
  animation: decisionLockBadgePulse 680ms ease;
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.decisionItem.decisionPending-mid .decisionLockBadge {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
  box-shadow: 0 10px 24px rgba(180, 83, 9, 0.24);
}

.decisionItem.decisionPending-high .decisionLockBadge {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.24);
}

.decisionLockBadge.done {
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
  box-shadow: 0 10px 24px rgba(21, 128, 61, 0.24);
}

.decisionLockBadge.fadeOut {
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
}

@keyframes decisionLockBadgePulse {
  0% {
    transform: scale(0.96);
    opacity: 0.84;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.decisionItem.decisionSettledFx {
  animation: decisionSettledFx 420ms ease;
}

@keyframes decisionSettledFx {
  0% {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.12);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0,0,0,0.02);
  }
}

.decisionResolveOut {
  overflow: hidden;
  max-height: 0 !important;
  opacity: 0 !important;
  transform: scale(0.98);
  border-width: 0 !important;
  margin: 0 !important;
  transition: max-height 320ms ease, opacity 260ms ease, transform 260ms ease, border-width 260ms ease, margin 260ms ease;
}

.decisionGridEmpty {
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(15, 23, 42, 0.03);
}

.decisionSummary {
  list-style: none;
  cursor: pointer;
  padding: 12px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.decisionSummary:hover {
  background: #f8fafc;
}

.decisionOpenPill {
  background: #dbeafe;
  border-color: #b8cbf3;
  color: #1e3a8a;
}

.decisionDoPill {
  background: #dcfce7;
  border-color: #9dd8b3;
  color: rgba(20, 83, 45, 0.92);
  cursor: pointer;
}

.decisionDoPill:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.decisionMetaRow {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.decisionMetaPill {
  background: rgba(0,0,0,0.03);
  border-color: var(--line);
  color: var(--muted);
}

.decisionEffectPill {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.20);
  color: #1e3a8a;
  font-weight: 900;
}

.decisionMore {
  margin: 2px 0 10px;
}

.decisionMoreSummary {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.decisionMoreSummary::-webkit-details-marker {
  display: none;
}

.decisionNext,
.decisionImpact {
  margin-top: 6px;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.decisionHow {
  margin-top: 4px;
  font-size: 12px;
}

.decisionPickLabel {
  margin: 6px 0 10px;
  font-size: 12px;
}

.decisionSummary::-webkit-details-marker {
  display: none;
}

.decisionSummaryMain {
  flex: 1 1 auto;
  min-width: 0;
}

.decisionSnippetRows {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.decisionSnippetRow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.decisionSnippetTag {
  flex: 0 0 auto;
  min-width: 40px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.decisionSnippetTagDo {
  background: #dbeafe;
  border-color: rgba(59, 130, 246, 0.26);
  color: #1e3a8a;
}

.decisionSnippetTagEarn {
  background: #dcfce7;
  border-color: rgba(34, 197, 94, 0.30);
  color: #166534;
}

.decisionSnippetText {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.decisionSnippetChips {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.decisionSnippetChip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.10);
  color: #1e3a8a;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.decisionSide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.decisionThumb,
.decisionThumbPlaceholder {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.03);
  object-fit: contain;
  object-position: center;
}

.decisionIconCost {
  font-size: 11px;
  padding: 4px 9px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--navy-dark);
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.decisionBody {
  padding: 0 12px 12px;
}

.decisionHeroWrap {
  margin: 2px 0 12px;
  display: flex;
  justify-content: flex-start;
}

.decisionHeroImg,
.decisionHeroPlaceholder {
  width: min(100%, 260px);
  height: 144px;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.03);
  object-fit: contain;
  object-position: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.decisionPrompt {
  margin: 2px 0 10px;
}

.decisionCopyBar {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.decisionCopyPill {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.18);
  color: #1e3a8a;
  font-weight: 900;
}

.decisionCopyBtn {
  padding: 6px 10px;
  min-height: 0;
}

.decisionCopyBtn:hover {
  background: #f8fafc;
}

.decisionOptions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.targetDetails {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
  overflow: hidden;
}

.targetDetails[open] {
  border-color: rgba(59, 130, 246, 0.26);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.10);
}

.targetDetailsSummary {
  list-style: none;
  cursor: pointer;
  padding: 12px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.targetDetailsSummary::-webkit-details-marker {
  display: none;
}

.targetDetailsMain {
  flex: 1 1 auto;
  min-width: 0;
}

.targetDetailsTitle {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
}

.targetDetailsMeta {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.targetDetailsDot {
  opacity: 0.55;
}

.targetDetailsBody {
  padding: 0 12px 12px;
}

.btn.optionBtn {
  width: 100%;
  justify-content: space-between;
  text-align: left;
}

.btn.optionBtn .optionText {
  flex: 1 1 auto;
  min-width: 0;
}

.optionCost {
  flex: 0 0 auto;
  margin-left: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: var(--navy-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.optionHint {
  margin: -6px 0 0 4px;
}

.optionImpact {
  margin: 6px 4px 0;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.optionEffects {
  margin: 6px 4px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.optionEffectPill {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.20);
  color: #1e3a8a;
  font-weight: 900;
}

.optionMore {
  margin: 6px 4px 0;
}

.optionMoreSummary {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.optionMoreSummary::-webkit-details-marker {
  display: none;
}

.optionMoreBody {
  margin-top: 6px;
}

.targetBlock {
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.targetMission {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.targetMissionPill {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
  border-color: transparent;
}

.targetMissionText {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.targetProgress {
  margin: 0 0 10px;
}

.targetProgressTrack {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  border: 1px solid var(--line);
  overflow: hidden;
}

.targetProgressFill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 58%, #1e3a8a 100%);
  transition: width 180ms ease;
}

.targetProgressLabels {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.targetProgressLabel.on {
  color: #1e3a8a;
}

.targetStepLabel {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.targetOptionTitle {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
}

.targetGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.targetGroupTitle {
  grid-column: 1 / -1;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 8px;
}

.targetItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.targetItem:not(.disabled):hover {
  background: #f8fafc;
}

.targetItem.selected {
  border-color: rgba(59, 130, 246, 0.30);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.10);
}

.targetItem input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.targetItem input:checked + .targetItemMain .targetItemName {
  color: rgba(29, 78, 216, 0.92);
}

.targetItem.disabled {
  opacity: 0.60;
  cursor: not-allowed;
}

.targetItemName {
  font-weight: 800;
  color: var(--ink);
}

.targetItemMain {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.targetItemSub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.targetLockCue {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  padding: 4px 9px;
  white-space: nowrap;
}

.targetItemNote {
  margin-left: auto;
  font-size: 12px;
}

.targetMiniHint {
  margin-top: 4px;
  font-size: 13px;
}

.targetSelectedLive {
  margin-top: 8px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.02);
}

.targetActionsRow {
  gap: 10px;
  flex-wrap: wrap;
}

.targetActionsRow.single {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.05);
  background: linear-gradient(to top, #f8fafc 76%, rgba(248, 250, 252, 0.24));
}

.targetActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.targetCosts {
  margin-left: auto;
}

.targetSubmit.single {
  min-width: 130px;
  min-height: 46px;
}

.targetSubmit.single.ready {
  box-shadow: 0 16px 36px var(--target-submit-shadow);
  animation: targetSubmitPulse 1400ms ease-in-out infinite;
}

@keyframes targetSubmitPulse {
  0%, 100% { box-shadow: 0 16px 36px var(--target-submit-shadow); }
  50% { box-shadow: 0 20px 44px var(--target-submit-shadow-peak); }
}

.targetBlock.singlePick .targetGrid {
  counter-reset: pick;
  grid-template-columns: 1fr;
  gap: 12px;
}

.targetBlock.singlePick {
  border-color: rgba(59, 130, 246, 0.22);
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.targetBlock.singlePick.hasSelection {
  border-color: rgba(29, 78, 216, 0.30);
}

.targetBlock.singlePick .targetSelectedLive {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.08);
}

.targetBlock.singlePick .targetItem {
  position: relative;
  counter-increment: pick;
  padding: 12px 12px 12px 50px;
  border-color: #dbeafe;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.96) 100%);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.targetBlock.singlePick .targetItem::before {
  content: counter(pick);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: rgba(29, 78, 216, 0.92);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.26);
}

.targetBlock.singlePick .targetItemName {
  font-size: 16px;
  line-height: 1.15;
}

.targetBlock.singlePick .targetGroupTitle {
  display: none;
}

.targetBlock.singlePick .targetCosts {
  display: none;
}

.targetBlock.singlePick .targetItem input {
  display: none;
}

.targetBlock.singlePick .targetItem:hover {
  transform: translateY(-1px);
  border-color: var(--target-hover-border);
  box-shadow: 0 10px 24px var(--target-hover-shadow);
}

.targetBlock.singlePick .targetItem.selected {
  border-color: var(--target-selected-border);
  background: linear-gradient(90deg, var(--target-selected-bg-start) 0%, var(--target-selected-bg-end) 100%);
  box-shadow: 0 14px 30px var(--target-selected-shadow);
}

.targetBlock.singlePick .targetItem.selected::before {
  color: #ffffff;
  border-color: transparent;
  background: var(--target-selected-badge-bg);
}

.targetBlock.singlePick .targetItem.selected .targetItemName {
  color: var(--target-selected-text);
}

.targetBlock.singlePick .targetItemSub {
  color: var(--target-subtle-text);
}

.targetBlock.singlePick .targetLockCue {
  border-color: var(--target-lock-border);
  background: var(--target-lock-bg);
  color: var(--target-lock-text);
}

.targetBlock.singlePick .targetItem.selected .targetLockCue {
  color: #ffffff;
  border-color: transparent;
  background: var(--target-selected-badge-bg);
  box-shadow: 0 8px 18px var(--target-selected-badge-shadow);
}

.targetBlock.singlePick .targetActions {
  width: 100%;
}

.targetBlock.singlePick .targetSubmit.single {
  width: 100%;
  justify-content: center;
}

.targetBlock.singlePick .targetItem.targetLockFx {
  animation: targetLockFx 520ms ease;
}

@keyframes targetLockFx {
  0% {
    transform: scale(0.99);
  }
  45% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

.targetDetailsPill {
  background: var(--details-pill-bg);
  border-color: var(--details-pill-border);
  color: var(--details-pill-text);
  font-weight: 900;
}

/* The right pill is useful when collapsed; hide it once expanded. */
.targetDetails[open] .targetDetailsPill {
  display: none;
}

.targetEmpty {
  padding: 8px 4px;
}

.msgList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inboxControls {
  gap: 10px;
}

.inboxTabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inboxTab.active {
  background: var(--tab-active-bg);
  border-color: var(--tab-active-border);
  color: var(--tab-active-text);
}

.inboxTabCount {
  margin-left: 6px;
  min-width: 22px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}

.inboxTab.active .inboxTabCount {
  background: var(--tab-active-bg);
  border-color: var(--tab-active-border);
  color: var(--tab-active-text);
}

.inboxFilters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inboxSearch {
  width: 240px;
  max-width: 100%;
}

.inboxToggle {
  cursor: pointer;
  user-select: none;
}

.inboxToggle.active {
  background: var(--tab-active-bg);
  border-color: var(--tab-active-border);
  color: var(--tab-active-text);
}

.inboxNudge {
  border-radius: 16px;
  padding: 10px 12px;
  background: var(--nudge-bg);
  border: 1px solid var(--nudge-border);
}

.inboxMeta {
  font-size: 12px;
}

.inboxSplit {
  display: block;
}

.inboxPane {
  min-width: 0;
}

@media (min-width: 1000px) {
  .inboxSplit[data-mode="split"] {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 12px;
    align-items: start;
  }

  .inboxSplit[data-mode="split"] .inboxPane {
    max-height: 66vh;
    overflow: auto;
    padding: 2px 6px 2px 2px; /* keep content off scrollbar + avoid shadow clipping */
  }

  .inboxSplit[data-mode="split"][data-contact-open="1"] {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 14px;
  }

  .inboxSplit[data-mode="split"][data-list-open="0"] {
    display: block;
  }

  .inboxSplit[data-mode="split"][data-list-open="0"] .inboxPane {
    max-height: none;
    overflow: visible;
    padding: 0;
  }
}

.msgListFooter {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.msgItem {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  padding: 12px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
}

.msgItem:hover {
  background: #f8fafc;
}

.msgItem.unread {
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.08);
}

.msgItem.selected {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
}

.msgItem.selected:hover {
  background: rgba(59, 130, 246, 0.08);
}

.msgTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.msgSubject {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
}

.msgMeta {
  flex: 0 0 auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.pill.msgNew {
  background: #dbeafe;
  border-color: #b8cbf3;
  color: #1e3a8a;
}

.msgPreview {
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msgDetailTitle {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.msgBody {
  margin-top: 10px;
  white-space: pre-wrap;
  color: var(--ink);
}

.inboxTabsSep {
  width: 1px;
  height: 20px;
  background: var(--line);
  align-self: center;
  margin: 0 4px;
  border-radius: 999px;
}

.composeSelected {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.composeRecipient .composeRemove {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 4px;
  margin: 0;
  cursor: pointer;
  font-weight: 900;
  color: var(--muted);
}

.composeRecipient .composeRemove:hover {
  color: rgba(225, 29, 72, 0.92);
}

.composeResults {
  margin-top: 8px;
}

.composeList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.composeStudent {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 16px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
  cursor: pointer;
}

.composeStudent:hover {
  background: #f8fafc;
}

.composeStudent:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.composeAvatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--line);
}

.composeAvatar.placeholder {
  display: inline-block;
}

.composeStudentMain {
  flex: 1 1 auto;
  min-width: 0;
}

.composeStudentName {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
}

.composeStudentMeta {
  margin-top: 2px;
  font-size: 12px;
}

.chatList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatEmptyState {
  border-radius: 18px;
  border: 1px dashed rgba(59, 130, 246, 0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(239, 246, 255, 0.92));
  padding: 18px;
}

.chatEmptyState.compact {
  padding: 16px;
}

.chatEmptyEyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.chatEmptyTitle {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
}

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

.chatQuickStartHeader {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-dark);
}

.chatQuickStartHint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.chatQuickStartList {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatContactShell {
  display: grid;
  gap: 6px;
  width: 100%;
}

.chatContactToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.chatContactLabel {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-dark);
}

.chatContactToolbarActions {
  display: flex;
  gap: 4px;
}

.chatContactField {
  margin: 0;
}

.chatContactField .input {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.chatDetailPrompt {
  max-width: 280px;
  padding: 14px;
}

.chatDetailPrompt .chatEmptyTitle {
  margin-top: 0;
  font-size: 18px;
}

.chatItem {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 16px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
}

.chatItem:hover {
  background: #f8fafc;
}

.chatItem.unread {
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.08);
}

.chatItem.selected {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
}

.chatAvatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: 0 0 auto;
  object-fit: cover;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--line);
}

.chatAvatar.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--navy-dark);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.chatMain {
  flex: 1 1 auto;
  min-width: 0;
}

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

.chatName {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatOnlineDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.96);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.90);
  flex: 0 0 auto;
}

.chatTime {
  flex: 0 0 auto;
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.chatPreview {
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chatBadge {
  flex: 0 0 auto;
  min-width: 22px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: #dbeafe;
  border: 1px solid #b8cbf3;
  color: #1e3a8a;
}

.chatThread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.chatMsgRow {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chatMsgRow.me {
  justify-content: flex-end;
}

.chatMsgAvatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  flex: 0 0 auto;
  object-fit: cover;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--line);
}

.chatMsgAvatar.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--navy-dark);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.chatInfo {
  align-self: center;
  max-width: 92%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(0,0,0,0.05);
}

.chatMsg {
  max-width: 84%;
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
}

.chatMsg.me {
  margin-left: auto;
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.20);
}

.chatMsgMeta {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 4px;
}

.chatMsgMeta.me {
  margin: 6px 0 0;
  text-align: right;
}

.chatMsgText {
  white-space: pre-wrap;
  color: var(--ink);
}

.chatComposer {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding-top: 10px;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.0), rgba(248, 250, 252, 0.92) 24px);
}

.chatComposerInput {
  min-height: 44px;
  resize: vertical;
}

.chatPickList {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatPickUser {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 16px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
  cursor: pointer;
}

.chatContactShell .chatPickUser {
  gap: 7px;
  border-radius: 8px;
  padding: 5px 6px;
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  background: transparent;
  border: 1px solid transparent;
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

.chatContactShell .chatPickUser:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.16);
}

.chatContactShell .chatAvatar {
  width: 20px;
  height: 20px;
  border-radius: 7px;
}

.chatContactShell .chatMain {
  flex: 0 1 auto;
}

.chatContactShell .chatName {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.chatContactShell .chatPreview {
  margin-top: 1px;
  font-size: 10px;
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatContactShell .pill {
  min-width: 0;
  height: 14px;
  padding: 0 4px;
  font-size: 9px;
}

.chatContactShell .chatPickList {
  gap: 3px;
  align-items: stretch;
}

.chatContactShell .chatTop {
  gap: 6px;
}

.chatPickUser:hover {
  background: #f8fafc;
}

.chatPickUser.selected {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
}

.chatQuickStartCard {
  padding-right: 10px;
}

.chatQuickStartAction {
  flex: 0 0 auto;
  white-space: nowrap;
}

.inviteList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inviteItem {
  display: flex;
  gap: 12px;
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
}

.inviteSide {
  flex: 0 0 auto;
  width: 52px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.inviteMain {
  flex: 1 1 auto;
  min-width: 0;
}

.inviteTitle {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
}

.inviteDesc {
  margin-top: 4px;
  white-space: pre-wrap;
}

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

.bottomNav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  gap: 10px;
  background: rgba(244, 247, 251, 0.86);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}

.bottomNavItem {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(0,0,0,0.05);
}

.bottomNavLabel {
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.bottomNavItem.active {
  color: var(--navy-dark);
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.20);
}

.bottomNavBadge {
  display: none;
  position: absolute;
  top: 6px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.bottomNavBadge.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.roleBig {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.details,
.advanced {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid var(--line);
  padding: 12px 14px;
}

.details summary,
.advanced summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--muted);
}

.advancedBody {
  margin-top: 10px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0 0 4px;
}

.subtitle {
  margin: 0 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--button-surface);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  box-shadow: none;
}

.btn:hover {
  background: var(--button-surface-hover);
  border-color: #d8cdb0;
}

.btn.primary {
  background: var(--button-primary-bg);
  border-color: transparent;
  color: var(--button-primary-text);
  box-shadow: none;
}

.btn.primary.costTone-low {
  background: var(--button-primary-bg);
  box-shadow: none;
}

.btn.primary.costTone-mid {
  background: #f59e0b;
  box-shadow: none;
}

.btn.primary.costTone-high {
  background: #ef4444;
  box-shadow: none;
  color: #ffffff;
}

.btn.primary:hover {
  filter: none;
  background: var(--button-primary-hover-bg);
}

.btn.primary .optionCost {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--navy-dark);
}

.btn.primary.costTone-high .optionCost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn.go {
  background: #16a34a;
  border-color: transparent;
  color: #ffffff;
  box-shadow: none;
}

.btn.go:hover {
  filter: brightness(1.03);
}

.btn.go .optionCost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.94);
}

.decisionQuickAction {
  padding: 10px 12px;
  border-radius: 16px;
  justify-content: space-between;
  gap: 10px;
  min-width: 132px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.decisionQuickAction::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 10px solid rgba(255, 255, 255, 0.96);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.decisionQuickActionLabel {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decisionQuickActionCost {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.94);
}

/* When the card is open, the big choice button below is clearer; hide the header quick-action. */
.decisionItem[open] .decisionQuickAction {
  display: none;
}

.btn.decisionSubmitFx {
  animation: decisionSubmitBtnPop 0.55s ease;
}

.execStatusSuccess {
  color: rgba(20, 83, 45, 0.94) !important;
  animation: decisionExecStatusPulse 0.8s ease;
}

@keyframes decisionSubmitBtnPop {
  0% {
    transform: scale(1);
    filter: saturate(1);
  }
  45% {
    transform: scale(1.035);
    filter: saturate(1.08);
  }
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
}

@keyframes decisionExecStatusPulse {
  0% {
    opacity: 0.75;
  }
  100% {
    opacity: 1;
  }
}

.decisionGameToast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  min-width: 250px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--game-toast-border);
  background: var(--game-toast-bg);
  box-shadow: 0 18px 40px var(--game-toast-shadow);
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.decisionGameToast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.guidedTutorialRewardToast {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  z-index: 92;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(420px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--reward-toast-border);
  background:
    radial-gradient(ellipse 120% 140% at 0% 0%, var(--reward-toast-glow), transparent 50%),
    var(--reward-toast-bg);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.34);
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -12px) scale(0.97);
  transition: opacity 180ms ease, transform 180ms ease;
}

.guidedTutorialRewardToast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.guidedTutorialRewardToastBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--reward-badge-bg);
  color: var(--reward-badge-text);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px var(--reward-badge-shadow);
}

.guidedTutorialRewardToastCopy {
  min-width: 0;
}

.guidedTutorialRewardToastTitle {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guidedTutorialRewardToastSub {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(239, 246, 255, 0.94);
  font-weight: 700;
}

.decisionGameToast.decisionPending-mid {
  border-color: rgba(245, 158, 11, 0.30);
  background: linear-gradient(120deg, rgba(217, 119, 6, 0.97) 0%, rgba(245, 158, 11, 0.97) 100%);
  box-shadow: 0 18px 40px rgba(180, 83, 9, 0.28);
}

.decisionGameToast.decisionPending-high {
  border-color: rgba(239, 68, 68, 0.34);
  background: linear-gradient(120deg, rgba(185, 28, 28, 0.97) 0%, rgba(239, 68, 68, 0.97) 100%);
  box-shadow: 0 18px 40px rgba(185, 28, 28, 0.30);
}

.decisionGameToastTitle {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.decisionGameToastSub {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.94;
  font-weight: 700;
}

@media (max-width: 720px) {
  .decisionGameToast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-width: 0;
    max-width: none;
  }

  .guidedTutorialRewardToast {
    left: 12px;
    right: 12px;
    width: auto;
    transform: translateY(-12px) scale(0.97);
  }

  .guidedTutorialRewardToast.show {
    transform: translateY(0) scale(1);
  }
}

.btn.active {
  border-color: #d8cdb0;
  background: var(--button-surface-active);
}

.btn.active:hover {
  background: var(--button-surface-active-hover);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hero .btn {
  background: #f8fafc;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}

.hero .btn:hover {
  background: #e2e8f0;
}

.hero .btn.primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}

.hero .btn.primary:hover {
  background: var(--button-primary-hover-bg);
  filter: none;
}

.hero .btn.active {
  background: var(--button-surface-active);
  border-color: #d8cdb0;
}

.hero .btn.active:hover {
  background: var(--button-surface-active-hover);
}

.field {
  margin: 0 0 12px;
}

.label {
  display: block;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--muted);
}

.input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--navy-dark);
  outline: none;
}

.input:focus {
  border-color: rgba(225, 29, 72, 0.75);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.taglist .pill {
  margin: 0 6px 6px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.hero .pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
}

.heroStatLabel {
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.82;
  color: var(--muted);
}

.heroStatValue {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--navy-dark);
}

.heroBadges a.pill {
  cursor: pointer;
}

.heroBadges a.pill:hover {
  background: var(--line);
}

.heroStat {
  position: relative;
  overflow: visible;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.heroStatValue {
  transition: color 180ms ease;
}

.heroStatCueUp {
  border-color: rgba(22, 101, 52, 0.28) !important;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.10);
}

.heroStatCueDown {
  border-color: rgba(185, 28, 28, 0.24) !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}

.heroStatCueUp .heroStatValue {
  color: #166534;
  animation: heroStatValueNudge 420ms ease;
}

.heroStatCueDown .heroStatValue {
  color: #b91c1c;
  animation: heroStatValueNudge 420ms ease;
}

.heroStatDelta {
  position: absolute;
  top: -7px;
  right: -6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(15, 36, 57, 0.14);
  animation: heroStatDeltaFade 3.4s ease forwards;
}

.heroStatDeltaUp {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.16);
}

.heroStatDeltaDown {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.14);
}

.heroStatRewardBurst {
  border-color: rgba(255, 181, 0, 0.42) !important;
  box-shadow:
    0 0 0 4px rgba(255, 181, 0, 0.16),
    0 14px 28px rgba(255, 181, 0, 0.18),
    0 0 32px rgba(15, 170, 148, 0.16);
  animation: heroStatRewardBurst 1.8s ease;
}

.heroStatRewardBurst .heroStatValue {
  color: #a16207;
}

@keyframes heroStatDeltaFade {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }

  12%,
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

@keyframes heroStatValueNudge {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-1px) scale(1.04);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes heroStatRewardBurst {
  0% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 0 rgba(255, 181, 0, 0),
      0 8px 18px rgba(255, 181, 0, 0.10);
  }

  24% {
    transform: translateY(-2px) scale(1.08);
    box-shadow:
      0 0 0 6px rgba(255, 181, 0, 0.18),
      0 18px 36px rgba(255, 181, 0, 0.20),
      0 0 36px rgba(15, 170, 148, 0.18);
  }

  62% {
    transform: translateY(0) scale(1.03);
    box-shadow:
      0 0 0 4px rgba(255, 181, 0, 0.14),
      0 12px 28px rgba(255, 181, 0, 0.16),
      0 0 26px rgba(15, 170, 148, 0.14);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 0 rgba(255, 181, 0, 0),
      0 8px 18px rgba(255, 181, 0, 0.10);
  }
}

.heroBreakingValue {
  display: inline-block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  color: var(--navy-dark);
}

.kvs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.05);
}

.kv b {
  font-variant-numeric: tabular-nums;
}

.error {
  color: #b91c1c;
}

.ok {
  color: #166534;
}

.tiny {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .inviteHeroCard {
    padding: 18px 18px 16px;
  }

  .inviteHeroHud {
    padding: 12px 14px;
  }

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

  .inviteHeroHudCodeRow {
    flex-direction: column;
    align-items: stretch;
  }

  .inviteCourseCodePill {
    min-width: 0;
    width: 100%;
    justify-content: space-between;
    letter-spacing: 0.08em;
  }

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

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

  .inviteSignedInActions .btn,
  .inviteSignedInActions a.btn {
    width: 100%;
  }
}

.infoTooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 6px;
  outline: none;
}

.infoTooltipIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: rgba(219, 234, 254, 0.9);
  color: #1e3a8a;
  font-size: 10px;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
}

.infoTooltipBox {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-2px);
  width: 260px;
  max-width: calc(100vw - 40px);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  z-index: 40;
}

.infoTooltipBox::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(15, 23, 42, 0.96) transparent;
}

.infoTooltip:hover .infoTooltipBox,
.infoTooltip:focus .infoTooltipBox,
.infoTooltip:focus-within .infoTooltipBox {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.infoTooltip--title {
  margin-left: 8px;
}

.infoTooltip--hero {
  margin-left: 8px;
}

.heroStatLabel,
.actionsPaneLabel,
#positionGoalsCard .title,
#actionsCard .title,
.reactPositionGoalsCard .title,
.reactActionsShellCard .title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

#positionGoalsCard {
  padding: 12px 14px;
  overflow: hidden;
}

#missionCard {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.10);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.missionGoalsHeader {
  gap: 10px;
}

.missionGoalsHeaderCopy {
  min-width: 0;
}

.missionGoalsHeaderActions,
.missionGoalsSectionActions {
  flex: 0 0 auto;
}

.missionGoalsDivider {
  height: 1px;
  margin: 12px 0;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.40), rgba(148, 163, 184, 0.18));
}

.missionGoalsSectionHead {
  gap: 12px;
}

.missionGoalsSectionSubcopy {
  max-width: 640px;
}

.missionCardLead {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.missionCardPills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.missionCardPill {
  background: var(--mission-pill-bg);
  border-color: var(--mission-pill-border);
  color: var(--mission-pill-text);
}

.missionCardRole {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #10233c;
}

.missionCardCopy {
  max-width: 720px;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

.missionCardPlan {
  max-width: 720px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--mission-plan-text);
}

.missionCardGrid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.missionCardBlock {
  min-width: 0;
  padding: 12px 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.missionCardBlockLabel {
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.missionCardBlockTitle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  color: #10233c;
}

.missionCardBlockCopy {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

#goalFocusStatus {
  margin-top: 12px;
}

.positionGoalsQuickBadge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--quick-badge-border);
  background: var(--quick-badge-bg);
  color: var(--quick-badge-text);
  font-weight: 800;
  letter-spacing: 0.2px;
  flex: 0 0 auto;
}

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

.positionGoalRow {
  --goal-accent: #94a3b8;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 11px;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.05);
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.positionGoalRow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--goal-accent);
}

.positionGoalRow.hasAccent {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.positionGoalRow.focusable {
  cursor: pointer;
}

.positionGoalRow.focusable:hover {
  border-color: var(--goal-row-hover-border);
  box-shadow: 0 2px 10px var(--goal-row-hover-shadow);
}

.positionGoalRow.isFocused {
  border-color: var(--goal-row-focused-border);
  background: var(--goal-row-focused-bg);
  box-shadow: 0 3px 14px var(--goal-row-focused-shadow);
}

.positionGoalIcon,
.positionGoalIconPlaceholder {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.03);
  object-fit: contain;
  object-position: center;
}

.positionGoalText {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

.positionGoalName {
  font-weight: 800;
  letter-spacing: 0.1px;
  line-height: 1.2;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: initial;
}

.positionGoalSummary {
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.positionGoalPotential {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: auto;
  flex-wrap: wrap;
}

.positionGoalPotentialLabel {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  flex: 0 0 auto;
}

.positionGoalPotentialText {
  font-size: 11px;
  line-height: 1.35;
  color: #166534;
}

.positionGoalMeta {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.positionGoalMetaText {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.positionGoalChip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.30);
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.positionGoalChipPrimary {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}

.positionGoalsMore {
  margin-top: 6px;
  font-size: 12px;
}

.goalFocusBar {
  --goal-accent: #2563eb;
  position: relative;
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.10);
  overflow: hidden;
}

.goalFocusBar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--goal-accent);
}

.goalFocusHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.goalFocusHeadCopy {
  min-width: 0;
  flex: 1 1 320px;
}

.goalFocusPill {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.26);
  color: #1e3a8a;
  font-weight: 900;
}

.goalFocusTitle {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  color: #0f172a;
}

.goalFocusText {
  margin-top: 6px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #1e3a8a;
}

.goalFocusGrid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.goalFocusSection {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.goalFocusSectionCoordinate {
  border-color: rgba(22, 163, 74, 0.32);
  background: rgba(240, 253, 244, 0.86);
}

.goalFocusSectionCoordinate .goalFocusSectionEyebrow {
  color: #166534;
}

.goalFocusSectionCoordinate .goalFocusPerson {
  border-color: rgba(22, 163, 74, 0.24);
  background: rgba(255, 255, 255, 0.9);
}

.goalFocusSectionOpposition {
  border-color: rgba(220, 38, 38, 0.30);
  background: rgba(254, 242, 242, 0.88);
}

.goalFocusSectionOpposition .goalFocusSectionEyebrow {
  color: #b91c1c;
}

.goalFocusSectionOpposition .goalFocusPerson {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.goalFocusSectionEyebrow {
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #1d4ed8;
}

.goalFocusSectionTitle {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  color: #0f172a;
}

.goalFocusSectionCopy {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}

.goalFocusActionList {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goalFocusCategoryGrid {
  margin-top: 8px;
}

.goalFocusCategoryGrid .catCard {
  padding: 12px;
  gap: 12px;
}

.goalFocusCategoryGrid .catImg,
.goalFocusCategoryGrid .catImgPlaceholder {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.goalFocusCategoryGrid .catCount {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
}

.goalFocusCategoryGrid .catSub {
  font-size: 11px;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.goalFocusCategoryGrid .catSubMini {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.2;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.goalFocusCategoryBtn {
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--goal-focus-btn-border);
  background: var(--goal-focus-btn-bg);
  color: var(--goal-focus-btn-text);
  font-weight: 800;
  text-align: left;
}

.goalFocusCategoryBtn:hover {
  border-color: var(--goal-focus-btn-hover-border);
  background: var(--goal-focus-btn-hover-bg);
}

.goalFocusCategoryBtn.isActive {
  border-color: rgba(22, 163, 74, 0.30);
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.goalFocusCategoryBtnSecondary {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
}

.goalFocusPlanList {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.goalFocusPlanStep {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.96);
}

.goalFocusPlanNumber {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--goal-focus-number-bg);
  color: var(--goal-focus-number-text);
  font-size: 12px;
  font-weight: 900;
}

.goalFocusPlanBody {
  min-width: 0;
  flex: 1 1 auto;
}

.goalFocusPlanLabel {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  color: #0f172a;
}

.goalFocusPlanCopy {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #334155;
}

.goalFocusCoachNote {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px dashed var(--goal-focus-note-border);
  background: var(--goal-focus-note-bg);
  color: var(--goal-focus-note-text);
  font-size: 12px;
  line-height: 1.45;
}

.goalFocusCoachNoteLabel {
  font-weight: 900;
  margin-right: 6px;
}

.goalFocusLearning {
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 12px;
  border: 1px dashed rgba(22, 163, 74, 0.22);
  background: rgba(240, 253, 244, 0.84);
  color: #166534;
  font-size: 11px;
  line-height: 1.4;
}

.goalFocusLearningLabel {
  font-weight: 900;
  margin-right: 6px;
}

.goalFocusRewardRow {
  margin-top: 10px;
  padding-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.goalFocusRewardStack {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.goalFocusRewardLabel {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.10);
  color: #166534;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.goalFocusRewardChips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.goalFocusMetaRow {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.goalFocusMetaItem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.78);
}

.goalFocusMetaLabel {
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  flex: 0 0 auto;
}

.goalFocusMetaText {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #334155;
}

.goalFocusRewardText {
  font-size: 12px;
  line-height: 1.4;
  color: #166534;
  font-weight: 700;
}

.goalFocusPersonList {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.goalFocusPerson {
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.92);
}

.goalFocusPersonName {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
}

.goalFocusPersonCopy {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #334155;
}

.goalFocusPersonExample {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: #1d4ed8;
}

.goalFocusEmpty {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.goalFocusClearBtn {
  padding: 7px 10px;
  border-radius: 10px;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedItem {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.05);
}

.feedSide {
  flex: 0 0 auto;
  width: 52px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.feedMain {
  flex: 1 1 auto;
  min-width: 0;
}

.feedTitle {
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0 0 4px;
}

.feedBody {
  color: var(--muted);
  white-space: pre-wrap;
}

.feedActions {
  margin-top: 10px;
}

.thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--line);
}

.feedType {
  font-weight: 800;
  letter-spacing: 0.4px;
}

.feedType-news {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.30);
}

.feedType-popup {
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.30);
}

.feedType-goal {
  background: #dcfce7;
  border-color: rgba(34, 197, 94, 0.28);
}

.feedType-notif {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.30);
}

@media (min-width: 1020px) {
  .actionsSplit {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 14px;
  }
}

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

  .actionsBadgeInlineFrame {
    min-height: 860px;
  }
}

@media (max-width: 520px) {
  .kvs { grid-template-columns: 1fr; }
  .heroTitle { font-size: 34px; }
  .missionCardGrid { grid-template-columns: 1fr; }
  .positionGoalsGrid { grid-template-columns: 1fr; }
  .goalFocusGrid { grid-template-columns: 1fr; }
  .missionGoalsHeader,
  .missionGoalsSectionHead {
    align-items: flex-start;
  }
  .missionGoalsHeaderActions,
  .missionGoalsSectionActions {
    width: 100%;
    justify-content: flex-start;
  }
  .guidedTutorialMini.guidedTutorialMiniCompact {
    left: auto;
    right: 8px;
    width: min(236px, calc(100vw - 24px));
  }
}

@media (max-width: 980px) and (min-width: 521px) {
  .missionCardGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .positionGoalsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goalFocusGrid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bottomNav { display: flex; }
  .wrap { padding-bottom: 118px; }
}

:root[data-portal-theme='virginia'] .tile.hot {
  border-color: rgba(139, 30, 63, 0.34);
  box-shadow: 0 10px 30px rgba(139, 30, 63, 0.10);
}

:root[data-portal-theme='virginia'] .tile.hot .tileCount {
  background: rgba(200, 145, 31, 0.16);
  border-color: rgba(200, 145, 31, 0.24);
}

:root[data-portal-theme='virginia'] .guidedTourSpotlight::after {
  box-shadow:
    0 0 0 6px rgba(139, 30, 63, 0.18),
    0 0 26px rgba(139, 30, 63, 0.24),
    0 0 52px rgba(200, 145, 31, 0.22);
}

:root[data-portal-theme='virginia'] .heroStat.guidedTourSpotlight .infoTooltipIcon,
:root[data-portal-theme='virginia'] .heroPillLink.guidedTourSpotlight .infoTooltipIcon {
  border-color: rgba(139, 30, 63, 0.30);
  background: rgba(139, 30, 63, 0.12);
  color: #8b1e3f;
}

:root[data-portal-theme='virginia'] .guidedTutorialViewportHalo::before {
  background: linear-gradient(135deg, #8b1e3f 0%, #c8911f 100%);
}

:root[data-portal-theme='virginia'] .actionsManualSurface {
  background: linear-gradient(145deg, rgba(77, 24, 44, 0.995), rgba(31, 40, 68, 0.97));
}

:root[data-portal-theme='virginia'] .decisionItem::before {
  background: linear-gradient(90deg, #c8911f 0%, #8b1e3f 58%, #5f152c 100%);
}

:root[data-portal-theme='virginia'] .decisionItem[open] {
  border-color: rgba(139, 30, 63, 0.26);
  box-shadow: 0 10px 30px rgba(139, 30, 63, 0.10);
}

:root[data-portal-theme='virginia'] .decisionItem.decisionPending::after {
  background: linear-gradient(120deg, rgba(139, 30, 63, 0.00) 12%, rgba(139, 30, 63, 0.12) 52%, rgba(139, 30, 63, 0.00) 88%);
}

:root[data-portal-theme='virginia'] .decisionLockBadge {
  background: linear-gradient(90deg, #8b1e3f 0%, #c8911f 100%);
  box-shadow: 0 10px 24px rgba(109, 23, 49, 0.24);
}

:root[data-portal-theme='virginia'] .decisionSnippetChip {
  border-color: rgba(139, 30, 63, 0.24);
  background: rgba(139, 30, 63, 0.10);
  color: #6d1731;
}

:root[data-portal-theme='virginia'] .decisionCopyPill {
  background: rgba(139, 30, 63, 0.08);
  border-color: rgba(139, 30, 63, 0.18);
  color: #6d1731;
}

:root[data-portal-theme='virginia'] .targetDetails[open] {
  border-color: rgba(139, 30, 63, 0.24);
  box-shadow: 0 10px 30px rgba(139, 30, 63, 0.10);
}

:root[data-portal-theme='virginia'] .targetItem.selected {
  border-color: rgba(139, 30, 63, 0.30);
  background: rgba(139, 30, 63, 0.08);
  box-shadow: 0 10px 26px rgba(139, 30, 63, 0.10);
}

:root[data-portal-theme='virginia'] .targetItem input {
  accent-color: #8b1e3f;
}

:root[data-portal-theme='virginia'] .targetItem input:checked + .targetItemMain .targetItemName {
  color: #8b1e3f;
}

:root[data-portal-theme='virginia'] .targetBlock.singlePick {
  border-color: rgba(139, 30, 63, 0.22);
  background: linear-gradient(180deg, #fcf6f3 0%, #faf1f3 100%);
}

:root[data-portal-theme='virginia'] .targetBlock.singlePick.hasSelection {
  border-color: rgba(139, 30, 63, 0.30);
}

:root[data-portal-theme='virginia'] .targetBlock.singlePick .targetSelectedLive {
  border-color: rgba(139, 30, 63, 0.25);
  background: rgba(139, 30, 63, 0.08);
}

:root[data-portal-theme='virginia'] .targetBlock.singlePick .targetItem {
  border-color: rgba(200, 145, 31, 0.22);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 246, 243, 0.96) 100%);
}

:root[data-portal-theme='virginia'] .targetBlock.singlePick .targetItem::before {
  color: #8b1e3f;
  background: rgba(139, 30, 63, 0.10);
  border: 1px solid rgba(139, 30, 63, 0.26);
}

:root[data-portal-theme='virginia'] body {
  background-image:
    radial-gradient(circle at top right, rgba(200, 145, 31, 0.20) 0%, transparent 34%),
    radial-gradient(circle at top left, rgba(139, 30, 63, 0.08) 0%, transparent 28%),
    linear-gradient(180deg, #f8f1ed 0%, #f6efea 260px);
}

:root[data-portal-theme='virginia'] .kicker,
:root[data-portal-theme='virginia'] .inviteHeroBrand {
  color: #f0d2a0;
}

:root[data-portal-theme='virginia'] .heroTitle,
:root[data-portal-theme='virginia'] .inviteHeroTitle,
:root[data-portal-theme='virginia'] .tileTitle,
:root[data-portal-theme='virginia'] .catTitle,
:root[data-portal-theme='virginia'] .decisionTitle,
:root[data-portal-theme='virginia'] .missionCardRole,
:root[data-portal-theme='virginia'] .missionCardBlockTitle,
:root[data-portal-theme='virginia'] .guidedTutorialTitle,
:root[data-portal-theme='virginia'] .actionsManualTitle {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

:root[data-portal-theme='virginia'] .heroSubLabel {
  background: rgba(255, 249, 242, 0.92);
  border-color: rgba(200, 145, 31, 0.26);
  color: #6d1731;
}

:root[data-portal-theme='virginia'] .card,
:root[data-portal-theme='virginia'] .tile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 244, 241, 0.98) 100%);
  border-color: rgba(139, 30, 63, 0.12);
  box-shadow: 0 10px 24px rgba(77, 24, 44, 0.06);
}

:root[data-portal-theme='virginia'] .card.accent::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #c8911f 0%, #8b1e3f 62%, #5f152c 100%);
}

:root[data-portal-theme='virginia'] .card.guidedTutorialCard {
  background:
    radial-gradient(ellipse 120% 150% at 100% -16%, var(--tutorial-card-spot-a), transparent 38%),
    radial-gradient(ellipse 110% 140% at 0% 0%, var(--tutorial-card-spot-b), transparent 44%),
    linear-gradient(145deg, rgba(10, 18, 34, 0.985), rgba(18, 39, 66, 0.975));
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow:
    0 28px 64px rgba(8, 15, 30, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.10);
}

:root[data-portal-theme='virginia'] .card.guidedTutorialMini {
  background: var(--tutorial-mini-bg);
  border-color: var(--tutorial-mini-border);
  box-shadow:
    0 20px 42px rgba(16, 35, 60, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.56);
}

:root[data-portal-theme='virginia'] .hero .btn {
  background: rgba(255, 247, 239, 0.92);
  border-color: rgba(139, 30, 63, 0.14);
  color: #6d1731;
}

:root[data-portal-theme='virginia'] .hero .btn:hover {
  background: #f3e5df;
}

:root[data-portal-theme='virginia'] .hero .btn.primary {
  background: var(--button-primary-bg);
  border-color: var(--button-primary-border);
  color: var(--button-primary-text);
}

:root[data-portal-theme='virginia'] .hero .btn.primary:hover {
  background: var(--button-primary-hover-bg);
}

:root[data-portal-theme='virginia'] .hero .btn.active {
  background: rgba(139, 30, 63, 0.10);
  border-color: rgba(139, 30, 63, 0.18);
  color: #6d1731;
}

:root[data-portal-theme='virginia'] .hero .btn.active:hover {
  background: rgba(139, 30, 63, 0.14);
}

:root[data-portal-theme='virginia'] .hero .pill {
  background: rgba(255, 244, 230, 0.14);
  border-color: rgba(244, 211, 139, 0.18);
  color: #fff7ef;
}

:root[data-portal-theme='virginia'] .catCard,
:root[data-portal-theme='virginia'] .decisionItem,
:root[data-portal-theme='virginia'] .targetDetails,
:root[data-portal-theme='virginia'] .positionGoalRow,
:root[data-portal-theme='virginia'] .missionCardBlock {
  border-color: rgba(139, 30, 63, 0.12);
  box-shadow: 0 8px 20px rgba(77, 24, 44, 0.05);
}

:root[data-portal-theme='virginia'] .bottomNav {
  background: rgba(247, 240, 234, 0.90);
  border-top: 1px solid rgba(139, 30, 63, 0.12);
}

:root[data-portal-theme='virginia'] .bottomNavItem {
  background: rgba(139, 30, 63, 0.04);
  border-color: rgba(139, 30, 63, 0.10);
  color: #6f5561;
}

:root[data-portal-theme='virginia'] .bottomNavItem.active {
  background: rgba(139, 30, 63, 0.10);
  border-color: rgba(139, 30, 63, 0.20);
  color: #6d1731;
}

:root[data-portal-theme='virginia'] .hero,
:root[data-portal-theme='virginia'] .card,
:root[data-portal-theme='virginia'] .tile,
:root[data-portal-theme='virginia'] .btn,
:root[data-portal-theme='virginia'] .heroSubLabel,
:root[data-portal-theme='virginia'] .bottomNavItem,
:root[data-portal-theme='virginia'] .catCard,
:root[data-portal-theme='virginia'] .decisionItem,
:root[data-portal-theme='virginia'] .targetDetails,
:root[data-portal-theme='virginia'] .positionGoalRow,
:root[data-portal-theme='virginia'] .missionCardBlock,
:root[data-portal-theme='virginia'] .goalFocusCategoryBtn {
  border-radius: 12px;
}

:root[data-portal-theme='virginia'] .hero {
  padding-top: 24px;
}

:root[data-portal-theme='virginia'] .heroTitle,
:root[data-portal-theme='virginia'] .inviteHeroTitle {
  color: #5f152c;
}

:root[data-portal-theme='virginia'] .heroStatValue,
:root[data-portal-theme='virginia'] .dashboardMetricValue,
:root[data-portal-theme='virginia'] .heroJoinHudValue {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

:root[data-portal-theme='virginia'] .heroSubLabel,
:root[data-portal-theme='virginia'] .missionCardBlockLabel,
:root[data-portal-theme='virginia'] .inviteFieldLabel,
:root[data-portal-theme='virginia'] .positionGoalsQuickBadge {
  letter-spacing: 0.14em;
}

:root[data-portal-theme='virginia'] .card,
:root[data-portal-theme='virginia'] .tile,
:root[data-portal-theme='virginia'] .catCard,
:root[data-portal-theme='virginia'] .decisionItem,
:root[data-portal-theme='virginia'] .targetDetails,
:root[data-portal-theme='virginia'] .positionGoalRow,
:root[data-portal-theme='virginia'] .missionCardBlock {
  box-shadow:
    0 10px 24px rgba(77, 24, 44, 0.07),
    inset 0 0 0 1px rgba(255, 248, 241, 0.76);
}

:root[data-portal-theme='virginia'] .btn {
  font-weight: 900;
  letter-spacing: 0.01em;
}

:root[data-portal-theme='virginia'] .btn.primary,
:root[data-portal-theme='virginia'] .hero .btn.primary {
  background: linear-gradient(180deg, #8f2042 0%, #6d1731 100%);
  border-color: rgba(200, 145, 31, 0.22);
  box-shadow: 0 10px 22px rgba(77, 24, 44, 0.18);
}

:root[data-portal-theme='virginia'] .btn.primary:hover,
:root[data-portal-theme='virginia'] .hero .btn.primary:hover {
  background: linear-gradient(180deg, #7c1c39 0%, #561126 100%);
}

:root[data-portal-theme='virginia'] .todayCopy h2,
:root[data-portal-theme='virginia'] .missionCardBlockTitle,
:root[data-portal-theme='virginia'] .positionGoalName {
  color: #5f152c;
}

:root[data-portal-theme='virginia'] .missionCardBlock,
:root[data-portal-theme='virginia'] .positionGoalRow {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 241, 236, 0.98) 100%);
}

:root[data-portal-theme='virginia'] .heroPeriod,
:root[data-portal-theme='virginia'] .heroFoot,
:root[data-portal-theme='virginia'] .heroStatLabel {
  color: #6f5561;
}

:root[data-portal-theme='virginia'] .bottomNav {
  box-shadow: 0 -10px 24px rgba(77, 24, 44, 0.08);
}

/* ============================================================
   Gov 2: navy summary containers with white headings.
   Hero + the Today/Updates overview cards get the dark hero
   treatment; inner pills/buttons keep their own light surfaces
   so they stay readable. Decision cards, categories, goals
   rows and forms are intentionally left light.
   ============================================================ */
:root[data-portal-theme='gov2'] .hero,
:root[data-portal-theme='gov2'] #coreCard,
:root[data-portal-theme='gov2'] #updatesCard {
  border: 1px solid var(--hero-border);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 120% 130% at 95% -20%, var(--hero-spot-a), transparent 55%),
    radial-gradient(ellipse 110% 130% at -10% -45%, var(--hero-spot-b), transparent 50%),
    linear-gradient(140deg, var(--hero-bg-start), var(--hero-bg-end));
  color: var(--hero-text);
  box-shadow: 0 16px 36px rgba(8, 18, 36, 0.28);
}

/* white headings on the navy containers */
:root[data-portal-theme='gov2'] .hero .kicker,
:root[data-portal-theme='gov2'] .hero .heroTitle,
:root[data-portal-theme='gov2'] #coreCard > .title,
:root[data-portal-theme='gov2'] #updatesCard .title {
  color: var(--hero-heading);
}

/* white body / muted text on the navy containers */
:root[data-portal-theme='gov2'] .hero .heroSub,
:root[data-portal-theme='gov2'] .hero .heroSubText,
:root[data-portal-theme='gov2'] .hero .muted,
:root[data-portal-theme='gov2'] .hero .heroPeriod,
:root[data-portal-theme='gov2'] .hero .heroPeriodMeta,
:root[data-portal-theme='gov2'] .hero .heroPeriodMeta span,
:root[data-portal-theme='gov2'] #coreCard > .muted,
:root[data-portal-theme='gov2'] #coreCard #coreStatus,
:root[data-portal-theme='gov2'] #coreCard #roleStatus,
:root[data-portal-theme='gov2'] #updatesCard .muted {
  color: var(--hero-copy);
}

/* keep hero stat pills as readable light chips on the navy hero */
:root[data-portal-theme='gov2'] .hero .heroStatValue {
  color: var(--navy-dark);
}
:root[data-portal-theme='gov2'] .hero .heroStatLabel {
  color: var(--muted);
}

/* Goals + mission/role panels: navy card, white headings, goal rows
   stay light chips with dark text so the rich content stays readable. */
:root[data-portal-theme='gov2'] #missionCard,
:root[data-portal-theme='gov2'] #positionGoalsCard {
  border: 1px solid var(--hero-border);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 120% 130% at 95% -20%, var(--hero-spot-a), transparent 55%),
    radial-gradient(ellipse 110% 130% at -10% -45%, var(--hero-spot-b), transparent 50%),
    linear-gradient(140deg, var(--hero-bg-start), var(--hero-bg-end));
  color: var(--hero-text);
  box-shadow: 0 16px 36px rgba(8, 18, 36, 0.28);
}

:root[data-portal-theme='gov2'] #missionCard .missionCardRole,
:root[data-portal-theme='gov2'] #positionGoalsCard > .title,
:root[data-portal-theme='gov2'] #positionGoalsCard .title {
  color: var(--hero-heading);
}

:root[data-portal-theme='gov2'] #missionCard .missionCardCopy,
:root[data-portal-theme='gov2'] #missionCard .missionCardPlan,
:root[data-portal-theme='gov2'] #positionGoalsCard > .muted,
:root[data-portal-theme='gov2'] #positionGoalsCard .positionGoalsStatus.muted,
:root[data-portal-theme='gov2'] #positionGoalsCard #positionGoalsStatus.muted {
  color: var(--hero-copy);
}

/* goal rows: light chips with dark text on the navy card */
:root[data-portal-theme='gov2'] #positionGoalsCard .positionGoalRow {
  color: #10233c;
}

