:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  --bg: #101622;
  --panel: #1a2434;
  --deep: #121b29;
  --text: #f1f5fb;
  --muted: #bac7d9;
  --line: #54657d;
  --accent: #a6f0d7;
  --accent-bg: #204739;
  --focus: #fadb92;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3fa;
  --panel: #fff;
  --deep: #f7f9fc;
  --text: #18253a;
  --muted: #465972;
  --line: #8293aa;
  --accent: #0b634b;
  --accent-bg: #d9f5e9;
  --focus: #82380a;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--text) }
main, .site { max-width: 1440px; margin: auto; padding-inline: clamp(1rem, 4vw, 4rem) }
.site { min-height: 4rem; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.4rem; padding-block: .6rem; border-bottom: 1px solid var(--line) }
.site button { margin-left: auto }
.site .brand { font-weight: 800; text-decoration: none }
a { color: var(--accent); text-underline-offset: .22em }
.skip { position: absolute; top: -200px }
.skip:focus { top: 0; padding: .75rem; background: var(--deep); z-index: 10 }
.intro { padding-block: clamp(1.4rem, 5vw, 4rem) 1.3rem }
.intro p { max-width: 47rem; color: var(--muted); font-size: 1.08rem }
h1 { font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.07; letter-spacing: -.045em; margin: 0 0 .7rem }
h1 span { color: var(--accent) }
h2 { font-size: 1.35rem }
h3 { font-size: 1.06rem; margin-block: 1.1rem .35rem }
p, li { line-height: 1.55 }
p { margin: .45rem 0 .8rem }
button, input, select, textarea { font: inherit; color: inherit; background: var(--deep); border: 1px solid var(--line); border-radius: .55rem; padding: .55rem .7rem; min-width: 0 }
button { cursor: pointer; min-height: 2.55rem; font-size: .95rem; font-weight: 630 }
button:hover { border-color: var(--accent) }
button.primary, button[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--accent) }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px }
label { margin-block: .65rem .28rem; font-size: .9rem; font-weight: 650 }
select, input[type="file"] { max-width: 100% }
textarea { resize: vertical; font-family: ui-monospace, monospace; font-size: .9rem; line-height: 1.55 }
pre { max-height: 32rem; overflow: auto; margin: .65rem 0; padding: .8rem; border-radius: .65rem; background: var(--deep); font: .92rem/1.6 ui-monospace, monospace }
.controls, .tabs { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem }
.controls { margin-block: .65rem }
.tabs { padding-bottom: .4rem }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); padding: clamp(1rem, 2.3vw, 1.8rem); overflow-wrap: anywhere }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start }
details { border-top: 1px solid var(--line); padding-block: .5rem; margin-block: .4rem }
summary { cursor: pointer; color: var(--accent) }
#status { min-height: 1.5rem; color: var(--accent); margin: .45rem 0 }
#workspace { margin-bottom: 1rem }
footer { margin-bottom: 2rem }
.help-article { margin-block: 1rem; max-width: 62rem; scroll-margin-top: 1rem }
.help-article h2 { margin-top: 0 }
@media (max-width: 820px) { .split { grid-template-columns: 1fr } }
@media (max-width: 530px) { .site button { margin-left: 0 } .tabs button { flex: 1 1 44% } }
#workspace h2 { margin-top: 0 }
.field-help { margin: .25rem 0 1.2rem }
.field-help p { margin: .45rem 0 }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .55rem 1.3rem }
label { display: block }
textarea { display: block; width: 100%; box-sizing: border-box }
[hidden] { display: none !important }
#tooltip { position: fixed; z-index: 9; max-width: min(25rem, calc(100vw - 2rem)); padding: .5rem .75rem; font-size: .9rem; background: #14233c; color: #fff; border: 1px solid #9abbe7; border-radius: .5rem; pointer-events: none }
.diff-add, .diff-remove { text-decoration-thickness: 2px }
.diff-add { border-left: .25rem solid #2bac89; padding-left: .5rem }
.diff-remove { border-left: .25rem solid #e57878; padding-left: .5rem }
.fixture { white-space: pre-wrap; overflow-wrap: anywhere }
input[type="search"], input[type="text"] { max-width: 100%; box-sizing: border-box }
.anatomy { margin-block: 1rem }
.anatomy button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: .2em }
.rubric { width: 100%; border-collapse: collapse }
.rubric th, .rubric td { padding: .3rem; text-align: left }
.rubric input { width: 4rem }
footer { margin-top: 2rem }
