/* The docs: the site's ground, a contents column at the left, one reading
   column, the visitor's light mode too. Colours are the app's own tokens
   (design/tokens.json): its black theme's edges and separators, text,
   secondary and accent, so the docs look like the product they describe.
   Labels are sentence case, never tracked capitals. */
:root {
  --bg: #08080a; --panel: #151517; --raise: #1b1b1e; --ink: #ececee; --dim: #b4b4bc; --faint: #8e8e96;
  --line: #242426; --line-soft: #18181a; --accent: #f29ab3; --accent-ink: #f6c3d3;
  --say-bg: rgba(242, 154, 179, .12); --say-hover: rgba(242, 154, 179, .2);
  --font: "Inter", -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    /* jevie.ai's own paper: the home page's warm ground, ink and pink,
       the pink deepened in its own hue so links pass AA on the cream. */
    --bg: #fbf8f4; --panel: #f4f0ea; --raise: #fffdfa; --ink: #17151f; --dim: #4f4b5a; --faint: #6c6775;
    --line: #ddd6cd; --line-soft: #ebe5dd; --accent: #b8336a; --accent-ink: #a42c5d;
    --say-bg: rgba(217, 70, 124, .085); --say-hover: rgba(217, 70, 124, .15);
    color-scheme: light;
  }
}
:root[data-theme="dark"] { color-scheme: dark }
* { box-sizing: border-box }
html { background: var(--bg); scroll-padding-top: 72px }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip }
a { color: inherit }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px }

/* ---------- The bar ---------- */
/* The bar's ends line up with the frame under it: the mark over the contents, Download over the page's right edge. */
.top { position: sticky; top: 0; z-index: 10; height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 max(20px, calc((100% - 1180px) / 2 + 20px));
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line) }
.mark { font-weight: 650; font-size: 16px; letter-spacing: -.02em; text-decoration: none }
.crumb { color: var(--dim); text-decoration: none; font-size: 14px; padding-left: 12px; border-left: 1px solid var(--line) }
/* The bar's search opens the finder: ⌘K, Ctrl K or / from anywhere. */
.find { display: flex; align-items: center; gap: 8px; margin-left: auto; width: min(320px, 40vw); height: 34px; padding: 0 8px 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--panel); color: var(--faint); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .2s var(--ease) }
.find:hover { border-color: var(--faint) }
.find span { flex: 1; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
/* The homepage's one button, the same everywhere on jevie.ai. */
.get { font-size: 13px; font-weight: 600; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); white-space: nowrap; transition: transform .3s var(--ease) }
.get:hover { transform: scale(1.04) }
.menu { display: none; background: none; border: 0; color: var(--ink); font-size: 18px; padding: 6px; cursor: pointer }

/* The finder: a field, the answers under it, the keys at its foot. */
.finder { width: min(620px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 120px)); margin: 12vh auto auto; padding: 0;
  display: none; flex-direction: column; overflow: hidden; color: var(--ink);
  background: var(--raise); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 24px 70px rgba(0, 0, 0, .4) }
.finder[open] { display: flex; animation: finder-in .18s var(--ease) }
.finder [cmdk-root] { display: flex; flex-direction: column; min-height: 0; overflow: hidden }
.finder [cmdk-group-heading] { margin: 8px 12px 2px; color: var(--faint); font-size: 12px; font-weight: 550 }
.finder [cmdk-empty], .finder .search-status { padding: 10px 12px; color: var(--dim); font-size: 13px }
.finder::backdrop { background: rgba(0, 0, 0, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px) }
@keyframes finder-in { from { opacity: 0; transform: translateY(-6px) scale(.985) } }
.finder .field { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line) }
.finder input { flex: 1; min-width: 0; height: 54px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; outline: none }
.finder input::placeholder { color: var(--faint) }
.finder input::-webkit-search-cancel-button { display: none }
.shut { font: 550 12px/18px var(--font); padding: 0 6px; border-radius: 5px; border: 0; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--dim); cursor: pointer }
.finder .keys { display: flex; gap: 16px; margin: 0; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px }
.finder .keys kbd + kbd { margin-left: 3px }
.finder .keys span { display: inline-flex; align-items: center; gap: 6px }
.results { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 6px; min-height: 0 }
.results .head:first-child { margin-top: 4px }
.results a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none }
.results a[aria-selected="true"], .results a:hover { background: var(--say-bg) }
.results b { display: block; font-weight: 550 }
.results small { color: var(--dim); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.results em { font-style: normal; color: var(--accent); font-size: 12px; font-weight: 550 }
.results .head { margin: 8px 12px 2px; color: var(--faint); font-size: 12px; font-weight: 550 }
.results .answer small { -webkit-line-clamp: 4; color: var(--ink) }
.results mark { background: var(--say-bg); color: var(--accent-ink); border-radius: 3px; padding: 0 1px }
.results p { margin: 10px 12px; color: var(--dim) }

/* ---------- Contents ---------- */
.frame { display: grid; grid-template-columns: 248px minmax(0, 1fr); max-width: 1180px; margin: 0 auto }
.side { position: sticky; scroll-behavior: auto; top: 52px; align-self: start; height: calc(100vh - 52px); overflow: auto; padding: 28px 16px 40px 20px; border-right: 1px solid var(--line); font-size: 14px }
.side .group { margin: 24px 0 4px; font-size: 13px; font-weight: 600; color: var(--ink) }
.side .group:first-child { margin-top: 0 }
.side ul { list-style: none; margin: 0; padding: 0 }
.side a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 7px; color: var(--dim); text-decoration: none; line-height: 1.3 }
.side li + li { margin-top: 1px } /* a wrapped name's lines sit closer than two names */
.side a:hover { color: var(--ink); background: var(--panel) }
.side a[aria-current="page"] { color: var(--ink); background: var(--say-bg); font-weight: 550 }

/* ---------- A page: one type scale (13 / 15.5 / 18 / 22 / 42), spacing on 4 ---------- */
.doc { padding: 64px 56px 96px; max-width: 820px; min-width: 0 }
.doc .eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 550 }
.doc h1 { margin: 0; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.045em; font-weight: 650; text-wrap: balance }
.doc .lede { margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: var(--dim); max-width: 62ch; text-wrap: pretty }
.doc .badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0 }
.badge { font-size: 12.5px; font-weight: 500; line-height: 20px; padding: 0 9px; border-radius: 980px; border: 1px solid var(--line); color: var(--dim) }
.badge.plan { color: var(--accent-ink); border-color: transparent; background: var(--say-bg) }
.badge.needs::before { content: "Asks for "; color: var(--faint) }
.doc .toc { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 28px 0 0; font-size: 13.5px }
.doc .copy-hint { margin: 20px 0 0; color: var(--faint); font-size: .875rem }
.toc a { text-decoration: none; color: var(--dim); padding: 6px 0 }
.toc a::before { content: "↓ "; color: var(--faint) }
.toc a:hover { color: var(--ink) }
.doc h2 { margin: 56px 0 14px; font-size: 26px; line-height: 1.2; letter-spacing: -.03em; font-weight: 650; text-wrap: balance }
.doc h3 { margin: 32px 0 8px; font-size: 17px; line-height: 1.35; font-weight: 600 }
.doc p { margin: 0 0 16px; max-width: 68ch; text-wrap: pretty }
.doc ul { margin: 0 0 16px; padding-left: 20px; max-width: 72ch }
.doc li { margin: 0 0 8px; padding-left: 2px }
.doc li::marker { color: var(--faint) }
.doc p a, .doc li a, .doc td a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px }
code { font: 13.5px/1.4 var(--mono); padding: 1px 5px; border-radius: 5px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow-wrap: anywhere }
pre { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto }
pre code { padding: 0; background: none; box-shadow: none; font-size: 13px; overflow-wrap: normal; white-space: pre }
kbd { display: inline-block; font: 550 12px/18px var(--font); padding: 0 5px; min-width: 20px; text-align: center; border-radius: 5px; background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -1px 0 var(--line); color: var(--ink); white-space: nowrap; vertical-align: 1px }

/* What you say, set apart: the sentences are the interface. A chip is one
   piece, so it never breaks into an empty half at a line's end. */
q.say { quotes: none; display: inline-block; max-width: 100%; vertical-align: top; font-weight: 500; color: var(--ink); line-height: 1.5;
  padding: 1px 8px; margin: 1px 0; border-radius: 7px; background: var(--say-bg); cursor: pointer; transition: background .2s var(--ease) }
q.say:hover { background: var(--say-hover) }

/* "Use it": what you say on the left, what happens on the right. */
.doc ul.uses { list-style: none; padding: 0; max-width: none; border-top: 1px solid var(--line-soft) }
.doc li.use { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4px 28px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line-soft) }
li.use .said { color: var(--dim); line-height: 1.9 }
li.use .said q.say { margin: 3px 4px 3px 0 } /* wrapped sentences keep a gap between rows, as between words */
li.use .does { color: var(--dim); font-size: 14.5px; line-height: 1.55; padding-top: 1px }

.table { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 10px }
table { width: 100%; border-collapse: collapse; font-size: 14px }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums }
th { background: var(--panel); font-weight: 600 }
tr:last-child td { border-bottom: 0 }

/* The palette, asking a page's sentences (sim.css draws it). */
.demo { margin: 32px 0 0; padding: 28px 20px 14px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  background: radial-gradient(60% 80% at 30% 20%, rgba(90, 68, 184, .55), transparent 70%), radial-gradient(50% 70% at 80% 30%, rgba(19, 122, 134, .45), transparent 70%), #08080a }
/* The palette sits on the homepage's own desk: its wallpaper's violet and teal. */
.demo-stage { min-height: 150px }
/* The palette's own picture of the sentence answered (docs-says): drawn with
   48 points of clear margin round the panel, Jevie perched in the top one. */
.demo-shot { display: block; opacity: 0; transition: opacity .28s cubic-bezier(.22, 1, .36, 1) }
.demo-shot.on { opacity: 1 }
.demo-shot img { display: block; width: min(696px, calc(100% + 40px)); height: auto; margin: -34px auto -40px }
.demo figcaption { margin-top: 12px; font-size: 12.5px; color: rgba(243, 240, 241, .6); text-align: center }

.doc .in-app { margin: 40px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--panel); font-size: 14.5px; color: var(--dim) }
.doc .updated { margin: 24px 0 0; font-size: 13px; color: var(--faint) }
.doc .updated a { color: var(--faint) }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px }
.pager a { display: block; padding: 14px 16px; border-radius: 12px; text-decoration: none; font-weight: 550; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s var(--ease) }
.pager a:hover { box-shadow: inset 0 0 0 1px var(--accent) }
.pager .prev::before { content: "← "; color: var(--faint) }
.pager .next { text-align: right }
.pager .next::after { content: " →"; color: var(--faint) }
.pager small { display: block; color: var(--faint); font-weight: 400; font-size: 13px }

/* ---------- The index: what Jevie does best first, then every page as a list ---------- */
.doc .starts { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0 }
.start { display: inline-flex; gap: 8px; padding: 9px 16px; border-radius: 980px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none }
.doc .starts .start { color: var(--bg); text-decoration: none }
.start span { transition: transform .3s var(--ease) }
.start:hover span { transform: translateX(3px) }
.doc .starts .start.quiet { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-weight: 550 }
.doc .starts .start.quiet:hover { box-shadow: inset 0 0 0 1px var(--faint) }

.best { margin: 56px 0 0 }
.best > h2 { margin-top: 0 }
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px 32px; padding: 28px 0; border-top: 1px solid var(--line) }
.feature:last-child { border-bottom: 1px solid var(--line) }
.feature h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.01em }
.feature h3 a { text-decoration: none }
.feature h3 a:hover { color: var(--accent-ink) }
.doc .feature p { margin: 0; color: var(--dim); font-size: 14.5px }
.feature .tries { display: flex; flex-wrap: wrap; align-content: start; gap: 6px }
.feature .tries q.say { font-size: .875rem; padding: 6px 10px }

.level { margin: 56px 0 0 }
.level h2 { margin: 0 }
.doc .blurb { margin: 4px 0 12px; color: var(--dim) }
.rows { border-top: 1px solid var(--line-soft) }
.row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 2px 24px; padding: 10px 8px; margin: 0 -8px; border-bottom: 1px solid var(--line-soft); border-radius: 0; text-decoration: none; transition: background .15s }
.row:hover { background: var(--panel) }
.row b { font-weight: 550 }
.row span { color: var(--dim); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.row q.say { padding: 0; background: none; font-weight: inherit; color: inherit; cursor: inherit; display: inline }

footer { max-width: 1180px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px }
footer a { color: var(--faint); margin-right: 16px; text-decoration: none }
footer a:hover { color: var(--ink) }

.toast { position: fixed; z-index: 30; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 8px 14px; border-radius: 980px; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 550; transition: opacity .25s, transform .35s var(--ease) }
.toast.on { opacity: 1; transform: translate(-50%, 0) }

/* ---------- Phone width: contents behind ☰, every two-column row stacked ---------- */
@media (max-width: 860px) {
  .top { padding: 0 16px; gap: 10px }
  .get, .crumb { display: none }
  .find { width: auto; flex: 1 }
  .find kbd { display: none }
  .finder { width: auto; max-width: none; max-height: none; height: 100dvh; margin: 0; inset: 0; border: 0; border-radius: 0 }
  .finder .keys { display: none }
  .menu { display: block; min-width: 44px; min-height: 44px }
  .frame { display: block }
  .side { display: none; position: fixed; inset: 52px 0 0; z-index: 9; height: auto; background: var(--bg); border: 0; padding: 20px 16px 60px }
  body.nav-open .side { display: block }
  body.nav-open { overflow: hidden }
  .doc { padding: 28px 16px 64px }
  .doc .lede { font-size: 16.5px }
  .doc li.use, .feature, .row { grid-template-columns: 1fr }
  .pager { grid-template-columns: 1fr }
  .demo { padding: 20px 8px 12px }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important } }
/* On a phone the palette is not at the top: a sentence pressed opens its
   picture under its own row (docs-ui.js), edge to edge, the picture's clear
   margin (48 of its 696 points each side) cut so the panel fills the width. */
@media (max-width: 560px) {
  .demo { display: none }
  .demo.here { display: block; margin: 8px -16px 4px; padding: 14px 0 6px; border-radius: 0 }
  .demo.here .demo-stage { min-height: 0 }
  .demo.here .demo-shot img { width: calc((100vw - 16px) * 1.16); max-width: none; margin: calc((100vw - 16px) * -.06) 0 calc((100vw - 16px) * -.08) calc(8px - (100vw - 16px) * .08) }
  .demo.here figcaption { display: none }
}

/* Real renders: the top of each, full size a click away. */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px 16px; margin: 4px 0 0 }
.shots:has(> :only-child) { grid-template-columns: 1fr; max-width: 560px }
.shot { margin: 0 }
.shot a { position: relative; display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .08) }
.shot a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; transition: box-shadow .2s var(--ease) }
.shot a:hover::after { box-shadow: inset 0 0 0 1px var(--accent) }
.shot img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; object-position: top }
.shots:has(> :only-child) img { max-height: 420px }
.shot figcaption { margin-top: 8px; font-size: 13.5px; color: var(--dim) }
.doc .note { margin: 8px 0 0; font-size: 13px; color: var(--faint) }
.doc .note + p { margin-top: 24px }
.related { margin-top: 4px }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr } .shot img { max-height: 280px } }
/* Phone screens whole, three to a row, at a phone's own proportions. */
.shots.phones { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.shot.phone a { border-radius: 22px }
.shot.phone img { max-height: none }
@media (max-width: 860px) { .shots.phones { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
/* A label Jevie shows, quoted as it reads on screen. */
q.ui { quotes: "“" "”"; font-weight: 550; color: var(--ink) }

.mark { display: inline-flex; align-items: center; gap: 8px; }
.mark-img { display: block; }

/* ---------- A sentence asked: the phone app answering it, in a sheet (docs-ui.js) ----------
   On a phone, up from the bottom, nearly the whole screen; wider, a phone's
   size beside the page. The frame is the phone page itself (/try/app.html),
   wearing the look nearest the docs' own (Rose Pine light, Deep Space dark);
   the panel is that look's ground, so the frame has no seam and never shows
   black while the page loads. */
.ask-sheet { --phone: #120f2d; --phone-ink: rgba(232, 230, 255, .72); --phone-key: rgba(232, 230, 255, .08); --edge: rgba(255, 255, 255, .07); --scrim: rgba(8, 8, 10, .5);
  position: fixed; inset: 0; z-index: 30; visibility: hidden; pointer-events: none }
@media (prefers-color-scheme: light) { .ask-sheet { --phone: #faf4ed; --phone-ink: rgba(87, 82, 121, .82); --phone-key: rgba(87, 82, 121, .08); --edge: rgba(87, 82, 121, .14); --scrim: rgba(40, 32, 60, .32) } }
.ask-sheet.on { visibility: visible; pointer-events: auto }
.ask-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .25s var(--ease) }
.ask-sheet.on .ask-scrim { opacity: 1 }
.ask-panel { position: absolute; display: flex; flex-direction: column; background: var(--phone); overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 1px var(--edge), 0 2px 6px rgba(0, 0, 0, .14), 0 28px 70px rgba(0, 0, 0, .36);
  right: 24px; bottom: 24px; width: 400px; height: min(820px, calc(100dvh - 48px)); border-radius: 22px;
  transform: translateY(18px) scale(.985); opacity: 0; transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .22s var(--ease) }
.ask-sheet.on .ask-panel { transform: none; opacity: 1 }
/* One slim row over the phone's own: the phone keeps its whole layout, the sheet adds only Copy and close. */
.ask-head { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 6px 8px 0; touch-action: none }
.ask-grab { position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--phone-ink); opacity: .35; display: none }
.ask-copy, .ask-close { position: relative; height: 32px; border: 0; border-radius: 16px; background: var(--phone-key); color: var(--phone-ink); font: 500 13px/1 var(--font); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease) }
.ask-copy { padding: 0 13px }
.ask-close { width: 32px; display: grid; place-items: center }
/* Drawn 32 px, pressed anywhere in 44. */
.ask-copy::before, .ask-close::before { content: ""; position: absolute; inset: -6px }
.ask-copy:hover, .ask-close:hover, .ask-copy:focus-visible, .ask-close:focus-visible { background: color-mix(in oklch, var(--phone-key), var(--phone-ink) 14%); outline: none }
.ask-body { position: relative; flex: 1; min-height: 0 }
.ask-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--phone); transition: opacity .3s var(--ease) }
.ask-wait, .ask-fail { position: absolute; inset: 0; margin: 0; display: none; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; color: var(--phone-ink); font-size: 14px }
.ask-sheet[data-state="loading"] .ask-frame, .ask-sheet[data-state="failed"] .ask-frame { opacity: 0 }
.ask-sheet[data-state="loading"] .ask-wait, .ask-sheet[data-state="failed"] .ask-fail { display: grid }
.ask-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--phone-ink); animation: ask-breathe 1.4s ease-in-out infinite }
@keyframes ask-breathe { 0%, 100% { opacity: .25; transform: scale(.8) } 50% { opacity: .8; transform: scale(1) } }
.ask-retry { margin-top: 4px; height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--phone-key); color: var(--phone-ink); font: 500 13px/1 var(--font); cursor: pointer }
body.sheet-open { overflow: hidden }
@media (min-width: 561px) { .ask-sheet { --scrim: rgba(8, 8, 10, .28) } }
@media (min-width: 561px) and (prefers-color-scheme: light) { .ask-sheet { --scrim: rgba(40, 32, 60, .16) } }
@media (max-width: 560px) {
  /* Up to just under the docs' header and one row more: the sentence pressed shows there, above its answer. */
  .ask-panel { left: 0; right: 0; bottom: 0; width: auto; height: calc(100dvh - 108px); border-radius: 22px 22px 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom) }
  /* The page keeps 72 px for its header (html scroll-padding-top); the pressed sentence sits 60 px down, in the strip above the sheet. */
  q.say { scroll-margin-top: -12px }
  .ask-head { padding-top: 14px }
  .ask-grab { display: block }
}
@media (prefers-reduced-motion: reduce) { .ask-panel { transform: none } .ask-dot { animation: none; opacity: .6 } }
