:root {
  --forest-900: #0d342b;
  --ink-800: #26332f;
  --paper-50: #f8f5ee;
  --surface: #fffdf8;
  --leaf-400: #c9da62;
  --forest-50: #eff3e8;
  --action-100: #f7d8d2;
  --conflict-100: #f7e5ae;
  --line: #cbd2c4;
  --muted: #53665d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-800);
  background: var(--paper-50);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #8AA791 var(--paper-50); }
body { margin: 0; min-width: min(320px, 100%); }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #68813e; outline-offset: 3px; }
::selection { color: var(--forest-900); background: var(--leaf-400); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { width: min(100%, 460px); min-height: 100vh; margin: 0 auto; background: var(--paper-50); }
.site-header { height: 70px; padding: 20px 26px 13px; display: flex; align-items: baseline; justify-content: space-between; }
.wordmark { color: var(--forest-900); font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.wordmark-mark { color: #94ad39; }
.prototype-label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.journey-bar { height: 36px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.journey-start, .step-label { font-size: 12px; letter-spacing: .02em; }
.step-label { font-variant-numeric: tabular-nums; }
.back-button { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; padding: 0; border: 0; color: var(--forest-900); background: transparent; font-size: 13px; font-weight: 600; }
.back-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.progress-track { height: 2px; background: #e1e6d8; }
.progress-track span { display: block; width: 100%; height: 100%; background: #9fb747; transform-origin: left center; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }

.screen { position: relative; min-height: calc(100vh - 166px); padding: 42px 26px 18px; display: flex; flex-direction: column; }
.screen h1, .screen h2, .email-preview h2 { font-family: Georgia, "Times New Roman", serif; color: var(--forest-900); font-weight: 400; letter-spacing: -.035em; }
.screen h1 { max-width: 390px; margin: 0; font-size: clamp(39px, 11vw, 52px); line-height: 1.04; text-wrap: balance; }
.intro > p, .hero-copy > p { margin: 19px 0 0; max-width: 30ch; font-size: 17px; line-height: 1.5; color: var(--ink-800); }
.underlined { position: relative; white-space: nowrap; }
.underlined::after { content: ""; position: absolute; left: -1%; right: -1%; height: 5px; bottom: -.03em; border-radius: 50% 35% 50% 40%; background: var(--leaf-400); transform: rotate(-2deg); z-index: -1; }
.welcome-screen { padding-top: 32px; }
.welcome-screen h1 { font-size: clamp(43px, 11.7vw, 56px); }
.hero-copy { position: relative; z-index: 1; }
.welcome-scene { position: relative; min-height: 232px; margin: 24px -26px 0; }
.origami-art { display: block; width: 164px; height: 164px; object-fit: contain; flex-shrink: 0; pointer-events: none; }
.origami-art--compact { width: 100%; height: 160px; margin: 16px auto 0; }
.origami-art--small { width: 78px; height: 78px; }
.origami-art--landscape { position: absolute; inset: 0; width: 100%; height: 252px; object-fit: contain; }
.welcome-proof { position: relative; width: 59%; padding: 15px 0 8px 26px; }
.welcome-proof h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.05; }
.welcome-proof p { margin: 10px 0 0; font-size: 14px; line-height: 1.45; }
.welcome-proof > span { display: block; margin-top: 13px; color: var(--muted); font-size: 12px; }
.welcome-proof strong { color: var(--forest-900); font-weight: 650; }
.mock-note { margin: 19px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }

.action-dock { margin-top: auto; padding-top: 32px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.primary-button { min-height: 58px; width: 100%; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--forest-900); border-radius: 12px; color: var(--surface); background: var(--forest-900); text-align: left; font-size: 16px; font-weight: 600; transition: background .2s, transform .2s; }
.primary-button:hover { background: #1d4a3e; transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.primary-button svg { width: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.secondary-button { width: 100%; min-height: 48px; margin-top: 8px; border: 0; background: transparent; color: var(--forest-900); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; font-weight: 600; }

.single-choice { width: 100%; margin-top: 24px; padding: 12px 0; min-height: 78px; display: flex; align-items: center; gap: 15px; border: 0; border-top: 1px solid var(--forest-900); border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.choice-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--forest-900); border-radius: 50%; color: var(--forest-900); font: 700 18px Georgia, serif; }
.single-choice > .choice-copy { flex: 1; }
.single-choice strong, .source-hero strong, .pupil strong { display: block; color: var(--forest-900); font-size: 16px; }
.single-choice small, .source-hero span, .pupil small { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
.single-choice > svg { width: 19px; fill: none; stroke: var(--forest-900); stroke-width: 1.7; stroke-linecap: round; }
.single-choice:disabled { cursor: not-allowed; border-top-color: var(--line); }
.single-choice:disabled .choice-mark { border-color: var(--muted); color: var(--muted); }
.account-identity { margin-top: 24px; padding: 18px 0 20px; border-top: 1px solid var(--forest-900); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-identity span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.account-identity strong { color: var(--forest-900); font-size: 17px; font-weight: 600; }
.account-error { margin: 22px 0 0; color: #8B382E; font-size: 14px; line-height: 1.5; }
.quiet-copy { margin: 26px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

.icon { width: 24px; height: 24px; flex: 0 0 auto; }
.source-hero { margin: 18px 0 0; padding: 0 0 14px; display: flex; gap: 4px; align-items: center; border-bottom: 1px solid var(--forest-900); }
.source-hero strong { font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.bankid-panel { margin-top: 28px; padding: 18px; background: var(--forest-50); border: 1px solid var(--line); }
.bankid-panel strong { display: block; color: var(--forest-900); font-size: 15px; }
.bankid-panel p { margin: 8px 0 0; color: var(--ink-800); font-size: 14px; line-height: 1.5; }
.bankid-qr { display: block; width: min(100%, 280px); aspect-ratio: 1; margin: 18px auto 0; padding: 12px; background: white; }
.editorial-rule { padding: 19px 0 20px; border-bottom: 1px solid var(--line); }
.editorial-rule strong { color: var(--forest-900); font-size: 15px; }
.editorial-rule p { margin: 7px 0 0; font-size: 14px; line-height: 1.5; }
.pupil-list { margin-top: 24px; border-top: 1px solid var(--forest-900); }
.pupil { min-height: 84px; display: flex; align-items: center; gap: 17px; border-bottom: 1px solid var(--line); }
.pupil-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: var(--forest-50); color: var(--forest-900); font-family: Georgia, serif; font-size: 23px; }
.pupil > div { flex: 1; }
.pupil > .icon { width: 20px; color: var(--forest-900); }

.fold-sequence { display: flex; justify-content: space-between; align-items: center; gap: 0; margin: 32px -8px 28px; }
.fold-sequence .origami-art { width: 34%; height: 128px; }
.sync-steps { border-top: 1px solid var(--forest-900); }
.sync-steps p { min-height: 55px; margin: 0; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); font-size: 15px; }
.step-check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--forest-900); background: var(--leaf-400); }
.step-check .icon { width: 14px; height: 14px; }

.week-screen { padding-top: 31px; }
.week-screen h1 { font-size: clamp(38px, 10vw, 46px); }
.week-screen .intro > p { margin-top: 9px; font-size: 14px; color: var(--muted); }
.week-screen > .origami-art { height: 100px; margin: 14px auto -12px; }
.week-screen h2, .change-note h2 { margin: 0 0 13px; font-family: Georgia, serif; font-size: 27px; line-height: 1.1; }
.attention-section { margin-top: 34px; padding: 21px 19px 7px; background: var(--forest-50); }
.attention-item { display: flex; gap: 11px; padding: 12px 0; border-top: 1px solid #d1dcca; }
.attention-dot { width: 7px; height: 7px; margin-top: 7px; flex: 0 0 auto; border-radius: 50%; background: #bf806f; }
.attention-item strong { color: var(--forest-900); font-size: 15px; }
.attention-item p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.attention-item small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.week-timeline { margin-top: 38px; }
.day-row { display: grid; grid-template-columns: 58px 1fr; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); }
.day-row:last-child { border-bottom: 1px solid var(--line); }
.date-cell span, .date-cell strong { display: block; color: var(--forest-900); }
.date-cell span { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.date-cell strong { margin-top: 2px; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.day-content strong { color: var(--forest-900); font-size: 15px; }
.day-content p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.day-content em { margin-left: 8px; color: #6d5941; font-size: 11px; font-style: normal; font-weight: 500; }
.change-note { margin-top: 37px; padding-bottom: 8px; }
.change-note > strong { color: var(--forest-900); font-size: 15px; }
.change-note > p { margin: 7px 0 0; font-size: 14px; line-height: 1.5; }
.text-button { min-height: 44px; margin-top: 8px; padding: 0; display: inline-flex; gap: 6px; align-items: center; border: 0; background: transparent; color: var(--forest-900); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.source-detail { padding: 12px 14px; background: var(--forest-50); font-size: 13px !important; }
.saved-week-screen .intro > p { max-width: none; }
.saved-week-screen h1 { overflow-wrap: anywhere; hyphens: auto; }
.saved-week-boundary { margin: 14px 0 0; padding: 0; color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.saved-week-next { margin-top: 30px; padding: 20px 0 22px; border-top: 1px solid var(--forest-900); border-bottom: 1px solid var(--line); }
.saved-week-next h2 { margin: 0; color: var(--forest-900); font: 700 24px/1.2 'Inria Serif', Georgia, serif; }
.saved-week-next p { margin: 9px 0 0; font-size: 14px; line-height: 1.5; }
.saved-action-details { margin-top: 18px; }
.saved-action-details summary { min-height: 44px; padding: 11px 0; color: var(--forest-900); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.saved-action-details .saved-attention-list { margin-top: 13px; }
.saved-action-details summary:focus-visible { outline: 3px solid #68813e; outline-offset: 3px; }
.saved-gathering { margin-top: 25px; }
.saved-gathering > .origami-art { width: 116px; height: 116px; margin: 0 auto 13px; }
.gather-checklist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--forest-900); }
.gather-row { min-height: 59px; display: grid; grid-template-columns: 25px minmax(0, 1fr); column-gap: 12px; align-content: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.gather-mark { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--forest-900); }
.gather-row--checked .gather-mark { border-color: var(--leaf-400); background: var(--leaf-400); }
.gather-row--unavailable .gather-mark { border-color: var(--muted); }
.gather-row--empty .gather-mark, .gather-row--partial .gather-mark { border-color: var(--muted); }
.gather-note { display: block; margin-top: 3px; }
.gather-mark svg { width: 14px; height: 14px; }
.gather-label { color: var(--forest-900); font-size: 15px; font-weight: 700; }
.gather-result { grid-column: 2; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.saved-week-findings { margin-top: 27px; }
.saved-week-findings h2, .saved-week-draft h2 { margin: 0 0 9px; font-family: 'Inria Serif', Georgia, serif; font-size: 25px; line-height: 1.15; color: var(--forest-900); }
.saved-week-findings p, .saved-week-draft p { margin: 7px 0 0; font-size: 14px; line-height: 1.5; }
.saved-week-findings p + p { color: var(--muted); font-size: 13px; }
.saved-week-draft { margin-top: 31px; padding: 21px 0 26px; border-top: 1px solid var(--forest-900); border-bottom: 1px solid var(--line); }
.saved-week-email-cta { margin-top: 20px; text-decoration: none; }
.saved-week-email-cta:focus-visible, .saved-week-details summary:focus-visible { outline: 3px solid #68813e; outline-offset: 3px; }
.saved-week-details { margin-top: 21px; }
.saved-week-details summary { min-height: 48px; padding: 10px 0; color: var(--forest-900); cursor: pointer; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.saved-week-details summary span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; text-decoration: none; }
.saved-week-details .saved-week-list { margin-top: 28px; }
.saved-week-status { margin-top: 28px; padding: 18px 19px; background: var(--forest-50); }
.saved-week-status strong { color: var(--forest-900); font-size: 16px; }
.saved-week-status p { margin: 9px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.saved-week-warning { padding-top: 10px; border-top: 1px solid var(--line); }
.saved-week-list { margin-top: 36px; }
.saved-week-list h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 27px; color: var(--forest-900); font-weight: 400; letter-spacing: -.035em; }
.saved-week-list > p { font-size: 14px; line-height: 1.5; }
.saved-day { padding: 19px 0 8px; border-top: 1px solid var(--line); }
.saved-day h3 { margin: 0; color: var(--forest-900); font-size: 15px; line-height: 1.4; }
.saved-day-empty { margin: 7px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.saved-day .saved-record { padding: 11px 0; }
.saved-day .saved-record:first-of-type { border-top: 0; }
.saved-record { padding: 16px 0; border-top: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.saved-record strong { display: block; color: var(--forest-900); font-size: 16px; line-height: 1.45; }
.saved-record p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.saved-record p:first-of-type { color: var(--muted); font-size: 13px; }
.saved-source-button { margin-top: 7px; }
.saved-source-detail { margin: 3px 0 6px; padding: 15px 17px; background: var(--forest-50); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.saved-source-detail > strong { font-size: 15px; }
.saved-source-detail p { margin: 7px 0 0; }
.saved-source-caveat { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-800); }
.saved-attention-list { padding: 20px 0; border-top: 1px solid var(--forest-900); border-bottom: 1px solid var(--line); }
.saved-attention-list > p { margin: 0; color: var(--ink-800); }
.saved-action-record:first-of-type { margin-top: 16px; }
.saved-action-record > strong { font-family: 'Inria Serif', Georgia, serif; font-size: 19px; font-weight: 700; }
.school-gathering-screen .saved-gathering { margin-top: 24px; }
.saved-week-range-warning { margin: 0 0 16px; color: var(--ink-800); font-size: 17px; line-height: 1.5; }
.saved-capture-meta { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.saved-capture-summary { margin: 0; padding: 0; list-style: none; }
.saved-capture-summary li { margin: 6px 0; color: var(--forest-900); font-size: 17px; line-height: 1.45; }
.saved-capture-gap { margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.saved-capture-gap strong { display: block; color: var(--ink-800); font-weight: 400; }
.saved-capture-gap > span { display: block; }
.saved-source-checks { margin-top: 18px; }
.saved-source-checks summary { min-height: 44px; padding: 10px 0; color: var(--forest-900); cursor: pointer; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.saved-source-checks summary:focus-visible { outline: 3px solid #68813e; outline-offset: 3px; }
.saved-source-checks .saved-week-boundary { margin: 0 0 14px; }
.saved-source-checks .gather-row { min-height: 56px; }
.saved-source-checks .gather-checklist { border-top-color: var(--line); }
.school-gathering-screen .action-dock { margin-top: 30px; }
.saved-week-send-note { margin: 0 0 18px; color: var(--ink-800); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.school-week-preview-screen .intro { margin-bottom: 22px; }
.school-week-preview-screen .intro > p { width: auto; max-width: none; }
.week-preview-shape { padding: 22px 0 24px; border-top: 1px solid var(--forest-900); border-bottom: 1px solid var(--line); }
.week-preview-shape h2 { margin: 0 0 10px; color: var(--forest-900); font: 700 26px/1.18 'Inria Serif', Georgia, serif; }
.week-preview-shape p { margin: 0; font-size: 17px; line-height: 1.55; }
.week-preview-shape + .week-preview-email { margin-top: 25px; }
.week-preview-section { margin-top: 31px; }
.week-preview-section h2, .week-preview-email h2 { margin: 0 0 12px; color: var(--forest-900); font: 700 24px/1.18 'Inria Serif', Georgia, serif; }
.week-preview-section > p { margin: 0; font-size: 14px; line-height: 1.5; }
.week-preview-items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--forest-900); }
.week-preview-items li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.week-preview-items strong, .week-preview-items span { display: block; }
.week-preview-items strong { color: var(--forest-900); font-size: 16px; line-height: 1.35; }
.week-preview-items span { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.week-preview-events li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
.week-preview-events time { color: var(--forest-900); font-size: 13px; font-weight: 700; }
.week-preview-email { margin-top: 0; padding: 17px 0; display: flex; align-items: flex-start; gap: 16px; border-top: 1px solid var(--forest-900); border-bottom: 1px solid var(--line); }
.week-preview-email .origami-art { width: 72px; height: 72px; flex: none; margin: 0; }
.origami-pinwheel { display: block; width: 32px; height: 32px; flex: none; overflow: visible; }
.origami-pinwheel-turn { transform-box: fill-box; transform-origin: center; animation: origami-pinwheel-turn 3.2s linear infinite; animation-delay: var(--pinwheel-phase, 0ms); }
.origami-pinwheel[data-offscreen="true"] .origami-pinwheel-turn { animation-play-state: paused; }
.week-preview-email > .origami-pinwheel { width: 48px; height: 48px; margin-top: 2px; }
.saved-gathering > .origami-pinwheel { width: 48px; height: 48px; margin: 16px auto 24px; }
.loading-status { display: flex; align-items: center; gap: 12px; }
@keyframes origami-pinwheel-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .origami-pinwheel-turn { animation: none; } }
.week-preview-email h2 { margin-bottom: 7px; }
.week-preview-email p { margin: 5px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }

.setup-completion-screen > .origami-art, .account-home-screen > .origami-art { margin: 22px auto 30px; }
.setup-recap { border-top: 1px solid var(--forest-900); margin: 24px 0 34px; }
.setup-recap p { margin: 0; padding: 17px 0; border-bottom: 1px solid var(--line); }
.setup-recap strong, .setup-recap span { display: block; }
.setup-recap strong { color: var(--forest-900); font-size: 17px; }
.setup-recap span { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.account-home-screen .settings-links { margin-top: 30px; }
.account-home-screen .settings-links button { text-align: left; }

.option-list { margin-top: 42px; border-top: 1px solid var(--forest-900); }
.option { width: 100%; min-height: 118px; padding: 13px 0; display: flex; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--forest-900); text-align: left; }
.option > span:nth-child(2) { flex: 1; }
.option strong, .option small { display: block; }
.option strong { font-size: 15px; }
.option small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.option-state { min-width: 58px; font-size: 12px; font-weight: 700; text-align: right; }
.option.selected { background: var(--forest-50); }
.option.selected .option-state { color: #4e6832; }

.briefing-screen .intro > p { max-width: 27ch; }
.briefing-screen > .origami-art { height: 136px; margin-top: 18px; }
.email-preview { margin-top: 40px; padding: 23px 20px 21px; background: var(--surface); box-shadow: 0 9px 24px rgba(0, 0, 0, .08); }
.email-top { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--forest-900); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.email-preview h2 { margin: 22px 0 3px; font-size: 34px; line-height: 1.05; }
.email-lead { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.email-section { padding: 16px 0 15px; border-top: 1px solid var(--line); }
.email-section h3 { margin: 0 0 12px; color: var(--forest-900); font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.email-section p { margin: 7px 0; font-size: 13px; line-height: 1.4; }
.email-section small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; }
.email-signoff { padding-top: 19px; border-top: 1px solid var(--forest-900); color: var(--forest-900); font-family: Georgia, serif; font-size: 19px; font-style: italic; }
.trust-lines { margin-top: 32px; border-top: 1px solid var(--forest-900); }
.trust-lines p { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.trust-lines strong { color: var(--forest-900); }

.prototype-footer { padding: 4px 26px 20px; }
.trace-toggle { min-height: 44px; padding: 0; display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.trace-toggle strong { color: var(--forest-900); font-variant-numeric: tabular-nums; }
.trace-panel { padding: 14px 0 4px; border-top: 1px solid var(--line); }
.trace-panel p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.trace-panel ol { margin: 0; padding: 0; list-style: none; }
.trace-panel li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 12px; }
.trace-panel li strong { color: var(--forest-900); }

@media (min-width: 600px) {
  body { background: #e7ebe0; }
  .app-shell { min-height: 100vh; box-shadow: 0 10px 40px rgba(17, 52, 39, .09); }
}

.delivery-screen h1 { font-size: 42px; }
.sharing-note { margin: 24px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.recipient-list { list-style: none; padding: 0; margin: 24px 0 0; }
.recipient-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.recipient-address strong { display: block; color: var(--forest-900); font-size: 16px; overflow-wrap: anywhere; }
.recipient-address span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.recipient-actions { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.recipient-actions .text-button { margin-top: 4px; }
.recipient-form { margin-top: 28px; }
.recipient-form label { display: block; font-size: 15px; font-weight: 600; color: var(--forest-900); }
.recipient-form input { width: 100%; min-height: 52px; padding: 12px; margin-top: 10px; border: 1px solid #778A7D; border-radius: 6px; background: var(--surface); color: var(--ink-800); font: inherit; caret-color: var(--forest-900); }
.recipient-form input::placeholder { color: var(--muted); }
.recipient-form input[aria-invalid="true"] { border-color: #A04438; }
input:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #68813E; outline-offset: 3px; }
.field-help { margin: 8px 0 12px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.field-error { color: #8B382E; font-size: 14px; line-height: 1.5; }
.secondary-outline { min-height: 48px; padding: 10px 18px; background: transparent; border: 1px solid var(--forest-900); border-radius: 6px; font-weight: 600; color: var(--forest-900); }
.secondary-outline:hover { background: var(--forest-50); }
.inline-status { margin: 18px 0 0; padding: 14px; background: var(--forest-50); font-size: 14px; line-height: 1.5; }
.settings-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 20px; }
.settings-links a, .standalone-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--forest-900); font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.review-states { font-size: 13px; color: var(--muted); }
.review-states summary { min-height: 44px; padding: 14px 0; cursor: pointer; }
.delivery-screen .quiet-copy { margin-top: 16px; }
.delivery-screen .editorial-rule { margin-top: 16px; }
.delivery-screen .primary-button { border-radius: 6px; }
.briefing-screen .email-preview { margin-top: 14px; box-shadow: none; border: 1px solid var(--line); }
.briefing-screen .email-top { font-size: 12px; text-transform: none; letter-spacing: 0; }
.briefing-screen .email-section p { font-size: 15px; line-height: 1.5; }
.briefing-screen .email-section small { font-size: 13px; margin-top: 3px; }

@media (max-width: 359px) {
  .site-header, .journey-bar { padding-left: 22px; padding-right: 22px; }
  .screen { padding-left: 22px; padding-right: 22px; padding-top: 32px; }
  .screen h1, .delivery-screen h1 { font-size: 38px; }
  .welcome-screen h1 { font-size: 42px; }
  .welcome-scene { margin-left: -22px; margin-right: -22px; min-height: 258px; }
  .welcome-scene .origami-art { top: 34px; }
  .welcome-proof { padding-left: 22px; width: 58%; }
  .welcome-proof h2 { font-size: 21px; }
  .welcome-proof p { font-size: 13px; }
  .source-hero .origami-art { width: 136px; height: 144px; }
  .option .origami-art { width: 64px; height: 74px; }
  .option-state { min-width: 48px; }
  .option strong { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The temporary BankID link stays readable/selectable without widening a phone screen. */
.bankid-phone-link { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.bankid-phone-link h2 { margin: 0; font-size: 18px; color: var(--forest-900); }
.bankid-phone-link label { display: block; margin-top: 16px; font-size: 14px; }
.bankid-phone-link input { display: block; width: 100%; min-width: 0; min-height: 48px; margin: 8px 0 12px; padding: 10px; font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--ink-800); }
.bankid-phone-link .secondary-button { min-height: 44px; margin-top: 12px; white-space: normal; overflow-wrap: anywhere; }
.bankid-launch { display: flex; justify-content: center; align-items: center; min-height: 48px; text-decoration: none; text-align: center; }
.bankid-transfer { margin-top: 16px; }
.bankid-transfer summary { display: list-item; min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--forest-900); }
.bankid-transfer .ui-field { margin-top: 12px; }
.bankid-other-device { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Calendar uses the same paper, rules and native form controls as account settings. */
.calendar-screen > .origami-art { height: 144px; margin: 8px auto 20px; }
.calendar-screen h2, .calendar-screen legend { font-family: inherit; font-size: 18px; font-weight: 600; color: var(--forest-900); }
.calendar-screen fieldset { min-width: 0; border: 0; padding: 0; margin: 30px 0 0; }
.calendar-screen legend { padding: 0; margin-bottom: 8px; }
.calendar-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.calendar-choice input, .calendar-member input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--forest-900); }
.calendar-field { display: block; margin: 20px 0; color: var(--forest-900); font-size: 14px; font-weight: 600; }
.calendar-owner, .calendar-member { padding: 16px 0; border-bottom: 1px solid var(--line); }
.calendar-owner strong, .calendar-owner span { display: block; overflow-wrap: anywhere; }
.calendar-owner span, .calendar-member small { margin-top: 6px; color: var(--muted); font-size: 13px; }
.calendar-member > label { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.calendar-member > label span { min-width: 0; }
.calendar-member strong, .calendar-member small { display: block; overflow-wrap: anywhere; }
.calendar-review { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.calendar-dates { list-style: none; margin: 24px 0; padding: 0; }
.calendar-dates li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.calendar-dates strong, .calendar-dates small { display: block; overflow-wrap: anywhere; }
.calendar-dates small { margin-top: 6px; font-size: 13px; color: var(--muted); }
.calendar-disconnect { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.calendar-screen .editorial-rule h2 { margin: 0 0 10px; }
.calendar-screen .primary-button { margin-top: 20px; }
.calendar-screen input:disabled { opacity: .6; cursor: not-allowed; }
.calendar-screen .quiet-copy { margin-top: 24px; }

/* Saved roles and edit choices use separate views, with one row per calendar. */
.calendar-heading { display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 16px 12px; align-items: center; }
.calendar-heading > .origami-art { width: 86px; height: 100px; margin: 0; }
.calendar-heading > p { grid-column: 1 / -1; margin: 0; font-size: 17px; line-height: 1.5; }
.calendar-overview { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.calendar-screen .calendar-overview h2 { margin: 0 0 6px; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
.calendar-usage { margin: 0; }
.calendar-usage > div { padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.calendar-usage dt, .calendar-other li, .calendar-destination > p { color: var(--ink-800); font-size: 16px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.calendar-usage dd { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.calendar-other { margin: 20px 0 16px; }
.calendar-main { margin-top: 20px; }
.calendar-main h3, .calendar-other h3 { margin: 0 0 8px; color: var(--forest-900); font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.5; }
.calendar-other ul { list-style: none; margin: 0; padding: 0; }
.calendar-other .field-help { margin: 8px 0 0; }
.calendar-actions > .standalone-link { display: flex; justify-content: center; margin-top: 8px; min-height: 48px; font-size: 16px; }
.calendar-screen .calendar-editor h2, .calendar-screen .calendar-editor legend { font-family: inherit; font-size: 18px; font-weight: 600; letter-spacing: 0; }
.calendar-other li + li { margin-top: 8px; }
.calendar-edit-button { width: 100%; margin-top: 16px; font-size: 16px; border-radius: 9px; }
.calendar-editor { margin-top: 30px; }
.calendar-destination { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-destination h2 { margin: 0 0 10px; }
.calendar-destination > p { margin: 0 0 6px; }
.calendar-choice > span { min-width: 0; padding: 12px 0; overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; }
.calendar-choice strong, .calendar-choice small { display: block; }
.calendar-choice strong { font-weight: 500; }
.calendar-choice small { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.calendar-choice input:focus-visible { outline: 3px solid #68813E; outline-offset: 3px; }
.calendar-automatic { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.calendar-editor-actions { margin-top: 20px; }
.calendar-editor-actions .text-button { justify-content: center; width: 100%; min-height: 48px; font-size: 16px; }
.calendar-access-note { margin-top: 24px; }
.calendar-sharing { margin-top: 30px; padding-top: 8px; border-top: 1px solid var(--line); }
.calendar-screen button:disabled { cursor: not-allowed; opacity: .6; }
.calendar-screen [tabindex="-1"]:focus { outline: none; }
