/* Isolated tokens copied from src/styles.css and docs/design/design-system.md. */
:root { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1b2140; background: #f3f5fc; font-size: 16px; line-height: 1.5; font-synthesis: none; --ink: #1b2140; --muted: #535e78; --accent: #5141cc; --accent-strong: #4033aa; --border: #dce1ef; --surface: #fff; --chromatic: linear-gradient(110deg, #8d64ff 0%, #f178cb 43%, #65ddf3 85%); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, summary, input, textarea, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[data-step-heading]:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(42px, 4.8vw, 66px); line-height: 1.08; letter-spacing: -2.4px; font-weight: 750; margin: 18px 0 22px; }
h2 { font-size: 27px; line-height: 1.24; letter-spacing: -.7px; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.3px; }
p, label, dd, button { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 10; background: white; color: var(--accent); padding: 12px; opacity: 0; pointer-events: none; }
.skip-link:focus { opacity: 1; pointer-events: auto; }
.site-header { max-width: 1280px; margin: auto; padding: 27px 48px; min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 750; letter-spacing: -.7px; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--chromatic); }
.brand-divider { height: 22px; width: 1px; background: #c7cfdf; margin: 0 7px; }
.product-name { font-size: 13px; font-weight: 650; letter-spacing: 1.8px; }
.local-badge { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.local-badge > span { color: var(--accent); font-size: 10px; }
.workspace { max-width: 1184px; margin: 0 auto; padding: 56px 28px 48px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 70px; align-items: start; }
.intro { padding-top: 52px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.intro-copy { max-width: 330px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.takeaway { border-top: 1px solid #cdd3e4; padding-top: 25px; margin-top: 40px; max-width: 340px; }
.tiny-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #e8e3fc; color: var(--accent); font-size: 22px; margin-bottom: 14px; }
.tiny-mark svg, .choice-arrow svg { width: 18px; height: 18px; display: block; }
.takeaway h2 { font-size: 19px; letter-spacing: -.3px; margin-bottom: 8px; }
.takeaway p, .privacy-note p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.privacy-note { max-width: 340px; margin-top: 35px; }
.privacy-note strong { font-size: 14px; }
.privacy-note p { margin-top: 7px; }
.flow { min-width: 0; }
.step-nav { margin-bottom: 21px; }
.step-nav ol { display: flex; padding: 0; margin: 0; gap: 6px; list-style: none; }
.step-nav li { flex: 1; min-width: 0; }
.step-nav button { display: flex; width: 100%; align-items: center; justify-content: flex-start; gap: 6px; border: 0; border-bottom: 3px solid #d1d6e7; background: transparent; border-radius: 4px 4px 0 0; padding: 10px 4px; min-height: 44px; color: var(--muted); font-size: 12px; }
.step-nav button:disabled { color: #677087; }
.step-nav button[aria-current] { color: var(--accent); font-weight: 750; border-color: var(--accent); }
.step-nav button:not(:disabled):hover { background: #e8e6f8; }
.step-nav button span:first-child { font-size: 11px; font-weight: 650; }
.panel { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 30px; box-shadow: 0 8px 30px #25294d06; }
.panel::before { content: ''; position: absolute; inset: -1px 18px auto; height: 3px; background: var(--chromatic); border-radius: 3px; pointer-events: none; }
.template-notice { font-size: 12px; line-height: 1.6; color: var(--muted); padding-bottom: 23px; margin-bottom: 23px; border-bottom: 1px solid var(--border); }
[data-panel] > .eyebrow { margin-bottom: 12px; }
.section-copy { margin: 12px 0 25px; color: var(--muted); font-size: 15px; line-height: 1.6; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: flex; align-items: center; gap: 13px; border: 1px solid #cbd1e0; border-radius: 10px; padding: 17px 14px; margin-top: 12px; cursor: pointer; }
.choice:first-of-type { margin-top: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: #f4f2ff; box-shadow: inset 0 0 0 1px var(--accent); }
.choice:hover { background: #f8f8fe; }
.choice > span:not(.choice-arrow) { flex: 1; min-width: 0; }
.choice strong { display: block; font-size: 15px; font-weight: 650; }
.choice span span { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.choice-arrow { color: var(--muted); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 19px; height: 19px; margin: 0; flex: 0 0 19px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 600; min-width: 0; }
.field:first-child { margin-top: 0; }
.required-note { font-size: 12px; font-weight: 400; color: var(--muted); }
input[type="text"], select, textarea { width: 100%; min-width: 0; border: 1px solid #aeb8cd; border-radius: 8px; background: white; padding: 12px; font-size: 16px; font-weight: 400; line-height: 1.6; }
input[type="text"], select { min-height: 48px; }
textarea { resize: vertical; overflow-wrap: anywhere; }
textarea::placeholder, input::placeholder { color: #66718a; opacity: 1; }
[aria-invalid="true"] { border-color: #aa3150; }
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 9px; }
.field-error { color: #9c2544; font-size: 14px; margin-top: 12px; }
.effort-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-top: 22px; }
.effort-grid .field { margin: 0; }
.actions { display: flex; gap: 12px; margin-top: 28px; justify-content: flex-end; }
.button { border: 1px solid transparent; min-height: 48px; padding: 11px 18px; border-radius: 8px; font-size: 14px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 18px; }
.primary { color: white; background: var(--accent); }
.primary:hover { background: var(--accent-strong); }
.secondary { border-color: #bfc6d9; background: white; color: var(--ink); }
.secondary:hover { background: #f2f1fb; }
.flow-footer { display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--muted); padding: 14px 2px 0; }
.flow-footer > span { margin-right: auto; }
.flow-footer button { min-height: 44px; border: 0; padding: 6px; background: none; color: var(--accent); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.card-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.draft-badge { font-size: 10px; letter-spacing: .3px; color: var(--accent); background: #efedff; padding: 3px 7px; border-radius: 4px; }
.experiment-card { border: 1px solid #ddd8f5; border-radius: 10px; padding: 20px; background: #faf9ff; }
.experiment-card .field { margin-top: 21px; }
.experiment-card .field:first-child { margin-top: 0; }
.field-number { color: var(--accent); font-size: 11px; margin-right: 7px; font-weight: 750; }
.uncertainty { padding-top: 17px; border-top: 1px solid #ded9f0; }
.experiment-card textarea { background: white; font-size: 15px; }
.card-source-notice { color: var(--ink); background: #efedff; border: 1px solid #ddd8f5; border-radius: 8px; padding: 13px; font-size: 13px; margin-bottom: 20px; }
.answer-context { margin-top: 20px; font-size: 13px; color: var(--muted); }
summary { padding: 10px 0; min-height: 44px; cursor: pointer; color: var(--ink); font-weight: 600; }
dl { margin: 10px 0; line-height: 1.6; }
dt { font-weight: 650; margin-top: 12px; color: var(--ink); }
dd { margin: 4px 0 0; white-space: pre-wrap; }
.card-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 15px; }
.outcome-section { margin-top: 24px; padding: 20px 0 0; border-top: 1px solid var(--border); }
.outcome-section h3 { font-size: 18px; }
.outcome-section .field { margin-top: 12px; }
#cardOutcome { min-height: 110px; }
.handoff-choice { border: 1px solid var(--border); padding: 14px; border-radius: 8px; background: #faf9ff; }
#plainTextRegion { margin-top: 22px; }
.optional-section { border-top: 1px solid var(--border); margin-top: 30px; padding-top: 25px; }
.optional-section > .eyebrow { margin-bottom: 9px; }
.optional-section > p:not(.eyebrow) { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.consent-choice { display: flex; gap: 12px; align-items: start; padding: 14px 0; cursor: pointer; min-height: 44px; }
.consent-choice input { margin-top: 3px; }
.consent-choice strong { display: block; font-size: 13px; font-weight: 650; }
.consent-choice span span { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.optional-section .local-choice-status { padding: 11px 13px; background: #f3f5fc; border-radius: 6px; }
dialog { width: min(480px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--border); border-radius: 14px; color: var(--ink); box-shadow: 0 24px 80px #11172c20; max-height: calc(100dvh - 32px); overflow-y: auto; }
dialog::backdrop { background: #11172c65; }
dialog h2 { font-size: 24px; }
dialog p { margin-top: 15px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dialog-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.noscript { background: #efedff; border-radius: 10px; padding: 20px; margin-top: 20px; }
@media (max-width: 1000px) { .workspace { gap: 35px; } .site-header { padding-inline: 28px; } .panel { padding: 24px; } .step-nav button { gap: 4px; font-size: 11px; } .effort-grid { grid-template-columns: 1fr; } }
@media (max-width: 740px) { .site-header { padding: 19px 20px; min-height: 80px; flex-wrap: wrap; gap: 10px; } .brand { font-size: 23px; } .local-badge { font-size: 11px; } .workspace { display: block; padding: 29px 20px 35px; } .intro { padding: 0; } h1 { font-size: 40px; letter-spacing: -1.5px; margin: 12px 0; } h1 br { display: none; } .intro-copy { font-size: 15px; line-height: 1.6; max-width: 440px; } .takeaway { display: none; } .privacy-note { max-width: none; margin-top: 18px; padding-bottom: 22px; } .privacy-note strong { font-size: 12px; } .privacy-note p { font-size: 12px; } .flow { margin-top: 3px; } .step-nav { margin-bottom: 17px; } .step-nav button { justify-content: center; flex-direction: column; gap: 1px; font-size: 11px; } .step-nav button span:first-child { font-size: 10px; } .panel { padding: 22px 20px; } h2 { font-size: 24px; } .template-notice { font-size: 11px; margin-bottom: 20px; padding-bottom: 18px; } .section-copy { font-size: 14px; margin-bottom: 22px; } .eyebrow { font-size: 10px; letter-spacing: 1.1px; } .choice { gap: 10px; padding: 15px 12px; } .choice strong { font-size: 14px; } .choice span span { font-size: 12px; } .choice-arrow { display: none; } .experiment-card { padding: 14px; } .button { padding-inline: 14px; } .dialog-actions { flex-direction: column; } .flow-footer { font-size: 10px; } }
@media (max-width: 350px) { .workspace { padding-inline: 14px; } .site-header { padding-inline: 16px; } .panel { padding: 22px 15px; } .brand { gap: 8px; } h1 { font-size: 36px; } .actions { gap: 8px; } .card-actions .button { flex: 1 1 auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.paired-panel { grid-column: 1 / -1; width: 100%; max-width: 820px; margin: auto; }
.paired-privacy { max-width: none; padding: 16px; margin: 0 0 24px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.paired-panel h3 { margin-top: 22px; }
.paired-panel > .button, #pairedScore > .button, #pairedSummary > .button { margin-top: 22px; }
.paired-panel .answer-context p { margin-top: 12px; }
.paired-inputs { padding: 18px; border: 1px solid var(--border); border-radius: 8px; }
.paired-inputs dt { font-size: 13px; font-weight: 700; margin-top: 12px; }
.paired-inputs dt:first-child { margin-top: 0; }
.paired-inputs dd { margin: 4px 0 0; color: var(--muted); white-space: pre-wrap; }
.timer-line { margin-top: 18px; font-variant-numeric: tabular-nums; }
.paired-panel .actions { flex-wrap: wrap; }
.paired-panel textarea { overflow-y: hidden; }
.paired-panel textarea:read-only { background: #f3f5fc; }
.rubric { margin-top: 22px; }
.rubric legend { font-weight: 650; }
.pair-result { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 12px; }
.pair-result p { margin-top: 10px; white-space: pre-wrap; }
.pair-result pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; }
.pair-optional { border-top: 1px solid var(--border); margin-top: 30px; padding-top: 25px; }
.pair-optional > p { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 10px; }

/* Keep the main journey distinct from optional reflection and export choices. */
.completion-notice { padding: 16px; margin-top: 20px; background: #efedff; border: 1px solid #ddd8f5; border-radius: 8px; font-size: 15px; }
.completion-notice strong { display: block; margin-bottom: 4px; }
.finish-actions { justify-content: space-between; }
.export-actions { justify-content: flex-start; flex-wrap: wrap; }
#cardExtras { border-top: 1px solid var(--border); padding-top: 12px; }
#cardExtras > summary { font-size: 14px; }
#finishedPlainText { overflow-wrap: anywhere; }
#prototypeDetails { margin-top: 6px; }
#prototypeDetails > summary { font-size: 13px; }
#prototypeDetails .button { margin-top: 12px; }
/* Candidate refinement: existing type, ink, purple and control geometry. */
.intro { padding-top: 30px; }
.intro h1 { font-size: clamp(36px, 4.1vw, 53px); line-height: 1.12; letter-spacing: -1.7px; }
.intro-copy { font-size: 17px; max-width: 380px; }
.privacy-note { margin-top: 24px; max-width: 380px; padding-top: 20px; border-top: 1px solid var(--border); }
.entry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.entry-actions .button { gap: 8px; }
.readiness-note { max-width: 380px; margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.readiness-note summary { font-size: 13px; }
.example-steps { padding-left: 24px; margin: 22px 0; }
.example-steps li { padding-left: 5px; margin-top: 18px; }
.example-steps p { margin-top: 4px; }
#exampleDialog > .eyebrow { margin-bottom: 12px; }
#exampleGuard { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #f3f5fc; }
.button:disabled { color: var(--muted); background: #eef0f7; border-color: #c3cada; }
@media (max-width: 740px) {
  .intro { padding-top: 0; }
  .intro h1 { font-size: 36px; letter-spacing: -1.2px; }
  .intro-copy { font-size: 16px; }
  .intro .privacy-note { padding-bottom: 12px; }
  .entry-actions .button { flex: 1 1 160px; }
  .readiness-note { margin: 0 0 24px; max-width: none; }
  .actions { flex-wrap: wrap; }
}
@media (max-width: 740px) {
  .template-notice { padding-bottom: 12px; margin-bottom: 16px; }
  .export-actions .button { flex: 1 1 auto; }
}
