/* Shared project list (Your projects, Mastering, Metadata) and the Mastering workspace. Loaded after style.css. */

/* ------------------------------------------------------------ project list */
.prj-list { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.prj-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 120px 16px; gap: 20px; align-items: center;
  padding: 12px 20px 12px 12px; border-top: 1px solid var(--line); transition: background .12s; }
.prj-row:first-child { border-top: 0; }
.prj-row:hover { background: var(--panel2); }
.prj-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.prj-cover { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #202533; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.prj-cover > span { font-size: 21px; font-weight: 600; color: #8f97ab; }
.prj-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.prj-cover img.ok { opacity: 1; }
.prj-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.prj-name { font-size: 17px; font-weight: 600; letter-spacing: -.15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prj-date { font-size: 12.5px; color: var(--muted); }
.prj-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.prj-pills .pill { padding: 1px 8px; font-size: 11px; line-height: 17px; color: #6ee9d6; background: rgba(0, 220, 196,.08); border-color: rgba(0, 220, 196,.22); }
.prj-pills .pill.off { color: var(--muted); background: transparent; border-color: var(--line2); }
.prj-sec { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 2px 8px; }
.prj-sec:first-child { margin-top: 0; }
.prj-sec span { font-variant-numeric: tabular-nums; color: #5d6475; }
.prj-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.prj-meta > span:not(.prj-tag) + span:not(.prj-tag)::before { content: "·"; margin-right: 8px; color: #4f566a; }
.prj-tag { border: 1px solid var(--line2); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.prj-tag b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 2px; }
.prj-state { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.prj-state i { width: 7px; height: 7px; border-radius: 50%; background: #4a5268; flex: none; }
.prj-state.done i { background: var(--good); }
.prj-state.running i, .prj-state.queued i { background: var(--accent); animation: prjPulse 1.4s ease-in-out infinite; }
.prj-state.failed i { background: var(--bad); }
.prj-state.interrupted i, .prj-state.paused i, .prj-state.cancelled i { background: var(--warn); }
.prj-act { font-size: 12.5px; color: var(--muted); }
.prj-row:hover .prj-act { color: var(--text); }
.prj-go { width: 16px; height: 16px; color: #5d6475; transition: transform .12s, color .12s; }
.prj-row:hover .prj-go { color: var(--text); transform: translateX(2px); }
@keyframes prjPulse { 50% { opacity: .35; } }
@media (max-width: 760px) {
  .prj-row { grid-template-columns: 48px minmax(0, 1fr) auto 14px; gap: 14px; padding: 10px 14px 10px 10px; }
  .prj-cover { width: 48px; height: 48px; }
  .prj-meta { display: none; }
  .prj-name { font-size: 16px; }
}

/* ------------------------------------------------------------ mastering workspace */
.mx-head { margin-bottom: 16px; align-items: flex-end; }
.mx { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mx [hidden] { display: none !important; }
.mx-lab, .mx-mlab, .mx-clab, .mx-blab { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }

/* top bar: style + Master */
.mx-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mx-styles { display: inline-flex; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 3px; gap: 2px; }
.mx-styles button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 112px; padding: 6px 14px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted); text-align: left; }
.mx-styles button b { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.mx-styles button small { font-size: 11px; font-variant-numeric: tabular-nums; }
.mx-styles button:hover:not(:disabled) { color: var(--text); }
.mx-styles button.on { background: rgba(0, 220, 196,.15); color: var(--text); box-shadow: inset 0 0 0 1px rgba(0, 220, 196,.45); }
.mx-styles button.on small { color: #6ee9d6; }
.mx-styles button:disabled { cursor: default; }
.mx-done { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.mx-go { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mx-master { padding: 10px 22px; font-size: 14px; }
.mx-master svg { width: 16px; height: 16px; }
.mx-err { color: var(--bad); font-size: 12.5px; }
.mx-prog { width: 300px; display: flex; flex-direction: column; gap: 6px; }
.mx-prog-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.mx-prog-top span:last-child { color: var(--muted); }
.mx-prog-bar { height: 6px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.mx-prog-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .5s linear; }

/* display + meters */
.mx-stage { display: grid; grid-template-columns: minmax(0, 1fr) 228px; border-bottom: 1px solid var(--line); }
.mx-display { padding: 12px 16px 14px; border-right: 1px solid var(--line); min-width: 0; }
.mx-dhead { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
.mx-tabs { display: inline-flex; gap: 16px; }
.mx-tabs button { border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: 13px; border-bottom: 2px solid transparent; }
.mx-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.mx-legend { flex: 1; display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); justify-content: flex-end; }
.mx-legend .lg::before { content: ""; display: inline-block; width: 12px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.mx-legend .a::before { background: var(--accent); } .mx-legend .b::before { background: #8f97ab; }
.mx-legend .t::before { background: repeating-linear-gradient(90deg, #8f97ab 0 3px, transparent 3px 5px); }
.mx-legend .s::before { background: rgba(0, 220, 196,.28); height: 9px; }
.mx-ab { display: inline-flex; background: var(--bg); border: 1px solid var(--line2); border-radius: 9px; padding: 3px; }
.mx-ab button { border: 0; background: transparent; padding: 5px 14px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.mx-ab button.on { background: var(--accent); color: #0b0d14; font-weight: 600; }
.mx-ab button:disabled { opacity: .35; cursor: default; }
.mx-canvas { position: relative; height: 236px; }
.mx-canvas canvas { width: 100%; height: 100%; display: block; cursor: pointer; }
.mx-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; pointer-events: none; }
.mx-empty b { font-size: 15px; font-weight: 600; }
.mx-empty span { font-size: 12.5px; color: var(--muted); }
.mx-empty .spin { margin: 0 0 6px; }

.mx-meters { display: flex; justify-content: space-around; padding: 14px 10px 12px; transition: opacity .2s; }
.mx-meters.off { opacity: .4; }
.mx-meter { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 64px; }
.mx-mlab { font-size: 9.5px; letter-spacing: .07em; white-space: nowrap; }
.mx-mtrack { position: relative; width: 12px; height: 190px; background: #0b0d12; border: 1px solid var(--line); border-radius: 3px; }
.mx-mtrack em { position: absolute; left: -3px; right: -3px; height: 1px; background: rgba(255,255,255,.10); font-style: normal; z-index: 2; }
.mx-mtrack em span { position: absolute; left: 20px; top: -6px; font-size: 9.5px; color: #5d6475; font-variant-numeric: tabular-nums; }
.mx-mfill { position: absolute; left: 1px; right: 1px; bottom: 1px; height: 0; border-radius: 2px; background: linear-gradient(to top, #00a48f, var(--accent)); transition: height .15s linear; }
.mx-mfill.hot { background: linear-gradient(to top, #b8873a, var(--warn)); }
.mx-mtick { position: absolute; left: -6px; right: -6px; height: 2px; margin-bottom: -1px; background: #e8eaf0; border-radius: 1px; z-index: 3; text-decoration: none; }
.mx-mval { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.mx-mval b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mx-mval small { font-size: 10.5px; color: var(--muted); }

/* readouts */
.mx-read { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.mx-cell { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-left: 1px solid var(--line); min-width: 0; }
.mx-cell:first-child { border-left: 0; }
.mx-cval { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.3px; white-space: nowrap; }
.mx-cval small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.mx-cfrom { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-cbar { position: relative; height: 4px; border-radius: 2px; background: var(--panel2); margin-top: 7px; }
.mx-cbar i { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 2px; min-width: 2px; }
.mx-cbar u { position: absolute; top: -3px; width: 2px; height: 10px; margin-left: -1px; background: #e8eaf0; border-radius: 1px; }

/* chain, streaming, export */
.mx-lower { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); }
.mx-block { padding: 14px 16px 16px; border-left: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mx-block:first-child { border-left: 0; }
.mx-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mx-chain button { border: 1px solid var(--line2); background: var(--bg); color: var(--text); border-radius: 7px; padding: 4px 10px; font-size: 12.5px; }
.mx-chain button:hover { border-color: #46506a; }
.mx-chain button.on { border-color: var(--accent); background: rgba(0, 220, 196,.14); }
.mx-chain button.off { color: var(--muted); }
.mx-arrow { width: 10px; height: 1px; background: var(--line2); }
.mx-note { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.mx-note li + li { margin-top: 3px; }
.mx-plat { display: flex; flex-direction: column; gap: 7px; }
.mx-plat > div { display: grid; grid-template-columns: 96px minmax(0, 1fr) 60px; align-items: center; gap: 10px; font-size: 12.5px; }
.mx-plat > div span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-plat > div b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.mx-gbar { position: relative; height: 4px; border-radius: 2px; background: var(--panel2); }
.mx-gbar::after { content: ""; position: absolute; left: 50%; top: -3px; width: 1px; height: 10px; background: var(--line2); }
.mx-gbar i { position: absolute; top: 0; bottom: 0; background: var(--accent); opacity: .8; border-radius: 2px; }
.mx-codec { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.mx-codec i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.mx-codec.warn i { background: var(--warn); }
.mx-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mx-dlb { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg); min-width: 0; transition: border-color .12s; }
.mx-dlb:hover { border-color: var(--accent); }
.mx-dlb svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.mx-dlb:hover svg { color: var(--accent); }
.mx-dlb b { font-size: 13px; font-weight: 600; }
.mx-dlb small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* footer player */
.mst-foot.mx-foot { grid-template-columns: 44px auto minmax(0, 1fr) auto auto; gap: 18px; padding: 10px 24px; }
.mx-foot .cxf-seek { min-width: 0; }
.mx-foot .cxf-wave { touch-action: none; }
.mx-exp { white-space: nowrap; }
.mx-exp svg { width: 16px; height: 16px; }
.cx-menu button small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.mx-foot .play { color: #0b0d14; }
.mx-now { display: flex; flex-direction: column; min-width: 92px; line-height: 1.25; }
.mx-now b { font-size: 13px; font-weight: 600; }
.mx-now > span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mx-seek { width: 100%; accent-color: var(--accent); }
.mx-tgs { display: flex; gap: 6px; }
.mx-tg { border: 1px solid var(--line2); background: transparent; color: var(--muted); border-radius: 99px; padding: 5px 12px; font-size: 12px; white-space: nowrap; }
.mx-tg:hover { color: var(--text); }
.mx-tg.on { color: var(--text); border-color: rgba(0, 220, 196,.6); background: rgba(0, 220, 196,.14); }

@media (max-width: 1180px) {
  .mx-stage { grid-template-columns: 1fr; }
  .mx-display { border-right: 0; border-bottom: 1px solid var(--line); }
  .mx-meters { justify-content: center; gap: 36px; }
  .mx-mtrack { height: 150px; }
  .mx-read { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-read .mx-cell:nth-child(4) { border-left: 0; }
  .mx-read .mx-cell:nth-child(n+4) { border-top: 1px solid var(--line); }
  .mx-lower { grid-template-columns: 1fr 1fr; }
  .mx-chainbox { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .mx-lower .mx-block:nth-child(2) { border-left: 0; }
}
@media (max-width: 900px) {
  .mst-foot.mx-foot { left: 0; grid-template-columns: 44px minmax(0, 1fr) auto auto; padding: 10px 16px; row-gap: 8px; }
  .mx-foot .mx-seek { grid-column: 1 / -1; grid-row: 2; }
  .mx-bar { flex-wrap: wrap; }
  .mx-go { margin-left: 0; }
}
@media (max-width: 640px) {
  .mx-styles { width: 100%; } .mx-styles button { flex: 1; min-width: 0; padding: 6px 10px; }
  .mx-dhead { flex-wrap: wrap; } .mx-legend { display: none; }
  .mx-canvas { height: 200px; }
  .mx-read { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-read .mx-cell { border-left: 0; } .mx-read .mx-cell:nth-child(even) { border-left: 1px solid var(--line); }
  .mx-read .mx-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mx-lower { grid-template-columns: 1fr; } .mx-lower .mx-block { border-left: 0; border-top: 1px solid var(--line); } .mx-lower .mx-block:first-child { border-top: 0; }
  .mst-foot.mx-foot { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .mx-foot .mx-tgs { grid-column: 1 / -1; grid-row: 3; flex-wrap: wrap; }
  .mx-prog { width: 100%; }
}

/* Mastering landing: upload a track */
.mup { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; border: 1px dashed var(--line2); border-radius: 14px;
  background: var(--panel); cursor: pointer; transition: border-color .12s, background .12s; position: relative; overflow: hidden; }
.mup:hover, .mup.over { border-color: var(--accent); background: rgba(0, 220, 196,.06); }
.mup > svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.mup-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mup-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mup-txt small { font-size: 12.5px; color: var(--muted); }
.mup-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--panel2); }
.mup-prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.mup.busy { cursor: default; border-style: solid; }
.prj-tag.up { border-color: rgba(0, 220, 196,.45); color: #6ee9d6; }

/* Mastering workspace: optional reference track (uploads) */
.mx-ref { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); min-width: 0; }
.mx-ref > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.mx-ref-lab { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mx-ref-lab b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.mx-ref-lab b em { font-style: normal; font-weight: 400; color: var(--muted); }
.mx-ref-lab small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.mx-ref-btn { border: 1px solid var(--line2); background: var(--panel2); color: var(--text); border-radius: 7px; padding: 5px 11px; font-size: 12.5px; white-space: nowrap; }
.mx-ref-btn:hover { border-color: var(--accent); }
.mx-ref-btn.x { background: transparent; color: var(--muted); }
.mx-ref-btn.x:hover { color: var(--bad); border-color: #5a2e35; }
.mx-ref .spin { margin: 0 6px; }
@media (max-width: 1180px) { .mx-bar { flex-wrap: wrap; } }
.mx-ref.off { opacity: .45; pointer-events: none; }

/* Activity dock: the one sticky bar for background work (rebuilds, masters, lyrics, metadata) */
.procbar.ad { display: block; padding: 0; background: #10131a; box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
.procbar.ad[hidden] { display: none; }
.ad-list { border-bottom: 1px solid var(--line); max-height: 40vh; overflow: auto; }
.ad-list .ad-row { padding-top: 7px; padding-bottom: 7px; }
.ad-list .ad-row + .ad-row { border-top: 1px solid var(--line); }
.ad-row { display: grid; grid-template-columns: 30px minmax(180px, 340px) minmax(0, 1fr) 72px 40px; align-items: center; gap: 14px;
  padding: 9px 24px; color: inherit; text-decoration: none; transition: background .12s; }
.ad-row:hover { background: rgba(255,255,255,.03); }
.ad-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 220, 196,.12); color: var(--accent); }
.ad-ic svg { width: 16px; height: 16px; }
.ad-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ad-txt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-txt span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ad-track { position: relative; height: 6px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.ad-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; transition: width .8s ease; }
.ad-track.ind i { animation: adSlide 1.6s ease-in-out infinite; }
@keyframes adSlide { 0% { left: -30%; } 100% { left: 100%; } }
.ad-pct { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.ad-more { border: 1px solid var(--line2); background: var(--panel2); color: var(--text); border-radius: 99px; min-width: 38px; height: 26px; padding: 0 9px;
  font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.ad-more:hover { border-color: var(--accent); }
.ad-more svg { width: 14px; height: 14px; }
.ad-row.done .ad-ic { background: rgba(122,212,155,.14); color: var(--good); }
.ad-row.done .ad-track i { background: var(--good); }
.ad-row.done .ad-txt span { color: var(--good); }
.ad-row.failed .ad-ic { background: rgba(240,113,120,.14); color: var(--bad); }
.ad-row.failed .ad-track i { background: var(--bad); }
.ad-row.failed .ad-txt span { color: var(--bad); }
body.has-procbar main { padding-bottom: calc(var(--dock-h, 56px) + 32px); }
/* the footer bar's stop cross, after a song update's percentage (owner 4 Dec) */
.ad-pct { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ad-x { width: 22px; height: 22px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.ad-x svg { width: 13px; height: 13px; stroke-width: 2.2; }
.ad-x:hover, .ad-x:focus-visible { background: rgba(255, 255, 255, .08); color: var(--text); }
@media (max-width: 900px) {
  .procbar.ad { left: 0; }
  .ad-row { grid-template-columns: 30px minmax(0, 1fr) 68px 40px; padding: 8px 16px; row-gap: 6px; }
  .ad-track { grid-column: 2 / -1; grid-row: 2; }
}

/* ------------------------------------------------------------ mastering: live before/after + Fine-tune */
.mx-canvas.live canvas { cursor: default; }
.mx-legend .s::before { background: rgba(0, 220, 196,.28); height: 9px; }
.mx-clab .mx-now-tag { display: none; font-style: normal; margin-left: 6px; padding: 0 5px; border-radius: 4px; background: rgba(0, 220, 196,.14); color: #6ee9d6; letter-spacing: .04em; text-transform: none; font-weight: 600; }
.mx-cell.now .mx-now-tag { display: inline-block; }
.mx-ftbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; }
.mx-ftbtn svg { width: 16px; height: 16px; }
.mx-ftbtn.on { border-color: var(--accent); color: var(--text); background: rgba(0, 220, 196,.12); }
.mx-pv { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; padding: 1px 7px; margin-left: 8px; border-radius: 99px; color: #6ee9d6;
  background: rgba(0, 220, 196,.14); border: 1px solid rgba(0, 220, 196,.4); vertical-align: 2px; }
.mx-pv { white-space: nowrap; }
.mx-pv.wait { color: var(--muted); background: transparent; border-color: var(--line2); }
.mx-now b { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.mx-now .mx-pv { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mx-ft { width: min(400px, 100vw); z-index: 61; }
.mx-ft header { padding: 14px 18px 10px; border-bottom: 0; }
.mx-ft header h2 { display: flex; align-items: center; font-size: 16px; }
.mx-ft .ft-body { padding: 4px 18px 12px; }
.mx-ft header .xbtn { margin-left: 10px; }
/* 2 Dec: Mastered / With changes: the big compare switch at the top of the drawer */
.ft-abwrap { padding: 2px 18px 12px; border-bottom: 1px solid var(--line); }
.ft-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2); }
.ft-ab button { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 52px; padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.ft-ab button b { font-size: 14.5px; font-weight: 650; color: inherit; }
.ft-ab button small { font-size: 11px; color: #5d6475; }
.ft-ab button:hover { color: var(--text); }
.ft-ab button.on { background: var(--accent); color: #0b0d14; }
.ft-ab button.on small { color: rgba(11,13,20,.68); }
.ft-ab button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* exact-or-quick status: a dot and one word, never in the way */
.ft-pvst { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 11px; color: #6ee9d6; }
.ft-pvst[hidden] { display: none; }
.ft-pvst i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ft-pvst b { font-weight: 600; }
.ft-pvst.wait { color: var(--muted); }
.ft-pvst.wait i { background: transparent; border: 1.5px solid var(--line2); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.ft-grp { padding: 12px 0 10px; border-top: 1px solid var(--line); }
.ft-grp:first-child { border-top: 0; }
.ft-ghead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.ft-ghead small { font-size: 11px; color: #5d6475; }
.ft-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 66px 22px; align-items: center; gap: 8px; min-height: 34px; }
.ft-lab { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-row.moved .ft-lab { color: var(--text); }
.ft-sl { position: relative; display: flex; align-items: center; height: 26px; }
.ft-sl.marked { height: 34px; padding-bottom: 10px; }
.ft-sl input { width: 100%; margin: 0; accent-color: var(--accent); position: relative; z-index: 1; }
.ft-auto { position: absolute; top: 3px; width: 2px; height: 5px; margin-left: -1px; background: #8a92a6; border-radius: 1px; }
.ft-sl.marked .ft-auto { top: 7px; }
.ft-mark { position: absolute; bottom: -1px; transform: translateX(-1px); font-size: 9.5px; color: #5d6475; white-space: nowrap; }
.ft-mark::before { content: ""; position: absolute; left: 0; top: -5px; width: 1px; height: 4px; background: #5d6475; }
.ft-val { font-size: 12.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ft-reset { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.ft-reset:hover { color: var(--text); background: var(--panel2); }
.ft-reset svg { width: 13px; height: 13px; }
.ft-row .ft-seg, .ft-row .ft-tog { grid-column: 2 / 4; justify-self: start; }
.ft-seg { padding: 2px; }
.ft-seg button { padding: 4px 10px; font-size: 12px; position: relative; }
.ft-adot { position: absolute; top: 2px; right: 3px; width: 4px; height: 4px; border-radius: 50%; background: #8a92a6; }
.ft-seg button.on .ft-adot { background: #0b0d14; }
.ft-disc { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--muted); font-size: 12px; padding: 6px 0; }
.ft-disc:hover { color: var(--text); }
.ft-disc .chev { transform: rotate(-45deg); margin: 0 2px; }
.ft-disc[aria-expanded=true] .chev { transform: rotate(45deg); }
.ft-side { padding-left: 10px; border-left: 2px solid var(--line2); margin-bottom: 4px; }
.ft-side .ft-row { grid-template-columns: 94px minmax(0, 1fr) 66px 22px; }
.ft-foot { display: flex; gap: 10px; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel); }
.ft-foot .btn.primary { flex: 1; max-width: 180px; }
@media (max-width: 640px) {
  .mx-canvas.live { height: 330px; }
  .mx-ftbtn { padding: 9px 12px; }
  /* bottom sheet on phones */
  .mx-ft { top: auto; left: 0; width: 100%; max-height: 64vh; border-left: 0; border-top: 1px solid var(--line2); border-radius: 14px 14px 0 0; box-shadow: 0 -18px 40px rgba(0,0,0,.45); }
  .mx-ft .ft-body { padding: 0 16px 10px; }
  .ft-row { grid-template-columns: 96px minmax(0, 1fr) 62px 22px; }
  .ft-abwrap { padding: 0 16px 10px; }
  .ft-ab button { min-height: 46px; padding: 5px 6px; }
}
.mx-canvas.live { height: 372px; }
.mx-ab button.ld::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; vertical-align: 2px; border-radius: 50%; background: currentColor; animation: prjPulse 1s ease-in-out infinite; }
@media (max-width: 640px) { .mx-canvas.live { height: 452px; } }
/* desktop: the page makes room for the Fine-tune drawer, so the display and Before / After stay in view */
@media (min-width: 641px) { body.mx-ftopen #main { padding-right: 436px; } }
/* live view: Before / Original switch on the top lane; one line of what changed */
.mx-lanesw { position: absolute; top: 3px; left: 4px; z-index: 2; padding: 2px; border-radius: 7px; background: rgba(14,16,20,.86); }
.mx-lanesw button { padding: 2px 9px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 5px; }
.mx-lanesw button:disabled { opacity: .35; cursor: default; }
.mx-lanesw button.ld::after { content: ""; display: inline-block; width: 4px; height: 4px; margin-left: 5px; vertical-align: 2px; border-radius: 50%; background: currentColor; animation: prjPulse 1s ease-in-out infinite; }
.mx-changed { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; }
.mx-changed .mx-blab { margin-right: -4px; }
.mx-chg { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.mx-chg > span { color: var(--muted); }
.mx-chg b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mx-chg small { color: #5d6475; font-size: 11.5px; font-variant-numeric: tabular-nums; }
/* Fine-tune open on desktop: the narrower page uses the compact workspace layout */
@media (min-width: 641px) {
  body.mx-ftopen .mx-stage { grid-template-columns: 1fr; }
  body.mx-ftopen .mx-display { border-right: 0; border-bottom: 1px solid var(--line); }
  body.mx-ftopen .mx-meters { justify-content: center; gap: 36px; }
  body.mx-ftopen .mx-mtrack { height: 120px; }
  body.mx-ftopen .mx-legend { display: none; }
  body.mx-ftopen .mx-dhead { justify-content: space-between; }
  body.mx-ftopen .mx-read { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.mx-ftopen .mx-read .mx-cell:nth-child(4) { border-left: 0; }
  body.mx-ftopen .mx-read .mx-cell:nth-child(n+4) { border-top: 1px solid var(--line); }
  body.mx-ftopen .mx-lower { grid-template-columns: 1fr 1fr; }
  body.mx-ftopen .mx-chainbox { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  body.mx-ftopen .mx-lower .mx-block:nth-child(2) { border-left: 0; }
}
/* 2 Dec: with Fine-tune open the bar is narrower: let it wrap instead of squeezing buttons and the reference box */
.mx-bar { flex-wrap: wrap; row-gap: 10px; }
.mx-go .btn, .mx-ftbtn, .mx-master { white-space: nowrap; flex: none; }
.mx-ref { flex: 1 1 260px; max-width: 420px; }
.mx-ref-lab { flex: 1; overflow: hidden; }
.mx-ref-lab b { overflow: hidden; text-overflow: ellipsis; }
.mx-ref-btn { flex: none; }

/* Metadata action bar: a page footer (data-foot: the activity dock stacks on top of it); each action says what it does */
.meta-actions { left: 232px; right: 0; bottom: 0; border-radius: 0; border-width: 1px 0 0; box-shadow: none; z-index: 25; justify-content: flex-end; align-items: center; gap: 10px; padding: 10px 24px; background: #0c0e13; }
.meta-actions .ma-state { order: -1; margin-right: auto; }
.meta-grid .meta-side { position: static; }
.ma-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--text); font: inherit; line-height: 1.25; }
.ma-btn b { font-size: 14px; font-weight: 600; }
.ma-btn small { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.ma-btn:hover { border-color: var(--accent); }
.ma-btn.primary { background: var(--accent); border-color: var(--accent); color: #0b0d14; }
.ma-btn.primary small { color: rgba(11,13,20,.72); }
.ma-btn:disabled { opacity: .55; cursor: default; }
.ma-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; padding: 0 4px; }
.ma-state:empty { display: none; }
.ma-state.ok { color: var(--good); }
.ma-state svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.ma-state .spin { margin: 0; }
/* Metadata side: the files this song's details are baked into */
.mfile-h { margin: 0 0 8px; font-size: 14px; }
.mfile-note { font-size: 12.5px; }
.mfile { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; margin: 0 -10px; border-radius: 9px; color: inherit; text-decoration: none;
  background: none; border: 0; font: inherit; text-align: left; cursor: pointer; box-sizing: content-box; }
.mfile:hover { background: rgba(255,255,255,.04); }
.mfile > svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; }
.mfile span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mfile b { font-size: 13.5px; font-weight: 600; }
.mfile small { font-size: 11.5px; color: var(--muted); }
.mfile.main b { color: var(--accent); }
.mfile-cat { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.mfile-add { margin-top: 12px; width: 100%; }
@media (max-width: 900px) { .meta-actions { left: 0; } }
@media (max-width: 700px) {
  .meta-actions { left: 0; right: 0; padding: 10px 12px; flex-wrap: wrap; }
  .meta-actions .ma-btn { flex: 1 1 0; min-width: 0; }
  .meta-actions .ma-state { flex-basis: 100%; justify-content: center; }
  .jstep[data-j="metadata"] { padding-bottom: 150px; }
}

/* My catalog: the owner's lyrics sidebar (same look as the public player's, share.html .lyr-panel) + Edit */
.own-lyr.lyr-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; z-index: 26; display: flex; flex-direction: column; overflow: hidden; background: #0f1219; border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(0,0,0,.45); }
.own-lyr[hidden] { display: none; }
.own-lyr .lyr-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.2) brightness(.35); opacity: .9; pointer-events: none; }
.own-lyr header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.own-lyr .lyr-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.own-lyr .lyr-head .cx-thumb { width: 44px; height: 44px; border-radius: 6px; flex: none; }
.own-lyr .lyr-head div { min-width: 0; }
.own-lyr .lyr-head b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .own-lyr .lyr-head span { color: rgba(255,255,255,.6); font-size: 13px; }
.own-lyr .lyr-hb { display: flex; align-items: center; gap: 8px; flex: none; }
.own-lyr .lyr-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.own-lyr .lyr-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.own-lyr .lyr-bar { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 20px 8px; }
.own-lyr .lyr-bar[hidden] { display: none; }
.own-lyr .lyr-now { font-variant-numeric: tabular-nums; font-size: 13px; color: #fff; }
.own-lyr .lyr-tip { font-size: 12px; color: rgba(255,255,255,.55); }
.own-lyr .lyr-lines { position: relative; flex: 1; overflow-y: auto; padding: 16px 24px 45vh; scrollbar-width: thin; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 85%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 85%, transparent 100%); }
.own-lyr .lyr-lines p { margin: 0; padding: 7px 0; font-size: 22px; line-height: 1.3; font-weight: 700; color: rgba(255,255,255,.3); cursor: pointer; transition: color .25s, transform .25s; transform-origin: left center; }
.own-lyr .lyr-lines p.gap { margin-bottom: 22px; }
.own-lyr .lyr-lines p.past { color: rgba(255,255,255,.5); }
.own-lyr .lyr-lines p.now { color: #fff; transform: scale(1.04); text-shadow: 0 0 24px rgba(0, 220, 196,.45); }
.own-lyr .lyr-lines p.untimed { cursor: default; }
.own-lyr .lyr-lines p:hover:not(.untimed) { color: rgba(255,255,255,.8); }
.own-lyr .lyr-none { cursor: default !important; font-size: 16px !important; font-weight: 500 !important; color: rgba(255,255,255,.6) !important; }
/* edit mode: one row per line (start time · words · more), the line under the playhead marked */
.own-lyr.editing .lyr-lines { padding: 8px 16px 40px; -webkit-mask-image: none; mask-image: none; }
.le-row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 32px; gap: 6px; align-items: center; padding: 3px 0; }
.le-t { height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; }
.le-t:hover { border-color: var(--accent); color: #fff; }
.le-row.untimed .le-t { color: var(--warn); border-style: dashed; }
.le-in { min-width: 0; height: 34px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 600; padding: 0 8px; }
.le-in:hover { background: rgba(255,255,255,.04); }
.le-in:focus { outline: none; border-color: var(--accent); background: rgba(10,12,18,.6); }
.le-row.now .le-t { background: rgba(0, 220, 196,.25); border-color: var(--accent); color: #fff; }
.le-row.now .le-in { color: #fff; background: rgba(0, 220, 196,.10); }
.le-more { width: 30px; height: 30px; }
.le-gap { height: 14px; }
.le-add { margin: 10px 0 0 70px; }
.own-lyr .lyr-foot { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(12,14,19,.85); }
.own-lyr .lyr-foot[hidden] { display: none; }
.own-lyr .lyr-foot .lyr-tip { flex: 1; min-width: 0; }
.cx-lyrbtn svg, .cxf-lyr svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cx-lyrbtn.on, .cxf-lyr.on { color: var(--accent); background: rgba(0, 220, 196,.14); }
.cxf-seek .cxf-lyr { flex: none; margin-left: 4px; }
.cxf-lyr[hidden] { display: none; }
@media (min-width: 1101px) { body.own-lyr-on #main { padding-right: 424px; } }
@media (max-width: 900px) { .own-lyr.lyr-panel { left: 0; width: auto; border-left: 0; } .own-lyr .lyr-lines p { font-size: 24px; } }
.cxf-seek:has(.cxf-lyr:not([hidden])) { grid-template-columns: auto 1fr auto auto; }

/* Activity: one row per listening visit; a playlist visit drops down to every track heard */
.ss-row { grid-template-columns: 44px minmax(0, 1fr) minmax(160px, 240px) 76px 32px; }
.ss-row:not(.has-chev)::after, .ev-feed .ev-row:not(.ss-row)::after { content: ""; }
.ev-feed .ev-row:not(.ss-row) { grid-template-columns: 44px minmax(0, 1fr) minmax(160px, 240px) 76px 32px; }
.ev-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ev-row.unread .ev-line b:first-child { font-weight: 800; }
.ev-new { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 4px; }
.ss-chev { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.ss-chev:hover { background: rgba(255,255,255,.07); color: var(--text); }
.ss-chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ss.open .ss-chev svg { transform: rotate(180deg); }
.ss.open > .ss-row { background: rgba(255,255,255,.03); border-radius: 10px 10px 0 0; }
.ss-one { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 460px; }
.ss-bar { position: relative; flex: 1 1 120px; min-width: 60px; max-width: 220px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.09); overflow: hidden; }
.ss-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--accent); }
.ss-v { font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ss-v em { font-style: normal; color: var(--muted); margin-left: 6px; }
.ss-not { font-size: 12px; color: var(--muted); }
.ss-tag { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--muted); white-space: nowrap; }
.ss-tag.ok { color: var(--good); background: rgba(122,212,155,.1); }
.ss-tag.skip { color: var(--warn); background: rgba(245,183,78,.1); }
.ss-tracks { list-style: none; margin: 0 0 6px; padding: 4px 12px 10px 72px; background: rgba(255,255,255,.03); border-radius: 0 0 10px 10px; }
.ss-tracks li { display: grid; grid-template-columns: 22px 30px minmax(0, 220px) minmax(0, 1fr); gap: 12px; align-items: center; padding: 7px 0; border: 0 !important; }
.ss-tracks li + li { border-top: 1px solid var(--line) !important; }
.ss-tracks .cx-thumb { width: 30px; height: 30px; border-radius: 5px; font-size: 12px; }
.ss-n { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ss-tt { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-h { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.ss-tracks li.none .ss-tt { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .ss-row, .ev-feed .ev-row:not(.ss-row) { grid-template-columns: 40px minmax(0, 1fr) 28px; grid-template-areas: "who main chev" "who time chev"; row-gap: 2px; }
  .ev-feed .ev-row .ev-who { grid-area: who; align-self: start; } .ev-feed .ev-row .ev-main { grid-area: main; }
  .ev-feed .ev-row .ss-chev { grid-area: chev; } .ev-feed .ev-row::after { display: none; }
  .ev-feed .ev-row time { grid-area: time; flex-direction: row; align-items: center; gap: 6px; justify-content: flex-start; }
  .ev-feed .ev-row time small { display: none; }
  .ev-feed .ev-row .ev-what { display: none; }
  .ev-feed .ev-line { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ss-tracks { padding: 4px 10px 10px 14px; }
  .ss-tracks li { grid-template-columns: 18px minmax(0, 1fr); row-gap: 4px; }
  .ss-tracks li .cx-thumb { display: none; }
  .ss-tracks li .ss-h { grid-column: 2; }
  .ss-one { flex-wrap: wrap; }
}
/* overall statistics: an icon in the profile row; the statistics sidebar with a fifth number (new followers) */
.cx-allstats { width: 30px; height: 30px; }
.cx-allstats svg { stroke-width: 2.2; }
.st-pills:has(> div:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.st-pills:has(> div:nth-child(5)) dd { font-size: 16px; }
.st-pills:has(> div:nth-child(5)) div { padding: 0 9px; }

/* My catalog at phone width: the player spans the screen; a track row is play · cover · title, its actions on a row under it */
@media (max-width: 900px) {
  .cx-foot { left: 0; }
}
@media (max-width: 700px) {
  .cx-foot { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "now ctl" "seek seek"; gap: 6px 12px; padding: 8px 12px 10px; }
  .cx-foot .cxf-now { grid-area: now; } .cx-foot .cxf-ctl { grid-area: ctl; gap: 4px; } .cx-foot .cxf-seek { grid-area: seek; }
  .cx-foot .cxf-now .cx-thumb { width: 38px; height: 38px; }
  body:has(#cxFoot:not([hidden])) #main { padding-bottom: 140px; }
  .cx-row.tr2, .cx-row.tr2.pl { grid-template-columns: 36px 44px minmax(0, 1fr); grid-template-areas: "play art title" "acts acts acts"; gap: 6px 12px; padding: 10px 6px; }
  .cx-row.tr2 .cx-play { grid-area: play; } .cx-row.tr2 .cx-art { grid-area: art; display: block !important; }
  .cx-row.tr2 .cx-tt { grid-area: title; }
  .cx-row.tr2 .cx-tt b { font-size: 15px; }
  .cx-row.tr2 .cx-acts2 { grid-area: acts; flex-wrap: wrap; gap: 2px; justify-content: flex-start; }
  .cx-row.tr2 .cx-acts2 .cx-vis { margin-left: auto; }
  .cx-row.tr2 .cx-acts2 .cx-linkbtn, .cx-row.tr2 .cx-acts2 .cx-dots { width: 30px; height: 30px; }
  .cx-row.tr2 .cx-acts2 .cx-icon { width: 30px; height: 30px; }
  .cx-row.tr2 .cx-acts2 .cx-vis span { display: none; }   /* room for every row icon; the switch itself says Public / Private by its state and title */
  .cx-row.tr2 .cx-n, .cx-row.tr2 .cx-wave, .cx-row.tr2 .cx-dur, .cx-row.tr2 .cx-plays { display: none !important; }
  .cx-tabs { gap: 0; }
  .cx-tabs [role=tab] { padding: 12px 10px; font-size: 14px; }
  .cx-tabs-act { gap: 4px; flex: none; }
  .cx-tabs-act .btn { font-size: 0; gap: 0; padding: 0; width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; }
  .cx-tabs-act .btn svg { width: 16px; height: 16px; margin: 0; }
  .cx-tabs-act .cx-link { font-size: 13px; }
}
@media (min-width: 1101px) {
  body.own-lyr-on .cx-row.tr2, body.own-lyr-on .cx-row.tr2.pl { grid-template-columns: 18px 44px 34px minmax(120px, 1fr) 70px auto; }
  body.own-lyr-on .cx-row.tr2 .cx-wave, body.own-lyr-on .cx-row.tr2 .cx-plays { display: none; }
}

/* The one start zone (Mastering, Metadata, New reconstruction): click to browse or drag onto it */
.start-drop { position: relative; gap: 16px; padding: 22px 22px; margin: 0 0 22px; cursor: pointer; background: linear-gradient(180deg, #151820, #12141a); overflow: hidden; }
.start-drop .mup-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 220, 196,.12); color: var(--accent); }
.start-drop .mup-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.start-drop .mup-txt { flex: 1; }
.start-drop .mup-txt b { font-size: 15px; white-space: normal; }
.start-drop .mup-browse { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.start-drop .mup-folder { flex: none; }
.start-drop.busy .mup-folder { display: none; }
.step[data-step="1"] #uploadStatus:empty { display: none; }
.step[data-step="1"] #uploadStatus { margin: -10px 0 18px; }
@media (max-width: 640px) {
  .start-drop { flex-wrap: wrap; padding: 18px 16px; gap: 12px 14px; }
  .start-drop .mup-txt { flex: 1 1 calc(100% - 60px); }
  .start-drop .mup-folder { margin-left: 58px; }
}
/* New reconstruction's steps at phone width: the current step named, the others as their number */
@media (max-width: 640px) {
  .steps { gap: 6px; }
  .steps li { white-space: nowrap; }
  .steps li:not(.on) { font-size: 0; gap: 0; padding: 4px; }
}
/* 2 Dec: one height for everything in the mastering header (styles, reference, Fine-tune, Master again) */
.mx-bar { align-items: center; }
.mx-bar .mx-styles, .mx-bar .mx-ref, .mx-go .btn { height: 46px; box-sizing: border-box; }
.mx-bar .mx-styles { padding: 3px; align-items: stretch; }
.mx-bar .mx-styles button { padding: 0 14px; justify-content: center; line-height: 1.15; }
.mx-bar .mx-styles button small { font-size: 10.5px; }
.mx-bar .mx-ref { padding-top: 0; padding-bottom: 0; }
.mx-go .btn { display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; }
/* 2 Dec: Versions to compare (mastering.js drawVers): one row of cards under the style bar, tap = hear it */
.mx-vers { padding: 12px 16px 14px; border-bottom: 1px solid var(--line); }
.mx-vhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mx-vhead small { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.mx-vhead .spin { width: 12px; height: 12px; margin: 0; }
.mx-vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.mx-ver { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mx-vbtn { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; min-height: 58px; padding: 9px 12px; text-align: left;
  border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); cursor: pointer; font: inherit; box-sizing: border-box; }
.mx-vbtn:hover { border-color: rgba(0, 220, 196,.5); }
.mx-ver.on .mx-vbtn { background: rgba(0, 220, 196,.15); box-shadow: inset 0 0 0 1px rgba(0, 220, 196,.55); border-color: transparent; }
.mx-ver.wait .mx-vbtn { cursor: default; opacity: .6; }
.mx-ver.wait .spin { width: 12px; height: 12px; margin: 0; }
.mx-vbtn.ld small::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--accent); animation: spin .8s linear infinite; vertical-align: -1px; }
.mx-vtop { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.mx-vtop b { font-size: 13.5px; font-weight: 600; }
.mx-vbtn small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mx-ver.on .mx-vbtn small { color: #6ee9d6; }
.mx-rec { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(0, 220, 196,.5); border-radius: 999px; padding: 1px 7px; }
.mx-vuse { width: 100%; }
.mx-vwhy { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
/* 4 Dec (W16): Sonic Elevation (mastering.js drawSE): on / off in one tap, the engine's short lines, With / Without */
.mx-se .mx-vhead { flex-wrap: wrap; }
.mx-se .mx-vhead .btn { margin-left: auto; }
.mx-sechip { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 1px 9px; }
.mx-sechip.on { color: var(--accent); border-color: rgba(0, 220, 196,.5); }
.mx-selines { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--text); max-width: 76ch; }
.mx-selines li { line-height: 1.4; }
.mx-selines li + li { color: var(--muted); }
.mx-sepair { grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); align-items: start; }
.mx-sedisc { margin-top: 6px; }
.mx-semore { margin: 4px 0 0; font-size: 12px; }
.mx-semore li, .mx-semore li + li { color: var(--muted); }
.mx.mx-basic > .mx-se { order: 2; }
.ft-row.ft-pers { grid-template-columns: 104px auto 1fr; row-gap: 2px; margin-top: 6px; }
.ft-pers .ft-tog { grid-column: 2; }
.ft-pers .ft-greset { grid-column: 3; justify-self: start; padding: 0; }
.ft-perline { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) {
  .mx-vers { padding: 10px 12px 12px; }
  .mx-sepair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-vlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-vbtn { min-height: 54px; padding: 8px 10px; }
}
/* 2 Dec: more of the mastering page on one screen (shorter live view, slimmer readouts), not cramped */
@media (min-width: 641px) {
  .mx-canvas.live { height: 300px; }
  .mx-mtrack { height: 160px; }
  .mx-cell { padding: 9px 16px; }
  .mx-head { margin-bottom: 10px; }
}
/* 2 Dec: Fine-tune > Sound (genre / character / amount) chips wrap onto two lines */
.ft-seg.wrap { flex-wrap: wrap; row-gap: 4px; }
.ft-seg.wrap button { flex: 0 0 auto; }
/* 2 Dec: Fine-tune > Sound, tidy: genre drop-down, character cards (3 x 2), amount switch */
.ft-select { grid-column: 2 / 4; width: 100%; height: 34px; padding: 0 10px; background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; font: inherit; font-size: 13.5px; }
.ft-row.ft-cardrow { grid-template-columns: 1fr auto; align-items: center; row-gap: 8px; margin: 10px 0 14px; }
.ft-row:has(> .ft-select) { margin-bottom: 2px; }
.ft-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ft-cards button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line2); border-radius: 9px; color: var(--muted); text-align: left; font: inherit; cursor: pointer; }
.ft-cards button b { font-size: 13px; font-weight: 600; color: var(--text); }
.ft-cards button small { font-size: 11px; }
.ft-cards button:hover { border-color: #3a4260; }
.ft-cards button.on { background: rgba(0, 220, 196,.14); border-color: rgba(0, 220, 196,.6); color: #b0f4ea; }
.ft-cards .ft-adot { position: absolute; top: 7px; right: 7px; }

/* ---- Your sound packs (sound-pack rule): checklist, add buttons, where-to-find, song notice ---- */
.pk-lead { display: flex; flex-direction: column; gap: 2px; margin: -4px 0 14px; }
.pk { display: flex; flex-direction: column; gap: 12px; }
.pk-warn { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--panel2); }
.pk-warn b { font-weight: 600; }
.pk-warn span { color: var(--muted); font-size: 13px; }
.pk-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pk-row { display: grid; grid-template-columns: 28px minmax(130px, 200px) 1fr 64px; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.pk-row:first-child { border-top: 0; }
.pk-ic { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; color: var(--muted); border: 1px solid var(--line2); }
.pk-row.ok .pk-ic { background: var(--accent); border-color: var(--accent); color: #0b0d14; font-weight: 700; }
.pk-row.some .pk-ic { color: var(--accent); border-color: var(--accent); }
.pk-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk-tag { font-size: 11px; color: var(--muted); }
.pk-row.gap .pk-tag { color: var(--text); }
.pk-row.gap { background: rgba(0, 220, 196,.06); }
.pk-items { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pk-item { font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.pk-item b { color: var(--text); font-weight: 600; }
.pk-item.ok { border-color: rgba(0, 220, 196,.55); }
.pk-item.missing b { color: var(--muted); }
.pk-st { font-size: 12px; color: var(--muted); text-align: right; }
.pk-row.ok .pk-st { color: var(--accent); }
.pk-add { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-link { display: flex; gap: 8px; }
.pk-link input { flex: 1; min-width: 0; }
.pk-scan { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 4px 0; }
.pk-where summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.pk-src { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }
.pk-s { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.pk-s:hover { border-color: var(--accent); }
.pk-s span, .pk-s small { color: var(--muted); font-size: 12px; }
.pk-note { font-size: 12px; margin: 8px 0 0; }
.pk-page { margin-bottom: 18px; }
.pk-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 12px;
  border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--panel); }
.pk-notice > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk-notice span { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .pk-row { grid-template-columns: 26px 1fr auto; padding: 10px 12px; }
  .pk-items { grid-column: 2 / -1; }
  .pk-st { grid-row: 1; grid-column: 3; }
  .pk-add .btn { flex: 1 1 auto; justify-content: center; }
  .pk-notice .btn { width: 100%; justify-content: center; }
}

/* Needs better sounds (owner, 3 Dec 2026): one card per part, Original · Suggested · other options, each playable */
.pk-notice.nb { display: block; padding: 0; }
details.pk-notice.nb > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; user-select: none; }
details.pk-notice.nb > summary::-webkit-details-marker { display: none; }
details.pk-notice.nb > summary b { font-size: 15px; }
details.pk-notice.nb > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 10px; }
.nb-chev { width: 20px; height: 20px; margin-left: auto; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
details.pk-notice.nb > summary:hover .nb-chev { stroke: var(--text); }
details.pk-notice.nb[open] > summary .nb-chev { transform: rotate(180deg); }
.pk-notice > .nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); align-items: start; gap: 12px; padding: 0 16px; }
.pk-notice > .nb-foot { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px 16px; }
.nb-acts2 { display: flex; gap: 8px; margin-left: auto; }
.pk-notice > .nb-bar { display: flex; flex-direction: row; padding: 0 16px 12px; }
.nb-hear button { padding: 6px 14px; font-size: 13px; }
.pk-notice .nb-busy { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 600; }
.nb-busy .spin { margin: 0; }
.pk-notice .nb-opt .nb-now { color: var(--muted); font-size: 12px; text-align: center; }
.nb-opt.sel .nb-nm b { font-weight: 600; }
.nb-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 10px; background: var(--bg); min-width: 0; }
.nb-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.nb-ch b { font-size: 14px; }
.nb-vol { display: flex; align-items: center; gap: 10px; padding: 2px 0 8px; }
.nb-vol .nb-vl { color: var(--muted); font-size: 12.5px; }
.nb-vol input { flex: 1; min-width: 0; accent-color: var(--accent); }
.nb-vol .nb-vdb { min-width: 54px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nb-vol .mini { color: var(--text); cursor: pointer; }
.nb-ch .mini { text-decoration: none; color: var(--text); white-space: nowrap; cursor: pointer; }
.nb-ch .mini:hover { border-color: var(--accent); }
.nb-opt { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto 84px; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.nb-opt .dz-play svg { width: 12px; height: 12px; }
.nb-opt.cur .dz-play { border-color: var(--accent); color: var(--accent); }
.pk-notice .nb-nm { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; color: var(--text); font-size: 13.5px; }
.nb-nm b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nb-opt.cur .nb-nm b { font-weight: 600; }
.nb-tag { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--accent); }
.nb-opt.on .dz-play { background: var(--accent); border-color: var(--accent); color: #0e1014; }
.pk-notice .nb-pct { font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; min-width: 34px; }
.nb-opt .dz-use { min-width: 0; width: 100%; }
.pk-notice .nb-opt .dz-inuse { color: var(--accent); font-size: 12px; text-align: center; }
.nb-more { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12.5px; padding: 8px 0 2px; cursor: pointer; }
.nb-more:hover { color: var(--text); }
.nb-wait { padding: 8px 0 2px; }
.mpct { font-style: normal; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; margin-left: 4px; }
@media (max-width: 640px) {
  .pk-notice > .nb-grid { grid-template-columns: 1fr; padding: 0 12px; }
  .pk-notice > .nb-foot { padding: 12px; }
  .pk-notice > .nb-foot .btn { flex: 1; justify-content: center; }
  .nb-acts2 { width: 100%; }
  .pk-notice > .nb-bar { padding: 0 12px 12px; }
  .nb-opt { grid-template-columns: 32px minmax(0, 1fr) auto auto 76px; gap: 6px; }
  .nb-nm b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
}

/* New reconstruction, Tracks step: stems are required (a full mix alone is not accepted) */
.needstems { border: 1px solid rgba(0, 220, 196,.45); background: rgba(0, 220, 196,.07); border-radius: var(--r); padding: 18px 20px; margin: 4px 0 16px; display: grid; gap: 14px; }
.needstems[hidden] { display: none; }
.ns-head { display: flex; gap: 14px; align-items: flex-start; }
.ns-head svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(0, 220, 196,.16); fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.ns-head h3 { margin: 2px 0 4px; font-size: 16px; }
.ns-head p, .ns-guide p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ns-guide { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.ns-guide ol { margin: 8px 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.ns-guide li::marker { color: var(--accent); font-weight: 700; }
.ns-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
#tracksNext:disabled { opacity: .4; cursor: default; }
@media (max-width: 640px) {
  .needstems { padding: 14px; }
  .ns-foot .btn { width: 100%; justify-content: center; }
}

/* Your sounds: tabs (Your library / Packs / Sounds / Add packs) */
.sx-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.sx-tabs::-webkit-scrollbar { display: none; }
.sx-tabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 14px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.sx-tabs button:hover { color: var(--text); }
.sx-tabs button.on { color: var(--text); border-color: var(--accent); }
.sx-tabs .sx-addtab { margin-left: auto; color: var(--accent); }
.sx-tabs .sx-addtab svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.sx-n { font-size: 11px; font-weight: 600; color: var(--muted); }
.sx-n:empty { display: none; }
.sx-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.sx-badge[hidden] { display: none; }
#sxStatus:empty { display: none; }
#sxStatus { margin: -4px 0 10px; }
.sx-scan { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 3px 0; }
#sxBody { padding-bottom: 90px; }

.sx-sum { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.sx-sum b { color: var(--text); }
.sx-cats, .sx-packs, .sx-rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sx-cat { display: grid; grid-template-columns: 22px 130px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.sx-cat:first-child { border-top: 0; }
.sx-cat:hover { background: rgba(0, 220, 196,.05); }
.sx-dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 1px solid var(--line2); color: var(--muted); }
.sx-cat.ok .sx-dot { background: var(--accent); border-color: var(--accent); color: #0b0d14; font-weight: 700; }
.sx-cat.some .sx-dot { border-color: var(--accent); color: var(--accent); }
.sx-cat.missing .sx-dot { border-style: dashed; }
.sx-cl { font-weight: 600; font-size: 14px; }
.sx-cat.missing .sx-cl { color: var(--muted); }
.sx-items { display: flex; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.sx-it { font-size: 12px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.sx-it b { color: var(--text); font-weight: 600; }
.sx-it.ok { border-color: rgba(0, 220, 196,.5); }
.sx-cl small.sx-plg { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.sx-it.missing b { color: var(--muted); }
.sx-st { font-size: 12px; color: var(--muted); text-align: right; }
.sx-cat.ok .sx-st { color: var(--accent); }
.sx-st .btn.sm { padding: 4px 12px; font-size: 12px; }
.sx-link { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 10px 14px; margin-top: 10px; border: 1px dashed var(--line2); border-radius: 12px; }

.sx-gh { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.sx-gh:first-child { margin-top: 0; }
.sx-gh span { font-weight: 600; letter-spacing: 0; }
.sx-pack { display: grid; grid-template-columns: 22px minmax(160px, 280px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.sx-pack:first-child { border-top: 0; }
.sx-pic svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; display: block; }
.sx-pname { background: none; border: 0; padding: 0; text-align: left; color: var(--text); font: inherit; display: flex; flex-direction: column; gap: 1px; min-width: 0; cursor: pointer; }
.sx-pname b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.sx-pname:hover b { color: var(--accent); }
.sx-pname span { font-size: 12px; color: var(--muted); }
.sx-pcats { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; font-size: 12px; }
.sx-tag { font-size: 12px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); background: none; white-space: nowrap; font-family: inherit; }
.sx-pact, .sx-rf { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
#sxBody .ib { width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
#sxBody .ib:hover:not(:disabled) { border-color: var(--line2); color: var(--text); }
#sxBody .ib:disabled { opacity: .35; cursor: default; }
#sxBody .ib svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sx-bar { grid-column: 2 / -1; height: 4px; border-radius: 99px; background: var(--line2); overflow: hidden; }
.sx-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.sx-bar.ind i { animation: lkind 1.2s ease-in-out infinite alternate; }
.sx-perr { grid-column: 2 / -1; margin: 0; font-size: 12px; }
.sx-skip { grid-column: 2 / -1; font-size: 12px; color: var(--muted); }
.sx-skip summary { cursor: pointer; }

.sx-tools { display: flex; gap: 8px; margin: 0 0 10px; }
.sx-tools .sx-q { flex: 1; min-width: 0; }
.sx-tools select { flex: 0 0 auto; max-width: 200px; }
.sx-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 12px; border-top: 1px solid var(--line); }
.sx-row:first-child { border-top: 0; }
.sx-rn { display: flex; flex-direction: column; min-width: 0; }
.sx-rn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.sx-rn span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-fam { cursor: pointer; }
.sx-fam:hover { border-color: var(--accent); color: var(--text); }
.sx-sel { font-size: 12px; padding: 4px 6px; max-width: 170px; }
.sx-none { color: var(--muted); font-size: 13px; padding: 18px 0; text-align: center; }
.sx-more { margin-top: 10px; }

/* Add packs side panel (sheet() from catalog.js; a sheet from the bottom on phones). Plain rows, thin dividers, no boxes. */
.sx-side { width: min(420px, 100vw); animation: sxIn .22s cubic-bezier(.2,.8,.2,1); }
.sx-side ~ .modal { z-index: 80; }   /* the rights confirm sits over the panel */
.sx-side header { padding: 16px 20px; }
.sx-side .cx-sheet-body { padding: 4px 20px 24px; }
.sx-side.over { box-shadow: inset 0 0 0 2px var(--accent), -24px 0 50px rgba(0,0,0,.45); }
.sx-side.over .sx-drophint { color: var(--accent); }
@keyframes sxIn { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.sx-sstat:not(:empty) { padding: 10px 0 2px; }
.sx-sstat .error { margin: 4px 0 0; font-size: 13px; }
.sx-act { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 14px 0; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sx-act[hidden] { display: none; }
.sx-act b { display: block; font-size: 14px; font-weight: 600; }
.sx-act small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sx-act:hover b, .sx-act.on b { color: var(--accent); }
.sx-aic svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; display: block; }
.sx-lform { display: flex; gap: 8px; padding: 12px 0 14px 36px; border-bottom: 1px solid var(--line); }
.sx-lform[hidden] { display: none; }
.sx-lform input { flex: 1; min-width: 0; }
.sx-drophint { font-size: 12px; color: var(--muted); padding: 10px 0 0 36px; }
.sx-side .sx-gh { margin: 30px 0 2px; }
.sx-s { display: grid; grid-template-columns: 20px minmax(0, 1fr) 16px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.sx-s:last-child { border-bottom: 0; }
.sx-logo { position: relative; width: 20px; height: 20px; border-radius: 5px; overflow: hidden; display: grid; place-items: center; background: var(--line); }
.sx-logo i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.sx-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }   /* transparent marks (Splice) stay visible on the dark panel */
@media (hover: none) { .sx-drophint { display: none; } }
.sx-sn { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sx-sn b { font-size: 14px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sx-sn b em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); white-space: nowrap; }
.sx-sn > span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.sx-out svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; display: block; }
.sx-s:hover b { color: var(--accent); }
.sx-s:hover .sx-out svg { stroke: var(--accent); }
.sx-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
/* Free instrument packs (one row per library, Install -> progress -> Installed) */
.sx-f { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sx-f:last-child { border-bottom: 0; }
.sx-fi { background: rgba(0, 220, 196,.14); }
.sx-fi i { color: var(--accent); }
.sx-f.on .sx-fi { background: var(--accent); }
.sx-f.on .sx-fi i { color: #0b0d14; }
.sx-fact { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.sx-fact .btn.sm { padding: 4px 14px; font-size: 12px; }
.sx-fst { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sx-fst.ok { color: var(--accent); }
.sx-f .ib { width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.sx-f .ib:hover { border-color: var(--line2); color: var(--text); }
.sx-f .ib svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sx-f .sx-bar { grid-column: 2 / -1; }
.sx-f .sx-perr { grid-column: 2 / -1; }
.sx-fbtn { white-space: nowrap; }
.sx-f .sx-sn b { flex-wrap: wrap; row-gap: 0; }
.sx-fing { font-size: 12px; color: var(--accent); white-space: nowrap; }
.sx-cat .sx-st { min-width: 0; }

@media (max-width: 900px) { #sndTransport { left: 0; grid-template-columns: auto 1fr; grid-template-areas: "left wave"; padding: 8px 16px; gap: 12px; } #sndTransport .tp-right { display: none; } }
@media (max-width: 640px) {
  .sx-tabs button { padding: 10px 10px; font-size: 13px; }
  .sx-cat { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 10px; padding: 9px 12px; }
  .sx-items { grid-column: 2 / -1; grid-row: 2; }
  .sx-pack { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 12px; }
  .sx-pcats { grid-column: 2 / -1; grid-row: 2; }
  .sx-pack .sx-pact { grid-column: 3; grid-row: 1; }
  .sx-tools { flex-wrap: wrap; }
  .sx-tools .sx-q { flex: 1 1 100%; }
  .sx-tools select { flex: 1 1 0; max-width: none; }
  .sx-row { padding: 7px 10px; gap: 10px; }
  .sx-rf .sx-tag { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
  .sx-side { top: auto; left: 0; right: 0; width: 100vw; max-height: 88vh; max-height: 88dvh; border-left: 0; border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,.5); animation-name: sxUp; }
  .sx-side.over { box-shadow: inset 0 0 0 2px var(--accent), 0 -20px 50px rgba(0,0,0,.5); }
  .sx-side::before { content: ""; width: 38px; height: 4px; border-radius: 3px; background: var(--line2); margin: 8px auto 0; flex: none; }
  .sx-side header { padding: 8px 16px 10px; }
  .sx-side .cx-sheet-body { padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes sxUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 420px) { .sx-tabs { gap: 0; } .sx-tabs button { padding: 10px 8px; gap: 5px; } .sx-wide { display: none; } }
.sx-row .tb.tplay { height: 30px; min-width: 30px; }
.sx-row { padding-top: 5px; padding-bottom: 5px; }
#sxBody .empty .pair { display: flex; justify-content: center; } #sxBody .empty p { margin: 0 0 12px; }

/* activity dock: a song waiting for "Choose your version" (no progress bar, accent line) */
.ad-row.need .ad-txt span { color: var(--accent); font-weight: 600; }
.ad-row.need .ad-track { visibility: hidden; }

/* 2 Dec: My catalog > Bio (catalog.js bioTab): the artist page's Bio tab as visitors see it, plus Edit bio / Edit picks */
.cb-bio { padding: 6px 2px 24px; }
.cb-bio > :not(.cb-grid):not(.cb-pkh) { max-width: 680px; }
.cb-bio h3 { margin: 22px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cb-bio > .cb-acts + h3 { margin-top: 10px; }
.cb-text { margin: 0; white-space: pre-line; color: #d5d9e4; font-size: 15px; line-height: 1.6; }
.cb-pkh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.cb-pkh h3 { margin: 0; } .cb-pkh .cx-link { font-size: 14px; }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.cb-pk { min-width: 0; cursor: pointer; outline: none; }
.cb-art { position: relative; display: block; }
.cb-art .cb-cov { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; font-size: 30px; transition: filter .2s; }
.cb-pk:hover .cb-cov, .cb-pk:focus-visible .cb-cov { filter: brightness(.85); }
.cb-pk.playing .cb-cov { box-shadow: 0 0 0 2px var(--accent); }
.cb-pp { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.cb-pp svg { width: 18px; height: 18px; }
.cb-pk:hover .cb-pp, .cb-pk:focus-visible .cb-pp, .cb-pk.playing .cb-pp { opacity: 1; transform: none; }
.cb-pk b { display: block; margin-top: 7px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-a { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-none { color: var(--muted); margin: 0; font-size: 14px; }
.cb-rows { margin: 18px 0 0; display: flex; flex-direction: column; }
.cb-rows > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.cb-rows dt { color: var(--muted); font-size: 13px; } .cb-rows dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cb-rows dd > svg { width: 16px; height: 16px; color: var(--muted); }
.cb-chips span { padding: 3px 10px; border-radius: 999px; background: rgba(0, 220, 196,.14); color: #d4fbf5; font-size: 12.5px; font-weight: 600; }
.cb-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-link { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.cb-link svg { width: 18px; height: 18px; } .cb-link:hover { border-color: rgba(0, 220, 196,.6); background: rgba(0, 220, 196,.08); }
.cb-add { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 11px; margin-top: 14px; border-radius: 999px; border: 1px dashed rgba(0, 220, 196,.5); background: none; color: var(--accent); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.cb-bio h3 + .cb-add { margin-top: 0; }
.cb-add svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.cx-tabs-act .cb-pub { margin-right: 14px; font-size: 14px; white-space: nowrap; }
.cb-ph { color: var(--muted); font-size: 13px; font-weight: 600; }
.cb-plist button:disabled { opacity: .45; cursor: default; } .cb-plist button.off { opacity: .5; }
.cb-plist .pls-tick { color: #fff; }
.pls-side .pf-acts { display: flex; justify-content: flex-end; padding-top: 4px; }
.cb-acts { display: none; }
@media (max-width: 720px) {
  .cb-bio { padding: 4px 0 20px; }
  .cb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .cb-art .cb-cov { border-radius: 8px; }
  .cb-pk b { font-size: 12.5px; margin-top: 6px; } .cb-a { font-size: 11px; }
  .cb-pp { width: 32px; height: 32px; right: 6px; bottom: 6px; opacity: 1; transform: none; } .cb-pp svg { width: 15px; height: 15px; }
  .cx-tabs-act .cb-pub, .cx-tabs-act #cBioEdit { display: none; }   /* no room beside 5 tabs: the Bio actions sit on top of the tab instead */
  .cb-acts { display: flex; align-items: center; gap: 16px; margin: 8px 0 4px; } .cb-acts .cx-link { font-size: 14px; }
  .cb-bio > .cb-acts + h3 { margin-top: 18px; }
}
@media (max-width: 480px) { #main .cx-tabs [role=tab] { padding: 12px 5px; font-size: 13px; gap: 4px; } }   /* Bio made 5 tabs: they and the tab action still fit a 390 px phone (beats mnav.css) */
/* 2 Dec: stem mastering (Pro groups in Fine-tune) + the plain loudness line */
.mx-loudnote { grid-column: 1 / -1; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.mx-loudnote b { color: var(--text); font-weight: 600; }
.ft-gdisc { display: flex; width: 100%; gap: 8px; padding: 9px 0; font-size: 13px; color: var(--text); border-top: 1px solid var(--line); }
.ft-gdisc b { font-weight: 600; } .ft-gdisc small { color: var(--muted); font-size: 11.5px; margin-left: auto; text-align: right; }
.ft-gdisc.moved b::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.ft-greset { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 6px 0 8px; text-decoration: underline; cursor: pointer; }
.ft-greset:hover { color: var(--text); }


/* Swap panel: other sounds, pre-rendered (engine/matching/alternatives.py) */
.dz-alts { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 12px; }
.dz-ahead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #13161c; font-size: 12px; color: var(--muted); }
.dz-ahead b { color: var(--text); font-size: 13px; }
.dz-arow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-top: 1px solid var(--line); }
.dz-arow.sel { background: rgba(0, 220, 196,.08); }
.dz-arow .dz-txt { flex: 1; min-width: 0; }
.dz-arow .dz-txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-arow .dz-play { width: 28px; height: 28px; flex: none; }

/* Mastering Basic / Pro (2 Dec): the switch sits in the page head (adModeSwitch, studio.css .sdo-mode). Basic keeps
   the Listen row, Versions to compare, the loudness line and Export; Pro shows everything. */
.mx-hacts { align-items: center; }
.mx.mx-basic { display: flex; flex-direction: column; }
.mx.mx-basic > .mx-bar { order: 0; }
.mx.mx-basic > .mx-stage { order: 1; }
.mx.mx-basic > .mx-vers { order: 2; }
.mx.mx-basic > .mx-read { order: 3; }
.mx.mx-basic > .mx-lower { order: 4; }
.mx-basic .mx-styles, .mx-basic #mFt, .mx-basic .mx-meters, .mx-basic .mx-tabs, .mx-basic .mx-legend, .mx-basic .mx-canvas,
.mx-basic .mx-changed, .mx-basic .mx-read .mx-cell, .mx-basic .mx-chainbox, .mx-basic .mx-stream { display: none !important; }
.mx-basic.mx-ready > .mx-bar, .mx-basic .mx-ref { display: none !important; }
.mx-basic .mx-bar { justify-content: flex-end; }
.mx-basic .mx-stage { grid-template-columns: 1fr; }
.mx-basic .mx-display { border-right: 0; border-bottom: 0; padding: 14px 16px; }
.mx-basic .mx-dhead { margin: 0; }
.mx-basic .mx-dhead::before { content: "Listen to"; font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }
.mx-basic .mx-loudnote { border-top: 0; padding: 12px 16px; font-size: 13.5px; }
.mx-basic .mx-lower { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.mx-basic .mx-lower .mx-block { border: 0; }
@media (max-width: 640px) {
  .mx-head { flex-wrap: wrap; }
  .mx-hacts { width: 100%; justify-content: space-between; }
  .mx-basic .mx-dhead { flex-wrap: nowrap; gap: 10px; }
  .mx-basic .mx-dhead::before { display: none; }
  .mx-basic .mx-ab { width: 100%; } .mx-basic .mx-ab button { flex: 1; padding: 6px 6px; }
  .mx { margin-bottom: 132px; }   /* the player (with its toggle row) is taller here than the page's own bottom room */
}


.pt-sel { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2, transparent); color: var(--text); max-width: 160px; }

.fp-low { color: var(--warn, #e6a84f); }
.fp-item .pt-a { display: flex; gap: 8px; align-items: center; }
.pt-sel { color-scheme: dark; background: var(--bg2, #16181f); }
.pt-sel option { background: #16181f; color: #f2f3f7; }

/* Your sounds: small page name on top (no big heading), Checklist tab dot when something is missing */
.sx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 10px; }
.sx-title { font-size: 15px; font-weight: 600; color: var(--text); padding: 6px 0; }
.sx-dot2 { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); display: inline-block; margin-left: 6px; vertical-align: 2px; }
.sx-dot2[hidden] { display: none; }
.pt-mute { color: var(--muted); font-size: 13px; }

/* Needs better sounds: its player is a fixed footer like the studio's (owner 3 Dec). The studio's footer steps aside while
   it shows. Waveform = the song; lit = where this part plays; the white line = where it is; click = go there. */
.nbf { position: fixed; left: 232px; right: 0; bottom: 0; z-index: 26; background: #0c0e13; border-top: 1px solid var(--line2);
  display: grid; grid-template-columns: auto minmax(120px, 260px) auto auto 1fr auto; grid-template-areas: "play what hear time dim x" "wave wave wave wave wave wave";
  gap: 8px 14px; align-items: center; padding: 10px 24px 12px; }
.nbf .play { grid-area: play; }
.nbf-what { grid-area: what; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.nbf-what b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbf-what span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbf-hear { grid-area: hear; }
.nbf-hear button { white-space: nowrap; }
.nbf-dim { grid-area: dim; color: var(--muted); font-size: 12.5px; white-space: nowrap; justify-self: start; }
.nbf-dim:empty { display: none; }
.nbf-time { grid-area: time; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nbf-x { grid-area: x; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.nbf-x:hover { color: var(--text); }
.nbf-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.nbf-wave { grid-area: wave; position: relative; height: 46px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; overflow: hidden; }
.nbf-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nbf-ph { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.5); pointer-events: none; }
.nbf-on .sdo-transport, .nbf-on #transport, .nbf-on #arrFoot { display: none !important; }   /* any step's own footer steps aside while a preview plays */
.nbf-on .jstep.on { padding-bottom: 140px; }
.p-undo { display: inline-flex; gap: 8px; }
.p-undo:empty { display: none; }
@media (max-width: 900px) {
  .nbf { left: 0; padding: 8px 12px 10px; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "play what time x" "hear hear dim dim" "wave wave wave wave"; }
  .nbf-dim { justify-self: start; }
  .nbf-hear { justify-self: start; }
}
@media (max-width: 760px) { .nbf-hear button { padding: 6px 9px; font-size: 13px; } .nbf-wave { height: 40px; } }
/* the previews' footer: a Play button and a Pause button (owner 3 Dec); the one that matches what it is doing is lit */
.nbf-pp { grid-area: play; display: flex; gap: 6px; }
.nbf-b { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.nbf-b svg { width: 18px; height: 18px; }
.nbf-b.on { background: var(--accent); border-color: var(--accent); color: #0b0d14; }
@media (max-width: 760px) { .p-undo .lbl { display: none; } .p-undo .btn { padding-left: 11px; padding-right: 11px; } }

/* Effects side panel open (studio.js .sdo-dock, 440px): the page and its footers end at its edge */
.fxdock-on { padding-right: 440px; }
.fxdock-on .nbf, .fxdock-on .sdo-transport { right: 440px; }
.fxdock-on .nb-grid { grid-template-columns: minmax(0, 1fr); }
.nb-vol .mini.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* picks / volumes not in the song yet: one bar above the player, on every step (project.js nbBar) */
.nb-applybar { position: fixed; left: 248px; right: 16px; bottom: 16px; z-index: 27; display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 16px; background: #141923; border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.nb-applybar[hidden] { display: none; }
.nba-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.nba-txt b { font-size: 14px; }
.nba-txt span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nba-acts { display: flex; gap: 8px; flex-shrink: 0; }
.nba-on .jstep.on { padding-bottom: 230px; }
.fxdock-on .nb-applybar { right: 456px; }
.nb-pendtag { font-size: 11.5px; font-weight: 600; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; margin-left: 8px; white-space: nowrap; }
@media (max-width: 900px) { .nb-applybar { left: 10px; right: 10px; } }
@media (max-width: 600px) { .nb-applybar { flex-wrap: wrap; gap: 8px 12px; } .nba-acts { width: 100%; } .nba-acts .btn { flex: 1; } }

/* thumbs in Needs better sounds (3 Dec 2026): heart stays the right-most icon so hearts line up */
.nb-acts { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 30px; }
.nb-nope .nb-opt { opacity: .6; }
.pk-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sx-chev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.sx-chev.on svg { transform: rotate(180deg); }
.sx-pdrop { grid-column: 1 / -1; margin: 4px 0 2px; }
.sx-pdrop .sx-rows { border-radius: 10px; }
.sx-pdrop .sx-pmore { margin-top: 8px; }

/* Versions drop-down in the song header (owner 3 Dec 23:50): built on the catalog's .cx-menu */
.vh-n { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; }
.cx-menu.vh-menu { width: min(420px, calc(100vw - 16px)); max-height: min(70vh, 540px); overflow: auto; padding: 6px; }
.vh-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line2); }
.vh-head b { font-size: 14px; }
.vh-head span { font-size: 12px; color: var(--muted); }
.vh-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.vh-row:hover { background: rgba(255,255,255,.04); }
.vh-row.on { background: rgba(0, 220, 196,.08); }
.cx-menu .vh-play { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--text); }
.cx-menu .vh-play.on { border-color: var(--accent); color: var(--accent); }
.vh-play svg { width: 13px; height: 13px; }
.vh-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vh-txt b { font-size: 13px; font-weight: 600; }
.vh-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-use { font-size: 12px; color: var(--accent); padding: 0 8px; white-space: nowrap; }
.cx-menu .vh-go { padding: 5px 14px; font-size: 13px; text-align: center; border: 1px solid var(--line2); border-radius: 8px; }
.cx-menu .vh-go:hover { border-color: var(--accent); }
/* Project header (owner 4 Dec: "remove the word undo and redo, just have the icons ... make all those buttons fit the
   top ... version producer fix next to overall match"): title and every button on one row, the chips (status, key,
   tempo, Overall match, Version) on their own full-width line below; phones stack and the buttons wrap */
.proj-head { display: grid; grid-template-columns: minmax(120px, 1fr) auto; grid-template-areas: "crumbs crumbs" "title acts" "chips chips";
  align-items: center; column-gap: 16px; }
.proj-head > div:first-child { display: contents; }
.proj-head .crumbs { grid-area: crumbs; }
.proj-head #pTitle { grid-area: title; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-head #pActions { grid-area: acts; flex-wrap: nowrap; align-items: center; }
.proj-head #pChips { grid-area: chips; }
.proj-head #pChips > *, .proj-head #pActions .btn { white-space: nowrap; }
.p-undo .btn { padding-left: 11px; padding-right: 11px; }
.p-undo .btn svg { margin: 0; }
#pActions > span:empty { display: none; }   /* Revert / Versions not shown: no gap left behind */
@media (max-width: 760px) {
  .proj-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "title" "chips" "acts"; }
  .proj-head #pTitle { white-space: normal; }
  .proj-head #pActions { flex-wrap: wrap; justify-content: flex-start; margin-top: 12px; gap: 6px; }
  .proj-head #pActions .btn { padding: 8px 10px; font-size: 13px; }
}
