: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 { font: inherit; 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) 283px; 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-main p { color: #e0e8ef; font-size: 1.08rem; margin: 0; max-width: 630px; }
.hero-rules { padding: 18px 17px; border: 1px solid #61768b8a; border-radius: 12px; background: #142438aa; }
.hero-rules > p { font-size: .8rem; color: #ecd0a3; margin: 0 0 10px; font-weight: 700; }
.rule-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.rule-line + .rule-line { border-top: 1px solid #62758a75; }
.rule-line span { width: 24px; height: 24px; border-radius: 5px; background: #edbe702e; color: #ffdb9a; display: grid; place-items: center; flex-shrink: 0; font-size: .8rem; font-weight: 750; }
.rule-line strong { font-size: .92rem; line-height: 1.35; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 276px; gap: 22px; align-items: start; padding-block: 31px 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(4, minmax(0, 1fr)); gap: 8px; padding: 0 0 18px; margin: 0; list-style: none; border-bottom: 1px solid var(--line); }
.progress li { display: flex; gap: 7px; align-items: center; font-size: .87rem; font-weight: 650; color: var(--muted); }
.step-number { 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 .step-number { color: white; background: var(--navy); }
.done .step-number { color: var(--gold-dark); background: var(--gold-light); }
.panel-top { margin-block: 23px 20px; }
.panel-top h2, .result-top h2 { font-size: clamp(1.86rem, 3.7vw, 2.45rem); letter-spacing: -.029em; }
.panel-top p, .result-top p { color: var(--muted); margin: 7px 0 0; }
.field, .mode-pick { min-width: 0; margin: 0; position: relative; border: 0; padding: 0; }
.field + .field, .mode-pick + .field { margin-top: 23px; }
.field legend, .mode-pick legend { padding: 0; font-weight: 740; line-height: 1.36; }
.mode-pick { background: #faf4e9; padding: 4px 11px 11px; border: 1px solid #e8d9bf; border-radius: 9px; }
.mode-pick legend { padding-inline: 5px; }
.hint { color: var(--muted); font-size: .95rem; margin: 6px 0 10px; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mode-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 8px 10px; background: var(--paper); border: 1px solid #c9c1b4; border-radius: 7px; font-size: .9rem; font-weight: 650; cursor: pointer; line-height: 1.24; }
.choice:hover { border-color: #9c8057; }
.choice input { margin: 0; flex: 0 0 auto; width: 16px; height: 16px; accent-color: #78531d; }
.choice:has(input:checked) { border-color: #a57731; background: #fcf1db; }
.choice:has(input:focus-visible) { outline: 2px solid #886021; outline-offset: 2px; }
.article { color: var(--muted); margin: 4px 0 0; font-size: .78rem; }
.examples { border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; margin: 0 0 8px; font-size: .9rem; background: #faf8f4; }
.examples summary { cursor: pointer; font-weight: 650; }
.examples ul { padding-left: 19px; margin: 8px 0 1px; color: var(--muted); }
.examples li + li { margin-top: 5px; }
.invalid .choice { border-color: #a33535; }
.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: 16px; margin-top: 23px; }
.button { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); min-height: 44px; padding: 8px 14px; 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: 16px; }
.guide-item + .guide-item { padding-top: 13px; border-top: 1px solid var(--line); }
.guide-item strong { font-size: .93rem; }
.guide-item p { color: var(--muted); margin: 3px 0 0; font-size: .88rem; }
.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: 9px 0; max-width: 770px; }
.sources { padding: 0; margin: 15px 0 0; display: flex; flex-wrap: wrap; gap: 6px 15px; list-style: none; font-size: .85rem; font-weight: 650; }
.footer { background: var(--navy-deep); color: #e2e8ef; padding-block: 16px; font-size: .85rem; }
.footer span { color: var(--gold); margin-inline: 4px; }

.series-note, .follow-up { padding: 11px 14px; border: 1px solid #e5d0aa; border-radius: 8px; background: #fdf5e5; }
.series-note { margin-bottom: 14px; }
.series-note h3, .subheading, .result-section h3 { margin: 0; font-size: 1.02rem; }
.series-note p { color: var(--muted); margin: 3px 0 0; }
.subheading { margin-top: 23px; margin-bottom: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.result-top { padding: 13px 15px 15px; border: 1px solid var(--line); border-left: 4px solid #566e85; border-radius: 8px; background: #f9fafb; }
.result-top h2 { margin-top: 4px; }
.result-top .kicker { color: var(--muted); }
.tone-major { background: #fdf0eb; border-left-color: #9f4f40; }
.tone-review { background: #fdf5e5; border-left-color: #a77726; }
.tone-below { background: #f0f5ef; border-left-color: #586e4c; }
.result-section { margin-top: 19px; }
.result-section > ul:not(.criteria) { padding-left: 19px; margin: 5px 0 0; }
.result-section > ul:not(.criteria) li + li { margin-top: 4px; }
.criteria { list-style: none; padding: 0; margin: 5px 0 0; }
.criteria li { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding: 8px 0; }
.criteria strong { display: block; font-size: .93rem; }
.criteria small { display: block; color: var(--muted); font-size: .78rem; }
.status { flex-shrink: 0; background: #edeaf0; color: #414654; padding: 4px 7px; border-radius: 5px; font-size: .81rem; font-weight: 650; }
.status-yes { background: #e6eee0; color: #36502f; }
.status-unknown { background: #f9eed6; color: #684817; }
.deadline-list { padding: 0; list-style: none; margin: 5px 0 10px; }
.deadline-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.deadline-list p, .deadline-list small { margin: 3px 0 0; display: block; }
.deadline-list small { font-size: .9rem; color: var(--muted); }
.channel, .disclaimer { color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.answer-log { margin: 8px 0 0; }
.answer-log > div { display: grid; grid-template-columns: 1fr 6rem; gap: 9px; padding: 5px 0; }
.answer-log dd { margin: 0; font-weight: 650; justify-self: end; }
.result-actions { justify-content: flex-start; margin-top: 12px; }
.feedback { color: #41603c; margin: 5px 0 0; font-size: .9rem; }
.feedback:empty { margin: 0; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 225px; gap: 20px; }
  .page-grid { grid-template-columns: minmax(0, 1fr) 219px; gap: 15px; }
  .workspace, .guide { padding: 18px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .hero-inner, .page-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-block: 31px 36px; }
  .hero-rules { display: none; }
  .page-grid { padding-top: 18px; }
}
@media (max-width: 430px) {
  .workspace, .guide { padding: 14px; }
  h1 { font-size: 2.35rem; }
  .progress li { flex-direction: column; text-align: center; line-height: 1.2; font-size: .76rem; gap: 5px; }
  .progress { gap: 5px; }
  .mode-choices { grid-template-columns: 1fr; }
  .site-header a { font-size: .76rem; }
  .brand { gap: 7px; }
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .56rem; }
  .monogram { width: 35px; height: 35px; }
}
