/* Forest Wellness Theme — Shared across presentation and prototypes */

:root {
  /* Core palette */
  --cream: #f5f0eb;
  --cream-light: #faf8f5;
  --forest-dark: #2d5016;
  --forest: #3a6b22;
  --pine: #5a8a3c;
  --leaf: #8bb174;
  --leaf-light: #c5ddb5;
  --wood: #c4a76c;
  --wood-light: #ddc89a;
  --wood-dark: #8b7340;
  --bark: #3a2a1a;
  --sky: #7eb8d0;
  --sky-light: #b5d8e8;
  --water: #5a9bb5;
  --earth: #6b5b4a;
  --stone: #9a8e82;

  /* Semantic */
  --bg: var(--cream);
  --bg-alt: var(--cream-light);
  --text: var(--bark);
  --text-muted: var(--earth);
  --text-light: var(--stone);
  --heading: var(--forest-dark);
  --accent: var(--pine);
  --accent-light: var(--leaf);
  --highlight: var(--wood);
  --info: var(--sky);
  --success: var(--pine);
  --warning: var(--wood);
  --danger: #c0392b;

  /* Typography — Lora + Source Sans 3 */
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-accent: 'Lora', Georgia, serif;

  /* Spacing */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

/* ============================================
   PINE TREE SVG MOTIFS
   ============================================ */

.pine-divider {
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' fill='%235a8a3c' opacity='0.15'%3E%3Cpath d='M20 38L10 20L5 25L15 10L10 15L20 2L30 15L25 10L35 25L30 20Z'/%3E%3Cpath d='M60 38L50 22L45 26L55 12L50 16L60 4L70 16L65 12L75 26L70 22Z'/%3E%3Cpath d='M100 38L90 20L85 25L95 10L90 15L100 2L110 15L105 10L115 25L110 20Z'/%3E%3Cpath d='M140 38L130 22L125 26L135 12L130 16L140 4L150 16L145 12L155 26L150 22Z'/%3E%3Cpath d='M180 38L170 20L165 25L175 10L170 15L180 2L190 15L185 10L195 25L190 20Z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 200px 40px;
  margin: 16px 0;
}

.pine-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' fill='%235a8a3c' opacity='0.04'%3E%3Cpath d='M50 280L30 230L20 240L40 190L30 200L50 150L70 200L60 190L80 240L70 230Z'/%3E%3Cpath d='M150 290L125 225L112 238L138 175L125 190L150 130L175 190L162 175L188 238L175 225Z'/%3E%3Cpath d='M280 285L260 235L250 245L270 195L260 205L280 155L300 205L290 195L310 245L300 235Z'/%3E%3Cpath d='M370 290L355 245L348 253L363 208L355 216L370 170L385 216L377 208L392 253L385 245Z'/%3E%3Cpath d='M100 295L85 250L78 258L93 213L85 221L100 175L115 221L107 213L122 258L115 250Z'/%3E%3Cpath d='M220 288L200 238L190 248L210 198L200 208L220 158L240 208L230 198L250 248L240 238Z'/%3E%3Cpath d='M340 292L325 247L318 255L333 210L325 218L340 172L355 218L347 210L362 255L355 247Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
}

/* ============================================
   REVEAL.JS THEME OVERRIDES
   ============================================ */

.reveal {
  font-family: var(--font-body);
  font-size: 28px;
  color: var(--text);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  background-color: var(--bg);
  padding: 48px 72px;
  border-radius: 8px;
  border-top: 4px solid var(--pine);
  box-shadow: 0 12px 40px rgba(42, 31, 20, 0.14), 0 1px 3px rgba(42, 31, 20, 0.08);
}

.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.2;
}

.reveal h4 {
  font-family: var(--font-body);
  color: var(--heading);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.reveal h1 { font-size: 2.8em; margin-bottom: 0.25em; font-weight: 700; }
.reveal h2 { font-size: 1.9em; margin-bottom: 0.35em; }
.reveal h3 { font-size: 1.3em; margin-bottom: 0.3em; }

.reveal p {
  line-height: 1.65;
  margin-bottom: 0.8em;
  font-weight: 400;
}

.reveal li {
  line-height: 1.65;
  margin-bottom: 0.35em;
}

.reveal .subtitle {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.65em;
  font-weight: 400;
  margin-top: -0.2em;
  margin-bottom: 1.2em;
  letter-spacing: 0.01em;
}

.reveal a { color: var(--accent); text-decoration: none; }
.reveal a:hover { color: var(--forest-dark); text-decoration: underline; }

.reveal strong { color: var(--forest-dark); font-weight: 700; }

.reveal code {
  font-family: var(--font-mono);
  background: var(--cream-light);
  border: 1px solid var(--leaf-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Slide backgrounds — warm taupe behind slides */
.reveal .slide-background {
  background-color: #d8d0c4;
}

.reveal {
  background-color: #d8d0c4;
}

/* Progress bar */
.reveal .progress { color: var(--pine); height: 3px; }

/* Controls — bottom center */
.reveal .controls { color: var(--pine); }
.reveal .controls { bottom: 12px !important; left: 50% !important; transform: translateX(-50%) !important; right: auto !important; }
.reveal .controls .controls-arrow { color: var(--pine); }
.reveal .controls .controls-arrow:hover { color: var(--forest-dark); }

/* Slide number */
.reveal .slide-number {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--stone);
  letter-spacing: 0.05em;
}

/* ============================================
   SHARED COMPONENT STYLES
   ============================================ */

/* Cards */
.card {
  background: var(--bg-alt);
  border: 1px solid rgba(197, 221, 181, 0.5);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(45, 80, 22, 0.04);
}

.card:hover {
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.08);
  transform: translateY(-1px);
}

.card-header {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05em;
  color: var(--heading);
  margin-bottom: 10px;
}

/* KPI Cards */
.kpi {
  background: var(--bg-alt);
  border: 1px solid rgba(197, 221, 181, 0.5);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(45, 80, 22, 0.04);
  transition: all 0.25s ease;
}

.kpi:hover {
  box-shadow: 0 4px 16px rgba(45, 80, 22, 0.08);
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 2.2em;
  font-weight: 700;
  color: var(--forest-dark);
  line-height: 1.15;
}

.kpi-label {
  font-family: var(--font-body);
  font-size: 0.7em;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.kpi-trend {
  font-family: var(--font-body);
  font-size: 0.75em;
  font-weight: 500;
  margin-top: 4px;
}

.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85em;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--pine);
  color: white;
  box-shadow: 0 2px 8px rgba(90, 138, 60, 0.25);
}

.btn-primary:hover {
  background: var(--forest-dark);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--cream);
  color: var(--forest-dark);
  border: 1.5px solid var(--leaf-light);
}

.btn-secondary:hover {
  background: var(--leaf-light);
  border-color: var(--leaf);
}

.btn-accent {
  background: var(--wood);
  color: white;
  box-shadow: 0 2px 8px rgba(196, 167, 108, 0.25);
}

.btn-accent:hover {
  background: var(--wood-dark);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.75em;
}

/* Tags / Badges */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-green { background: var(--leaf-light); color: var(--forest-dark); }
.badge-blue { background: var(--sky-light); color: #1a5276; }
.badge-wood { background: var(--wood-light); color: var(--bark); }
.badge-stone { background: #e8e2dc; color: var(--earth); }

/* Tables */
.styled-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.65em;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(45, 80, 22, 0.06);
}

.styled-table th {
  background: var(--forest-dark);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.02em;
}

.styled-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(197, 221, 181, 0.4);
  font-weight: 400;
}

.styled-table tr:nth-child(even) {
  background: rgba(250, 248, 245, 0.7);
}

.styled-table tr:hover {
  background: rgba(197, 221, 181, 0.25);
}

/* Status indicators */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-dot.active { background: var(--success); }
.status-dot.warning { background: var(--warning); }
.status-dot.inactive { background: var(--stone); }
.status-dot.danger { background: var(--danger); }

/* ============================================
   PROTOTYPE LAYOUT COMPONENTS
   ============================================ */

/* Dashboard grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* Sidebar layout */
.layout-sidebar {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: 260px;
  background: var(--forest-dark);
  color: white;
  padding: 20px 0;
  flex-shrink: 0;
}

.sidebar-logo {
  padding: 0 20px 20px;
  font-family: var(--font-heading);
  font-size: 1.3em;
  font-weight: 600;
  color: var(--leaf-light);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88em;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.sidebar-nav a.active {
  background: rgba(255,255,255,0.08);
  color: white;
  border-left-color: var(--leaf);
}

.main-content {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--leaf-light);
}

/* Mobile layout (for employee/guest prototypes) */
.mobile-frame {
  max-width: 390px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
}

.mobile-header {
  background: linear-gradient(135deg, var(--forest-dark) 0%, #1d3a0e 100%);
  color: white;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-header h1 {
  font-family: var(--font-heading);
  font-size: 1.15em;
  font-weight: 600;
  margin: 0;
  color: white;
  letter-spacing: -0.01em;
}

.mobile-tabs {
  display: flex;
  background: var(--cream-light);
  border-bottom: 2px solid var(--leaf-light);
}

.mobile-tab {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.mobile-tab.active {
  color: var(--forest-dark);
  border-bottom-color: var(--pine);
}

.mobile-body {
  padding: 16px;
}

/* Chat layout (for support prototype) */
.chat-layout {
  display: flex;
  height: 100vh;
}

.chat-list {
  width: 320px;
  border-right: 1px solid var(--leaf-light);
  overflow-y: auto;
  background: var(--bg-alt);
}

.chat-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--leaf-light);
  cursor: pointer;
  transition: background 0.2s;
}

.chat-item:hover, .chat-item.active {
  background: var(--leaf-light);
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.chat-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 0.9em;
  line-height: 1.5;
}

.chat-bubble.incoming {
  background: var(--cream-light);
  border: 1px solid var(--leaf-light);
  border-bottom-left-radius: 4px;
}

.chat-bubble.outgoing {
  background: var(--pine);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  background: var(--sky-light);
  border: 1px solid var(--sky);
  border-bottom-left-radius: 4px;
}

.chat-input {
  padding: 16px;
  border-top: 1px solid var(--leaf-light);
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--leaf-light);
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  outline: none;
}

.chat-input input:focus {
  border-color: var(--pine);
}

/* Guest sidebar (for support prototype) */
.guest-sidebar {
  width: 300px;
  border-left: 1px solid var(--leaf-light);
  padding: 20px;
  overflow-y: auto;
  background: var(--bg-alt);
}

/* Tab switcher (for employee prototype) */
.role-switcher {
  display: flex;
  background: var(--forest-dark);
  overflow-x: auto;
}

.role-tab {
  padding: 12px 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.role-tab:hover { color: rgba(255,255,255,0.9); }
.role-tab.active {
  color: white;
  border-bottom-color: var(--leaf);
}

/* Task cards (employee prototypes) */
.task-card {
  background: var(--bg-alt);
  border: 1px solid var(--leaf-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  border-left: 4px solid var(--pine);
}

.task-card.urgent {
  border-left-color: var(--danger);
}

.task-card.pending {
  border-left-color: var(--wood);
}

.task-card-title {
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 4px;
}

.task-card-meta {
  font-size: 0.8em;
  color: var(--text-muted);
}

/* ============================================
   PRESENTATION-SPECIFIC COMPONENTS
   ============================================ */

/* Comparison columns */
.compare-cols {
  display: flex;
  gap: 24px;
}

.compare-col {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--leaf-light);
  border-radius: var(--radius);
  padding: 24px;
}

.compare-col.highlight {
  border-color: var(--pine);
  border-width: 2px;
  box-shadow: 0 4px 16px rgba(45, 80, 22, 0.15);
}

/* Architecture layers */
.arch-layer {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.arch-layer.guest { background: rgba(126, 184, 208, 0.15); border: 2px solid var(--sky); }
.arch-layer.custom { background: rgba(90, 138, 60, 0.1); border: 2px solid var(--pine); }
.arch-layer.saas { background: rgba(196, 167, 108, 0.15); border: 2px solid var(--wood); }
.arch-layer.hardware { background: rgba(58, 42, 26, 0.08); border: 2px solid var(--earth); }

.arch-component {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.6em;
  font-weight: 600;
  margin: 4px;
}

/* Phase timeline */
.phase-timeline {
  display: flex;
  gap: 0;
  margin: 20px 0;
}

.phase-block {
  padding: 16px 20px;
  color: white;
  font-size: 0.6em;
}

.phase-block:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.phase-block:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

.phase-block.p1 { background: var(--sky); flex: 3; }
.phase-block.p2 { background: var(--pine); flex: 4; }
.phase-block.p3 { background: var(--wood); flex: 5; }

/* Competitor matrix */
.competitor-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

/* Demo link cards */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.demo-card {
  background: var(--bg-alt);
  border: 1.5px solid rgba(197, 221, 181, 0.5);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(45, 80, 22, 0.04);
  position: relative;
  overflow: hidden;
}

.demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pine), var(--leaf));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.demo-card:hover {
  border-color: var(--pine);
  box-shadow: 0 8px 24px rgba(45, 80, 22, 0.12);
  transform: translateY(-3px);
  text-decoration: none;
}

.demo-card:hover::before {
  opacity: 1;
}

.demo-card-icon {
  font-size: 2.2em;
  margin-bottom: 10px;
  display: block;
}

.demo-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1em;
  color: var(--heading);
  margin-bottom: 6px;
}

.demo-card-desc {
  font-family: var(--font-body);
  font-size: 0.72em;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-forest { color: var(--forest-dark); }
.text-pine { color: var(--pine); }
.text-wood { color: var(--wood); }
.text-sky { color: var(--sky); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-sm { font-size: 0.8em; }
.text-xs { font-size: 0.65em; }
.text-lg { font-size: 1.2em; }

.bg-cream { background: var(--cream); }
.bg-cream-light { background: var(--cream-light); }
.bg-forest { background: var(--forest-dark); color: white; }
.bg-pine { background: var(--pine); color: white; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }

.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .reveal .slides section { padding: 32px 40px; }
  .reveal h1 { font-size: 2em; }
  .reveal h2 { font-size: 1.5em; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-cols { gap: 16px; }
  .sidebar { width: 220px; }
}

/* Mobile */
@media (max-width: 768px) {
  .reveal .slides section { padding: 20px 24px; }
  .reveal h1 { font-size: 1.6em; }
  .reveal h2 { font-size: 1.3em; }
  .reveal h3 { font-size: 1.05em; }
  .reveal .subtitle { font-size: 0.6em; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .compare-cols { flex-direction: column; }
  .demo-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sidebar { display: none; }
  .main-content { padding: 16px; }
  .layout-sidebar { flex-direction: column; }
  .chat-layout { flex-direction: column; height: auto; }
  .chat-list { width: 100%; max-height: 200px; border-right: none; border-bottom: 1px solid var(--leaf-light); }
  .guest-sidebar { display: none; }
  .chat-main { min-height: 400px; }
  .kpi { padding: 12px 14px; }
  .kpi-value { font-size: 1.6em; }
  .card { padding: 14px; margin-bottom: 10px; }
  .styled-table { font-size: 0.55em; }
  .styled-table th, .styled-table td { padding: 6px 8px; }
  .mobile-frame { max-width: 100%; }
  .arch-layer { padding: 10px 12px; margin-bottom: 6px; }
  .arch-component { padding: 4px 8px; font-size: 0.6em; margin: 2px; }
  .phase-timeline { flex-direction: column; }
  .phase-block { border-radius: 0 !important; }
  .phase-block:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .phase-block:last-child { border-radius: 0 0 var(--radius) var(--radius) !important; }
  .btn { padding: 8px 16px; font-size: 0.8em; }
  .btn-sm { padding: 5px 10px; font-size: 0.7em; }
}

/* Small phone */
@media (max-width: 480px) {
  .reveal .slides section { padding: 16px 18px; }
  .reveal h1 { font-size: 1.35em; }
  .reveal h2 { font-size: 1.15em; }
  .reveal h3 { font-size: 0.95em; }
  .demo-grid { grid-template-columns: 1fr; }
  .kpi-value { font-size: 1.3em; }
  .kpi-label { font-size: 0.55em; }
  .arch-component { font-size: 0.55em; padding: 3px 6px; }
  .styled-table { font-size: 0.5em; }
  #top-controls { top: 8px; right: 8px; gap: 4px; }
  #top-controls button, #top-controls #lang-toggle button { padding: 4px 10px; font-size: 11px; }
  #toc-btn { font-size: 0; }
  #toc-btn span { font-size: 16px; }
}
