@charset "UTF-8";

/* URANAI EMAIL v2 — readable editorial layer inspired by the existing mama report. */
:root {
  --ink: #f4f1e9;
  --ink-soft: #ebe7dc;
  --ink-card: #fffdf8;
  --paper: #20272d;
  --paper-soft: #3e484f;
  --text: #25282a;
  --muted: #687177;
  --line: rgba(37, 40, 42, .13);
  --line-strong: rgba(37, 40, 42, .24);
  --gold: #806331;
  --gold-fill: #ad8a4d;
  --gold-pale: #765b2f;
  --aqua: #457d83;
  --danger: #a2453c;
  --success: #357356;
  --page-bg: #f4f1e9;
  --page-bg-alt: #ece9e1;
  --surface: #fffdf8;
  --surface-strong: #f8f4eb;
  --body-text: #25282a;
  --body-muted: #687177;
  --shadow: 0 22px 60px rgba(48, 43, 32, .09);
  --reader-width: min(790px, calc(100% - 40px));
  color-scheme: light;
}

:root[data-theme-resolved="dark"] {
  --ink: #0b131b;
  --ink-soft: #101d27;
  --ink-card: #14232e;
  --paper: #edf0eb;
  --paper-soft: #ccd4d3;
  --text: #edf0eb;
  --muted: #a6b0b3;
  --line: rgba(220, 230, 228, .14);
  --line-strong: rgba(220, 230, 228, .27);
  --gold: #c9aa6f;
  --gold-fill: #c9aa6f;
  --gold-pale: #ead5a8;
  --aqua: #79bfc1;
  --danger: #e59b91;
  --success: #91cfb2;
  --page-bg: #0b131b;
  --page-bg-alt: #101a23;
  --surface: #14232e;
  --surface-strong: #101d27;
  --body-text: #edf0eb;
  --body-muted: #a6b0b3;
  --shadow: 0 24px 70px rgba(0, 0, 0, .26);
  color-scheme: dark;
}

:root[data-tone="bright"] { --page-bg: #fbfaf6; --page-bg-alt: #f3f1ea; --surface: #fff; }
:root[data-theme-resolved="dark"][data-tone="bright"] { --page-bg: #111d26; --page-bg-alt: #172630; --surface: #1a2c37; }
:root[data-tone="dim"] { --page-bg: #e8e4da; --page-bg-alt: #dfdbd1; --surface: #f3efe6; }
:root[data-theme-resolved="dark"][data-tone="dim"] { --page-bg: #070d12; --page-bg-alt: #0b131a; --surface: #101c25; }
:root[data-contrast="high"] { --body-text: #111; --body-muted: #3f4549; --line: rgba(0, 0, 0, .25); --line-strong: rgba(0, 0, 0, .48); }
:root[data-theme-resolved="dark"][data-contrast="high"] { --body-text: #fff; --body-muted: #e0e6e6; --line: rgba(255, 255, 255, .27); --line-strong: rgba(255, 255, 255, .52); }
:root[data-font="small"] body { font-size: 15px; }
:root[data-font="standard"] body { font-size: 16px; }
:root[data-font="large"] body { font-size: 18px; }
:root[data-font="xlarge"] body { font-size: 20px; }

body {
  min-height: 100dvh;
  background: var(--page-bg);
  color: var(--body-text);
  transition: background-color .25s ease, color .25s ease;
}
body::before { background: linear-gradient(180deg, color-mix(in srgb, var(--page-bg), white 7%), var(--page-bg-alt)); opacity: 1; }
body.settings-open { overflow: hidden; }
.skip-link { top: 0; transform: translateY(-150%); }
.skip-link:focus-visible { top: 12px; transform: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.site-header,
.result-page .site-header, .saved-result .site-header, .consultation-page .site-header,
.legal-page .site-header, .auth-page .site-header, .mypage .site-header,
.admin-page .site-header, .admin-login-page .site-header, .success-page .site-header,
.error-page .site-header, .detail-report-page .site-header {
  background: color-mix(in srgb, var(--page-bg), transparent 7%);
  border-color: var(--line);
  color: var(--body-text);
  backdrop-filter: blur(16px);
}
.home .site-header { position: absolute; }
.global-nav { color: var(--body-muted); }
.global-nav .nav-cta { color: var(--gold-pale); }
.nav-toggle span { background: var(--body-text); }
.brand-mark { background: color-mix(in srgb, var(--surface), transparent 18%); }

.button--line { color: var(--body-text); }
.button--primary { background: var(--gold-fill); }
.button--light { background: #17222a; color: #f8f5ee; }
.flash { background: var(--surface); color: var(--body-text); box-shadow: var(--shadow); }
.panel, .auth-card, .admin-workspace { background: var(--surface); box-shadow: var(--shadow); }
.field > span, .check-field, .choice-field legend, .contact-choice legend,
.consent-check span { color: var(--body-text); }
.field input, .field select, .field textarea, .stroke-unit input {
  min-height: 50px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--body-text);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--body-muted), transparent 18%); }
.field select option { background: var(--surface); color: var(--body-text); }
.field-help, .quiet-copy { color: var(--body-muted); }
.form-divider span { background: var(--surface); }
.stroke-body { background: var(--page-bg-alt); }
.contact-section, .consent-section { background: var(--surface); box-shadow: var(--shadow); }
.form-errors strong { color: var(--danger); }
.form-errors ul { color: var(--body-text); }
.choice-grid span, .contact-choice label span { color: var(--body-muted); background: var(--surface); }
.choice-grid input:checked + span, .contact-choice input:checked + span { color: var(--gold-pale); }

/* Global display drawer */
.display-settings-toggle {
  position: fixed;
  z-index: 520;
  right: max(14px, env(safe-area-inset-right));
  top: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface), transparent 4%);
  color: var(--gold-pale);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .14);
  font: 700 14px/1 var(--serif);
  transform: translateY(-50%);
}
.display-settings-toggle:hover { transform: translateY(calc(-50% - 2px)); }
.settings-scrim { position: fixed; z-index: 530; inset: 0; background: rgba(12, 18, 22, .44); backdrop-filter: blur(2px); }
.display-settings {
  position: fixed;
  z-index: 540;
  right: 0;
  top: 0;
  width: min(420px, 100%);
  height: 100dvh;
  padding: 28px 28px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--surface);
  color: var(--body-text);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 70px rgba(0, 0, 0, .18);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .32s var(--ease), visibility .32s;
}
.display-settings.is-open { transform: translateX(0); visibility: visible; }
.display-settings > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.display-settings > header span { color: var(--gold); font: 600 9px/1 var(--tech); letter-spacing: .16em; }
.display-settings h2 { margin: 8px 0 0; font: 500 30px/1.4 var(--serif); }
.display-settings > header button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: inherit; font-size: 26px; }
.display-settings > p { margin: 20px 0 28px; color: var(--body-muted); font-size: 12px; }
.display-settings fieldset { margin: 0 0 25px; padding: 0; border: 0; }
.display-settings legend { margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.setting-options { display: grid; gap: 6px; }
.setting-options--2 { grid-template-columns: repeat(2, 1fr); }
.setting-options--3 { grid-template-columns: repeat(3, 1fr); }
.setting-options--4 { grid-template-columns: repeat(4, 1fr); }
.setting-options label { position: relative; }
.setting-options input { position: absolute; opacity: 0; }
.setting-options span { min-height: 46px; padding: 8px 5px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--body-muted); font-size: 11px; text-align: center; }
.setting-options input:checked + span { border-color: var(--gold); background: color-mix(in srgb, var(--gold), transparent 88%); color: var(--gold-pale); font-weight: 700; }
.setting-options input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.settings-reset { width: 100%; min-height: 48px; border: 1px solid var(--line); background: transparent; color: var(--body-muted); }

/* Top and progressive input */
.hero { min-height: min(860px, 100dvh); background: linear-gradient(130deg, #f8f5ed, #e7e5de 68%, #dce6e5); color: #20282c; }
.hero::before { background: linear-gradient(90deg, rgba(249, 247, 241, .96), rgba(249, 247, 241, .73) 58%, rgba(249, 247, 241, .08)); }
.hero h1 em { color: #806431; }
.hero-lead { color: #465259; }
.hero-note, .hero-data { color: #677379; }
.hero-orbit { border-color: rgba(133, 104, 55, .25); }
.hero-orbit::before, .hero-orbit::after { border-color: rgba(66, 120, 124, .2); }
:root[data-theme-resolved="dark"] .hero { background: linear-gradient(130deg, #09131c, #0e1b25 68%, #17262d); color: var(--body-text); }
:root[data-theme-resolved="dark"] .hero::before { background: linear-gradient(90deg, rgba(7, 15, 22, .96), rgba(7, 15, 22, .72) 58%, rgba(7, 15, 22, .08)); }
:root[data-theme-resolved="dark"] .hero h1 em { color: var(--gold-pale); }
:root[data-theme-resolved="dark"] .hero-lead { color: var(--paper-soft); }
.trust-strip { background: var(--surface-strong); }
.trust-strip strong { color: var(--body-text); }
.reading-entry { background: var(--page-bg); }
.reading-form { padding: clamp(22px, 5vw, 52px); }
.step-panel { margin: 0; padding: 0; border: 0; min-width: 0; }
.step-panel[hidden] { display: none !important; }
.step-panel__intro { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.step-panel__intro > span { color: var(--gold); font: 600 9px/1 var(--tech); letter-spacing: .16em; }
.step-panel__intro h3 { margin: 8px 0; font: 500 clamp(26px, 4vw, 34px)/1.45 var(--serif); }
.step-panel__intro p { margin: 0; color: var(--body-muted); font-size: 13px; }
.step-actions { margin-top: 30px; padding-top: 24px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.step-actions .button { min-width: 150px; }
.step-actions--end { align-items: center; }
.form-progress li { color: var(--body-muted); }
.form-progress .is-current, .form-progress .is-complete { color: var(--body-text); }
.form-progress .is-complete b { border-color: var(--success); color: var(--success); }
.date-selects, .time-selects { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 8px; }
.time-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.date-selects label, .time-selects label { display: grid; gap: 6px; color: var(--body-muted); font-size: 11px; }
.date-selects select, .time-selects select { width: 100%; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--body-text); font-size: 16px; }
.unknown-time { min-height: 48px; margin: 5px 0 22px; display: flex; align-items: center; gap: 10px; color: var(--body-text); font-size: 13px; }
.unknown-time input { width: 20px; height: 20px; accent-color: var(--gold); }
.step-help { padding: 13px 15px; border-left: 2px solid var(--aqua); background: color-mix(in srgb, var(--aqua), transparent 92%); color: var(--body-muted); font-size: 12px; }
.field-error { margin: -3px 0 5px; color: var(--danger); font-size: 12px; }
.stroke-disclaimer { margin: 0 0 22px; padding: 15px; border: 1px solid var(--line); background: var(--page-bg-alt); color: var(--body-muted); font-size: 12px; }
.stroke-unit { width: 82px; }
.stroke-unit small { min-height: 30px; color: var(--body-muted); font-size: 9px; line-height: 1.35; }
.stroke-unit.is-found input { border-color: color-mix(in srgb, var(--aqua), transparent 30%); }
.stroke-unit.is-unknown input { border-color: color-mix(in srgb, var(--danger), transparent 35%); }
.form-summary { display: grid; grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; border: 1px solid var(--line); }
.form-summary div { min-height: 72px; padding: 13px 15px; border: 1px solid var(--line); margin: -1px 0 0 -1px; }
.form-summary dt { color: var(--body-muted); font-size: 10px; }
.form-summary dd { margin: 4px 0 0; font-weight: 700; }
.mobile-reading-cta { display: none; }
.method { background: var(--page-bg-alt); }
.method-grid article { background: color-mix(in srgb, var(--surface), transparent 18%); }
.human-reading { background: #bda166; }
.consultation-cta { background: var(--gold-fill); }

/* Mama-derived reusable report */
.analysis-loading { background: #0b131b; color: #edf0eb; }
.analysis-loading .eyebrow { color: #d3b477; }
.personal-report { background: var(--page-bg); }
.report-cover { position: relative; min-height: min(900px, 100dvh); padding: 110px 20px 80px; display: grid; place-items: center; overflow: hidden; background: #10181d; color: #f5f2ea; text-align: center; }
.report-cover::before, .report-cover::after { content: ""; position: absolute; inset: clamp(22px, 5vw, 66px); border: 1px solid rgba(202, 171, 111, .32); pointer-events: none; }
.report-cover::after { inset: clamp(31px, 6vw, 82px); border-color: rgba(231, 237, 232, .09); }
.report-cover__orbit { position: absolute; width: min(78vw, 680px); aspect-ratio: 1; border: 1px solid rgba(202, 171, 111, .18); border-radius: 50%; }
.report-cover__orbit::before, .report-cover__orbit::after { content: ""; position: absolute; border: 1px solid rgba(115, 185, 189, .14); border-radius: 50%; }
.report-cover__orbit::before { inset: 14%; }
.report-cover__orbit::after { inset: 35%; }
.report-cover__content { position: relative; z-index: 1; width: min(760px, calc(100% - 30px)); }
.report-cover__content > small, .report-cover__content > span { color: #c9aa6f; font: 600 9px/1.5 var(--tech); letter-spacing: .18em; }
.report-cover h1 { margin: 26px 0 8px; font: 500 clamp(40px, 8vw, 76px)/1.35 var(--serif); letter-spacing: .08em; }
.report-cover h1 small { margin-left: 7px; font-size: .28em; letter-spacing: 0; }
.report-cover h2 { margin: 28px 0 7px; color: #e4c98f; font: 500 clamp(24px, 4vw, 39px)/1.45 var(--serif); }
.report-cover__lead { width: min(700px, 100%); margin: 32px auto; color: #d5dad7; font-size: 15px; line-height: 2.05; text-align: left; }
.report-cover dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 35px 0; border-block: 1px solid rgba(255,255,255,.14); }
.report-cover dl div { padding: 16px 8px; border-right: 1px solid rgba(255,255,255,.14); }
.report-cover dl div:last-child { border: 0; }
.report-cover dt { color: #859197; font: 500 8px/1 var(--tech); letter-spacing: .15em; }
.report-cover dd { margin: 6px 0 0; color: #e9ece9; font-size: 12px; }
.report-actions { display: flex; justify-content: center; gap: 9px; }
.report-actions .button--line { color: #f5f2ea; border-color: rgba(255,255,255,.25); }
.report-index { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 50px 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.report-index a { min-height: 82px; padding: 16px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); margin: -1px 0 0 -1px; }
.report-index span { color: var(--gold); font: 600 9px/1 var(--tech); }
.report-index b { margin-top: 7px; font: 500 15px/1.5 var(--serif); }
.report-letter { width: var(--reader-width); margin: 20px auto clamp(80px, 10vw, 140px); padding: clamp(35px, 7vw, 68px); position: relative; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.report-letter::before, .report-letter::after { content: ""; position: absolute; left: clamp(20px, 5vw, 50px); right: clamp(20px, 5vw, 50px); height: 1px; background: var(--line); }
.report-letter::before { top: 22px; }.report-letter::after { bottom: 22px; }
.report-letter > span { color: var(--gold); font: 600 9px/1 var(--tech); letter-spacing: .16em; }
.report-letter h2 { margin: 18px 0 28px; font: 500 clamp(28px, 5vw, 43px)/1.55 var(--serif); }
.report-letter p { margin: 0; font-size: 1rem; line-height: 2; }
.report-section { padding: clamp(78px, 9vw, 125px) 0; border-top: 1px solid var(--line); }
.report-section--alt { background: var(--page-bg-alt); }
.report-reader { width: var(--reader-width); margin-inline: auto; }
.report-wide { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.report-section-head { margin-bottom: 44px; }
.report-section-head > span { color: var(--gold); font: 600 9px/1 var(--tech); letter-spacing: .18em; }
.report-section-head h2 { margin: 13px 0; font: 500 clamp(31px, 5vw, 50px)/1.5 var(--serif); }
.report-section-head p { max-width: 700px; margin: 0; color: var(--body-muted); }
.report-scores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.report-score { padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.report-score__head { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; }
.report-score__head strong { font-size: 15px; }.report-score__head b { color: var(--gold-pale); font: 500 27px/1 var(--tech); }
.report-score .score-track i { width: 0; transition: width 1s var(--ease); }
.report-score.is-visible .score-track i, [data-motion="off"] .report-score .score-track i { width: var(--score); }
.report-score footer { margin-top: 10px; display: flex; justify-content: space-between; color: var(--body-muted); font-size: 9px; }
.integration-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.integration-card { padding: 25px; border: 1px solid var(--line); background: var(--surface); }
.integration-card > span { color: var(--gold); font: 600 8px/1 var(--tech); letter-spacing: .14em; }
.integration-card h3 { margin: 11px 0; font: 500 22px/1.5 var(--serif); }
.integration-card p { margin: 0; color: var(--body-muted); font-size: 13px; line-height: 1.9; }
.integration-card--tension { border-left: 3px solid var(--aqua); }
.system-cards article { background: color-mix(in srgb, white, transparent 42%); }
:root[data-theme-resolved="dark"] .systems-section { background: #121d25; color: var(--body-text); }
:root[data-theme-resolved="dark"] .systems-section .result-section-head p,
:root[data-theme-resolved="dark"] .system-cards p { color: var(--body-muted); }
:root[data-theme-resolved="dark"] .system-cards article { background: rgba(255,255,255,.02); border-color: var(--line); }
:root[data-theme-resolved="dark"] .system-cards { border-color: var(--line); }
:root[data-theme-resolved="dark"] .system-cards h3,
:root[data-theme-resolved="dark"] .system-cards article > b,
:root[data-theme-resolved="dark"] .system-cards dd { color: var(--body-text); }
.report-chapters { border-top: 1px solid var(--line); }
.report-chapter { position: relative; padding: 46px 0; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 24px; border-bottom: 1px solid var(--line); }
.report-chapter > span { padding-top: 10px; color: var(--gold); font: 500 11px/1 var(--tech); }
.report-chapter h3 { margin: 0 0 16px; font: 500 clamp(24px, 4vw, 31px)/1.5 var(--serif); }
.report-chapter p { max-width: 780px; margin: 0; color: var(--body-text); font-size: 1rem; line-height: 2; }
.method-disclaimer { background: var(--surface); }
.save-reading { background: var(--surface); box-shadow: var(--shadow); }
.feedback-card { width: var(--reader-width); margin: 0 auto 110px; padding: clamp(25px, 5vw, 46px); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.feedback-card > span { color: var(--gold); font: 600 9px/1 var(--tech); letter-spacing: .16em; }
.feedback-card h2 { margin: 10px 0; font: 500 clamp(27px, 4vw, 38px)/1.5 var(--serif); }
.feedback-card > p { color: var(--body-muted); font-size: 13px; }
.star-rating { margin: 25px 0 30px; padding: 0; border: 0; }
.star-rating legend { margin-bottom: 12px; font-weight: 700; }
.star-options { display: flex; flex-wrap: wrap; gap: 6px; }
.star-options label { position: relative; cursor: pointer; }
.star-options input { position: absolute; opacity: 0; }
.star-options span { min-width: 58px; min-height: 52px; padding: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); color: #9e978b; font-size: 24px; }
.star-options span small { font: 600 10px/1 var(--tech); }
.star-options label:hover span, .star-options input:checked + span { border-color: var(--gold); background: color-mix(in srgb, var(--gold), transparent 88%); color: #b68c3f; }
.star-options input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.feedback-categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 25px; }
.feedback-categories label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.feedback-categories select { min-height: 48px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--body-text); }

/* Detail report editor and generated template */
.admin-tools { margin: 22px 0 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-tools a { min-height: 118px; padding: 22px; display: grid; align-content: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--body-text); text-decoration: none; box-shadow: var(--shadow); transition: border-color .2s ease, transform .2s ease; }
.admin-tools a:hover { border-color: var(--gold); transform: translateY(-2px); }
.admin-tools span { color: var(--gold); font: 600 9px/1 var(--tech); letter-spacing: .14em; }
.admin-tools strong { font: 500 19px/1.5 var(--serif); }
.admin-tools small { color: var(--body-muted); }
.feedback-summary { margin-bottom: 22px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.feedback-summary h2 { margin: 0 0 18px; font: 500 25px/1.4 var(--serif); }
.feedback-summary__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.feedback-summary__grid article { min-height: 104px; padding: 16px; display: grid; align-content: center; border: 1px solid var(--line); background: var(--page-bg-alt); }
.feedback-summary__grid span { color: var(--body-muted); font-size: 11px; }
.feedback-summary__grid strong { margin-top: 6px; color: var(--heading); font: 500 22px/1.25 var(--serif); }
.feedback-summary__grid small { color: var(--body-muted); }
.feedback-comment { min-width: 240px; max-width: 460px; white-space: normal; line-height: 1.7; }
.repeater { display: grid; gap: 12px; }
.repeater-row { padding: 18px; border: 1px solid var(--line); background: var(--page-bg-alt); }
.repeater-row .field:last-of-type { margin-bottom: 10px; }
.remove-row { min-height: 42px; padding: 6px 14px; border: 1px solid var(--line); background: transparent; color: var(--danger); }
.add-row { min-height: 46px; margin-top: 12px; padding: 8px 16px; border: 1px dashed var(--gold); background: transparent; color: var(--gold-pale); }
.detail-report { padding-bottom: 100px; }
.detail-report .report-letter { margin-top: 80px; }
.timeline { position: relative; border-left: 1px solid var(--gold); margin-left: 10px; }
.timeline article { position: relative; padding: 0 0 38px 35px; }
.timeline article::before { content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.timeline time { color: var(--gold-pale); font: 600 10px/1 var(--tech); letter-spacing: .12em; }
.timeline h3 { margin: 8px 0; font: 500 22px/1.5 var(--serif); }
.timeline p { margin: 0; color: var(--body-muted); line-height: 1.9; }

/* Scroll motion */
.has-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.has-js [data-reveal].is-visible { opacity: 1; transform: none; }
:root[data-motion="off"] [data-reveal],
:root[data-motion="off"] .has-js [data-reveal] { opacity: 1; transform: none; transition: none; }

@media (max-width: 900px) {
  .global-nav { background: var(--surface); color: var(--body-text); }
  .report-scores, .integration-grid { grid-template-columns: 1fr; }
  .report-index { grid-template-columns: repeat(2, 1fr); }
  .feedback-summary__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .display-settings-toggle { top: auto; bottom: calc(82px + env(safe-area-inset-bottom)); transform: none; }
  .display-settings-toggle:hover { transform: translateY(-2px); }
  .display-settings { padding-inline: 20px; }
  .hero { min-height: max(720px, 100dvh); }
  .hero::before { background: linear-gradient(180deg, rgba(249,247,241,.97), rgba(249,247,241,.83) 72%, rgba(249,247,241,.94)); }
  :root[data-theme-resolved="dark"] .hero::before { background: linear-gradient(180deg, rgba(7,15,22,.97), rgba(7,15,22,.78) 72%, rgba(7,15,22,.95)); }
  .form-progress { overflow: visible; }
  .form-progress ol { width: 100%; }
  .form-progress li span { display: none; }
  .step-actions { flex-direction: column-reverse; }
  .step-actions .button { width: 100%; }
  .step-actions--end { flex-direction: column; }
  .date-selects { grid-template-columns: 1.25fr .8fr .8fr; }
  .form-summary { grid-template-columns: 1fr; }
  .mobile-reading-cta { position: fixed; z-index: 480; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); min-height: 56px; display: none; border-radius: 7px; box-shadow: 0 10px 35px rgba(0,0,0,.22); }
  .mobile-reading-cta.is-active { display: flex; }
  .report-cover { min-height: 100dvh; padding-inline: 12px; }
  .report-cover::before { inset: 16px; }.report-cover::after { inset: 23px; }
  .report-cover dl { grid-template-columns: 1fr; }
  .report-cover dl div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .report-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .report-actions .button { padding-inline: 8px; }
  .report-index { padding: 30px 0; }
  .report-index a { min-height: 72px; padding: 12px; }
  .report-letter { width: calc(100% - 28px); padding: 38px 22px; }
  .report-reader, .feedback-card { width: calc(100% - 32px); }
  .report-wide { width: calc(100% - 28px); }
  .report-chapter { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .feedback-categories { grid-template-columns: 1fr; }
  .admin-tools { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  :root { --shell: min(100% - 24px, 1120px); }
  .site-header { padding-inline: 12px; }
  .brand { gap: 8px; letter-spacing: .12em; }
  .setting-options--4 { grid-template-columns: repeat(2, 1fr); }
  .date-selects { gap: 5px; }
  .date-selects select { padding-inline: 6px; }
  .panel { padding-inline: 13px; }
  .report-cover h1 { font-size: 38px; }
  .report-index { grid-template-columns: 1fr 1fr; width: calc(100% - 20px); }
  .star-options label { min-width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media print {
  .display-settings-toggle, .display-settings, .settings-scrim, .mobile-reading-cta,
  .feedback-card, .report-index { display: none !important; }
  .report-cover { min-height: 245mm; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-section, .report-letter, .report-chapter, .integration-card, .report-score { break-inside: avoid; }
}
