/* ============================================================
   COLLINS COMMAND — Obsidian Glass
   Mission Control UI System v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   1. TOKENS
   ============================================================ */

:root {
  /* Backgrounds: cooler, deeper obsidian */
  --bg-deep: #0a0b0e;
  --bg-base: #0f1015;
  --bg-raised: #16171f;
  --bg-overlay: #1e1f2a;
  --bg-glass: rgba(22, 23, 31, 0.75);

  /* Borders */
  --border: #252637;
  --border-subtle: #1c1d2a;
  --border-bright: #353650;

  /* Text hierarchy */
  --text-primary: #edeef3;
  --text-secondary: #888a9e;
  --text-tertiary: #555672;
  --text-disabled: #363750;

  /* Primary accent: violet */
  --accent: #7c5cfc;
  --accent-dim: rgba(124, 92, 252, 0.12);
  --accent-bright: #9b7ffd;

  /* Secondary accent: teal */
  --accent-secondary: #5eead4;

  /* Status Colors */
  --nominal: #22c55e;
  --nominal-dim: rgba(34, 197, 94, 0.10);
  --caution: #eab308;
  --caution-dim: rgba(234, 179, 8, 0.10);
  --alert: #ef4444;
  --alert-dim: rgba(239, 68, 68, 0.10);
  --info: #3b82f6;
  --info-dim: rgba(59, 130, 246, 0.10);

  /* Station Accents */
  --station-brief: #7c5cfc;
  --station-hockey: #3b82f6;
  --station-media: #ec4899;
  --station-trading: #22c55e;
  --station-protocol: #a855f7;
  --station-infra: #5eead4;

  /* ---- Old variable aliases (JS inline styles use these) ---- */
  --hull: var(--bg-base);
  --hull-deep: var(--bg-deep);
  --hull-raised: var(--bg-raised);
  --hull-overlay: var(--bg-overlay);
  --readout: var(--text-primary);
  --readout-dim: var(--text-secondary);
  --readout-faint: var(--text-tertiary);
  --readout-off: var(--text-disabled);
  --instrument-glow: var(--accent);
  --instrument-glow-dim: var(--accent-dim);
  --instrument-glow-bright: var(--accent-bright);
  --bulkhead: var(--border);
  --bulkhead-subtle: var(--border-subtle);
  --bulkhead-bright: var(--border-bright);
  --red: var(--alert);
  --amber: var(--caution);
  --green: var(--nominal);

  /* Typography */
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', monospace;
  --font-heading: var(--font-sans);
  --font-data: var(--font-mono);

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.3125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.1em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Radius: rounder */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;

  /* Layout */
  --topbar-h: 44px;
  --bottombar-h: 60px;
  --sidebar-w: 380px;

  /* Shadows for glass cards */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
  --shadow-elevated: 0 4px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   2. BASE RESET
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

img, video {
  display: block;
  max-width: 100%;
}

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

/* --- Scrollbar --- */

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: var(--radius-sm);
}

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

/* --- Selection --- */

::selection {
  background: rgba(124, 92, 252, 0.3);
  color: var(--text-primary);
}

/* --- Smooth scroll --- */

html {
  scroll-behavior: smooth;
}

/* --- Reduced motion --- */

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

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   3. APP SHELL + SECTION ANIMATION
   ============================================================ */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-deep);
}

.content {
  display: block;
  flex: 1;
  padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  min-height: 0;
  overflow-y: auto;
  height: calc(100vh - var(--topbar-h));
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.section {
  display: none;
  padding: var(--space-4) var(--space-8);
  max-width: 1280px;
  width: 100%;
}

.section--active {
  display: block;
  animation: fadeInUp 0.35s var(--ease);
}

.section--active[data-slide-dir="right"] {
  animation: slideFromRight 0.3s var(--ease);
}

.section--active[data-slide-dir="left"] {
  animation: slideFromLeft 0.3s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   4. TOPBAR (glass effect)
   ============================================================ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(10, 11, 14, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding-left: max(var(--space-4), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-4), env(safe-area-inset-right, 0px));
  gap: var(--space-4);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  user-select: none;
}

.topbar__logo {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: var(--tracking-wider);
}

.topbar__title {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
}

/* --- Nav --- */

.topbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: var(--space-4);
}

.topbar__link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-3);
  height: var(--topbar-h);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
  cursor: pointer;
  user-select: none;
}

.topbar__link:hover {
  color: var(--text-secondary);
}

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

.topbar__link.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* Station accent borders for active nav links */
.topbar__link.active[data-section="briefing"] { border-bottom-color: var(--station-brief); }
.topbar__link.active[data-section="nhl"] { border-bottom-color: var(--station-hockey); }
.topbar__link.active[data-section="gotd"] { border-bottom-color: var(--station-media); }
.topbar__link.active[data-section="crypto"] { border-bottom-color: var(--station-trading); }
.topbar__link.active[data-section="peptides"] { border-bottom-color: var(--station-protocol); }
.topbar__link.active[data-section="server"] { border-bottom-color: var(--station-infra); }

/* Nav link status dots */
.topbar__link-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-disabled);
  margin-right: var(--space-1);
}
.topbar__link-dot.nominal { background: var(--nominal); box-shadow: 0 0 6px var(--nominal); }
.topbar__link-dot.caution { background: var(--caution); box-shadow: 0 0 6px var(--caution); }
.topbar__link-dot.alert { background: var(--alert); box-shadow: 0 0 6px var(--alert); }

/* --- Topbar Right Cluster --- */

.topbar__meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar__clock {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
  user-select: none;
}

.topbar__refreshed {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
  letter-spacing: var(--tracking-wide);
}

.topbar__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-disabled);
  flex-shrink: 0;
}

.status-dot--nominal { background: var(--nominal); box-shadow: 0 0 6px var(--nominal); }
.status-dot--connected { background: var(--nominal); box-shadow: 0 0 6px var(--nominal); }
.status-dot--caution { background: var(--caution); box-shadow: 0 0 6px var(--caution); }
.status-dot--connecting {
  background: var(--caution);
  box-shadow: 0 0 6px var(--caution);
  animation: topbar-pulse 1.5s ease-in-out infinite;
}
.status-dot--alert { background: var(--alert); box-shadow: 0 0 6px var(--alert); }
.status-dot--disconnected { background: var(--alert); box-shadow: 0 0 6px var(--alert); }

@keyframes topbar-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================================
   5. BOTTOM NAV (glass effect)
   ============================================================ */

.bottomnav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--bottombar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  justify-content: space-around;
  align-items: center;
}

.bottomnav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  cursor: pointer;
  user-select: none;
  color: var(--text-tertiary);
  transition: color 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.bottomnav__link.active {
  color: var(--text-primary);
}

.bottomnav__link.active[data-section="briefing"] { color: var(--station-brief); }
.bottomnav__link.active[data-section="nhl"] { color: var(--station-hockey); }
.bottomnav__link.active[data-section="gotd"] { color: var(--station-media); }
.bottomnav__link.active[data-section="crypto"] { color: var(--station-trading); }
.bottomnav__link.active[data-section="peptides"] { color: var(--station-protocol); }
.bottomnav__link.active[data-section="server"] { color: var(--station-infra); }

.bottomnav__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 500;
}

.bottomnav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.bottomnav__icon svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   6. PULL TO REFRESH (preserved)
   ============================================================ */

.ptr {
  display: none;
}

/* ============================================================
   7. ALERTS BAR (preserved)
   ============================================================ */

.alerts-bar {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(10, 11, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.alert-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-secondary);
}

.alert-pill--amber {
  color: var(--caution);
  border-color: var(--caution);
  background: var(--caution-dim);
}

.alert-pill--green {
  color: var(--nominal);
  border-color: var(--nominal);
  background: var(--nominal-dim);
}

.alert-pill--red {
  color: var(--alert);
  border-color: var(--alert);
  background: var(--alert-dim);
}

.alert-pill__icon {
  font-size: var(--text-sm);
  line-height: 1;
}

/* ============================================================
   8. SHARED STATION PATTERNS (redesigned)
   ============================================================ */

/* --- Station Header (simplified: name + rule + status) --- */

.station__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.station__label {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  white-space: nowrap;
}

.station__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
  margin: 0;
}

.station__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  min-width: 2rem;
}

.station__status {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--nominal);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  white-space: nowrap;
}
.station__status.caution { color: var(--caution); }
.station__status.alert { color: var(--alert); }

/* Legacy section header (used by JS renderers) */
.section__header {
  margin-bottom: var(--space-6);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

.section__sub {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-top: var(--space-1);
}

/* Card label variant with top margin */
.card__label--spaced {
  margin-top: var(--space-4);
}

/* --- Generic Card (Glass Morphism) --- */

.card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

.card__label {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-3);
}

/* Card accent top borders via gradient */
.card--resources { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--station-infra), var(--accent)) 1; }
.card--containers { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--info), var(--station-infra)) 1; }
.card--services { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--nominal), var(--station-infra)) 1; }
.card--network { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--station-infra), var(--accent-secondary)) 1; }
.card--ai-usage { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--station-protocol), var(--accent)) 1; }
.card--holdings { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--station-trading), var(--accent-secondary)) 1; }
.card--pnl { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--station-trading), var(--nominal)) 1; }
.card--reserve { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--caution), var(--station-trading)) 1; }
.card--signals { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--info), var(--accent)) 1; }
.card--activity { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--text-tertiary), var(--border)) 1; }

/* --- Shared Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  touch-action: manipulation;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.1s var(--ease);
  user-select: none;
}

.btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-dim);
}

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

.btn:active {
  transform: scale(0.97);
}

.btn--accent {
  color: var(--accent);
  border-color: var(--accent);
}

.btn--accent:hover {
  color: var(--accent-bright);
  border-color: var(--accent-bright);
  background: var(--accent-dim);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-bright);
}

.btn--outline:hover {
  border-color: var(--text-secondary);
}

.btn__label {
  letter-spacing: var(--tracking-wide);
}

.btn__spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--border-bright);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ptr-spin 0.8s linear infinite;
}

/* ============================================================
   9. GRID LAYOUTS (preserved)
   ============================================================ */

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid--crypto {
  grid-template-columns: 1fr 340px;
}

.grid--server {
  grid-template-columns: repeat(3, 1fr);
}

.grid--server .card--resources {
  grid-row: span 2;
}

.grid--server .card--ai-usage {
  grid-row: span 2;
}

.crypto-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ============================================================
   9b. SHARED PAGE STYLES
   ============================================================ */

.page-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
}

.page-header__sub {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.crypto-page.section--active {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3);
  max-width: 1100px;
}

.pep-page.section--active {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3);
  max-width: 960px;
}

/* ============================================================
   10. BRIEFING STATION (v7 Personal Assistant)
   ============================================================ */

.brief-page.section--active {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  max-width: 960px;
}

/* --- Hero --- */

.brief-hero {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.08), rgba(52, 211, 153, 0.05));
  border: 1px solid rgba(124, 92, 252, 0.15);
  border-radius: var(--radius);
}

.brief-hero__greeting {
  flex: 1;
  min-width: 0;
}

.brief-hero__hello {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

.brief-hero__date {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

.brief-hero__weather {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
}

.brief-wx-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brief-wx-icon-lg { font-size: 1.5rem; line-height: 1; }

.brief-wx-temp-lg {
  font-family: var(--font-data);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.brief-wx-meta {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.brief-wx-sun {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
}

.brief-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-disabled);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.brief-icon-btn:hover { color: var(--text-primary); border-color: var(--accent); }

/* --- Notices --- */

.brief-notices {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.brief-notice {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--text-tertiary);
  background: var(--bg-raised);
}
.brief-notice--weather { border-color: var(--info); background: var(--info-dim); }
.brief-notice--info { border-color: var(--station-brief); }
.brief-notice--alert { border-color: var(--alert); background: var(--alert-dim); }
.brief-notice--caution { border-color: var(--caution); background: var(--caution-dim); }
.brief-badge {
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 600;
  color: var(--alert);
  letter-spacing: var(--tracking-wider);
}

/* --- Section Labels --- */

.brief-section-label {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-disabled);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

/* --- Two Columns --- */

.brief-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.brief-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-4);
}

@media (max-width: 767px) {
  .brief-columns, .brief-bottom-row {
    grid-template-columns: 1fr;
  }
}

/* --- Schedule Card --- */

.brief-schedule {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2) 0;
}

.brief-ev {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
}

.brief-ev--now {
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.1), transparent);
  border-left: 3px solid var(--station-brief);
}

.brief-ev__time {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  min-width: 48px;
  flex-shrink: 0;
}
.brief-ev--now .brief-ev__time { color: var(--station-brief); font-weight: 600; }

.brief-ev__info { flex: 1; min-width: 0; }

.brief-ev__title {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
}

.brief-ev__badge {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  color: var(--hull-deep);
  background: var(--station-brief);
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: var(--tracking-wider);
  margin-right: var(--space-2);
}

.brief-ev__loc, .brief-ev__drive {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-gap {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--nominal);
  padding: var(--space-1) var(--space-3);
  border-left: 2px solid var(--nominal);
  margin-left: var(--space-3);
  opacity: 0.8;
}

.brief-past-summary {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
  padding: var(--space-2) var(--space-3);
}

.brief-tomorrow {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-1);
}

.brief-done {
  padding: var(--space-4) var(--space-3);
}
.brief-done__title {
  font-size: var(--text-sm);
  color: var(--nominal);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.brief-done__list { display: flex; flex-direction: column; gap: 2px; }
.brief-done__item {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
}
.brief-done__time { color: var(--text-tertiary); margin-right: var(--space-2); }

.brief-empty {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

/* --- Tasks Card --- */

.brief-tasks {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.brief-tasks__free {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--nominal);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
}

.brief-tasks__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brief-task {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
}

.brief-task__pri {
  font-size: 8px;
  color: var(--text-disabled);
  flex-shrink: 0;
  width: 12px;
  text-align: center;
}
.brief-task__pri--red { color: var(--alert); }
.brief-task__pri--amber { color: var(--caution); }

.brief-task__text {
  font-size: var(--text-xs);
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-task__list {
  font-family: var(--font-data);
  font-size: 9px;
  color: var(--text-disabled);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  flex-shrink: 0;
}

.brief-tasks__more {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
  text-align: center;
  margin-top: var(--space-2);
}

/* --- Week Ahead --- */

.brief-week {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.brief-week__grid {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
  height: 80px;
}

.brief-week__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  height: 100%;
  justify-content: flex-end;
}

.brief-week__n {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

.brief-week__track {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.brief-week__bar {
  width: 100%;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  min-height: 0;
  opacity: 0.6;
  transition: height 0.3s;
}
.brief-week__bar--busy { opacity: 1; background: var(--station-brief); }
.brief-week__bar--free { background: var(--border); opacity: 0.3; min-height: 2px; }

.brief-week__day {
  font-family: var(--font-data);
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* --- Forecast Strip --- */

.brief-forecast-strip {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: stretch;
}

.brief-fc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 56px;
  flex: 1;
}

.brief-fc__day {
  font-family: var(--font-data);
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.brief-fc__icon { font-size: var(--text-md); }
.brief-fc__hi { font-family: var(--font-data); font-size: var(--text-sm); color: var(--text-primary); font-weight: 500; }
.brief-fc__lo { font-family: var(--font-data); font-size: var(--text-xs); color: var(--text-tertiary); }
.brief-fc__precip { font-family: var(--font-data); font-size: 9px; color: var(--info); }

/* --- Shared --- */

.brief-muted {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  padding: var(--space-4);
}

/* --- Mobile --- */

@media (max-width: 767px) {
  .brief-page { gap: var(--space-3); padding: var(--space-3); }

  .brief-hero {
    flex-wrap: wrap;
    padding: var(--space-3);
    gap: var(--space-2);
  }
  .brief-hero__hello { font-size: var(--text-lg); }
  .brief-hero__date { font-size: var(--text-xs); }
  .brief-hero__weather { flex-direction: row; align-items: center; gap: var(--space-3); }
  .brief-wx-icon-lg { font-size: 1.2rem; }
  .brief-wx-temp-lg { font-size: var(--text-xl); }
  .brief-wx-meta { font-size: 10px; }
  .brief-wx-sun { font-size: 10px; }
  .brief-icon-btn { width: 36px; height: 36px; }

  .brief-notices { gap: 2px; }
  .brief-notice { padding: var(--space-1) var(--space-2); font-size: var(--text-xs); }

  .brief-section-label { font-size: 10px; margin-bottom: var(--space-1); }

  .brief-schedule { padding: var(--space-1) 0; }
  .brief-ev { padding: var(--space-1) var(--space-2); gap: var(--space-2); }
  .brief-ev__time { font-size: var(--text-xs); min-width: 40px; }
  .brief-ev__title { font-size: var(--text-xs); }
  .brief-gap { font-size: 10px; padding: 2px var(--space-2); margin-left: var(--space-2); }
  .brief-past-summary { font-size: 10px; padding: var(--space-1) var(--space-2); }
  .brief-tomorrow { font-size: 10px; padding: var(--space-1) var(--space-2); }
  .brief-done { padding: var(--space-2); }
  .brief-done__title { font-size: var(--text-xs); }
  .brief-done__item { font-size: 10px; }

  .brief-tasks { padding: var(--space-2); }
  .brief-tasks__free { font-size: 10px; margin-bottom: var(--space-1); padding-bottom: var(--space-1); }
  .brief-task__text { font-size: 11px; }

  .brief-week { padding: var(--space-2); }
  .brief-week__grid { height: 60px; }

  .brief-fc { padding: var(--space-1) var(--space-2); min-width: 48px; }
}

/* --- Data Error --- */

.data-error {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--alert);
  letter-spacing: var(--tracking-wide);
  padding: var(--space-3);
  background: var(--alert-dim);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  text-align: center;
}

/* --- Loading Skeleton --- */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-raised) 25%,
    var(--bg-overlay) 50%,
    var(--bg-raised) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   11. FOCUS TIMER OVERLAY (preserved)
   ============================================================ */

.focus-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.focus-overlay--hidden {
  display: none;
}

.focus-overlay__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.focus-overlay__label {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.focus-overlay__time {
  font-family: var(--font-data);
  font-size: 4rem;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}

.focus-overlay__sub {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
  letter-spacing: var(--tracking-wide);
}

.focus-overlay__stop {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--alert);
  background: var(--alert-dim);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.focus-overlay__stop:hover {
  background: rgba(239, 68, 68, 0.2);
}


/* ============================================================
   12. NHL HOCKEY STATION (v2 assistant redesign)
   ============================================================ */

.nhl-page.section--active {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3);
  max-width: 960px;
}

/* --- Header --- */

.nhl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nhl-header__left {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.nhl-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--station-hockey);
}

.nhl-header__date {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* --- Lock/Wait Banner --- */

.nhl__lock-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-family: var(--font-data);
}

.nhl__lock-banner--lock {
  background: var(--nominal-dim);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.nhl__lock-banner--wait {
  background: var(--caution-dim);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.nhl__lock-label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.nhl__lock-banner--lock .nhl__lock-label { color: var(--nominal); }
.nhl__lock-banner--wait .nhl__lock-label { color: var(--caution); }

.nhl__lock-reason {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* --- Summary Strip --- */

.nhl-summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.nhl-summary__stat {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.nhl-summary__stat strong {
  font-size: var(--text-lg);
  font-weight: 700;
}

.nhl-summary__dim {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.nhl-summary__streak {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nhl-summary__last {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.nhl__streak-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.nhl__streak-dot--hit { background: var(--nominal); }
.nhl__streak-dot--miss { background: var(--alert); }

/* --- Pick Cards --- */

.nhl__picks {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nhl__pick {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.nhl__pick--featured {
  border-left: 3px solid var(--nominal);
}

.nhl__pick--atrisk {
  border-left: 3px solid var(--caution);
}

.nhl__pick--shflag {
  border-left: 3px solid var(--alert);
}

.nhl__pick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.nhl__pick-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.nhl__pick-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.nhl__pick-group {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-left: var(--space-1);
}

.nhl__pick-matchup {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nhl__team-badge {
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 600;
  color: white;
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: var(--tracking-wide);
}
.nhl__team-badge--sm { font-size: 9px; padding: 0 4px; }

.nhl__vs {
  font-size: var(--text-xs);
  color: var(--text-disabled);
}

.nhl__game-time {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-left: var(--space-1);
}

.nhl__pick-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nhl__pick-score {
  font-family: var(--font-data);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.nhl__badge {
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.conf--high { background: var(--nominal-dim); color: var(--nominal); }
.conf--med { background: var(--caution-dim); color: var(--caution); }
.conf--low { background: rgba(255,255,255,0.05); color: var(--text-tertiary); }
.edge--strong { background: var(--nominal-dim); color: var(--nominal); }
.edge--mid { background: var(--caution-dim); color: var(--caution); }
.edge--weak { background: rgba(255,255,255,0.05); color: var(--text-tertiary); }
.edge--unknown { background: rgba(255,255,255,0.05); color: var(--text-disabled); }
.goalie--very_cold, .goalie--cold { color: var(--nominal); }
.goalie--hot, .goalie--very_good, .goalie--elite { color: var(--alert); }

/* --- Pick Alerts --- */

.nhl__pick-alerts {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.nhl__pick-alert {
  font-family: var(--font-data);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: var(--tracking-wide);
}
.nhl__pick-alert--warn { background: var(--caution-dim); color: var(--caution); }
.nhl__pick-alert--up { background: var(--nominal-dim); color: var(--nominal); }
.nhl__pick-alert--sh { background: var(--alert-dim); color: var(--alert); }

/* --- Expand Details --- */

.nhl__pick-expand {
  margin-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-2);
}

.nhl__pick-expand-toggle {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  cursor: pointer;
  letter-spacing: var(--tracking-wide);
}

.nhl__pick-expand-body {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nhl__pick-stats {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.nhl__stat--shflag { color: var(--alert); font-weight: 600; }
.nhl__stat-sep { color: var(--text-disabled); }

.nhl__pick-badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.nhl__pick-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nhl__detail-line {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* --- Record --- */

.nhl-record-detail {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.nhl-record-detail__toggle {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-3);
  cursor: pointer;
}

.nhl__record {
  padding: 0 var(--space-3) var(--space-3);
}

.nhl__results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
}

.nhl__results-date {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.nhl__record-result {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 2px;
}
.nhl__record-result--good { background: var(--nominal-dim); color: var(--nominal); }
.nhl__record-result--ok { background: var(--caution-dim); color: var(--caution); }
.nhl__record-result--bad { background: var(--alert-dim); color: var(--alert); }

.nhl__result-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.nhl__result-name { flex: 1; }
.nhl__result-score { color: var(--text-tertiary); }

.nhl__weight-change {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

.nhl__weight-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}

.nhl__weight-title {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.nhl__weight-hitrate {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.nhl__weight-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.nhl__weight-item {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.nhl__record-history {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nhl__record-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-1) 0;
}

.nhl__record-date {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.nhl__empty {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  padding: var(--space-4);
  text-align: center;
}

.nhl__today-games {
  padding: var(--space-3);
}

.nhl__today-games-label {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}

.nhl__today-game {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
}

.nhl__at {
  font-size: var(--text-xs);
  color: var(--text-disabled);
}

/* --- NHL Mobile --- */

@media (max-width: 767px) {
  .nhl-page.section--active { padding: var(--space-2); gap: var(--space-2); }
  .nhl-header__title { font-size: var(--text-base); }
  .nhl-summary { gap: var(--space-2); padding: var(--space-2); }
  .nhl__pick { padding: var(--space-2); }
  .nhl__pick-score { font-size: var(--text-lg); }
  .nhl__pick-matchup { flex-wrap: wrap; }
}

/* ============================================================
   13. GOTD (MEDIA) STATION (v2 redesign)
   ============================================================ */

.gotd-page.section--active {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  max-width: 960px;
}

/* --- Header --- */

.gotd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.gotd-header__left {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.gotd-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--station-media);
}

.gotd-header__date {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

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

.gotd-header__weather {
  display: flex;
  gap: var(--space-1);
}

.gotd-header__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-disabled);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.gotd-header__info:hover,
.gotd-header__info--active { color: var(--station-media); border-color: var(--station-media); }

/* --- Stage (hero media) --- */

.gotd-stage {
  position: relative;
  width: 100%;
  background: #0a0a0e;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 75vh;
}

.gotd-stage img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.gotd-stage video {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.gotd__video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gotd__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: opacity 0.2s;
}
.gotd__play-btn--hidden { display: none; }

.gotd__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  width: 100%;
}
.gotd__placeholder-text {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-disabled);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.gotd__error-text {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--alert);
  padding: var(--space-4);
}

/* --- Controls bar --- */

.gotd-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.gotd-controls__tabs {
  display: flex;
  gap: 2px;
}

.gotd-tab {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  transition: all 0.15s;
}
.gotd-tab--active {
  color: var(--station-media);
  border-color: var(--station-media);
  background: rgba(236, 72, 153, 0.08);
}

.gotd-controls__model {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
  letter-spacing: var(--tracking-wide);
  flex: 1;
}

.gotd-controls__btns {
  display: flex;
  gap: var(--space-2);
}

.btn--sm {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  min-height: 32px;
}

/* --- Gallery strip --- */

.gotd-gallery-strip {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-1);
}

.gotd-gallery-strip:empty,
.gotd-gallery-strip:has(.gotd__gallery-empty) {
  min-height: 0;
}

.gotd__gallery-item {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 9/16;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.gotd__gallery-item:hover { border-color: var(--border); }
.gotd__gallery-item--active { border-color: var(--station-media); }

.gotd__gallery-item img,
.gotd__gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gotd__gallery-play {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  font-size: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 1px 4px;
  border-radius: 2px;
}

.gotd__gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-family: var(--font-data);
  font-size: 9px;
  color: var(--text-primary);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: var(--space-3) var(--space-1) var(--space-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gotd__gallery-empty {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
  padding: var(--space-2);
}

/* --- Weather chips --- */

.gotd__weather-chip {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}
.gotd__weather-empty { display: none; }

/* --- Status badge --- */

.gotd__status-badge {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  letter-spacing: var(--tracking-wide);
}
.gotd__status-badge--error { background: var(--alert-dim); color: var(--alert); }
.gotd__status-badge--success { background: var(--nominal-dim); color: var(--nominal); }
.gotd__status-badge--info { background: var(--info-dim); color: var(--info); }

/* --- Drawer --- */

.gotd-drawer {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gotd-drawer__section {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}
.gotd-drawer__section:last-child { border-bottom: none; }

.gotd-drawer__label {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}

.gotd__prompt-parsed {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--text-secondary);
}

.gotd__prompt-raw-wrap { margin-top: var(--space-2); }
.gotd__prompt-raw-toggle {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}
.gotd__prompt {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  background: var(--hull-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: var(--space-1);
  max-height: 200px;
  overflow-y: auto;
}

.gotd__param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-2);
}
.gotd__param-key {
  font-family: var(--font-data);
  font-size: 10px;
  color: var(--text-disabled);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.gotd__param-val {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-primary);
}

.gotd__chip {
  display: inline-flex;
  gap: var(--space-1);
  font-family: var(--font-data);
  font-size: var(--text-xs);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
  margin: 1px;
}
.gotd__chip-label { color: var(--text-disabled); }
.gotd__chip-value { color: var(--text-secondary); }

/* --- Archive --- */

.gotd-archive {
  margin-top: var(--space-2);
}

.gotd-archive__label {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}

.gotd-archive__strip {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-1);
}

.gotd__archive-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
  position: relative;
}
.gotd__archive-thumb:hover { border-color: var(--border); }
.gotd__archive-thumb--active { border-color: var(--station-media); }

.gotd__archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gotd__archive-label {
  font-family: var(--font-data);
  font-size: 9px;
  color: var(--text-primary);
  text-align: center;
  margin-top: 2px;
}

.gotd__archive-counts {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-family: var(--font-data);
  font-size: 9px;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 0 3px;
  border-radius: 2px;
}

/* --- Fullscreen overlay --- */

.gotd-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.95);
}
.gotd-fullscreen img,
.gotd-fullscreen video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.gotd-fullscreen__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: white;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.gotd-fullscreen__unmute {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: white;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  cursor: pointer;
}

/* --- GOTD Mobile --- */

@media (max-width: 767px) {
  .gotd-page { padding: var(--space-2); gap: var(--space-1); }
  .gotd-header__title { font-size: var(--text-base); }
  .gotd-header__info { width: 40px; height: 40px; }
  .gotd-stage { max-height: 60vh; }
  .gotd-controls { flex-wrap: wrap; gap: var(--space-2); }
  .gotd-controls__btns { width: 100%; }
  .gotd-controls__btns .btn { flex: 1; }
  .gotd__gallery-item { width: 90px; }
  .gotd__archive-thumb { width: 60px; height: 60px; }
  .gotd__param-grid { grid-template-columns: 1fr 1fr; }
  .gotd-fullscreen__close { width: 44px; height: 44px; }
}

/* ============================================================
   14. CRYPTO TRADING STATION (preserved exactly)
   ============================================================ */

/* --- Hero Number --- */

.crypto-hero {
  margin-bottom: var(--space-4);
}

.crypto-hero__main {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

.crypto-hero__label {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--readout-faint);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.crypto-hero__value {
  font-family: var(--font-data);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--readout);
  letter-spacing: var(--tracking-tight);
}

.crypto-hero__sub {
  font-family: var(--font-data);
  font-size: var(--text-md);
  font-weight: 500;
}

.crypto-hero__dim {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--readout-faint);
}

/* --- Sparkline --- */

.crypto-hero__spark {
  width: 100%;
  height: 60px;
  background: var(--hull-raised);
  border: 1px solid var(--bulkhead);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.crypto-hero__spark canvas {
  width: 100%;
  height: 100%;
}

/* --- Market Stats --- */

.crypto-hero__market {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.crypto-market-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crypto-market-item--small {
  min-width: 0;
}

.crypto-market-item__label {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--readout-faint);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.crypto-market-item__val {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--readout);
  font-weight: 500;
}

.crypto-market-item__val--sm {
  font-size: var(--text-xs);
}

.crypto-market-pair {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* --- Gauge --- */

.crypto-gauge {
  margin-bottom: var(--space-3);
}

.crypto-gauge__bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--alert) 0%, var(--caution) 50%, var(--nominal) 100%);
  border-radius: var(--radius-sm);
}

.crypto-gauge__dot {
  position: absolute;
  top: -3px;
  width: 12px;
  height: 12px;
  background: var(--readout);
  border: 2px solid var(--hull);
  border-radius: 50%;
  transform: translateX(-50%);
}

.crypto-gauge__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--readout-faint);
  letter-spacing: var(--tracking-wide);
  margin-top: var(--space-1);
}

/* --- Reserve Bar --- */

.crypto-reserve-bar {
  width: 100%;
  height: 6px;
  background: var(--bulkhead);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.crypto-reserve-bar__fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.3s var(--ease);
  background: var(--nominal);
}

/* --- Stat List --- */

.crypto-stat-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.crypto-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-1) 0;
}

.crypto-stat__label {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--readout-faint);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.crypto-stat__value {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--readout);
  font-weight: 500;
}

.crypto-stat--total {
  border-top: 1px solid var(--bulkhead);
  padding-top: var(--space-2);
  margin-top: var(--space-1);
}

.crypto-stat--total .crypto-stat__label {
  color: var(--readout-dim);
  font-weight: 500;
}

.crypto-stat--total .crypto-stat__value {
  font-size: var(--text-md);
  font-weight: 600;
}

/* --- Donut Chart --- */

.crypto-donut-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.crypto-donut {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  position: relative;
}

/* Inner hole for donut effect */
.crypto-donut::after {
  content: '';
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: var(--hull-raised);
}

.crypto-donut-legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.crypto-donut-legend__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--readout-dim);
}

.crypto-donut-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* --- Holdings Table (Desktop) --- */

.holdings-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-4);
}

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

.holdings-table th {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--readout-faint);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--bulkhead);
  cursor: pointer;
  user-select: none;
  transition: color 0.1s var(--ease);
}

.holdings-table th:hover {
  color: var(--readout-dim);
}

.holdings-table th.sorted-asc {
  color: var(--readout);
}

.holdings-table th.sorted-asc::after {
  content: ' \2191';
  color: var(--instrument-glow);
}

.holdings-table th.sorted-desc {
  color: var(--readout);
}

.holdings-table th.sorted-desc::after {
  content: ' \2193';
  color: var(--instrument-glow);
}

.holdings-table td {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--readout);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--bulkhead-subtle);
}

.holdings-table tr:last-child td {
  border-bottom: none;
}

.holdings-table__symbol {
  font-weight: 600;
}

.holdings-table__tier {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--readout-faint);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.holdings-table__tier-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Holdings Cards (Mobile) --- */

.holdings-cards-wrap {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
}

.holding-card {
  background: var(--hull-raised);
  border: 1px solid var(--bulkhead);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.holding-card--core {
  border-left: 2px solid var(--station-trading);
}

.holding-card--exp {
  border-left: 2px solid var(--caution);
}

.holding-card--small {
  border-left: 2px solid var(--readout-faint);
}

.holding-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.holding-card__symbol {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--readout);
}

.holding-card__tier {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--readout-faint);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.holding-card__val {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--readout);
}

.holding-card__details {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.holding-card__detail-label {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--readout-faint);
}

.holding-card__bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--readout-faint);
  margin-top: var(--space-1);
}

/* --- Score Row --- */

.score-row {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.score-val {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--readout);
}

.score-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bulkhead);
}

.score-dot--filled {
  background: var(--instrument-glow);
}

/* --- Signals --- */

.signals__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.signals__list .task {
  padding: var(--space-2) var(--space-3);
  border-left: 2px solid var(--bulkhead);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--hull);
}

.signals__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  color: var(--readout-faint);
  font-family: var(--font-data);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
}

.positions__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  color: var(--readout-faint);
  font-family: var(--font-data);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
}

/* --- Activity Feed --- */

.activity-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--readout-dim);
  border-bottom: 1px solid var(--bulkhead-subtle);
}

.activity-row:last-child {
  border-bottom: none;
}

.activity-row__badge {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  min-width: 36px;
  flex-shrink: 0;
}

.activity-row__asset {
  font-weight: 500;
  color: var(--readout);
  min-width: 48px;
  flex-shrink: 0;
}

.activity-row__reason {
  flex: 1;
  color: var(--readout-faint);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-row__time {
  color: var(--readout-faint);
  flex-shrink: 0;
}

/* --- Task (generic from crypto) --- */

.task {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--readout-dim);
  background: var(--hull-raised);
  border-radius: var(--radius-sm);
}

.task__text {
  flex: 1;
}

/* ============================================================
   15. PEPTIDE PROTOCOL STATION (redesigned)
   ============================================================ */

/* --- Compound Colors --- */

.amber { --compound: var(--accent); }
.cyan { --compound: #22d3ee; }
.blue { --compound: var(--info); }
.green { --compound: var(--nominal); }
.magenta { --compound: #ec4899; }

/* --- Hero Section --- */

.pep-hero {
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  border-left: 3px solid var(--station-protocol);
  box-shadow: var(--shadow-card);
  background-image: linear-gradient(135deg, transparent, rgba(168, 85, 247, 0.03));
}

.pep-hero__label {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-1);
}

.pep-hero__day {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.pep-hero__pills {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* --- Dose Pills --- */

.pep-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--compound, var(--border-bright));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
  cursor: pointer;
}

.pep-pill:hover {
  background: var(--bg-overlay);
  border-color: var(--border);
}

.pep-pill--done {
  opacity: 0.5;
}

.pep-pill--done .pep-pill__name {
  text-decoration: line-through;
  color: var(--text-disabled);
}

.pep-pill__check {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-bright);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.pep-pill__check:hover {
  border-color: var(--compound, var(--accent));
}

.pep-pill--done .pep-pill__check {
  border-color: var(--compound, var(--accent));
  background: var(--bg-overlay);
}

.pep-pill--done .pep-pill__check::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--compound, var(--accent));
  border-radius: 2px;
}

.pep-pill__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.pep-pill__dial {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* --- Rest Day / All Done --- */

.pep-rest-msg {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
  padding: var(--space-4);
  text-align: center;
}

.pep-alldone {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--nominal);
  letter-spacing: var(--tracking-wide);
  padding: var(--space-4);
  text-align: center;
}

/* --- Collapsible Sections --- */

.pep-collapse {
  margin-bottom: var(--space-4);
}

.pep-collapse--closed .pep-collapse__body {
  display: none;
}

.pep-collapse__body {
  display: block;
}

.pep-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-3);
}

.pep-section-title--toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  cursor: pointer;
  user-select: none;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.15s var(--ease);
}

.pep-section-title--toggle:hover {
  color: var(--text-secondary);
}

.pep-chevron {
  font-size: var(--text-xs);
  transition: transform 0.2s var(--ease);
}

.pep-collapse--closed .pep-chevron {
  transform: rotate(-90deg);
}

/* --- Pen Assignments --- */

.pep-pen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.pep-pen {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--compound, var(--border-bright));
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pep-pen:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

.pep-pen__label {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--compound, var(--text-tertiary));
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.pep-pen__name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  color: var(--text-primary);
  font-weight: 600;
}

.pep-pen__detail {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.pep-pen__detail strong {
  color: var(--text-primary);
  font-weight: 500;
}

.pep-pen__badge {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding-top: var(--space-1);
  border-top: 1px solid var(--border-subtle);
}

/* --- Weekly Schedule --- */

.pep-schedule-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-4);
}

.pep-schedule {
  width: 100%;
  border-collapse: collapse;
}

.pep-schedule th {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
}

.pep-schedule td {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.pep-schedule tr:last-child td {
  border-bottom: none;
}

.pep-dose {
  display: inline-block;
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--compound, var(--text-secondary));
  font-weight: 500;
  padding: 2px var(--space-2);
  border-radius: var(--radius-xs);
  background: var(--bg-deep);
}

.pep-off {
  color: var(--text-disabled);
  font-style: italic;
}

.pep-rest {
  color: var(--text-disabled);
  font-style: italic;
}

.pep-today-row {
  border-left: 3px solid var(--accent);
}

.pep-today-row td {
  color: var(--text-primary);
}

/* --- Supply Inventory --- */

.pep-supply-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.pep-supply-card {
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pep-supply-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

.pep-supply--low {
  border-color: rgba(239, 68, 68, 0.3);
}

.pep-supply--low .pep-supply-card__count {
  color: var(--alert);
}

.pep-supply--unset {
  border-color: var(--border);
  border-style: dashed;
}

.pep-supply-card__name {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.pep-supply-card__count {
  font-family: var(--font-data);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-primary);
}

.pep-supply-card__label {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
}

.pep-supply-card__btns {
  display: flex;
  gap: var(--space-1);
}

.pep-supply-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}

.pep-supply-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-dim);
}

.pep-supply-note {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
}

/* --- Reconstitution Reference --- */

.pep-recon-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.pep-recon {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: background 0.15s var(--ease);
}

.pep-recon:hover {
  background: var(--bg-overlay);
}

.pep-recon__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
}

.pep-recon__vol {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.pep-recon__detail {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.pep-recon__expiry {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s var(--ease);
}

.pep-recon__expiry:hover {
  opacity: 0.8;
}

.pep-recon__expiry.fresh {
  color: var(--nominal);
  background: var(--nominal-dim);
}

.pep-recon__expiry.warning {
  color: var(--caution);
  background: var(--caution-dim);
}

.pep-recon__expiry.expired {
  color: var(--alert);
  background: var(--alert-dim);
  font-weight: 500;
}

.pep-recon__expiry.unset {
  color: var(--text-disabled);
  border: 1px dashed var(--border-bright);
  background: transparent;
}

/* --- Notes / Footer --- */

.pep-notes {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  padding: var(--space-4);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-card);
}

.pep-notes ul {
  list-style: none;
  padding: 0;
}

.pep-notes li {
  padding: var(--space-1) 0;
  padding-left: var(--space-4);
  position: relative;
}

.pep-notes li::before {
  content: '\2022';
  position: absolute;
  left: var(--space-1);
  color: var(--text-disabled);
}

.pep-footer {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-disabled);
  letter-spacing: var(--tracking-wide);
  text-align: center;
  padding: var(--space-2) 0;
}

/* ============================================================
   16. SERVER / INFRA STATION (redesigned)
   ============================================================ */

/* --- Resources Grid --- */

.resources__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.resource {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.resource__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.resource__name {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.resource__value {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.resource__bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.resource__fill {
  height: 100%;
  border-radius: var(--radius-xs);
  transition: width 0.5s var(--ease);
  background: linear-gradient(90deg, var(--nominal), var(--accent-secondary));
}

.resource__fill--gpu {
  background: linear-gradient(90deg, var(--station-protocol), var(--accent));
}

.resource__fill--disk {
  background: linear-gradient(90deg, var(--info), var(--station-infra));
}

/* --- Containers --- */

.containers__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 400px;
  overflow-y: auto;
}

.containers__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  color: var(--text-disabled);
  font-family: var(--font-data);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
}

.container__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  transition: background 0.15s var(--ease);
}

.container__row:hover {
  background: var(--bg-overlay);
}

.container__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-disabled);
}

.container__dot--running { background: var(--nominal); box-shadow: 0 0 6px var(--nominal); }
.container__dot--stopped { background: var(--alert); box-shadow: 0 0 6px var(--alert); }
.container__dot--paused { background: var(--caution); box-shadow: 0 0 6px var(--caution); }
.container__dot--unknown { background: var(--text-disabled); }

.container__name {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-primary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.container__uptime {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  min-width: 56px;
  text-align: right;
  flex-shrink: 0;
}

/* --- Services Grid --- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.service {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), transform 0.2s var(--ease);
}

.service:hover {
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

.service__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-disabled);
}

.service__dot--up { background: var(--nominal); box-shadow: 0 0 6px var(--nominal); }
.service__dot--down { background: var(--alert); box-shadow: 0 0 6px var(--alert); }
.service__dot--unknown { background: transparent; border: 1.5px solid var(--text-disabled); }

.service__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--text-primary);
  letter-spacing: var(--tracking-wide);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service__port {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* --- Network Stats --- */

.network__stats {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  min-width: 100px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.stat:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

.stat__value {
  font-family: var(--font-data);
  font-size: var(--text-base);
  color: var(--text-primary);
  font-weight: 500;
}

.stat__label {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ============================================================
   17. UTILITY CLASSES
   ============================================================ */

.mono { font-family: var(--font-data); }

.u-text-xs { font-size: var(--text-xs); }
.u-text-sm { font-size: var(--text-sm); }
.u-text-base { font-size: var(--text-base); }
.u-text-md { font-size: var(--text-md); }
.u-text-lg { font-size: var(--text-lg); }
.u-text-xl { font-size: var(--text-xl); }
.u-text-2xl { font-size: var(--text-2xl); }

.u-upper {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.u-dim { color: var(--text-secondary); }
.u-faint { color: var(--text-tertiary); }
.u-off { color: var(--text-disabled); }
.u-glow { color: var(--accent); }
.u-nominal { color: var(--nominal); }
.u-caution { color: var(--caution); }
.u-alert { color: var(--alert); }
.u-info { color: var(--info); }

.u-flex { display: flex; }
.u-flex-col { display: flex; flex-direction: column; }
.u-flex-center { display: flex; align-items: center; }
.u-flex-between { display: flex; align-items: center; justify-content: space-between; }

.u-gap-1 { gap: var(--space-1); }
.u-gap-2 { gap: var(--space-2); }
.u-gap-3 { gap: var(--space-3); }
.u-gap-4 { gap: var(--space-4); }
.u-wrap { flex-wrap: wrap; }

.u-mb-1 { margin-bottom: var(--space-1); }
.u-mb-2 { margin-bottom: var(--space-2); }
.u-mb-3 { margin-bottom: var(--space-3); }
.u-mb-4 { margin-bottom: var(--space-4); }
.u-mb-6 { margin-bottom: var(--space-6); }
.u-mt-2 { margin-top: var(--space-2); }
.u-mt-4 { margin-top: var(--space-4); }
.u-p-2 { padding: var(--space-2); }
.u-p-3 { padding: var(--space-3); }
.u-p-4 { padding: var(--space-4); }

.u-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.u-hidden {
  display: none !important;
}

/* ============================================================
   18. ANIMATIONS
   ============================================================ */

@keyframes loading-blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 4px var(--accent-dim); }
  50% { box-shadow: 0 0 12px var(--accent-dim); }
}

/* ============================================================
   19. RESPONSIVE — Mobile (< 768px)
   ============================================================ */

@media (max-width: 767px) {
  /* Show bottom nav */
  .bottomnav {
    display: flex;
  }

  /* Adjust body for bottom nav */
  .content {
    padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom, 0px));
  }

  .section {
    padding: var(--space-3);
    max-width: 100%;
  }

  /* Topbar: hide nav, show only brand + clock */
  .topbar__nav {
    display: none;
  }

  .topbar__title {
    display: none;
  }

  /* Station header: compact on mobile */
  .station__header {
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
  }

  .station__label {
    display: none;
  }

  .station__name {
    font-size: var(--text-md);
  }

  .station__rule {
    order: 10;
    flex-basis: 100%;
    min-width: 0;
  }

  /* Legacy section header compact */
  .section__header {
    margin-bottom: var(--space-3);
  }

  .section__title {
    font-size: var(--text-md);
  }

  /* Cards: tighter padding on mobile */
  .card {
    padding: var(--space-3);
  }

  /* Disable hover lift on mobile (touch) */
  .card:hover,
  .nhl__pick:hover,
  .pep-pen:hover,
  .pep-supply-card:hover,
  .stat:hover,
  .service:hover {
    transform: none;
  }

  /* Buttons: min touch target */
  .btn {
    min-height: 40px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }

  /* Briefing mobile: handled in briefing section @media block */

  /* NHL mobile: handled in nhl section @media block */

  /* GOTD mobile: handled in gotd section @media block */

  /* Crypto mobile */
  .grid--crypto {
    grid-template-columns: 1fr;
  }

  .crypto-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .holdings-table-wrap {
    display: none;
  }

  .holdings-cards-wrap {
    display: flex;
  }

  .crypto-hero {
    margin-bottom: var(--space-3);
  }

  .crypto-hero__main {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .crypto-hero__value {
    font-size: var(--text-xl);
  }

  .crypto-hero__sub {
    font-size: var(--text-sm);
  }

  .crypto-hero__market {
    flex-direction: column;
    gap: var(--space-3);
  }

  .crypto-market-pair {
    display: flex;
    gap: var(--space-4);
  }

  .crypto-gauge {
    max-width: 100%;
  }

  .crypto-donut-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .crypto-donut {
    width: 60px;
    height: 60px;
  }

  .holding-card__details {
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-3);
  }

  .crypto-stat-list {
    gap: var(--space-1);
  }

  .signals__list {
    gap: var(--space-1);
  }

  .activity-row {
    flex-wrap: wrap;
    gap: var(--space-1);
  }

  /* Peptide mobile */

  /* Hero pills: full width, stacked */
  .pep-hero__pills {
    flex-direction: column;
    gap: var(--space-2);
  }

  .pep-pill {
    padding: var(--space-3);
    gap: var(--space-3);
  }

  .pep-pill__name {
    font-size: var(--text-base);
  }

  .pep-pill__dial {
    font-size: var(--text-sm);
    margin-left: auto;
  }

  .pep-pill__check {
    width: 20px;
    height: 20px;
  }

  /* Pen cards: 2-col on mobile */
  .pep-pen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pep-pen {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
  }

  .pep-pen__label {
    width: 100%;
    height: 3px;
    border-radius: 2px;
  }

  .pep-pen__name {
    font-size: var(--text-base);
  }

  .pep-pen__detail {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
  }

  .pep-pen__badge {
    font-size: var(--text-sm);
  }

  /* Schedule table: readable on mobile */
  .pep-schedule-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .pep-schedule th,
  .pep-schedule td {
    padding: var(--space-2);
    font-size: var(--text-sm);
    white-space: nowrap;
  }

  .pep-dose {
    font-size: var(--text-sm);
  }

  /* Supply inventory: bigger touch targets */
  .pep-supply-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pep-supply-card {
    padding: var(--space-3);
  }

  .pep-supply-card__name {
    font-size: var(--text-sm);
  }

  .pep-supply-card__count {
    font-size: var(--text-xl);
  }

  .pep-supply-btn {
    width: 36px;
    height: 36px;
    font-size: var(--text-base);
  }

  /* Recon cards: stack vertically */
  .pep-recon {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
  }

  .pep-recon__name {
    font-size: var(--text-base);
  }

  .pep-recon__vol {
    font-size: var(--text-sm);
  }

  .pep-recon__detail {
    font-size: var(--text-sm);
    color: var(--text-secondary);
  }

  .pep-recon__expiry {
    font-size: var(--text-sm);
    padding: var(--space-1) var(--space-2);
  }

  /* Notes: readable */
  .pep-notes {
    font-size: var(--text-sm);
  }

  .pep-notes ul {
    padding-left: var(--space-4);
  }

  .pep-notes li {
    margin-bottom: var(--space-2);
  }

  /* Section titles: bigger on mobile */
  .pep-section-title {
    font-size: var(--text-sm);
    padding: var(--space-3) 0;
  }

  /* Server mobile */
  .grid--server {
    grid-template-columns: 1fr;
  }

  .resource__header {
    font-size: var(--text-sm);
  }

  .resource__name {
    font-size: var(--text-sm);
  }

  .resource__value {
    font-size: var(--text-sm);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .service {
    padding: var(--space-2);
    min-height: 36px;
  }

  .service__name {
    font-size: var(--text-sm);
  }

  .service__port {
    font-size: var(--text-sm);
  }

  .container__row {
    padding: var(--space-2) 0;
    min-height: 36px;
  }

  .container__name {
    font-size: var(--text-sm);
  }

  .container__uptime {
    font-size: var(--text-sm);
  }

  .network__stats {
    gap: var(--space-2);
  }

  .stat {
    min-width: 80px;
    flex: 1;
  }

  .stat__value {
    font-size: var(--text-sm);
  }

  .stat__label {
    font-size: var(--text-sm);
  }

}

/* ============================================================
   20. RESPONSIVE — Tablet (768px - 1399px)
   ============================================================ */

@media (min-width: 768px) and (max-width: 1399px) {
  .section {
    max-width: 100%;
    padding: var(--space-4) var(--space-6);
  }

  .gotd-browser__strip {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Show table, hide cards on tablet */
  .holdings-table-wrap {
    display: block;
  }

  .holdings-cards-wrap {
    display: none;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--crypto {
    grid-template-columns: 1fr 300px;
  }
}

/* ============================================================
   21. RESPONSIVE — Desktop (1400px+)
   ============================================================ */

@media (min-width: 1400px) {
  /* Wide desktop layout */

  .section {
    max-width: 1280px;
    flex: 1;
    min-width: 0;
  }

  /* NHL picks show matchup inline */
  .nhl__pick-top {
    flex-direction: row;
    align-items: center;
  }

  .nhl__pick-left {
    flex-direction: row;
    align-items: center;
  }

  .nhl__pick-matchup {
    display: flex;
  }

  /* Full gallery */
  .gotd-browser__strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--crypto {
    grid-template-columns: 1fr 340px;
  }
}

/* ============================================================
   22. @supports fallback for backdrop-filter
   ============================================================ */

@supports not (backdrop-filter: blur(1px)) {
  .card,
  .brief-schedule,
  .brief-notice,
  .brief-fc-day,
  .brief-icon-btn,
  .nhl__pick,
  .pep-hero,
  .pep-pen,
  .pep-supply-card,
  .service,
  .stat,
  .nhl-summary,
  .nhl__lock-banner,
  .btn,
  .pep-recon,
  .pep-notes,
  .topbar,
  .bottomnav,
  .alerts-bar {
    background: var(--bg-raised);
  }
}
