:root {
  color-scheme: dark;
  --page: #101c28;
  --panel: #192936;
  --field: #13222e;
  --ink: #f3f2ec;
  --muted: #b8c6cd;
  --accent: #cce0d0;
  --border: #647985;
  --focus: #f0d597;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.6;
  background: var(--page);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: auto; }
button { min-height: 48px; padding: .65rem 1.05rem; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; line-height: 1.4; }
button:hover { background: #2a3f4d; }
button:disabled { cursor: default; opacity: .6; }
button.primary { background: var(--accent); border-color: var(--accent); color: #13251c; }
button.primary:hover { background: #e1eee4; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1:focus, h2:focus, main:focus { outline-offset: 8px; }
h1, h2, h3, p { margin: 0 0 1rem; }
h1, h2 { line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.55rem); }
h3 { font-size: 1.2rem; line-height: 1.4; }
p { max-width: 65ch; }
a { color: var(--accent); }
.skip-link { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .75rem; background: var(--page); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header, main, .site-footer { width: min(100% - 32px, 780px); margin-inline: auto; }
.site-header { padding-block: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 650; }
.header-note { font-size: .85rem; color: var(--muted); }
main { padding-block: .25rem; }
.screen { background: var(--panel); border: 1px solid #354b59; border-radius: 24px; padding: clamp(18px, 4vw, 40px); }
.intro { padding-block: clamp(1.75rem, 6vw, 3.4rem); }
.eyebrow { margin-bottom: 1rem; font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.lead { font-size: 1.25rem; color: var(--accent); }
.quiet, .header-note, .summary-credit { color: var(--muted); }
.quiet { font-size: .9rem; }
.intro > .quiet { margin-block: 1rem 0; }
.intro-path { list-style: none; margin: 1.8rem 0; padding: 0; display: grid; gap: 1rem; }
.intro-path li { border-left: 2px solid #789b8b; padding-left: 1rem; color: var(--muted); font-size: .9rem; }
.intro-path span { display: block; font-size: 1rem; color: var(--ink); font-weight: 650; }
.notice { border: 1px solid #4b6464; border-radius: 12px; background: #152630; padding: 1rem; font-size: .9rem; }
fieldset { border: 0; padding: 0; margin: 1.5rem 0 1rem; min-width: 0; }
legend { padding: 0; margin-bottom: .75rem; font-weight: 650; }
.value-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; }
.value-option { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem; background: var(--field); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; min-height: 76px; }
.value-option:hover { background: #233947; }
.value-option:has(input:checked) { border-color: var(--accent); background: #213b39; }
.value-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.value-option input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--accent); }
.value-option span { min-width: 0; }
.value-name { display: block; font-weight: 650; }
.value-description { display: block; margin-top: .15rem; font-size: .875rem; color: var(--muted); }
.stage-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; background: var(--panel); padding-block: 1rem; margin-top: 1rem; border-top: 1px solid #526774; z-index: 1; }
#consider .stage-actions, #narrow .stage-actions, #focus .stage-actions { position: sticky; bottom: 0; }
.stage-actions p { margin: 0; color: var(--accent); font-size: .9rem; }
.stage-actions .primary { margin-left: auto; }
.error { color: #ffd1c5; font-weight: 600; margin-bottom: 0; }
.error:empty { display: none; }
.reflection { margin-block: 1.5rem; }
.reflection label { display: block; margin-bottom: .5rem; }
textarea { display: block; width: 100%; min-width: 0; resize: vertical; padding: .85rem; background: var(--field); color: var(--ink); border: 1px solid var(--border); border-radius: 10px; line-height: 1.6; font-size: 1rem; }
.reflection .quiet { margin-top: .35rem; }
.summary-list { list-style: none; padding: 0; margin: 1.75rem 0; }
.summary-list li { border-top: 1px solid #526774; padding-top: 1.2rem; margin-top: 1.2rem; }
.summary-list h3 { color: var(--accent); margin-bottom: .4rem; }
.summary-list p { white-space: pre-wrap; overflow-wrap: anywhere; }
.summary-credit { font-size: .85rem; }
.export-actions, .dialog-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.5rem 1rem; }
.action-status { min-height: 1.6rem; margin: .75rem 0 0; color: var(--accent); }
.site-footer { padding-block: 1rem 2rem; text-align: center; color: var(--muted); font-size: .85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; margin-bottom: .8rem; }
.site-footer button { font-weight: 400; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; padding-inline: .65rem; }
.site-footer p { margin-inline: auto; }
dialog { width: min(100% - 2rem, 580px); max-height: 85vh; max-height: 85dvh; margin: auto; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--border); border-radius: 20px; background: var(--panel); color: var(--ink); overflow-y: auto; }
dialog::backdrop { background: #070d14d9; }
dialog h2 { font-size: 1.6rem; }
dialog > button { margin-top: .75rem; }
#manual-copy { margin-top: .5rem; }
/* Reserve room for wrapped navigation so focused controls can scroll clear of it. */
input, textarea { scroll-margin-block: 2rem 12rem; }
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .intro-path { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 380px) { .header-note { display: none; } #consider .stage-actions, #narrow .stage-actions, #focus .stage-actions { position: static; } .stage-actions .primary { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .value-option:has(input:checked) { border: 3px solid Highlight; } }
@media print {
  :root { color-scheme: light; background: white; color: black; font-size: 11pt; }
  @page { margin: 18mm; }
  body { background: white; min-height: auto; }
  .site-header, .site-footer, .skip-link, .no-print, noscript, dialog, .screen:not(#summary) { display: none !important; }
  main { width: 100%; margin: 0; padding: 0; }
  #summary { display: block !important; border: 0; border-radius: 0; background: white; padding: 0; }
  #summary-heading { font-size: 22pt; color: black; }
  #summary-note, .summary-credit { color: #333; }
  .summary-list h3 { color: black; font-size: 14pt; }
  .summary-list li { break-inside: avoid; border-color: #888; }
  .summary-list p { orphans: 3; widows: 3; }
}
