:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0b0b0e;
  color: #f6f5f7;
  --muted: #b9b7c2;
  --red: #ff665f;
  --line: #36363f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 83% 0, #361215 0, transparent 36rem); }
a { color: inherit; }
header, footer { padding: 1rem max(1.2rem, calc((100% - 68rem) / 2)); display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
header { border-bottom: 1px solid var(--line); background: #101015db; }
header > span, footer span { color: var(--muted); }
.brand { text-decoration: none; font-weight: 900; letter-spacing: .035em; }
.brand span, .tag { color: var(--red); }
main { max-width: 68rem; margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 1.2rem; }
.intro { margin-bottom: 2rem; }
.tag { letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
h1 { margin: .25em 0; font-size: clamp(2.3rem, 7vw, 5.5rem); letter-spacing: -.055em; line-height: .98; overflow-wrap: anywhere; }
h2 { font-size: 1.35rem; }
p { line-height: 1.55; }
.intro > p:last-child, .guide p, small { color: var(--muted); }
.panel { padding: clamp(.85rem, 3vw, 1.6rem); background: linear-gradient(155deg, #202028, #111116 60%); border: 1px solid #44444e; border-radius: 1rem; box-shadow: 0 1rem 4rem #0006; }
.tabs,.actions,nav { display: flex; flex-wrap: wrap; gap: .55rem; }
button, select, input, .drop label { font: inherit; }
button, select, input[type=number], .drop label { min-height: 44px; border: 1px solid #555560; border-radius: .45rem; padding: .55rem .7rem; color: inherit; background: #1d1d25; }
button:not(:disabled), .drop label, summary { cursor: pointer; }
button:disabled { opacity: .48; }
button[aria-pressed=true] { border-color: var(--red); color: var(--red); }
.primary,.drop label { background: #b8202a; border-color: #ff7775; color: #fff; font-weight: 750; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.drop { text-align: center; margin: 1rem 0; padding: 2.15rem .7rem; border: 1px dashed #686875; background: #111115; border-radius: .7rem; }
.drop.over, .drop:focus-within { border-color: var(--red); }
.drop label { display: inline-flex; align-items: center; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop p { margin: .7rem 0 .25rem; }
#queue { padding: 0; margin: 0; list-style: none; }
#queue li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border-top: 1px solid var(--line); padding: .7rem 0; }
#queue li > div { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
#queue small { display: block; }
#queue p { margin: .25rem 0 0; }
details { border-block: 1px solid var(--line); margin: .6rem 0 1rem; }
summary { padding: .8rem 0; }
.settings { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: 1rem; padding: .3rem 0 1rem; }
.settings label { display: grid; align-content: start; gap: .4rem; }
input[type=range] { accent-color: var(--red); }
.status { margin-bottom: 0; min-height: 1.6em; }
.guide { margin-top: 2.8rem; max-width: 50rem; }
.guide h2 { margin-top: 1.8rem; }
.guide nav a { border: 1px solid var(--line); padding: .55rem .7rem; border-radius: .4rem; }
footer { border-top: 1px solid var(--line); }
