@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/dm-sans-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-400-normal.woff2") format("woff2");
}

:root {
  --surface: #f9f8f6;
  --surface-50: #fdfcfa;
  --surface-100: #f2f0ec;
  --surface-200: #e8e6e2;
  --surface-300: #d4d2ce;
  --ink: #1a1a1a;
  --ink-600: #3a3a3a;
  --ink-400: #6a6a6a;
  --ink-300: #8a8a8a;
  --green: #276035;
  --green-bright: #3f7d4b;
  --green-bg: #e9f5ea;
  --green-border: #b8d9bd;
  --error: #8c3027;
  --error-bg: #fae9e7;
  --busy: #7a5415;
  --busy-bg: #fff5df;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --header-h: 64px;
  --rail-w: 312px;
  --radius: 14px;
}

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

html, body { margin: 0; height: 100%; }

body {
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button, textarea, select, input, output { color: inherit; font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: var(--ink);
  color: white;
}

.shell { width: 100%; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--header-h) minmax(0, 1fr); }

/* AskJASP header */
.site-header {
  position: relative;
  z-index: 20;
  overflow: visible;
  border-bottom: 1px solid var(--surface-300);
  background: rgba(249, 248, 246, 0.95);
  backdrop-filter: blur(12px);
}
.site-header.nav-open { z-index: 50; }

.header-inner {
  width: 100%;
  height: 100%;
  padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}
.brand-mark { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-family: var(--font-serif); font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--ink-400); }
.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
  flex-shrink: 0;
}
.nav a { color: var(--ink-400); font-size: 0.9rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav-button { padding: 0.5rem 0.8rem; border: 1px solid var(--surface-300); border-radius: 10px; color: var(--ink) !important; }
.nav-button:hover { border-color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--surface-300);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  position: relative;
  transition: transform 0.15s, opacity 0.15s;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-header.nav-open .nav-toggle-bars { background: transparent; }
.site-header.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.site-header.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* App frame */
.lab { min-height: 0; display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); }

.rail {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--surface-300);
  background: var(--surface-100);
}

.rail-main { min-height: 0; flex: 1; overflow: auto; padding: 0.9rem; }

.new-session {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--surface-300);
  border-radius: 12px;
  background: white;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.new-session:hover { border-color: var(--ink); }
.new-session-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--ink); color: white; font-size: 0.95rem; line-height: 1; }

.rail-section { margin-top: 1.35rem; }
.rail-label { margin: 0 0 0.5rem 0.45rem; color: var(--ink-300); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.model-list { display: flex; flex-direction: column; gap: 0.55rem; }

.model-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid var(--surface-200);
  border-radius: 12px;
  background: var(--surface-50);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, transform 140ms ease;
}
.model-card.is-on { border-color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
@media (hover: hover) {
  .model-card:hover {
    border-color: var(--surface-300);
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .model-card.is-on:hover {
    border-color: var(--ink);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  }
  .model-card.is-loaded:hover { border-color: var(--green-border); }
  .model-card:active:not(:has(.card-action:active)) {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }
}
.model-card:focus-within {
  outline: 3px solid rgba(63,125,75,0.16);
  outline-offset: 2px;
}
.model-card.is-loaded { border-color: var(--green-border); }
.model-card-head { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0.65rem; align-items: start; }
.model-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.45rem; margin-bottom: 0.2rem; }
.model-kind-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 1.05rem;
  padding: 0 0.28rem;
  border: 1px solid var(--surface-300);
  border-radius: 999px;
  color: var(--ink-300);
  font-size: 0.46rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.model-card.is-on .model-kind-badge { border-color: var(--surface-300); }
.model-desc {
  margin: 0 0 0.35rem;
  color: var(--ink-400);
  font-size: 0.63rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.model-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}
.card-action {
  min-height: 30px;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--surface-300);
  border-radius: 8px;
  background: white;
  color: var(--ink-600);
  font-size: 0.61rem;
  font-weight: 600;
  cursor: pointer;
}
.card-action:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.card-action:disabled { opacity: 0.45; cursor: not-allowed; }
.card-action-primary { grid-column: 1 / -1; min-height: 34px; background: var(--ink); border-color: var(--ink); color: white; }
.card-action-primary:hover:not(:disabled) { background: #2a2a2a; border-color: #2a2a2a; color: white; }
.model-card.is-loaded .card-action-primary { background: white; border-color: var(--surface-300); color: var(--ink); }
.model-card.is-loaded .card-action-primary:hover:not(:disabled) { border-color: var(--ink); }

.model-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--surface-300); border-radius: 9px; background: white; font-family: var(--font-serif); font-size: 0.95rem; }
.model-card.is-on .model-icon { border-color: var(--ink); background: var(--ink); color: white; }
.model-copy { min-width: 0; }
.model-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.84rem; font-weight: 600; }

.rail-note {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--green-border);
  border-radius: 12px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 0.68rem;
  line-height: 1.45;
}
.rail-note-icon { flex: 0 0 auto; margin-top: 0.08rem; }
.rail-note strong { display: block; margin-bottom: 0.08rem; font-size: 0.7rem; }

.main-note {
  position: relative;
  top: -3.25rem;
  width: min(29rem, 100%);
  margin: 0 auto 2rem;
  text-align: left;
}

.rail-foot { padding: 0.85rem 0.9rem; border-top: 1px solid var(--surface-300); }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-300); }
.status[data-state="ready"] { color: var(--green); }
.status[data-state="ready"] .status-dot { background: var(--green-bright); box-shadow: 0 0 0 3px rgba(63,125,75,0.12); }
.status[data-state="busy"] { color: var(--busy); }
.status[data-state="busy"] .status-dot { background: #b57b28; animation: pulse 1s ease infinite; }
.status[data-state="error"] { color: var(--error); }
.status[data-state="error"] .status-dot { background: var(--error); }
.rail-cap { color: var(--ink-300); font-size: 0.6rem; }
.rail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; margin-top: 0.7rem; }
.rail-action:disabled { opacity: 0.45; cursor: not-allowed; }
.rail-action:disabled:hover { border-color: var(--surface-300); color: var(--ink-400); background: transparent; }
.rail-action { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 32px; border: 1px solid var(--surface-300); border-radius: 9px; background: transparent; color: var(--ink-400); font-size: 0.66rem; font-weight: 600; cursor: pointer; }
.rail-action:hover { border-color: var(--ink); color: var(--ink); background: white; }
#downloads-btn {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
#downloads-btn:hover:not(:disabled) {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: white;
}
#downloads-btn:disabled:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
#downloads-btn .rail-action-badge {
  background: rgba(255,255,255,0.18);
  color: white;
}
.rail-action-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.1rem; height: 1.1rem; padding: 0 0.28rem; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 0.58rem; font-weight: 700; line-height: 1; }
.picker-model.is-cached .picker-model-copy small { color: var(--green); }

@keyframes pulse { 50% { opacity: 0.45; } }

/* Main chat-like surface */
.workspace { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) max-content; background: var(--surface-50); }

.chat-header {
  grid-row: 1;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--surface-200);
  background: rgba(253,252,250,0.92);
}
.chat-header-model {
  display: none;
  align-items: center;
  gap: 0.55rem;
}
.chat-header-actions { display: flex; align-items: center; gap: 0.55rem; }
.chat-header h1 { margin: 0; min-width: 0; font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.model-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  min-height: 34px;
  padding: 0.2rem 0.25rem 0.2rem 0.65rem;
  border: 1px solid var(--surface-300);
  border-radius: 10px;
  background: white;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(24,24,24,0.035);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.model-switcher:hover { border-color: var(--ink-400); box-shadow: 0 2px 7px rgba(24,24,24,0.07); }
.model-switcher:active { background: var(--surface-50); box-shadow: none; }
.model-switcher-chevron {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 7px;
  background: var(--surface-100);
}
.model-switcher-chevron::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid var(--ink-400);
  border-bottom: 1.5px solid var(--ink-400);
  transform: rotate(45deg);
}
.model-switcher:hover .model-switcher-chevron { background: var(--ink); }
.model-switcher:hover .model-switcher-chevron::before { border-color: white; }
#doc-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-button { border: 0; background: transparent; color: var(--ink-400); font-size: 0.67rem; font-weight: 600; cursor: pointer; }
.header-button:hover:not(:disabled) { color: var(--ink); }
.header-button:disabled { opacity: 0.35; cursor: not-allowed; }
.info-button { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 1px solid var(--surface-300); border-radius: 50%; background: white; color: var(--ink-400); font-family: var(--font-serif); font-size: 0.8rem; cursor: pointer; }
.info-button:hover { border-color: var(--ink); color: var(--ink); }
#model-info-btn { display: none; }

.mobile-header-btn { display: none; }

.load-banner {
  grid-row: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--surface-300);
  background: var(--surface-100);
  color: var(--ink-600);
}
.load-banner[hidden], .stats[hidden], .empty[hidden] { display: none; }
.load-banner-copy { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-size: 0.68rem; }
.load-banner-copy strong { font-size: 0.7rem; }
.load-banner-copy span { color: var(--ink-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.load-banner-pct { font-size: 0.68rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }

.conversation { grid-row: 2; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.doc { width: min(760px, calc(100% - 2rem)); min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; }
.scroll-latest {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 7.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  transform: translateX(-50%);
  border: 1px solid var(--surface-300);
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: var(--ink-600);
  box-shadow: 0 6px 20px rgba(24,24,24,0.12);
  font-size: 0.63rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.scroll-latest[hidden] { display: none; }
.scroll-latest:hover { border-color: var(--ink); color: var(--ink); }
.scroll-latest span { font-size: 0.85rem; line-height: 1; }

.empty { margin: auto 0; padding: 3rem 0 2.5rem; text-align: center; }
.empty-mark { width: 48px; height: 48px; margin: 0 auto 1rem; }
.empty-mark img { width: 48px; height: 48px; border-radius: 12px; }
.empty h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 400; letter-spacing: -0.03em; }
.empty > p { max-width: 29rem; margin: 0.55rem auto 1.5rem; color: var(--ink-400); font-size: 0.84rem; line-height: 1.55; }
.starters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; text-align: left; }
.starter { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-width: 0; min-height: 76px; padding: 0.75rem; border: 1px solid var(--surface-300); border-radius: 12px; background: white; cursor: pointer; }
.starter:hover { border-color: var(--ink); }
.starter-copy { min-width: 0; }
.starter-copy strong, .starter-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.starter-copy strong { margin-bottom: 0.2rem; font-size: 0.72rem; }
.starter-copy span { color: var(--ink-300); font-size: 0.65rem; }
.starter-arrow { color: var(--ink-300); }
.experiment-note { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; padding: 0.35rem 0.55rem; border: 0; border-radius: 8px; background: transparent; color: var(--ink-300); font-size: 0.59rem; cursor: pointer; }
.experiment-note:hover { background: var(--surface-100); color: var(--ink-400); }
.experiment-note > span:last-child { margin-left: 0.15rem; color: var(--ink-400); font-weight: 600; }
.experiment-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); }

.gen { padding: 1.8rem 0 3rem; }
.exchange { position: relative; }
.exchange + .exchange { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 2px solid var(--surface-200); }
.turn { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0.8rem; padding: 1.1rem 0; }
.turn + .turn { border-top: 1px solid var(--surface-200); }
.turn-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 0.72rem; font-weight: 600; }
.turn-avatar-user { border: 1px solid var(--surface-300); background: white; color: var(--ink-400); }
.turn-avatar-model { background: var(--ink); color: white; font-family: var(--font-serif); font-size: 0.9rem; }
.turn-content { min-width: 0; }
.turn-label { margin: 0 0 0.42rem; color: var(--ink-300); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.turn-seed p { margin: 0; color: var(--ink-600); font-size: 0.88rem; line-height: 1.55; }
.turn-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 0; }
.turn-head .turn-label { margin: 0; }
.gen-actions { display: flex; align-items: center; gap: 0.2rem; flex-shrink: 0; }
.mini { padding: 0.24rem 0.42rem; border: 0; border-radius: 6px; background: transparent; color: var(--ink-300); font-size: 0.62rem; font-weight: 600; cursor: pointer; }
.mini:hover { background: var(--surface-100); color: var(--ink); }
.gen-body { color: var(--ink-600); font-size: 0.94rem; line-height: 1.75; }
.gen-body pre { display: inline; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.caret { display: none; width: 0.5ch; height: 1em; margin-left: 2px; vertical-align: -0.08em; background: var(--ink); animation: blink 0.9s steps(1) infinite; }
.caret.is-active { display: inline-block; }
@keyframes blink { 50% { opacity: 0; } }
.stats { margin: 0.7rem 0 0; }
.stats-badges { display: flex; flex-wrap: wrap; gap: 0.3rem 0.35rem; }
.stats-short { display: none; }
.stat-badge {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.58rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stat-badge.is-backend { text-transform: lowercase; }
.stat-badge.is-stopped { border-color: rgba(180, 95, 60, 0.35); color: #9a4f33; }
.stat-badge.is-muted { color: var(--ink-300); }

/* Composer */
.composer-wrap { grid-row: 3; width: min(780px, calc(100% - 2rem)); margin: 0 auto; padding: 0.75rem 0 0.6rem; }
.composer { position: relative; padding: 0.75rem 0.75rem 0.65rem; border: 1px solid var(--surface-300); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(24,24,24,0.06); }
#prompt { display: block; width: 100%; min-height: 48px; max-height: 150px; padding: 0.15rem 0.2rem; overflow-y: auto; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 0.88rem; line-height: 1.5; }
#prompt::placeholder { color: var(--ink-300); }
#prompt:disabled { opacity: 0.55; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.35rem; }
.composer-meta, .composer-actions { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.composer-chip { max-width: 180px; padding: 0.28rem 0.5rem; overflow: hidden; border: 1px solid var(--surface-200); border-radius: 8px; background: var(--surface-50); color: var(--ink-400); font-size: 0.61rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.composer-chip:hover:not(:disabled) { border-color: var(--surface-300); color: var(--ink); }
.composer-chip:disabled { opacity: 0.5; cursor: not-allowed; }
.char-count { color: var(--ink-300); font-size: 0.58rem; font-variant-numeric: tabular-nums; }
.send-button { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 34px; padding: 0.25rem 0.28rem 0.25rem 0.7rem; border: 0; border-radius: 10px; background: var(--ink); color: white; font-size: 0.67rem; font-weight: 600; cursor: pointer; }
.send-button:hover:not(:disabled) { background: #2a2a2a; }
.send-button:disabled { opacity: 0.42; cursor: not-allowed; }
.send-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: white; color: var(--ink); font-size: 0.9rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0.45rem 0.65rem; border: 1px solid transparent; border-radius: 9px; background: transparent; font-size: 0.67rem; font-weight: 600; cursor: pointer; }
.btn-outline { border-color: var(--surface-300); background: white; }
.btn-outline:hover:not(:disabled) { border-color: var(--ink); }
.stop-button:disabled { display: none; }
.composer-below { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 25px; padding: 0.3rem 0.25rem 0; }
.composer-wrap.is-loading .bar-msg { visibility: hidden; }
.bar-msg, .bar-hint { margin: 0; color: var(--ink-300); font-size: 0.58rem; }
.bar-msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-msg.is-error { color: var(--error); }
.bar-hint { flex: 0 0 auto; }
kbd { padding: 0.08rem 0.25rem; border: 1px solid var(--surface-300); border-radius: 4px; background: var(--surface-100); font-family: inherit; font-size: 0.54rem; }

/* Dialogs */
.dialog { width: min(380px, calc(100% - 2rem)); padding: 0; border: 1px solid var(--surface-300); border-radius: 16px; background: white; color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,0.18); }
.dialog::backdrop { background: rgba(26,26,26,0.35); backdrop-filter: blur(2px); }
.dialog-inner { padding: 1.2rem; }
.dialog-inner header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.eyebrow { margin: 0 0 0.2rem; color: var(--ink-300); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.dialog h2 { margin: 0; font-family: var(--font-serif); font-size: 1.7rem; font-weight: 400; }
.dialog-close { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--surface-300); border-radius: 9px; background: transparent; color: var(--ink-400); font-size: 1rem; cursor: pointer; }
.dialog-close:hover { border-color: var(--ink); color: var(--ink); }
.setting { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; color: var(--ink-600); font-size: 0.75rem; font-weight: 600; }
.setting-label { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.setting select { width: 100%; height: 40px; padding: 0 0.65rem; border: 1px solid var(--surface-300); border-radius: 9px; background: var(--surface-50); font-size: 0.72rem; }
.setting-range { gap: 0.5rem; }
.token-value {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
}
.token-value::after {
  content: " tokens";
  color: var(--ink-300);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
}
.range-bounds {
  display: flex;
  justify-content: space-between;
  margin-top: -0.2rem;
  padding: 0 1px;
  color: var(--ink-300);
  font-size: 0.58rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.setting input[type="range"] {
  --range-progress: 42%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 20px;
  margin: 0.1rem 0 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.setting input[type="range"]:focus { outline: none; }
.setting input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--ink) 0%,
    var(--ink) var(--range-progress),
    var(--surface-200) var(--range-progress),
    var(--surface-200) 100%
  );
}
.setting input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border: 1.5px solid var(--surface-300);
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.08);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.setting input[type="range"]::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-200);
}
.setting input[type="range"]::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
}
.setting input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--surface-300);
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.08);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.setting input[type="range"]:hover::-webkit-slider-thumb,
.setting input[type="range"]:hover::-moz-range-thumb {
  border-color: var(--ink-400);
  box-shadow: 0 1px 4px rgba(26, 26, 26, 0.12);
}
.setting input[type="range"]:active::-webkit-slider-thumb,
.setting input[type="range"]:active::-moz-range-thumb {
  transform: scale(1.08);
  border-color: var(--ink);
}
.setting input[type="range"]:focus-visible::-webkit-slider-thumb,
.setting input[type="range"]:focus-visible::-moz-range-thumb {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}
.setting input[type="range"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.fine { margin: 0.75rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--surface-200); color: var(--ink-300); font-size: 0.65rem; line-height: 1.5; }
.metrics { margin: 0; }
.metrics div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--surface-200); font-size: 0.71rem; }
.metrics dt { color: var(--ink-400); }
.metrics dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cache-panel { margin-top: 1rem; padding: 0.85rem; border: 1px solid var(--surface-200); border-radius: 11px; background: var(--surface-50); }
.cache-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cache-heading strong { font-size: 0.72rem; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--ink-400); font-size: 0.62rem; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.cache-help { margin: 0 0 0.75rem; color: var(--ink-300); font-size: 0.61rem; line-height: 1.5; }
.cache-list { display: flex; flex-direction: column; gap: 0.45rem; min-height: 4.5rem; }
.cache-empty { margin: 0; padding: 0.75rem; border: 1px dashed var(--surface-300); border-radius: 10px; color: var(--ink-300); font-size: 0.65rem; line-height: 1.5; text-align: center; }
.cache-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1rem; align-items: center; padding: 0.65rem 0.75rem; border: 1px solid var(--surface-200); border-radius: 10px; background: white; }
.cache-row-main { min-width: 0; }
.cache-row-title { font-size: 0.76rem; font-weight: 600; color: var(--ink); }
.cache-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.35rem;
  margin-top: 0.28rem;
}
.cache-row-badges .stat-badge { font-size: 0.58rem; }
.cache-row-badges .stat-badge.is-repo {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-transform: none;
}
.downloads-foot { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--surface-200); }

.model-warning { margin: -0.15rem 0 1rem; color: var(--ink-400); font-size: 0.76rem; line-height: 1.55; }
.model-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 1rem; border: 1px solid var(--surface-200); border-radius: 11px; overflow: hidden; }
.model-facts div { padding: 0.7rem; border-bottom: 1px solid var(--surface-200); }
.model-facts div:nth-child(odd) { border-right: 1px solid var(--surface-200); }
.model-facts div:nth-last-child(-n+2) { border-bottom: 0; }
.model-facts dt { margin-bottom: 0.16rem; color: var(--ink-300); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.07em; }
.model-facts dd { margin: 0; font-size: 0.72rem; font-weight: 600; }
.info-callout { margin-top: 0.55rem; padding: 0.75rem; border-radius: 10px; background: var(--surface-100); color: var(--ink-600); }
.info-callout-green { background: var(--green-bg); color: var(--green); }
.info-callout strong { display: block; font-size: 0.7rem; }
.info-callout p { margin: 0.25rem 0 0; font-size: 0.64rem; line-height: 1.5; }
.model-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.85rem; padding: 0.7rem 0.75rem; border: 1px solid var(--surface-300); border-radius: 10px; color: var(--ink); font-size: 0.68rem; font-weight: 600; text-decoration: none; }
.model-link:hover { border-color: var(--ink); }

.picker-intro { margin: -0.2rem 0 0.9rem; color: var(--ink-400); font-size: 0.7rem; line-height: 1.5; }
.picker-models { display: flex; flex-direction: column; gap: 0.45rem; }
.picker-model { display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 0.7rem; align-items: start; width: 100%; padding: 0.75rem; border: 1px solid var(--surface-200); border-radius: 12px; background: var(--surface-50); text-align: left; cursor: pointer; }
.picker-model:hover { border-color: var(--surface-300); background: white; }
.picker-model.is-on { border-color: var(--ink); background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.picker-model-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--surface-300); border-radius: 9px; background: white; font-family: var(--font-serif); }
.picker-model.is-on .picker-model-mark { border-color: var(--ink); background: var(--ink); color: white; }
.picker-model-copy { min-width: 0; }
.picker-model-copy strong, .picker-model-copy span, .picker-model-copy small { display: block; }
.picker-model-copy strong { margin-bottom: 0.1rem; font-size: 0.78rem; }
.picker-model-copy span { color: var(--ink-400); font-size: 0.63rem; }
.picker-model-copy small { margin-top: 0.28rem; color: var(--ink-300); font-size: 0.6rem; line-height: 1.4; }
.picker-selected { color: transparent; font-size: 0.72rem; }
.picker-model.is-on .picker-selected { color: var(--green-bright); }
.picker-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--surface-200); }
.picker-downloads-primary {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
  color: white;
  font-size: 0.67rem;
  font-weight: 600;
  cursor: pointer;
}
.picker-downloads-primary:hover:not(:disabled) { background: #2a2a2a; border-color: #2a2a2a; }
.picker-downloads-primary:disabled { opacity: 0.42; cursor: not-allowed; }
.model-picker-dialog[open] { width: min(420px, calc(100% - 1.25rem)); }

/* First-download consent, adapted from the real Browser Lab */
.lab-consent[hidden] { display: none; }
.lab-consent { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 1.25rem; }
.lab-consent-backdrop { position: absolute; inset: 0; background: rgba(26,26,26,0.48); backdrop-filter: blur(3px); }
.lab-consent-dialog { position: relative; z-index: 1; width: min(480px, 100%); max-height: min(90vh, 650px); overflow-y: auto; padding: 1.4rem; border: 1px solid rgba(15,23,42,0.12); border-radius: 18px; background: white; box-shadow: 0 28px 80px rgba(24,20,16,0.22); }
.consent-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 1rem; border-radius: 10px; background: var(--ink); color: white; font-size: 1rem; }
.lab-consent-dialog h2 { margin: 0.25rem 0 0.75rem; font-family: var(--font-serif); font-size: 2rem; font-weight: 400; letter-spacing: -0.03em; }
.consent-summary { margin-bottom: 1rem; color: var(--ink-400); font-size: 0.75rem; line-height: 1.55; }
.consent-body { border-top: 1px solid var(--surface-200); }
.consent-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0.65rem; padding: 0.75rem 0; border-bottom: 1px solid var(--surface-200); }
.consent-row-icon { padding-top: 0.08rem; color: var(--ink-300); font-size: 0.56rem; font-weight: 600; }
.consent-row p { margin: 0; color: var(--ink-400); font-size: 0.68rem; line-height: 1.5; }
.consent-row strong { display: block; margin-bottom: 0.12rem; color: var(--ink); font-size: 0.7rem; }
.consent-fine { margin: 0.8rem 0 0; color: var(--ink-300); font-size: 0.6rem; line-height: 1.5; }
.consent-fine a { color: inherit; }
.consent-actions { display: flex; justify-content: flex-end; gap: 0.55rem; margin-top: 1rem; }
.consent-accept { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 36px; padding: 0.45rem 0.55rem 0.45rem 0.75rem; border: 0; border-radius: 9px; background: var(--ink); color: white; font-size: 0.68rem; font-weight: 600; cursor: pointer; }
.consent-accept span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: white; color: var(--ink); }
.consent-accept:hover { background: #2a2a2a; }

.doc.is-busy #prompt { caret-color: transparent; }

button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid rgba(63,125,75,0.2); outline-offset: 2px; }
button, a { touch-action: manipulation; }

@media (max-width: 760px) {
  html, body { height: 100%; height: 100dvh; overflow: hidden; }
  .shell { height: 100%; height: 100dvh; min-height: 0; grid-template-rows: calc(56px + env(safe-area-inset-top, 0px)) minmax(0, 1fr); }
  :root { --header-h: 56px; }
  .site-header { padding-top: env(safe-area-inset-top, 0px); }
  .header-inner { padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px)); }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 1.2rem; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    z-index: 45;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.15rem;
    background: rgba(249, 248, 246, 0.98);
    border-bottom: 1px solid var(--surface-300);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a:not(.nav-button) {
    padding: 0.75rem 0.25rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--surface-200);
    font-size: 0.92rem;
  }
  .nav a.nav-button {
    justify-content: center;
    margin-top: 0.5rem;
  }
  .lab { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; }
  .rail { display: none; }
  .model-switcher {
    max-width: min(54vw, 220px);
    min-height: 38px;
    padding: 0.25rem 0.3rem 0.25rem 0.7rem;
    border-radius: 11px;
    font-size: 0.8rem;
  }
  .model-switcher > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workspace { min-height: 0; height: 100%; grid-template-rows: 46px auto minmax(0, 1fr) max-content; overflow: hidden; }
  .chat-header { display: flex; min-height: 46px; padding-inline: 0.75rem; }
  .load-banner { grid-row: 2; }
  .conversation { grid-row: 3; }
  .composer-wrap { grid-row: 4; }
  .chat-header-model { display: flex; min-width: 0; }
  .chat-header-actions { flex: 0 0 auto; gap: 0.4rem; }
  .chat-header h1 { min-width: 0; font-size: 0.8rem; }
  .header-button, .info-button { min-width: 36px; min-height: 36px; }
  .chat-header-actions .info-button {
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
  }
  #model-info-btn { display: grid; font-family: var(--font-serif); font-size: 0.8rem; }
  .mobile-header-btn { display: grid; }
  .secondary-header-action { display: none; }
  .conversation { min-height: 0; padding-top: 0.25rem; overscroll-behavior-y: contain; scroll-padding-bottom: 1rem; -webkit-overflow-scrolling: touch; }
  .doc { width: min(100% - 1.25rem, 640px); }
  .empty { padding: 0 0 1rem; }
  .empty-mark, .empty-mark img { width: 42px; height: 42px; }
  .empty-mark { margin-bottom: 0.75rem; }
  .main-note { position: relative; top: -2.5rem; width: 100%; margin: 0 0 0.65rem; font-size: 0.64rem; }
  .empty h2 { font-size: 1.75rem; }
  .empty > p { margin: 0.4rem auto 1rem; font-size: 0.76rem; }
  .starters { display: flex; gap: 0.55rem; margin-inline: -0.625rem; padding: 0.1rem 0.625rem 0.35rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .starters::-webkit-scrollbar { display: none; }
  .starter { flex: 0 0 min(74vw, 255px); min-height: 62px; padding: 0.62rem 0.7rem; border-radius: 11px; scroll-snap-align: start; }
  .starter-copy strong { font-size: 0.69rem; }
  .experiment-note { margin-top: 0.55rem; }
  .turn { padding-block: 0.85rem; }
  .gen { padding: 0.55rem 0 1rem; }
  .exchange { margin-bottom: 0.65rem; padding-inline: 0.7rem; overflow: hidden; border: 1px solid var(--surface-200); border-radius: 14px; background: white; box-shadow: 0 2px 10px rgba(24,24,24,0.035); }
  .exchange + .exchange { margin-top: 0; padding-top: 0; border-top: 1px solid var(--surface-200); }
  .turn-seed { margin-inline: -0.7rem; padding-inline: 0.7rem; background: var(--surface-50); }
  .turn + .turn { border-top-color: var(--surface-200); }
  .turn-head { align-items: center; }
  .gen-actions { margin-right: -0.35rem; }
  .mini { min-width: 42px; min-height: 36px; padding: 0.35rem; border-radius: 9px; }
  .stats { min-height: 22px; margin-top: 0.55rem; padding-top: 0.45rem; border-top: 1px solid var(--surface-200); }
  .stats-badges { gap: 0.28rem 0.32rem; }
  .stat-badge { font-size: 0.56rem; }
  .stats-full { display: none; }
  .stats-short { display: flex; }
  .scroll-latest { bottom: 8.2rem; min-height: 40px; padding-inline: 0.8rem; }
  .composer-wrap { z-index: 5; width: 100%; padding: 0.4rem 0.5rem calc(0.3rem + env(safe-area-inset-bottom)); background: rgba(250,249,247,0.96); border-top: 1px solid var(--surface-200); backdrop-filter: blur(12px); }
  .composer { padding: 0.62rem 0.62rem 0.55rem; border-radius: 14px; box-shadow: 0 5px 18px rgba(24,24,24,0.06); }
  #prompt { min-height: 42px; max-height: 112px; font-size: 16px; line-height: 1.45; }
  .composer-foot { flex-wrap: nowrap; align-items: center; gap: 0.5rem; }
  .composer-meta { flex: 1 1 auto; min-width: 0; }
  .composer-actions { flex: 0 0 auto; }
  .composer-chip { max-width: 9.5rem; min-height: 32px; }
  .send-button { min-height: 40px; padding-left: 0.7rem; flex: 0 0 auto; max-width: none; }
  .btn-outline.stop-button:not(:disabled) { min-height: 40px; }
  .composer-below { display: none; }
  .bar-hint { display: none; }
  .send-button, .btn { min-height: 44px; }
  .send-icon { width: 30px; height: 30px; }

  .dialog[open] { width: 100%; max-width: none; max-height: 86dvh; margin: auto 0 0; overflow-y: auto; border-width: 1px 0 0; border-radius: 20px 20px 0 0; }
  .dialog-inner { padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
  .dialog-close { width: 38px; height: 38px; }
  .setting select { height: 44px; }
  .setting input[type="range"] { height: 28px; }
  .setting input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7.5px; }
  .setting input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; }

  .lab-consent { align-items: end; padding: 0; }
  .lab-consent-dialog { width: 100%; max-height: 88dvh; padding: 1.15rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 20px 20px 0 0; }
  .consent-icon { width: 32px; height: 32px; margin-bottom: 0.7rem; }
  .lab-consent-dialog h2 { font-size: 1.75rem; }
  .consent-summary { margin-bottom: 0.7rem; }
  .consent-row { padding: 0.62rem 0; }
  .consent-actions { position: sticky; bottom: calc(-1rem - env(safe-area-inset-bottom)); margin: 0.85rem -1rem calc(-1rem - env(safe-area-inset-bottom)); padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--surface-200); background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); }
  .consent-actions > * { min-height: 44px; }
  .picker-model { min-height: 76px; padding: 0.7rem; }
  .picker-foot {
    position: sticky;
    z-index: 3;
    bottom: calc(-1rem - env(safe-area-inset-bottom));
    grid-template-columns: 1fr 1fr;
    margin: 0.85rem -1rem calc(-1rem - env(safe-area-inset-bottom));
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    box-shadow: 0 -8px 20px rgba(24,24,24,0.035);
    backdrop-filter: blur(10px);
  }
  .picker-foot .btn { min-height: 44px; }
  .model-picker-dialog[open] { width: 100%; max-width: none; }
}

@media (max-width: 480px) {
  .empty h2 { font-size: 1.65rem; }
  .empty > p { font-size: 0.76rem; }
  .composer-chip { max-width: 8rem; }
  .char-count { display: none; }
  .turn { grid-template-columns: 28px minmax(0, 1fr); gap: 0.65rem; }
  .turn-avatar { width: 28px; height: 28px; }
  .experiment-note { max-width: 100%; line-height: 1.4; }
  .experiment-note > span:last-child { display: none; }
  .consent-actions { flex-direction: column-reverse; }
  .consent-actions > * { width: 100%; }
  .model-facts { grid-template-columns: 1fr; }
  .model-facts div, .model-facts div:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--surface-200); }
  .model-facts div:last-child { border-bottom: 0; }
}

@media (max-width: 360px) {
  .session-count { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .caret, .status[data-state="busy"] .status-dot { animation: none; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; }
}
