/* Try a Model as It Improves: the mockup's styles (docs/try-a-model/mockup.html, version 21),
   consolidated. The tokens, top bar and type are How a Model Gets Made's (training/style.css), so the
   two pages read as one site. Wide and tall enough (1100 × 640 and up), each tab is one screen, the
   workbench: the tabs alone in a left rail; the question and why across the top; the settings, the
   picker and the chat in the middle, the thread scrolling inside the chat and the message box pinned;
   the questions to try in a right column. Narrower or shorter, the same order stacks. `.present` is
   the walkthrough (src/present.js), which drops the workbench for large type, one step at a time. */
:root {
  --bg: #ffffff; --bg-alt: #f6f6f7; --bg-soft: #f3f4f6;
  --text-1: #3c3c43; --text-2: #67676c; --text-3: #929295;
  --divider: #e2e2e3; --ink: #000000; --kept: #1a7f37; --copied: #fde68a; --failure: #b42318;
  --switch-bg: rgba(142, 150, 170, 0.14); --switch-border: #c2c2c4; --knob: #ffffff;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1b1f; --bg-alt: #161618; --bg-soft: #202127;
    --text-1: #dfdfd6; --text-2: #98989f; --text-3: #6a6a71;
    --divider: #2e2e32; --ink: #ffffff; --kept: #3fb950; --copied: rgba(250, 204, 21, 0.3); --failure: #f97066;
    --switch-bg: rgba(101, 117, 133, 0.16); --switch-border: #3c3f44; --knob: #000000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1b1f; --bg-alt: #161618; --bg-soft: #202127;
  --text-1: #dfdfd6; --text-2: #98989f; --text-3: #6a6a71;
  --divider: #2e2e32; --ink: #ffffff; --kept: #3fb950; --copied: rgba(250, 204, 21, 0.3); --failure: #f97066;
  --switch-bg: rgba(101, 117, 133, 0.16); --switch-border: #3c3f44; --knob: #000000;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text-1); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, select, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* The site's top bar, as on How a Model Gets Made */
.topbar { display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--divider); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--text-1); white-space: nowrap; }
.brand .mark { flex: none; width: 24px; height: 24px; }
.brand .here { overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--text-2); }
.brand .sep { color: var(--text-3); font-weight: 400; }
.bar { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bar a { padding: 0 12px; font-size: 14px; font-weight: 500; line-height: 64px; text-decoration: none; white-space: nowrap; }
.bar a:hover { color: var(--text-2); }
.switch { position: relative; flex: none; width: 40px; height: 22px; padding: 0; border: 1px solid var(--switch-border); border-radius: 11px; background: var(--switch-bg); cursor: pointer; }
.knob { position: absolute; top: 1px; left: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--knob); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); transition: transform 0.25s; }
.switch[aria-checked="true"] .knob { transform: translateX(18px); }
@media (max-width: 719px) { .bar .wide, .brand .home, .brand .home + .sep { display: none; } }

/* The page column and the intro */
.page { max-width: 1440px; margin: 0 auto; padding-block: 40px 96px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.intro h1 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.intro p { max-width: 80ch; margin: 4px 0 0; font-size: 17px; line-height: 28px; color: var(--text-2); }
.intro p strong { font-weight: 600; color: var(--text-1); }
.btn { padding: 6px 12px; border: 1px solid var(--divider); border-radius: 8px; background: var(--bg); font-size: 14px; font-weight: 500; cursor: pointer; }
.btn:hover { border-color: var(--text-3); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { padding: 8px 18px; border-color: var(--ink); background: var(--ink); color: var(--bg); font-weight: 600; }
.present-btn { margin-left: 10px; vertical-align: middle; font-size: 13px; }
.status { margin: 18px 0 0; font-size: 14px; color: var(--text-2); }
.status.is-failure { color: var(--failure); }

/* The tabs: one per question */
.workspace { margin-top: 28px; }
.tabs { display: flex; gap: 24px; overflow-x: auto; border-bottom: 1px solid var(--divider); scrollbar-width: none; }
.tab { flex: none; margin-bottom: -1px; padding: 10px 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 15px; font-weight: 500; color: var(--text-2); white-space: nowrap; cursor: pointer; text-align: left; }
.tab[aria-selected="true"] { border-bottom-color: var(--ink); color: var(--ink); }
.tab .n { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 600; line-height: 1; }
.tab .q { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--text-2); }
.tab[aria-selected="true"] .q { color: var(--text-1); }
@media (max-width: 999px) { .tab .q { display: none; } }
@media (min-width: 1000px) {
  .intro, .workspace { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 8px 44px; align-items: start; }
  .intro p, .intro .status { grid-column: 2; }
  .rail { position: sticky; top: 16px; }
  .tabs { flex-direction: column; gap: 0; border-bottom: 0; overflow: visible; }
  .tab { margin: 0; padding: 8px 10px; border: 0; border-left: 2px solid transparent; line-height: 1.3; white-space: normal; }
  .tab:hover { background: var(--bg-soft); }
  .tab[aria-selected="true"] { border-left-color: var(--ink); background: var(--bg-soft); }
}

/* A tab: the question, why, what stays the same, the settings */
.panel { min-width: 0; padding-top: 32px; }
@media (min-width: 1000px) { .panel { padding-top: 0; } }
.question { max-width: 32ch; margin: 0; font-size: 26px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.lede { max-width: 66ch; margin: 12px 0 0; line-height: 28px; }
.same { max-width: 72ch; margin: 10px 0 0; font-size: 14px; line-height: 22px; color: var(--text-2); }
.same b { font-weight: 600; color: var(--text-1); }
.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin-top: 16px; }
.control { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.control > label, .control > .lab { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--divider); border-radius: 8px; overflow: hidden; }
.seg button { padding: 6px 12px; border: 0; border-left: 1px solid var(--divider); background: var(--bg); font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.select-wrap { position: relative; display: flex; min-width: 220px; }
.select-wrap select { width: 100%; padding: 7px 36px 7px 12px; border: 1px solid var(--divider); border-radius: 8px; background: var(--bg); font-size: 14px; font-weight: 500; appearance: none; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; top: 50%; right: 14px; width: 7px; height: 7px; margin-top: -5px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); pointer-events: none; }
.hint { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: var(--text-2); }
.pick { margin-top: 18px; }

/* Questions to try: each sets up the comparison that tests it */
.sub { margin: 48px 0 0; font-size: 18px; font-weight: 600; line-height: 28px; color: var(--text-1); }
.questions .sub { margin-top: 28px; }
.questions ol { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: q; border-top: 1px solid var(--divider); }
.questions li { counter-increment: q; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.questions li::before { content: counter(q); font-size: 12px; font-weight: 600; color: var(--text-2); }
.questions li b { font-weight: 600; color: var(--text-1); }
.questions li span { grid-column: 2; font-size: 14px; line-height: 22px; color: var(--text-2); }
.questions li .btn { grid-column: 3; grid-row: 1; padding: 3px 10px; font-size: 13px; }
.questions li.on b { color: var(--ink); }
.questions li.on .btn { border-color: var(--ink); background: var(--ink); color: var(--bg); }

/* Within a run: the seven moments; ringed ones answer a message */
.timeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--divider); border-radius: 10px; overflow: hidden; }
.timeline button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; border: 0; border-left: 1px solid var(--divider); background: var(--bg); font-size: 14px; font-weight: 500; cursor: pointer; }
.timeline button:first-child { border-left: 0; }
.timeline button:hover { background: var(--bg-soft); }
.timeline button::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.timeline button.live::before { box-sizing: border-box; width: 10px; height: 10px; border: 2px solid var(--kept); background: none; }
.timeline button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.timeline button[aria-pressed="true"]::before { background: var(--bg); }
.timeline button.live[aria-pressed="true"]::before { border-color: var(--bg); background: none; }

/* Across a session: the chart */
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend svg { width: 22px; height: 16px; }
.chart svg { display: block; width: 100%; height: auto; }
.grid { stroke: var(--divider); } .axis { stroke: var(--text-3); }
.tick { font-size: 12px; fill: var(--text-2); } .ytitle { font-size: 12px; font-weight: 500; fill: var(--text-2); }
.stair { fill: none; stroke: var(--kept); stroke-width: 2; }
.kept { fill: var(--kept); stroke: var(--kept); stroke-width: 1.5; }
.aside { fill: var(--bg); stroke: var(--text-3); stroke-width: 2; }
.ring { fill: none; stroke: var(--ink); stroke-width: 2.25; }
.msring, .legend .ms { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.dot-pick { cursor: pointer; }
.dot-pick:focus { outline: none; }
.dot-pick:focus-visible circle:first-child { stroke: var(--ink); stroke-width: 2.5; }

/* The chat: every message goes to both sides, side by side */
.chat { margin-top: 28px; border: 1px solid var(--divider); border-radius: 12px; }
.chat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 14px 18px 0; }
.chat-head h3 { flex: 1 0 auto; margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.chat-head .hint { order: 3; flex-basis: 100%; margin: 0; font-size: 13px; }
.tctl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.tctl input { width: 120px; accent-color: var(--ink); }
.tctl .num { min-width: 32px; color: var(--text-1); }
.cols, .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.cols { margin: 14px 18px 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.col-head b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.col-head span { font-size: 13px; color: var(--text-2); }
.thread { padding: 0 18px; }
.turn { padding: 16px 0; border-bottom: 1px solid var(--divider); }
.you { display: flex; align-items: baseline; gap: 10px; }
.you span { max-width: 100%; padding: 6px 12px; border-radius: 10px; background: var(--bg-soft); font-weight: 500; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.you small { flex: none; font-size: 12px; color: var(--text-3); }
.pair { padding: 12px 0 0; }
.cell { min-width: 0; }
.cell .tag { display: none; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.cell p { margin: 0; line-height: 28px; white-space: pre-line; overflow-wrap: anywhere; }
.cell p b { font-weight: 600; color: var(--ink); }
.cell p.wait { color: var(--text-3); }
.cell p.none { font-size: 14px; line-height: 22px; color: var(--text-3); }
.cell p.failure { font-size: 14px; line-height: 22px; color: var(--failure); }
.cell .retry { margin-top: 6px; padding: 3px 10px; font-size: 13px; }
mark { padding: 1px 0; border-radius: 2px; background: var(--copied); color: inherit; }
.composer { display: grid; gap: 10px; padding: 14px 18px 16px; }
.openings { display: flex; flex-wrap: wrap; gap: 6px; }
.openings .btn { padding: 4px 10px; font-size: 13px; }
.openings .lab { align-self: center; margin-right: 4px; font-size: 12px; color: var(--text-3); }
textarea { width: 100%; min-height: 52px; padding: 10px 12px; border: 1px solid var(--divider); border-radius: 8px; background: var(--bg); font-size: 16px; line-height: 1.55; resize: vertical; }
.composer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.key { margin: 0; padding: 0 18px 16px; font-size: 13px; color: var(--text-2); }
@media (max-width: 719px) {
  .cols { display: none; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cell .tag { display: block; }
  .timeline button { padding: 6px 2px; font-size: 12px; }
  .page { padding-block: 24px 64px; }
}

/* Desktop: each tab is one screen */
@media (min-width: 1100px) and (min-height: 640px) {
  body:not(.present) .workspace { grid-template-columns: 220px minmax(0, 1fr); height: max(620px, calc(100dvh - 24px)); margin-top: 24px; }
  body:not(.present) .rail { position: static; overflow-y: auto; max-height: 100%; }
  body:not(.present) main, body:not(.present) .panel:not([hidden]) { height: 100%; min-height: 0; }
  body:not(.present) .panel:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto auto auto auto auto minmax(340px, 1fr); gap: 14px 32px; }
  body:not(.present) .panel > .question { grid-column: 1 / -1; grid-row: 1; max-width: none; font-size: 24px; }
  body:not(.present) .panel > .lede { grid-column: 1 / -1; grid-row: 2; max-width: 110ch; margin: -6px 0 0; font-size: 15px; line-height: 24px; }
  body:not(.present) .panel > .same { grid-column: 1 / -1; grid-row: 3; max-width: 110ch; margin: -8px 0 4px; font-size: 13px; line-height: 20px; }
  body:not(.present) .panel > .controls { grid-column: 1; grid-row: 4; margin: 0; }
  body:not(.present) .panel > .pick { grid-column: 1; grid-row: 5; margin: 0; }
  body:not(.present) .panel > .chat { grid-column: 1; grid-row: 6; display: flex; flex-direction: column; min-height: 0; margin: 0; }
  body:not(.present) .panel.no-pick > .chat { grid-row: 5 / span 2; }
  body:not(.present) .panel > .questions { grid-column: 2; grid-row: 4 / span 3; min-height: 0; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
  body:not(.present) .questions .sub { margin-top: 0; font-size: 15px; }
  body:not(.present) .questions li { grid-template-columns: 18px minmax(0, 1fr) auto; padding: 8px 0; }
  body:not(.present) .questions li b { font-size: 14px; line-height: 20px; }
  body:not(.present) .questions li span { font-size: 13px; line-height: 19px; }
  body:not(.present) .timeline button { padding: 6px 4px; }
  body:not(.present) .pick .hint { margin: 4px 0 0; font-size: 13px; }
  body:not(.present) .chat .cols { margin-top: 8px; padding-bottom: 6px; }
  body:not(.present) .chat-head { padding-top: 10px; }
  body:not(.present) .chat-head { flex-wrap: nowrap; align-items: baseline; }
  body:not(.present) .chat-head .hint { order: 0; flex: 1 1 0; min-width: 0; line-height: 18px; }
  body:not(.present) .tctl { flex: none; }
  body:not(.present) .chat-head h3 { flex: none; font-size: 16px; }
  body:not(.present) .col-head b { display: inline; font-size: 14px; }
  body:not(.present) .col-head span { margin-left: 8px; font-size: 12px; }
  body:not(.present) .chat .thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  body:not(.present) .chat .composer { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 10px 18px 12px; border-top: 1px solid var(--divider); }
  body:not(.present) .chat .openings { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body:not(.present) .chat .openings .btn { flex: none; }
  body:not(.present) .chat textarea { height: 44px; min-height: 44px; padding: 9px 12px; resize: none; }
  body:not(.present) .chat .composer-foot { align-self: start; }
  body:not(.present) .chat .key { padding-bottom: 10px; font-size: 12px; line-height: 18px; }
}

/* Below the workbench: the two datasets (as on How a Model Gets Made's dataset slide) and the conclusion */
.after { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--divider); }
.after-h { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.after .lede { max-width: 72ch; color: var(--text-2); }
.after .lede strong { font-weight: 600; color: var(--text-1); }
.after a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ds-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
@media (max-width: 719px) { .ds-cards { grid-template-columns: minmax(0, 1fr); } }
.dscard { min-width: 0; padding: 20px 22px; border: 1px solid var(--divider); border-radius: 12px; }
.dscard h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.dscard .about { margin: 2px 0 0; font-size: 15px; color: var(--text-2); }
.dscard .fact { margin: 10px 0 0; font-size: 14px; line-height: 22px; color: var(--text-2); }
.dscard .fact b { margin-right: 6px; font-weight: 600; color: var(--text-1); }
.dscard .fact a { color: var(--text-1); }
.kv { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; }
.kv dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.kv dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--text-1); }
.after .note { max-width: 80ch; margin: 16px 0 0; font-size: 14px; line-height: 22px; color: var(--text-2); }
.takeaways { max-width: 80ch; margin: 18px 0 0; padding-left: 1.4em; }
.takeaways li { margin-top: 10px; line-height: 26px; color: var(--text-2); }
.takeaways li b { font-weight: 600; color: var(--text-1); }
@media (min-width: 1000px) {
  .after { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 8px 44px; align-items: start; }
}

/* The walkthrough, as on How a Model Gets Made */
.present .topbar, .present .rail, .present .present-btn { display: none; }
.present .page { max-width: none; padding-block: 40px 120px; padding-left: max(10vw, env(safe-area-inset-left, 0px)); padding-right: max(10vw, env(safe-area-inset-right, 0px)); }
.present .intro, .present .workspace { display: block; }
.present .intro:not(.lit) { display: none; }
.present .intro.lit h1 { max-width: none; margin-top: 10vh; font-size: 56px; line-height: 1.1; }
.present .intro.lit p { max-width: 60ch; margin-top: 14px; font-size: 26px; line-height: 1.5; }
.present .panel > *:not(.lit) { display: none; }
.present .after:not(.lit) { display: none; }
.present .after.lit { display: block; margin-top: 4vh; padding-top: 0; border-top: 0; }
.present.after-lit .workspace { display: none; }
.present .after.lit .after-h { font-size: 40px; letter-spacing: -0.02em; }
.present .after.lit .lede { max-width: 60ch; font-size: 24px; line-height: 1.5; }
.present .after.lit .dscard h3 { font-size: 26px; }
.present .after.lit .dscard .about { font-size: 20px; line-height: 1.45; }
.present .after.lit .dscard .fact { font-size: 17px; line-height: 1.55; }
.present .after.lit .kv dd { font-size: 18px; }
.present .after.lit .note { font-size: 17px; }
.present .after.lit .dscard .why { display: none; }
.present .after.lit .takeaways { max-width: none; }
.present .after.lit .takeaways li { margin-top: 16px; font-size: 22px; line-height: 1.45; }
@media (min-width: 1200px) {
  .present .after.lit .takeaways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 56px; }
}
.present .question { max-width: none; margin-top: 4vh; font-size: 40px; }
.present .lede { max-width: 56ch; font-size: 22px; line-height: 1.5; }
.present .same { max-width: 60ch; font-size: 18px; line-height: 28px; }
.present .hint { max-width: 70ch; font-size: 17px; }
.present .cell p { font-size: 21px; line-height: 1.55; }
.present .col-head b { font-size: 18px; }
.present .chat-head h3 { font-size: 26px; }
.present .you span { font-size: 20px; }
.present .chat .thread { overflow-y: auto; scrollbar-width: thin; }
/* Every chat slide shows the box to type in (TJ, 2026-10-27: "i still dont see the chat which is the point!"). */
.present .chat .composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; }
.present .chat .composer > :not(textarea, .composer-foot) { grid-column: 1 / -1; }
.present .chat .composer-foot { align-self: start; }
.present-ui { display: none; }
.present .present-ui { display: block; }
.edge { position: fixed; top: 0; bottom: 72px; z-index: 20; width: 12vw; border: 0; background: none; color: var(--text-3); font-size: 56px; cursor: pointer; opacity: 0; }
.edge:hover { opacity: 1; } .edge.prev { left: 0; } .edge.next { right: 0; }
.present-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; display: flex; align-items: center; gap: 18px; min-height: 72px; padding: 8px max(28px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(28px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--divider); background: var(--bg); font-size: 15px; }
.present-bar .where { flex: none; font-weight: 600; color: var(--text-2); }
.present-bar .caption { flex: 1 1 auto; min-width: 0; font-size: 17px; color: var(--ink); }
.present-bar .count { flex: none; color: var(--text-2); }
.bar-step { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--divider); border-radius: 10px; background: var(--bg); font-size: 26px; line-height: 1; cursor: pointer; }
.bar-full { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; border: 1px solid var(--divider); border-radius: 8px; background: var(--bg); cursor: pointer; }
@media (hover: none) and (pointer: coarse) { .edge { display: none; } .bar-step { display: inline-flex; align-items: center; justify-content: center; } .key-words { display: none; } }
@media (hover: hover) { .touch-words { display: none; } }
@media (max-width: 719px) {
  .present .page { padding-block: 24px 140px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .present .intro.lit h1 { font-size: 36px; } .present .question { font-size: 28px; }
  .present-bar { gap: 10px; font-size: 13px; } .present-bar .where { display: none; }
}
@media (prefers-reduced-motion: reduce) { .knob { transition: none; } }
