/* ============================================================
   BIG TUNE — RELEASE GATE
   Light, roomy, music-app feel. Artwork leads. Every song carries
   its production stage as real color, not a label.
   --art-* tokens are set at runtime from the uploaded cover.
   ============================================================ */
:root{
  --f-ground:#FFFFFF; --f-ground2:#F5F5F7;
  --f-surface:#FFFFFF; --f-surface2:#F5F5F7; --f-surface3:#ECECEF; --f-surface4:#E0E0E5;
  --f-line:#E6E6EA; --f-line2:#D0D0D6;
  --f-ink:#16161A; --f-ink2:#5E5E66; --f-ink3:#8E8E96;
  --f-accent:#FA2D48; --f-accent-ink:#FFFFFF;

  --ground:var(--f-ground2);
  --surface:var(--f-surface);
  --surface2:var(--f-surface2);
  --surface3:var(--f-surface3);
  --surface4:var(--f-surface4);
  --line:var(--f-line);
  --line2:var(--f-line2);
  --accent:var(--f-accent);          /* fixed brand accent; artwork never overrides it */
  --accent-ink:var(--f-accent-ink);
  --accent2:var(--accent);
  --accent-soft:color-mix(in srgb, var(--accent) 10%, var(--surface));
  --ink:var(--f-ink); --ink2:var(--f-ink2); --ink3:var(--f-ink3);

  --go:#13A36B;   --go-soft:#E4F6EE;
  --hold:#E5484D; --hold-soft:#FDE9EA;
  --warn:#B9770B; --warn-soft:#FDF2DD;
  --steel:#2E6BFF; --steel-soft:#E8EFFF; --blue:var(--steel);
  --c-violet:#A78BFA; --c-blue:#38BDF8; --c-teal:#06B6D4; --c-lime:#34D399;
  --c-amber:#FBBF24; --c-coral:#FB923C; --c-pink:#F472B6;

  --shadow:0 1px 2px rgba(0,0,0,.05), 0 4px 12px -6px rgba(0,0,0,.1);
  --shadow-lift:0 2px 6px rgba(0,0,0,.07), 0 16px 32px -12px rgba(0,0,0,.18);
  --shadow-pop:0 8px 20px rgba(0,0,0,.1), 0 40px 80px -24px rgba(0,0,0,.28);
  --r:14px; --r-sm:10px; --r-xs:8px;
  --mono:"DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:"Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --display:var(--sans);
}
:root[data-theme="dark"]{
  --f-ground:#0B0B0D; --f-ground2:#0B0B0D;
  --f-surface:#161619; --f-surface2:#1D1D21; --f-surface3:#26262B; --f-surface4:#303037;
  --f-line:#26262B; --f-line2:#3A3A42;
  --f-ink:#F5F5F7; --f-ink2:#A8A8B0; --f-ink3:#7A7A84;
  --f-accent:#FF375F; --f-accent-ink:#FFFFFF;
  --go:#30D48A; --go-soft:#0E2C21;
  --hold:#FF6B6F; --hold-soft:#2E1517;
  --warn:#F0B542; --warn-soft:#2E2310;
  --steel:#6FA0FF; --steel-soft:#16203A;
}

*{box-sizing:border-box}
body{margin:0; background:var(--ground); color:var(--ink); font-family:var(--sans);
  font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased; padding-bottom:88px}
h1,h2,h3,h4{margin:0; text-wrap:balance; letter-spacing:-.03em; font-weight:800}
p{margin:0}
button{font:inherit; color:inherit; cursor:pointer; background:none; border:0}
input,select,textarea{font:inherit; color:inherit}
a{color:var(--accent)}
:focus-visible{outline:3px solid var(--accent); outline-offset:2px; border-radius:6px}
::selection{background:var(--accent); color:#fff}
.hidden{display:none !important}
.lbl{font-size:12px; font-weight:700; color:var(--ink3)}
.mono{font-family:var(--mono); font-variant-numeric:tabular-nums}
.tiny{font-size:13px} .muted{color:var(--ink2)}
.row{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.spread{justify-content:space-between} .grow{flex:1; min-width:0}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-thumb{background:var(--line2); border-radius:8px; border:3px solid var(--ground)}
::-webkit-scrollbar-track{background:transparent}

/* ======================= SHELL: sidebar + content ======================= */
.wrap{display:grid; grid-template-columns:232px minmax(0,1fr); align-items:start}
.sidenav{position:sticky; top:58px; height:calc(100vh - 58px); background:var(--surface); border-right:1px solid var(--line);
  padding:16px 12px; display:flex; flex-direction:column; gap:16px; overflow-y:auto}
.navbrand{display:flex; align-items:center; gap:10px; padding:0 10px}
.navbrand svg{width:21px; height:21px; color:var(--accent); flex:none}
.navbrand b{font-size:16px; font-weight:800; letter-spacing:-.035em}
.tabs{display:flex; flex-direction:column; gap:3px; overflow:visible}
.tab{display:flex; align-items:center; gap:11px; padding:8px 11px; border-radius:var(--r-sm);
  font-size:13.5px; font-weight:600; color:var(--ink2); text-align:left; width:100%;
  transition:background .14s, color .14s; letter-spacing:-.015em}
.tab svg{width:18px; height:18px; flex:none; opacity:.8}

.tab:hover{background:var(--surface2); color:var(--ink)}
.tab[aria-selected="true"]{background:var(--surface3); color:var(--ink); font-weight:700}
.tab em{font-style:normal; font-size:12px; font-weight:700; color:var(--ink3); font-variant-numeric:tabular-nums}
.main{min-width:0; max-width:1180px; padding:20px 28px 56px; display:flex; flex-direction:column; gap:18px}
@media (max-width:900px){
  .topbar{padding:0 14px}
  .sidenav{top:0; height:auto}
  .wrap{grid-template-columns:1fr}
  .sidenav{position:sticky; top:0; z-index:40; height:auto; flex-direction:row; align-items:center;
    gap:12px; border-right:0; border-bottom:1px solid var(--line); padding:10px 12px; overflow-x:auto}
  .navbrand{padding:0}
  .tabs{flex-direction:row; gap:4px}
   .tab{padding:10px}
  .main{padding:18px 16px 60px}
}

/* ======================= TOPBAR ======================= */
.topbar{position:sticky; top:0; z-index:35; display:flex; align-items:center; gap:14px;
  padding:0 28px 0 calc(232px + 28px); height:58px; background:var(--ground); border-bottom:1px solid var(--line)}
.topbar .mark{display:none}
.psw{display:flex; align-items:center; justify-content:space-between; gap:11px; padding:8px 15px; border-radius:999px;
  background:var(--surface); box-shadow:var(--shadow); max-width:320px}
.psw:hover{background:var(--surface2)}
.psw .nm{display:flex; flex-direction:column; align-items:flex-start; min-width:0; line-height:1.25}
.psw .nm b{font-size:14px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:190px; letter-spacing:-.02em}
.psw .nm span{font-size:11.5px; color:var(--ink3)}
.psw svg{color:var(--ink3); flex:none}
.avstack{display:flex} .av{width:32px; height:32px; border-radius:50%; border:2.5px solid var(--ground);
  margin-left:-9px; display:grid; place-items:center; font-size:12px; font-weight:800; color:#fff; background:var(--steel); flex:none}
.av:first-child{margin-left:0}
.kbd{font-size:11px; border:1px solid var(--line2); border-radius:6px; padding:2px 6px; color:var(--ink3)}
@media (max-width:900px){.topbar{padding:0 14px; height:58px}}

/* ======================= HERO ======================= */
.hero{position:relative; overflow:hidden; display:grid; grid-template-columns:auto minmax(0,1fr);
  gap:24px; align-items:end; padding:24px; border-radius:var(--r); background:var(--surface); box-shadow:var(--shadow); min-height:0}
.hero::before{content:""; position:absolute; inset:0; z-index:0; opacity:.55;
  background-image:var(--art,none); background-size:cover; background-position:center; filter:blur(60px) saturate(1.6); transform:scale(1.35)}
.hero::after{content:""; position:absolute; inset:0; z-index:1; background:color-mix(in srgb, var(--surface) 78%, transparent)}
.hero>*{position:relative; z-index:2}
.hero-txt{min-width:0; display:flex; flex-direction:column; justify-content:flex-end}
.hero-txt h1{font-weight:800; line-height:1.02; letter-spacing:-.045em; font-size:clamp(28px,3.4vw,50px); margin:8px 0 0; overflow-wrap:anywhere}
.hero-sub{font-size:13.5px; color:var(--ink2); margin-top:8px; font-weight:500}
.hero-pills{margin-top:12px; gap:7px}
.hero-art{width:clamp(120px,14vw,172px); aspect-ratio:1; flex:none; overflow:hidden; border-radius:var(--r-sm);
  background:var(--surface3); display:grid; place-items:center; box-shadow:var(--shadow-lift)}
.hero-art img{width:100%; height:100%; object-fit:cover; display:block}
.hero-art span{font-size:12px; color:var(--ink3); font-weight:600}
.hero-ring{display:none}
@media (max-width:760px){.hero{grid-template-columns:1fr; gap:18px; padding:20px; min-height:0} .hero-art{width:138px}}

/* ======================= GATES ======================= */









  

.gates{display:flex; flex-direction:column; gap:6px}
.gate{display:grid; grid-template-columns:28px 1fr auto; gap:12px; align-items:center; padding:11px 12px;
  width:100%; text-align:left; border-radius:var(--r-xs); background:var(--surface2)}
.gate:hover{background:var(--surface3)}
.gkey{width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font-size:13px; font-weight:800; background:var(--surface4); color:var(--ink2)}
.gate.done .gkey{background:var(--go); color:#fff}
.gate.block .gkey{background:var(--hold-soft); color:var(--hold)}
.gname{font-size:13.5px; font-weight:700; letter-spacing:-.02em}
.gbar{height:6px; background:var(--surface4); border-radius:99px; margin-top:7px; overflow:hidden}
.gbar i{display:block; height:100%; background:var(--accent); border-radius:99px}
.gate.done .gbar i{background:var(--go)}
.gpct{font-size:12px; font-weight:700; color:var(--ink3); font-variant-numeric:tabular-nums}
.stagebar{display:flex; height:14px; border-radius:99px; overflow:hidden; background:var(--surface3); gap:2px}
.stagebar i{display:block; transition:flex-grow .4s}
.stagekey{display:flex; flex-direction:column; gap:7px; margin-top:13px}
.stagekey div{display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--ink2); font-weight:600}
.stagekey b{width:12px; height:12px; border-radius:4px; flex:none}
.stagekey span:last-child{margin-left:auto; font-weight:800; color:var(--ink); font-variant-numeric:tabular-nums}

/* ======================= FORM ======================= */
.f-in{width:100%; background:var(--surface2); border:1.5px solid transparent; border-radius:var(--r-xs); padding:9px 12px; font-size:14px; transition:border-color .14s, background .14s}
.f-in:hover{background:var(--surface3)}
.f-in:focus{border-color:var(--accent); background:var(--surface); outline:none}
.f-in::placeholder{color:var(--ink3)}
.f-in.mono{font-family:var(--mono); font-size:14px}
.idrow{display:flex; flex-direction:column; gap:6px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.btn{background:var(--surface2); border:0; border-radius:999px; padding:8px 15px; font-size:13px; font-weight:700;
  letter-spacing:-.015em; display:inline-flex; align-items:center; gap:7px; transition:background .14s, transform .1s}
.btn:hover{background:var(--surface3)} .btn:active{transform:scale(.97)}
.btn.pri{background:var(--accent); color:#fff} .btn.pri:hover{filter:brightness(1.08)}
.btn.ghost{background:none} .btn.ghost:hover{background:var(--surface2)}
.btn.sm{padding:8px 14px; font-size:13px}
.btn.wide{width:100%; justify-content:center; padding:14px; font-size:15.5px}
.btn:disabled{opacity:.4; cursor:not-allowed}
.sel{background:var(--surface2); border:0; border-radius:var(--r-xs); padding:11px 13px; font-size:14px}
.pill{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:6px 12px; border-radius:999px; white-space:nowrap}
.pill.go{background:var(--go-soft); color:var(--go)}
.pill.hold{background:var(--hold-soft); color:var(--hold)}
.pill.warn{background:var(--warn-soft); color:var(--warn)}
.pill.flat{background:var(--surface3); color:var(--ink2)}
.pill.acc{background:var(--accent); color:#fff}
.pill.blue{background:var(--steel-soft); color:var(--steel)}

/* ======================= CARDS ======================= */
.card{background:var(--surface); border-radius:var(--r); box-shadow:var(--shadow); isolation:isolate; overflow:hidden}
.card>header{padding:15px 18px 11px; display:flex; align-items:center; gap:14px; flex-wrap:wrap}
.card>header h3{font-size:16px; font-weight:800; letter-spacing:-.03em}
.card>header .lead{padding-left:0}
.card .body{padding:0 18px 18px}
.ovgrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(248px,1fr)); gap:16px}
.stat{display:flex; flex-direction:column; gap:4px}
.stat b{font-size:38px; line-height:1; font-weight:800; letter-spacing:-.05em; font-variant-numeric:tabular-nums}
.stat.go b{color:var(--go)} .stat.hold b{color:var(--accent)}
.ring{display:grid; place-items:center; position:relative; width:118px; height:118px; flex:none}
.ring svg{transform:rotate(-90deg)}
.ring div{position:absolute; text-align:center}
.ring div b{font-size:35px; line-height:1; font-weight:800; letter-spacing:-.04em; font-variant-numeric:tabular-nums}
.ring div span{display:block; font-size:11.5px; color:var(--ink3); font-weight:600}
.tl{display:flex; flex-direction:column; gap:5px}
.tlrow{display:grid; grid-template-columns:118px 1fr auto; gap:14px; align-items:center; padding:13px 15px; border-radius:var(--r-xs); background:var(--surface2)}
.tlrow .d{font-size:13px; color:var(--ink2); font-weight:700; font-variant-numeric:tabular-nums}
.tlrow .n{font-size:14.5px; font-weight:600}
.tlrow.past{opacity:.6}
.blist{display:flex; flex-direction:column; gap:8px}
.bitem{display:grid; grid-template-columns:28px 1fr auto; gap:12px; align-items:center; padding:11px 13px;
  text-align:left; width:100%; border-radius:var(--r-sm); background:var(--surface2); transition:background .14s, transform .1s}
.bitem:hover{background:var(--surface3); transform:translateX(3px)}
.bitem code{font-family:var(--sans); font-size:13px; font-weight:800; color:var(--accent)}
.bitem .t{font-size:14px; line-height:1.35; font-weight:700; letter-spacing:-.02em}
.sig{font-size:13px; color:var(--ink3); font-weight:500}
.empty{padding:32px 18px; text-align:center; color:var(--ink2); font-size:14px}
.empty b{display:block; color:var(--ink); font-size:18px; font-weight:800; margin-bottom:6px}
.banner{display:flex; gap:12px; align-items:flex-start; padding:15px 18px; border-radius:var(--r-sm); background:var(--warn-soft); color:var(--warn); font-size:14px; font-weight:600}
.banner.err{background:var(--hold-soft); color:var(--hold)}
.banner.ok{background:var(--go-soft); color:var(--go)}

/* ======================= SONGS: color IS the status ======================= */
.board{display:flex; gap:14px; overflow-x:auto; padding:4px 2px 16px}
.col{flex:0 0 252px; display:flex; flex-direction:column; background:var(--surface2); border-radius:var(--r-sm); min-height:160px}
.col.dropping{background:var(--accent-soft); outline:2.5px dashed var(--accent); outline-offset:-3px}
.col>header{display:flex; align-items:center; gap:10px; padding:14px 15px 12px; position:sticky; top:0; background:var(--surface2); border-radius:var(--r-sm) var(--r-sm) 0 0; z-index:1}
.col>header b{font-size:14px; font-weight:800; letter-spacing:-.025em}
.col>header .dot{width:12px; height:12px; border-radius:4px; flex:none}
.col>header .ct{margin-left:auto; font-size:13px; font-weight:800; color:var(--ink3); font-variant-numeric:tabular-nums}
.col .stack{padding:0 10px 12px; display:flex; flex-direction:column; gap:10px; min-height:70px}
.scard{position:relative; background:var(--surface); border-radius:var(--r-xs); padding:15px 15px 13px;
  display:flex; flex-direction:column; gap:9px; cursor:grab; box-shadow:var(--shadow); text-align:left;
  border-left:5px solid var(--stage,var(--line2)); transition:box-shadow .14s, transform .12s}
.scard:hover{transform:translateY(-3px); box-shadow:var(--shadow-lift)}
.scard.ghost{opacity:.35}
.scard .hd{display:flex; align-items:baseline; gap:10px}
.scard .no{font-size:13px; font-weight:800; color:var(--ink3); font-variant-numeric:tabular-nums}
.scard .ti{font-size:16px; font-weight:800; line-height:1.2; letter-spacing:-.03em; flex:1; min-width:0}
.scard .ft{display:flex; align-items:center; gap:9px; flex-wrap:wrap}
.scard .dl{display:flex; gap:3px}
.scard .dl i{width:12px; height:5px; border-radius:99px; background:var(--surface4); display:block}
.scard .dl i.on{background:var(--go)}
.scard .nt{font-size:13px; color:var(--ink2); line-height:1.45; background:var(--surface2); padding:9px 11px; border-radius:var(--r-xs)}
.scard.flagged{outline:2px solid var(--warn); outline-offset:-2px}
.sprog{height:6px; border-radius:99px; background:var(--surface3); overflow:hidden}
.sprog i{display:block; height:100%; border-radius:99px; background:var(--stage,var(--accent)); transition:width .45s cubic-bezier(.2,.8,.2,1)}

/* ======================= DRAWER ======================= */
.backdrop{position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:90; opacity:0; transition:opacity .22s}
.backdrop.on{opacity:1}
.drawer{position:fixed; top:0; right:0; bottom:0; width:min(600px,100%); z-index:100; background:var(--surface);
  box-shadow:var(--shadow-pop); display:flex; flex-direction:column; transform:translateX(100%); transition:transform .26s cubic-bezier(.2,.75,.2,1)}
.drawer.on{transform:translateX(0)}
.drawer>header{padding:24px; border-bottom:1px solid var(--line); display:flex; align-items:flex-start; gap:16px}
.drawer>header .no{font-size:30px; font-weight:800; color:var(--ink3); letter-spacing:-.04em}
.drawer>header h3{font-size:26px; font-weight:800; letter-spacing:-.04em; line-height:1.1}
.drawer .scrollarea{flex:1; overflow-y:auto; padding:22px 24px 48px; display:flex; flex-direction:column; gap:26px}
.dsec{display:flex; flex-direction:column; gap:13px}
.dsec>.lbl{font-size:13px; font-weight:800; color:var(--ink)}
.kv{display:grid; grid-template-columns:repeat(auto-fit,minmax(132px,1fr)); gap:13px}
.stageline{display:flex; gap:7px; flex-wrap:wrap}
.stagebtn{padding:9px 14px; border-radius:999px; border:0; background:var(--surface2); font-size:13px; font-weight:700; color:var(--ink2)}
.stagebtn:hover{background:var(--surface3); color:var(--ink)}
.stagebtn[aria-pressed="true"]{color:#fff}
.thread{display:flex; flex-direction:column; gap:12px}
.note{display:grid; grid-template-columns:36px 1fr; gap:14px; padding:16px; background:var(--surface2); border-radius:var(--r-sm)}
.note.pin{background:var(--warn-soft)}
.note .who{display:flex; flex-direction:column; align-items:center; gap:5px}
.note .bd{display:flex; flex-direction:column; gap:7px; min-width:0}
.note .bd p{font-size:15px; white-space:pre-wrap; overflow-wrap:anywhere}
.note .mt{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.note .mt button{font-size:12.5px; font-weight:700; color:var(--ink3)}
.note .mt button:hover{color:var(--accent)}
.composer{display:flex; flex-direction:column; gap:12px}
.composer textarea{width:100%; min-height:84px; resize:vertical; background:var(--surface2); border:1.5px solid transparent;
  border-radius:var(--r-sm); padding:14px; font-size:15px; font-family:var(--sans)}
.composer textarea:focus{border-color:var(--accent); background:var(--surface); outline:none}

/* ======================= CHECKLIST ======================= */
.toolbar{display:flex; gap:11px; flex-wrap:wrap; align-items:center}
.seg{display:flex; background:var(--surface2); border-radius:999px; padding:4px; gap:3px}
.seg button{padding:9px 17px; border-radius:999px; font-size:13.5px; font-weight:700; color:var(--ink2)}
.seg button[aria-pressed="true"]{background:var(--surface); color:var(--ink); box-shadow:var(--shadow)}
.search{flex:1; min-width:170px}
.phase{margin-top:18px}
.phead{display:grid; grid-template-columns:40px 1fr auto; gap:13px; align-items:center; padding:15px 18px;
  background:var(--surface); border-radius:var(--r) var(--r) 0 0; width:100%; text-align:left; box-shadow:var(--shadow)}
.phase.shut .phead{border-radius:var(--r)}
.pkey{width:38px; height:38px; border-radius:12px; display:grid; place-items:center; font-size:16px; font-weight:800; color:#fff; background:var(--accent)}
.phead h4{font-size:16px; font-weight:800; letter-spacing:-.035em}
.phead p{margin:2px 0 0; font-size:13px; color:var(--ink2)}
.items{background:var(--surface); border-radius:0 0 var(--r) var(--r); overflow:hidden; box-shadow:var(--shadow)}
.phase.shut .items{display:none}
.it{display:grid; grid-template-columns:5px 32px minmax(0,1fr); border-top:1px solid var(--line); transition:background .3s}
.it.hide{display:none}
.stripe{background:var(--surface3)}
.it.crit .stripe{background:var(--accent)}
.it.done .stripe{background:var(--go)}
.ck{appearance:none; -webkit-appearance:none; width:23px; height:23px; margin:18px 0 0 9px; border:2px solid var(--line2);
  border-radius:8px; background:var(--surface2); position:relative; flex:none; transition:background .14s, border-color .14s}
.ck:hover{border-color:var(--accent)}
.ck:checked{background:var(--go); border-color:var(--go)}
.ck:checked::after{content:""; position:absolute; left:7px; top:3px; width:6px; height:12px; border:2.5px solid #fff; border-top:0; border-left:0; transform:rotate(42deg)}
.ck:disabled{opacity:.4; cursor:not-allowed}
.itb{padding:17px 22px 18px 12px; min-width:0}
.it.done .itb .t span{color:var(--ink3); text-decoration:line-through}
.it.na .itb{opacity:.5}
.itb .t{font-size:14.5px; font-weight:700; display:flex; gap:11px; align-items:baseline; flex-wrap:wrap; letter-spacing:-.025em}
.itb .t code{font-family:var(--sans); font-size:13px; font-weight:800; color:var(--accent)}
.itb .d{font-size:13.5px; color:var(--ink2); margin-top:5px; max-width:72ch; line-height:1.55}
.itm{display:flex; gap:9px; align-items:center; flex-wrap:wrap; margin-top:14px}
.itm select,.itm input{background:var(--surface2); border:0; border-radius:999px; padding:8px 14px; font-size:13px; font-family:var(--sans)}
.itnote{width:100%; margin-top:12px; background:var(--surface2); border:0; border-radius:var(--r-sm); padding:13px 15px; font-size:14.5px; resize:vertical; min-height:48px; font-family:var(--sans)}

/* ======================= SEQUENCE: playlist rows ======================= */
.sqwrap{display:grid; grid-template-columns:minmax(0,1fr) 262px; gap:22px; align-items:start}
@media (max-width:920px){.sqwrap{grid-template-columns:1fr}}
.seqlist{display:flex; flex-direction:column}
.gapbtn{height:22px; display:grid; place-items:center; padding:0; position:relative; opacity:0; width:100%}
.gapbtn:hover,.gapbtn:focus-visible{opacity:1}
.gapbtn span{font-size:12px; font-weight:700; color:var(--accent); background:var(--accent-soft); padding:3px 12px; border-radius:999px; z-index:1}
.gapbtn::before{content:""; position:absolute; inset:50% 0 auto; height:2px; background:var(--accent); opacity:.3}
.sidebreak{display:flex; align-items:center; gap:12px; padding:12px 18px; margin:10px 0; background:var(--steel-soft); border-radius:999px}
.sidebreak b{font-size:15px; font-weight:800; color:var(--steel)}
.sidebreak .lbl{color:var(--steel); font-weight:700}
.sidebreak button{margin-left:auto; color:var(--steel); font-size:12.5px; font-weight:700}





.grip:hover{color:var(--accent); background:var(--surface2)}












.dchip{font-size:11.5px; font-weight:700; padding:6px 11px; border-radius:999px; border:0; background:var(--surface2); color:var(--ink3)}
.dchip:hover{background:var(--surface3); color:var(--ink)}
.dchip[aria-pressed="true"]{background:var(--go); color:#fff}
.xbtn{color:var(--ink3); font-size:19px; line-height:1; padding:6px 10px; border-radius:999px}
.xbtn:hover{color:var(--hold); background:var(--hold-soft)}


.sidemeter{display:flex; flex-direction:column; gap:16px}
.sm{display:flex; flex-direction:column; gap:6px}
.sm b{font-size:32px; font-weight:800; letter-spacing:-.045em; font-variant-numeric:tabular-nums}

/* ======================= TABLES ======================= */
.scroll{overflow-x:auto}
table{border-collapse:collapse; width:100%; min-width:620px}
th,td{text-align:left; padding:14px 16px; border-bottom:1px solid var(--line); vertical-align:middle}
th{font-size:12.5px; color:var(--ink3); font-weight:700; white-space:nowrap}
td{font-size:14.5px}
td.num{font-variant-numeric:tabular-nums; text-align:right; font-weight:700}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:var(--surface2)}
table input,table select{background:none; border:0; border-bottom:2px solid transparent; padding:5px 3px; width:100%; min-width:60px}
table input:focus,table select:focus{border-bottom-color:var(--accent); outline:none}
table input.mono{font-family:var(--mono); font-size:13px; font-variant-numeric:tabular-nums}
.splitgrp{margin-top:18px}
.splitgrp>header{display:flex; align-items:center; gap:12px; padding:15px 18px; background:var(--surface2); border-radius:var(--r-sm) var(--r-sm) 0 0}
.splitgrp>header b{font-size:16px; font-weight:800; letter-spacing:-.03em}
.splitgrp .scroll{border-radius:0 0 var(--r-sm) var(--r-sm); background:var(--surface); box-shadow:var(--shadow)}

/* ======================= VAULT ======================= */
.drop{border:2.5px dashed var(--line2); border-radius:var(--r); padding:44px 22px; text-align:center; background:var(--surface2)}
.drop.over{border-color:var(--accent); background:var(--accent-soft)}
.drop b{display:block; font-size:21px; font-weight:800; letter-spacing:-.035em}
.drop p{margin:10px 0 18px; font-size:14.5px; color:var(--ink2)}
.agrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(192px,1fr)); gap:16px; margin-top:18px}
.acard{background:var(--surface); border-radius:var(--r-sm); overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; transition:transform .12s, box-shadow .12s}
.acard:hover{transform:translateY(-3px); box-shadow:var(--shadow-lift)}
.athumb{aspect-ratio:1; background:var(--surface3); display:grid; place-items:center; overflow:hidden}
.athumb img,.athumb video{width:100%; height:100%; object-fit:cover; display:block}
.athumb .ph{font-size:17px; font-weight:800; color:var(--ink3)}
.ameta{padding:13px 14px; display:flex; flex-direction:column; gap:9px}
.ameta input,.ameta select{background:var(--surface2); border:0; border-radius:var(--r-xs); padding:8px 11px; font-size:13.5px; width:100%}
.ameta .f{display:flex; align-items:center; gap:9px; justify-content:space-between}
.alink{font-size:13px; font-weight:700; color:var(--accent); text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.meter{height:9px; background:var(--surface3); border-radius:99px; overflow:hidden; flex:1; min-width:80px}
.meter i{display:block; height:100%; background:var(--accent); border-radius:99px}

/* ======================= NOW-PLAYING BAR ======================= */
.playerbar{position:fixed; left:0; right:0; bottom:0; z-index:80; background:var(--surface);
  border-top:1px solid var(--line); padding:9px 20px; min-height:0}
.playerbar:empty{display:none}
.pl{display:flex; flex-direction:column; gap:7px; padding:0; border:0; background:none; margin:0}
.pl .top{display:flex; align-items:center; gap:14px; flex-wrap:wrap}
.pl .tbtn{width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:#fff; flex:none}
.pl .tbtn:hover{filter:brightness(1.08)}
.pl .tbtn.sm{width:32px; height:32px; background:var(--surface2); color:var(--ink)}
.pl .tbtn:disabled{opacity:.35; cursor:not-allowed}
.pl .now{min-width:0; flex:1}
.pl .now b{display:block; font-size:14.5px; font-weight:800; letter-spacing:-.025em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.pl .now span{display:block; font-size:12.5px; color:var(--ink3)}
.pl .seekwrap{display:flex; align-items:center; gap:11px}
.pl .seek{flex:1; height:6px; background:var(--surface3); border-radius:99px; position:relative; cursor:pointer; min-width:90px}
.pl .seek i{position:absolute; inset:0 auto 0 0; background:var(--accent); border-radius:99px; display:block; width:0}
.pl .t{font-size:12px; color:var(--ink3); font-variant-numeric:tabular-nums; min-width:42px; font-weight:600}
.pl .opts{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.pl select{background:var(--surface2); border:0; border-radius:999px; padding:7px 12px; font-size:12.5px; font-weight:600}
#pl-hint{font-size:12px; color:var(--ink3)}

/* ======================= MODAL ======================= */
.modal{position:fixed; inset:0; z-index:120; display:grid; place-items:start center; padding:8vh 18px 18px; background:rgba(0,0,0,.45)}
.mbox{width:min(660px,100%); background:var(--surface); border-radius:var(--r); box-shadow:var(--shadow-pop); overflow:hidden; display:flex; flex-direction:column; max-height:80vh}
.mbox input.q{border:0; border-bottom:1px solid var(--line); padding:22px 24px; font-size:19px; font-weight:600; background:none; width:100%}
.mbox input.q:focus{outline:none}
.mres{overflow-y:auto; padding:10px}
.mres button{display:grid; grid-template-columns:auto 1fr; gap:14px; align-items:center; width:100%; text-align:left; padding:13px 15px; border-radius:var(--r-xs)}
.mres button:hover,.mres button.sel{background:var(--surface2)}
.mres code{font-family:var(--sans); font-size:13px; font-weight:800; color:var(--accent)}
.mres .t{font-size:15px; font-weight:600}
.mbody{padding:24px; display:flex; flex-direction:column; gap:18px; overflow-y:auto}
#toast{position:fixed; left:50%; bottom:104px; transform:translateX(-50%) translateY(16px); opacity:0; background:var(--ink);
  color:var(--ground); padding:14px 24px; border-radius:999px; font-size:14.5px; font-weight:700;
  box-shadow:var(--shadow-pop); pointer-events:none; z-index:200; max-width:min(92vw,540px); transition:.24s}
#toast.on{opacity:1; transform:translateX(-50%) translateY(0)}

/* ======================= RAIL (slide-over details) ======================= */
.rail{position:fixed; top:0; right:0; bottom:0; width:min(380px,100%); z-index:95; background:var(--surface);
  box-shadow:var(--shadow-pop); padding:26px 26px 48px; display:flex; flex-direction:column; gap:28px;
  overflow-y:auto; transform:translateX(100%); transition:transform .26s cubic-bezier(.2,.75,.2,1)}
.rail.open{transform:translateX(0)}
.railscrim{position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:94; opacity:0; transition:opacity .2s}
.railscrim.on{opacity:1}

/* injected components */
#sg-grid{overflow-x:auto}
.pathwrap .pstep .n{border-radius:14px; font-size:19px; font-weight:800; display:grid; place-items:center; height:46px; padding:0}
@media (prefers-reduced-motion:reduce){*{transition:none !important; animation:none !important}}


/* ---- the artwork slot doubles as the uploader ---- */
.hero-art{position:relative; cursor:pointer; transition:box-shadow .15s, transform .12s}
.hero-art:hover{transform:translateY(-2px); box-shadow:var(--shadow-lift)}
.hero-art.over{outline:3px dashed var(--accent); outline-offset:-6px}
.hero-art:focus-visible{outline:3px solid var(--accent); outline-offset:3px}
.artadd{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  text-align:center; padding:20px; color:var(--ink3); height:100%}
.artadd svg{width:34px; height:34px; color:var(--accent)}
.artadd b{font-size:15px; font-weight:800; color:var(--ink); letter-spacing:-.025em}
.artadd span{font-size:12px; line-height:1.4; max-width:20ch}
.artswap{position:absolute; inset:auto 0 0 0; padding:9px; text-align:center; font-size:12px; font-weight:700;
  color:#fff; background:rgba(0,0,0,.6); opacity:0; transition:opacity .15s}
.hero-art:hover .artswap{opacity:1}


/* ---- one continuous release progress track, not eight boxes ---- */
.gatestrip{display:flex; flex-direction:column; gap:12px; background:var(--surface);
  border-radius:var(--r); padding:18px 20px 16px; box-shadow:var(--shadow)}

















@media (max-width:760px){   }


/* ============================================================
   POLISH PASS — one 4px grid, consistent control heights.
   Controls: 28 (xs) / 34 (sm) / 40 (md). Nothing in between.
   ============================================================ */

/* --- logo: the mark sits in a solid tile so it reads as a product chip --- */
.navbrand{display:flex; align-items:center; gap:11px; padding:2px 8px 0; min-height:40px}
.navbrand svg{width:18px; height:18px; color:#fff; flex:none}
.navbrand .tile{width:32px; height:32px; border-radius:9px; background:var(--accent);
  display:grid; place-items:center; flex:none; box-shadow:var(--shadow)}
.navbrand b{font-size:17px; font-weight:800; letter-spacing:-.04em; line-height:1}

/* --- pills: one height, quiet by default --- */
.pill{height:26px; padding:0 11px; border-radius:999px; font-size:12px; font-weight:700;
  letter-spacing:-.01em; display:inline-flex; align-items:center; gap:6px; border:0; line-height:1}
.pill.flat{background:var(--surface3); color:var(--ink2)}
.pill.go{background:var(--go-soft); color:var(--go)}
.pill.hold{background:var(--hold-soft); color:var(--hold)}
.pill.warn{background:var(--warn-soft); color:var(--warn)}
.pill.acc{background:var(--accent); color:var(--accent-ink)}
.pill.blue{background:var(--steel-soft); color:var(--steel)}
.hero-pills{gap:8px; margin-top:14px}

/* --- buttons: fixed heights, optical padding --- */
.btn{height:34px; padding:0 15px; border-radius:999px; font-size:13px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center; gap:7px; line-height:1}
.btn.sm{height:28px; padding:0 12px; font-size:12.5px}
.btn.wide{height:40px; width:100%; font-size:14px}
.dchip{height:26px; padding:0 11px; border-radius:999px; font-size:12px; font-weight:700;
  display:inline-flex; align-items:center; line-height:1; border:0; background:var(--surface2); color:var(--ink3)}
.dchip[aria-pressed="true"]{background:var(--go); color:#fff}
.stagebtn{height:32px; padding:0 14px; display:inline-flex; align-items:center; line-height:1; border-radius:999px}

/* --- menu items: one height, aligned icons --- */
.tab{height:38px; padding:0 11px; gap:12px; border-radius:10px; font-size:13.5px; align-items:center}
.tab svg{width:18px; height:18px}
.tab em{margin-left:auto}
.tabs{gap:2px}

/* --- form controls match button heights --- */
.f-in{height:38px; padding:0 13px; font-size:14px; border-radius:10px}
.f-in:is(textarea){height:auto; padding:10px 13px}
.sel{height:34px; padding:0 11px; font-size:13px; border-radius:999px}
.seg{padding:3px; border-radius:999px}
.seg button{height:30px; padding:0 15px; font-size:12.5px; display:inline-flex; align-items:center; line-height:1}

/* --- top bar: everything on one 40px rhythm --- */
.topbar{gap:12px}
.psw{height:40px; padding:0 14px; gap:10px; align-items:center}
.psw .nm b{font-size:13.5px; line-height:1.15}
.psw .nm span{font-size:11px; line-height:1.15}
.av{width:30px; height:30px; font-size:11.5px}

/* --- cards breathe on a consistent rhythm --- */
.card>header{padding:16px 18px 12px; gap:12px}
.card .body{padding:0 18px 18px}
.ovgrid{gap:12px}
.sec{gap:16px}
.blist{gap:6px}
.bitem{padding:12px 14px; border-radius:12px; gap:12px}
.bitem .t{font-size:14px; font-weight:700}
.bitem .sig{font-size:12px}

/* --- progress block --- */
.gatestrip{padding:16px 18px 14px; gap:11px}




/* --- hero --- */
.hero{padding:22px; gap:22px}
.hero-txt h1{font-size:clamp(26px,3.1vw,44px); line-height:1.04}
.hero-sub{font-size:13px; margin-top:7px}
.hero-art{width:clamp(112px,13vw,160px); border-radius:12px}

.railhead{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:4px}
.railhead h3{font-size:19px; font-weight:800; letter-spacing:-.035em}
.railscrim.hidden{display:none}

/* ---- player gets out of the way when there is nothing to play ---- */
.playerbar.empty, .playerbar.down{transform:translateY(100%); pointer-events:none}
.playerbar{transition:transform .26s cubic-bezier(.2,.75,.2,1)}
body.noplayer{padding-bottom:0}
.plhide{position:absolute; right:18px; top:8px; width:28px; height:28px; border-radius:50%;
  display:grid; place-items:center; color:var(--ink3); background:var(--surface2)}
.plhide:hover{background:var(--surface3); color:var(--ink)}
.plhide svg{width:16px; height:16px}
.pl{position:relative}
#plshow{position:fixed; right:20px; bottom:16px; z-index:79; height:34px; padding:0 16px; border-radius:999px;
  background:var(--ink); color:var(--ground); font-size:12.5px; font-weight:700; box-shadow:var(--shadow-lift); display:none}
body.noplayer #plshow{display:inline-flex; align-items:center}
.playerbar.empty ~ #plshow, body:not(.noplayer) #plshow{display:none}


/* ============================================================
   SPACING FIX — the stat row and empty states were sprawling
   ============================================================ */

/* three stats in a row: compact, no odd vertical rules, aligned baselines */
.ovgrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px}
.ovgrid .card{box-shadow:var(--shadow)}
.ovgrid .card .body{padding:14px 16px 16px}
.ovgrid .lbl{font-size:12px; font-weight:700; color:var(--ink3)}
.stat{gap:2px; margin-top:2px}
.stat b{font-size:34px; line-height:1.05; font-weight:800; letter-spacing:-.045em}
.stat .tiny{font-size:12.5px; color:var(--ink3); margin-top:1px}
#ov-crit{margin-top:8px}

/* empty states stop eating half a screen */
.empty{padding:22px 18px; font-size:13.5px}
.empty b{font-size:15px; margin-bottom:3px}
.card .body > .empty:only-child{padding:18px}
#ov-tl .empty{padding:16px}

/* timeline rows tighten up */
.tl{gap:3px}
.tlrow{padding:10px 13px; gap:12px; grid-template-columns:106px 1fr auto}
.tlrow .n{font-size:13.5px}
.tlrow .d{font-size:12.5px}

/* the two side-by-side lists line up and breathe evenly */
.blist{gap:5px}
.bitem{padding:11px 13px; gap:11px; border-radius:11px}
.bitem .t{font-size:13.5px; line-height:1.3}
.bitem .sig{font-size:11.5px; margin-top:1px}
.bitem code{font-size:12px}
.card > header + .body{padding-top:2px}

/* banners: consistent, calm, aligned */
.banner{padding:12px 14px; font-size:13.5px; font-weight:600; border-radius:11px; gap:10px; line-height:1.45}
.banner .tiny{font-size:12.5px; font-weight:500}
#ov-exc{gap:7px}

/* "do it" buttons sit on one line, consistent width */
#ov-next .pill.acc{min-width:54px; justify-content:center}

/* ---- side artists ---- */
.featrow{background:var(--surface2); border-radius:12px; padding:14px; display:flex; flex-direction:column; gap:12px}
.featrow.ok{background:var(--go-soft)}
.featclear{display:flex; flex-direction:column; gap:9px; padding-top:11px; border-top:1px solid var(--line)}
.featclear .sig{line-height:1.45}

/* ============================================================
   READABILITY — sequence rows were pale, clipped and sparse
   ============================================================ */






/* the stage meter actually reads now: thicker bar, solid label */





/* audio badge: real contrast in both states */



/* the open-song chevron needs to look like a control */



/* stage edge reads at a glance */


@media (max-width:1180px){
  
  
}
@media (max-width:760px){
  
  
}

/* sidebar counts were washing out */
.tab em{color:var(--ink2); font-weight:700}
.sidemeter .sm b{color:var(--ink)}
.sidemeter .pill{font-weight:700}

/* generic: nothing pale enough to strain on white */
.sig{color:var(--ink2)}
.muted{color:var(--ink2)}

/* ============================================================
   COUNTDOWN CLOCK
   ============================================================ */
.hero{grid-template-columns:auto minmax(0,1fr) auto}
@media (max-width:1100px){ .hero{grid-template-columns:auto minmax(0,1fr)} }
@media (max-width:760px){ .hero{grid-template-columns:1fr} }@media (max-width:1320px){}

/* the tick: a quick lift as each number changes */
@keyframes cdflip{ 0%{transform:translateY(-5px); opacity:.35} 100%{transform:translateY(0); opacity:1} }@media (prefers-reduced-motion:reduce){}

/* Overview is shorter now */
#sec-ov{gap:14px}

/* Overview: keep it to one screen of signal */
#sec-ov .ovgrid{grid-template-columns:repeat(auto-fit,minmax(184px,1fr)); gap:10px}
#sec-ov .ovgrid .card .body{padding:13px 15px 15px}
#sec-ov .stat b{font-size:30px}
#ov-next .bitem:nth-child(n+4){display:none}        /* top three actions only */
#ov-block .bitem:nth-child(n+6),
#ov-artist .bitem:nth-child(n+6){display:none}      /* five each, the rest live on Checklist */
#ov-exc .banner:nth-child(n+4){display:none}

/* hero artist name edits in place */
#hero-artist{outline:none; border-radius:8px; padding:2px 6px; margin-left:-6px;
  transition:background .14s, box-shadow .14s; cursor:text; min-width:2ch}
#hero-artist:hover{background:var(--surface2)}
#hero-artist:focus{background:var(--surface); box-shadow:0 0 0 3px var(--accent-soft), 0 0 0 1.5px var(--accent)}
#hero-artist[data-empty="1"]::before{content:attr(data-placeholder); color:var(--ink3); font-weight:800}
#hero-artist[contenteditable="false"]{cursor:default}
#hero-artist[contenteditable="false"]:hover{background:none}

/* ============================================================
   CRITICAL: only the selected section renders.
   The rewrite dropped these and every page stacked at once.
   ============================================================ */
.sec{display:none; flex-direction:column; gap:16px}
.sec.on{display:flex}

/* ---- 390px: nothing may sit off-screen ---- */
@media (max-width:900px){
  html,body{overflow-x:hidden}
  .topbar{flex-wrap:wrap; height:auto; padding:9px 12px; gap:8px; row-gap:8px}
  .topbar .grow{display:none}
  .psw{order:1; flex:1 1 auto; min-width:0; max-width:none}
  #btn-palette{order:2}
  .avstack{order:3}   #btn-update{order:5} #btn-details{order:6} #btn-account{order:7}
  .sidenav{padding:8px 10px; gap:10px}
  .sidenav .tabs{flex:1; min-width:0; overflow-x:auto; -webkit-overflow-scrolling:touch}
  .navbrand b{display:none}
  .main{padding:16px 12px 70px; max-width:100%}
  .hero{padding:18px}
}
@media (max-width:420px){
  #btn-update span,#btn-details,#btn-account{font-size:12px}
  .gatestrip{padding:14px}
}

/* ---- per-song file slots ---- */
.slots{display:flex; flex-direction:column; gap:8px}
.slot{background:var(--surface2); border-radius:12px; padding:12px 13px; display:flex; flex-direction:column; gap:9px;
  border-left:4px solid var(--line2)}
.slot.have{border-left-color:var(--go); background:var(--go-soft)}
.slot.ticked{border-left-color:var(--warn)}
.slot-hd{display:flex; align-items:flex-start; gap:12px; justify-content:space-between}
.slot-name b{display:block; font-size:13.5px; font-weight:800; letter-spacing:-.02em}
.slot-name span{display:block; font-size:12px; color:var(--ink2); margin-top:1px; line-height:1.35}
.slot-state{flex:none}
.slot-file{display:flex; align-items:center; gap:9px; flex-wrap:wrap; background:var(--surface);
  border-radius:9px; padding:8px 10px; font-size:12.5px}
.slot-v{font-size:11px; font-weight:800; color:var(--accent); background:var(--accent-soft); padding:3px 8px; border-radius:999px}
.slot-lab{font-weight:700; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1}
.slot-acts{display:flex; gap:7px; flex-wrap:wrap}

/* ---- drop anywhere ---- */
.dropveil{position:fixed; inset:0; z-index:150; display:none; place-items:center;
  background:color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,.82)); backdrop-filter:blur(3px)}
.dropveil.on{display:grid}
.dropveil > div{background:var(--surface); border-radius:18px; padding:30px 42px; text-align:center;
  box-shadow:var(--shadow-pop); border:3px dashed var(--accent)}
.dropveil b{display:block; font-size:22px; font-weight:800; letter-spacing:-.035em}
.dropveil span{display:block; font-size:14px; color:var(--ink2); margin-top:5px}


/* ============================================================
   WHERE THE RELEASE STANDS
   One segment per gate. Nothing overlaps: the active segment is
   marked by height and a caret, never by an outer ring.
   ============================================================ */
.gatestrip{display:flex; flex-direction:column; gap:14px; background:var(--surface);
  border-radius:var(--r); padding:18px 20px 16px; box-shadow:var(--shadow)}

.prog-head{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap}
.prog-now{display:flex; align-items:baseline; gap:10px; margin-top:4px; flex-wrap:wrap}
.prog-now b{font-size:21px; font-weight:800; letter-spacing:-.035em; line-height:1.1}
.prog-now span{font-size:13px; color:var(--ink2); font-weight:600}
.prog-pct{display:flex; flex-direction:column; align-items:flex-end; flex:none}
.prog-pct b{font-size:30px; font-weight:800; letter-spacing:-.045em; font-variant-numeric:tabular-nums; line-height:1}
.prog-pct .lbl{font-size:11.5px; margin-top:2px}

/* the track: generous gaps so nothing can collide */
.prog-track{display:flex; align-items:flex-end; gap:7px; height:22px; padding-top:6px}
.prog-seg{
  position:relative; height:12px; min-width:14px; padding:0; border:0;
  background:var(--surface3); border-radius:99px; overflow:visible;
  transition:height .16s cubic-bezier(.2,.8,.2,1);
}
.prog-seg i{
  display:block; height:100%; width:0; border-radius:99px;
  background:var(--gc,var(--accent));
  transition:width .55s cubic-bezier(.2,.8,.2,1);
}
.prog-seg.done i{background:var(--go)}
.prog-seg:hover{height:16px}
.prog-seg:focus-visible{outline:2px solid var(--accent); outline-offset:3px}

/* the current gate: taller, plus a caret above it. No ring, no overlap. */
.prog-seg.now{height:18px}
.prog-seg.now::after{
  content:""; position:absolute; left:50%; top:-7px; width:0; height:0; transform:translateX(-50%);
  border-left:4px solid transparent; border-right:4px solid transparent;
  border-top:5px solid var(--gc,var(--accent));
}

/* legend sits under its own segment and never wraps into the next */
.prog-legend{display:flex; gap:7px; margin-top:-2px}
.prog-leg{
  min-width:0; padding:0; text-align:left; font-size:11.5px; font-weight:600; color:var(--ink3);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; background:none; line-height:1.3;
}
.prog-leg.now{color:var(--ink); font-weight:800}
.prog-leg.done{color:var(--go); font-weight:700}
.prog-leg:hover{color:var(--ink)}
@media (max-width:900px){
  .prog-legend{display:none}
  .prog-now b{font-size:18px}
  .prog-pct b{font-size:25px}
}


/* ============================================================
   ALBUM SEQUENCE — a dense, scannable playlist row
   ============================================================ */
.seqlist{display:flex; flex-direction:column; gap:0}
.tcard{
  display:grid;
  grid-template-columns: 26px 30px minmax(150px,1fr) 64px 118px auto;   /* one track per child: grip, no., title, runtime, ISRC, cluster */
  align-items:center; gap:14px;
  background:var(--surface); border-radius:10px;
  padding:0 12px 0 0; margin:0 0 4px;
  height:50px;                                   /* fixed row height: easy to scan */
  box-shadow:0 1px 2px rgba(0,0,0,.05);
  border-left:5px solid var(--stage,var(--line2));
  will-change:transform;
}
.tcard:hover{background:var(--surface2)}
.tcard.slide{transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.tcard.lifted{box-shadow:var(--shadow-lift); z-index:5; position:relative; cursor:grabbing}
.tcard.playing{box-shadow:inset 0 0 0 2px var(--accent)}

.grip{display:grid; place-items:center; height:100%; color:var(--line2); cursor:grab; touch-action:none; margin-left:7px}
.grip:hover{color:var(--accent)}
.tno{font-size:13px; font-weight:800; text-align:right; color:var(--ink3); font-variant-numeric:tabular-nums}

/* fields read as fields: a quiet underline that wakes on hover */
.tcard input{background:none; border:0; padding:4px 2px; width:100%; min-width:0;
  border-bottom:1.5px solid transparent; border-radius:0}
.tcard input:hover{border-bottom-color:var(--line2)}
.tcard input:focus{border-bottom-color:var(--accent); outline:none}
.tcard input.ttl{font-size:14.5px; font-weight:700; letter-spacing:-.025em; color:var(--ink)}
.tcard input.ttl::placeholder{color:var(--ink3); font-weight:600}
.tcard input.mono{font-family:var(--mono); font-size:12.5px; color:var(--ink2); font-variant-numeric:tabular-nums}
.tcard input.mono::placeholder{color:var(--line2); font-weight:400; letter-spacing:0}

/* stage: bar and label on one line, aligned, never stacked */
.tmeter{display:flex; align-items:center; gap:9px; position:relative; min-width:0}
.tmeter::before{content:""; position:relative; display:block; width:52px; height:7px; flex:none;
  background:var(--surface3); border-radius:99px}
.tmeter i{position:absolute; left:0; top:50%; transform:translateY(-50%); height:7px;
  border-radius:99px; background:var(--stage,var(--accent)); max-width:52px}
.tmeter span{font-size:12px; font-weight:700; color:var(--ink); letter-spacing:-.015em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

/* The sequence row's right-hand cluster. Deliberately nowrap: it sits in
   a single grid cell, and wrapping it is what made every row double height. */
.tright{display:flex; align-items:center; gap:10px; flex-wrap:nowrap; min-width:0}
.tright .tmeter{flex:0 1 auto; min-width:0}
.tright .tmeter span{max-width:72px}
@media (max-width:1100px){
  .tright .tmeter span{display:none}       /* keep the bar, drop the word */
  .tright{gap:8px}
}
.hasaud{font-size:11px; font-weight:700; padding:4px 9px; border-radius:999px; white-space:nowrap;
  background:var(--surface3); color:var(--ink3); justify-self:start}
.hasaud.on{background:var(--go-soft); color:var(--go)}

.tcard .xbtn{font-size:17px; color:var(--line2); width:26px; height:26px; display:grid; place-items:center; padding:0; border-radius:7px}
.tcard:hover .xbtn{color:var(--ink3)}
.tcard .xbtn:hover{background:var(--surface3); color:var(--ink)}

/* side break reads as a divider, not a row */
.sidebreak{display:flex; align-items:center; gap:10px; padding:7px 14px; margin:8px 0;
  background:var(--steel-soft); border-radius:999px}
.gapbtn{height:14px}
.gapbtn span{font-size:11px; font-weight:700; padding:2px 10px}

@media (max-width:1240px){
  .tcard{grid-template-columns:26px 28px minmax(130px,1fr) 60px auto; gap:12px}   /* ISRC is hidden here, so the cluster is the 5th child */
  .tcard .hasaud{display:none}
  .tcard input.mono[aria-label^="ISRC"]{display:none}
}
@media (max-width:820px){
  .tcard{grid-template-columns:24px 26px minmax(100px,1fr) 56px auto; gap:10px; height:48px}
  .tmeter{display:none}
}

/* ============================================================
   NAVIGATION — vibrant, animated, tactile
   ============================================================ */
.tabs{position:relative; display:flex; flex-direction:column; gap:3px; overflow:visible}
.navslider{
  position:absolute; left:0; top:0; z-index:0; border-radius:11px; pointer-events:none;
  background:color-mix(in srgb, var(--nc,var(--accent)) 13%, transparent);
  box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--nc,var(--accent)) 30%, transparent);
  transition:transform .34s cubic-bezier(.32,1.5,.42,1), width .26s ease, height .26s ease, background .26s ease;
}
.tab{
  position:relative; z-index:1; display:flex; align-items:center; gap:12px;
  height:40px; padding:0 11px; border-radius:11px;
  font-size:13.5px; font-weight:650; color:var(--ink2); letter-spacing:-.015em;
  transition:color .18s, transform .12s cubic-bezier(.3,1.4,.5,1);
}
.tab:hover{color:var(--ink)}
.tab:hover .navico{transform:translateY(-1px) scale(1.06)}
.tab:active{transform:scale(.96)}
.tab[aria-selected="true"]{color:var(--ink); font-weight:750}

/* each icon sits in its own colored tile */
.navico{
  width:28px; height:28px; border-radius:9px; display:grid; place-items:center; flex:none;
  background:color-mix(in srgb, var(--nc,var(--accent)) 14%, transparent);
  color:var(--nc,var(--accent));
  transition:transform .2s cubic-bezier(.3,1.5,.5,1), background .2s, box-shadow .2s;
}
.tab[aria-selected="true"] .navico{
  background:var(--nc,var(--accent)); color:#fff;
  box-shadow:0 3px 10px -2px color-mix(in srgb, var(--nc,var(--accent)) 60%, transparent);
  transform:scale(1.04);
}
.tab svg{width:17px; height:17px}

.tab em{
  font-style:normal; font-size:11px; font-weight:800; font-variant-numeric:tabular-nums;
  background:var(--surface3); color:var(--ink2); padding:2px 8px; border-radius:999px;
  transition:background .2s, color .2s;
}
.tab[aria-selected="true"] em{background:var(--nc,var(--accent)); color:#fff}

.sidenav{padding:16px 11px; gap:14px}
.navbrand{padding:0 6px}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar{
  height:62px; padding:0 26px 0 calc(232px + 26px); gap:14px;
  background:var(--surface); border-bottom:1px solid var(--line);
}
.psw{height:44px; padding:0 15px 0 6px; gap:11px; border-radius:999px; background:var(--surface2); box-shadow:none}
.psw:hover{background:var(--surface3)}
.pswart{width:32px; height:32px; border-radius:50%; overflow:hidden; flex:none; background:var(--surface4)}
.pswart img{width:100%; height:100%; object-fit:cover; display:block}
.pswart.none{background:linear-gradient(0deg,var(--surface4),var(--surface4))}
.psw .nm b{font-size:14px; font-weight:800; letter-spacing:-.025em}
.psw .nm span{font-size:11.5px; color:var(--ink3); font-weight:600}

#btn-update{height:40px; box-shadow:0 3px 10px -3px color-mix(in srgb, var(--accent) 65%, transparent)}
#btn-update:hover{transform:translateY(-1px)}
#btn-details,#btn-account{height:40px; background:none}
#btn-details:hover,#btn-account:hover{background:var(--surface2)}
#btn-palette{height:40px; border-radius:999px; background:var(--surface2); gap:9px}
#btn-palette:hover{background:var(--surface3)}

@media (max-width:900px){
  .topbar{height:auto; padding:9px 12px; flex-wrap:wrap}
  .tabs{flex-direction:row}
  .navslider{border-radius:11px}
   .tab{padding:0 9px; gap:0}
  .tab em{display:none}
}
@media (prefers-reduced-motion:reduce){
  .navslider,.navico,.tab{transition:none}
}


/* ============================================================
   NAV — the icon tile is a span too, so the label rule must
   exclude it or it stretches the tile to fill the row.
   ============================================================ */
.tab > .navico{
  flex:0 0 28px !important; width:28px !important; height:28px; min-width:28px;
  border-radius:9px; display:grid; place-items:center;
}
.tab > span:not(.navico){
  flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.tab{gap:11px; padding:0 10px}
.sidenav{padding:16px 10px}
.wrap{grid-template-columns:244px minmax(0,1fr)}
.topbar{padding-left:calc(244px + 26px)}
.tab em{flex:0 0 auto}

@media (max-width:900px){
  .wrap{grid-template-columns:1fr}
  .topbar{padding-left:12px}
  .tab > span:not(.navico){display:none}
}

/* ---- save state in the song drawer ---- */
.savestate{display:inline-flex; align-items:center; gap:6px; margin-top:6px; font-size:12px; font-weight:700;
  padding:4px 10px; border-radius:999px; transition:background .2s, color .2s}
.savestate.idle{background:var(--surface2); color:var(--ink3); font-weight:600}
.savestate.saving{background:var(--warn-soft); color:var(--warn)}
.savestate.saved{background:var(--go-soft); color:var(--go)}
.savestate.saved::before{content:"✓"; font-weight:900}
.savestate.failed{background:var(--hold-soft); color:var(--hold)}

/* ============================================================
   SIGN IN — the first thing anyone sees. Split: the pitch on
   colour, the form on white.
   ============================================================ */
#gate{min-height:100vh; display:grid; grid-template-columns:1.08fr .92fr; background:var(--ground)}
#gate.hidden{display:none !important}

.pitch{
  position:relative; overflow:hidden; padding:58px 58px 46px;
  display:flex; flex-direction:column; justify-content:space-between; gap:40px;
  background:var(--accent); color:#fff;
}
.pitch::after{
  content:""; position:absolute; right:-170px; bottom:-230px; width:560px; height:560px;
  border-radius:50%; background:rgba(255,255,255,.1); pointer-events:none;
}
.pitch > *{position:relative; z-index:1}

.wordmark{display:flex; align-items:center; gap:11px}
.wm-mark{width:34px; height:34px; border-radius:10px; background:rgba(255,255,255,.18);
  display:grid; place-items:center; flex:none}
.wm-mark svg{width:19px; height:19px; color:#fff}
.wordmark b{font-size:19px; font-weight:800; letter-spacing:-.035em}
.wm-sub{font-size:13px; opacity:.72; padding-left:11px; border-left:1px solid rgba(255,255,255,.3)}

.pitch h1{
  font-size:clamp(38px, 4.4vw, 62px); font-weight:800; letter-spacing:-.045em;
  line-height:1.03; max-width:13ch; color:#fff; margin:0;
}
.pitch h1 em{font-style:italic; font-weight:800; opacity:.78}
.pitch .sub{font-size:16.5px; line-height:1.55; max-width:44ch; margin-top:18px; opacity:.92}

.feat{display:flex; flex-direction:column; gap:10px; margin-top:34px}
.feat > div{
  display:grid; grid-template-columns:30px minmax(0,1fr); gap:14px; align-items:start;
  background:rgba(255,255,255,.14); border-radius:13px; padding:14px 16px;
}
.feat code{font-family:var(--mono); font-size:13px; font-weight:500; opacity:.75; padding-top:1px}
.feat b{display:block; font-size:15px; font-weight:800; letter-spacing:-.02em; margin-bottom:2px}
.feat span{display:block; font-size:13.5px; line-height:1.45; opacity:.85}
.pitch .foot{font-size:13px; opacity:.72}

.gatewrap{display:grid; place-items:center; padding:48px 32px; background:var(--ground)}
.gatebox{
  width:min(400px,100%); background:var(--surface); border-radius:18px;
  box-shadow:var(--shadow-lift); padding:38px 34px;
  display:flex; flex-direction:column; gap:14px;
}
.gatebox h2{font-size:30px; font-weight:800; letter-spacing:-.04em}
.gatebox > p{font-size:14.5px; color:var(--ink2); line-height:1.5}
.gatebox form{display:flex; flex-direction:column; gap:14px; margin-top:4px}
.gatebox .idrow{gap:7px}
.gatebox .f-in{height:46px; font-size:15px}
.gatebox select.f-in{height:46px}
.gatebox .btn.wide{height:50px; font-size:15.5px; margin-top:2px}
.gatebox .mark{display:none}
#gate-msg{font-size:13.5px; color:var(--ink2); line-height:1.5}
#gate-msg:empty{display:none}
.rule{height:1px; background:var(--line); border:0; margin:2px 0}
.gatenote{font-size:13px; color:var(--ink2); line-height:1.5; padding:14px 16px;
  background:var(--surface2); border-radius:12px}



/* ---- single candidates ---- */
.starbtn{width:28px; height:28px; border-radius:50%; display:grid; place-items:center; flex:none;
  color:var(--line2); background:none; transition:color .14s, background .14s, transform .12s}
.starbtn svg{width:16px; height:16px; fill:currentColor}
.starbtn:hover{color:var(--c-amber); background:var(--surface2)}
.starbtn:active{transform:scale(.88)}
.starbtn.on{color:var(--c-amber)}
.scard .hd .starbtn{margin-left:auto; margin-right:-4px}
.tcard .starbtn{width:26px; height:26px}

/* ---- touch drag ---- */
.scard{touch-action:pan-y}
.drag-proxy{box-shadow:var(--shadow-pop); transform:rotate(-1.5deg) scale(1.03); opacity:.96}
.col.dropping{outline:2.5px dashed var(--accent); outline-offset:-3px; background:var(--accent-soft)}
@media (pointer:coarse){
  .grip{width:38px; height:42px}
  .scard{padding:16px}
  .starbtn{width:34px; height:34px}
  .starbtn svg{width:19px; height:19px}
}


/* ---- the app itself on a phone ---- */
@media (max-width:760px){
  .hero{grid-template-columns:1fr; gap:16px; padding:18px; text-align:left}
  .hero-art{width:116px}
  .hero-txt h1{font-size:clamp(26px,8vw,34px)}

  .ovgrid{grid-template-columns:1fr 1fr; gap:9px}
  .ovgrid .card .body{padding:12px 13px 14px}
  .stat b{font-size:26px}
  .card > header{padding:14px 15px 10px}
  .card > header h3{font-size:16px}
  .card .body{padding:0 15px 15px}

  .board{gap:10px; padding-bottom:12px}
  .col{flex:0 0 82vw}
  .bitem{padding:12px; grid-template-columns:26px 1fr auto}
  .tlrow{grid-template-columns:92px 1fr auto; padding:10px 11px}

  /* comfortable tap targets everywhere */
  .btn{height:40px; padding:0 16px}
  .btn.sm{height:34px; padding:0 13px}
  .dchip,.pill{height:30px; padding:0 12px}
  .ck{width:26px; height:26px; margin:16px 0 0 8px}
  .ck:checked::after{left:8px; top:4px; width:7px; height:13px}

  /* the player bar should not eat the screen */
  .playerbar{padding:8px 12px}
  .pl .opts{display:none}
  .pl .tbtn{width:38px; height:38px}
  #pl-hint{display:none}
}


/* ============================================================
   SIGN IN ON A PHONE
   The artist gets the mark, one line, and the form. Nothing to
   scroll past. The pitch is for desktop.
   ============================================================ */
@media (max-width:920px){
  #gate{display:block; min-height:100dvh; background:var(--ground)}

  .pitch{
    padding:22px 20px 30px; gap:0; min-height:0; display:block;
    background:var(--accent);
  }
  .pitch::after{display:none}
  .pitch .foot{display:none}
  .pitch .feat{display:none}          /* the feature list is desktop-only */
  .pitch .sub{display:none}
  .wordmark{margin-bottom:16px}
  .wordmark b{font-size:18px}
  .pitch h1{font-size:26px; line-height:1.1; max-width:none; letter-spacing:-.04em}

  .gatewrap{display:block; padding:0 14px 36px; background:var(--ground)}
  .gatebox{
    width:auto; margin:-20px 0 0; border-radius:18px; padding:24px 20px; gap:12px;
    box-shadow:var(--shadow-lift);
  }
  .gatebox h2{font-size:24px}
  .gatebox > p{font-size:14px}
  .gatebox .f-in,.gatebox select.f-in{height:50px; font-size:16px}   /* 16px stops iOS zoom on focus */
  .gatebox .btn.wide{height:52px; font-size:16px}
  .gatenote{font-size:12.5px; padding:12px 14px}
}

/* ============================================================
   MIX STATE — what the audio itself is, not what stage it is in.
   A song can sit in Mix for weeks as a rough 2-track.
   ============================================================ */
.mixstate{ margin:10px 0 14px }
.mixstate-row{
  display:flex; gap:6px; flex-wrap:wrap;
  background:var(--surface2); padding:4px; border-radius:var(--r-sm);
  border:1px solid var(--line);
}
.msbtn{
  flex:1 1 auto; min-width:92px; text-align:center;
  padding:8px 10px; border-radius:var(--r-xs);
  font-size:12px; font-weight:700; letter-spacing:-.01em;
  color:var(--ink2); background:transparent; border:1px solid transparent;
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.msbtn:hover:not(:disabled):not(.on){ background:var(--surface); color:var(--ink) }
.msbtn:active:not(:disabled){ transform:scale(.97) }
.msbtn.on{
  background:var(--surface); color:var(--ink);
  border-color:color-mix(in srgb, var(--ms) 45%, var(--line));
  box-shadow:0 1px 2px rgba(0,0,0,.06), inset 0 -2px 0 var(--ms);
}
.msbtn:disabled{ opacity:.5; cursor:default }
.msbtn:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }
.ms-note{ margin-top:8px }

/* the same state, readable at a glance on the songs page */
.pill.mschip{
  background:color-mix(in srgb, var(--ms) 14%, var(--surface));
  color:color-mix(in srgb, var(--ms) 65%, var(--ink));
  border:1px solid color-mix(in srgb, var(--ms) 30%, transparent);
}

/* ============================================================
   PLAY BUTTON on a song card
   ============================================================ */
.playbtn{
  flex:0 0 26px; width:26px; height:26px; border-radius:50%;
  display:grid; place-items:center;
  font-size:10px; line-height:1; padding-left:1px;   /* optically centre the triangle */
  background:var(--accent); color:var(--accent-ink);
  border:0; box-shadow:0 1px 3px rgba(0,0,0,.18);
  transition:transform .12s ease, opacity .15s ease;
}
.playbtn:hover:not(:disabled){ transform:scale(1.1) }
.playbtn:active:not(:disabled){ transform:scale(.94) }
.playbtn.off{ background:var(--surface3); color:var(--ink3); box-shadow:none; cursor:default }
.playbtn:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }
@media (prefers-reduced-motion: reduce){
  .msbtn,.playbtn{ transition:none }
}

/* ============================================================
   VAULT — filters, song groups, file rows
   Four mixes of one song have to stay tellable apart, so every
   audio row carries its slot, its version and its type.
   ============================================================ */
.vaultbar{
  display:flex; gap:12px; align-items:center; flex-wrap:wrap;
  margin:16px 0 8px;
}
.vfilters{ display:flex; gap:6px; flex-wrap:wrap; flex:1 1 auto }
.vtab{
  display:inline-flex; align-items:center; gap:7px;
  padding:7px 12px; border-radius:999px;
  background:var(--surface2); border:1px solid var(--line);
  font-size:12px; font-weight:700; color:var(--ink2);
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.vtab:hover{ background:var(--surface3); color:var(--ink) }
.vtab.on{ background:var(--ink); color:var(--f-ground); border-color:var(--ink) }
.vtab-n{
  font-size:10px; font-weight:800; padding:1px 6px; border-radius:999px;
  background:color-mix(in srgb, currentColor 16%, transparent);
}
.vtab:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }
.vsearch{ flex:0 1 280px; min-width:180px }

.vgroup{
  border:1px solid var(--line); border-radius:var(--r);
  background:var(--surface); margin-bottom:12px; overflow:hidden;
}
.vgroup-h{
  display:flex; align-items:center; gap:10px;
  padding:11px 14px; background:var(--surface2);
  border-bottom:1px solid var(--line);
  font-size:13px;
}
.vgroup-h b{ font-weight:700; letter-spacing:-.01em }
.vgroup-h .sig{ margin-left:auto }
.vgroup-h-loose{
  border:0; background:none; padding:22px 0 10px; font-weight:800;
  font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink2);
}
.vgroup-n{
  font-family:var(--mono); font-size:11px; color:var(--ink3);
  min-width:22px; font-variant-numeric:tabular-nums;
}
.vdot{ width:9px; height:9px; border-radius:50%; flex:0 0 9px }

.vrow{
  display:flex; align-items:center; gap:12px;
  padding:10px 14px; border-bottom:1px solid var(--line);
}
.vrow:last-child{ border-bottom:0 }
.vrow:hover{ background:var(--surface2) }
.vslot{
  flex:0 0 auto; min-width:92px; text-align:center;
  padding:4px 9px; border-radius:var(--r-xs);
  background:var(--surface3); color:var(--ink2);
  font-size:10px; font-weight:800; letter-spacing:.07em;
}
.vrow-m{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px }
.vrow-m b{ font-weight:600; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.vaudio{ flex:0 0 200px; height:32px; max-width:200px }
@media (max-width:720px){
  .vrow{ flex-wrap:wrap }
  .vaudio{ flex:1 1 100%; max-width:none; order:5 }
  .vslot{ min-width:0 }
}

/* ============================================================
   SONGS — section-level actions
   Grid and Pipeline hide one another, so these live above both.
   ============================================================ */
.sgbar{
  display:flex; gap:8px; flex-wrap:wrap; align-items:center;
  margin-bottom:14px;
}
.sgbar .btn{ flex:0 0 auto }
@media (max-width:620px){
  .sgbar{ gap:6px }
  .sgbar .btn{ flex:1 1 auto; justify-content:center }
}

/* ============================================================
   DELIVERABLES MATRIX
   The header names each column once; a cell only carries state.
   Repeating the slot name in every cell forced two-line labels
   across every row.
   ============================================================ */
#deltable th.dcol{
  font-size:10px; font-weight:800; letter-spacing:.06em;
  color:var(--ink3); text-align:center; white-space:nowrap;
  padding:8px 4px;
}
#deltable td.dsong{
  max-width:210px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font-weight:600;
}
.dcell{
  width:30px; height:26px; margin:0 auto; display:grid; place-items:center;
  border-radius:7px; border:1px solid var(--line);
  background:var(--surface2); color:var(--ink3);
  font-size:12px; font-weight:800; line-height:1;
  transition:background .14s ease, color .14s ease, border-color .14s ease, transform .1s ease;
}
.dcell:hover:not(:disabled){ border-color:var(--line2); background:var(--surface3) }
.dcell:active:not(:disabled){ transform:scale(.9) }
.dcell.on{
  background:var(--go-soft); color:var(--go);
  border-color:color-mix(in srgb, var(--go) 30%, transparent);
}
.dcell:disabled{ opacity:.6; cursor:default }
.dcell:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }
#deltable td{ padding:5px 4px }
@media (prefers-reduced-motion: reduce){ .dcell{ transition:none } }

/* ============================================================
   WHAT STILL NEEDS AUDIO
   An absence is invisible, so it gets its own card. The counts
   are buttons: the thing you read is the thing you act on.
   ============================================================ */
#sg-need{ margin-bottom:14px }
#sg-need.hidden{ display:none }
.needcard{
  border:1px solid color-mix(in srgb, var(--warn) 26%, var(--line));
  background:linear-gradient(180deg, color-mix(in srgb, var(--warn) 7%, var(--surface)), var(--surface));
  border-radius:var(--r); padding:14px 16px;
  box-shadow:var(--shadow);
}
.needcard.ok{
  border-color:color-mix(in srgb, var(--go) 26%, var(--line));
  background:linear-gradient(180deg, color-mix(in srgb, var(--go) 7%, var(--surface)), var(--surface));
}
.needhd{ display:flex; align-items:center; gap:10px; flex-wrap:wrap }
.needhd b{ font-size:15px; font-weight:800; letter-spacing:-.02em }
.needhd .sig{ margin-left:auto }
.needdot{
  width:9px; height:9px; border-radius:50%; flex:0 0 9px; background:var(--warn);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent);
}
.needcard.ok .needdot{ background:var(--go); box-shadow:0 0 0 4px color-mix(in srgb, var(--go) 18%, transparent) }

.needchips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px }
.needchip{
  display:inline-flex; align-items:baseline; gap:7px;
  padding:8px 13px; border-radius:999px;
  background:var(--surface); border:1px solid var(--line2);
  font:inherit; cursor:pointer;
  transition:transform .12s ease, border-color .16s ease, background .16s ease;
}
.needchip b{ font-size:15px; font-weight:800; font-variant-numeric:tabular-nums }
.needchip span{ font-size:12.5px; color:var(--ink2); font-weight:600 }
.needchip:hover{ background:var(--surface2); border-color:var(--ink3) }
.needchip:active{ transform:scale(.96) }
.needchip:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }
.needlist{ margin-top:10px; font-size:12.5px; color:var(--ink2); line-height:1.5 }

/* a song with no audio asks for it instead of showing a dead play button */
.needbtn{
  flex:0 0 26px; width:26px; height:26px; border-radius:50%;
  display:grid; place-items:center;
  font-size:13px; font-weight:800; line-height:1;
  background:var(--warn-soft); color:var(--warn);
  border:1px dashed color-mix(in srgb, var(--warn) 45%, transparent);
  transition:transform .12s ease, background .16s ease;
}
.needbtn:hover{ background:color-mix(in srgb, var(--warn) 18%, var(--surface)); transform:scale(1.1) }
.needbtn:active{ transform:scale(.94) }
.needbtn:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }
@media (prefers-reduced-motion: reduce){ .needchip,.needbtn{ transition:none } }

/* ============================================================
   HERO TYPE
   The hero had a 44px name dropping straight to a 13px line with
   nothing between, and an eyebrow on the generic .lbl class that
   read as body copy. This gives it four deliberate tiers.
   ============================================================ */

/* 1 — the label. Small, tracked, quiet: clearly a caption, not a sentence. */
#hero-eyebrow{
  font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink3); line-height:1.3; margin:0;
}

/* 2 — the name. The biggest thing on the page, and it should feel like it. */
.hero-txt h1,
#hero-artist{
  font-size:clamp(30px, 4.3vw, 62px);
  font-weight:800; letter-spacing:-.05em; line-height:.98;
  margin:10px 0 0; color:var(--ink);
}

/* 3 — the record line. A real second tier, not a whisper. */
.hero-sub{
  font-size:15px; font-weight:600; color:var(--ink2);
  letter-spacing:-.01em; line-height:1.45; margin-top:10px;
}

/* 4 — the state pills, with room to breathe */
.hero-pills{ margin-top:16px; gap:8px }
.hero-pills .pill{ font-size:12px; padding:5px 11px; font-weight:700 }

/* and a little more air around the whole block */
.hero{ padding:28px }
@media (max-width:760px){
  .hero{ padding:22px }
  .hero-sub{ font-size:14px }
  #hero-eyebrow{ font-size:10.5px }
}

/* ============================================================
   SURFACE LANGUAGE — Apple Music, properly
   Every section used to be a white rounded card with a shadow,
   floating on grey. That one device, repeated eight times, is
   what made the app read as generic. Content now sits directly
   on a single canvas; chrome is translucent; the artwork tints
   the ground. Borders are hairlines, never boxes.
   ============================================================ */

:root{
  --ground:var(--art-ground, #F0F0F3);   /* a canvas, not a sheet of paper */
  --canvas-rule:color-mix(in srgb, var(--ink) 9%, transparent);
}
body{ background:var(--ground) }

/* sections, not cards */
.card{
  background:transparent;
  box-shadow:none;
  border-radius:0;
  overflow:visible;
  border-top:1px solid var(--canvas-rule);
}
.card + .card{ margin-top:4px }
#sec-ov > .card:first-of-type,
.sec > .card:first-of-type{ border-top:0 }

/* a section title should read like a shelf heading, not a card label */
.card > header{
  padding:30px 0 16px;
  align-items:baseline; gap:14px;
}
.card > header h3,
.card > header .lead{
  font-size:25px; font-weight:800; letter-spacing:-.04em; line-height:1.1;
  color:var(--ink);
}
.card > header .tiny.muted,
.card > header .sig{ font-size:13px; color:var(--ink3) }
.card .body{ padding:0 0 30px }

/* the hero keeps its artwork wash, but loses the card edge */
.hero{
  border-radius:var(--r);
  box-shadow:none;
  border:1px solid var(--canvas-rule);
  padding:30px;
}

/* chrome floats over the content, frosted */
.topbar{
  background:color-mix(in srgb, var(--ground) 72%, transparent);
  backdrop-filter:saturate(180%) blur(22px);
  -webkit-backdrop-filter:saturate(180%) blur(22px);
  border-bottom:1px solid var(--canvas-rule);
}
.sidenav{
  background:color-mix(in srgb, var(--ground) 64%, transparent);
  backdrop-filter:saturate(180%) blur(22px);
  -webkit-backdrop-filter:saturate(180%) blur(22px);
  border-right:1px solid var(--canvas-rule);
}
.pl{
  background:color-mix(in srgb, var(--ground) 76%, transparent) !important;
  backdrop-filter:saturate(180%) blur(24px);
  -webkit-backdrop-filter:saturate(180%) blur(24px);
  border-top:1px solid var(--canvas-rule);
}

/* inner surfaces that still need to read as raised keep a tint,
   not a shadow: rows, inputs, chips */
.slot, .acard, .vgroup, .needcard, .mixstate-row{
  box-shadow:none;
}
.vgroup{ border-color:var(--canvas-rule) }

/* content gets more room now that nothing is boxed */
.main{ max-width:1240px; padding:16px 32px 72px; gap:0 }
@media (max-width:900px){ .main{ padding:12px 18px 72px } }

/* ============================================================
   SONG PIPELINE — lanes, not columns
   Nine 252px columns meant ~4000px of horizontal scroll, and a
   record with 52 songs in one stage stacked them all vertically
   in a single narrow column. Each stage is now a horizontal lane:
   the page scrolls down like everything else, songs flow and wrap,
   and an empty stage costs one line instead of a full column.
   Every drop target keeps its original markup, so drag still works.
   ============================================================ */
.board{
  display:flex; flex-direction:column; gap:0;
  overflow-x:visible; padding:4px 0 8px;
}
.col{
  flex:none; width:auto; min-height:0;
  display:grid; grid-template-columns:168px minmax(0,1fr);
  gap:18px; align-items:start;
  background:transparent; border-radius:0;
  padding:16px 10px; border-top:1px solid var(--canvas-rule);
}
.col:first-child{ border-top:0 }
.col > header{
  position:static; background:transparent; border-radius:0; padding:2px 0 0;
  display:flex; align-items:center; gap:9px;
}
.col > header b{ font-size:15px }
.col > header .ct{
  margin-left:auto; font-size:12px; padding:2px 8px; border-radius:999px;
  background:var(--surface2); color:var(--ink2);
}
.col .stack{
  padding:0; display:flex; flex-direction:row; flex-wrap:wrap; gap:9px;
  min-height:0;
}
.col.dropping{ background:var(--accent-soft); outline:2px dashed var(--accent); outline-offset:-4px; border-radius:var(--r-sm) }

/* an empty stage: one quiet line that is still a drop target */
.col.lane-empty{ padding:9px 10px; opacity:.62 }
.col.lane-empty > header b{ font-size:13.5px; font-weight:700 }
.col.lane-empty .stack{ min-height:22px }
.col.lane-empty .stack::after{
  content:"nothing here yet"; font-size:12px; color:var(--ink3); align-self:center;
}

/* compact cards so a 52-song stage reads as a grid, not a tower */
.col .scard{
  width:232px; flex:0 0 232px;
  padding:11px 12px 10px; gap:7px;
  border-radius:var(--r-sm);
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}
.col .scard:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lift) }
.col .scard .ti{ font-size:14px }

@media (max-width:900px){
  .col{ grid-template-columns:1fr; gap:10px; padding:14px 6px }
  .col > header .ct{ margin-left:auto }
  .col .scard{ width:100%; flex:1 1 100% }
}

/* ============================================================
   SONG PIPELINE — work queue
   Distribution first, then the filters that match the real
   questions, then one dense line per song. Built for 60 songs
   where 52 sit in one stage, which a kanban cannot show.
   ============================================================ */
#board{ display:block; overflow:visible; padding:0 }

/* the shape of the record */
.pipe-dist{ display:flex; gap:3px; margin:4px 0 16px; height:54px }
.pipe-seg{
  flex:1 1 0; min-width:48px; border:0; border-radius:10px; cursor:pointer;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  gap:1px; padding:0 12px; text-align:left; overflow:hidden;
  background:color-mix(in srgb, var(--seg) 17%, var(--surface));
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--seg) 26%, transparent);
  transition:background .16s ease, transform .12s ease, box-shadow .16s ease;
}
.pipe-seg b{ font-size:17px; font-weight:800; color:color-mix(in srgb, var(--seg) 72%, var(--ink)); font-variant-numeric:tabular-nums; line-height:1 }
.pipe-seg span{ font-size:11px; font-weight:700; color:var(--ink2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100% }
.pipe-seg:hover{ background:color-mix(in srgb, var(--seg) 26%, var(--surface)) }
.pipe-seg.on{ background:color-mix(in srgb, var(--seg) 34%, var(--surface)); box-shadow:inset 0 0 0 2px var(--seg) }
.pipe-seg:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }

/* filters */
.pipe-filters{ display:flex; gap:7px; flex-wrap:wrap; margin-bottom:12px }
.pipe-filter{
  display:inline-flex; align-items:center; gap:7px;
  padding:7px 13px; border-radius:999px; border:1px solid var(--line);
  background:var(--surface); color:var(--ink2);
  font:inherit; font-size:13px; font-weight:700; cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.pipe-filter em{ font-style:normal; font-size:11px; font-weight:800; color:var(--ink3); font-variant-numeric:tabular-nums }
.pipe-filter:hover{ background:var(--surface2); color:var(--ink) }
.pipe-filter.on{ background:var(--ink); color:var(--f-ground); border-color:var(--ink) }
.pipe-filter.on em{ color:color-mix(in srgb, var(--f-ground) 70%, transparent) }

/* bulk move */
.pipe-bulk{
  display:none; align-items:center; gap:12px; flex-wrap:wrap;
  padding:11px 14px; margin-bottom:12px; border-radius:var(--r-sm);
  background:var(--ink); color:var(--f-ground);
  position:sticky; top:66px; z-index:12;
  box-shadow:var(--shadow-lift);
}
.pipe-bulk.on{ display:flex }
.pipe-bulk > b{ font-size:14px; font-weight:800 }
.pipe-move{ display:flex; align-items:center; gap:6px; flex-wrap:wrap }
.pipe-move .sig{ color:color-mix(in srgb, var(--f-ground) 62%, transparent); font-size:12px }
.pipe-mv{
  padding:5px 10px; border-radius:999px; border:0; cursor:pointer;
  background:color-mix(in srgb, var(--seg) 82%, transparent); color:#0B0D11;
  font:inherit; font-size:12px; font-weight:800;
  transition:transform .12s ease, filter .15s ease;
}
.pipe-mv:hover{ filter:brightness(1.12) }
.pipe-mv:active{ transform:scale(.94) }
.pipe-clear{
  margin-left:auto; padding:6px 12px; border-radius:999px; cursor:pointer;
  background:transparent; border:1px solid color-mix(in srgb, var(--f-ground) 34%, transparent);
  color:var(--f-ground); font:inherit; font-size:12px; font-weight:700;
}

/* the queue */
.pipe-head, .pipe-row{
  display:grid;
  grid-template-columns:28px 34px minmax(0,1fr) 124px 34px 118px 62px 28px;
  align-items:center; gap:12px;
}
.pipe-head{
  padding:0 10px 9px; border-bottom:1px solid var(--canvas-rule);
  font-size:10.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--ink3);
}
.pipe-head .ph.grow{ justify-self:start }
.pipe-list{ display:flex; flex-direction:column }
.pipe-row{
  padding:9px 10px; border-bottom:1px solid var(--canvas-rule);
  cursor:pointer; position:relative;
  transition:background .13s ease;
}
.pipe-row::before{
  content:""; position:absolute; left:0; top:6px; bottom:6px; width:3px;
  border-radius:0 3px 3px 0; background:var(--seg);
}
.pipe-row:hover{ background:var(--surface2) }
/* NOT .sel — that is a generic 34px control class in this stylesheet, and a
   row carrying it inherited the fixed height and clipped its own content. */
.pipe-row.picked{ background:var(--accent-soft) }
.pipe-chk{ width:16px; height:16px; accent-color:var(--accent); cursor:pointer }
.pno{ font-size:12px; font-weight:700; color:var(--ink3); font-variant-numeric:tabular-nums; text-align:center }
.pti{ min-width:0; display:flex; flex-direction:column; gap:1px }
.pti b{ font-size:14.5px; font-weight:700; letter-spacing:-.02em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.pti span{ font-size:12px; color:var(--ink3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.pipe-stage{
  font:inherit; font-size:12px; font-weight:700; cursor:pointer;
  padding:5px 9px; border-radius:999px;
  border:1px solid color-mix(in srgb, var(--seg) 40%, transparent);
  background:color-mix(in srgb, var(--seg) 15%, var(--surface));
  color:color-mix(in srgb, var(--seg) 65%, var(--ink));
  appearance:none; -webkit-appearance:none; text-align:center;
}
.pipe-stage:disabled{ opacity:.65; cursor:default }
.paud{ display:grid; place-items:center }
.pdl{ display:flex; gap:3px; align-items:center }
.pdl i{ width:8px; height:8px; border-radius:2px; background:var(--surface3); display:block }
.pdl i.on{ background:var(--go) }
.psplit{ justify-self:start; font-size:11px }
.pipe-foot{ padding:14px 10px 0; font-size:12.5px; color:var(--ink3) }

@media (max-width:1000px){
  .pipe-head, .pipe-row{ grid-template-columns:28px 30px minmax(0,1fr) 110px 34px 28px }
  .pipe-head .ph:nth-child(6), .pipe-head .ph:nth-child(7),
  .pipe-row .pdl, .pipe-row .psplit{ display:none }
  .pipe-dist{ height:46px }
}

/* pipeline: stronger type, and room for the explanations */
.pipe-dist{ height:72px; gap:4px; margin:6px 0 12px }
.pipe-seg{ padding:0 14px; gap:3px; border-radius:12px }
.pipe-seg b{
  font-size:28px; letter-spacing:-.05em; line-height:.95;
  color:color-mix(in srgb, var(--seg) 78%, var(--ink));
}
.pipe-seg span{
  font-size:10.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
  color:var(--ink2);
}
.pipe-cap{ display:flex; gap:9px; flex-wrap:wrap; align-items:baseline; margin:0 0 20px; padding:0 2px }
.pipe-cap b{ font-size:15px; font-weight:800; letter-spacing:-.025em }
.pipe-cap span{ font-size:13.5px; color:var(--ink2) }
.pipe-cap2{ font-size:12.5px; color:var(--ink3); margin:-4px 0 18px; padding:0 2px; max-width:72ch; line-height:1.5 }
.pipe-cap3{ font-size:12.5px; color:var(--ink3); margin:10px 0 2px; padding:0 10px; max-width:76ch; line-height:1.5 }

.pipe-filter{ font-size:13.5px; padding:8px 14px }
.pipe-filter em{ font-size:12px }

.pipe-head{ font-size:10px; letter-spacing:.1em; padding-bottom:10px }
.pti b{ font-size:16px; font-weight:800; letter-spacing:-.03em }
.pti span{ font-size:12.5px }
.pno{ font-size:13px; font-weight:800 }
.pipe-stage{ font-size:12.5px; font-weight:800; padding:6px 10px }
.pipe-row{ padding:11px 10px }
.pipe-foot{ font-size:13px; font-weight:600; color:var(--ink2) }

/* ============================================================
   WORDMARK — no glyph
   A letter in a rounded tile is the single most generic mark in
   software, and at 28px the needle just read as a T. The name,
   set confidently, does more work than a weak symbol.
   ============================================================ */
.navbrand{
  display:flex; flex-direction:column; align-items:flex-start; gap:1px;
  padding:4px 10px 14px; min-height:0;
}
.navbrand b{
  font-size:20px; font-weight:800; letter-spacing:-.05em; line-height:1;
  color:var(--ink);
}
.navbrand-sub{
  font-size:9.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink3);
}
.navbrand .tile{ display:none }

/* ---- pipeline: grip column, quieter play, live file squares ---- */
.pipe-head, .pipe-row{
  grid-template-columns:22px 26px 32px minmax(0,1fr) 120px 30px 118px 58px 24px;
  gap:10px;
}
.ph{ overflow:hidden; white-space:nowrap; text-overflow:ellipsis }
.ph.pc-aud, .ph.pc-dl{ text-align:left }
.ph.pc-split{ text-align:left }

.pgrip{
  display:grid; place-items:center; width:22px; height:30px; padding:0;
  color:var(--line2); background:none; border:0; border-radius:7px;
  cursor:grab; touch-action:none;
  opacity:0; transition:opacity .14s ease, color .14s ease;
}
.pipe-row:hover .pgrip{ opacity:1 }
.pgrip:hover{ color:var(--ink3); background:var(--surface3) }
.pgrip:disabled{ cursor:default }
.pipe-list.reorderable .pipe-row{ transition:transform .16s cubic-bezier(.2,.8,.2,1) }
.pipe-row.lifted{
  transition:none; z-index:6; position:relative;
  background:var(--surface); box-shadow:var(--shadow-lift); border-radius:var(--r-sm);
}
.pipe-row.lifted .pgrip{ opacity:1; cursor:grabbing }

/* A solid red circle on every row with audio was shouting. Quiet by
   default, accent only on hover — the way a track list should behave. */
.pipe-row .playbtn{
  background:var(--surface3); color:var(--ink2);
  box-shadow:none; width:24px; height:24px; flex:0 0 24px; font-size:9px;
}
.pipe-row:hover .playbtn,
.pipe-row .playbtn:hover{ background:var(--accent); color:var(--accent-ink) }
.pipe-row .needbtn{
  width:24px; height:24px; flex:0 0 24px; font-size:12px;
  background:transparent; color:var(--ink3);
  border:1px dashed var(--line2);
}
.pipe-row:hover .needbtn{ color:var(--warn); border-color:color-mix(in srgb, var(--warn) 50%, transparent) }

/* the ten files, now clickable */
.pdl{ display:flex; gap:3px; align-items:center }
.pdot{
  width:9px; height:9px; border-radius:2px; padding:0; border:0;
  background:var(--surface3); cursor:pointer; display:block;
  transition:background .13s ease, transform .1s ease;
}
.pdot:hover:not(:disabled){ background:var(--line2); transform:scale(1.35) }
.pdot.on{ background:var(--go) }
.pdot.on:hover:not(:disabled){ background:color-mix(in srgb, var(--go) 80%, #000) }
.pdot:disabled{ cursor:default }
.pdot:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }

@media (max-width:1000px){
  .pipe-head, .pipe-row{ grid-template-columns:22px 26px 28px minmax(0,1fr) 104px 30px 24px }
  .ph.pc-dl, .ph.pc-split, .pipe-row .pdl, .pipe-row .psplit{ display:none }
}

/* Duration sat left-aligned in a 64px column, so a 32px value left a hole
   before the ISRC field. Numbers belong on the right anyway. */
.tcard input.mono[aria-label^="Duration"]{ text-align:right; padding-right:10px }
.tcard input.mono[aria-label^="ISRC"]{ padding-left:2px }

/* ============================================================
   CREDITS — several producers per song, each with contacts
   ============================================================ */
.credits{ margin-top:18px }
.credits > .row.spread{ margin-bottom:10px }
.credit{
  border:1px solid var(--canvas-rule); border-radius:var(--r-sm);
  padding:12px 13px; margin-bottom:9px; background:var(--surface);
}
.credit-top{ display:flex; gap:8px; align-items:center; margin-bottom:10px }
.credit-top .credit-name{ flex:1 1 auto; min-width:0; font-weight:700 }
.credit-top select{
  flex:0 0 auto; width:auto; min-width:132px;
  font-size:12.5px; font-weight:700; padding:7px 10px; border-radius:999px;
  border:1px solid var(--line2); background:var(--surface2); color:var(--ink2);
}
.credit-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(176px, 1fr)); gap:9px;
}
.credit-f{ display:flex; flex-direction:column; gap:4px; min-width:0 }
.credit-f > span{
  font-size:10px; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
  color:var(--ink3);
}
.credit-f .f-in, .credit-f select{ font-size:13px; padding:7px 9px }
.credit-f .mono{ font-family:var(--mono) }
.credits .sig{ display:block; margin-top:8px; color:var(--warn) }
@media (max-width:620px){
  .credit-grid{ grid-template-columns:1fr }
  .credit-top{ flex-wrap:wrap }
  .credit-top select{ width:100% }
}

/* ============================================================
   RELEASE GATES — a glyph per phase
   Only the phase you are on animates. Eight moving things at once
   is noise; one is a pointer to where the work is.
   ============================================================ */
.prog-leg{ display:flex; flex-direction:column; align-items:center; gap:3px }
.leg-ico{
  font-size:17px; line-height:1; display:block;
  filter:grayscale(1) opacity(.45);
  transition:filter .3s ease, transform .3s var(--spring, cubic-bezier(.34,1.56,.64,1));
}
.leg-name{ font-size:11px; font-weight:700; letter-spacing:-.01em }

/* done: full colour, settled */
.prog-leg.done .leg-ico{ filter:none }

/* the phase in progress: full colour and a slow breath */
.prog-leg.now .leg-ico{
  filter:none;
  animation:legBreathe 2.6s ease-in-out infinite;
}
@keyframes legBreathe{
  0%,100%{ transform:translateY(0)   scale(1) }
  50%    { transform:translateY(-3px) scale(1.14) }
}
.prog-leg:hover .leg-ico{ filter:none; transform:scale(1.14) }

@media (prefers-reduced-motion: reduce){
  .prog-leg.now .leg-ico{ animation:none; transform:scale(1.1) }
  .leg-ico{ transition:none }
}
@media (max-width:900px){ .leg-ico{ font-size:15px } }

/* ============================================================
   HEADINGS AND STAT BOXES — alignment
   A count pill next to a 25px heading was baseline-aligned, which drops
   it visibly below the cap line. And .stat b was redefined three times
   (38 → 34 → 30px), so boxes never agreed on a size or a centre.
   ============================================================ */
.card > header{ align-items:center }
.card > header h3,
.card > header .lead{ line-height:1.08 }
.card > header .pill,
.card > header .tiny.muted,
.card > header .sig{ align-self:center }

/* one size, one centre */
#sec-ov .ovgrid > .stat,
.ovgrid > .stat{
  justify-content:center;
  min-height:96px;
  padding:16px 18px;
  border-radius:var(--r-sm);
  background:var(--surface2);
  gap:5px;
}
#sec-ov .stat b,
.ovgrid .stat b{
  font-size:36px; line-height:1; letter-spacing:-.05em;
  font-variant-numeric:tabular-nums;
}
.ovgrid .stat .tiny{ font-size:13px; color:var(--ink2); margin:0 }
.ovgrid .stat .pill{ align-self:flex-start; margin-top:3px }
@media (max-width:900px){
  #sec-ov .stat b, .ovgrid .stat b{ font-size:30px }
  .ovgrid > .stat{ min-height:84px; padding:14px 15px }
}

/* ============================================================
   PLAYER — the hide chevron was covering the gap select
   .plhide is absolutely positioned top-right, but the options row
   runs the full width underneath it, so "No gap" slid under the
   chevron. Reserve the lane instead of moving the control.
   ============================================================ */
.pl{ position:relative }
.pl .top{ padding-right:42px }
.plhide{
  right:10px; top:10px; width:30px; height:30px;
  background:var(--surface2); border:1px solid var(--line);
  color:var(--ink3); z-index:3;
  transition:background .14s ease, color .14s ease, transform .12s ease;
}
.plhide:hover{ background:var(--surface3); color:var(--ink) }
.plhide:active{ transform:scale(.92) }
.plhide:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }
@media (max-width:760px){
  .pl .top{ padding-right:38px }
}

/* ============================================================
   PLAYER TRANSPORT
   The SVGs carry no fill of their own, so they must inherit the
   button's colour; without this they paint black on the accent.
   Explicit sizes keep play/prev/next on one optical line.
   ============================================================ */
.pl .tbtn{ display:grid; place-items:center; padding:0; line-height:0 }
.pl .tbtn svg{
  width:19px; height:19px; display:block;
  fill:currentColor; stroke:none;
}
.pl .tbtn.sm svg{ width:16px; height:16px }
/* a triangle's visual centre sits left of its bounding box */
.pl .tbtn#pl-play svg{ transform:translateX(1px) }
.pl .tbtn#pl-play:has(rect) svg{ transform:none }   /* paused: two bars, already centred */
.pl .top{ align-items:center }
.pl .tbtn.sm{ color:var(--ink2) }
.pl .tbtn.sm:hover{ color:var(--ink); background:var(--surface3) }

/* ---- delivery bundle progress ---- */
.dz-stat{ display:flex; flex-direction:column; gap:4px; margin:10px 0 14px }
.dz-stat b{ font-size:15px; font-weight:800 }
.dz-bar{
  height:8px; border-radius:99px; background:var(--surface3);
  overflow:hidden; margin:4px 0 8px;
}
.dz-bar i{
  display:block; height:100%; width:0;
  background:linear-gradient(90deg, var(--accent), var(--c-coral));
  border-radius:99px; transition:width .25s ease;
}
.dz-line{ display:block; min-height:18px; font-variant-numeric:tabular-nums }

/* ============================================================
   ROW PLAY — a triangle, not a disc
   A filled accent circle on hover shouted on every row of a
   sixty-song list. In a track list the play control is a glyph
   that darkens; the disc belongs to the transport bar only.
   ============================================================ */
.pipe-row .playbtn,
.pipe-row .playbtn:hover,
.pipe-row:hover .playbtn{
  background:none; box-shadow:none; border:0;
  width:22px; height:22px; flex:0 0 22px;
  color:var(--ink3);
  transition:color .14s ease, transform .12s ease;
}
.pipe-row:hover .playbtn{ color:var(--ink) }
.pipe-row .playbtn:hover{ color:var(--accent); transform:scale(1.18) }
.pipe-row .playbtn:active{ transform:scale(.92) }
.pipe-row .playbtn:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:50% }

/* the "no audio" prompt stays quiet until you are on the row */
.pipe-row .needbtn{
  background:none; border:1px dashed var(--line); color:var(--line2);
  width:22px; height:22px; flex:0 0 22px; font-size:11px;
}
.pipe-row:hover .needbtn{ color:var(--warn); border-color:color-mix(in srgb, var(--warn) 55%, transparent) }
.pipe-row .needbtn:hover{ background:var(--warn-soft) }

/* share: the send row */
.sendrow{ margin-top:14px; align-items:center; gap:8px; flex-wrap:wrap }
.sendrow .sig{
  font-size:10.5px; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink3); margin-right:2px;
}

/* share: send it for them */
.mailer{
  margin-top:16px; padding:14px; border-radius:var(--r-sm);
  background:var(--surface2); border:1px solid var(--line);
  display:flex; flex-direction:column; gap:9px;
}
.mailer .row{ gap:8px }
.mailer .grow{ flex:1 1 auto; min-width:0 }
.mailer-stat{ min-height:16px }
.mailer-stat.good{ color:var(--go) }
.mailer-stat.bad{ color:var(--accent) }
/@media (max-width:1100px){}


/* ============================================================
   COUNTDOWN — a billboard, not a dial. The days figure is the
   largest thing on the page; beneath it a runway fills from 120
   days out to release day. One accent colour. No gradients.
   ============================================================ */
.cd{
  display:flex; flex-direction:column; gap:13px;
  flex:none; min-width:300px; max-width:430px; padding-left:6px;
}
.cd-main{ display:flex; align-items:flex-end; gap:16px; min-width:0 }
.cd-n{
  font-size:clamp(58px, 6.2vw, 84px); font-weight:800; letter-spacing:-.055em;
  line-height:.82; font-variant-numeric:tabular-nums; color:var(--ink);
  font-style:normal;
}
.cd.soon .cd-n{ color:var(--accent) }
.cd.out  .cd-n{ color:var(--go) }
.cd.unset .cd-n{ color:var(--ink3) }
.cd-side{ display:flex; flex-direction:column; gap:3px; padding-bottom:5px; min-width:0 }
.cd-tag{
  font-size:10px; font-weight:800; letter-spacing:.15em; text-transform:uppercase;
  color:var(--ink3); white-space:nowrap;
}
.cd-date{
  font-size:15px; font-weight:700; letter-spacing:-.015em; color:var(--ink);
  white-space:nowrap;
}
.cd-clock{ margin-left:auto; display:flex; gap:11px; padding-bottom:6px; flex:none }
.cd-clock span{ display:flex; align-items:baseline; gap:3px }
.cd-clock b{
  font-size:17px; font-weight:800; letter-spacing:-.02em; line-height:1;
  font-variant-numeric:tabular-nums; color:var(--ink2);
}
.cd-clock i{
  font-style:normal; font-size:9px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink3);
}
.cd-clock b.flip{ animation:cdflip .3s cubic-bezier(.2,.8,.2,1) }
.cd-run{
  position:relative; height:4px; border-radius:99px;
  background:color-mix(in srgb, var(--ink) 11%, transparent);
}
#cd-fill{
  position:absolute; inset:0 auto 0 0; width:0; border-radius:99px;
  background:var(--accent);
  transition:width .6s cubic-bezier(.2,.8,.2,1);
}
#cd-dot{
  position:absolute; top:50%; left:0; width:11px; height:11px; border-radius:50%;
  background:var(--accent); border:2.5px solid var(--ground, #fff);
  box-shadow:0 1px 6px color-mix(in srgb, var(--accent) 45%, transparent);
  transform:translate(-50%,-50%);
  transition:left .6s cubic-bezier(.2,.8,.2,1);
}
.cd.out #cd-fill, .cd.out #cd-dot{ background:var(--go); box-shadow:none }
.cd-marks{
  display:flex; justify-content:space-between; margin-top:-5px;
  font-size:9px; font-weight:800; letter-spacing:.11em; text-transform:uppercase;
  color:var(--ink3);
}
.cd.unset .cd-run, .cd.unset .cd-marks, .cd.unset .cd-clock{ visibility:hidden }
@media (max-width:1100px){
  /* the hero loses its third column here, so the countdown takes a full
     row of its own instead of being squeezed into the artwork column */
  .cd{ grid-column:1 / -1; min-width:0; max-width:none; padding-left:0 }
  .cd-n{ font-size:56px }
}
@media (max-width:760px){
  .cd{ min-width:0; width:100%; max-width:none; padding-left:0 }
  /* the top-bar pill carries the clock here — inline it collides with the date */
  .cd-clock{ display:none }
  .cd-main{ flex-wrap:wrap }
}

/* the top-bar pill: plain ink on a quiet ground, the hairline under it
   is the same runway in miniature */
.clock{
  position:relative; display:flex; flex-direction:column; align-items:center;
  justify-content:center; min-width:64px; padding:7px 13px 9px;
  border-radius:12px; background:var(--surface);
  border:1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  overflow:hidden; line-height:1;
}
.clock b{
  font-size:19px; font-weight:800; letter-spacing:-.04em; line-height:1;
  font-variant-numeric:tabular-nums; color:var(--ink);
}
.clock .lbl{
  font-size:8.5px; font-weight:800; letter-spacing:.11em; text-transform:uppercase;
  margin-top:3px; color:var(--ink3);
}
#clockbar{
  position:absolute; left:0; bottom:0; height:2.5px; width:0;
  background:var(--accent); transition:width .5s ease;
}
.clock.urgent b{ color:var(--accent) }
.clock.out b{ color:var(--go) }
.clock.out #clockbar{ background:var(--go) }
@media (max-width:980px){ .clock{ order:4; margin-left:auto } }
