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

:root {
  /* Spatial Color System: Warm Parchment Ground, Deep Marine Ink, Signal Red */
  --bg-ground: #FAF3DC;
  --bg-surface: #FFFDF5;
  --bg-surface-alt: #F6EECD;
  --bg-recessed: #F0E9C8;
  --bg-deep-black: #000000;

  --ink: #0A2540;
  --ink-hover: #12355B;
  --ink-secondary: #2C4A6F;
  --ink-muted: #5C7695;
  --ink-tint: rgba(10, 37, 64, 0.05);

  --signal: #DC2626;
  --signal-hover: #B91C1C;
  --signal-light: #FEE2E2;
  --signal-text: #FF6B6B;

  /* Typography */
  --font-sans: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Spatial Boundaries: Crisp Flat Lines */
  --border: 1.5px solid var(--ink);
  --border-thin: 1px solid var(--ink);
  --border-thick: 2px solid var(--ink);
  --border-faint: 1px solid rgba(10, 37, 64, 0.12);

  /* All corners are sharp or near-sharp */
  --radius: 3px;

  /* Spatial Depth Layers (flat box-shadows, no blur) */
  --depth-0: none;
  --depth-1: 2px 2px 0 rgba(10, 37, 64, 0.06);
  --depth-2: 3px 3px 0 rgba(10, 37, 64, 0.08);
  --depth-3: 4px 4px 0 rgba(10, 37, 64, 0.10);

  --transition: all 0.18s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  background-color: var(--bg-ground);
  color: var(--ink);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ==========================================================================
   OLED Stealth Mode
   ========================================================================== */

body.oled-stealth-active {
  background-color: #000000 !important;
}

body.oled-stealth-active .app-container {
  display: none !important;
}

.oled-stealth-hud {
  display: none;
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 99999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--bg-ground);
  text-align: center;
  padding: 2rem;
  cursor: pointer;
  user-select: none;
}

body.oled-stealth-active .oled-stealth-hud {
  display: flex;
}

.stealth-breathing-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--signal);
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.7);
  animation: stealth-pulse 2.2s infinite ease-in-out;
  margin-bottom: 2rem;
}

.stealth-breathing-dot.listening {
  background-color: #FFFFFF;
  box-shadow: 0 0 20px #FFFFFF;
  animation: stealth-pulse 0.9s infinite ease-in-out;
}

@keyframes stealth-pulse {

  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.stealth-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.stealth-subtitle {
  font-size: 0.95rem;
  color: var(--bg-ground);
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.stealth-wake-btn {
  background-color: transparent;
  border: 1.5px solid var(--bg-ground);
  color: var(--bg-ground);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.stealth-wake-btn:hover {
  background-color: var(--bg-ground);
  color: #000000;
}

/* Keyboard hint inline token */
kbd {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  background-color: var(--ink-tint);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
}

/* ==========================================================================
   APP SHELL: Spatial Container
   ========================================================================== */

.app-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ==========================================================================
   HEADER: Typographic Masthead
   ========================================================================== */

header.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--ink);
}

.brand-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-title {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
}

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

/* Status Badge: Sharp rectangle, no pill */
.badge-screen-budget {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border: var(--border);
  border-radius: var(--radius);
  background-color: transparent;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.badge-screen-budget .red-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--signal);
  display: inline-block;
}

/* Stealth Button: Sharp rectangle, solid ink fill */
.btn-stealth-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1.15rem;
  background-color: var(--ink);
  color: var(--bg-ground);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-stealth-mode:hover {
  background-color: var(--ink-hover);
  color: #FFFFFF;
}

/* ==========================================================================
   SPATIAL GRID: Two-Column Dashboard
   ========================================================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

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

/* Spatial Card: Flat surface with hard shadow, sharp corners */
.card-column {
  background-color: var(--bg-surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--depth-2);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(10, 37, 64, 0.15);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius);
  border: var(--border-thin);
  color: var(--ink);
  background-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   LEFT COLUMN: Voice & Naturalist Interaction
   ========================================================================== */

.naturalist-voice-box {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Waveform & Mic Container */
.waveform-mic-section {
  position: relative;
  background-color: var(--bg-ground);
  border: var(--border-thin);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.audio-visualizer-canvas {
  width: 100%;
  height: 64px;
  display: block;
}

.mic-button-wrapper {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}

/* Circular Push-to-Talk Mic Button */
.btn-push-to-talk {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid var(--ink);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-push-to-talk:hover {
  background-color: var(--ink);
  color: var(--bg-ground);
  transform: scale(1.05);
}

.btn-push-to-talk.listening {
  background-color: var(--signal);
  color: #FFFFFF;
  border-color: var(--signal);
  animation: pulse-recording 1.2s infinite ease-in-out;
}

@keyframes pulse-recording {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.mic-icon-svg {
  stroke-width: 2.2;
}

.voice-hint {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-secondary);
  text-align: center;
  margin-bottom: 1rem;
}

/* Text Input & Solid Signal-Red Ask Button */
.text-query-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1.25rem;
}

.text-query-input {
  flex: 1;
  background-color: var(--bg-ground);
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink);
  transition: var(--transition);
}

.text-query-input::placeholder {
  color: var(--ink-muted);
}

.text-query-input:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(10, 37, 64, 0.15);
}

.btn-submit-text-query {
  background-color: var(--signal);
  color: var(--bg-ground);
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-submit-text-query:hover {
  background-color: var(--signal-hover);
  color: #FFFFFF;
}

/* Observation Output: Framed Quote Card */
.naturalist-quote-card {
  background-color: var(--bg-ground);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.quote-meta-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.quote-title {
  color: var(--ink);
}

.quote-divider {
  color: var(--ink-muted);
}

.quote-metrics {
  color: var(--ink-secondary);
}

.quote-body-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quote-body-text.is-fading {
  opacity: 0;
  transform: translateY(2px);
}

/* Quick-Action Tags: Outlined sharp rectangles */
.quick-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.chip-btn {
  background-color: transparent;
  border: var(--border-thin);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn:hover {
  background-color: var(--ink);
  color: var(--bg-ground);
}

/* ==========================================================================
   RIGHT COLUMN: Environmental Risk & Hardware Telemetry
   ========================================================================== */

/* Telemetry Matrix Grid */
.telemetry-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 540px) {
  .telemetry-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.matrix-cell {
  background-color: var(--bg-ground);
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.6rem;
  text-align: center;
  box-shadow: var(--depth-1);
  transition: var(--transition);
}

.matrix-cell.cell-alert-flash {
  background-color: var(--signal-light);
  border-color: var(--signal);
}

.matrix-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.matrix-number {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.matrix-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-left: 2px;
}

/* Status Banner: Flat red alert block, sharp corners */
.tabpfn-status-banner {
  background-color: var(--signal);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-weight: 700;
  transition: var(--transition);
}

.status-banner-title {
  font-size: 0.92rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Confidence tag: sharp rectangle, no pill */
.status-banner-conf {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background-color: rgba(0, 0, 0, 0.25);
  color: #FFFFFF;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius);
}

.tabpfn-status-banner.storm-active {
  animation: banner-alarm 1.5s infinite ease-in-out;
}

@keyframes banner-alarm {

  0%,
  100% {
    background-color: var(--signal);
  }

  50% {
    background-color: #991B1B;
  }
}

/* Hardware Card: Solid ink block */
.hardware-card-block {
  background-color: var(--ink);
  color: var(--bg-ground);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--depth-3);
  transition: var(--transition);
}

.hardware-card-block.haptic-pulsing {
  box-shadow: 0 0 0 2px var(--signal), var(--depth-3);
}

.hardware-status-indicator.vibrating {
  animation: haptic-text-pulse 0.4s infinite alternate ease-in-out;
}

@keyframes haptic-text-pulse {
  from {
    color: var(--signal-text);
  }
  to {
    color: #FFFFFF;
  }
}

.hardware-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hardware-node-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--bg-ground);
}

/* Signal-Red Status Indicator with CSS dot */
.hardware-status-indicator {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--signal-text);
  display: inline-flex;
  align-items: center;
}

.hardware-status-indicator::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--signal);
  margin-right: 6px;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.35);
}

.hardware-actions-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hardware-outline-btn {
  background-color: transparent;
  border: 1.5px solid var(--bg-ground);
  color: var(--bg-ground);
  border-radius: var(--radius);
  padding: 0.5rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.hardware-outline-btn:hover {
  background-color: var(--bg-ground);
  color: var(--ink);
}

/* Real-time Edge Telemetry Log */
.telemetry-log-card {
  background-color: var(--bg-ground);
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  box-shadow: var(--depth-1);
}

.telemetry-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: var(--border-thin);
}

.telemetry-log-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.telemetry-log-pulse {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--signal);
  letter-spacing: 0.04em;
}

.telemetry-event-log {
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  line-height: 1.35;
}

.log-entry {
  display: flex;
  gap: 0.45rem;
  padding: 0.25rem 0.45rem;
  border-left: 2px solid var(--ink);
  background-color: var(--bg-surface);
  color: var(--ink);
  border-radius: var(--radius);
}

.log-entry.log-entry-alert {
  border-left-color: var(--signal);
  background-color: var(--signal-light);
  color: #991B1B;
}

.log-entry.log-entry-haptic {
  border-left-color: var(--ink-secondary);
  background-color: var(--bg-surface-alt);
  color: var(--ink);
}

.log-time {
  color: var(--ink-muted);
  font-weight: 600;
  flex-shrink: 0;
}

.log-tag {
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}

.log-entry-alert .log-tag {
  color: var(--signal);
}

/* ==========================================================================
   PANEL 3: Pre-Cached Biome Species Sightings
   ========================================================================== */

.journal-column {
  margin-bottom: 1.75rem;
}

.sightings-card-deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Sightings Deck Empty State */
.sightings-empty-state {
  grid-column: 1 / -1;
  background-color: var(--bg-ground);
  border: var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--depth-1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}

/* Skeleton Loading Cards (Strictly No Gradients) */
.skeleton-card {
  background-color: var(--bg-ground);
  border: var(--border-thin);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--depth-1);
  min-height: 160px;
}

.skeleton-badge {
  width: 90px;
  height: 18px;
  background-color: var(--bg-recessed);
  border: 1px solid rgba(10, 37, 64, 0.15);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.skeleton-title {
  width: 70%;
  height: 20px;
  background-color: var(--bg-recessed);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  animation: skeleton-pulse 1.4s ease-in-out infinite 0.1s;
}

.skeleton-subtitle {
  width: 45%;
  height: 14px;
  background-color: var(--bg-recessed);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  animation: skeleton-pulse 1.4s ease-in-out infinite 0.2s;
}

.skeleton-line {
  height: 12px;
  background-color: var(--bg-recessed);
  border-radius: var(--radius);
  margin-top: 0.35rem;
  animation: skeleton-pulse 1.4s ease-in-out infinite 0.3s;
}

.skeleton-line.full {
  width: 100%;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes skeleton-pulse {

  0%,
  100% {
    opacity: 0.4;
    background-color: var(--bg-recessed);
  }

  50% {
    opacity: 0.85;
    background-color: var(--bg-surface-alt);
  }
}

.sighting-card {
  background-color: var(--bg-ground);
  border: var(--border-thin);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--depth-1);
  transition: var(--transition);
}

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

.sighting-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-toxic {
  border: 1.5px solid var(--signal);
  color: var(--signal);
  background-color: transparent;
}

.badge-edible {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background-color: transparent;
}

.badge-fauna {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background-color: transparent;
}

.sighting-common-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.sighting-sci-name {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-secondary);
  margin-bottom: 0.5rem;
}

.sighting-spoken-whisper {
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.4;
  margin-top: 0.5rem;
}

/* ==========================================================================
   TRAILHEAD SCREEN BUDGET BAR
   ========================================================================== */

.trail-lifecycle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--depth-2);
}

.lifecycle-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

.lifecycle-subtitle {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.lifecycle-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lifecycle-outline-btn {
  background-color: transparent;
  border: var(--border);
  color: var(--ink);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.lifecycle-outline-btn:hover {
  background-color: var(--ink);
  color: var(--bg-ground);
}

.lifecycle-solid-btn {
  background-color: var(--signal);
  border: none;
  color: var(--bg-ground);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.lifecycle-solid-btn:hover {
  background-color: var(--signal-hover);
  color: #FFFFFF;
}

.lifecycle-outline-btn:disabled,
.lifecycle-solid-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-banner {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--ink);
  border: 1.5px solid var(--bg-ground);
  color: var(--bg-ground);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  z-index: 10000;
  display: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 440px;
  box-shadow: var(--depth-3);
}

/* ==========================================================================
   3D SCENE: ThreeUI SylvaHero Living Green
   ========================================================================== */

.sylva-hero-section {
  width: 100%;
  margin-bottom: 2.25rem;
}

.shader-frame {
  position: relative;
  width: 100%;
  height: 800px;
  min-height: 580px;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border-thick);
  background: #383b34;
  box-shadow: var(--depth-3);
}

@media (max-width: 900px) {
  .shader-frame {
    height: 640px;
    min-height: 480px;
  }
}

@media (max-width: 600px) {
  .shader-frame {
    height: 520px;
    min-height: 420px;
  }
}

/* ==========================================================================
   PRIVACY POLICY PAGE
   ========================================================================== */

.privacy-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.privacy-page h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.privacy-page .privacy-updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.privacy-page h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: var(--border-faint);
}

.privacy-page p {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.privacy-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-page li {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.privacy-page a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-page a:hover {
  color: var(--signal);
}

.privacy-back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.privacy-back-link:hover {
  color: var(--ink);
}