/* The brief (public/index.html), in the bright look of nightlystudio.com (30 Oct 2026). Lawrence, after the landing
   pages went bright: "When I click build my website, it goes back to the old style… too many words", and from
   durable.com/ai-website-builder: "notice the style and lack of words". So: one question per screen, a big serif
   question, one short line, a large grey box with the example inside it, and Next. Instrument Serif for the questions,
   Inter 400 for the rest, buttons 500, nothing heavier; the same living gradient as the landing pages, as a wash at
   the top. The project page, the console and the legal pages keep assets/app.css. */
:root {
  --aqua: #b4e0d6;
  --cornflower: #6e9bf7;
  --periwinkle: #8a8ff7;
  --sky: #d6e5f8;
  --warm: #ffd9b8;
  --ink: #111216;
  --ink-2: #2b2f3d;
  --muted: #5c6070;    /* 6.3:1 on white */
  --accent: #3456d8;
  --line: #e8e8ec;
  --box: #f4f4f5;      /* the answer boxes, Durable's grey */
  --card: #f1f1f1;
  --bad: #b42318;      /* 6.5:1 on white */
  --nudge: #7a4f00;    /* a suggestion, never an error: 7.6:1 on white */
  --gold: #e8b54a;
  --serif: "Instrument Serif", "Instrument Serif fallback", Georgia, serif;
  --sans: Inter, "Inter fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
/* The site's two faces (public/fonts/, the same files as nightlystudio.com), with fallbacks sized to match, so nothing
   moves when they arrive. */
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-6c8e8a29.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; src: url("/fonts/inter-latin-400-500-1dc044f4.woff2") format("woff2"); font-weight: 400 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"); size-adjust: 83.5%; ascent-override: 118.6%; descent-override: 37.1%; line-gap-override: 0%; }
@font-face { font-family: "Inter fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 107%; ascent-override: 90.7%; descent-override: 22.4%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
b, strong { font-weight: 500; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.skip:focus { left: 8px; }
h1, h2, h3, .q { overflow-wrap: normal; -webkit-hyphens: manual; hyphens: manual; text-wrap: balance; }
.muted { color: var(--muted); }
.label { font-size: 13px; font-weight: 500; color: var(--muted); }
.label--dawn { color: var(--accent); }
.roman { font-family: var(--serif); }
.num { font-variant-numeric: tabular-nums; }
.lede { font-size: 18px; color: var(--muted); max-width: 52ch; }

/* ---------- The living gradient, as a wash behind the top of the page ---------- */
.mesh { background:
    radial-gradient(55% 75% at 0% 0%, var(--aqua) 0%, rgba(180, 224, 214, 0) 70%),
    radial-gradient(45% 65% at 42% -5%, var(--cornflower) 0%, rgba(110, 155, 247, 0) 72%),
    radial-gradient(55% 80% at 100% 5%, var(--periwinkle) 0%, rgba(138, 143, 247, 0) 70%),
    radial-gradient(40% 55% at 85% 105%, var(--warm) 0%, rgba(255, 217, 184, 0) 70%),
    linear-gradient(180deg, #a8c2f6 0%, var(--sky) 78%, #e6eefa 100%); }
.wash { position: absolute; inset: 0 0 auto; height: 420px; z-index: -1; pointer-events: none; overflow: hidden; }
.wash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, .7) 55%, #fff 100%); }

/* ---------- Top bar ---------- */
.top { position: relative; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.logo svg { width: 24px; height: 24px; flex: none; }
.spacer { flex: 1; }
.top-note { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.chip { border: 1px solid rgba(17, 18, 22, .18); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; color: var(--ink-2); background: rgba(255, 255, 255, .6); white-space: nowrap; }

/* ---------- The brief: one question per screen ---------- */
.brief-wrap { position: relative; isolation: isolate; padding: 24px 0 72px; min-height: calc(100vh - 64px); }
.brief-grid { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 340px); justify-content: center; gap: 72px; align-items: start; }
.brief-main { min-width: 0; }
.progress { height: 3px; background: rgba(17, 18, 22, .1); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 12.5%; background: var(--ink); border-radius: 3px; transition: width .4s ease; }
@media (prefers-reduced-motion: reduce) { .progress span { transition: none; } }
.count { margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
form.brief { display: grid; gap: 24px; margin-top: 40px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 22px; min-width: 0; }
legend { padding: 0; }
.intro { font-size: 15px; color: var(--ink-2); max-width: 46ch; }
.opt { justify-self: start; font-size: 12px; font-weight: 500; color: var(--ink-2); background: rgba(255, 255, 255, .7); border: 1px solid rgba(17, 18, 22, .14); border-radius: 999px; padding: 3px 10px; margin-bottom: -12px; }
.q { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 58px); line-height: 1.02; letter-spacing: -.01em; color: var(--ink); max-width: 16ch; }
.field { display: grid; gap: 8px; }
.field--q { gap: 10px; }
.field--q .hint { font-size: 17px; margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label, .lbl { font-size: 14px; font-weight: 500; color: var(--ink-2); }
label.q { font-size: clamp(38px, 5.4vw, 58px); font-weight: 400; color: var(--ink); }
.hint { font-size: 14px; color: var(--muted); }
input[type=text], input[type=email], input[type=url], select, textarea { width: 100%; background: var(--box); color: var(--ink); border: 1px solid #e6e6ea; border-radius: 12px; padding: 13px 16px; font-size: 17px; line-height: 1.45; transition: border-color .15s ease, background-color .15s ease; }
textarea { min-height: 150px; resize: vertical; border-radius: 16px; padding: 18px 20px; }
.field--q textarea { min-height: 170px; font-size: 18px; }
textarea.short { min-height: 104px; }
::placeholder { color: #6b6f7b; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 18, 22, .08); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.field--name input { font-size: 18px; }
.inline-url { display: flex; gap: 8px; }
.inline-url input { flex: 1; min-width: 0; }

/* Choices (the action, photos): grey cards, the chosen one outlined in ink. */
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.choice label { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; background: var(--box); border: 1px solid #e6e6ea; border-radius: 16px; padding: 16px 18px; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--ink); }
.choice label:has(input:checked) { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice label:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.choice input { accent-color: var(--ink); width: 18px; height: 18px; margin: 2px 0 0; }
.choice small { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 2px; }
.swatches { display: flex; gap: 4px; margin-top: 8px; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; font-weight: 400; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }

/* Buttons: one dark button per screen; quiet ones beside it. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 12px; border: 0; background: rgba(0, 0, 0, .86); color: #fff; font: 500 16px/1.1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease; }
.btn:hover { background: #000; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #d8d9df; }
.btn--ghost:hover { background: var(--box); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn--mic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; flex: none; }
.linkish { background: none; border: 0; padding: 8px 0; min-height: 44px; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(17, 18, 22, .35); cursor: pointer; }
.linkish:hover { text-decoration-color: var(--ink); }
.linkish:disabled { opacity: .55; cursor: progress; }
.wiz-nav { display: flex; align-items: center; gap: 10px; }
.wiz-nav .back { background: none; border: 0; padding: 0 4px; min-height: 52px; font-size: 16px; font-weight: 500; color: var(--muted); cursor: pointer; }
.wiz-nav .back:hover { color: var(--ink); }
.alts { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: -6px; }
.import { display: grid; gap: 8px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }

/* Notes, suggestions and problems. */
.notice { border-radius: 16px; background: #f4f6fd; padding: 16px 18px; font-size: 15px; color: var(--ink-2); display: grid; gap: 4px; }
.notice strong { color: var(--ink); }
.later { font-size: 14px; color: var(--muted); }
.later .linkish { font-size: 14px; }
.error { color: var(--bad); font-size: 15px; min-height: 0; }
.error:empty { display: none; }
.error .btn { margin-left: 8px; vertical-align: baseline; }
.field-error { margin: 2px 0 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--bad); color: var(--bad); font-size: 15px; max-width: 60ch; }
.has-error > label:not(.q), .has-error > .lbl { color: var(--bad); }
.check.has-error input { outline: 2px solid var(--bad); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .has-error.flash { animation: field-flash 1.4s ease-out; border-radius: 16px; }
  @keyframes field-flash { from { box-shadow: 0 0 0 10px rgba(180, 35, 24, .12); background: rgba(180, 35, 24, .05); } to { box-shadow: 0 0 0 10px rgba(180, 35, 24, 0); background: transparent; } }
}
.nudge { margin: 2px 0 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--gold); color: var(--nudge); font-size: 14px; max-width: 60ch; }
.check-note { margin: 2px 0 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--accent); color: var(--ink-2); font-size: 14px; max-width: 60ch; }
.check-note span { color: var(--accent); font-weight: 500; margin-right: 4px; }
.fine { font-size: 13px; color: var(--muted); }
.fine a { color: var(--ink-2); }
.spin { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink-2); border-top-color: transparent; animation: spin 1s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.takes .dot, .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, .12); margin-right: 2px; }

/* Folded extras: the house styles, a second site, the time zone. */
details.more { border-top: 1px solid var(--line); }
details.more:last-of-type { border-bottom: 1px solid var(--line); }
details.more > summary { cursor: pointer; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; min-height: 44px; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
details.more[open] > summary::after { content: "\2013"; }
details.more > :not(summary) { margin-bottom: 16px; }
#tz-box { border: 0; }
#tz-box > summary { font-size: 14px; font-weight: 400; color: var(--muted); padding: 6px 0; }
#tz-box > summary .muted { text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
#tz-box[open] > summary .muted { display: none; }
#tz-box > summary::after { content: none; }
#second-box .second { display: grid; gap: 14px; }

/* The house-style picker (question 8 and the interview's intro). */
.inspire { display: grid; gap: 16px; margin-top: 4px; }
.inspire-cat > .label { margin-bottom: 8px; }
.inspire-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.inspire-item { position: relative; display: flex; flex-direction: column; font-size: 14px; }
.inspire-pick { flex: 1; text-align: left; display: grid; align-content: start; gap: 4px; padding: 14px 14px 4px; border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; min-height: 44px; }
.inspire-pick::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 14px; }
.inspire-pick:focus-visible { outline: none; }
.inspire-pick:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 3px; }
.inspire-pick:hover::after { border-color: #c9ccd4; }
.inspire-pick[aria-pressed="true"]::after { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.inspire-item strong { color: var(--ink); font-size: 15px; }
.inspire-foot { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 6px 6px 14px; }
.inspire-foot small { color: var(--muted); font-size: 12px; }
.inspire-see { position: relative; z-index: 1; margin-left: auto; line-height: 32px; padding: 0 8px; color: var(--ink); font-size: 13px; white-space: nowrap; }


/* Logo and photos. */
.images { display: grid; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.file-input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.file-input + label { cursor: pointer; }
.uploads { display: grid; gap: 10px; }
.uploads:empty { display: none; }
.upload { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 10px; }
.upload .thumb { width: 72px; height: 72px; object-fit: cover; display: block; background: var(--box); border-radius: 10px; }
.upload.logo .thumb { object-fit: contain; background: repeating-conic-gradient(#ececef 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.upload .meta { display: grid; gap: 6px; min-width: 0; }
.upload .name { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload .state { font-size: 14px; color: var(--muted); }
.upload .state.bad { color: var(--bad); }
.upload .state.ok { color: #1f6f43; }
.upload input[type=text] { padding: 9px 12px; font-size: 15px; }
.upload .acts { display: grid; gap: 6px; justify-items: end; }
.upload .acts button { min-height: 32px; padding: 6px 10px; background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.upload .acts button:hover { border-color: #c9ccd4; }

/* ---------- The sketch beside the questions: their page taking shape. It's an illustration, labelled as one. ---------- */
.sketch { position: sticky; top: 32px; margin-top: 64px; }
.sk-win { border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(30, 50, 130, .16), 0 0 0 1px rgba(17, 18, 22, .06); overflow: hidden; }
.sk-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f2f3f6; border-bottom: 1px solid #e7e8ee; }
.sk-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4d6dd; }
.sk-bar span { margin-left: 8px; font-size: 11px; color: var(--muted); }
.sk-page { padding: 18px 20px 22px; display: grid; gap: 14px; }
.sk-head { display: flex; align-items: center; gap: 8px; }
.sk-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 500; flex: none; }
.sk-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-hero { display: grid; gap: 10px; padding: 18px 16px; border-radius: 12px; background: linear-gradient(160deg, #eef2fd, #f7f7f9); }
.sk-title { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sk-what { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sk-cta { justify-self: start; font-size: 12px; font-weight: 500; color: #fff; background: var(--ink); border-radius: 8px; padding: 7px 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sk-parts li { font-size: 12px; color: var(--muted); border: 1px dashed #cfd2da; border-radius: 10px; padding: 9px 10px; transition: background-color .3s ease, border-color .3s ease; }
.sk-parts li.on { border-style: solid; border-color: transparent; background: var(--card); color: var(--ink-2); }
.sk-parts li.on::before { content: "\2713  "; color: var(--accent); }
.sk-note { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 88px; font-size: 13px; color: var(--muted); }  /* room to scroll the last line clear of Ask Nightly */
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.legal-links a { color: var(--muted); }
.legal-links a:hover { color: var(--ink); }

/* ---------- Ask Nightly: small, and never louder than Next ---------- */
.ask-launch { position: fixed; z-index: 55; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 0 6px 20px rgba(15, 20, 40, .12); }
.ask-launch:hover { border-color: #c9ccd4; }
.ask-launch svg { width: 20px; height: 20px; flex: none; }
.ask-launch[aria-busy="true"] { cursor: progress; opacity: .75; }
.ask-open .ask-launch { visibility: hidden; }

/* ---------- The voice interview, in the same light ---------- */
dialog.iv { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); overflow: auto; }
dialog.iv::backdrop { background: rgba(17, 18, 22, .35); }
.iv-frame { min-height: 100%; display: grid; grid-template-rows: auto 1fr; position: relative; isolation: isolate; }
.iv-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 12px var(--gutter); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.iv-bar > .label { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); font-size: 15px; }
.iv-time { color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.iv-close { margin-left: auto; }
.iv-screen { padding: clamp(28px, 6vw, 64px) var(--gutter); }
.iv-col { width: 100%; max-width: 620px; margin-inline: auto; display: grid; gap: 20px; align-content: start; }
.iv-col h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.02; letter-spacing: -.01em; margin: 0; max-width: 16ch; }
.iv-sites, .iv-consent { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.iv-sites > .label, .iv-consent > .label { color: var(--ink); font-size: 15px; }
.iv-center { justify-items: center; text-align: center; }
.iv-live { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 300px); gap: clamp(24px, 4vw, 56px); align-items: start; width: 100%; max-width: 1320px; margin-inline: auto; }
.iv-stage { display: grid; justify-items: center; gap: 14px; text-align: center; min-width: 0; }
.iv-orb { width: min(280px, 62vw); height: auto; display: block; overflow: visible; }
.iv-orb--small { width: 150px; }
.iv-orb .o-faint { fill: none; stroke: var(--line); stroke-width: 1; }
.iv-orb .o-level { fill: none; stroke: #c9ccd4; stroke-width: 1.2; transition: stroke .4s ease; }
.iv-orb .o-wave { fill: none; stroke: #9aa0ad; stroke-width: 1; stroke-dasharray: 2 5; }
.iv-orb .o-moon { fill: var(--ink); }
.iv-orb .o-star { fill: var(--gold); }
.iv-orb .node { fill: #fff; stroke: #9aa0ad; stroke-width: 1.25; transition: fill .4s ease, stroke .4s ease; }
.iv-orb .node.thin { stroke: var(--gold); }
.iv-orb .node.on { fill: var(--ink); stroke: var(--ink); }
.iv-orb .node.now { stroke: var(--accent); stroke-width: 2; }
.iv-live[data-state="speaking"] .o-level { stroke: var(--accent); }
.iv-live[data-state="listening"] .o-level { stroke: var(--ink-2); }
.iv-live[data-state="paused"] .o-moon { opacity: .4; }
@media (prefers-reduced-motion: no-preference) {
  .iv-live[data-state="thinking"] .o-wave, .iv-orb.thinking .o-wave { animation: iv-turn 6s linear infinite; transform-origin: 150px 150px; }
  @keyframes iv-turn { to { transform: rotate(360deg); } }
}
.iv-state { color: var(--muted); min-height: 1.35em; }
.iv-live[data-state="speaking"] .iv-state { color: var(--accent); }
.iv-caption { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; max-width: 26ch; min-height: 3.6em; text-wrap: balance; }
.iv-you { color: var(--muted); font-size: 15px; max-width: 52ch; min-height: 1.5em; }
.iv-type { display: flex; gap: 8px; align-items: flex-end; width: 100%; max-width: 560px; margin-top: 6px; }
.iv-type textarea { min-height: 52px; height: 52px; resize: none; padding: 14px 16px; overflow-y: hidden; border-radius: 12px; }
.iv-type .btn { min-height: 52px; }
.iv-controls { justify-content: center; }
.iv-topics { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.iv-topics li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.iv-topics .st { font-size: 12px; font-weight: 500; }
.iv-topics li.on { color: var(--ink); }
.iv-topics li.on .st { color: #1f6f43; }
.iv-topics li.thin .st, .iv-topics li.now .st { color: var(--accent); }
.iv-topics li.now { color: var(--ink); }
.iv-paste { display: grid; gap: 14px; border-radius: 16px; background: var(--box); padding: 18px; }
.iv-paste > .label { color: var(--ink); font-size: 15px; }
.iv-paste .field > .btn { justify-self: start; }
.iv-pasted { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: #1f6f43; }
.iv-pasted:empty { display: none; }
.iv-pasted .bad { color: var(--bad); }
.iv-log ol, .fi-transcript ol { margin: 0; padding: 0 0 12px 18px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); max-height: 320px; overflow: auto; }
.iv-log b, .fi-transcript b { color: var(--ink); }
.fi-transcript > summary { cursor: pointer; font-size: 14px; font-weight: 500; padding-top: 4px; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .brief-grid { grid-template-columns: minmax(0, 680px); }
  .sketch { display: none; }
}
@media (max-width: 1020px) {
  .iv-live { grid-template-columns: minmax(0, 1fr); }
  .iv-stage { order: 1; }
  .iv-topics { order: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; border: 0; }
  .iv-topics li { grid-template-columns: auto minmax(0, 1fr); gap: 2px 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
  .iv-topics .st { grid-column: 1 / -1; }
  .iv-paste { order: 3; }
}
@media (max-width: 640px) {
  .top-note { display: none; }
  .brief-wrap { padding-top: 8px; }
  form.brief { margin-top: 28px; }
  .q, label.q { font-size: clamp(34px, 10.5vw, 44px); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .wiz-nav { flex-wrap: wrap; }
  .wiz-nav #next, .wiz-nav #submit { flex: 1; }
  .upload { grid-template-columns: 56px minmax(0, 1fr); }
  .upload .thumb { width: 56px; height: 56px; }
  .upload .acts { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
  .iv-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iv-bar .chip { display: none; }
  /* On a phone Ask Nightly sits in the top bar, where it never covers an answer. */
  .ask-launch { position: absolute; top: 10px; bottom: auto; right: var(--gutter); width: 44px; min-height: 44px; padding: 0; justify-content: center; box-shadow: none; }
  .top .chip { margin-right: 52px; }
  .ask-launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
