:root {
  --paper: #f4f0e8;
  --paper-light: #faf7f0;
  --ink: #171613;
  --muted: #68645d;
  --rule: rgba(23, 22, 19, 0.16);
  --rule-strong: rgba(23, 22, 19, 0.52);
  --accent: #c95339;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", "Avenir", "Helvetica Neue", sans-serif;
  --page: min(1460px, calc(100vw - 64px));
  --content: min(1040px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.5), transparent 28%),
    radial-gradient(circle at 76% 70%, rgba(255,255,255,.28), transparent 32%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .24;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  height: 72px;
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .22em;
  white-space: nowrap;
}

.desktop-nav { display: flex; align-items: stretch; height: 100%; }
.desktop-nav a {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 22px;
  text-decoration: none;
  font-size: 15px;
}

.desktop-nav a::after {
  position: absolute;
  right: 22px;
  bottom: -1px;
  left: 22px;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }

.mobile-nav { display: none; position: relative; }
.mobile-nav summary { cursor: pointer; list-style: none; font-size: 14px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav {
  position: absolute;
  top: 34px;
  right: 0;
  z-index: 20;
  width: 210px;
  padding: 12px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-light);
  box-shadow: 0 14px 40px rgba(23,22,19,.10);
}
.mobile-nav a { display: block; padding: 10px; text-decoration: none; }

.home {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-rows: 1fr auto;
}

.home-stage {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 150px) 0 56px;
}

.hero { text-align: center; }
.hero-intro { transition: opacity 180ms ease, transform 260ms ease; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
}

h1, h2, h3, p { margin-top: 0; }

.hero h1,
.page-header h1 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.04em;
}

.hero h1 { font-size: clamp(58px, 6.6vw, 102px); }
.hero-deck {
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: clamp(16px, 1.5vw, 20px);
}

.chat-form { width: min(100%, 720px); margin: 0 auto; }
.composer {
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 10px 11px 10px 26px;
  border: 1px solid var(--rule-strong);
  border-radius: 19px;
  background: rgba(250, 247, 240, .44);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.composer:focus-within {
  border-color: var(--ink);
  background: rgba(255,255,255,.58);
  transform: translateY(-1px);
}
.composer input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 18px;
}
.composer input::placeholder { color: #706c66; opacity: 1; }
.send-button {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--paper-light);
  background: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}
.send-button:hover { background: var(--accent); transform: rotate(-4deg); }
.send-button:disabled { cursor: wait; opacity: .55; }
.send-button svg { width: 24px; height: 24px; }

.starter-list {
  width: min(100%, 430px);
  margin: 42px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.starter-list li + li { border-top: 1px solid var(--rule); }
.starter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 10px;
  text-decoration: none;
  transition: padding 160ms ease, color 160ms ease;
}
.starter-list a:hover { padding-left: 16px; color: var(--accent); }
.starter-list span:first-child { display: flex; gap: 14px; }
.starter-number { color: var(--muted); font-size: 12px; letter-spacing: .12em; }

.home-footer,
.site-footer {
  width: var(--content);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.footer-separator { color: var(--rule-strong); }

.conversation-shell {
  width: min(100%, 840px);
  margin: -36px auto 0;
  text-align: left;
  animation: enterConversation 360ms ease backwards;
}
.conversation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: .16em;
}
.text-button {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0;
}
.text-button:hover { color: var(--accent); }
.message { margin-bottom: 34px; }
.message-user {
  width: min(72%, 620px);
  margin-left: auto;
  padding: 0 0 26px 40px;
  border-bottom: 1px solid var(--rule);
  text-align: right;
}
.message-user p:last-child { margin-bottom: 0; font-size: 18px; }
.message-label { margin-bottom: 7px; color: var(--muted); font-size: 10px; letter-spacing: .18em; }
.message-agent { position: relative; }
.agent-label {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .18em;
}
.agent-label span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.answer-copy {
  min-height: 96px;
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.5;
  white-space: pre-wrap;
}
.answer-copy.is-formatted { white-space: normal; }
.answer-copy.is-formatted > * { margin: 0; }
.answer-copy.is-formatted > * + * { margin-top: .9em; }
.answer-copy.is-formatted h2,
.answer-copy.is-formatted h3,
.answer-copy.is-formatted h4 {
  font-family: var(--sans);
  font-size: .72em;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.answer-copy.is-formatted h2,
.answer-copy.is-formatted h3 { color: var(--accent); }
.answer-copy.is-formatted strong { font-weight: 700; }
.answer-copy.is-formatted em { font-style: italic; }
.answer-copy.is-formatted ul,
.answer-copy.is-formatted ol {
  padding-left: 1.3em;
  font-family: var(--sans);
  font-size: .78em;
  line-height: 1.6;
}
.answer-copy.is-formatted li { padding-left: .35em; }
.answer-copy.is-formatted li + li { margin-top: .72em; }
.answer-copy.is-formatted li::marker { color: var(--accent); font-weight: 700; }
.answer-copy.is-formatted blockquote {
  padding-left: 1em;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}
.answer-copy.is-formatted code {
  padding: .12em .32em;
  border-radius: 3px;
  background: rgba(23, 22, 19, .07);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .7em;
}
.answer-copy.is-formatted pre {
  overflow-x: auto;
  padding: 1em;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, .28);
  font-size: .72em;
  line-height: 1.55;
  white-space: pre;
}
.answer-copy.is-formatted pre code { padding: 0; background: transparent; font-size: 1em; }
.answer-copy.is-formatted hr { border: 0; border-top: 1px solid var(--rule); }
.answer-copy a { text-decoration-thickness: 1px; }
.answer-copy.is-streaming::after {
  display: inline-block;
  width: .38em;
  height: .9em;
  margin-left: .18em;
  content: "";
  background: var(--accent);
  animation: blink 900ms steps(2, start) infinite;
  vertical-align: -.08em;
}
.message.has-error .answer-copy { font-family: var(--sans); font-size: 16px; }
.answer-feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .04em;
}
.answer-feedback button {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.answer-feedback button:hover { color: var(--accent); border-color: var(--accent); }
.answer-feedback button:disabled { cursor: wait; opacity: .5; }
.answer-feedback-status { min-height: 1em; }
.private-navigation-error { color: var(--accent); margin-top: .85rem; }
.conversation-composer {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 30;
  width: min(720px, calc(100vw - 36px));
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(23, 22, 19, .12);
  border-radius: 28px;
  background: rgba(244, 240, 232, .86);
  box-shadow: 0 18px 60px rgba(23, 22, 19, .14);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  transform: translateX(-50%);
  animation: dockComposer 300ms ease both;
}
.conversation-composer .composer {
  min-height: 70px;
  background: rgba(250, 247, 240, .9);
}
.conversation-composer .send-button { width: 48px; height: 48px; }
.followups {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 18px 0 0;
}
.followups button {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
.followups button:hover { color: var(--accent); border-color: var(--accent); }
.is-conversation .hero-intro { display: none; }
.is-conversation .home-stage { padding-top: 72px; }
.is-conversation .home-footer {
  padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

.page-main {
  width: var(--content);
  min-height: calc(100vh - 155px);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 126px) 0 50px;
}

.admin-main { max-width: 920px; }
.admin-auth,
.admin-dashboard {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.admin-auth h2,
.admin-dashboard h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 48px); font-weight: 400; }
.admin-auth form { max-width: 680px; }
.admin-auth label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.admin-token-composer { min-height: 68px; }
.admin-connect {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--paper-light);
  background: var(--ink);
  cursor: pointer;
}
.admin-note { max-width: 720px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.admin-dashboard-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.admin-export { border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 30px 0; background: var(--rule); }
.admin-stats div { min-height: 130px; padding: 22px; background: var(--paper); }
.admin-stats dt { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.admin-stats dd { margin: 18px 0 0; font-family: var(--serif); font-size: 36px; }
.admin-conversation-review { margin-top: 72px; padding-top: 34px; border-top: 1px solid var(--rule); }
.admin-review-filters { margin: 26px 0; }
.admin-review-filters fieldset { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; border: 0; }
.admin-review-filters legend { width: 100%; margin-bottom: 10px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.admin-review-filters label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.admin-review-filters input { accent-color: var(--accent); }
.admin-review-load { margin-bottom: 18px; }
.admin-review-load:disabled { color: var(--muted); cursor: default; }
.admin-review-list { border-top: 1px solid var(--rule); }
.admin-review-application { padding: 30px 0 8px; border-bottom: 1px solid var(--rule); }
.admin-review-application > h3 { margin-bottom: 18px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.admin-review-session { border-top: 1px solid var(--rule); }
.admin-review-session summary { padding: 15px 0; color: var(--muted); cursor: pointer; font-size: 11px; overflow-wrap: anywhere; }
.admin-review-turn { padding: 22px; margin-bottom: 14px; border: 1px solid var(--rule); background: rgba(250, 247, 240, .34); }
.admin-review-meta { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 22px; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.admin-review-meta span:last-child { color: var(--accent); text-align: right; }
.admin-review-turn h4 { margin: 17px 0 5px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.admin-review-copy { max-height: 240px; margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.admin-review-classification { display: grid; grid-template-columns: minmax(120px, .45fr) 1fr; align-items: center; gap: 14px; margin-top: 24px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.admin-review-classification select { width: 100%; padding: 11px 12px; border: 1px solid var(--rule-strong); border-radius: 8px; color: var(--ink); background: var(--paper-light); font: inherit; letter-spacing: normal; text-transform: none; }
.admin-review-actions { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.admin-review-actions button:disabled { opacity: .45; cursor: default; }
.admin-applications { margin-top: 72px; padding-top: 34px; border-top: 1px solid var(--rule); }
.admin-application-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.admin-application-form label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.admin-application-form input,
.admin-application-form textarea,
.admin-application-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(250, 247, 240, .5);
  font: inherit;
}
.admin-application-form textarea { resize: vertical; line-height: 1.45; }
.admin-field-wide { grid-column: 1 / -1; }
.admin-application-form .admin-connect { align-self: end; min-height: 50px; }
.admin-application-list { margin-top: 26px; border-top: 1px solid var(--rule); }
.admin-application-item { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.admin-application-item h3 { margin-bottom: 3px; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.admin-application-item p { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.admin-application-item a { font-size: 12px; }
.admin-application-item button { align-self: center; padding: 7px 0; border: 0; border-bottom: 1px solid var(--rule-strong); background: transparent; cursor: pointer; }
.admin-application-item button:disabled { color: var(--muted); cursor: default; }
.application-main { max-width: 920px; }
.application-context {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px clamp(24px, 5vw, 56px);
  border: 1px solid var(--rule-strong);
  background: rgba(250, 247, 240, .34);
}
.application-context h2 { margin-bottom: 14px; font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); font-weight: 400; line-height: 1; }
.application-context p:last-child { margin-bottom: 0; color: var(--muted); }
.application-company { margin-bottom: 12px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .18em; }
.application-starters { margin-top: 34px; }
.page-header { max-width: 880px; margin: 0 auto clamp(64px, 8vw, 110px); text-align: center; }
.page-header h1 { font-size: clamp(54px, 6vw, 88px); }
.page-header .deck { max-width: 760px; margin: 0 auto; font-size: 18px; }
.accent-label { color: var(--accent); }

.project-list { border-top: 1px solid var(--rule); }
.project-row {
  display: grid;
  grid-template-columns: 70px minmax(260px, 1.4fr) minmax(180px, .75fr) 190px;
  gap: 26px;
  align-items: center;
  padding: 34px 12px;
  border-bottom: 1px solid var(--rule);
}
.project-number { align-self: start; font-family: var(--serif); font-size: 28px; }
.project-title { margin-bottom: 4px; font-family: var(--serif); font-size: 31px; font-weight: 400; line-height: 1.1; }
.project-summary { margin: 0; max-width: 520px; }
.project-meta-block { display: flex; align-items: flex-start; flex-direction: column; gap: 7px; }
.project-meta { margin: 0; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.project-action { justify-self: end; font-size: 14px; }
.project-source { color: var(--muted); font-size: 11px; text-decoration-thickness: 1px; white-space: nowrap; }
.project-source:hover { color: var(--ink); }

.timeline { max-width: 930px; margin: 0 auto; }
.timeline-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 48px;
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}
.timeline-date { color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.timeline-item h2 { margin-bottom: 7px; font-family: var(--serif); font-size: 31px; font-weight: 400; }
.timeline-item p:last-child { margin-bottom: 0; }

.prose { max-width: 800px; margin: 0 auto; font-size: 18px; }
.prose h2 { margin: 2.8em 0 .7em; font-family: var(--serif); font-size: 38px; font-weight: 400; }
.prose h3 { margin: 2em 0 .5em; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.prose p, .prose li { color: #2b2925; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 2em 0; padding-left: 24px; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 25px; }
.prose .cv-kicker { color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.raw-link { display: inline-flex; margin-top: 34px; gap: 8px; font-size: 14px; }

.subpage-chat {
  width: min(100%, 680px);
  margin: 84px auto 14px;
  text-align: center;
}
.subpage-chat .composer { min-height: 68px; }
.subpage-chat .send-button { width: 46px; height: 46px; }
.subpage-chat p { margin-top: 10px; color: var(--muted); font-size: 12px; }

.contact-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.contact-panel h2 { font-family: var(--serif); font-size: 42px; font-weight: 400; }
.contact-value { margin: 28px 0 0; font-size: 18px; }
.contact-email { font-family: var(--serif); font-size: clamp(24px, 4vw, 42px); }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; font-size: 13px; }
.contact-actions a { color: var(--accent); }

.machine-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 36px; font-size: 13px; }
.machine-links a { color: var(--muted); }

.noscript-summary {
  max-width: 720px;
  margin: 42px auto 0;
  padding: 24px;
  border: 1px solid var(--rule);
  text-align: left;
}
.noscript-summary h2 { font-family: var(--serif); font-weight: 400; }

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

[hidden] { display: none !important; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes enterConversation {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dockComposer {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 900px) {
  :root { --page: calc(100vw - 36px); --content: calc(100vw - 36px); }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .project-row { grid-template-columns: 52px 1fr; }
  .project-meta-block { grid-column: 2; }
  .project-action { grid-column: 2; justify-self: start; }
  .timeline-item { grid-template-columns: 150px 1fr; gap: 26px; }
}

@media (max-width: 640px) {
  .site-header { height: 64px; }
  .wordmark { font-size: 11px; letter-spacing: .16em; }
  .home { min-height: calc(100vh - 64px); }
  .home-stage { padding: 70px 0 34px; }
  .hero h1 { font-size: clamp(52px, 17vw, 74px); }
  .hero-deck { margin-bottom: 34px; font-size: 16px; }
  .composer { min-height: 70px; padding-left: 18px; border-radius: 16px; }
  .composer input { font-size: 16px; }
  .send-button { width: 48px; height: 48px; }
  .starter-list { margin-top: 28px; }
  .home-footer, .site-footer { flex-direction: column; gap: 5px; }
  .footer-separator { display: none; }
  .is-conversation .home-stage { padding-top: 36px; }
  .is-conversation .home-footer {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
  .conversation-shell { margin-top: 0; }
  .conversation-composer {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    padding: 6px;
    border-radius: 22px;
  }
  .conversation-composer .composer { min-height: 64px; }
  .message-user { width: 92%; }
  .answer-copy { font-size: 20px; }
  .answer-copy.is-formatted ul,
  .answer-copy.is-formatted ol { padding-left: 1.15em; font-size: .82em; }
  .followups { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-main { padding-top: 58px; }
  .page-header { margin-bottom: 56px; text-align: left; }
  .page-header h1 { font-size: 52px; }
  .page-header .deck { font-size: 16px; }
  .project-row { grid-template-columns: 40px 1fr; gap: 16px; padding: 28px 0; }
  .project-title { font-size: 27px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-item h2 { font-size: 27px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 32px; }
  .subpage-chat { margin-top: 60px; }
  .admin-dashboard-heading { align-items: start; flex-direction: column; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-export { white-space: normal; }
  .admin-review-meta { align-items: flex-start; flex-direction: column; gap: 6px; }
  .admin-review-meta span:last-child { text-align: left; }
  .admin-review-turn { padding: 18px; }
  .admin-review-classification { grid-template-columns: 1fr; gap: 7px; }
  .admin-review-actions { align-items: flex-start; flex-direction: column; }
  .admin-application-form { grid-template-columns: 1fr; }
  .admin-field-wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
