/* Parcours IA : progression explicite, sans toucher aux états métier. */
.progressive-creation { min-width: 0; margin-block: 20px; color: var(--creation-ink); }
.progressive-creation ol { display: grid; gap: 8px; padding-inline-start: 22px; }
.progressive-creation li { padding: 8px; border-bottom: 1px solid var(--creation-border); overflow-wrap: anywhere; }
.progressive-creation li span { display: block; color: var(--creation-muted); font-size: 13px; }
.progressive-creation [data-progressive-actions] { margin-block: 16px; }
.progressive-creation #keepPartialCreationDraft { max-width:100%; white-space:normal; min-height:44px; margin-block-start:12px; }
.progressive-creation iframe { width: 100%; height: min(65vh, 640px); border: 1px solid var(--creation-border); background: white; }
.progressive-creation iframe[hidden] { display: none; }
.progressive-creation[hidden] { display: none !important; }
#briefProposalSummary .plan-head > label { display: grid; gap: 6px; margin: 12px 0; font-weight: 650; color: var(--ink); }
#briefProposalSummary #planSiteName { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
#briefProposalSummary #planSiteName:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.creation-budget-notice { color: var(--creation-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#view-launch .create-layout[data-stage="generating"],
#view-launch .create-layout[data-stage="proposal"] { grid-template-columns: minmax(0, 1fr); }
#view-launch .create-layout:is([data-stage="generating"],[data-stage="proposal"]) > .create-plan {
  grid-column: 1 / -1; width: 100%; min-width: 0; max-width: none;
  max-height: none; height: auto; overflow: visible; position: static;
}
#view-launch .create-layout:has(#progressiveCreation) #briefGenerationWait { display: none; }
#view-launch .progressive-creation {
  display: grid; grid-template-columns: minmax(180px,.4fr) minmax(0,1fr);
  grid-template-areas: "title title" "status status" "steps preview" "actions preview";
  gap: 12px 20px; align-items: start;
}
#view-launch .progressive-creation > h3 { grid-area: title; margin: 0; }
#view-launch .progressive-creation > p { grid-area: status; margin: 0; }
#view-launch .progressive-creation > ol { grid-area: steps; margin: 0; }
#view-launch .progressive-creation > [data-progressive-actions] { grid-area: actions; margin: 0; }
#view-launch .progressive-creation > iframe { grid-area: preview; min-height: 240px; height: min(60vh,560px); }
@media (max-width: 760px) {
  #view-launch .progressive-creation { grid-template-columns: minmax(0,1fr); grid-template-areas: "title" "status" "preview" "actions" "steps"; }
}
#view-launch {
  --creation-ink: #24352f;
  --creation-muted: #5d6d64;
  --creation-accent: #315d58;
  --creation-accent-soft: #e8efea;
  --creation-paper: #f7f7f1;
  --creation-border: #cdd7ce;
}
#view-launch .pc-quick-card,
#view-launch .create-brief {
  color: var(--creation-ink);
}
#view-launch:not(.pc-detailed) .creation-progress {
  display: none;
}
#view-launch .pc-quick-card:has(.pc-quick-step[data-pc-step="4"]:not([hidden])) .pc-quick-actions {
  position: sticky;
  bottom: 0;
  z-index: 6;
  margin-inline: -12px;
  padding: 11px 12px max(11px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--creation-border);
  background: color-mix(in srgb, var(--creation-paper) 94%, transparent);
  backdrop-filter: blur(8px);
}
#view-launch .pc-quick-step[hidden],
#view-launch [data-ci-identity-view][hidden] {
  display: none !important;
}
#view-launch .create-brief > [hidden],
#view-launch #creationPreparation[hidden],
#view-launch .creation-composition-actions[hidden],
#view-launch .creation-model-summary[hidden] {
  display: none !important;
}
#view-launch .creation-step-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 14px 0 18px;
  padding: 5px;
  border: 1px solid var(--creation-border);
  border-radius: 10px;
  background: var(--creation-paper);
}
#view-launch .creation-step-nav button {
  min-height: 40px;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--creation-muted);
  background: transparent;
  font: 650 13px/1.2 "Athern Geist", Geist, sans-serif;
  cursor: pointer;
}
#view-launch .creation-step-nav button[aria-current="step"] {
  border-color: var(--creation-border);
  color: var(--creation-ink);
  background: hsl(40 24% 98%);
  box-shadow: 0 1px 2px rgb(35 53 47 / 8%);
}
#view-launch .creation-step-nav button:focus-visible,
#view-launch .creation-progress button:focus-visible {
  outline: 3px solid #668c75;
  outline-offset: 2px;
}
#view-launch .creation-step-nav-separator {
  width: 17px;
  height: 1px;
  flex: 0 0 17px;
  background: var(--creation-border);
}
#view-launch .pc-identity-progress-note {
  max-width: 62ch;
  margin: -5px 0 15px;
  color: var(--creation-muted);
  font-size: 13px;
  line-height: 1.5;
}
#view-launch .creation-identity-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}
#view-launch .creation-identity-actions .button {
  min-height: 44px;
}
#view-launch .pc-quick-step[data-pc-step="4"] .ci-heading {
  margin-bottom: 14px;
}
#view-launch .pc-quick-step[data-pc-step="4"] .ci-heading h2 {
  font-size: clamp(23px, 2.3vw, 30px);
}
#view-launch .pc-quick-step[data-pc-step="4"] .ci-choice-group {
  margin-bottom: 0;
}
#view-launch .pc-quick-step[data-pc-step="4"] .ci-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
#view-launch .pc-quick-step[data-pc-step="4"] .ci-option {
  min-height: 62px;
  padding: 11px;
}
#view-launch .pc-quick-step[data-pc-step="4"] .ci-type-sample {
  gap: 4px;
}
#view-launch .pc-quick-step[data-pc-step="4"] .ci-type-sample strong {
  font-size: clamp(17px, 1.8vw, 21px);
}
#view-launch .pc-quick-step[data-pc-step="4"] .ci-footnote {
  margin-top: 12px;
}
#view-launch .creation-progress {
  scroll-margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
#view-launch .creation-progress li {
  min-width: 0;
}
#view-launch .creation-progress button {
  display: grid;
  width: 100%;
  min-height: 62px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--creation-border);
  border-radius: 9px;
  color: var(--creation-muted);
  background: var(--creation-paper);
  text-align: left;
  cursor: pointer;
}
#view-launch .creation-progress button[aria-current="step"] {
  border-color: var(--creation-accent);
  color: var(--creation-ink);
  background: var(--creation-accent-soft);
  box-shadow: inset 0 0 0 1px var(--creation-accent);
}
#view-launch .creation-progress-index {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 700 11px/1 ui-monospace, monospace;
}
#view-launch .creation-progress-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
#view-launch .creation-progress-copy strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.25;
}
#view-launch .creation-progress-copy small {
  color: var(--creation-muted);
  font-size: 10px;
  line-height: 1.3;
}
#view-launch #creationPreparation {
  margin: 0 0 24px;
  padding: 17px;
  border: 1px solid var(--creation-border);
  border-radius: 12px;
  background: var(--creation-paper);
}
#view-launch #creationPreparation > h2 {
  margin: 0 0 6px;
  font-size: 19px;
}
#view-launch #creationPreparation > p {
  max-width: 70ch;
  margin: 0 0 14px;
  color: var(--creation-muted);
  font-size: 13px;
  line-height: 1.5;
}
#view-launch #creationPreparation > details {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--creation-border);
  border-radius: 8px;
  background: var(--creation-paper);
}
#view-launch #creationPreparation > details > summary {
  min-height: 38px;
  align-content: center;
  color: var(--creation-accent);
  font-weight: 650;
  cursor: pointer;
}
#view-launch .creation-composition-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--creation-border);
}
#view-launch .creation-composition-actions p {
  max-width: 56ch;
  margin: 0;
  color: var(--creation-muted);
  font-size: 12px;
  line-height: 1.5;
}
#view-launch .creation-composition-actions .button,
#view-launch .creation-model-summary .button {
  min-height: 44px;
  flex: 0 0 auto;
}
#view-launch .creation-model-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 17px;
  padding: 12px 14px;
  border: 1px solid var(--creation-border);
  border-radius: 9px;
  background: var(--creation-paper);
}
#view-launch .creation-model-summary > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}
#view-launch .creation-model-label {
  color: var(--creation-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#view-launch .creation-model-summary strong {
  overflow-wrap: anywhere;
  color: var(--creation-ink);
  font-size: 13px;
  line-height: 1.4;
}
#view-launch #creationComposition {
  min-width: 0;
}
#view-launch .create-layout[data-stage="brief"] .creation-progress [data-creation-stage="review"] {
  opacity: .68;
}
#view-launch .create-layout[data-stage="proposal"] .creation-progress [data-creation-stage="review"],
#view-launch .create-layout[data-stage="created"] .creation-progress [data-creation-stage="review"] {
  opacity: 1;
}
#view-launch .creation-review-note {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-left: 3px solid var(--creation-accent);
  color: var(--creation-ink);
  background: var(--creation-accent-soft);
  font-size: 13px;
  line-height: 1.5;
}

:root[data-theme="dark"] #view-launch {
  --creation-ink: #e2e9e2;
  --creation-muted: #b7c3b9;
  --creation-accent: #a8c4ad;
  --creation-accent-soft: #303d34;
  --creation-paper: #252c28;
  --creation-border: #505d54;
}
:root[data-theme="dark"] #view-launch .creation-step-nav button[aria-current="step"] {
  background: #333d36;
}
:root[data-theme="dark"] #view-launch .creation-step-nav button {
  color: var(--creation-muted);
}
:root[data-theme="dark"] #view-launch .creation-progress button[aria-current="step"] {
  background: var(--creation-accent-soft);
}

@media (max-width: 700px) {
  #view-launch .creation-step-nav {
    width: 100%;
    justify-content: stretch;
  }
  #view-launch .creation-step-nav button {
    flex: 1 1 0;
    padding-inline: 9px;
    font-size: 12px;
  }
  #view-launch .creation-step-nav-separator {
    width: 8px;
    flex-basis: 8px;
  }
  #view-launch .pc-quick-step[data-pc-step="4"] .ci-options {
    grid-template-columns: minmax(0, 1fr);
  }
  #view-launch .pc-quick-card:has(.pc-quick-step[data-pc-step="4"]:not([hidden])) .pc-quick-actions {
    margin-inline: -10px;
    padding-inline: 10px;
  }
  #view-launch .creation-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  #view-launch .creation-progress button {
    min-height: 58px;
    padding: 8px;
  }
  #view-launch #creationPreparation {
    padding: 13px;
  }
  #view-launch .creation-composition-actions {
    align-items: stretch;
    flex-direction: column;
  }
  #view-launch .creation-composition-actions .button,
  #view-launch .creation-model-summary .button {
    width: 100%;
  }
  #view-launch .creation-model-summary {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 390px) {
  #view-launch .creation-step-nav {
    gap: 3px;
    padding: 3px;
  }
  #view-launch .creation-step-nav button {
    min-height: 42px;
    padding-inline: 6px;
  }
  #view-launch .creation-step-nav-separator {
    width: 5px;
    flex-basis: 5px;
  }
  #view-launch .creation-progress-copy small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #view-launch .creation-progress button,
  #view-launch .creation-step-nav button {
    scroll-behavior: auto;
    transition: none;
  }
}

/* Bound the catalogue, not the type: desktop actions stay near the content.
   Phones retain ordinary vertical flow, without a fixed action overlay. */
@media (min-width: 701px) {
  #view-launch #briefStepper { display: none; }
  #view-launch .create-layout[data-stage="brief"] > .create-brief {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 270px);
    min-height: 300px;
    overflow: hidden;
  }
  #view-launch .creation-brief-fields {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
  }
  #view-launch .creation-brief-fields[hidden] { display: none; }
  #view-launch .creation-brief-scroll {
    overflow-y: auto;
    min-height: 0;
    padding: 3px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }
  #view-launch .creation-brief-fields #generateSite { flex-shrink: 0; }
  #view-launch #creationPreparation:not([hidden]) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 0;
  }
  #view-launch #creationComposition {
    overflow-y: auto;
    min-height: 0;
    scrollbar-gutter: stable;
  }
  #view-launch .creation-composition-actions { flex-shrink: 0; }
  #view-launch .pc-quick-step[data-pc-step="4"] .ci-heading { display: none; }
  #view-launch .pc-quick-step[data-pc-step="4"] #creationIdentity {
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding: 0;
  }
  #view-launch .create-layout[data-stage="brief"] {
    grid-template-columns: minmax(0, 1fr);
  }
  #view-launch .create-layout[data-stage="brief"] > .create-plan {
    display: none;
  }
  #view-launch .create-layout[data-stage="brief"]:has(#briefProposalPreview:not([hidden])) > .create-plan {
    display: block;
  }
  #view-launch #creationPreparation .ci-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overscroll-behavior: contain;
    padding: 3px;
    scrollbar-gutter: stable;
  }
  #view-launch #creationPreparation .ci-template-description {
    display: none;
  }
  #view-launch #creationPreparation .ci-heading {
    margin-bottom: 12px;
  }
  #view-launch #creationPreparation .ci-heading h2 {
    font-size: 24px;
  }
  #view-launch .ci-template-actions .ci-button {
    flex: 1 1 auto;
  }
}
#view-launch #briefStepper { display: none; }
.creation-brief-fields .creation-business-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--creation-border);
  border-radius: 8px;
}
.creation-brief-fields .brief-input input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--creation-ink);
  background: var(--creation-paper);
  border: 1px solid var(--creation-border);
  border-radius: 7px;
  font: inherit;
}
.creation-brief-fields #siteBrief { min-height: 120px; }
.creation-brief-fields #generateSite { margin-top: 16px; }
.creation-brief-fields .brief-examples,
.creation-brief-fields .brief-file-row { margin-top: 14px; }
.creation-brief-fields :is(input,textarea,button):focus-visible { outline: 3px solid var(--creation-accent); outline-offset: 3px; }
@media (max-width:700px) {
  #view-launch[data-active-launch-mode="create"].pc-detailed { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .creation-brief-fields :is(input,textarea) { font-size: 16px; }
  .creation-brief-fields .creation-business-fields { grid-template-columns: minmax(0,1fr); padding: 12px; }
  #view-launch .pc-quick-card .pc-quick-actions { position: static; }
}

/* Un seul flux de document : commandes et champs restent dans le défilement
   principal. Seul le document isolé de l’aperçu défile à part. */
#view-launch:not(.pc-detailed) .creation-progress { display: grid; }
#view-launch #pcQuick .pc-quick-top { display: none; }
#view-launch .pc-quick-card:has(.pc-quick-step[data-pc-step="4"]:not([hidden])) .pc-quick-actions {
  position: static;
  margin-inline: 0;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
}
#view-launch .creation-progress { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#view-launch .creation-progress li {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--creation-border);
  border-radius: 9px;
  color: var(--creation-muted);
  background: var(--creation-paper);
  overflow-wrap: anywhere;
}
#view-launch .creation-progress li[aria-current="step"] {
  border-color: var(--creation-accent);
  color: var(--creation-ink);
  background: var(--creation-accent-soft);
  box-shadow: inset 0 0 0 1px var(--creation-accent);
}
#view-launch .creation-progress li.is-complete .creation-progress-index {
  color: var(--creation-accent);
  background: var(--creation-accent-soft);
}
#view-launch .create-layout[data-stage="brief"] > .create-brief {
  display: block;
  min-width: 0;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
#view-launch .creation-brief-fields,
#view-launch .creation-brief-flow {
  display: block;
  min-width: 0;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
#view-launch .creation-brief-flow { padding: 0; }
#view-launch #creationPreparation:not([hidden]) {
  display: block;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
#view-launch #creationComposition,
#view-launch #creationIdentity,
#view-launch #creationPreparation .ci-template-grid {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}
#view-launch .creation-progress li[aria-current="step"] .creation-progress-index {
  border-color: var(--creation-accent);
  color: var(--creation-ink);
}
#view-launch .creation-composition-actions > div {
  display: grid;
  min-width: 0;
  gap: 10px;
}
#view-launch .creation-composition-actions > div > .button {
  justify-self: start;
}
#view-launch .create-layout[data-stage="brief"] > .create-plan:not(:has(#briefProposalPreview:not([hidden]))) {
  display: none;
}
#view-launch .create-layout[data-stage="brief"]:has(#briefProposalPreview:not([hidden])) > .create-plan {
  display: block;
}
#view-launch :is(button, input, textarea, select, a):focus-visible {
  outline-color: var(--creation-accent);
}

@media (max-width: 700px) {
  #view-launch.pc-detailed { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  #view-launch .creation-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-launch .creation-progress li { min-height: 52px; padding: 7px 8px; gap: 7px; }
  #view-launch .creation-progress-copy small { display: block; }
  #view-launch #creationPreparation .ci-template-grid { grid-template-columns: minmax(0, 1fr); }
  #view-launch .creation-composition-actions > div > .button { width: 100%; }
}
@media (max-width: 390px) {
  #view-launch .creation-progress-copy small { display: none; }
  #view-launch .creation-progress li { min-height: 48px; grid-template-columns: 25px minmax(0, 1fr); }
  #view-launch .creation-progress-index { width: 24px; height: 24px; }
}
@media (min-width: 701px) {
  #view-launch .create-layout[data-stage="brief"] { grid-template-columns: minmax(0, 1fr); }
  #view-launch .creation-brief-fields { flex: none; }
  #view-launch #creationPreparation .ci-template-description { display: block; }
  #view-launch #creationPreparation .ci-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1120px) {
  #view-launch #creationPreparation .ci-template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #view-launch .creation-progress li { scroll-behavior: auto; transition: none; }
}

/* Compact, honest creation flow. Controls remain in the original DOM so the
   existing controller listeners continue to own state and generation. */
#view-launch .creation-facts-summary {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin:0 0 12px; padding:12px 14px;
  border:1px solid var(--creation-border); border-radius:9px;
  background:var(--creation-paper);
}
#view-launch .creation-facts-summary>div { display:grid; min-width:0; gap:4px; }
#view-launch .creation-facts-summary span { color:var(--creation-muted); font-size:10px; font-weight:750; letter-spacing:.08em; }
#view-launch .creation-facts-summary strong { color:var(--creation-ink); font-size:14px; overflow-wrap:anywhere; }
#view-launch .creation-facts-summary p { margin:0; color:var(--creation-muted); font-size:12px; overflow-wrap:anywhere; }
#view-launch .creation-facts-disclosure,
#view-launch .creation-brief-fields details {
  margin:8px 0; padding:9px 12px;
  border:1px solid var(--creation-border); border-radius:8px;
  background:var(--creation-paper);
}
#view-launch .creation-facts-disclosure>summary,
#view-launch .creation-brief-fields details>summary {
  min-height:38px; align-content:center; color:var(--creation-accent);
  font-size:13px; font-weight:650; cursor:pointer;
}
#view-launch .creation-facts-disclosure .creation-business-fields { margin:10px 0 3px; }
#view-launch .creation-optional-note { display:block; margin-top:5px; color:var(--creation-muted); font-size:12px; font-weight:400; }
#view-launch .creation-brief-fields .creation-business-fields { min-width:0; }
#view-launch .creation-brief-flow { min-width:0; min-height:0; max-height:none; overflow:visible; }
#view-launch .progressive-creation {
  grid-template-columns:minmax(220px,.38fr) minmax(0,1fr);
  grid-template-areas:"title preview" "status preview" "steps preview" "actions preview";
  gap:9px 18px;
}
#view-launch .progressive-creation>h3 { align-self:end; font-size:clamp(18px,2vw,24px); }
#view-launch .progressive-creation>p { color:var(--creation-muted); font-size:12px; line-height:1.4; }
#view-launch .progressive-creation>ol {
  display:flex; flex-wrap:wrap; gap:5px 10px; padding:0; list-style:none;
}
#view-launch .progressive-creation>ol li {
  padding:3px 0; border:0; color:var(--creation-muted); font-size:11px; line-height:1.35;
}
#view-launch .progressive-creation>ol li span { display:inline; font-size:inherit; }
#view-launch .progressive-creation>ol li[aria-current="step"] { color:var(--creation-ink); font-weight:700; }
#view-launch .progressive-creation>[data-progressive-actions] { display:flex; flex-wrap:wrap; gap:8px; align-self:start; }
#view-launch .progressive-creation>iframe {
  width:100%; min-width:0; min-height:300px; height:min(68dvh,660px);
  border:1px solid var(--creation-border); border-radius:9px; background:#f1f0e9;
}
#view-launch .create-layout[data-stage="generating"] { min-width:0; }
#view-launch .create-layout[data-stage="generating"]>.create-plan { min-width:0; }
#view-launch .creation-review-note { max-width:75ch; }
#view-launch #briefProposalPreview:not([hidden]) { min-width:0; }
#view-launch #briefProposalSummary details,
#view-launch .create-plan details { margin:8px 0; }
#view-launch #briefProposalSummary details>summary,
#view-launch .create-plan details>summary { cursor:pointer; }
#view-launch :is(#briefProposalPreview,#briefProposalSummary,#generatedOutline,.create-plan) { overflow-wrap:anywhere; }
@media(max-width:760px) {
  #view-launch .progressive-creation {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"title" "status" "preview" "actions" "steps";
  }
  #view-launch .progressive-creation>iframe { min-height:280px; height:min(62dvh,560px); }
  #view-launch .creation-facts-summary { align-items:flex-start; }
}
@media(max-width:420px) {
  #view-launch .creation-facts-summary { flex-direction:column; }
  #view-launch .creation-facts-summary .button { width:100%; }
}
@media (min-width:761px) and (max-height:820px) {
  #view-launch .progressive-creation { gap:6px 14px; }
  #view-launch .progressive-creation>iframe { min-height:260px; height:min(64dvh,560px); }
  #view-launch .progressive-creation>h3 { font-size:19px; }
}
@media (prefers-reduced-motion:reduce) {
  #view-launch .progressive-creation iframe { scroll-behavior:auto; }
}

/* On generation/review the site, not repeated introductions, owns the screen. */
#view-launch[data-active-launch-mode="create"]:has(.create-layout:is([data-stage="generating"],[data-stage="proposal"])) > :is(.page-heading,.launch-mode-switch,.creation-progress),
#view-launch .create-layout:is([data-stage="generating"],[data-stage="proposal"]) > .create-brief,
#view-launch .create-layout:is([data-stage="generating"],[data-stage="proposal"]) .creation-review-note { display:none; }
#view-launch .create-layout:is([data-stage="generating"],[data-stage="proposal"]) { margin-top:0; }
#view-launch .create-layout:is([data-stage="generating"],[data-stage="proposal"]) .plan-heading { margin-block:0 6px; }
#view-launch .create-layout:is([data-stage="generating"],[data-stage="proposal"]) .create-plan { padding:12px; }
#view-launch .create-layout[data-stage="proposal"] #briefProposalResult { display:flex; flex-direction:column; gap:8px; }
#view-launch .create-layout[data-stage="proposal"] #briefProposalResult[hidden] { display:none; }
#view-launch .create-layout[data-stage="proposal"] .proposal-actions { flex-wrap:wrap; }
#view-launch .proposal-preview-window { max-width:100%; overflow:auto; }
#view-launch .proposal-preview-window .proposal-real-frame { display:block; width:100%; min-height:280px; height:max(280px,calc(100dvh - 310px)); border:0; }
#view-launch .creation-review-details { font-size:13px; }
#view-launch .creation-review-details>summary { min-height:40px; align-content:center; }
#view-launch #briefProposalSummary [data-creation-missing-note] { margin:6px 0; font-size:12px; }
#view-launch .progressive-creation { margin:0; grid-template-columns:minmax(0,1fr); grid-template-areas:"status" "preview" "actions" "steps"; gap:6px; }
#view-launch .progressive-creation>h3 { display:none; }
#view-launch .progressive-creation>ol { font-size:11px; }
#view-launch .progressive-creation>iframe { height:max(280px,calc(100dvh - 275px)); }
#view-launch .creation-author-edit { margin-top:12px; padding:14px; border:1px solid var(--creation-border); border-radius:10px; }
#view-launch .creation-author-edit label { display:grid; gap:5px; margin:8px 0; font-size:13px; }
#view-launch .creation-author-edit :is(input,textarea) { max-width:100%; width:100%; min-height:44px; padding:8px; color:var(--creation-ink); background:var(--creation-paper); border:1px solid var(--creation-border); border-radius:6px; font:inherit; }
#view-launch .creation-author-edit-actions { display:flex; flex-wrap:wrap; gap:8px; }
@media(max-width:760px) {
  #view-launch .progressive-creation>iframe,
  #view-launch .proposal-preview-window .proposal-real-frame { height:60dvh; min-height:280px; }
}
