/* Paper Studio layout (spec 4.2 and 4.3). Tokens come from tokens.css. */

/* hidden always hides, even where a rule sets display (an empty image must never show). */
[hidden] {
  display: none !important;
}
/* Self-hosted IBM Plex (spec 4.2, A-7). Files and licence are in web/fonts/. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/IBMPlexSans-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/IBMPlexSans-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/IBMPlexMono-500.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.375rem;
}

@media (min-width: 880px) {
  h1 {
    font-size: 2.5rem;
  }
}

p {
  margin: 0 0 16px;
  max-width: 68ch;
}

.column {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px;
}

.site {
  padding: 16px 0;
}

.brand {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: inherit;
}

a:hover {
  color: var(--accent-hover);
}

/* A link alone in its paragraph (for example "Home") is a 44 px target across as well as down (spec 11).
   Links inside a sentence are left alone, so body text does not reflow. */
p > a:only-child {
  min-width: 44px;
  justify-content: center;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lede {
  font-size: 1.125rem;
}

.small {
  font-size: 0.875rem;
}

.muted {
  color: var(--muted);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

textarea,
input[type="text"],
input[type="email"],
#ads-form select {
  width: 100%;
  min-height: 44px;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}

.stage {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

button,
.btn-primary {
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--line);
  background: var(--panel);
}

.prices {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.875rem;
  color: var(--muted);
}

.status {
  min-height: 1.6em;
  margin: 16px 0 0;
}

.still-frame {
  margin: 0 0 16px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}

.still-frame img,
.still-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.disclosure {
  background: var(--code-bg);
  border-radius: 8px;
  padding: 8px 12px;
}

.reply {
  border-left: 3px solid var(--code-bg);
  padding: 4px 0 4px 12px;
}

.paths {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.path.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.path.primary:disabled {
  background: var(--panel);
  color: var(--muted);
  border-color: var(--line);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Waiting screen (spec 5.4): the frame keeps its square size before any image exists. */
#image-frame {
  aspect-ratio: 1;
  max-width: 512px;
  margin-left: auto;
  margin-right: auto;
}

#image-frame img,
.wait-art {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.wait-art svg {
  width: 100%;
  height: auto;
  display: block;
  filter: blur(var(--blur, 24px));
  transition: filter 2s linear;
}

#image-result {
  aspect-ratio: 1;
}

@media (prefers-reduced-motion: reduce) {
  .wait-art svg {
    filter: none;
    transition: none;
  }
}


/* Single homepage (owner, 2026-11-06): sticky prompt bar, sections, examples, steps and questions. */
.site-nav a {
  margin-left: 12px;
  font-size: 0.875rem;
}

.prompt-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
}

.prompt-bar p {
  margin: 0;
}

.band {
  margin-top: 32px;
}

.examples {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 12px;
}

.example-prompt {
  margin: 0;
  font-style: italic;
}

.steps {
  padding-left: 1.4em;
}

.faq dt {
  font-weight: 600;
  margin-top: 12px;
}

.faq dd {
  margin: 4px 0 0;
}

.site-foot {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

@media (min-width: 640px) {
  .examples {
    grid-template-columns: repeat(3, 1fr);
  }
}

.example figure {
  margin: 0;
}

.example video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.use-prompt {
  margin-top: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  min-height: 44px;
}

/* Section anchors land below the sticky prompt bar. */
section[id] {
  scroll-margin-top: 72px;
}

@media (max-width: 479px) {
  .prompt-bar p {
    display: none;
  }
}

.example figcaption {
  margin-top: 8px;
}

/* Homepage first screen: one looping example sits with the headline (team review, 2026-11-07). */
.hero-proof {
  margin: 0 0 1rem;
}
.hero-proof video {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border: 1px solid var(--line);
}
.hero-proof figcaption {
  margin-top: 0.5rem;
}
@media (min-width: 880px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2rem;
    align-items: start;
  }
  .hero-intro {
    grid-column: 1;
  }
  .hero-proof {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }
  .hero-proof video {
    max-width: 540px;
  }
  .hero > form,
  .hero > p {
    grid-column: 1;
  }
}

/* Desktop gap, item 1: the look choices under the prompt form (hidden until /v1/looks answers). */
.looks {
  margin: 1rem 0 0;
}
.look-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.look-chip {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.look-chip:hover {
  border-color: var(--accent);
}
.look-chip:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
@media (min-width: 880px) {
  .hero > .looks {
    grid-column: 1;
  }
}


/* Round 1 review (2026-11-08): the header wraps cleanly on phones; prices read as prices. */
.site { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; }
#edit-form select, #edit-form input[type="range"] { min-height: 44px; }
@font-face { font-family: "Funkbox Edit"; font-weight: 600; font-display: swap; src: url("fonts/Oswald-SemiBold.ttf") format("truetype"); }
#edit-preview, #edit-picture { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; border-radius: 8px; }
#edit-preview-box { margin: 12px 0; padding: 8px 0; background: var(--panel); }
#edit-preview { max-height: 40vh; }
@media (min-height: 700px) { #edit-preview-box { position: sticky; top: 0; z-index: 1; } }
details > summary { min-height: 44px; display: flex; align-items: center; }
.price { font-size: 2rem; font-weight: 600; }

/* Redesign (owner, 2026-11-08): a bigger first screen, a ribbon of example stills that moves, and a band of what
   you can make. Motion stops for people who ask for reduced motion. */
.eyebrow { font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
.hero-intro h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.loop-word { display: inline-block; position: relative; }
.loop-word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 0.12em;
  background: currentColor; transform-origin: left; animation: loop-underline 1.2s ease-out 1 forwards;
}
@keyframes loop-underline {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
.ribbon { overflow: hidden; margin: 24px 0; border-radius: 8px; }
.ribbon-track { display: flex; gap: 12px; width: max-content; padding-right: 12px; animation: ribbon-move 28s linear infinite; }
.ribbon.paused .ribbon-track { animation-play-state: paused; }
.ribbon-track img { width: 220px; height: 220px; object-fit: cover; border-radius: 8px; }
@keyframes ribbon-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tiles { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; grid-template-columns: 1fr; }
.tile { display: grid; gap: 4px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon-track, .loop-word::after { animation: none; }
}

/* Staff review (2026-11-08): a clearer first screen for phones and desktop. Colours come from tokens only. */
html {
  scroll-padding-top: 72px;
  color-scheme: light dark;
}
.hero-intro h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
.loop-word {
  color: var(--accent);
}
@media (max-width: 639px) {
  .hero-proof video {
    max-width: 200px;
  }
  .ribbon-track img {
    width: 160px;
    height: 160px;
  }
  .stage .btn-primary {
    width: 100%;
  }
}
@media (min-width: 880px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.picture-add {
  margin-top: 16px;
}
.picture-add summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}
.picture-add[open] summary {
  margin-bottom: 8px;
}
input[type="file"] {
  min-height: 44px;
  max-width: 100%;
  color: var(--ink);
}
/* 24 px is the WCAG 2.2 AA minimum for a pointer target (2.5.8); it was 20 px. */
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 24px;
  height: 24px;
  flex: none;
}

/* The plan chat (web/plan.html): a thread of messages, a composer at the bottom, and a + menu for media. */
.chat-page { padding-bottom: 8px; }
.chat { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.msg { max-width: min(640px, 92%); padding: 12px 14px; border-radius: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.msg.assistant { align-self: flex-start; background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.msg .step-list { margin: 8px 0 0; padding-left: 20px; white-space: normal; }
.msg .option-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; white-space: normal; }
.msg a { color: var(--accent); }
.msg.suggest { width: min(640px, 92%); white-space: normal; }
.msg.suggest label { margin: 10px 0 0; }
.msg.suggest input { display: block; margin-top: 4px; font-weight: 400; }
.composer-wrap { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; border-top: 1px solid var(--line); }
.composer { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { flex: 1; min-height: 44px; resize: vertical; }
.round-btn { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.attach-menu { position: absolute; bottom: 64px; left: 0; display: grid; gap: 4px; min-width: 220px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.attach-menu button, .attach-menu a { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 8px 10px; text-align: left; text-decoration: none; background: none; border: 0; border-radius: 8px; color: var(--ink); cursor: pointer; font: inherit; }
.attach-menu button:hover, .attach-menu a:hover { background: var(--bg); }
.composer-wrap { position: sticky; }
.home-plan-link { margin-top: 8px; }

/* The reel page (web/reel.html): stacked cards, and form fields that match each other. */
.reel-page section, .reel-page form.card, .reel-page fieldset { margin: 0 0 16px; min-width: 0; }
.reel-page select, .reel-page input[type="text"], .reel-page input[type="number"] { display: block; width: 100%; min-height: 44px; margin-bottom: 12px; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.reel-page .option-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.reel-page .deck-list { padding-left: 20px; }
.reel-page .deck-row { margin-bottom: 8px; }
/* The project's clips and photos: a thumbnail (a photo picked on this visit) or a labelled tile, with its name under it. */
.reel-page .media-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; padding: 0; list-style: none; }
.reel-page .media-list li { display: grid; gap: 4px; justify-items: start; }
/* A control that is off (the tempo while a shot has a voiced line, a voiced line while a tempo is set) looks off. */
.reel-page input:disabled, .reel-page select:disabled { background: var(--bg); color: var(--muted); border-style: dashed; cursor: not-allowed; }

/* The reel page's shots, end card and result. */
.reel-page input[type="color"] { display: block; width: 64px; min-height: 44px; margin-bottom: 12px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.reel-page fieldset.card { border: 1px solid var(--line); }
.reel-page legend { font-weight: 600; margin-bottom: 8px; }
.reel-page .sub-title { margin-top: 24px; }
.reel-page .shot-remove { margin-top: 8px; }
.reel-page video { display: block; width: 100%; max-width: 360px; height: auto; margin-bottom: 16px; border-radius: 8px; }

/* The poster page (web/poster.html): the planned words and look as labelled fields, grouped in fieldsets. */
.poster-page fieldset { margin: 0 0 16px; padding: 12px 16px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; }
.poster-page legend { font-weight: 600; padding: 0 4px; }
.poster-page fieldset.plate { margin-top: 12px; }
.poster-page #poster-picture, .poster-page #sheet-picture { display: block; max-width: 100%; height: auto; margin: 16px 0; }
.poster-page .sheet-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.poster-page #sheet-confirm button { margin: 0 8px 8px 0; }
.poster-page select { display: block; width: 100%; min-height: 44px; margin-bottom: 12px; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.poster-page .field-error { margin: 4px 0 12px; color: var(--danger); }
.poster-page input[aria-invalid="true"] { border-color: var(--danger); }

/* The tool panel (web/plan.html): a full-screen dialog over the chat, with the tool page in a frame. */
.tool-panel { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--bg); }
.tool-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tool-panel-head h2 { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 1.1rem; }
.tool-panel .path { min-width: 44px; min-height: 44px; }
.tool-panel-frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }

/* Create (owner decision 4, 2026-11-11): a menu in the header, not a new page. It lists the tool pages. */
.create-menu { position: relative; }
.create-menu > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--accent); }
.create-menu > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.create-list { position: absolute; top: 100%; left: 0; z-index: 5; display: grid; gap: 2px; min-width: min(17rem, 66vw); max-height: calc(100vh - 96px); overflow-y: auto; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.create-list a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.create-list a:hover { background: var(--bg); }
/* The menu's "In the chat" group: each item fills the request box with a starter prompt, with its price after it. */
.create-group { margin: 6px 0 0; padding: 8px 10px 4px; border-top: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.create-chat { display: grid; gap: 2px; }
.create-chat button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.create-chat button:hover { background: var(--bg); }
.create-chat button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.create-price { flex: 0 0 auto; font-size: 0.875rem; color: var(--muted); }

/* Front page (owner decisions 1 to 7, 2026-11-11): example chips fill the request box, and a visually hidden heading. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.example-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.example-chip { min-height: 44px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.example-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.home-samples { margin: 16px 0 0; }
.sample-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .sample-row { grid-template-columns: repeat(3, 1fr); } }
.sample-figure { margin: 0; }
.sample-figure.portrait video { aspect-ratio: 9 / 16; }
.sample-figure video, .sample-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 8px; background: var(--panel); }
/* A real photo with a line of words on top, as a poster would show it (not a claim that the photo is ours). */
.sample-frame { position: relative; }
.sample-photo img { aspect-ratio: 3 / 2; object-fit: cover; }
.sample-words { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 8px 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.sample-card { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 4px; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.sample-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* The photo added to the chat: a thumbnail, with an X in its corner (owner, 2026-11-11). */
.picture-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 0; }
.picture-thumb { position: relative; flex: none; width: 96px; height: 96px; }
.picture-thumb canvas { display: block; width: 96px; height: 96px; border-radius: 8px; border: 1px solid var(--line); }
.picture-tile { display: grid; place-items: center; width: 96px; height: 96px; padding: 4px; overflow: hidden; overflow-wrap: anywhere; text-align: center; font-size: 0.75rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.picture-remove { position: absolute; top: -12px; right: -12px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.picture-remove span { display: grid; place-items: center; width: 26px; height: 26px; margin: 9px; border-radius: 50%; background: var(--ink); color: var(--panel); font-size: 18px; line-height: 1; }
.picture-remove:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Honeypot (owner, 2026-11-11): one hidden field in the chat form. People never see it; form-filling bots fill it. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Working bar (owner, 2026-11-11): the indicator while a video is made. It moves, and under reduced motion it stays
   still at a visible partial fill. The text above it is the only live region. */
.work-line { display: block; }
.working-bar { position: relative; height: 6px; margin: 10px 0 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.working-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; border-radius: inherit; background: var(--accent); animation: working-slide 1.6s ease-in-out infinite; }
@keyframes working-slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.work-time { margin: 0; }
/* Where the make is (BACKLOG 13): "In line" or "Making it", a label above the line. */
.work-phase { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.85em; font-weight: 600; }
/* The plan card's free preview (BACKLOG 3): the still, then the 2-second clip, at the card's width. */
.plan-preview { margin: 10px 0; }
.plan-preview-media { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  .working-bar::after { animation: none; width: 100%; opacity: 0.35; }
}


/* Touch target (retreat check 2026-11-24): the project picker in the chat was 18 px tall. */
#plan-project { min-height: 44px; }

/* The preview page's length choice: a full-size control, like the other form fields. */
#credit-length { display: block; width: 100%; max-width: 22rem; min-height: 44px; margin-bottom: 16px; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }

/* The same control beside the PayPal button. */
#buy-length { display: block; width: 100%; max-width: 22rem; min-height: 44px; margin-bottom: 16px; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }

/* The owner's milestone dashboard (web/dashboard.html). Chart colours come from tokens only. */
.chart { display: block; width: 100%; max-width: 480px; height: auto; overflow: visible; margin: 0 0 8px; }
.chart-grid { stroke: var(--line); stroke-width: 1; opacity: 0.5; }
.chart-text { fill: var(--muted); font-size: 12px; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.chart-target { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.chart-hit { fill: none; pointer-events: all; }
.progress { width: 100%; accent-color: var(--accent); }
.off-track { border-color: var(--warn); color: var(--warn); }
.table-scroll { overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
/* BACKLOG 4: the format picker, a radio group with 44px targets. */
#format-choice { border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; min-width: 0; }
#format-choice p { margin: 0; display: flex; align-items: center; gap: 8px; }
#format-choice input[type="radio"] { width: 24px; height: 24px; margin: 10px 0; flex: none; }
#format-choice label { display: inline-flex; align-items: center; min-height: 44px; }
