:root { color-scheme: dark; --bg: #0d1117; --panel: #161b22; --line: #30363d; --text: #e6edf3; --muted: #9da7b3; --accent: #f0b429; --good: #3fb950; --bad: #f85149; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at top, #18202b, var(--bg) 36rem); font: 16px/1.55 system-ui, sans-serif; }
a { color: inherit; }
header { border-bottom: 1px solid var(--line); background: rgb(13 17 23 / 90%); position: sticky; top: 0; z-index: 2; backdrop-filter: blur(12px); }
nav, main { width: min(1120px, calc(100% - 2rem)); margin: auto; }
nav { min-height: 64px; display: flex; align-items: center; gap: 1.25rem; }
.brand { color: var(--accent); font-weight: 900; text-decoration: none; letter-spacing: .08em; }
.links { display: flex; flex: 1; gap: 1rem; }
.links a { color: var(--muted); text-decoration: none; }
button, input, select, textarea, .actions a { font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); padding: .65rem .85rem; }
button { cursor: pointer; }
button.active, .actions .primary { border-color: var(--accent); color: #0d1117; background: var(--accent); }
.language { display: flex; gap: .35rem; }
.hero { padding: 1.5rem 0 .5rem; }
.eyebrow { color: var(--accent); letter-spacing: .14em; font-weight: 700; }
h1 { max-width: 760px; margin: .3rem 0; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; }
.hero > p:last-child { color: var(--muted); font-size: 1.1rem; }
.toolbar { display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.toolbar label { flex: 1; }
input { width: 100%; min-height: 44px; }
.filters { display: flex; gap: .4rem; }
#status { color: var(--muted); min-height: 1.5rem; }
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; padding-bottom: 5rem; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; background: rgb(22 27 34 / 92%); }
.card-head { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .86rem; }
.validation[data-status='passed'] { color: var(--good); }
.validation[data-status='failed'] { color: var(--bad); }
.card h2 { margin: .8rem 0 .3rem; }
.description { min-height: 3em; color: var(--muted); }
dl div { display: grid; grid-template-columns: 7.5rem 1fr; border-top: 1px solid var(--line); padding: .45rem 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.actions a { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.intro-actions { margin: .5rem 0 1rem; }
.help { border-block: 1px solid var(--line); padding: 1rem 0; margin: 1rem 0; }
summary { cursor: pointer; color: var(--accent); }
.sort-label { flex: 0 !important; }
.play-notes { border-left: 3px solid var(--accent); padding-left: .7rem; }
.permalink { text-decoration: none; }
.card { scroll-margin-top: 8rem; overflow-wrap: anywhere; }
.submission { max-width: 820px; padding-bottom: 4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid label { display: flex; flex-direction: column; gap: .4rem; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid small, .muted { color: var(--muted); }
textarea { width: 100%; resize: vertical; min-height: 7rem; }
#manifest { min-height: 20rem; font-family: monospace; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.error { color: var(--bad); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { nav { flex-wrap: wrap; padding: .7rem 0; } .links { order: 3; flex-basis: 100%; overflow-x: auto; } .toolbar { align-items: stretch; flex-direction: column; } .filters { overflow-x: auto; } }
