/* MOOV Social Content Engine :: presentation layer.
 *
 * WHAT THIS IS TRYING TO FEEL LIKE
 *
 * Onboarding, not software. One question per screen, one obvious action,
 * and a visible confirmation the moment anything is chosen. The structural
 * language came off the live SOKC2 page. The brand is MOOV's.
 *
 * THE RULES THIS FILE FOLLOWS
 *
 * 1. One primary action per screen. Everything else is quieter by a full
 *    step: accent fill, then hairline outline, then bare text.
 * 2. Nothing moves more than 16px and nothing takes longer than 260ms.
 *    Transitions are for orientation, not decoration.
 * 3. Touch targets are 48px minimum. Cards are much larger than that.
 * 4. The card never needs to scroll on a laptop. If something does not fit,
 *    something should have been removed.
 *
 * No business logic lives in this file.
 */

:root {
  --bg: #0b1b2b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.14);
  --line-hover: rgba(255, 255, 255, 0.32);
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.5);

  --accent: #00ffe1;
  --accent-ink: #0b1b2b;
  --accent-wash: rgba(0, 255, 225, 0.12);

  --shell-max: 1000px;
  --t: 150ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { box-sizing: border-box; }

/* The `hidden` attribute is a UA rule of the lowest possible specificity, so
 * any class that sets `display` silently defeats it. `.btn` is inline-flex
 * and `.actions` is flex, which is why a hidden button and a hidden action
 * bar both rendered anyway on the broken deploy. Making the attribute win is
 * the fix; every `el.hidden = true` in the controller depends on it. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: #fff;
  font-family: "Case VAR", "Case", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------------- chrome ---------------- */

.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 32px);
}

.hdr__mark { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.hdr__mark span { color: var(--faint); font-weight: 350; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px) clamp(16px, 4vw, 32px) clamp(32px, 6vw, 64px);
}

/* ---------------- the one card ---------------- */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  background: var(--accent-ink);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 3.5vw, 40px);
}

.rail { display: flex; gap: 6px; margin-bottom: 22px; }
.rail__seg {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 240ms var(--ease);
}
.rail__seg.is-done { background: rgba(255, 255, 255, 0.38); }
.rail__seg.is-now { background: var(--accent); }

/* ---------------- orientation row ---------------- */

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  margin-left: -6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: color var(--t);
}
.back:hover { color: #fff; }
.back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* A chip is a receipt for a decision already made, and a way back to it. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t), color var(--t);
}
.chip:hover { border-color: var(--line-hover); color: #fff; }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------- headings ---------------- */

.eyebrow {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.ask {
  margin: 0 0 10px;
  font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 350;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--accent);}

.sub {
  margin: 0 0 26px;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------------- screens and motion ---------------- */

.screen { display: none; }
.screen.is-active { display: block; animation: enterFwd 240ms var(--ease) both; }
.shell.is-back .screen.is-active { animation: enterBack 240ms var(--ease) both; }

@keyframes enterFwd {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes enterBack {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.is-active { animation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------- choices ---------------- */

.pills { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t), transform var(--t);
}
.pill:hover { border-color: var(--line-hover); transform: translateY(-1px); }
.pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pill.is-selected { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

/* Suggestions sit above the answer box, so they read as a menu of answers
 * rather than as navigation. Slightly smaller than a primary choice pill,
 * because picking one is optional. */
.pills--suggest { margin-bottom: 16px; }
.pill--suggest { min-height: 42px; padding: 9px 16px; font-size: 13.5px; font-weight: 500; }
.pill--suggest.is-selected { font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 132px;
  text-align: left;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.card:hover { transform: translateY(-2px); border-color: var(--line-hover); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.card.is-selected { border-color: var(--accent); background: var(--accent-wash); }

/* The confirmation. It is the whole point of clicking. */
.card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 18px;
  right: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: stamp 220ms var(--ease) both;
}
@keyframes stamp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: none; }
}

.card__title { margin: 0 0 7px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; padding-right: 34px; }
.card__body { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.card.is-selected .card__body { color: rgba(255, 255, 255, 0.78); }

/* ---------------- the question ---------------- */

.answer {
  width: 100%;
  min-height: 132px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  color: #fff;
  font: inherit;
  font-size: 17px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color var(--t);
}
.answer::placeholder { color: rgba(255, 255, 255, 0.3); }
.answer:focus { outline: none; border-color: var(--accent); }

/* Optional questions never earn their own screen. They live here, closed. */
.more { margin-top: 14px; }
.more > summary {
  list-style: none;
  display: inline-block;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--faint);
  padding: 6px 0;
  transition: color var(--t);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { color: #fff; }
.more > summary::before { content: "＋ "; }
.more[open] > summary::before { content: "－ "; }

.more__body { display: grid; gap: 14px; margin-top: 12px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; color: var(--faint); }
.field .answer { min-height: 76px; font-size: 15px; }

.help { margin: 14px 0 0; font-size: 12.5px; color: var(--faint); }

/* ---------------- actions ---------------- */

.actions { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.actions__spacer { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--t), transform var(--t), background var(--t);
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: 0.28; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn--ghost { background: transparent; border: 1px solid var(--line); color: #fff; }
.btn--ghost:hover:not(:disabled) { border-color: var(--line-hover); }
.btn--bare { background: transparent; color: var(--faint); padding: 0 12px; min-height: 44px; font-size: 13.5px; font-weight: 350; }
.btn--bare:hover:not(:disabled) { color: #fff; }

/* ---------------- generating ---------------- */

.working { padding: 52px 0 48px; text-align: center; }
.working__dots { display: inline-flex; gap: 8px; margin-bottom: 22px; }
.working__dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.1s ease-in-out infinite;
}
.working__dots i:nth-child(2) { animation-delay: 0.16s; }
.working__dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes pulse { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }

.working__label {
  font-size: 21px;
  font-weight: 350;
  letter-spacing: -0.01em;
  animation: fadeIn 320ms var(--ease);
}
.working__note { margin-top: 8px; font-size: 13.5px; color: var(--faint); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- review ---------------- */

.preview { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }

.preview__art {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.preview__art canvas { width: 100%; height: auto; display: block; }

.preview__copy { min-width: 0; display: flex; flex-direction: column; }
.preview__label { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.preview__text {
  margin: 0 0 18px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  white-space: pre-wrap;
}
.preview__cta {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-wash);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.flag {
  display: block;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.flag strong { color: #fff; }
.flag--warn { border-left-color: #ffb020; }

/* ---------------- developer details, off unless asked for ---------------- */

.dev {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 22px; margin: 0; }
.kv > div { min-width: 0; }
.kv dt { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.kv dd { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.86); overflow-wrap: anywhere; }

.ok { color: var(--accent); }
.bad { color: #ff8a8a; }

.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;
}

/* ---------------- narrow ---------------- */

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .preview { grid-template-columns: 1fr; gap: 20px; }
  .preview__art { max-width: 280px; }
  .stage { align-items: flex-start; padding-top: 8px; }
  .shell { border-radius: 18px; }
  .actions { flex-wrap: wrap; }
  .actions .btn:not(.btn--bare) { flex: 1 1 auto; }
  .actions__spacer { display: none; }
}

@media (max-width: 560px) {
  .hdr { padding: 14px 18px; }
  .stage { padding: 8px 14px 40px; }
  .shell { padding: 20px 18px; border-radius: 16px; }
  .ask { font-size: 25px; }
  .sub { font-size: 15px; margin-bottom: 22px; }
}

/* Both review banners suppressed. Staff never see claim rule warnings. */
#reviewFlag, #sampleFlag { display: none !important; }

/* ==================================================================
 * GUIDED BUILDER, added 2026-09-18
 *
 * The wizard became one scrolling page with progressive reveal, matching
 * the SOKC2 interaction model. Nothing below introduces a new colour, a new
 * typeface, or a new component language. Every rule reuses the tokens and
 * the existing .pill / .card / .answer / .btn vocabulary; these are layout
 * rules for the new step containers only.
 * ================================================================== */

/* A long page scrolls from the top rather than sitting centred. */
.stage { align-items: flex-start; }

.gen-hero { margin-bottom: 26px; }
.gen-hero .ask { margin-bottom: 14px; }

.builder { display: block; }

.step {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  animation: enterFwd 240ms var(--ease) both;
}
.step:first-child { border-top: 0; padding-top: 6px; }

.step__label {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.step__label span { color: rgba(255, 255, 255, 0.28); margin: 0 4px; }
.step__label em { font-style: normal; font-weight: 350; text-transform: none; letter-spacing: 0; }

.step__hint { margin: 16px 0 10px; font-size: 13px; color: var(--faint); }

.field__ask { display: block; margin-bottom: 9px; font-size: 15.5px; font-weight: 600; color: #fff; }
.field__ask span { font-weight: 350; color: var(--faint); }

.answer--short { min-height: 68px; }
.answer--one { min-height: 52px; }

.cards--wrap { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.step--action { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- settings ---------------- */

.settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 48px; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle__track {
  position: relative;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
  flex: none;
}
.toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--t) var(--ease);
}
.toggle input:checked + .toggle__track { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle__track .toggle__knob { transform: translateX(22px); background: var(--accent-ink); }
.toggle input:focus-visible + .toggle__track { outline: 3px solid var(--accent); outline-offset: 3px; }
.toggle__text { font-size: 15px; }

.settings__length { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.settings__legend {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------------- results ---------------- */

.result {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  animation: enterFwd 240ms var(--ease) both;
}

.result__label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.result__title { margin: 0 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

.result__body { font-size: 16px; line-height: 1.62; }
.result__body .post__hook { margin: 0 0 16px; font-size: 19px; font-weight: 600; line-height: 1.32; letter-spacing: -0.01em; }
.result__body p { margin: 0 0 16px; color: rgba(255, 255, 255, 0.86); }
.result__body .post__cta { font-weight: 600; color: #fff; }
.result__body .post__tags { color: var(--faint); font-size: 14.5px; }

.result__aside {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.result__aside .result__label { margin-bottom: 8px; }
.result__aside-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

.result__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.result__status { margin: 12px 0 0; font-size: 13px; color: var(--faint); min-height: 18px; }

/* ---------------- the graphic ---------------- */

.graphic {
  max-width: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.graphic canvas,
.graphic img { width: 100%; height: auto; display: block; }

/* The save menu on iOS is the entire point of the <img>. Nothing here may
 * disable the callout or make the image unselectable. */
.graphic img { -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }

.graphic__source { margin: 10px 0 0; font-size: 12.5px; color: var(--faint); }

.graphic__edit {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  gap: 14px;
}
.graphic__edit .field label { display: block; margin-bottom: 7px; font-size: 13px; color: var(--faint); }
.graphic__edit .btn { justify-self: start; }

@media (max-width: 560px) {
  .result { padding: 20px 18px; }
  .settings { align-items: flex-start; flex-direction: column; gap: 18px; }
  .result__actions .btn,
  .step--action .btn { flex: 1 1 auto; }
  .graphic { max-width: 100%; }
}

/* The graphic controls moved in beside Update Graphic, and every finishing
 * action moved into Ready to post on two lines. 2026-09-18. */
.graphic__edit .result__actions { margin-top: 4px; }
.result__actions--second { margin-top: 12px; }

/* ==================================================================
 * 2026-09-22 :: SELECT, COMMIT, ADVANCE, and the finished post layout
 *
 * Interaction states only. No new colours, type, or components: the edit
 * section reuses .graphic__edit, and every button is the existing .btn.
 * ================================================================== */

/* Auto-advance lands each step with its label clear of the top edge. */
.step,
.result { scroll-margin-top: 16px; }

/* Reduced motion jumps to the next question instead of gliding. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Caption and Graphic, the two groups inside Edit your post. */
.edit__legend {
  margin: 4px 0 -4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.edit__legend ~ .edit__legend {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Start another post has no intro line, so its row sits closer to the label. */
.result__actions--first { margin-top: 0; }

/* ==================================================================
 * 2026-09-22, third pass :: SOKC2 layout parity, Your social graphic down
 *
 * Every number below is SOKC2's own, measured from the live page at 1440
 * and 390: card padding, label and intro spacing, preview width, the
 * editor panel, button spacing, the Ready to post bleed, and the centred
 * final section. Colours, type family, and borders stay MOOV's tokens.
 * Scoped to #resultGraphic so nothing above it moves.
 * ================================================================== */

#resultGraphic { padding: 30px 22px 26px; border-radius: 18px; }
#resultGraphic > .result__label { margin: 0 0 10px; font-size: 13px; }
#resultGraphic > .sub { max-width: none; margin: 0 0 20px; font-size: 15px; line-height: 1.6; }
#resultGraphic > #graphicStatus { margin: 0; min-height: 18px; }

#resultGraphic .graphic { max-width: 480px; margin: 20px 0; border-radius: 14px; }
#resultGraphic .graphic__source { margin: 10px 0 0; font-size: 13px; font-weight: 600; }

#resultGraphic .graphic__edit {
  display: block;
  margin-top: 20px;
  padding: 18px;
  border-radius: 14px;
}
#resultGraphic .graphic__edit .field { margin: 0 0 14px; }
#resultGraphic .graphic__edit .field label { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
#resultGraphic .graphic__edit .answer {
  min-height: 0;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px;
  line-height: normal;
}
#resultGraphic .graphic__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
#resultGraphic .btn { padding: 0 26px; font-size: 15px; }
#resultGraphic #editStatus { margin: 8px 0 0; min-height: 18px; }

/* Ready to post lines up with the editor and Start another post. */
.publish {
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.publish__label,
.final__label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.publish__intro { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.publish__actions { display: flex; flex-wrap: wrap; gap: 6px; }
#resultGraphic .publish__actions .btn { flex: 0 1 auto; padding: 0 11px; font-size: 13px; white-space: nowrap; }
.publish__status { margin: 12px 0 0; min-height: 18px; font-size: 13px; color: var(--faint); }

/* Start another post, centred, the last thing on the page. */
.final {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  text-align: center;
}
.final__label { margin-bottom: 14px; }
.final__actions { display: flex; justify-content: center; }

@media (max-width: 560px) {
  #resultGraphic { padding: 24px 20px 20px; }
  #resultGraphic .graphic { max-width: 100%; }
  #resultGraphic .graphic__edit { padding: 14px; }
  #resultGraphic .graphic__actions { flex-direction: column; align-items: stretch; }
  #resultGraphic .graphic__actions .btn { width: 100%; }
  /* The bleed is cancelled on a phone, as in SOKC2, so it cannot overshoot. */
  .publish { margin-left: 0; margin-right: 0; }
  .publish__actions { flex-direction: column; align-items: stretch; }
  #resultGraphic .publish__actions .btn { width: 100%; padding: 0 26px; font-size: 15px; }
  .final { padding: 16px; }
  #resultGraphic .final__actions .btn { width: 100%; }
}

/* SOKC2's 13px labels sit on a 15px line and its fields on a 16px line.
 * Matching those keeps the stack of fields the same height as SOKC2's. */
#resultGraphic > .result__label,
#resultGraphic .graphic__source,
#resultGraphic .graphic__edit .field label,
.publish__label,
.final__label { line-height: 15px; }
#resultGraphic .graphic__edit .answer { line-height: 16px; }
