:root {
  color-scheme: light;
  --ink: #17283b;
  --muted: #4c5c6e;
  --navy: #101f30;
  --navy-deep: #0c1928;
  --paper: #fffdfa;
  --canvas: #f5f2ed;
  --line: #dfd9cf;
  --gold: #e8b763;
  --gold-light: #fbf0dc;
  --gold-dark: #72521f;
  --heading: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
button, select, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .21em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #886021; outline-offset: 3px; }
[data-focus]:focus { outline: none; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { color: #f9f6f1; background: var(--navy-deep); border-bottom: 1px solid #324154; }
.header-inner, .brand { display: flex; align-items: center; }
.header-inner { min-height: 72px; justify-content: space-between; gap: 18px; }
.brand { gap: 12px; }
.monogram { width: 42px; height: 42px; display: grid; place-items: center; color: var(--gold); border: 1px solid #ad9368; border-radius: 8px; font: bold 1.05rem var(--heading); }
.brand strong { display: block; font-size: 1rem; }
.brand small { display: block; color: #c9d4df; font-size: .66rem; letter-spacing: .11em; }
.site-header a { color: #e5eaf0; font-size: .86rem; font-weight: 650; }
.site-header a:focus-visible { outline-color: var(--gold); }
.hero { background: radial-gradient(ellipse at 87% 35%, #26394d, var(--navy) 62%); color: var(--paper); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 292px; align-items: center; column-gap: 38px; padding-block: 48px 54px; }
.kicker { display: inline-flex; gap: 10px; align-items: center; color: #f4cb8a; text-transform: uppercase; letter-spacing: .11em; font-weight: 750; font-size: .77rem; }
.kicker::before { content: ''; width: 17px; height: 1px; background: currentColor; }
h1, h2 { margin: 0; font-family: var(--heading); font-weight: 500; line-height: 1.12; }
h1 { margin: 13px 0 16px; max-width: 760px; font-size: clamp(2.4rem, 5.2vw, 4.12rem); letter-spacing: -.042em; }
.hero p { color: #e0e8ef; font-size: 1.08rem; margin: 0; max-width: 620px; }
.hero-terms { padding: 6px 16px; margin: 0; border: 1px solid #61768b8a; border-radius: 12px; background: #142438aa; }
.hero-terms div { display: grid; grid-template-columns: 63px 1fr; align-items: baseline; gap: 9px; padding: 9px 0; }
.hero-terms div + div { border-top: 1px solid #62758a75; }
.hero-terms dt { color: #f4cb8a; font-size: .84rem; font-weight: 750; letter-spacing: .06em; }
.hero-terms dd { color: #e0e8ef; font-size: .91rem; line-height: 1.4; margin: 0; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 266px; gap: 22px; align-items: start; padding-block: 30px 38px; }
.workspace, .guide { border: 1px solid var(--line); background: var(--paper); border-radius: 14px; }
.workspace { scroll-margin-block: 16px; padding: 26px; min-width: 0; }
.progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 0 17px; margin: 0; list-style: none; border-bottom: 1px solid var(--line); }
.progress li { display: flex; gap: 7px; align-items: center; font-size: .88rem; font-weight: 650; color: var(--muted); }
.progress span { flex: 0 0 27px; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: #ede8df; font-size: .74rem; }
.progress .current { color: var(--ink); }
.current span { color: white; background: var(--navy); }
.done span { color: var(--gold-dark); background: var(--gold-light); }
.panel-top { margin-block: 22px 18px; }
.panel-top h2, .summary h2 { font-size: clamp(1.86rem, 3.7vw, 2.45rem); letter-spacing: -.029em; }
.panel-top p, .summary p { color: var(--muted); margin: 7px 0 0; }
.decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 16px; margin-block: 12px; }
.decision-grid .field { display: flex; flex-direction: column; min-width: 0; }
.decision-grid .field select, .decision-grid .field input, .decision-grid .field .duration { margin-top: auto; }
.field { min-width: 0; }
.field + .field, .decision-grid + .field, .field + .decision-grid { margin-top: 13px; }
.decision-grid .field + .field { margin-top: 0; }
.field label { display: block; font-weight: 740; line-height: 1.3; font-size: .96rem; }
.hint { color: var(--muted); margin: 4px 0 8px; font-size: .9rem; }
.field-heading { font-size: 1.13rem; margin: 19px 0 5px; padding-top: 16px; border-top: 1px solid var(--line); }
.grid-hint { margin-bottom: 10px; }
input, select { background: #fff; color: var(--ink); width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #baafa1; border-radius: 7px; }
select { padding-right: 28px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234c5c6e' stroke-width='1.5'/%3E%3C/svg%3E"); background-size: 10px; background-position: right 11px center; background-repeat: no-repeat; }
input::placeholder { color: #667588; opacity: 1; }
input[aria-invalid], select[aria-invalid] { border-color: #9e3532; }
.duration { display: flex; align-items: center; gap: 8px; }
.duration input { width: 105px; }
.duration span { color: var(--muted); font-size: .9rem; }
.error { color: #902c2c; font-weight: 650; margin: 10px 0 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 19px; }
.button { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); min-height: 44px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; font-size: .91rem; font-weight: 750; text-align: center; }
.primary { background: var(--gold); }
.primary:hover { background: #efc57b; }
.secondary { background: var(--paper); border-color: #c9c1b4; }
.secondary:hover { background: #f3efe8; }
.text-button { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--gold-dark); }
.guide { padding: 20px; }
.guide h2 { font-size: 1.5rem; }
.guide-item { margin-top: 15px; }
.guide-item + .guide-item, .privacy { padding-top: 12px; border-top: 1px solid var(--line); }
.guide-item strong { font-size: .93rem; }
.guide-item p, .privacy { color: var(--muted); margin: 3px 0 0; font-size: .88rem; }
.privacy { margin-top: 14px; }
.methodology { border-top: 1px solid var(--line); padding-block: 26px 34px; scroll-margin-block: 16px; }
.methodology h2 { font-size: 1.8rem; }
.methodology p { color: var(--muted); margin: 10px 0; max-width: 760px; }
.method-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 12px 0 0; }
.method-list dt { font-weight: 740; }
.method-list dd { color: var(--muted); margin: 4px 0 0; }
.sources { padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 15px; list-style: none; font-size: .86rem; font-weight: 650; }
.footer { background: var(--navy-deep); color: #e2e8ef; padding-block: 15px; font-size: .85rem; }
.footer span { color: var(--gold); margin-inline: 5px; }

.summary { padding: 13px 15px; border: 1px solid var(--line); border-left: 4px solid #566e85; border-radius: 8px; background: #f9fafb; }
nav + .summary { margin-top: 18px; }
.summary h2 { margin-top: 4px; }
.summary .kicker { color: var(--muted); }
.tone-critical { background: #fdf2e6; border-left-color: #a87434; }
.tone-review { background: #f8f2e7; border-left-color: #a3844b; }
.tone-below { background: #edf4ed; border-left-color: #557750; }
.checkpoint-value { display: flex; flex-wrap: wrap; gap: 9px; align-items: baseline; margin-top: 9px; }
.checkpoint-value span, .metric > span { color: var(--gold-dark); font-size: .8rem; font-weight: 760; }
.checkpoint-value strong { font-size: 1.2rem; }
.notes { padding: 0 0 0 19px; margin: 9px 0 0; }
.notes li + li { margin-top: 5px; }
.inline-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 11px; margin: 0 0 13px; border: 1px solid #e6d9bf; border-radius: 7px; background: #fbf4e7; }
.inline-summary span { color: var(--muted); font-size: .92rem; }
.inline-summary.single { display: block; }
.inline-summary.single strong { margin-right: 8px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.metric { border: 1px solid var(--line); background: #faf8f3; border-radius: 8px; padding: 10px; min-width: 0; }
.metric strong, .metric small { display: block; margin-top: 4px; }
.metric strong { line-height: 1.2; font-size: 1.3rem; }
.metric small { color: var(--muted); font-size: .84rem; }
.result-section { margin-top: 17px; }
.result-section h3 { margin: 0; font-size: 1.06rem; }
.verification { font-size: .95rem; color: var(--muted); margin: 15px 0 0; }
.feedback { color: #41603c; font-size: .9rem; margin: 6px 0 0; }
.feedback:empty { margin: 0; }
.summary ~ .actions { justify-content: flex-start; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 246px; gap: 19px; }
  .page-grid { grid-template-columns: minmax(0, 1fr) 215px; gap: 15px; }
  .workspace, .guide { padding: 17px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .hero-inner, .page-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-block: 28px 32px; }
  .hero-terms { display: none; }
  .page-grid { padding-top: 18px; }
  .method-list { grid-template-columns: 1fr; }
}
@media (max-width: 510px) {
  .decision-grid, .metrics { grid-template-columns: 1fr; }
  .workspace, .guide { padding: 14px; }
  .header-inner { gap: 8px; }
  .site-header a { font-size: .76rem; }
  .brand { gap: 7px; }
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .56rem; }
  .monogram { width: 35px; height: 35px; }
}
