:root { --create-ease: cubic-bezier(.16, 1, .3, 1); }
.home { width: min(var(--col-max), 100%); margin: 0 auto; }
.page[data-view="composer"] > .main { padding-inline: 0; }
.page[data-view="composer"] .bar-links { margin-left: auto; }
.hero-start-box { display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 20px; background: var(--paper); transition: border-color 160ms ease, box-shadow 220ms ease; }
#hero-topic { flex: 1; min-width: 0; min-height: 44px; max-height: 7.5em; padding: 10px 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: 400 18px/1.45 var(--sans); letter-spacing: -.012em; field-sizing: content; }
#hero-topic::placeholder { color: var(--ink-3); }
.hero-start-go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--signal); color: #171a19; transition: background-color 160ms ease, scale 120ms var(--create-ease); }
.hero-start-go svg { transition: translate 160ms ease; }
.hero-start-go:hover { background: #f76342; }
.hero-start-go:hover svg { translate: 1.5px -1.5px; }
.hero-start-go:active { scale: .96; }
.hero-new { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 36px; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font: 500 13px/1.4 var(--sans); text-decoration: none; }
.hero-new-tag { flex: none; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--signal) 13%, transparent); color: var(--signal-text); font: 700 11px/1.3 var(--sans); letter-spacing: .02em; }
.hero-new:hover { border-color: var(--line-2); color: var(--ink); }
.hero-new-arrow { transition: translate 180ms ease; }
.hero-new:hover .hero-new-arrow { translate: 3px 0; }
:is(.hero-new, .hero-start-go, .try-chip):focus-visible { outline: 2px solid var(--signal-text); outline-offset: 3px; }
.create { padding-inline: var(--gutter); padding-block: clamp(28px, 6vh, 64px) 72px; }
.create-inner { max-width: 860px; margin: 0 auto; }
.create-title { margin: 0 0 22px; font: 800 clamp(32px, 3.3vw, 46px)/1.08 var(--sans); letter-spacing: -.04em; text-wrap: balance; }
/* The Create headline is written the way the landing statements are: the
   words rise from behind their own baseline, the signature word is inked
   in and dries, and the pen underlines it. Geometry copied from
   landing.css so the two headlines match; the keyframes live in
   landing-motion.css, which every view loads. */
.create-title .wm { display: inline-block; vertical-align: baseline; clip-path: inset(0); padding: .02em .07em .16em; margin: -.02em -.07em -.16em; }
.create-title .w { display: inline-block; }
.create-title .mark { position: relative; display: inline-block; white-space: nowrap; }
.create-title .it { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-style: normal; font-weight: 500; font-optical-sizing: auto; font-variation-settings: "SOFT" 40; font-size: 1.06em; line-height: .9; letter-spacing: -.025em; }
.create-title .wm.it { padding-right: .04em; margin-right: -.04em; }
.create-title .it .w { color: var(--ink); }
/* Wavy pen line, .11em below the baseline. The landing script measures the
   stretched path into --pen; Create has no such script, so the dash is
   written out long enough to cover the whole stroke. */
.create-title .stroke { position: absolute; left: -.02em; top: calc(50% + .49em); width: calc(100% + .06em); height: .16em; overflow: visible; color: var(--signal); pointer-events: none; }
.create-title .stroke path { fill: none; stroke: currentColor; stroke-width: .056em; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1.2 1.5; }
.create .composer-box { position: relative; height: auto; min-height: 210px; border-radius: 14px; box-shadow: 0 1px 2px #171a190a, 0 18px 44px -24px #171a1926; transition: border-color 160ms ease, box-shadow 220ms ease; view-transition-name: ivan-prompt; }
.create .composer-box:focus-within { border-color: var(--ink-4); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 14%, transparent), 0 16px 36px -16px #171a1929; }
.create .composer-box::after { display: none; }
.create .field { height: auto; min-height: 4.5em; max-height: min(40vh, 340px); field-sizing: content; font: 400 21px/1.5 var(--sans); letter-spacing: -.012em; }
@supports not (field-sizing: content) { .create .field { flex: none; height: 6em; overflow-y: auto; } }
.create .explain > span:first-child { white-space: nowrap; }
@container composer (max-width: 570px) {
  .create .composer-toolbar { grid-template-columns: minmax(0, 1fr) minmax(84px, 1fr) 44px; }
  .create .explain { padding-inline: 10px; gap: 6px; }
}
.create .explain { background: var(--paper-2); color: var(--ink-3); }
.create .composer-form.has-content .explain { background: var(--signal); color: #171a19; }
.create .composer-form.has-content .explain:hover { background: #f76342; }
.create .composer-form:not(.has-content) .explain:hover { background: var(--paper-2); }
.create-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 8px; }
.create-hint { flex: none; margin: 6px 2px 0; color: var(--ink-3); font: 400 12px/18px var(--sans); }
.create-hint kbd { font: 500 11px/1 var(--data); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 5px; }
@media (hover: none), (pointer: coarse) { .create-hint { display: none; } }
/* Length is no longer a control, so the page says so once, quietly, where the
   toolbar used to carry the picker. Tokens carry it into dark paper. */
.create-length-note { margin: 6px 2px 0; color: var(--ink-3); font: 400 13px/1.5 var(--sans); text-wrap: pretty; }
.create-label { margin: 0 0 12px; padding: 0; color: var(--ink-2); font: 600 13.5px/1.4 var(--sans); letter-spacing: -.008em; }
.style-choices { margin: 34px 0 0; padding: 0; border: 0; min-width: 0; }
.style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.style-card { position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px 16px 10px 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease, scale 140ms var(--create-ease); }
.style-card input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.style-card:hover { border-color: var(--ink-4); }
.style-card:active { scale: .99; }
.style-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.style-card:has(input:focus-visible) { outline: 2px solid var(--signal-text); outline-offset: 3px; }
.style-preview { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.style-preview.is-board { background: #1e2429; box-shadow: none; }
.style-preview img, .style-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.style-preview video { opacity: 0; transition: opacity 180ms ease; }
.style-card.is-playing video { opacity: 1; }
.style-copy { display: grid; gap: 4px; min-width: 0; }
.style-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink); font: 700 16px/1.3 var(--sans); letter-spacing: -.02em; }
.style-new { padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--signal) 13%, transparent); color: var(--signal-text); font: 700 10px/1.3 var(--sans); letter-spacing: .03em; }
.style-check { flex: none; margin-left: auto; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color 180ms ease, box-shadow 180ms ease; }
.style-check svg { width: 14px; height: 14px; fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset 220ms var(--create-ease) 40ms; }
.style-card:has(input:checked) .style-check { background: var(--ink); box-shadow: none; animation: create-pop 260ms var(--create-ease); }
.style-card:has(input:checked) .style-check svg { stroke-dashoffset: 0; }
@keyframes create-pop { from { scale: .6; } to { scale: 1; } }
.style-detail { color: var(--ink-2); font: 400 13px/1.45 var(--sans); }
.create-try { display: grid; grid-template-rows: 1fr; margin-top: 28px; transition: grid-template-rows 220ms var(--create-ease), opacity 220ms var(--create-ease), margin-top 220ms var(--create-ease), visibility 0s linear; }
.create-try-inner { min-height: 0; overflow: hidden; }
.create-try.is-quiet { grid-template-rows: 0fr; margin-top: 0; opacity: 0; visibility: hidden; transition-delay: 0s, 0s, 0s, 220ms; }
.try-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.try-chip { min-height: 38px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); font: 400 14px/1.35 var(--sans); text-align: left; transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease; animation: create-chip 260ms var(--create-ease) backwards; animation-delay: calc(var(--i) * 35ms); }
.try-chip:hover { border-color: var(--ink-4); color: var(--ink); }
@keyframes create-chip { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.create .recently { margin-top: 48px; }
.recently .row-question { display: flex; align-items: center; gap: 8px; min-width: 0; }
.recently .row-question-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recently .row-tag { flex: none; padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font: 500 11px/16px var(--sans); letter-spacing: .01em; white-space: nowrap; }
.create-recent-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.create .recently-label { margin: 0 0 12px; color: var(--ink-2); font: 600 13.5px/1.4 var(--sans); letter-spacing: -.008em; }
.create .all-runs { position: static; margin: 0; }
.create.is-entering :is(.style-choices, .create-try, .recently), .create.is-entering:not(.is-morphing) .composer-box { animation: create-rise 520ms var(--create-ease) backwards; }
.create.is-entering .composer-box { animation-delay: 40ms; }
.create.is-entering .style-choices { animation-delay: 90ms; }
.create.is-entering .create-try { animation-delay: 140ms; }
.create.is-entering .recently { animation-delay: 190ms; }
.create.is-entering .create-title .w { animation: word-rise 560ms var(--create-ease) backwards; }
.create.is-entering .create-title > :nth-child(2) .w { animation-delay: 54ms; }
.create.is-entering .create-title > :nth-child(3) .w { animation-delay: 108ms; }
.create.is-entering .create-title .it .w { animation: ink-write 420ms 300ms cubic-bezier(.45, 0, .2, 1) backwards, ink-dry 520ms 380ms ease-out backwards; }
.create.is-entering .create-title .stroke path { animation: pen 440ms 470ms cubic-bezier(.6, 0, .25, 1) backwards; }
@keyframes create-rise { from { opacity: 0; translate: 0 10px; } }
::view-transition-old(root) { animation-duration: 160ms; }
::view-transition-new(root) { animation-duration: 280ms; animation-delay: 60ms; animation-fill-mode: both; }
::view-transition-old(ivan-prompt) { animation-duration: 200ms; }
::view-transition-new(ivan-prompt) { animation-duration: 360ms; }
::view-transition-group(ivan-prompt) { animation-duration: 540ms; animation-timing-function: var(--create-ease); }
::view-transition-old(ivan-prompt), ::view-transition-new(ivan-prompt) { height: 100%; object-fit: none; object-position: left top; }
.source-dialog[open] { animation: create-dialog-enter 240ms var(--create-ease) both; }
@keyframes create-dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .source-dialog[open] { animation: none; } }
@media (max-width: 860px) { .style-card { grid-template-columns: 132px minmax(0, 1fr); } }
@media (max-width: 640px) {
  .hero-new { max-width: 100%; }
  .create-title { font-size: 30px; }
  .create .field { font-size: 18px; }
  .style-grid { gap: 10px; }
  .style-card { grid-template-columns: 1fr; padding: 8px; gap: 10px; align-items: start; }
  .style-detail { display: none; }
  .style-name { flex-wrap: wrap; gap: 4px; font-size: 15px; }
}
@media (max-width: 600px) {
  .recently .row-question-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .create.is-entering :is(.create-title, .style-choices, .create-try, .recently, .composer-box),
  .create.is-entering .create-title :is(.w, .stroke path), .try-chip,
  .style-card:has(input:checked) .style-check { animation: none !important; }
  .hero-start-box, .hero-start-go, .hero-start-go svg, .hero-new-arrow,
  .create .composer-box, .style-card, .style-check, .style-check svg,
  .create-try, .create-try.is-quiet { transition: none; }
  .hero-start-go:hover svg, .hero-new:hover .hero-new-arrow { translate: none; }
  .hero-start-go:active, .style-card:active { scale: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ============================================================
   Create, in Paper & Ink. The desk: one sheet lying on a pad,
   the question written on it, the machine's choices along its
   foot. Ported from the approved Create board; every id, role
   and behaviour of the live composer is kept.
   ============================================================ */
.page[data-view="composer"] {
  --col-max: 1280px;
  --edge: var(--frame-edge);
  --signal-hover: #f76342;
  --sh-rest: 0 1px 1px var(--landing-shadow-soft), 0 12px 32px -14px var(--landing-shadow-deep);
  --sh-lift: 0 2px 3px var(--landing-shadow-soft), 0 28px 56px -18px var(--landing-shadow-deep);
}
.page[data-view="composer"] .bar { border-bottom: 0; }
.page[data-view="composer"] .bar-inner { max-width: var(--col-max); }
.page[data-view="composer"] .bar-links { align-items: center; gap: 4px; }
.page[data-view="composer"] .bar-link {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border: 0; border-radius: 999px; background: none; color: var(--ink-2);
  font: 500 14px/1 var(--sans); letter-spacing: -.004em;
  transition: color 160ms ease, background-color 160ms ease;
}
.page[data-view="composer"] .bar-link:hover { color: var(--ink); background: var(--paper-2); }
.page[data-view="composer"] .bar-link svg { width: 16px; height: 16px; opacity: .85; }
.page[data-view="composer"] .profile {
  position: relative; width: 34px; height: 34px; margin-left: 14px; border: 0;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink); font: 600 13px/1 var(--sans);
  transition: box-shadow 160ms ease, background-color 160ms ease;
}
.page[data-view="composer"] .profile::before { content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 1px; background: var(--line); }
.page[data-view="composer"] .profile:hover { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--ink-4); }

.create { padding-block: clamp(28px, 4.2vw, 60px) 0; }
.create-inner { width: min(880px, 100%); max-width: none; margin-inline: auto; }
.create-title { margin: 0 0 26px -.03em; font: 800 clamp(34px, 4.4vw, 60px)/1 var(--sans); letter-spacing: -.052em; }

/* The desk: the question sheet lies on a blank one, and the blank one peeks
   out below-right like a pad. The box is a stacking context (it is isolated
   and carries the morph name), so a negative-z child can never lie under the
   box's own background: the pad would show through the paper. The paper is
   therefore painted by ::after, above the pad and under the words. */
.create .composer-form { position: relative; z-index: 2; }
/* The blank sheet under the question sheet. */
.create .composer-box::before {
  content: ""; position: absolute; inset: 10px -6px -8px 8px; z-index: -2;
  border: 1px solid var(--edge); border-radius: 12px; background: var(--paper); rotate: .8deg;
  box-shadow: 0 1px 2px var(--landing-shadow-soft), 0 22px 40px -22px var(--landing-shadow-deep);
}
/* The question sheet: paper, edge and highlight, covering the box's own edge. */
.create .composer-box::after {
  content: ""; display: block; position: absolute; inset: -1px; z-index: -1; opacity: 1;
  border: 1px solid var(--line-2); border-radius: 18px; background: var(--paper);
  box-shadow: inset 0 1px 0 #ffffff99; pointer-events: none; transform: none; animation: none;
  transition: border-color 160ms ease, box-shadow 320ms var(--create-ease);
}
.create .composer-box {
  position: relative; height: auto; min-height: 0;
  border: 1px solid var(--line-2); border-radius: 18px; background: var(--paper);
  box-shadow: var(--sh-rest);
  transition: box-shadow 320ms var(--create-ease);
}
.create .composer-box:hover { box-shadow: var(--sh-lift); }
.create .composer-box:focus-within { box-shadow: var(--sh-lift); }
.create .composer-box:focus-within::after { opacity: 1; border-color: #f04420a6; box-shadow: 0 0 0 4px #f044200f, inset 0 1px 0 #ffffff99; }
.create .composer-content { position: relative; flex: none; padding: 22px 24px 8px; gap: 8px; }
.create .field { flex: none; height: auto; min-height: 4.4em; max-height: min(40vh, 340px); overflow-y: auto; field-sizing: content; font: 400 21px/1.5 var(--sans); letter-spacing: -.012em; }
@supports not (field-sizing: content) { .create .field { height: 6.6em; } }
/* The caret blinks on the blank sheet until the question is being written. */
.create .caret { position: absolute; left: 23px; top: 24px; width: 2px; height: 26px; border-radius: 1px; background: var(--ink); animation: blink 1.1s steps(1, end) 1.4s infinite; }
.create .composer-box:focus-within .caret, .create .composer-form.has-content .caret { display: none; }
.create .count { right: 24px; bottom: 6px; color: var(--ink-4); font: 500 11px/1.5 var(--data); }

.create .composer-toolbar { min-height: 0; gap: 4px; padding: 8px 8px 8px 12px; border-top: 1px solid var(--line); }
.create .composer-input-actions { gap: 2px; }
.create .upload, .create .dictate { width: 40px; height: 40px; border-radius: 10px; color: var(--ink-2); }
.create .upload:hover, .create .dictate:hover { color: var(--ink); background: var(--paper-2); }
.create .upload svg, .create .dictate svg { width: 20px; height: 20px; }
.create .composer-settings { gap: 2px; margin-left: auto; }
.create .choice-picker > summary {
  justify-content: flex-start; gap: 7px; min-height: 36px; height: 36px; padding: 0 10px;
  border: 0; border-radius: 999px; background: none; color: var(--ink-2);
  font: 500 13.5px/1 var(--sans); letter-spacing: -.004em;
  transition: color 160ms ease, background-color 160ms ease;
}
.create .choice-picker > summary:hover, .create .choice-picker[open] > summary { color: var(--ink); background: var(--paper-2); }
.create .choice-picker > summary svg { width: 17px; height: 17px; opacity: .8; }
.create .choice-picker > summary svg:last-child:not(:first-child) { width: 13px; height: 13px; opacity: .6; }
.create .more-options > summary { width: 36px; padding: 0; justify-content: center; }
.create .choice-panel { top: calc(100% + 8px); min-width: 176px; padding: 6px; border: 1px solid var(--edge); border-radius: 12px; box-shadow: var(--sh-lift); }
.create .choice-panel > label { min-height: 36px; padding: 0 10px; border-radius: 8px; font: 500 14px/1 var(--sans); }
.create .choice-panel > label:has(input:checked) { background: var(--paper-2); color: var(--ink); }
.create .choice-panel label:has(input:checked)::after { color: var(--signal-text); }
/* Create: quiet until there is something to make, then the dark pill with
   the orange nib. The state follows the real textarea through .has-content. */
.create .explain {
  gap: 12px; height: 44px; min-width: 0; margin-left: 8px; padding: 0 6px 0 18px;
  border-radius: 999px; background: var(--paper-2); color: var(--ink-3);
  font: 600 14.5px/1 var(--sans); letter-spacing: -.004em;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 220ms ease, color 220ms ease, transform 200ms var(--create-ease), box-shadow 220ms ease;
}
.create .explain > span:last-child {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--line); color: var(--ink-3); font: 500 16px/1 var(--sans);
  transition: background-color 220ms ease, color 220ms ease, translate 220ms var(--create-ease);
}
.create .composer-form.has-content .explain {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 1px 2px #171a1933, 0 10px 22px -12px #171a198c, inset 0 1px 0 #ffffff1f;
}
.create .composer-form.has-content .explain > span:last-child { background: var(--signal); color: #171a19; box-shadow: inset 0 1px 0 #ffffff47; }
.create .composer-form.has-content .explain:hover { background: #242a28; transform: translateY(-1px); }
/* On dark paper the ink pill lifts towards the page instead of into it, so
   the label keeps its contrast. */
html[data-theme="dark"] .create .composer-form.has-content .explain:hover { background: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .create .composer-form.has-content .explain:hover { background: var(--ink-2); }
}
.create .composer-form.has-content .explain:hover > span:last-child { translate: 2px -1px; background: var(--signal-hover); }
.create .composer-form:not(.has-content) .explain:hover { background: var(--paper-2); }
.create-meta { align-items: center; margin-top: 26px; padding: 0 4px; animation: create-rise 900ms 500ms var(--create-ease) backwards; }
.create .composer-notice { color: var(--ink-3); font: 400 13px/1.5 var(--sans); }
.create-length-note { margin: 10px 4px 0; max-width: 60ch; }
.create-hint { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--ink-3); font: 500 12px/1.5 var(--sans); }
.create-hint kbd { min-width: 14px; padding: 2px 5px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-2); font: 500 10.5px/1 var(--data); text-align: center; }

/* Style: two prints, the chosen one pinned with an ink check. */
.style-choices { margin-top: 44px; }
.create-label { margin: 0 0 14px; }
.style-grid { gap: 18px; }
.style-card {
  display: block; padding: 0; border: 0; border-radius: 0; background: none;
  perspective: 1400px; transition: none;
}
.style-card:hover, .style-card:active { border: 0; box-shadow: none; scale: none; }
.style-card:has(input:checked) { border: 0; box-shadow: none; }
.style-preview {
  border: 1px solid var(--edge); border-radius: 8px; box-shadow: var(--sh-rest);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: box-shadow 500ms var(--create-ease), transform 500ms var(--create-ease), border-color 200ms ease;
  will-change: transform;
}
/* A print keeps its paper in both themes, so the ink always multiplies. */
.style-preview img { mix-blend-mode: multiply; }
.style-preview.is-board { border-color: var(--edge); }
.style-preview.is-board img { mix-blend-mode: normal; }
.style-card:hover .style-preview { box-shadow: var(--sh-lift); }
.style-card:has(input:checked) .style-preview { border-color: var(--signal-text); box-shadow: 0 0 0 3px #f0442026, var(--sh-lift); }
.style-copy { position: relative; gap: 4px; margin-top: 14px; padding-left: 36px; }
.style-name { gap: 8px; font: 650 17px/1.3 var(--sans); letter-spacing: -.02em; }
.style-detail { color: var(--ink-2); font: 400 14px/1.5 var(--sans); }
.style-new {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px 0 7px;
  border-radius: 999px; background: var(--signal); color: #171a19;
  font: 700 10.5px/1 var(--sans); letter-spacing: .02em; box-shadow: inset 0 1px 0 #ffffff4d;
}
.style-new::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #171a19; opacity: .8; }
.style-check {
  position: absolute; left: 0; top: 2px; margin: 0; width: 24px; height: 24px;
  box-shadow: inset 0 0 0 1px var(--line-2); color: transparent;
}
.style-check svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; }
.style-card:has(input:checked) .style-check { background: var(--ink); box-shadow: none; color: var(--signal); animation: pop 320ms var(--create-ease); }

/* Try: questions others have asked, as pills that lift. */
.create-try { margin-top: 44px; }
.try-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--paper); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px var(--landing-shadow-soft);
  transition: box-shadow 200ms var(--create-ease), transform 200ms var(--create-ease), color 160ms ease;
}
.try-chip::after { content: "\2192"; color: var(--ink-4); transition: translate 180ms ease, color 160ms ease; }
.try-chip:hover { color: var(--ink); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 18px -10px var(--landing-shadow-deep); }
.try-chip:hover::after { color: var(--signal-text); translate: 3px 0; }

/* Recent: small prints in a row list, the machine's figures in mono. */
.create .recently { margin-top: 44px; max-width: none; }
.create .recently-label { margin: 0; }
.create-recent-heading { margin-bottom: 12px; }
.create .all-runs { color: var(--ink-2); font: 500 13px/1.4 var(--sans); }
.create .all-runs:hover { color: var(--signal-text); }
.create .recently .row-list { display: block; border-top: 1px solid var(--line); }
.create .recently .row-list > li, .create .recently .row { display: block; grid-template-columns: none; }
.create .recently .row {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto;
  grid-template-areas: "poster question time" "poster meta time";
  align-items: center; column-gap: 18px; row-gap: 3px;
  padding: 12px 34px 12px 0; border-bottom: 1px solid var(--line); box-shadow: none;
}
.create .recently .row:hover { background: none; }
.create .row-poster {
  grid-area: poster; position: relative; display: block; aspect-ratio: 16 / 9; overflow: clip;
  border: 1px solid var(--edge); border-radius: 6px; background: #fff;
  box-shadow: var(--sh-rest); transition: box-shadow 400ms var(--create-ease), border-color 200ms ease;
}
.create .row-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.create .row:hover .row-poster { border-color: var(--signal-text); box-shadow: var(--sh-lift); }
.create .recently .row-question { grid-area: question; align-items: baseline; font: 500 16px/1.35 var(--sans); letter-spacing: -.015em; }
.create .row:hover .row-question { color: var(--signal-text); }
.create .recently .row-tag { padding: 1px 7px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font: 500 11px/16px var(--sans); }
.create .recently .row-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 0; margin: 0; color: var(--ink-3); font: 400 13px/1.4 var(--sans); }
.create .recently .row-meta-field + .row-meta-field::before { content: "\00b7"; margin: 0 6px; color: var(--line-2); }
.create .recently .status-word { grid-area: time; margin: 0; color: var(--ink-3); font: 400 13px/16px var(--sans); }
.create .recently .row-menu { right: 0; }
.create .recently .row .status-word:empty { display: block; }

.page[data-view="composer"] .studio-footer { border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); }

@media (max-width: 640px) {
  .page[data-view="composer"] { --bar-h: 60px; }
  .page[data-view="composer"] .bar-inner { flex-wrap: nowrap; gap: 2px; height: 56px; }
  .page[data-view="composer"] .bar-link { padding: 0 9px; }
  .page[data-view="composer"] .bar-link > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .page[data-view="composer"] .profile { margin-left: 10px; width: 32px; height: 32px; }
  .page[data-view="composer"] .profile::before { left: -10px; }
  .create-title { margin-bottom: 20px; font-size: clamp(31px, 8.6vw, 40px); }
  .create .composer-content { padding: 18px 18px 6px; }
  .create .field { font-size: 18px; min-height: 4em; }
  .create .caret { left: 17px; top: 20px; height: 22px; }
  .create .composer-toolbar { flex-wrap: wrap; gap: 2px; padding: 8px; }
  .create .composer-settings { margin-left: 0; }
  .create .choice-picker > summary { padding: 0 8px; gap: 5px; font-size: 13px; }
  .create .explain { margin-left: auto; height: 40px; padding-left: 14px; }
  .create .explain > span:last-child { width: 28px; height: 28px; }
  .create-hint { display: none; }
  .style-choices, .create-try, .create .recently { margin-top: 34px; }
  .style-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .style-card { grid-template-columns: none; padding: 0; gap: 0; }
  .style-detail { display: block; }
  .style-name { font-size: 16px; }
  .create .recently .row { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "poster question" "poster meta"; column-gap: 12px; }
  .create .recently .status-word { display: none; }
  .create .recently .row-question { white-space: normal; font-size: 15px; }
  .create .recently .row-question-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .create .caret, .create-meta, .style-card:has(input:checked) .style-check { animation: none !important; }
  .create .caret { display: none; }
  .style-preview, .try-chip, .create .row-poster, .create .explain { transition: none; }
  .style-preview { transform: none; }
}
.create .recently .row::before { content: none; }
