@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 5;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 8px 12px;
  border: 1px solid #111111;
  border-radius: 999px;
  outline: 2px solid #111111;
  outline-offset: 3px;
  background: #111111;
  color: #f7f8f4;
  font: 500 14px/20px ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  text-decoration: none;
}
.phone {
  --bg: #e4ebdf;
  --card: #f7f8f4;
  --ink: #111111;
  --muted: #3c4638;
  --fill: #111111;
  --fill-text: #f7f8f4;
  --danger: #8f1d1d;
  --warn: #8a4b12;
  --stroke: 1px;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
  min-height: 100dvh;
  margin: 0;
  padding: max(22px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  line-height: 22px;
  text-wrap: pretty;
  color-scheme: light dark;
}
html:has(body.phone-product),
body.phone-product {
  --bg: #e4ebdf;
  --card: #f7f8f4;
  --ink: #111111;
  --muted: #3c4638;
  --fill: #111111;
  --fill-text: #f7f8f4;
  --stroke: 1px;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--bg);
  min-height: 100dvh;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  html:has(body.phone-product),
  body.phone-product {
    --bg: #101612;
    --card: #161e19;
    --ink: #e4ebdf;
    --muted: #b7c3b4;
    --fill: #e4ebdf;
    --fill-text: #101612;
    --stroke: 1px;
    background: var(--bg);
    color: var(--ink);
  }
  .phone {
    --bg: #101612;
    --card: #161e19;
    --ink: #e4ebdf;
    --muted: #b7c3b4;
    --fill: #e4ebdf;
    --fill-text: #101612;
    --danger: #f0b4b4;
    --warn: #f0d7a4;
  }
  .skip:focus { border-color: #e4ebdf; outline-color: #e4ebdf; background: #e4ebdf; color: #101612; }
}
.phone * { box-sizing: border-box; font-style: normal; }
#phone-main, .phone-desktop { max-width: 720px; margin-inline: auto; }
.mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  column-gap: 12px;
  align-items: center;
  margin: 2px 0 22px;
  padding-bottom: 14px;
  border-bottom: var(--stroke) solid var(--ink);
}
.mast-copy { display: contents; }
.mast .kicker { grid-column: 1; grid-row: 1; }
.mast h1 { grid-column: 1; grid-row: 2; }
.mast .gear { grid-column: 2; grid-row: 2; }
.phone button.gear,
body.phone-product #phone-settings-chat.gear {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  appearance: none;
}
.phone button.gear svg,
body.phone-product #phone-settings-chat.gear svg { width: 22px; height: 22px; display: block; }
.kicker, .eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 16px;
}
.phone h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.phone h2 {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 16px;
}
.phone p { margin: 0; }
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 18px;
  overflow: hidden;
  border: var(--stroke) solid var(--ink);
  border-radius: 20px;
  background: var(--card);
}
.cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  margin: 0;
  padding: 12px 14px;
  border-right: var(--stroke) solid var(--ink);
  border-bottom: var(--stroke) solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.cell:nth-child(2n) { border-right: 0; }
.cell:nth-child(n + 3) { border-bottom: 0; }
.cell span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 14px;
  text-transform: uppercase;
}
.cell b {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 20px;
}
.cell.on { background: var(--fill); color: var(--fill-text); }
.card, .settings {
  margin: 0 0 16px;
  padding: 18px;
  border: var(--stroke) solid var(--ink);
  border-radius: 20px;
  background: var(--card);
  box-shadow: none;
}
.hero { border-width: 1.5px; }
.next-card .step p, .phone-desktop p, .quiet { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 22px; }
.next-card .step h2 {
  margin-top: 2px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.done-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.done {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 16px;
}
.done::before { content: "✓ "; }
.phone button, .phone input, .phone textarea, .phone select, .settings summary {
  font-family: var(--mono);
  color: inherit;
}
.phone button, .phone a.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 10px 16px;
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.next-card button.primary,
.next-card a.primary {
  min-height: 52px;
  margin-top: 18px;
  background: var(--fill);
  color: var(--fill-text);
  border-color: var(--fill);
  font-size: 16px;
}
#complete-codex-login {
  min-height: 48px;
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  font-size: 15px;
}
#codex-verification:empty ~ #complete-codex-login {
  min-height: 52px;
  background: var(--fill);
  color: var(--fill-text);
  border-color: var(--fill);
  font-size: 16px;
}
.phone button:focus-visible, .phone a.primary:focus-visible, .phone input:focus-visible, .phone textarea:focus-visible, .phone select:focus-visible, .settings summary:focus-visible, .skip:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.phone .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 16px;
}
.phone input, .phone textarea, .phone select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: var(--stroke) solid var(--ink);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 22px;
  text-transform: none;
}
.phone textarea { min-height: 88px; resize: vertical; }
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.check input {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  accent-color: var(--ink);
}
.hero-head, .history > h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.goal {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.is-ready .goal { font-size: 24px; }
.summary { margin-top: 8px; color: var(--muted); font-family: var(--sans); font-size: 15px; line-height: 22px; }
.summary:empty { display: none; }
.result {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 16px;
}
.is-ready .result { font-size: 13px; }
.result.fail, .result.timeout { color: var(--danger); }
.result.needs_approval, .result.unknown { color: var(--warn); }
.phone ol { margin: 14px 0 0; padding: 0; list-style: none; }
#phone-progress li, #phone-recent li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-top: var(--stroke) solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
}
#phone-recent li { grid-template-columns: auto minmax(0, 1fr) auto; }
#phone-progress time, #phone-recent time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.recent-goal { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-status { font-weight: 600; letter-spacing: 0.04em; }
.recent-status.fail, .recent-status.timeout { color: var(--danger); }
.recent-status.needs_approval, .recent-status.unknown { color: var(--warn); }
.phone-settings.phone {
  min-height: 0;
  padding: 0;
}
.phone-settings {
  width: min(440px, calc(100vw - 28px));
  max-height: min(88dvh, 760px);
  margin: auto;
  padding: 0;
  border: var(--stroke) solid var(--ink);
  border-radius: 22px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: none;
}
.phone-settings::backdrop { background: #11111155; }
.phone-settings .sheet { padding: 16px 16px 20px; }
.phone-settings .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.phone button.gear:focus-visible,
body.phone-product #phone-settings-chat.gear:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 12px;
}
.phone-settings .sheet-head h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); text-transform: none; }
.phone-settings .sheet-head h2:focus { outline: none; }
.phone-settings .settings-block { margin-top: 16px; padding-top: 14px; border-top: var(--stroke) solid var(--ink); }
.phone-settings .settings-block h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.phone-settings button.secondary { background: transparent; }
.phone-error { margin: 0 0 16px; color: var(--danger); }
.phone-desktop { margin-top: 18vh; }
.phone-desktop h1 { margin-bottom: 14px; }
.phone-desktop p { max-width: 36ch; }
.mission-skeleton { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.skeleton-line {
  display: block;
  width: 100%;
  height: 14px;
  border: var(--stroke) solid var(--ink);
  border-radius: 8px;
  background: transparent;
  opacity: 0.4;
  animation: skeleton-fade 500ms linear infinite alternate;
}
.skeleton-line.wide { height: 32px; }
.skeleton-line.short { max-width: 96px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes skeleton-fade { from { opacity: 0.25; } to { opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) {
  .skeleton-line { animation: none; }
}
body.phone-product #site { display: none !important; }
body.phone-product #app[hidden] { display: none !important; }
#phone-model-slot select { margin-top: 0; }
#site-language,
#compatibility-home,
.site-brand,
.sidebar .brand {
  min-width: 44px;
  min-height: 44px;
}
#compatibility-home { padding: 12px 16px; }

body.phone-product #app.app-shell {
  display: block;
  height: auto;
  min-height: 0;
  max-width: 720px;
  margin: 8px auto 0;
  background: transparent;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.phone-product #app .sidebar {
  height: auto;
  min-height: 0;
  padding: 4px 18px 32px;
  background: transparent;
  border: 0;
  --muted: inherit;
  --accent: var(--ink);
}
body.phone-product #app .session-home-header,
body.phone-product #app #open-devices { display: none !important; }
body.phone-product #app .session-library-heading {
  align-items: center;
  margin: 18px 0 8px;
}
body.phone-product #app .session-list-title,
body.phone-product #app #session-list-caption,
body.phone-product #app .session-library-heading h1 {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 16px;
}
body.phone-product #app .session-list-title .ui-icon {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
  color: var(--muted);
}
body.phone-product #toggle-session-search.icon-button,
body.phone-product #toggle-session-search.icon-button:hover,
body.phone-product .topbar .icon-button,
body.phone-product .topbar .icon-button:hover {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
body.phone-product #app .sessions {
  margin-top: 8px;
  padding: 4px 14px;
  border: var(--stroke) solid var(--ink);
  border-radius: 20px;
  background: var(--card);
}
body.phone-product #app .session-row,
body.phone-product #app .list-empty {
  background: transparent;
  color: var(--ink);
}
body.phone-product #app .session-row { border-bottom: var(--stroke) solid var(--ink); border-radius: 0; }
body.phone-product #app .list-empty {
  max-width: none;
  margin: 0;
  padding: 18px 4px 20px;
  text-align: left;
}
body.phone-product #app .list-empty strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
body.phone-product #app .list-empty p {
  max-width: none;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}
body.phone-product #app .session-row .row-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
body.phone-product #app .session-row small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
body.phone-product #app .sidebar-footer { justify-content: flex-start; }
body.phone-product #new-session.primary {
  flex: 0 0 auto;
  width: auto;
  min-width: 44px;
  margin-top: 4px;
  padding: 0 16px;
  background: transparent;
  color: var(--ink);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  min-height: 44px;
  box-shadow: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
body.phone-product #new-session.primary img { display: none; }
body.phone-product #new-session.primary span { font-family: inherit; font-size: inherit; font-weight: inherit; margin: 0; }
body.phone-product:has(#phone-main.is-ready) #new-session.primary {
  background: var(--fill);
  color: var(--fill-text);
  border-color: var(--fill);
}
body.phone-product:has(#app.in-conversation) #phone-main,
body.phone-product:has(#app.in-conversation) #phone-desktop { display: none; }
body.phone-product #app.in-conversation {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: block;
  max-width: none;
  height: 100dvh;
  margin: 0;
  background: var(--bg);
}
body.phone-product #app.in-conversation .workspace {
  display: flex;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
}
body.phone-product .topbar {
  height: auto;
  min-height: 64px;
  align-items: center;
  padding: max(8px, env(safe-area-inset-top)) 8px 8px 12px;
  background: var(--bg);
  border-bottom: var(--stroke) solid var(--ink);
}
body.phone-product .topbar h1 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
body.phone-product .conversation { background: transparent; color: var(--ink); }
body.phone-product .message {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: var(--stroke) solid var(--ink);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  box-shadow: none;
}
body.phone-product .message.user { background: var(--fill); color: var(--fill-text); }
body.phone-product .message-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.phone-product .composer-wrap {
  background: var(--bg);
  border-top: var(--stroke) solid var(--ink);
}
body.phone-product .composer {
  border: var(--stroke) solid var(--ink);
  border-radius: 20px;
  background: var(--card);
  box-shadow: none;
}
body.phone-product .composer textarea { color: var(--ink); background: transparent; }
body.phone-product .send-button {
  width: 44px;
  height: 44px;
  border: var(--stroke) solid var(--fill);
  border-radius: 999px;
  background: var(--fill);
  color: var(--fill-text);
}
body.phone-product .conversation-status,
body.phone-product .conversation-device,
body.phone-product .capture-status { color: var(--muted); }

body.phone-product.panel-route,
body.phone-product.panel-route .panel-dialog,
body.phone-product.panel-route .panel-dialog[open],
body.phone-product .panel-dialog,
body.phone-product .panel-header,
body.phone-product .panel-body {
  background: var(--bg);
  color: var(--ink);
  box-shadow: none;
}
body.phone-product.panel-route #phone { display: none; }
body.phone-product #app .sidebar-footer { background: transparent; padding: 12px 0 0; }
body.phone-product #app .list-empty,
body.phone-product #app .list-empty strong { color: var(--ink); }
body.phone-product #app .list-empty p { color: var(--muted); }
body.phone-product .conversation-status {
  background: var(--bg);
  border-bottom: var(--stroke) solid var(--ink);
  color: var(--muted);
}
body.phone-product .capture-status,
body.phone-product .conversation-device,
body.phone-product .capture-status-button {
  background: transparent;
  color: var(--muted);
  border: 0;
  box-shadow: none;
}
body.phone-product .device-onboarding button.primary:disabled,
body.phone-product .device-onboarding button.secondary-button:disabled {
  background: transparent;
  color: var(--muted);
  border: var(--stroke) solid var(--ink);
  opacity: 1;
}
body.phone-product .panel-header {
  border-bottom: var(--stroke) solid var(--ink);
  min-height: 64px;
}
body.phone-product .panel-header h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
}
body.phone-product .panel-dialog .icon-button { color: var(--ink); }
body.phone-product .device-onboarding { gap: 14px; }
body.phone-product .device-step,
body.phone-product .device-info-step,
body.phone-product .device-step[data-unavailable="true"] {
  border: var(--stroke) solid var(--ink);
  border-radius: 20px;
  background: var(--card);
  box-shadow: none;
  color: var(--ink);
}
body.phone-product .device-step h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
body.phone-product .device-step .quiet-note,
body.phone-product .device-bridge-address,
body.phone-product .device-progress { color: var(--muted); }
body.phone-product .device-onboarding a.primary,
body.phone-product .device-onboarding button.primary,
body.phone-product .panel-dialog .primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  padding: 10px 16px;
  border: var(--stroke) solid var(--fill);
  border-radius: 999px;
  background: var(--fill);
  color: var(--fill-text);
  box-shadow: none;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
body.phone-product .device-onboarding .secondary-button,
body.phone-product .panel-dialog .secondary-button {
  min-height: 44px;
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}
body.phone-product .device-settings-link { color: var(--ink); }
body.phone-product .device-step input,
body.phone-product .device-step select {
  border: var(--stroke) solid var(--ink);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
}
body.phone-product .device-test-success {
  border: var(--stroke) solid var(--ink);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
}
body.phone-product .device-test-success-icon { background: var(--fill); color: var(--fill-text); }
