/* Launch's first make (demo). The site itself is drawn with Layout's component-base.css and packages. */
body.first-make { min-height: 100dvh; display: flex; flex-direction: column; }
body.first-make:has(.made:not([hidden])) .site-header { margin-bottom: 0; }

/* Intake: matches the front page's centered question flow, with the lower sections underneath. */
.intake-wrap { display: grid; justify-items: center; }
.intake-wrap .front-draft-stepper { margin-bottom: 1.25rem; }
.intake-step { width: min(36rem, 100%); display: grid; justify-items: center; padding: .5rem 0 .5rem; text-align: center; }
.intake-step[hidden] { display: none; }
.intake-step .front-entry-line { margin-bottom: 1.5rem; }
.intake-combo { position: relative; width: 100%; }
.intake-combo:focus-within { z-index: 40; }
.intake-input { width: 100%; min-height: 3.2rem; padding-inline: 1.1rem; font-size: 1.1rem; }
.intake-input:focus { border-color: #7a9c65; box-shadow: none; outline: 2px solid color-mix(in srgb, #7a9c65 32%, transparent); }
.intake-options { left: 0; right: 0; text-align: left; }
.intake-options li[data-occupation]:hover { background: color-mix(in srgb, #7a9c65 18%, transparent); }
.intake-options .intake-none { color: var(--phrond-text-muted); cursor: default; }
.intake-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; width: 100%; }
.intake-next { min-height: 3.2rem; padding-inline: 1.5rem; font-size: 1.05rem; font-weight: 600; box-shadow: none; }
@media (max-width: 760px) {
  .intake-step { padding-top: 1.25rem; }
  .intake-step .front-entry-question { font-size: clamp(1.4rem, 7.4vw, 1.8rem); }
  .intake-actions .fern-button { flex: 1 1 auto; }
}

/* First make: the site, full width, with the few controls above it. */
.made { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.made[hidden] { display: none; }
.made-bar { position: sticky; top: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 12px 20px; background: var(--fern-toolbar); border-bottom: 1px solid var(--fern-border); }
.made-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.made-who strong { font-size: 1.1rem; }
.made-who span { color: var(--fern-text-muted); }
.made-change { padding: 0; color: var(--fern-accent); background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.made-moods { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.made-mood { display: grid; justify-items: center; gap: 4px; padding: 5px 6px 4px; color: var(--fern-text-muted); background: none; border: 2px solid transparent; border-radius: var(--fern-radius-color); font: inherit; font-size: .72rem; cursor: pointer; }
.made-mood:hover { border-color: var(--fern-border); }
.made-mood[aria-checked="true"] { color: var(--fern-text); border-color: var(--fern-accent); font-weight: 700; }
.made-mood-swatches { display: flex; width: 42px; height: 20px; overflow: hidden; border-radius: var(--fern-radius-swatch); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.made-mood-swatches span { flex: 1; }
.made-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
/* The very, very obvious reroll button. */
.made-reroll { min-height: 48px; padding-inline: 24px; font-size: 1.05rem; box-shadow: 0 6px 18px color-mix(in srgb, var(--fern-accent) 40%, transparent); }
.made-reroll .fern-icon { width: 26px; height: 26px; transition: transform .5s ease; }
.made.is-rolling .made-reroll .fern-icon { transform: rotate(360deg); }
.made-stage { position: relative; flex: 1; padding: 24px; background: var(--fern-stage); }
.made .preview-viewport { width: 100%; max-width: 1400px; min-height: 600px; margin: 0 auto; container-type: inline-size; background: var(--preview-bg); color: var(--preview-ink); box-shadow: 0 20px 60px rgb(0 0 0 / .18); border-radius: 6px; overflow: hidden; transition: opacity .2s; }
.made.is-rolling .preview-viewport { opacity: .55; }
.made-making { position: absolute; inset: 24px; display: grid; place-items: center; color: var(--fern-text-muted); font-size: 1.3rem; }
.made.is-made .made-making { display: none; }
.made:not(.is-made) .preview-viewport { visibility: hidden; }
#mock-site a { cursor: default; }

/* Kept out of sight, but laid out at desktop width so its look matches a desktop page. */
.launch-roller { position: fixed; left: -20000px; top: 0; width: 1400px; height: 900px; border: 0; visibility: hidden; pointer-events: none; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 5; max-width: 320px; padding: 10px 13px; color: var(--phrond-text-primary); background: var(--dash-accent); border: 1px solid var(--dash-accent); border-radius: var(--radius-control); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .made-moods { order: 3; width: 100%; padding-top: 6px; border-top: 1px solid var(--fern-border); }
}
@media (max-width: 640px) {
  .made-actions { width: 100%; margin-left: 0; flex-wrap: wrap; justify-content: stretch; }
  .made-actions .fern-button { flex: 1; }
  .made-stage { padding: 12px; }
}
/* Phones: a miniature of the desktop site (fitMiniature in demo.js) and a compact bar, so the
   site gets the screen. Launch itself isn't meant for phones; this is the stopgap. */
@media (max-width: 760px) {
  .made-bar { gap: 8px; padding: 8px 12px; }
  .made-who strong { font-size: 1rem; }
  .made-moods { order: 3; width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-top: 4px; scrollbar-width: none; }
  .made-mood { flex: none; padding: 3px 4px 2px; font-size: .65rem; }
  .made-mood-swatches { width: 34px; height: 14px; }
  .made-actions { width: 100%; margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .made-actions .fern-button { min-height: 42px; padding-inline: 10px; font-size: .9rem; line-height: 1.15; white-space: normal; }
  .made-reroll { box-shadow: none; }
  .made-reroll .fern-icon { width: 20px; height: 20px; }
  .made-stage { padding: 10px; }
  .made-mini { overflow: hidden; border-radius: 6px; box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
  .made .made-mini .preview-viewport { width: 1280px; max-width: none; min-height: 0; transform: scale(var(--mini-scale, .3)); transform-origin: 0 0; box-shadow: none; border-radius: 0; pointer-events: none; }
}
