:root {
  --ink: #183238;
  --muted: #64787c;
  --brand: #0f5a68;
  --brand-dark: #0a4652;
  --mint: #dcefe9;
  --mint-strong: #b8ddd3;
  --cream: #f7f3ea;
  --warm: #e98b58;
  --line: #d8e1de;
  --paper: #fff;
  --shadow: 0 18px 55px rgba(25, 54, 60, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { overflow-anchor: none; }
body { margin: 0; background: #f3f6f4; color: var(--ink); font: 16px/1.52 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.topbar { height: 68px; padding: 0 28px; display: flex; align-items: center; gap: 24px; color: white; background: var(--brand); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 14px rgba(4, 39, 46, .15); }
.brand { border: 0; background: none; color: white; padding: 0; font-size: 19px; font-weight: 800; cursor: pointer; letter-spacing: -.02em; }
.brand span { font-weight: 450; opacity: .82; }
.session-context { display: flex; align-items: center; gap: 14px; margin-right: auto; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.28); }
.session-context span, .setup-status, .save-indicator { font-size: 13px; opacity: .82; }
.session-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.timer { font-variant-numeric: tabular-nums; min-width: 52px; }
.setup-status { margin-left: auto; }

.button { border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 750; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .58; transform: none; }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(233, 139, 88, .45); outline-offset: 2px; }
.button-primary { background: var(--brand); color: white; }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { background: white; color: var(--brand); border-color: #aec7c4; }
.button-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .88; }
.button-large { min-height: 50px; padding-inline: 24px; }
.button-wide { width: 100%; }

.setup-view { max-width: 1380px; margin: 0 auto; padding: 54px 34px 90px; display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 42px; align-items: start; }
.hero { max-width: 850px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5vw, 66px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
.hero > p:last-child { max-width: 760px; color: var(--muted); font-size: 19px; }

.challenge-card { background: var(--brand); color: white; border-radius: 24px; padding: 28px 32px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.challenge-card::after { content: ""; position: absolute; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; right: -95px; bottom: -150px; box-shadow: 0 0 0 38px rgba(255,255,255,.04), 0 0 0 78px rgba(255,255,255,.03); }
.challenge-label { color: #bfe2da; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.challenge-card h2 { position: relative; z-index: 1; margin: 10px 0; max-width: 900px; font-family: Georgia, serif; font-size: clamp(25px, 3vw, 36px); line-height: 1.25; font-weight: 500; }
.challenge-card p { max-width: 760px; margin: 12px 0 0; color: rgba(255,255,255,.78); }
.legacy-notice { margin-top: 18px; display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 16px 18px; border: 1px solid #e5c5a8; background: #fff8ec; border-radius: 14px; }
.legacy-notice div { display: grid; gap: 2px; }
.legacy-notice span { color: #785a42; font-size: 14px; }
.connection-notice { margin-top: 18px; padding: 15px 18px; border-radius: 13px; font-weight: 700; }
.connection-notice-error { border: 1px solid #d9917f; background: #fff1ed; color: #873c2c; }

.setup-form { margin-top: 26px; display: grid; gap: 18px; }
.setup-section { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: white; }
.setup-section legend { padding: 0 10px 0 0; font-size: 20px; font-weight: 800; }
.setup-section legend > span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--mint); color: var(--brand); font-size: 14px; }
.setup-section > p { margin: 4px 0 16px; color: var(--muted); font-size: 14px; }
.choice-grid { display: grid; gap: 10px; }
.group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.persona-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.activation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { min-height: 78px; display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.choice-card:hover { border-color: #9cbbb6; transform: translateY(-1px); }
.choice-card.selected, .choice-card:has(input:checked) { background: #edf7f3; border-color: #77a99e; box-shadow: inset 0 0 0 1px #77a99e; }
.choice-card.disabled { opacity: .43; cursor: not-allowed; background: #f4f5f4; }
.choice-card input { margin-top: 4px; accent-color: var(--brand); }
.choice-card > span:last-child { display: grid; gap: 3px; }
.choice-card strong { line-height: 1.25; }
.choice-card small { color: var(--muted); line-height: 1.35; }
.choice-card em { width: fit-content; font-size: 11px; font-style: normal; color: #7b3b24; background: #fbe4d7; border-radius: 99px; padding: 2px 7px; }
.choice-card strong small { display: inline; margin-left: 5px; color: var(--brand); text-transform: uppercase; font-size: 10px; }
.persona-symbol { flex: 0 0 30px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--brand); background: var(--mint); font-weight: 900; }
.duration-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.duration-card { min-height: 105px; padding: 15px; display: grid; align-content: start; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.duration-card input { position: absolute; opacity: 0; }
.duration-card strong { font-family: Georgia, serif; font-size: 30px; line-height: 1; color: var(--brand); }
.duration-card span { font-weight: 750; }
.duration-card small { margin-top: 6px; color: var(--muted); }
.duration-card.selected, .duration-card:has(input:checked) { background: #edf7f3; border-color: #77a99e; box-shadow: inset 0 0 0 1px #77a99e; }
.setup-actions { display: flex; align-items: center; gap: 12px; }
.privacy-note { color: var(--muted); font-size: 13px; margin: 0; }
.process-summary { display: grid; gap: 4px; padding: 15px; border-radius: 12px; background: #edf7f3; }
.process-summary span { color: var(--muted); font-size: 14px; }
.consent-section { display: grid; gap: 16px; }
.consent-check { display: flex; align-items: flex-start; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.consent-check:has(input:checked) { border-color: #77a99e; background: #edf7f3; }
.consent-check input { flex: 0 0 auto; margin-top: 5px; accent-color: var(--brand); }
.consent-check a { color: var(--brand); }

.setup-aside { position: sticky; top: 98px; display: grid; gap: 16px; }
.agenda-preview, .article-catalog { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 22px; box-shadow: var(--shadow); }
.agenda-preview ol { list-style: none; margin: 0; padding: 0; display: grid; }
.agenda-preview li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #edf0ee; }
.agenda-preview li:first-child { border-top: 0; }
.agenda-preview li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--brand); background: var(--mint); font-weight: 850; }
.agenda-preview li div { display: grid; }
.agenda-preview li small { color: var(--muted); }
.central-note { margin-top: 14px; padding: 14px; display: grid; gap: 3px; border-radius: 11px; background: var(--brand); color: white; }
.central-note span { color: rgba(255,255,255,.76); font-size: 13px; }
.article-catalog { padding: 0; overflow: hidden; }
.article-catalog summary { cursor: pointer; list-style: none; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; }
.article-catalog summary::-webkit-details-marker { display: none; }
.article-catalog summary > span:first-child { display: grid; }
.article-catalog summary small { color: var(--muted); font-weight: 450; }
.article-catalog ol { max-height: 58vh; overflow: auto; margin: 0; padding: 0 20px 20px 48px; }
.article-catalog li { padding: 10px 0; }
.article-catalog li strong, .article-catalog li span { display: block; }
.article-catalog li span { color: var(--muted); font-size: 13px; }

.session-view { display: grid; grid-template-columns: 238px minmax(0, 1fr) 285px; max-width: 1600px; margin: 0 auto; min-height: calc(100vh - 68px); }
.step-rail, .guidance-rail { background: #f8faf8; padding: 28px 18px; }
.step-rail { border-right: 1px solid var(--line); }
.guidance-rail { border-left: 1px solid var(--line); }
.step-rail nav { display: grid; gap: 7px; }
.step-link { width: 100%; padding: 11px 9px; display: flex; align-items: flex-start; gap: 10px; text-align: left; background: transparent; border: 0; border-radius: 12px; cursor: pointer; }
.step-link > span { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #bfcfcb; color: var(--muted); font-size: 12px; font-weight: 850; }
.step-link div { display: grid; gap: 2px; }
.step-link small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.step-link.active { background: var(--mint); }
.step-link.active > span { color: white; border-color: var(--brand); background: var(--brand); }
.step-link.complete > span { color: var(--brand); background: var(--mint-strong); border-color: var(--mint-strong); }
.step-link:disabled { cursor: default; opacity: .52; }
.rail-principle { margin-top: 28px; padding: 15px; border-radius: 12px; background: var(--brand); color: white; }
.rail-principle p { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,.75); }

.workspace { min-width: 0; padding: 42px clamp(24px, 4vw, 64px) 100px; background: #f3f6f4; }
.workspace-header { max-width: 860px; }
.workspace-header h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; font-weight: 550; letter-spacing: -.025em; }
.workspace-header > p:last-child { color: var(--muted); font-size: 17px; }
.challenge-ribbon { max-width: 980px; display: grid; grid-template-columns: 145px 1fr; gap: 18px; margin: 24px 0; padding: 15px 18px; border-left: 4px solid var(--warm); border-radius: 0 12px 12px 0; background: #fff7ef; font-size: 14px; }
.challenge-ribbon strong { color: #9b4e29; }

.guided-card { max-width: 980px; }
.guided-context { margin-bottom: 12px; }
.persona-context { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid #bed5cf; border-radius: 14px; background: #edf7f3; }
.persona-avatar { flex: 0 0 46px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--brand); color: white; font-size: 22px; }
.persona-context div { display: grid; }
.persona-context small, .synthesis-context > small { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.persona-context p { margin: 3px 0 0; color: #446469; }
.phase-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 9px; }
.phase-map span { padding: 7px 5px; text-align: center; border-radius: 7px; background: #e7ece9; color: var(--muted); font-size: 11px; font-weight: 750; }
.phase-map span.active { background: var(--brand); color: white; }
.synthesis-context { padding: 16px; border: 1px solid #bed5cf; border-radius: 14px; background: #edf7f3; }
.synthesis-context div { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.synthesis-context div span { padding: 5px 9px; border-radius: 99px; background: white; font-size: 13px; font-weight: 700; }
blockquote { margin: 0; padding: 16px 18px; border-left: 4px solid var(--brand); background: #edf7f3; }
blockquote p { margin: 5px 0; font-family: Georgia, serif; font-size: 19px; }
blockquote small { color: var(--muted); }
.work-form { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); overflow: hidden; }
.work-form > header { padding: 26px 28px 18px; border-bottom: 1px solid #edf0ee; }
.work-form > header h2 { margin: 0; max-width: 780px; font-family: Georgia, serif; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; font-weight: 550; }
.work-form > header > p:last-child { color: var(--muted); margin-bottom: 0; }
.form-fields { padding: 24px 28px; display: grid; gap: 18px; }
.answer-field { display: grid; gap: 6px; }
.answer-field > span { font-weight: 750; }
.answer-field > small { color: var(--muted); }
.answer-field input, .answer-field textarea, .answer-field select { width: 100%; border: 1px solid #bdcbc7; border-radius: 10px; background: #fbfcfb; padding: 11px 12px; color: var(--ink); resize: vertical; }
.answer-field input:focus, .answer-field textarea:focus, .answer-field select:focus { border-color: var(--brand); background: white; }
.answer-field [aria-invalid="true"] { border-color: #b34e37; background: #fff5f2; box-shadow: 0 0 0 1px #b34e37; }
.form-error { margin: 0; padding: 11px 13px; border-radius: 9px; background: #fff1ed; color: #873c2c; font-weight: 700; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.embedded-fieldset, .activation-brief { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.embedded-fieldset legend, .activation-brief legend { font-weight: 850; padding-right: 10px; }
.embedded-fieldset > p, .activation-brief > p { margin-top: 0; color: var(--muted); font-size: 13px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-grid label { display: flex; gap: 8px; padding: 10px; border: 1px solid #e0e6e3; border-radius: 9px; cursor: pointer; }
.check-grid label:has(input:checked) { background: #edf7f3; border-color: #77a99e; }
.check-grid input { margin-top: 4px; accent-color: var(--brand); }
.check-grid label span { display: grid; }
.check-grid small { color: var(--muted); font-size: 11px; }
.activation-brief { display: grid; gap: 14px; background: #fbfcfb; }
.work-form > footer { padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; gap: 18px; background: #f8faf8; border-top: 1px solid #edf0ee; }
.work-form > footer span { color: var(--muted); font-size: 13px; }
.concept-choice-list { display: grid; gap: 10px; }
.concept-choice-list label { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.concept-choice-list label:has(input:checked) { background: #edf7f3; border-color: #77a99e; }
.concept-choice-list input { margin-top: 5px; accent-color: var(--brand); }
.concept-choice-list span { display: grid; gap: 4px; }
.concept-choice-list small { color: var(--brand); font-weight: 800; }
.concept-choice-list em { color: var(--muted); font-style: normal; }
.concept-choice-list i { color: #91603f; font-style: normal; font-size: 12px; }
.waiting-card { min-height: 130px; display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px solid #a8cdc4; border-radius: var(--radius); background: #edf7f3; }
.waiting-card > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: white; font-size: 22px; }
.waiting-card p { margin: 3px 0 0; color: var(--muted); }

.coverage-panel, .moderator-board, .step-complete, .completion-panel { max-width: 980px; margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.coverage-panel > header, .moderator-board > header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.coverage-panel h2, .moderator-board h2 { margin: 0; font-family: Georgia, serif; }
.coverage-status { color: var(--brand); font-size: 22px; }
.coverage-grid { display: grid; gap: 8px; margin-top: 16px; }
.coverage-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #f3f5f4; }
.coverage-item > span { color: #879793; }
.coverage-item div { display: grid; }
.coverage-item small { color: var(--muted); }
.coverage-item.done { background: #edf7f3; }
.coverage-item.done > span { color: var(--brand); font-weight: 900; }
.moderator-board #board { margin-top: 15px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.moderator-board article { padding: 14px; border-radius: 10px; background: #f3f5f4; }
.moderator-board article p { margin: 5px 0; }
.moderator-board article small { color: var(--muted); }
.step-complete { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-color: #8dbab0; background: #e9f5f1; }
.step-complete p { margin: 3px 0 0; color: var(--muted); }
.completion-panel { padding: 34px; background: var(--brand); color: white; }
.completion-panel .eyebrow { color: #bfe2da; }
.completion-panel h2 { max-width: 700px; margin: 0; font-family: Georgia, serif; font-size: 38px; line-height: 1.1; font-weight: 500; }
.completion-panel > p:not(.eyebrow) { color: rgba(255,255,255,.76); }
.completion-summary { margin: 24px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.completion-summary article { padding: 15px; display: grid; gap: 5px; border-radius: 10px; background: rgba(255,255,255,.1); }
.completion-summary small { color: #bfe2da; }
.completion-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.submission-receipt { margin: 20px 0 0; padding: 16px; display: grid; gap: 4px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; background: rgba(255,255,255,.1); }
.submission-receipt span { color: rgba(255,255,255,.8); }
.submission-receipt code { width: fit-content; margin-top: 4px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.18); color: white; }
.completion-panel .button-primary { background: var(--warm); color: #3d2519; }
.completion-panel .button-secondary { color: white; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }

.guidance-rail { display: grid; align-content: start; gap: 12px; }
.guide-panel { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.guide-panel > p:last-child { margin-bottom: 0; color: #496065; font-size: 13px; }
.decision-list { display: grid; gap: 8px; }
.decision-list > p { color: var(--muted); font-size: 13px; }
.decision-list article { padding: 10px; border-radius: 8px; background: #f3f5f4; }
.decision-list article p { margin: 0 0 5px; font-size: 13px; }
.decision-list article small { color: var(--muted); }
.statusbar { position: fixed; z-index: 15; bottom: 0; left: 238px; right: 285px; min-height: 58px; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); color: var(--muted); font-size: 13px; }
.statusbar > div { display: flex; gap: 8px; }
.statusbar .button-ghost { color: var(--brand); }
.sync-status[data-state="saved"] { color: #176755; font-weight: 750; }
.sync-status[data-state="error"] { color: #9a3e29; font-weight: 750; }
.save-indicator[data-state="error"] { color: #ffd2c8; opacity: 1; }

dialog { width: min(620px, calc(100vw - 30px)); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 25px 90px rgba(5, 39, 45, .25); }
dialog::backdrop { background: rgba(11, 39, 44, .55); }
dialog form { padding: 24px; display: grid; gap: 16px; }
dialog header, dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
dialog h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; }
dialog label { display: grid; gap: 6px; font-weight: 700; }
dialog input, dialog textarea { border: 1px solid #bdcbc7; border-radius: 9px; padding: 10px; }
dialog ol { color: #496065; }
.icon-button { width: 36px; height: 36px; border: 0; background: #eff3f1; border-radius: 50%; cursor: pointer; font-size: 21px; }
.toast { position: fixed; left: 50%; bottom: 78px; z-index: 100; max-width: min(560px, calc(100vw - 30px)); transform: translate(-50%, 15px); padding: 11px 16px; border-radius: 10px; background: #183238; color: white; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .session-view { grid-template-columns: 210px minmax(0, 1fr); }
  .guidance-rail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-left: 0; border-top: 1px solid var(--line); }
  .statusbar { left: 210px; right: 0; }
}

@media (max-width: 900px) {
  .setup-view { grid-template-columns: 1fr; }
  .setup-aside { position: static; grid-row: 2; }
  .session-view { display: block; }
  .step-rail { padding: 12px 16px; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .step-rail nav { display: flex; min-width: max-content; }
  .step-link { width: 160px; }
  .step-link small, .rail-principle { display: none; }
  .guidance-rail { grid-template-columns: repeat(2, 1fr); }
  .statusbar { left: 0; }
}

@media (max-width: 620px) {
  .topbar { height: auto; min-height: 60px; padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .brand span, .session-context strong, .save-indicator, .setup-status { display: none; }
  .session-context { padding-left: 10px; margin-right: 0; }
  .session-tools { margin-left: auto; }
  .session-tools .button { padding: 7px 9px; font-size: 12px; }
  .setup-view { padding: 30px 15px 70px; }
  .hero h1 { font-size: 39px; }
  .hero > p:last-child { font-size: 17px; }
  .challenge-card { padding: 23px 20px; border-radius: 18px; }
  .challenge-card h2 { font-size: 25px; }
  .legacy-notice { align-items: stretch; flex-direction: column; }
  .group-grid, .persona-grid, .activation-grid, .mode-grid, .duration-options { grid-template-columns: 1fr; }
  .setup-section { padding: 20px 15px; }
  .setup-actions { align-items: stretch; flex-direction: column; }
  .step-rail { position: sticky; top: 60px; z-index: 10; background: rgba(248,250,248,.95); backdrop-filter: blur(10px); }
  .step-link { width: auto; padding: 7px; }
  .step-link div { display: none; }
  .workspace { padding: 28px 15px 100px; }
  .workspace-header h1 { font-size: 36px; }
  .challenge-ribbon { grid-template-columns: 1fr; gap: 4px; }
  .phase-map { display: flex; overflow: auto; }
  .phase-map span { flex: 0 0 88px; }
  .work-form > header, .form-fields, .work-form > footer { padding-left: 17px; padding-right: 17px; }
  .field-pair, .check-grid, .moderator-board #board, .completion-summary { grid-template-columns: 1fr; }
  .work-form > footer, .step-complete { align-items: stretch; flex-direction: column; }
  .work-form > footer .button, .step-complete .button { width: 100%; }
  .guidance-rail { grid-template-columns: 1fr; padding: 18px 15px; }
  .statusbar { padding: 8px 12px; }
  .statusbar > span { display: none; }
  .statusbar > div { width: 100%; justify-content: space-between; }
  .completion-panel { padding: 24px 18px; }
  .completion-panel h2 { font-size: 31px; }
}

.synthetic-notice { padding: 14px 24px; background: #fff0cf; color: #513a09; border-bottom: 1px solid #d6b871; }
.synthetic-notice strong { margin-right: 8px; }
.answer-review { margin: 20px 0; }
.answer-review details { padding: 16px 20px; border: 1px solid #ccd8d7; border-radius: 12px; background: #fff; margin-bottom: 10px; }
.answer-review summary { cursor: pointer; font-weight: 650; }
.answer-review dt { font-weight: 650; margin-top: 14px; }
.answer-review dd { margin: 4px 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Self-guided view: one question, with reference material available on demand. */
.session-view { grid-template-columns: 210px minmax(0, 1fr); max-width: 1380px; }
.moderated-mode .session-view { grid-template-columns: 210px minmax(0, 1fr) 260px; max-width: 1600px; }
.workspace { padding: 24px clamp(22px, 4vw, 56px) 140px; }
.workspace-header h1 { font-size: clamp(28px, 3vw, 38px); }
.workspace-header > p:last-child { margin: 10px 0 16px; font-size: 15px; max-width: 760px; }
.workspace:has(.work-form:not([hidden])) .workspace-header > p { display: none; }
.workspace-header { margin-bottom: 16px; }
.challenge-disclosure, .task-context, .plain-method { margin: 12px 0; font-size: 14px; }
.challenge-disclosure summary, .task-context summary, .plain-method summary { cursor: pointer; color: var(--brand); font-weight: 700; padding: 8px 0; }
.challenge-disclosure .challenge-ribbon { margin: 8px 0; }
.challenge-card .plain-method summary { color: #fff; }
.challenge-card::after { pointer-events: none; }
.task-context { padding-bottom: 4px; }
.task-context .guided-context { margin-top: 10px; }
.task-context > p { color: var(--muted); }
.work-form > header { padding: 24px 28px 0; border-bottom: 0; }
.work-form > header h2 { font-size: clamp(24px, 2.8vw, 32px); }
.work-form > header > p:last-child { font-size: 15px; }
.form-fields { padding-top: 18px; }
.work-form .field-pair { grid-template-columns: minmax(0, 1fr); }
.work-form textarea { min-height: 142px; }
.work-form > footer { gap: 10px; flex-wrap: wrap; }
.work-form > footer button:last-child { margin-left: auto; }
.button:disabled { cursor: default; }
.edit-actions { padding: 0 28px 18px; background: #f8faf8; }
.pause-panel { padding: 26px; margin: 16px 0; border: 1px solid #a8cdc4; border-radius: 18px; background: #edf7f3; }
.pause-panel h2 { margin-top: 0; }
.answer-review { max-width: 980px; margin: 12px 0; }
.answer-review details { padding: 12px 18px; }
.answer-review article { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 4px; }
.answer-review h3 { scroll-margin-top: 210px; font-size: 19px; }
.answer-review h4 { margin-bottom: 0; }
.answer-review dd { color: #425b60; }
.statusbar { left: 210px; right: 0; }
.statusbar > div { align-items: center; }
.tools-menu { position: relative; color: var(--brand); }
.tools-menu > summary { cursor: pointer; font-weight: 700; padding: 10px; }
.tools-menu > div { position: absolute; bottom: calc(100% + 12px); right: 0; width: min(310px, calc(100vw - 28px)); max-height: 65vh; overflow: auto; display: grid; gap: 10px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.tools-menu small { color: var(--muted); }
.tools-menu .timer { font-size: 22px; font-weight: 700; }
.tools-menu .button { text-align: left; }
.moderated-mode .statusbar { right: 260px; }
.step-link:focus-visible, #question-title:focus-visible, #step-title:focus-visible, .answer-review h3:focus-visible { outline: 3px solid #ca7140; outline-offset: 3px; }
@media (max-width: 900px) {
  .session-view, .moderated-mode .session-view { display: block; }
  .statusbar, .moderated-mode .statusbar { left: 0; right: 0; }
  .topbar { height: auto; min-height: 68px; padding-block: 10px; flex-wrap: wrap; gap: 12px; }
  .brand { flex-shrink: 0; white-space: nowrap; }
  .brand span { display: none; }
  .step-rail nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 0; }
  .step-link { min-width: 0; }
  .step-link div { min-width: 0; }
  .step-link strong { font-size: 13px; overflow-wrap: anywhere; }
}
@media (max-width: 620px) {
  .step-link { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; padding: 5px 2px; }
  .step-rail nav { gap: 2px; }
  .step-link div { display: grid; }
  .step-link strong { font-size: 10px; line-height: 1.2; }
  .step-link strong { hyphens: auto; overflow-wrap: normal; }
  .step-link > span { width: 24px; height: 24px; }
  .step-rail { padding: 8px 10px; }
  .workspace { padding-top: 18px; }
  .workspace-header h1 { font-size: 29px; }
  .work-form > header { padding-top: 20px; }
  .work-form > footer { flex-direction: row; }
  .work-form > footer .button { width: auto; padding: 10px 12px; font-size: 13px; }
  .work-form > footer button:last-child { flex-grow: 1; }
  .phase-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .phase-map span { overflow-wrap: anywhere; }
  .statusbar .button { padding: 8px 10px; font-size: 12px; }
  .statusbar .tools-menu > summary { padding: 8px; font-size: 12px; }
  .step-rail { top: var(--topbar-height, 93px); }
  .statusbar { flex-wrap: wrap; gap: 5px; }
  .statusbar > span { display: block; width: 100%; font-size: 12px; }
  .workspace { padding-bottom: 160px; }
}
