:root {
  color-scheme: light;
  --ink: #11151c;
  --paper: #f3f0e9;
  --panel: #fbfaf6;
  --line: #cfc9bd;
  --muted: #62666c;
  --cobalt: #2f64d6;
  --error: #a5342e;
  --success: #206d4c;
  font-family: Helvetica, "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.skip-link { position: fixed; z-index: 30; top: -5rem; left: 1rem; padding: .75rem 1rem; color: #fff; background: var(--ink); }
.skip-link:focus { top: 1rem; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 49.94%, rgba(17,21,28,.05) 49.94% 50.06%, transparent 50.06%),
    var(--paper);
  font-family: Helvetica, "Hiragino Mincho ProN", "Yu Mincho", serif;
}
button, input, select { font: inherit; }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 5vw;
  border-top: 6px solid var(--cobalt);
  border-bottom: 1px solid var(--line);
  background: rgba(243,240,233,.94);
}
.brand { color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .14em; }
.brand span, .masthead p { color: var(--muted); font-size: .7rem; letter-spacing: .18em; }
.masthead p { margin: 0; }
main { width: min(1440px, 92vw); margin: 0 auto; }
.hero {
  min-height: 380px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 7vw;
  align-items: end;
  padding: 86px 0 66px;
}
.eyebrow, .panel-number, .result-type {
  margin: 0 0 22px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7.4vw, 7.5rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
h1 em { color: var(--cobalt); font-style: normal; }
.lead { max-width: 36rem; margin: 0 0 .5rem; color: #4d5056; font-size: 1.05rem; line-height: 2; }
.workspace { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.panel { min-height: 720px; padding: clamp(28px, 4vw, 56px); background: var(--panel); }
.input-panel { position: relative; }
.panel-number { padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
label { display: block; margin: 27px 0 9px; font-size: .92rem; font-weight: 700; letter-spacing: .04em; }
label span { color: var(--error); font-size: .72rem; margin-left: .5rem; }
input, select {
  width: 100%; min-height: 54px; padding: 0 16px;
  border: 1px solid #a9a59d; border-radius: 0;
  background: #fff; color: var(--ink);
  font-family: Helvetica, "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1rem;
}
input:focus, select:focus, button:focus-visible { outline: 3px solid rgba(47,100,214,.3); outline-offset: 2px; }
textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(47,100,214,.55); outline-offset: 3px; }
[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { min-height: 1em; margin: 5px 0 0; color: var(--error); font-size: .78rem; }
.error-summary { padding: 14px 16px; border-left: 4px solid var(--error); background: #f8e9e5; color: #6f211e; line-height: 1.6; }
.optional-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.primary, .action-bar button {
  min-height: 50px; border: 1px solid var(--ink); border-radius: 0;
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.primary { width: 100%; margin-top: 34px; background: var(--ink); color: #fff; font-weight: 700; letter-spacing: .08em; }
.primary:hover, .action-bar button:hover { transform: translateY(-2px); }
.privacy-note { margin: 14px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.output-panel { background: #11151c; color: #f7f5ef; }
.output-panel .panel-number { border-color: #3b414c; color: #9ca6b9; }
.empty-state { min-height: 560px; display: grid; align-content: center; justify-items: center; text-align: center; }
.empty-state > p { margin: 0; color: var(--cobalt); font-size: 9rem; line-height: .9; }
.empty-state h2 { max-width: 26rem; margin: 24px 0 14px; font-size: 2rem; font-weight: 500; line-height: 1.5; }
.empty-state span { max-width: 29rem; color: #aeb5c1; line-height: 1.8; }
.result-head { display: grid; grid-template-columns: 1fr 170px; gap: 24px; align-items: end; margin-bottom: 28px; }
.result-type { margin-bottom: 10px; color: #87aafa; }
.result-head h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 500; line-height: 1.25; }
.result-head p:last-child { margin: 12px 0 0; color: #aeb5c1; }
.progress-wrap { text-align: right; }
.progress-wrap strong { display: block; margin-bottom: 9px; font-size: 1.35rem; }
.progress-track { height: 3px; background: #3d4553; }
.progress-track span { display: block; width: 0; height: 100%; background: #87aafa; transition: width .25s ease; }
.checklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid #3b414c; }
.checklist li { border-bottom: 1px solid #3b414c; }
.checklist label {
  display: grid; grid-template-columns: 28px 70px 1fr; gap: 14px; align-items: start;
  margin: 0; padding: 17px 0; cursor: pointer; font-weight: 400; letter-spacing: 0;
}
.checklist input { width: 20px; min-height: 20px; margin: 1px 0 0; accent-color: #87aafa; }
.check-category { margin-left: 0; color: #8fa4cf; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.check-text { margin-left: 0; color: #f7f5ef; font-size: .92rem; line-height: 1.55; }
.checklist input:checked ~ .check-text { color: #87909e; text-decoration: line-through; }
.action-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; }
.action-bar button { padding: 10px 13px; background: transparent; border-color: #77808e; color: #fff; }
.action-bar .quiet { border-color: transparent; color: #aeb5c1; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 5vw 42px; color: var(--muted); font-size: .72rem; letter-spacing: .1em; }
#status-message[data-tone="success"] { color: var(--success); }
#status-message[data-tone="error"] { color: var(--error); }
@media (max-width: 820px) {
  .masthead { min-height: 64px; padding: 0 20px; }
  .masthead p { display: none; }
  main { width: 100%; }
  .hero { min-height: 0; display: block; padding: 64px 22px 46px; }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .lead { margin-top: 34px; font-size: .98rem; }
  .workspace { display: block; border-left: 0; border-right: 0; }
  .panel { min-height: 0; padding: 34px 22px 42px; }
  .optional-grid { grid-template-columns: 1fr; gap: 0; }
  .empty-state { min-height: 420px; }
  .empty-state > p { font-size: 7rem; }
  .empty-state h2 { font-size: 1.45rem; }
  .result-head { grid-template-columns: 1fr; }
  .progress-wrap { text-align: left; }
  .checklist label { grid-template-columns: 24px 54px 1fr; gap: 10px; }
  .action-bar { grid-template-columns: 1fr; }
  footer { padding: 22px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.tools-return{display:inline-flex;align-items:center;gap:.35rem;color:inherit;font-size:.78rem;font-weight:700;text-decoration:none}
.tools-return:hover,.tools-return:focus-visible{text-decoration:underline}
.ai-secretary-note{max-width:46rem;margin-top:1rem;padding:.8rem 1rem;border-left:3px solid currentColor;font-size:.84rem;line-height:1.7;opacity:.8}
.related-exit{display:grid;gap:.7rem;margin-top:1.5rem;padding:1.2rem;border:1px solid currentColor}
.related-exit[hidden]{display:none!important}
.related-exit p{margin:0;font-weight:700}
.related-exit a{color:inherit;font-weight:700;text-underline-offset:.25em}
@media(max-width:620px){.tools-return{font-size:.72rem}.related-exit{padding:1rem}}
