:root {
  color-scheme: dark;
  --bg: #171317;
  --card: #251e23;
  --soft: #30252b;
  --border: #45343d;
  --text: #f8f0f3;
  --muted: #b6a0a9;
  --accent: #d99aaa;
  --accent-bright: #f5b9c8;
  --danger: #e05263;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: radial-gradient(ellipse at 12% 0%, rgb(217 154 170 / .14), transparent 38rem), radial-gradient(ellipse at 100% 100%, rgb(166 101 122 / .10), transparent 42rem), var(--bg); color: var(--text); }
a { color: inherit; }
.shell { width: min(960px, calc(100% - 2rem)); margin: 0 auto; }
header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; color: var(--muted); }
header a { text-decoration: none; }
.brand { color: var(--text); font-size: 1rem; font-weight: 750; letter-spacing: -.02em; }
main { min-height: calc(100dvh - 64px); padding: 7vh 0 3rem; }
.hero { max-width: 600px; margin: 0 auto; text-align: center; }
.status { color: var(--muted); font-size: .86rem; }
.status:hover { color: var(--accent-bright); }
.home-art { display: block; width: min(100%, 22rem); height: auto; margin: 0 auto 2rem; border: 1px solid var(--accent); border-radius: 1rem; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.75rem); letter-spacing: -.055em; }
h2 { margin: 0 0 1rem; font-size: 1rem; }
p { color: var(--muted); line-height: 1.6; }
.stack { display: grid; gap: 1rem; }
.grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); gap: 1rem; align-items: start; }
.card { padding: 1.25rem; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--card) 88%, transparent); }
.hero .card { margin-top: 2rem; text-align: left; }
label { display: grid; gap: .45rem; color: var(--muted); font-size: .82rem; }
input { width: 100%; padding: .72rem .85rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 9px; outline: none; }
input:focus { border-color: var(--accent-bright); box-shadow: 0 0 0 3px #f5b9c826; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .67rem 1rem; color: var(--text); background: var(--soft); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; text-decoration: none; font: inherit; font-size: .86rem; transition: border-color .15s, background .15s, transform .15s; }
button:hover, .button:hover { background: #382932; border-color: #694957; transform: translateY(-1px); }
.primary { color: #28161e; background: var(--accent); border-color: var(--accent-bright); }
.primary:hover { background: var(--accent-bright); }
.danger { color: #ffabb5; }
.row { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.between { justify-content: space-between; }
.center-actions { justify-content: center; margin-top: 1.5rem; }
.top-gap { margin-top: 1rem; }
.dashboard-head { margin-bottom: 1rem; }
.dashboard-title { font-size: 2rem; }
.dashboard-subtitle { margin: .3rem 0 0; }
.registration-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.registration-heading h2 { margin: 0; }
.muted, small { color: var(--muted); }
.error { margin-top: 0; color: #ff9ba7; }
.success { color: #75dda5; }
.drop { display: grid; place-items: center; min-height: 180px; padding: 1rem; text-align: center; border: 1px dashed #694957; border-radius: 11px; background: #17131780; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.dragging { border-color: var(--accent-bright); background: #d99aaa0c; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop span { color: var(--text); font-weight: 500; }
progress { width: 100%; height: 5px; accent-color: var(--accent); }
.upload-queue { display: grid; gap: .55rem; }
.upload-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem .75rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: #17131780; }
.upload-item-main { min-width: 0; }
.upload-item-name { display: block; overflow-wrap: anywhere; font-size: .86rem; }
.upload-item-meta { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .2rem; color: var(--muted); font-size: .76rem; }
.upload-item-state[data-state="uploaded"] { color: #75dda5; }
.upload-item-state[data-state="failed"], .upload-item-state[data-state="too-large"] { color: #ff9ba7; }
.upload-item progress { grid-column: 1 / -1; margin: 0; }
.upload-item-remove { width: 2rem; height: 2rem; padding: 0; font-size: 1.1rem; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.files { display: grid; gap: .6rem; }
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--border); }
.file:first-child { border-top: 0; }
.filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.meta { margin-top: .2rem; color: var(--muted); font-size: .76rem; }
.compact { padding: .35rem .65rem; font-size: .76rem; }
.token { overflow-wrap: anywhere; padding: .8rem; border-radius: 8px; background: var(--bg); font-family: ui-monospace, monospace; font-size: .8rem; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } main { padding-top: 3vh; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
