:root {
  --bg: #0a0f1a;
  --panel: #101827;
  --panel-2: #0d1420;
  --line: #22314a;
  --text: #e8eef7;
  --muted: #a9b8cc;
  --accent: #6ee7a0;
  --accent-2: #7dd3fc;
  --fail: #ff9d8a;
  --pass: #6ee7a0;
  --radius: 14px;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px;
}
.skip {
  position: absolute; left: -999px; top: 0; background: var(--accent-2); color: #04263b;
  padding: .5rem 1rem; z-index: 10; font-weight: 600;
}
.skip:focus { left: 0; }
header.site {
  border-bottom: 1px solid var(--line); background: var(--panel-2);
  position: sticky; top: 0; z-index: 5;
}
header.site .wrap { display: flex; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: .04em; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand .pron { font-weight: 400; color: var(--muted); font-size: .8rem; letter-spacing: 0; }
nav.main a { color: var(--muted); text-decoration: none; margin-right: 1.1rem; font-size: .95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 1.2rem 1.25rem; }
main .wrap { padding-top: 2rem; padding-bottom: 3rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin: .2rem 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; margin: 2.2rem 0 .7rem; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
p { max-width: 68ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); font-size: .95rem; }
.btn {
  display: inline-block; background: var(--accent); color: #052e16; border: 0; cursor: pointer;
  font-weight: 700; padding: .65rem 1.2rem; border-radius: 999px; font-size: .95rem;
  text-decoration: none; margin: .25rem .4rem .25rem 0;
}
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn.secondary { background: transparent; color: var(--accent-2); border: 1px solid var(--accent-2); }
select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: .55rem .7rem; font-size: .95rem; max-width: 100%;
}
#scenario-select { width: min(530px, 100%); min-height: 2.45rem; }
table { border-collapse: collapse; width: 100%; margin: .8rem 0 1.2rem; font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
th { background: var(--panel); }
.table-scroll {
  max-width: 100%; overflow-x: auto; overflow-y: hidden; margin: .8rem 0 1.2rem;
  scrollbar-color: var(--line) var(--panel-2); scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.table-scroll:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.table-scroll table { width: max-content; min-width: 100%; margin: 0; }
.table-scroll::-webkit-scrollbar { height: .5rem; }
.table-scroll::-webkit-scrollbar-track { background: var(--panel-2); }
.table-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
#results h2 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.diagnostics { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .8rem; }
.diagnostics h4 { font-size: .95rem; margin: 0 0 .45rem; }
.diag-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem .85rem; margin: 0; }
.diag-list dt { color: var(--muted); font-weight: 600; text-transform: capitalize; }
.diag-list dd { margin: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.small { font-size: .85rem; color: var(--muted); }
.verdict { border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.2rem 0; border: 1px solid var(--line); }
.verdict-pass { border-color: #2c5c40; background: #0d1f16; }
.verdict-fail { border-color: #6e352a; background: #221110; }
.verdict-word { font-size: 1.25rem; font-weight: 800; }
.verdict-pass .verdict-word { color: var(--pass); }
.verdict-fail .verdict-word { color: var(--fail); }
details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.1rem; margin: 1rem 0; }
details summary { cursor: pointer; font-weight: 600; }
.tag {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .05rem .6rem;
  font-size: .78rem; color: var(--muted); margin-right: .4rem;
}
.mode { font-weight: 600; }
.synthetic { border-left: 3px solid var(--accent-2); padding-left: .8rem; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
footer.site .wrap { padding-top: 1.4rem; padding-bottom: 2rem; }
@media (max-width: 640px) {
  table { font-size: .82rem; }
  th, td { padding: .35rem .4rem; }
  header.site .wrap { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
