:root {
  --display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body { font-family: var(--body); }
main, .shell { width: min(100%, 1180px); }
.top { gap: 18px; align-items: center; }
.top .mark, .top > a:first-child { color: #f2f5f5; font-weight: 800; text-decoration: none; letter-spacing: -.035em; white-space: nowrap; }
.top nav, .top .nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.top nav a { color: #dce5e7; text-decoration: none; font-size: .91rem; font-weight: 650; }
.top nav a:hover, .top nav a:focus-visible { color: #7ed7ca; text-decoration: underline; text-underline-offset: 5px; }

.hero h1, .intro h1, .section h2, .card h2, .mini strong, .score b, .score {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.055em;
  text-transform: none;
}
.hero h1, .intro h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: 1.02; max-width: 17ch; }
.section h2, .card h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.12; letter-spacing: -.04em; }
.score b, .score { line-height: 1; }
.tag, .eyebrow { letter-spacing: .09em; font-weight: 750; }
.panel, .card { border-radius: 18px; }
.button, button { transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover:not(:disabled), button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled, button:disabled { opacity: .55; cursor: wait; }
.row, .gate { align-items: start; }
.row > *, .gate > * { min-width: 0; }
.row > strong, .gate > strong { text-align: right; max-width: 19rem; }
.row small { margin-top: 4px; line-height: 1.5; }
.hash, #target, #site-identity { overflow-wrap: anywhere; }

.explain { color: #c1cbd1; max-width: 65ch; line-height: 1.6; }
.score-key { margin-top: 14px; color: #c1cbd1; font-size: .93rem; line-height: 1.5; max-width: 58ch; }
.score-key strong { color: #f2f5f5; }
.progress { display: none; gap: 12px; align-items: center; margin-top: 18px; color: #f2f5f5; }
.progress[aria-hidden="false"] { display: flex; }
.progress::before { content: ""; width: 18px; height: 18px; flex: none; border: 3px solid #52616d; border-top-color: #7ed7ca; border-radius: 50%; animation: checking 1s linear infinite; }
body:not(.has-evaluation) .score-panel { display: none; }
body.error-state .score-panel { display: flex; }
body:not(.has-evaluation) .below { display: none; }
body.has-evaluation #empty-preview { display: none; }
body.error-state #empty-preview { display: none; }
body:not(.has-evaluation) #report .grid, body:not(.has-evaluation) #report .result-actions { display: none !important; }
body.has-evaluation #empty-explain-link { display: none; }
#empty-preview { display: flex; flex-direction: column; justify-content: center; min-height: 350px; background: linear-gradient(145deg,#263d42,#1b252d 70%); }
#empty-preview h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; margin: 18px 0 8px; max-width: 13ch; }
#empty-preview p { color: #c1cbd1; max-width: 45ch; }
.hero-form { margin: 22px 0 0; max-width: 620px; }
.hero-form label { display: block; font-weight: 800; margin-bottom: 8px; }
.start-controls { display: flex; gap: 10px; align-items: stretch; }
.start-controls input { flex: 1; min-width: 0; border: 1px solid #71838e; border-radius: 12px; background: #2b3742; color: #f2f5f5; font: inherit; padding: 13px 14px; }
.start-controls input::placeholder { color: #b6c4ca; }
.start-controls input:focus-visible { outline: 3px solid #7ed7ca; outline-offset: 3px; }
.start-controls .button { white-space: nowrap; border-radius: 12px; }
.hero-form #start-message { min-height: 1.5em; color: #f0c477; font-size: .9rem; margin: 8px 0 0; }
.hero-copy .start-limit { font-size: .88rem; margin: 6px 0 0; max-width: 63ch; }
.hero-form[aria-busy="true"] .button { opacity: .6; cursor: wait; }
.owner-answer { border-top: 4px solid #7ed7ca; padding-top: 24px; }
.owner-answer > h2 { max-width: 18ch; }
.owner-answer > .explain { font-size: 1.1rem; max-width: 75ch; }
.owner-answer h3 { margin: 0 0 12px; font-size: 1.35rem; }
.owner-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.owner-bottom .panel { min-width: 0; }
.owner-bottom .muted { font-size: .82rem; }
.owner-step { border-top: 1px solid #52616d; padding: 14px 0; }
.owner-step:first-child { border-top: 0; }
.owner-step strong, .owner-step small { display: block; }
.owner-step small { color: #c1cbd1; overflow-wrap: anywhere; }
.owner-step p { margin: 5px 0; }
.help-link { display: inline-flex; background: #7ed7ca; color: #12221f; border-radius: 999px; padding: 12px 18px; font-weight: 800; text-decoration: none; }
.help-link:focus-visible { outline: 3px solid #f2f5f5; outline-offset: 3px; }
.technical-details { border-top: 1px solid #52616d; padding-top: 24px; }
.technical-details > summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; }
.technical-details > summary:focus-visible { outline: 3px solid #7ed7ca; outline-offset: 4px; }
@keyframes checking { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .progress::before { animation: none; border-color: #7ed7ca; } }

@media (max-width: 700px) {
  .top { align-items: flex-start; flex-direction: column; }
  .top nav, .top .nav { width: 100%; gap: 8px 16px; }
  .top .tag { display: none; }
  .hero, .intro { padding-top: 38px; }
  .hero h1, .intro h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .row, .gate { grid-template-columns: 1fr; flex-direction: column; gap: 7px; }
  .row > strong, .gate > strong { text-align: left; max-width: none; }
  .panel, .card { padding: 20px; }
  .ledger { max-height: none; }
  #empty-preview { min-height: 270px; }
  .start-controls { flex-direction: column; }
  .start-controls .button { width: 100%; }
  .owner-bottom { grid-template-columns: 1fr; }
}
 .assessment-context {margin-top: 14px; color: var(--muted);}
 .assessment-context summary {cursor: pointer; margin-bottom: 10px;}
 .assessment-context label {display: block; margin-top: 10px;}
 .assessment-context select, .assessment-context input {box-sizing: border-box; width: 100%; min-height: 44px; background: #252b32; color: #e5e8eb; border: 1px solid #4b535e; border-radius: 8px; padding: 10px;}
