:root { color-scheme: light dark; }
body { font-family: system-ui, sans-serif; margin: 0; padding: 1rem; line-height: 1.45; }
.topbar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
h1 { margin: 0; font-size: 1.5rem; }
h2 { margin-top: 0; font-size: 1.15rem; }
h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.subtitle, .note, .source { opacity: 0.75; font-size: 0.9rem; }
.session-state { font-size: 0.9rem; opacity: 0.85; }
.panel { border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 8px; padding: 1rem; margin: 1rem 0; }
form label { display: block; margin: 0.5rem 0; }
form input, form select { margin-left: 0.5rem; padding: 0.3rem 0.5rem; min-width: 16rem; }
button { padding: 0.35rem 0.8rem; cursor: pointer; }
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0 0; }
.tabs button.active { font-weight: 700; text-decoration: underline; }
.kv dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; }
table { border-collapse: collapse; width: 100%; margin: 0.5rem 0; }
th, td { border: 1px solid color-mix(in srgb, currentColor 25%, transparent); padding: 0.35rem 0.5rem; text-align: left; vertical-align: top; }
.error { color: #c0392b; font-weight: 600; }
.result { margin-top: 0.5rem; min-height: 1.2em; }
.inline-form { margin-top: 1rem; border-top: 1px dashed color-mix(in srgb, currentColor 30%, transparent); padding-top: 0.5rem; }
code { font-size: 0.85em; }
