/* Selection-first setup, using the Studio's existing type, blue and navy palette.
   Scoped to the customer workspace: editor and report layouts keep their flow. */
.guided-customer-only { display: none; }

body.studio-page:not(.is-editor) #studio .guided-customer-only { display: flex; }
body.studio-page:not(.is-editor) #studio [hidden] { display: none !important; }
body.studio-page:not(.is-editor) #studio[data-studio-mode="submission"] > .submission-context-panel,
body.studio-page:not(.is-editor) #studio[data-studio-mode="submission"] > .submission-draft-card {
  max-width: 900px;
  width: 100%;
  justify-self: center;
}
body.studio-page:not(.is-editor) #studio[data-studio-mode="submission"] > .submission-context-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  padding: 10px 0 0;
}
body.studio-page:not(.is-editor) #studio .submission-context-panel > * { min-width: 0; }
body.studio-page:not(.is-editor) #studio .submission-workspace-header {
  gap: 10px;
  padding: 0 0 28px;
}
body.studio-page:not(.is-editor) #studio .submission-workspace-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 0;
  scroll-margin-top: 110px;
}
body.studio-page:not(.is-editor) #studio .submission-workspace-header p {
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.6;
  margin: 0;
}
body.studio-page:not(.is-editor) #studio .studio-setup-progress {
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.studio-setup-progress li { display: flex; align-items: center; gap: 8px; }
.studio-setup-progress li > span {
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 0.74rem;
}
.studio-setup-progress [aria-current="step"] { color: var(--accent); font-weight: 800; }
.studio-setup-progress [aria-current="step"] > span { background: var(--accent); border-color: var(--accent); color: #fff; }
body.studio-page:not(.is-editor) #studio .assessment-step,
body.studio-page:not(.is-editor) #studio .studio-context-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  margin: 0;
}
body.studio-page:not(.is-editor) #studio .assessment-step { border-radius: 18px; gap: 16px; }
body.studio-page:not(.is-editor) #studio[data-setup-stage="details"] .assessment-step { border-radius: 18px 18px 0 0; border-bottom: 0; }
body.studio-page:not(.is-editor) #studio .studio-context-card { border-radius: 0 0 18px 18px; gap: 20px; }
body.studio-page:not(.is-editor) #studio .studio-section-heading h2 { font-size: 0.94rem; font-weight: 750; letter-spacing: -0.015em; }
body.studio-page:not(.is-editor) #studio .assessment-card-grid { gap: 10px; }
body.studio-page:not(.is-editor) #studio .assessment-card-grid .segment {
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 16px 12px;
  min-height: 120px;
  align-content: start;
  text-align: left;
}
body.studio-page:not(.is-editor) #studio .assessment-card-grid .segment svg { grid-row: auto; height: 30px; width: 30px; }
body.studio-page:not(.is-editor) #studio .assessment-card-grid .segment small { font-weight: 500; line-height: 1.4; }
body.studio-page:not(.is-editor) #studio .setup-next-hint { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
body.studio-page:not(.is-editor) #studio .context-card-heading { align-items: start; flex-direction: column; grid-template-columns: 1fr; gap: 6px; }
body.studio-page:not(.is-editor) #studio .context-card-heading h2 { font-size: 1.18rem; font-weight: 800; }
body.studio-page:not(.is-editor) #studio .context-card-heading p { font-weight: 450; font-size: 0.86rem; }
body.studio-page:not(.is-editor) #studio .context-prompt-grid { grid-template-columns: 1fr; gap: 16px; }
body.studio-page:not(.is-editor) #studio .prompt-field { order: -1; }
body.studio-page:not(.is-editor) #studio .field-label { font-size: 0.85rem; font-weight: 700; }
body.studio-page:not(.is-editor) #studio .required-marker { display: none; }
body.studio-page:not(.is-editor) #studio .context-field select,
body.studio-page:not(.is-editor) #studio .details-section input,
body.studio-page:not(.is-editor) #studio .prompt-box { font-size: 1rem; }
body.studio-page:not(.is-editor) #studio .optional-context-details { border: 0; background: transparent; border-radius: 0; padding: 0; }
body.studio-page:not(.is-editor) #studio .optional-context-details summary { color: var(--muted); font-size: 0.82rem; font-weight: 600; min-height: 36px; padding: 8px 0; }
body.studio-page:not(.is-editor) #studio .setup-continue-row { align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.setup-continue-row > span { color: var(--muted); font-size: 0.8rem; }
#continueToDraftBtn { min-height: 48px; width: auto; padding: 12px 20px; gap: 10px; }
#continueToDraftBtn svg { height: 18px; width: 18px; }
body.studio-page:not(.is-editor) #studio .setup-error { margin: 0; color: var(--rose); font-size: 0.87rem; line-height: 1.5; }
body.studio-page:not(.is-editor) #studio .setup-outcome-note { justify-content: center; margin: 20px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.6; text-align: center; }
body.studio-page:not(.is-editor) #studio .setup-completed-summary { align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.setup-completed-summary > svg { flex: 0 0 auto; color: var(--accent); width: 22px; height: 22px; }
.setup-completed-summary > div { min-width: 0; flex: 1; }
.setup-completed-summary strong { color: var(--ink); font-size: 0.92rem; }
.setup-completed-summary p { color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin: 5px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#editSetupBtn { flex-shrink: 0; min-height: 44px; width: auto; padding: 9px 14px; }
body.studio-page:not(.is-editor) #studio[data-setup-stage="choice"] .studio-context-card,
body.studio-page:not(.is-editor) #studio:not([data-setup-stage="choice"]) .setup-next-hint,
body.studio-page:not(.is-editor) #studio:not([data-setup-stage="draft"]) .setup-completed-summary,
body.studio-page:not(.is-editor) #studio[data-setup-stage="draft"] .assessment-step,
body.studio-page:not(.is-editor) #studio[data-setup-stage="draft"] .studio-context-card,
body.studio-page:not(.is-editor) #studio[data-setup-stage="draft"] .setup-outcome-note,
body.studio-page:not(.is-editor) #studio[data-studio-mode="submission"]:not([data-setup-stage="draft"]) .submission-draft-card { display: none; }
body.studio-page:not(.is-editor) #studio[data-studio-mode="reviewing"] .submission-context-panel,
body.studio-page:not(.is-editor) #studio[data-studio-mode="reviewing"] .submission-draft-card,
body.studio-page:not(.is-editor) #studio[data-studio-mode="review"] .submission-context-panel { display: none !important; }
body.studio-page:not(.is-editor) #studio[data-studio-mode="submission"] .draft-toolbar { align-items: start; flex-direction: column; gap: 12px; }
body.studio-page:not(.is-editor) #studio[data-studio-mode="submission"] .draft-stats { display: flex; flex-wrap: wrap; max-width: none; gap: 8px 16px; }
body.studio-page:not(.is-editor) #studio[data-studio-mode="submission"] .draft-stats > span { background: transparent; border: 0; padding: 0; }
.setup-language-note { color: var(--muted); font-size: 0.8rem; margin: 0; }
body.studio-page[data-theme="dark"] #studio .setup-completed-summary strong { color: #f1f5f9; }
body.studio-page[data-theme="dark"] #studio .draft-stats,
body.studio-page[data-theme="dark"] #studio .draft-stats > span,
body.studio-page[data-theme="dark"] #studio .draft-stats strong { color: #cbd5e1; }
body.studio-page[data-theme="dark"] #studio .setup-completed-summary,
body.studio-page[data-theme="dark"] #studio .assessment-step,
body.studio-page[data-theme="dark"] #studio .studio-context-card { background: #0f172a; border-color: #334155; }
@media (max-width: 1100px) {
  body.studio-page:not(.is-editor) #studio .assessment-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.studio-page:not(.is-editor) #studio .assessment-step,
  body.studio-page:not(.is-editor) #studio .studio-context-card { padding: 18px; }
  body.studio-page:not(.is-editor) #studio .assessment-card-grid .segment { min-height: 112px; padding: 12px; }
  body.studio-page:not(.is-editor) #studio .context-field-grid { grid-template-columns: 1fr; }
  body.studio-page:not(.is-editor) #studio .setup-continue-row { flex-direction: column-reverse; align-items: stretch; text-align: center; gap: 12px; }
  #continueToDraftBtn { width: 100%; justify-content: center; }
  body.studio-page:not(.is-editor) #studio .studio-setup-progress { font-size: 0.74rem; gap: 10px 14px; }
  body.studio-page:not(.is-editor) #studio .setup-completed-summary { flex-wrap: wrap; gap: 10px; padding: 16px; }
  .setup-completed-summary > div { flex-basis: calc(100% - 34px); }
  #editSetupBtn { margin-left: 32px; }
}
