:root { color-scheme: dark; font-family: Inter, system-ui, sans-serif; color: #eeeaf1; background: #15131a; --panel: #201d27; --line: #393343; --muted: #b9afc4; --accent: #d9bcff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(1rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
header a { color: inherit; text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -.04em; }
header a span { color: var(--accent); }
header button { margin-left: 1rem; }
main { max-width: 1280px; margin: auto; padding: 1.5rem clamp(1rem, 4vw, 3rem); }
#workspace { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(0, 3fr); gap: 1.5rem; align-items: start; }
#login, aside, .panel { background: var(--panel); border: 1px solid var(--line); padding: 1.4rem; border-radius: .85rem; }
#login { max-width: 30rem; margin: 3rem auto; }
h1, h2 { margin: 0 0 .8rem; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: 1.2rem; }
p { margin: .5rem 0 1rem; color: var(--muted); overflow-wrap: anywhere; }
#status:empty { display: none; }
#status { color: var(--accent); }
.panel { margin-top: 1rem; }
nav, form, label { display: grid; gap: .55rem; }
nav { margin-bottom: 1.25rem; }
aside nav { min-width: 0; }
aside nav button { overflow-wrap: anywhere; }
button, input, select { font: inherit; color: inherit; border: 1px solid var(--line); background: #17141e; padding: .55rem .7rem; border-radius: .45rem; min-width: 0; }
button { cursor: pointer; font-weight: 600; }
button:hover, button[aria-current] { border-color: var(--accent); }
button:disabled { cursor: wait; opacity: .55; }
form button { background: #39284e; }
label { color: var(--muted); }
ul { padding: 0; list-style: none; margin: 0; }
li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; padding: .75rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
audio { max-width: 100%; width: 21rem; }
code { color: var(--accent); overflow-wrap: anywhere; }
@media (max-width: 700px) { #workspace { grid-template-columns: 1fr; } }
#demo { margin: 0 0 1.5rem; }
#demo-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
#demo-results:empty, #demo-outcome:empty { display: none; }
#demo-results { padding-left: 1.5rem; }
#demo-results li { display: list-item; }
#demo-outcome { color: var(--accent); font-weight: 700; }

header > a { display: inline-flex; align-items: center; gap: .35rem; }
header > a img { margin-right: .35rem; border-radius: .35rem; }
