/* ==========================================================================
   DAILY GAMES SUITE — MASTER BASE STYLESHEET (shared/css/base.css)
   Authoritative design tokens, resets, typography, and component skeletons.
   Complies with DESIGN.md and AGENTS.md ("No AI Slop" Standard).
   ========================================================================== */

:root {
  /* ========================================================================
     1. Signature Game Brand Colors
     ======================================================================== */
  /* Archipelago: Deep Ocean Blue & Beacon Glow */
  --brand-archipelago: #0284c7;
  --brand-archipelago-glow: #38bdf8;
  --brand-archipelago-bg: #0c1e34;
  --brand-archipelago-border: #1e3a5f;

  /* Topograph: Alpine Peak Green & Contour Glow */
  --brand-topograph: #059669;
  --brand-topograph-glow: #10b981;
  --brand-topograph-bg: #062b1b;
  --brand-topograph-border: #134e35;

  /* Oulipo: Sunburst Yellow & Amber Gold */
  --brand-oulipo: #eab308;
  --brand-oulipo-glow: #facc15;
  --brand-oulipo-bg: #291e06;
  --brand-oulipo-border: #66490b;

  /* Galaxies: Celestial Indigo & Starlight */
  --brand-galaxies: #4f46e5;
  --brand-galaxies-glow: #818cf8;
  --brand-galaxies-bg: #1e1b4b;
  --brand-galaxies-border: #3730a3;

  /* ========================================================================
     2. Typography Stacks & Scale
     ======================================================================== */
  --font-serif-display: "Literata", Georgia, "Times New Roman", serif;
  --font-serif-editorial: "Literata", Georgia, serif;
  --font-sans: "Libre Franklin", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  /* Modular Scale */
  --text-2xs: 0.70rem;   /* Badges, coordinates, micro markers */
  --text-xs: 0.80rem;    /* Subtitles, secondary stats */
  --text-sm: 0.875rem;   /* Compact controls, body copy */
  --text-base: 1.00rem;  /* Base paragraphs, standard inputs */
  --text-lg: 1.15rem;    /* Card headers, modal subheads */
  --text-xl: 1.45rem;    /* Section headers, modal titles */
  --text-2xl: 1.85rem;   /* Game masthead logos */

  /* ========================================================================
     3. Spatial Scale (4px increments)
     ======================================================================== */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.50rem;  /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1.00rem;  /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.50rem;  /* 24px */
  --space-8: 2.00rem;  /* 32px */

  /* ========================================================================
     4. Radii & Surface Elevations
     ======================================================================== */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);

  /* ========================================================================
     5. Tactile Motion Durations & Curves
     ======================================================================== */
  --duration-instant: 80ms;
  --duration-fast: 150ms;
  --duration-normal: 240ms;
  --ease-tactile: cubic-bezier(0.2, 0.0, 0.2, 1);

  /* ========================================================================
     6. Default Neutral Palette (Deep Slate Laboratory Baseline)
     ======================================================================== */
  --bg-deep: #0c1017;
  --bg-surface: #121822;
  --bg-card: #18202d;
  --bg-elevated: #202b3c;

  --border-subtle: #222d3d;
  --border-strong: #33435b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Universal Semantic Tokens */
  --status-correct: #10b981;
  --status-present: #f59e0b;
  --status-absent: #64748b;
  --status-danger: #ef4444;
  --status-warning: #f59e0b;
  --status-info: #38bdf8;
}

/* Light Mode Overrides for Broadsheets & Editorial Themes */
[data-color-scheme="light"],
.theme-light {
  --bg-deep: #f8f6f0;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #efece6;

  --border-subtle: #e2ddd5;
  --border-strong: #cdc7bc;

  --text-primary: #1c1917;
  --text-secondary: #78716c;
  --text-muted: #a8a29e;

  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 10px 25px rgba(28, 25, 23, 0.12);
}

/* ==========================================================================
   7. Modern Reset & Base Rules
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--brand-archipelago-glow);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

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

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

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   8. Standard Component Skeletons
   ========================================================================== */

/* --- 8.1 Masthead / Navigation Bar --- */
.header-bar,
.game-header {
  width: 100%;
  max-width: 680px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.header-brand,
.brand-wrapper {
  text-align: center;
  flex: 1;
}

.header-brand h1,
.brand-wrapper h1 {
  font-family: var(--font-serif-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  line-height: 1.15;
}

.header-brand .subtitle,
.brand-wrapper .subtitle {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* --- 8.2 Standard Buttons --- */
.icon-btn {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-tactile);
}

.icon-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.icon-btn:active {
  transform: translateY(1px);
}

.primary-btn {
  background: var(--brand-primary, var(--brand-archipelago));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all var(--duration-fast) var(--ease-tactile);
}

.primary-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.primary-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.1rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-tactile);
}

.secondary-btn:hover {
  background: var(--bg-card);
}

.secondary-btn:active {
  transform: translateY(1px);
}

.scorecard-pill-btn {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all var(--duration-fast) var(--ease-tactile);
}

.scorecard-pill-btn:hover {
  background: var(--bg-card);
  transform: translateY(-1px);
}

/* --- 8.3 Proven Modal Dialog Skeletons --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  animation: modalFadeIn var(--duration-fast) ease-out;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: modalSlideIn var(--duration-fast) var(--ease-tactile);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-serif-display);
  font-size: var(--text-lg);
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-xs);
  transition: color var(--duration-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  line-height: 1.55;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* --- 8.4 Toast Notification System --- */
.toast-container {
  position: fixed;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

.toast {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-8px);
  transition: all var(--duration-fast) ease-out;
  pointer-events: auto;
}

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

/* --- 8.5 Shared Keyframes --- */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ==========================================================================
   9. Shared Suite UI & Statistics Modal Components
   ========================================================================== */

/* Mobile Header Overflow Menu */
.header-actions {
  position: relative;
}
.suite-more-btn {
  display: none;
}
.suite-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 900;
}
.suite-more-menu.open {
  display: flex;
}
.suite-more-item {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.suite-more-item:hover {
  background: var(--bg-surface);
}

@media (max-width: 580px) {
  .header-actions .icon-btn {
    width: 38px;
    height: 38px;
  }
  .header-actions #theme-btn,
  .header-actions #mute-btn,
  .header-actions #help-btn {
    display: none;
  }
  .header-actions .suite-more-btn {
    display: inline-flex;
  }
}

/* Timer Hide / Show Mask */
.status-stat.suite-timer-clickable {
  cursor: pointer;
  user-select: none;
}
.status-stat.suite-timer-masked strong {
  letter-spacing: 0.08em;
  opacity: 0.75;
}

/* Visual Rule Diagrams in Help Modals */
.suite-help-diagrams {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  padding: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.suite-diagram-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}
.suite-diagram-caption {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.3;
}
.suite-diagram-caption.is-good { color: #15803d; }
.suite-diagram-caption.is-bad { color: #dc2626; }
html[data-theme="dark"] .suite-diagram-caption.is-good { color: #4ade80; }
html[data-theme="dark"] .suite-diagram-caption.is-bad { color: #f87171; }

.diag-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 30px);
  grid-template-rows: repeat(2, 30px);
  gap: 3px;
}
.diag-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 28px);
  grid-template-rows: repeat(3, 28px);
  gap: 2px;
  position: relative;
}
.diag-grid-4row {
  display: grid;
  grid-template-columns: 24px repeat(4, 24px);
  gap: 3px;
  align-items: center;
}
.diag-cell {
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.diag-arch-sea { background: #1a568c; border-color: #144570; color: #ffffff; }
.diag-arch-land { background: #ead6a6; border-color: #c8b282; color: #121212; }
.diag-arch-pool { background: #1a568c; border-color: #ef4444; color: #fca5a5; }
.diag-topo-vp { background: #ecfdf5; border-color: #10b981; color: #047857; border-radius: 5px; height: 24px; font-size: 0.72rem; font-weight: 800; display:flex; align-items:center; justify-content:center; border-width:1.5px; border-style:solid; }
.diag-topo-dim { opacity: 0.48; }
.diag-gal-a { background: #e0e7ff; border-color: #4338ca; color: #1e1b4b; }
.diag-gal-b { background: #ccfbf1; border-color: #0f766e; color: #134e4a; }
.diag-oul-anc { background: #18181b; color: #f7da21; border-color: #18181b; }
.diag-oul-crs { background: #fef08a; color: #121212; border-color: #d4a100; }
html[data-theme="dark"] .diag-topo-vp { background: rgba(16,185,129,0.16); color: #34d399; }
html[data-theme="dark"] .diag-gal-a { background: #24264a; border-color: #818cf8; color: #e0e7ff; }
html[data-theme="dark"] .diag-gal-b { background: #153634; border-color: #5eead4; color: #ccfbf1; }

/* Confirm Dialog */
.suite-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.35rem;
}
.suite-btn-ghost {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  padding: 0.6rem 1.15rem;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.suite-btn-ghost:hover { background: var(--bg-elevated); }

@media (max-width: 440px) {
  .suite-help-diagrams { grid-template-columns: 1fr; }
}

/* Suite Statistics & Overview Modal */
.suite-stats-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}
.suite-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.7rem 0.4rem;
  text-align: center;
}
.suite-kpi-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.suite-kpi-label {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.suite-daily-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
}
.suite-daily-banner.is-done {
  border-color: var(--stats-accent, #15803d);
}
.suite-cal-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.suite-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.suite-cal-cell {
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
button.suite-cal-cell {
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
button.suite-cal-cell:hover {
  border-color: var(--text-primary);
  transform: translateY(-1px);
}
.suite-cal-cell.is-today {
  border-color: var(--text-primary);
  border-width: 1.5px;
}
.suite-cal-cell.is-solved {
  background: var(--stats-accent, #059669);
  border-color: var(--stats-accent, #059669);
  color: #ffffff;
}
.suite-cal-cell.is-solved.is-late {
  background: transparent;
  border: 1.5px dashed var(--stats-accent, #059669);
  color: var(--text-primary);
}
.suite-cal-hint {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.suite-sweep-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-secondary);
}
.suite-backup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}
.suite-backup-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.suite-backup-btn {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  padding: 0.32rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.suite-backup-btn:hover {
  border-color: var(--text-primary);
}
.suite-backup-status {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.suite-overview-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.suite-overview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
}
.suite-overview-row:hover {
  border-color: var(--border-strong);
}
.suite-overview-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.suite-pill-btn {
  background: var(--stats-accent, #059669);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.suite-pill-btn:hover {
  filter: brightness(1.08);
}
@media (max-width: 480px) {
  .suite-stats-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   10. Account, Daily Vault, Endless Quota & Paddle Upgrade Modals
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.account-pill-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  height: 34px;
  padding: 0 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui, var(--font-sans));
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.account-pill-btn:hover {
  border-color: var(--border-strong);
}
.account-pill-btn.is-subscriber,
.suite-account-icon-btn.is-subscriber {
  border-color: var(--brand-topograph, #059669);
  color: var(--brand-topograph, #059669);
}
.account-pill-btn.is-signed-in,
.suite-account-icon-btn.is-signed-in {
  border-color: var(--border-strong);
}

.suite-modal-lead {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.suite-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.suite-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.suite-text-input {
  width: 100%;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.68rem 0.85rem;
  font-family: var(--font-ui, var(--font-sans));
  font-size: 0.94rem;
}
.suite-otp-input {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: center;
}
.suite-turnstile-box {
  min-height: 0;
}
.suite-form-status {
  min-height: 1.1em;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.suite-account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.suite-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.suite-account-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.suite-account-email {
  font-size: 0.92rem;
  color: var(--text-primary);
}
.suite-account-submeta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.suite-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.suite-tier-badge.is-pro {
  background: rgba(5, 150, 105, 0.14);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.45);
}
html[data-theme="dark"] .suite-tier-badge.is-pro {
  color: #34d399;
}
.suite-account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.suite-account-row-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.suite-account-row-btns > button {
  flex: 1 1 auto;
}

.suite-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
.suite-perks-list strong {
  color: var(--text-primary);
}
.suite-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.suite-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-ui, var(--font-sans));
}
.suite-plan-card.is-selected {
  border-color: var(--brand-topograph, #059669);
  box-shadow: 0 0 0 1px var(--brand-topograph, #059669);
}
.suite-plan-badge {
  position: absolute;
  top: -9px;
  right: 10px;
  background: var(--brand-topograph, #059669);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  text-transform: uppercase;
}
.suite-plan-name {
  font-weight: 700;
  font-size: 0.88rem;
}
.suite-plan-price {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.suite-plan-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.suite-vault-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.suite-vault-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 320px;
  overflow-y: auto;
}
.suite-vault-row.is-locked {
  opacity: 0.82;
}
.suite-vault-cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}
.suite-cal-cell.is-locked {
  opacity: 0.55;
}
.suite-cal-cell.is-prelaunch {
  opacity: 0.35;
  cursor: default;
}
.suite-endless-quota {
  margin-top: 0.25rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.suite-inline-link {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--brand-topograph, #059669);
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
