:root {
  color-scheme: dark;
  --side:#15141d; --page:#100f16; --panel:#181720; --surface:#211e2a; --border:#302b3b;
  --text:#f8f6fd; --muted:#b8b0c5; --accent:#c8adff; --green:#abe5c1; --red:#ffb7c1;
  font-family:Inter,"Segoe UI",system-ui,sans-serif;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--text); background:var(--page); }
button,input,textarea,select { font:inherit; }
button,select { cursor:pointer; }
button:disabled { opacity:.55; cursor:wait; }
a { color:inherit; text-decoration:none; }
h1,h2,h3,p { margin:0; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.skip-link { position:fixed; z-index:10; top:10px; left:10px; padding:10px; background:var(--panel); transform:translateY(-160%); }
.skip-link:focus { transform:none; }
.shell { display:grid; grid-template-columns:231px minmax(0,1fr); min-height:100vh; }
.sidebar { position:sticky; top:0; align-self:start; height:100vh; display:flex; flex-direction:column; padding:26px 17px 20px; background:var(--side); border-right:1px solid #282533; }
.brand { display:flex; align-items:center; gap:11px; padding:2px 8px; width:max-content; }
.brand b,.brand small { display:block; }
.brand b { font-size:18px; letter-spacing:-.45px; line-height:1.05; }
.brand small { color:var(--accent); margin-top:3px; font-size:.81rem; }
.brand-mark { display:flex; gap:2px; align-items:center; justify-content:center; width:38px; height:38px; border-radius:11px; background:linear-gradient(135deg,#e6ceff,#b489fa 64%,#9268e3); box-shadow:0 4px 16px #8c60ee3d; }
.brand-mark i { width:2px; height:8px; background:#23143b; border-radius:3px; }
.brand-mark i:nth-child(2),.brand-mark i:nth-child(4) { height:13px; }
.brand-mark i:nth-child(3) { height:19px; }
.navigation { display:grid; gap:27px; margin-top:49px; }
.nav-group { display:grid; gap:4px; }
.nav-group > p { color:var(--muted); text-transform:uppercase; letter-spacing:.1em; font-size:.72rem; font-weight:650; margin:0 10px 7px; }
.nav-group a { min-height:43px; display:flex; align-items:center; gap:11px; padding:9px 10px; border:1px solid transparent; border-radius:9px; color:var(--muted); font-size:.91rem; font-weight:560; white-space:nowrap; }
.nav-group a:hover { background:#231e2e; color:var(--text); }
.nav-group a[aria-current="page"] { color:#eadcff; background:#2d243c; border-color:#3f3054; }
.icon { display:inline-grid; width:18px; flex:0 0 18px; place-items:center; font-size:17px; font-weight:650; line-height:1; }
.sidebar-foot { margin-top:auto; padding:16px 8px 4px; border-top:1px solid #2c2937; display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.81rem; }
.online-dot { width:7px; height:7px; border-radius:50%; background:#a7e5be; box-shadow:0 0 10px #a7e5be57; }
.workspace { min-width:0; }
.topbar { min-height:69px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px clamp(19px,3.25vw,50px); border-bottom:1px solid #282533; }
.crumb,.header-actions { display:flex; align-items:center; gap:11px; }
.crumb { font-size:.88rem; color:var(--muted); }
.crumb b { color:var(--text); font-weight:650; }
.crumb i { width:5px; height:5px; transform:rotate(-45deg); border-bottom:1px solid; border-right:1px solid; }
.header-account { color:var(--muted); font-size:.85rem; max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
main { max-width:1450px; margin:auto; padding:29px clamp(19px,3.25vw,50px) 32px; min-height:calc(100vh - 124px); }
main:focus { outline:none; }
.hero { min-height:312px; position:relative; isolation:isolate; overflow:hidden; border-radius:21px; background:radial-gradient(ellipse at 85% 40%,#523185,#241a3d 55%,#20172f 80%); border:1px solid #4b365d; }
.hero canvas { position:absolute; inset:0; width:100%; height:100%; z-index:-2; }
.hero::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#1a1426 0%,#221734f2 21%,#241536ad 40%,#26153615 67%,transparent 80%); }
.hero-copy { max-width:500px; padding:clamp(23px,3.9vw,42px); }
.eyebrow { display:inline-flex; gap:8px; align-items:center; margin-bottom:13px; color:#e3d3ff; font-size:.75rem; font-weight:680; letter-spacing:.12em; text-transform:uppercase; }
.eyebrow span { width:6px; height:6px; border-radius:50%; background:#d3b4ff; box-shadow:0 0 12px #debaff; }
.hero h1 { font-size:clamp(2.8rem,5.5vw,5rem); line-height:.91; letter-spacing:-.075em; font-weight:760; }
.hero-copy > p:not(.eyebrow) { color:#dfd2ed; margin:16px 0 19px; max-width:310px; line-height:1.43; }
.button { border:1px solid var(--border); border-radius:9px; background:var(--surface); color:var(--text); min-height:41px; padding:8px 13px; display:inline-flex; gap:7px; align-items:center; justify-content:center; white-space:nowrap; font-size:.89rem; font-weight:670; }
.button:hover { border-color:#795e9e; background:#30263d; }
.button.primary { background:var(--accent); color:#27163a; border-color:#dbc6ff; }
.button.primary:hover { background:#dbc7ff; }
.button.small { min-height:34px; padding:6px 10px; font-size:.83rem; }
.button.danger { color:var(--red); }
.button.flat { border-color:transparent; background:transparent; color:var(--accent); }
.button.flat:hover { border-color:var(--border); background:var(--surface); }
.section { margin-top:30px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:10px; margin-bottom:15px; }
.section-heading h2 { font-size:1.46rem; letter-spacing:-.035em; }
.section-heading p,.intro p { color:var(--muted); margin-top:6px; line-height:1.48; }
.catalog-count { color:var(--muted); font-size:.84rem; white-space:nowrap; }
.catalog-filter { display:grid; grid-template-columns:minmax(145px,1fr) 147px 95px; gap:8px; }
input,select,textarea { width:100%; min-width:0; background:#14131b; border:1px solid var(--border); border-radius:8px; color:var(--text); min-height:43px; padding:9px 10px; }
input::placeholder,textarea::placeholder { color:#a99eb9; }
input[type="checkbox"] { width:16px; min-height:16px; height:16px; padding:0; accent-color:var(--accent); margin:1px 0 0; flex:0 0 16px; }
input[type="file"] { font-size:.85rem; padding:8px; }
::file-selector-button { color:var(--text); border:0; border-radius:5px; background:#392d4f; padding:5px 7px; margin-right:6px; }
textarea { resize:vertical; min-height:83px; }
.search { position:relative; display:block; }
.search input { padding-left:36px; }
.search::before { content:""; width:11px; height:11px; border:1.5px solid #b6a9c9; border-radius:50%; position:absolute; left:12px; top:13px; }
.search::after { content:""; width:7px; height:1.5px; background:#b6a9c9; position:absolute; left:21px; top:24px; transform:rotate(45deg); border-radius:3px; }
.visually-hidden { clip-path:inset(50%); width:1px; height:1px; overflow:hidden; position:absolute; white-space:nowrap; }
.filters { display:flex; flex-wrap:wrap; gap:7px; margin:11px 0 14px; }
.filter { border:1px solid var(--border); background:var(--panel); color:var(--muted); border-radius:30px; padding:6px 11px; min-height:32px; font-size:.82rem; font-weight:580; }
.filter[aria-pressed="true"] { color:#efe2ff; border-color:#685181; background:#34264a; }
.filter:hover { color:var(--text); border-color:#685181; }
.track-list { border:1px solid var(--border); background:var(--panel); border-radius:14px; overflow:hidden; }
.track-head,.track-row { display:grid; grid-template-columns:minmax(155px,1.65fr) minmax(68px,.6fr) 65px minmax(120px,.9fr); gap:12px; align-items:center; padding:9px 13px; }
.track-head { min-height:37px; background:#1e1b28; color:var(--muted); font-size:.76rem; letter-spacing:.025em; }
.track-row { min-height:62px; border-top:1px solid #2d2938; }
.track-meta { display:flex; align-items:center; gap:10px; min-width:0; }
.track-meta > div { min-width:0; }
.track-meta b,.track-meta small { overflow-wrap:anywhere; display:block; line-height:1.25; }
.track-meta b { font-size:.92rem; font-weight:660; }
.track-meta small { color:var(--muted); font-size:.81rem; margin-top:3px; }
.cover { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; border-radius:8px; background:radial-gradient(circle at 74% 29%,var(--light),transparent 39%),repeating-linear-gradient(150deg,transparent 0 5px,#ffffff20 6px,transparent 8px),linear-gradient(140deg,var(--dark),var(--base)); border:1px solid #ffffff35; color:#fff; font-size:.9rem; overflow:hidden; }
.cover img { width:100%; height:100%; object-fit:cover; display:block; }
.art-0 { --dark:#1d0c36; --base:#6034a3; --light:#f7aaff; }
.art-1 { --dark:#0b3849; --base:#216c83; --light:#73f1df; }
.art-2 { --dark:#572d21; --base:#a74a39; --light:#ffc471; }
.art-3 { --dark:#28203e; --base:#573877; --light:#e79bac; }
.art-4 { --dark:#15345d; --base:#3d3e9b; --light:#6bd5ff; }
.art-5 { --dark:#2f2a4e; --base:#434781; --light:#c0b6ff; }
.subtle,.duration,.genre { color:var(--muted); font-size:.85rem; }
.duration { font-variant-numeric:tabular-nums; }
.row-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; }
.icon-button { background:var(--surface); border:1px solid var(--border); color:var(--accent); border-radius:8px; width:35px; height:35px; flex:0 0 35px; display:inline-grid; place-items:center; font-size:.86rem; }
.icon-button:hover { border-color:#a382d5; color:#e8d5ff; }
#catalog-more { margin-top:10px; }
.empty { display:grid; justify-items:start; gap:5px; padding:20px; }
.empty p { color:var(--muted); line-height:1.45; }
.site-foot { border-top:1px solid #2a2635; color:var(--muted); display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; margin:0 clamp(19px,3.25vw,50px); padding:16px 0; font-size:.78rem; }
.player { z-index:5; position:fixed; bottom:14px; right:14px; width:min(610px,calc(100vw - 28px)); display:grid; grid-template-columns:minmax(135px,1fr) minmax(160px,1.25fr) 35px; gap:10px; align-items:center; padding:10px; background:#292136; border:1px solid #624985; border-radius:13px; box-shadow:0 12px 40px #0009; }
.player audio { height:38px; width:100%; }
.player p { grid-column:1/-1; }
.close { font-size:1.3rem; }
.intro { margin:5px 0 19px; max-width:720px; }
.intro h1 { font-size:clamp(2rem,5vw,3rem); letter-spacing:-.062em; line-height:1.08; }
.panel { border:1px solid var(--border); background:var(--panel); padding:clamp(15px,2.4vw,23px); border-radius:14px; min-width:0; }
.panel h2 { font-size:1.12rem; letter-spacing:-.02em; }
.panel > p,.help { color:var(--muted); line-height:1.45; font-size:.87rem; }
.panel > p { margin-top:7px; }
.narrow { max-width:530px; }
.split { display:grid; grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr); gap:15px; align-items:start; }
.stack { display:grid; gap:12px; align-content:start; }
.form { display:grid; gap:11px; margin-top:14px; }
.form .button { justify-self:start; }
.fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.fields.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.field { min-width:0; display:grid; gap:5px; align-content:start; font-size:.87rem; font-weight:610; }
.field .help { font-size:.8rem; font-weight:400; }
.rows { display:grid; gap:8px; margin-top:11px; }
.detail-row { border:1px solid #362e43; background:#1d1a26; border-radius:10px; padding:9px; }
.detail-row summary { cursor:pointer; align-items:center; justify-content:space-between; gap:8px; display:flex; }
.detail-row summary::-webkit-details-marker { display:none; }
.detail-row summary::after { content:"+"; font-size:17px; color:var(--muted); margin-left:auto; }
.detail-row[open] summary::after { content:"−"; }
.detail-body { display:grid; gap:8px; margin-top:10px; padding-top:10px; border-top:1px solid #372f43; }
.detail-body audio,.attachment audio { width:100%; height:39px; }
.detail-body p { line-height:1.43; overflow-wrap:anywhere; white-space:pre-line; }
.badge { color:var(--muted); background:#292235; border:1px solid #503b64; border-radius:100px; padding:4px 7px; white-space:nowrap; font-size:.72rem; font-weight:660; }
.badge[data-status="approved"],.badge[data-status="available"] { color:var(--green); border-color:#3a5949; background:#202e28; }
.badge[data-status="rejected"],.badge[data-status="withdrawn"],.badge[data-status="unavailable"] { color:var(--red); border-color:#744453; background:#372331; }
.badge[data-status="pending"] { color:#ffdb99; border-color:#73583f; background:#382d26; }
.check { display:flex; align-items:start; gap:8px; font-size:.87rem; line-height:1.42; color:#e7dfef; }
fieldset { border:1px solid var(--border); padding:8px 9px 10px; margin:0; border-radius:8px; min-width:0; }
fieldset legend { padding:0 4px; color:var(--muted); font-size:.84rem; }
.inline-checks,.buttons { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.rule { border:0; border-top:1px solid var(--border); margin:4px 0; }
.message { border-radius:8px; border:1px solid #39574a; color:var(--green); padding:8px 9px; background:#202c26; font-size:.86rem; line-height:1.4; }
.message.error { border-color:#724555; color:var(--red); background:#382332; }
.auth-switch,.review-filter { margin-top:10px; }
.review-filter { width:fit-content; }
.endpoint { margin:8px 0; max-width:100%; overflow:auto; border:1px solid var(--border); border-radius:8px; padding:9px; background:#111018; color:#ddc8ff; font:.84rem/1.5 "Cascadia Mono",Consolas,monospace; }
.hint-link { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.composer > .panel:last-child { position:sticky; top:13px; }
.composer .catalog-filter { grid-template-columns:minmax(110px,1fr) auto auto; }
.composer .track-list { margin-top:9px; }
.composer .track-row { grid-template-columns:minmax(115px,1fr) auto; }
.composer .track-row:first-child { border-top:0; }
.selected-track,.attachment { padding:9px; border:1px solid #4c3b65; border-radius:9px; background:#252032; }
.attachment { display:grid; gap:6px; font-size:.88rem; }
@media (max-width:1080px) {
  .shell { grid-template-columns:190px minmax(0,1fr); }
  .sidebar { padding-inline:12px; }
  .split { grid-template-columns:1fr; }
  .composer > .panel:last-child { position:static; }
}
@media (max-width:715px) {
  .shell { display:block; }
  .sidebar { position:static; height:auto; display:grid; padding:12px 14px 7px; border-right:0; border-bottom:1px solid var(--border); }
  .brand { padding:0 2px; }
  .navigation { display:flex; gap:7px; overflow-x:auto; margin-top:10px; padding:3px 2px 5px; }
  .nav-group { display:flex; gap:5px; }
  .nav-group > p,.sidebar-foot,.crumb > span,.crumb > i { display:none; }
  .nav-group a { min-height:35px; gap:5px; padding:5px 6px; font-size:.83rem; }
  .topbar { min-height:53px; padding-inline:14px; }
  main { padding:15px 14px 25px; min-height:72vh; }
  .hero { min-height:264px; border-radius:15px; }
  .hero-copy { padding:22px; }
  .hero::after { background:linear-gradient(90deg,#211730fa 0%,#241636eb 28%,#2416368c 57%,#2416360a 100%); }
  .site-foot { margin-inline:14px; }
  .track-head,.track-row { grid-template-columns:minmax(120px,1fr) minmax(95px,auto); gap:6px; padding-inline:8px; }
  .track-head .genre,.track-head .duration,.track-row .genre,.track-row .duration { display:none; }
  .row-actions,.track-meta { gap:5px; }
}
@media (max-width:415px) {
  .catalog-filter,.composer .catalog-filter { grid-template-columns:minmax(0,1fr) 81px; }
  .catalog-filter .search { grid-column:1/-1; }
  .player { grid-template-columns:minmax(110px,1fr) 35px; }
  .player audio { order:3; grid-column:1/-1; }
  .fields.three { grid-template-columns:1fr; }
  .header-account { display:none; }
}
@media (prefers-reduced-motion:no-preference) {
  .button,.nav-group a,.filter { transition:background-color .14s,border-color .14s; }
}
