/* prefetch/style.css: the race page's own pieces, layered on main-demo/style.css.
   Every page under prefetch/ links it. */

.hero { padding-top: 20px; padding-bottom: 0; }
.hero h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 4px; }
.hero .lede { max-width: 72ch; text-wrap: pretty; font-size: 16px; }
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.pf-hero-text { flex: 1 1 520px; min-width: 0; }
/* the way out: from the demo to the docs page that turns prefetch on */
.pf-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px var(--body); color: var(--accent); text-decoration: none;
  border: 1.5px solid var(--accent); border-radius: 6px; padding: 10px 16px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.pf-cta:hover { background: var(--accent); color: var(--surface); }
.pf-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Ask: one question, both agents ── */
.pf-ask { display: grid; gap: 10px; margin: 16px 0 20px; max-width: 980px; }
.pf-ask .race-row input { font-size: 16px; padding: 11px 14px; }
.pf-ask .btn { min-width: 88px; }
.pf-ask .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pf-starters { display: grid; gap: 6px; }
.pf-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.pf-group-h { flex: 0 0 auto; min-width: 9.5em; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pf-group .chips { margin: 0; flex: 1 1 300px; min-width: 0; }
.pf-group[data-fit="poor"] .chip { border-style: dashed; }
.chip:disabled { opacity: 0.45; cursor: not-allowed; }
.chip:disabled:hover { border-color: var(--line); color: var(--ink-2); }
.chip:focus-visible, .pf-ask input:focus-visible, .btn:focus-visible, .btn-quiet:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.pf-check { margin: 0; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.pf-check:empty { display: none; }
.pf-check[data-phase="ready"] { color: var(--ok); }
.pf-check[data-phase="unavailable"], .pf-check[data-phase="retry"] { color: var(--warn); }

/* ── The timeline: both lanes on one time axis, phases end to end ── */
.pf-board { display: grid; gap: 16px 40px; margin: 0 0 20px; align-items: start; }
@media (min-width: 1100px) { .pf-board { grid-template-columns: minmax(0, 1fr) 360px; } }
.pf-race { min-width: 0; }
.pf-tl { display: grid; gap: 6px; }
.pf-tl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 8px; }
.pf-tl-row > .pf-tl-name { grid-area: 1 / 1; }
.pf-tl-row > .pf-tl-end { grid-area: 1 / 2; }
.pf-tl-row > .pf-tl-track, .pf-tl-row > .pf-tl-axis { grid-column: 1 / -1; grid-row: 2; }
.pf-tl-row.is-axis > :not(.pf-tl-axis) { display: none; }
.pf-tl-name { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pf-tl-row.is-on .pf-tl-name { color: var(--accent); }
.pf-tl-end { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; white-space: nowrap; }
.pf-tl-track { position: relative; height: 30px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pf-seg {
  position: absolute; top: 0; bottom: 0; container-type: inline-size; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 4px;
  box-shadow: inset -1px 0 0 var(--surface); white-space: nowrap;
  font-size: 11px; line-height: 1; transition: left 200ms ease-out, width 200ms ease-out;
}
.pf-seg b { font-weight: 600; }
.pf-seg i { font-style: normal; font-variant-numeric: tabular-nums; opacity: 0.85; }
@container (max-width: 92px) { .pf-seg i { display: none; } }
@container (max-width: 50px) { .pf-seg b { display: none; } }
.pf-seg.is-wait, .pf-tl-key .is-wait::before { background: var(--line); color: var(--ink-2); }
.pf-seg.is-prefetch, .pf-tl-key .is-prefetch::before { background: var(--ok); color: var(--surface); }
.pf-seg.is-search, .pf-tl-key .is-search::before { background: var(--accent); color: var(--surface); }
.pf-seg.is-model, .pf-tl-key .is-model::before {
  background: light-dark(color-mix(in srgb, var(--ink-3) 32%, var(--surface)), color-mix(in srgb, var(--ink-3) 55%, var(--surface)));
  color: var(--ink);
}
.pf-seg.is-tool, .pf-tl-key .is-tool::before { background: color-mix(in srgb, var(--warn) 34%, var(--surface)); color: var(--ink); }
.pf-seg.is-answer, .pf-tl-key .is-answer::before { background: var(--crease); color: var(--surface); }
.pf-tl-axis { position: relative; height: 16px; border-top: 1px solid var(--line-strong); }
.pf-tick { position: absolute; top: 3px; transform: translateX(-50%); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }
.pf-tick:first-child { transform: none; }
.pf-tick:last-child { transform: translateX(-100%); }
.pf-tl-empty { margin: 0; font-size: 13px; color: var(--ink-3); }
.pf-tl-key { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); }
.pf-tl-key li { display: inline-flex; align-items: center; gap: 6px; }
.pf-tl-key li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; }
/* the shared timeline above stands in for each lane's own strip */
.pf-lane .tl { display: none; }
@media (prefers-reduced-motion: reduce) { .pf-seg { transition: none; } }

/* ── The scoreboard: the headline numbers ── */
.pf-score { min-width: 0; }
.pf-score table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; table-layout: fixed; }
.pf-score th, .pf-score td { padding: 6px 12px 6px 0; text-align: left; font-weight: 400; vertical-align: baseline; }
.pf-score thead th { font-size: 12px; font-weight: 600; color: var(--ink-2); padding-top: 0; border-bottom: 1px solid var(--line-strong); }
.pf-score thead .pf-col.is-on { color: var(--accent); }
.pf-score tbody tr + tr > * { border-top: 1px solid var(--line); }
.pf-score col.pf-c-m { width: 34%; }
.pf-score col.pf-c-d { width: 20%; }
.pf-score .pf-m { color: var(--ink-2); font-size: 13px; }
.pf-v { color: var(--ink); }
.pf-num { font-size: 16px; font-weight: 500; white-space: nowrap; }
.pf-v.is-blank .pf-num { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.pf-score .is-lead .pf-m { color: var(--ink); font-weight: 600; }
.pf-score .is-lead .pf-num { font-size: 24px; font-weight: 600; }
.pf-score .is-lead .pf-v.is-blank .pf-num { font-size: 13px; font-weight: 400; }
.pf-score .pf-d { font-size: 13px; color: var(--ink-2); padding-right: 0; white-space: nowrap; }
.pf-score thead .pf-d { cursor: help; }
.pf-score .is-lead .pf-d { color: var(--ink); }

/* ── Lanes: the two answers, timings and tool calls in view ── */
.lanes[hidden] { display: none; }
.pf-lane { display: grid; gap: 8px; align-content: start; min-width: 0; }
#lanes[data-mode="race"] .lane-chat .ais-Chat-container { min-height: 96px; }
.pf-err {
  margin: 0; padding: 8px 12px; font-size: 14px; color: var(--ink);
  border: 1px solid var(--warn); border-radius: 6px; background: color-mix(in srgb, var(--warn) 10%, var(--surface));
}
/* the widget's own error says "contact support"; the note above the lane says what happened */
.lane-chat .ais-ChatMessageError { display: none; }
.lane.is-failed .lane-chat { opacity: 0.5; }
/* the lane's empty chat points at main-demo's starter chips, which sit above here */
.lane-empty p { display: none; }
/* docs and site records carry no image: their result cards are text only */
[data-demo="askai"] .pcard-img, [data-demo="assist"] .pcard-img { display: none; }

.pf-foot p { margin: 28px 0 32px; font-size: 12px; color: var(--ink-3); }

/* ── The phone's own pieces: hidden on a wider screen ── */
.pf-sum, .pf-tabs, .pf-more { display: none; }

/* ── On a phone: the numbers above the fold, one answer at a time ── */
@media (max-width: 560px) {
  .hero { padding-top: 12px; gap: 10px; }
  .hero h1 { font-size: 26px; }
  .hero .lede { font-size: 15px; line-height: 1.45; }
  .eyebrow a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .pf-cta { font-size: 15px; min-height: 44px; padding: 0 14px; }

  .pf-ask { gap: 8px; margin: 12px 0 14px; }
  .pf-ask .race-row input, .pf-ask .btn { min-height: 44px; }
  .pf-check[data-phase="ready"] { display: none; }
  /* both groups of starters on one row that scrolls sideways; its edge fades to say there is more */
  .pf-starters {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 0 -16px; padding: 0 16px;
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .pf-starters::-webkit-scrollbar { display: none; }
  .pf-group { flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 8px; }
  .pf-group-h { min-width: 0; font-size: 12px; white-space: nowrap; }
  .pf-group .chips { flex: 0 0 auto; flex-wrap: nowrap; gap: 8px; }
  .pf-group .chip { flex: 0 0 auto; min-height: 44px; }
  .pf-group[data-fit="poor"] { padding-right: 32px; }

  /* the headline: each lane's numbers in its own box, before the timeline */
  .pf-board { gap: 14px; margin-bottom: 16px; }
  .pf-sum:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pf-sum-lane {
    display: grid; gap: 2px; padding: 10px 12px; min-width: 0;
    border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  }
  .pf-sum-lane.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
  .pf-sum-lane p { margin: 0; }
  .pf-sum-h { font-size: 13px; font-weight: 600; color: var(--ink-2); }
  .pf-sum-lane.is-on .pf-sum-h { color: var(--accent); }
  .pf-sum-v { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pf-sum-v b { font-size: 17px; font-weight: 600; color: var(--ink); }
  .pf-sum-v.is-lead b { font-size: 28px; line-height: 1.15; }
  .pf-sum-v.is-blank b { font-size: 15px; font-weight: 500; color: var(--ink-3); }
  /* the table says the same, row by row: on a phone the boxes above stand in for it */
  .pf-score { display: none; }

  /* the timeline: legend for what this run had, every other tick when they crowd */
  .pf-tl-key .is-absent { display: none; }
  .pf-tl-axis:is([data-n="7"], [data-n="8"], [data-n="9"]) .pf-tick:nth-child(even):not(:last-child) { display: none; }

  /* one lane at a time, picked by tab; the other keeps streaming out of sight */
  .pf-tabs:not([hidden]) {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 10px; padding: 4px;
    border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  }
  .pf-tab {
    min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    line-height: 1.2;
    font: 600 14px var(--body); color: var(--ink-2); background: none; border: 0; border-radius: 7px; cursor: pointer;
  }
  .pf-tab i { font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .pf-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
  .pf-tab[data-lane="b"][aria-selected="true"] { color: var(--accent); }
  .pf-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  #lanes[data-show="a"] > .pf-lane:nth-child(2), #lanes[data-show="b"] > .pf-lane:nth-child(1) { display: none; }

  /* inside a lane: the answer, without the widget's chrome or the debug drawers */
  .lane-inner { padding: 12px; gap: 8px; }
  /* the tab names the lane; the pill says what differs */
  .lane-label { display: none; }
  /* the question is in the box above, the same for both lanes */
  .lane-chat .ais-ChatMessage--right { display: none; }
  /* before the first question the chat is an empty box: the pill and its line say enough */
  .lane-chat:has(.lane-empty) { display: none; }
  .lane-chat .ais-Button--ghost { min-height: 44px; }
  .lane-chat .ais-ChatHeader, .lane-chat .ais-ChatMessage-actions, .pf-lane .hits, .pf-lane .hits-h, .pf-lane .wire { display: none; }
  .lane-chat .ais-ChatInlineLayout .ais-Chat-container { border: 0; }
  .lane-chat .ais-ChatMessages-content { padding: 4px 0; }
  .lane-chat .pcard-img { display: none; }
  .lane-chat .ais-Carousel-item { width: 168px; }
  #lanes[data-mode="race"] .lane-chat .ais-ChatInlineLayout,
  #lanes[data-mode="race"] .lane-chat .ais-Chat-container { min-height: 0; }
  /* a long answer folds; one tap opens it */
  .pf-lane:not(.is-full) .lane-chat { max-height: 520px; overflow: hidden; }
  .pf-lane.is-clamped .lane-chat { mask-image: linear-gradient(to bottom, #000 78%, transparent); }
  .pf-more:not([hidden]) {
    display: block; width: 100%; min-height: 44px; margin-top: -4px;
    font: 600 14px var(--body); color: var(--accent); cursor: pointer;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px;
  }
  .pf-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  .pf-foot p { margin: 20px 0 24px; }
}

/* ── Act 1, the title screen: one line, the way to the docs, one bar that changes ── */
.pf-title { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding-bottom: 28px; }
.pf-title .pf-hero-text { flex: 0 0 auto; }
.pf-title .pf-morph { align-self: stretch; }
.pf-title h1 { font-size: clamp(40px, 8vw, 76px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px; }
.pf-title .lede { font-size: clamp(17px, 2.2vw, 21px); max-width: 34ch; }
.pf-morph { margin: 12px 0 0; min-width: 0; max-width: 1080px; width: 100%; }
.pf-morph figcaption { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pf-morph-state { font: 600 18px var(--display); color: var(--ink); transition: color 300ms; }
.pf-morph[data-state="after"] .pf-morph-state { color: var(--accent); }
.pf-morph-note { font-size: 13px; color: var(--ink-3); }
.pf-morph-bar { position: relative; height: 56px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.pf-morph-bar + .pf-morph-bar { margin-top: 8px; }
.pf-morph .pf-seg {
  font-size: 13px; transition: left 900ms cubic-bezier(0.6, 0, 0.2, 1), width 900ms cubic-bezier(0.6, 0, 0.2, 1),
    background-color 600ms, color 600ms;
}
.pf-morph .pf-seg.is-gone b { opacity: 0; }
.pf-morph-bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--was, 0); pointer-events: none;
  border-right: 2px dashed var(--ink-3); opacity: 0; transition: opacity 400ms;
}
.pf-morph[data-state="after"] .pf-morph-bar::after { opacity: 1; transition-delay: 500ms; }
.pf-morph.is-still .pf-morph-bar::after { display: none; }
.pf-morph-ends { position: relative; height: 52px; margin-top: 6px; }
.pf-morph-was {
  position: absolute; top: 4px; transform: translateX(-100%); padding-right: 4px; white-space: nowrap;
  font: 500 15px var(--display); font-variant-numeric: tabular-nums; color: var(--ink-3); text-decoration: line-through;
}
.pf-morph-was:empty { display: none; }
.pf-morph[data-state="after"] .pf-morph-was { top: 28px; }
.pf-morph-end {
  position: absolute; top: 0; width: max-content; transform: translateX(-100%); white-space: nowrap;
  font: 600 22px var(--display); font-variant-numeric: tabular-nums; color: var(--ink);
  transition: left 900ms cubic-bezier(0.6, 0, 0.2, 1);
}
.pf-morph[data-state="after"] .pf-morph-end { color: var(--accent); }
.pf-morph.is-still .pf-morph-end { position: static; transform: none; font-size: 16px; }
.pf-morph .pf-tl-key { margin-top: 4px; }
.pf-scroll {
  margin-top: 8px; font: 600 15px var(--body); color: var(--ink-2);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: max-content;
}
.pf-scroll span { display: inline-block; animation: pf-nudge 1.8s ease-in-out infinite; }
.pf-scroll:hover { color: var(--accent); }
@keyframes pf-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .pf-morph .pf-seg, .pf-morph-end, .pf-morph-state { transition: none; }
  .pf-scroll span { animation: none; }
}

/* ── Acts 2 and 3: a heading each ── */
.pf-act { padding-top: 28px; scroll-margin-top: 8px; }
.pf-act-h { font: 800 clamp(28px, 4vw, 40px) var(--display); letter-spacing: -0.01em; margin: 0 0 6px; }
.pf-act-lede { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; max-width: 60ch; }
.pf-tune { padding-bottom: 8px; }

/* album covers on every card, a square sleeve */
[data-demo="albums"] .pcard-img { aspect-ratio: 1; }
[data-demo="albums"] .pcard-img img { object-fit: cover; }

/* ── Act 3: the conversation, then two prefetch lanes ── */
.pf-convo { display: grid; gap: 10px; margin: 0 0 18px; max-width: 980px; }
.pf-pairs { margin: 0; }
.pf-pair { display: inline-flex; align-items: baseline; gap: 0; text-align: left; }
.pf-pair .pf-then { font-style: normal; color: var(--ink-3); white-space: pre; }
.pf-pair:disabled { opacity: 0.45; cursor: not-allowed; }
.pf-turns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
.pf-turn { display: flex; align-items: center; gap: 8px; min-width: 0; padding-left: 10px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.pf-turn span { font: 600 13px var(--mono); color: var(--ink-3); }
.pf-turn input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 16px var(--body); padding: 11px 12px 11px 0; }
.pf-turn:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.pf-turn input:focus { outline: none; }
.pf-tune .btn:disabled { opacity: 0.45; cursor: not-allowed; }

.pf-tune-lanes { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pf-tlane { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 14px; display: grid; gap: 12px; align-content: start; }
.pf-tlane-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.pf-tlane-name { margin: 0; font: 700 18px var(--display); color: var(--accent); }
.pf-knobs { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.pf-knob { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.pf-knob-h { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 0 6px; }
.pf-knob-b {
  min-width: 40px; min-height: 36px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  font: 600 15px var(--body); font-variant-numeric: tabular-nums; color: var(--ink-2);
}
.pf-knob-b[aria-pressed="true"] { background: var(--accent); color: var(--surface); }
.pf-knob-b:disabled { cursor: not-allowed; opacity: 0.4; }
.pf-knob-b[aria-pressed="true"]:disabled { opacity: 0.75; }
.pf-knob-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pf-tlane-body { display: grid; gap: 10px; }
.pf-tlane-empty { margin: 0; color: var(--ink-3); font-size: 14px; }
.pf-tcard { display: grid; gap: 8px; min-width: 0; }
.pf-tcard.is-first { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.pf-tcard.is-first .pf-covers { grid-template-columns: repeat(auto-fill, 40px); }
.pf-tcard.is-first .pf-cover figcaption { display: none; }
.pf-tcard-h { margin: 0; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.pf-tcard-h b { color: var(--ink-2); }
.pf-q { margin: 0; font: 500 17px/1.35 var(--body); color: var(--ink); overflow-wrap: anywhere; }
.pf-q::before { content: "\201C"; color: var(--ink-3); }
.pf-q::after { content: "\201D"; color: var(--ink-3); }
.pf-tcard.is-first .pf-q { font-size: 14px; color: var(--ink-2); }
.pf-q mark.is-ctx { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.pf-dec { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.pf-dec.is-in { color: var(--ok); }
.pf-dec.is-skip { color: var(--warn); }
.pf-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.pf-cover { margin: 0; display: grid; gap: 4px; min-width: 0; transition: opacity 300ms; }
.pf-cover img, .pf-cover-slot {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 4px;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line);
}
.pf-cover figcaption { font-size: 11px; line-height: 1.25; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-cover.is-off { opacity: 0.35; }
.pf-covers.is-empty { grid-template-columns: repeat(auto-fill, minmax(36px, 48px)); }
.pf-fit { margin: 0; font-size: 14px; color: var(--ink-2); }
.pf-fit b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.pf-nums div { display: grid; gap: 0; }
.pf-nums dt { font-size: 12px; color: var(--ink-3); }
.pf-nums dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.pf-answer { font-size: 14px; line-height: 1.5; color: var(--ink); max-height: 9.5em; overflow: hidden; mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.pf-answer.is-full { max-height: none; mask-image: none; }
.pf-answer > :first-child { margin-top: 0; }
.pf-answer p, .pf-answer ul, .pf-answer ol { margin: 0 0 0.6em; }
.pf-more-t {
  justify-self: start; min-height: 44px; padding: 0 12px; font: 600 14px var(--body); color: var(--accent); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px;
}

@media (max-width: 860px) {
  .pf-tune-lanes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pf-title { min-height: 100svh; padding-top: 20px; }
  .pf-title h1 { font-size: 44px; }
  .pf-morph { margin-top: 18px; }
  .pf-morph-bar { height: 48px; }
  .pf-morph .pf-seg { font-size: 11px; }
  .pf-morph-end { font-size: 20px; }
  .pf-act { padding-top: 20px; }
  .pf-act-h { font-size: 28px; }
  /* covers stay on a phone: the record is the point */
  [data-demo="albums"] .lane-chat .pcard-img { display: block; }
  .pf-turns { grid-template-columns: minmax(0, 1fr); }
  .pf-turns .btn, .pf-turn input { min-height: 44px; }
  /* a pair is longer than a phone is wide: stacked, each one wraps */
  .pf-pairs { display: grid; gap: 8px; }
  .pf-pair { display: block; min-height: 44px; border-radius: 12px; padding: 10px 12px; }
  .pf-tlane { padding: 12px; }
  .pf-knobs { flex-wrap: nowrap; gap: 6px; }
  .pf-knob-h { padding: 0 4px; font-size: 11px; }
  .pf-knob-b { min-width: 40px; min-height: 40px; }
  .pf-answer { max-height: 7.5em; }
  .pf-covers { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
}
