:root {
  color-scheme: light;
  --black: #000;
  --white: #fff;
  --muted: #686868;
  --line: #d8d8d8;
  --rail-width: clamp(300px, 25vw, 390px);
  --art-size: clamp(240px, 25vw, 356px);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--black); font-size: 15px; line-height: 1.35; }
button, input, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
button, input, textarea { border-radius: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
button:focus-visible { outline-color: #000; }
.rail button:focus-visible { outline-color: #fff; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 22px; line-height: 1.2; font-weight: 700; }
.icon { display: inline-flex; flex-shrink: 0; width: 22px; height: 22px; align-items: center; justify-content: center; }
.icon svg, button > svg { display: block; width: 100%; height: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 12px; padding: 10px; background: #000; color: #fff; z-index: 20; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* The white listening area and the quiet black rail follow the supplied layout. */
.workspace { margin-right: var(--rail-width); padding: 26px 24px 64px; min-width: 0; }
.rail { position: fixed; inset: 0 0 0 auto; width: var(--rail-width); padding: 12px 26px 0; background: #000; color: #fff; display: flex; flex-direction: column; z-index: 3; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-size: clamp(30px, 3vw, 46px); font-weight: 750; letter-spacing: -2.8px; }
.brand img { width: 60px; height: 60px; flex-shrink: 0; }
.search { display: flex; gap: 10px; align-items: center; margin-top: 42px; padding-bottom: 10px; border-bottom: 1px solid #555; color: #aaa; }
.search .icon { width: 17px; height: 17px; }
.search input { width: 100%; min-width: 0; padding: 3px 0; border: 0; background: transparent; color: #fff; outline-offset: 3px; font-size: 14px; }
.search input::placeholder { color: #999; }
.search:focus-within { color: #fff; border-color: #fff; }
.rail-actions { margin: auto -26px 0; }
.rail-status { font-size: 12px; color: #ccc; margin: 20px 26px; overflow-wrap: anywhere; }
.rail-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 26px; background: none; border: 0; color: #ccc; text-align: left; font-size: 14px; }
.rail-link:hover { color: #fff; }
.rail-counter { margin-left: auto; font-size: 12px; white-space: nowrap; }
.clipboard-add { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 12px 0 0; background: #fff; color: #000; border: 2px solid #000; text-align: left; font-size: clamp(16px, 1.6vw, 23px); font-weight: 700; letter-spacing: -.5px; }
.clipboard-symbol { width: 54px; height: 54px; padding: 15px; border-right: 2px solid #000; }
.clipboard-add:hover { background: #e9e9e9; }

.stage { display: grid; grid-template-columns: var(--art-size) minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 28px; }
.cover-stack { position: relative; width: 100%; aspect-ratio: 1; isolation: isolate; }
.cover-stack::before, .cover-stack::after { content: ''; position: absolute; z-index: -1; height: 100%; width: calc(100% - 14px); left: 7px; top: -9px; background: #555; }
.cover-stack::before { width: calc(100% - 28px); left: 14px; top: -17px; background: #000; }
.cover-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #111; color: #fff; overflow: hidden; }
.cover-play:disabled { opacity: 1; }
#now-cover { width: 100%; height: 100%; display: block; object-fit: cover; }
.cover-play-symbol { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; padding: 13px; background: #000; color: #fff; opacity: 0; }
.cover-play:not(:disabled):hover .cover-play-symbol, .cover-play:focus-visible .cover-play-symbol { opacity: 1; }
.cover-timeline { position: absolute; bottom: 0; left: 0; right: 0; height: 26px; background: #000a; color: #fff; font-size: 17px; font-weight: 700; }
.cover-timeline progress { position: absolute; inset: 0; appearance: none; width: 100%; height: 100%; border: 0; background: transparent; opacity: .45; }
.cover-timeline progress::-webkit-progress-bar { background: transparent; }
.cover-timeline progress::-webkit-progress-value { background: #fff; }
.cover-timeline progress::-moz-progress-bar { background: #fff; }
#current-time, #total-time { position: absolute; top: 1px; pointer-events: none; padding: 0 5px; }
#current-time { left: 0; }
#total-time { right: 0; background: #0008; }
#seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cover-timeline:focus-within { outline: 2px solid #fff; outline-offset: -3px; }
.now-info { padding-top: 40px; min-width: 0; }
h1 { font-size: clamp(34px, 4.25vw, 64px); line-height: 1.22; letter-spacing: -1px; font-weight: 700; overflow-wrap: anywhere; }
#now-title { padding: 2px 8px 4px; background: #000; color: #fff; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.now-source { display: flex; align-items: center; justify-content: flex-end; width: fit-content; max-width: 100%; margin-left: auto; text-decoration: none; gap: 7px; font-size: 19px; }
.now-source .icon { width: 23px; height: 23px; }
#now-author { display: block; background: #000; color: #fff; padding: 3px 6px; overflow-wrap: anywhere; }
.player-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 28px 0 0 4px; }
.transport-buttons { display: flex; gap: 6px; align-items: center; }
.icon-button, .play-button { width: 32px; height: 32px; padding: 7px; display: inline-flex; justify-content: center; align-items: center; background: transparent; border: 0; color: inherit; flex-shrink: 0; }
.play-button { width: 42px; height: 42px; padding: 10px; background: #000; color: #fff; }
.icon-button:hover:not(:disabled) { background: #e8e8e8; color: #000; }
.play-button:hover:not(:disabled) { background: #333; }
#repeat[aria-pressed=true] { background: #000; color: #fff; }
.volume { display: flex; gap: 4px; align-items: center; }
#volume { width: 72px; accent-color: #000; cursor: pointer; }

.library-layout { display: grid; grid-template-columns: var(--art-size) minmax(0, 1fr); gap: 10px; align-items: start; }
.section-bar, .table-heading { display: grid; align-items: center; height: 30px; background: #000; color: #fff; padding: 0 6px; }
.section-bar { grid-template-columns: 1fr auto; gap: 8px; }
.section-bar > span { font-size: 16px; color: #ccc; }
.collection-list { display: grid; gap: 12px; margin-top: 14px; }
.collection { display: flex; align-items: stretch; gap: 6px; padding: 0; background: none; border: 0; width: 100%; text-align: left; }
.collection-art { width: 68px; height: 68px; padding: 19px; color: #fff; background: #000; }
.collection:not(.active) .collection-art { background: #e9e9e9; color: #000; }
.collection-text { display: flex; flex: 1; min-width: 0; flex-direction: column; justify-content: center; padding: 5px 8px; }
.collection-text strong { font-size: 22px; line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
.collection-text > span { margin-top: 3px; font-size: 13px; color: #686868; }
.collection.active .collection-text { color: #fff; background: #000; }
.collection.active .collection-text > span { color: #bbb; }
.collection:not(.active):hover .collection-text { background: #eee; }
.library { min-width: 0; }
.table-heading { grid-template-columns: minmax(0, 1fr) 100px 54px 56px; gap: 7px; padding-left: 5px; }
.table-heading > span { font-size: 16px; font-weight: 700; }
.length-heading { text-align: right; }
.track-list { list-style: none; margin: 5px 0 0; padding: 0; }
.track-row { display: grid; grid-template-columns: 50px minmax(0,1fr) 100px 54px 56px; align-items: center; gap: 7px; min-height: 54px; padding: 2px 6px 2px 0; }
.track-row:hover { background: #eee; }
.track-row.active, .track-row.active:hover { color: #fff; background: #000; }
.track-play { position: relative; border: 0; width: 50px; height: 50px; padding: 0; background: #111; color: #fff; }
.track-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.track-play-symbol { position: absolute; inset: 0; padding: 14px; background: #0009; opacity: 0; }
.track-play:hover .track-play-symbol, .track-play:focus-visible .track-play-symbol, .track-row.active .track-play-symbol { opacity: 1; }
.track-text { min-width: 0; }
.track-title { display: block; font-size: 19px; font-weight: 700; line-height: 1.18; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-author { display: block; color: #686868; font-size: 13px; line-height: 1.2; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-row.active .track-author, .track-row.active .track-source, .track-row.active .track-duration { color: #ccc; }
.track-source { font-size: 12px; color: #666; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.track-source .icon { width: 13px; height: 13px; }
.track-source:hover { text-decoration: underline; }
.track-duration { font-weight: 600; font-size: 17px; color: #686868; text-align: right; font-variant-numeric: tabular-nums; }
.track-actions { display: flex; justify-content: flex-end; gap: 0; }
.track-actions .icon-button { width: 27px; height: 32px; padding: 6px; opacity: 0; }
.track-row:hover .track-actions .icon-button, .track-row:focus-within .track-actions .icon-button { opacity: 1; }
.empty-state, .library-error { padding: 45px 16px; text-align: center; }
.empty-state h3 { font-size: 19px; margin-bottom: 9px; }
.empty-state p, .library-error p { color: #686868; font-size: 14px; margin-bottom: 16px; }
.spinner, .status-indicator.busy { width: 18px; height: 18px; display: inline-block; border: 2px solid #bbb; border-top-color: #000; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Occasional actions stay in compact monochrome dialogs. */
dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 30px; border: 2px solid #000; background: #fff; color: #000; overflow-y: auto; }
dialog::backdrop { background: #0008; }
dialog h2 { margin-bottom: 20px; padding-right: 20px; }
dialog label { display: block; font-size: 13px; margin-bottom: 7px; }
dialog input:not([type=file]), dialog textarea { width: 100%; min-width: 0; background: #fff; border: 1px solid #777; color: #000; padding: 11px 12px; font-size: 16px; }
dialog input::placeholder { color: #777; }
.dialog-close { position: absolute; top: 9px; right: 9px; }
.primary, .secondary, .danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; font-weight: 700; background: #000; border: 1px solid #000; color: #fff; white-space: nowrap; }
.secondary { background: #fff; color: #000; }
.primary:hover:not(:disabled), .danger:hover:not(:disabled) { background: #333; }
.secondary:hover:not(:disabled) { background: #eee; }
.text-button { border: 0; border-bottom: 1px solid currentColor; padding: 0 0 2px; background: none; color: inherit; font: inherit; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.dialog-error, .dialog-note { font-size: 13px; margin-top: 12px; overflow-wrap: anywhere; }
.dialog-error:not(:empty) { padding-left: 9px; border-left: 3px solid #000; }
.dialog-note { color: #686868; }
.import-dialog { width: min(600px, calc(100% - 32px)); }
.import-heading { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; padding-right: 18px; }
.import-heading h2 { margin: 0; padding: 0; }
.limit { color: #686868; font-size: 12px; white-space: nowrap; }
.import-input-wrap { display: flex; gap: 8px; }
.import-hint, .dependency-warning { font-size: 12px; color: #686868; margin-top: 12px; }
.import-status { display: flex; gap: 12px; align-items: flex-start; padding-top: 18px; margin-top: 20px; border-top: 1px solid #ccc; font-size: 13px; }
.import-status p { color: #686868; font-size: 12px; margin-top: 5px; }
.status-indicator { flex-shrink: 0; width: 20px; height: 20px; }
.status-step { margin-left: auto; white-space: nowrap; color: #686868; font-size: 12px; }
.favorites-dialog { width: min(740px, calc(100% - 32px)); }
.favorites-heading > div > p { color: #686868; font-size: 13px; margin: -8px 0 18px; max-width: 580px; }
.favorites-heading h2 { margin-bottom: 17px; }
.favorites-note { color: #686868; font-size: 12px; margin-top: 15px; }
.favorites-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 13px; margin-top: 24px; }
.favorites-summary > span { white-space: nowrap; color: #686868; }
#favorites-progress { display: block; width: 100%; height: 4px; appearance: none; border: 0; background: #ddd; margin: 12px 0 16px; accent-color: #000; }
#favorites-progress::-webkit-progress-bar { background: #ddd; }
#favorites-progress::-webkit-progress-value { background: #000; }
#favorites-progress::-moz-progress-bar { background: #000; }
.favorites-counts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: #686868; }
.favorites-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.favorites-actions button { font-size: 12px; white-space: normal; }
.favorites-browser, .favorites-results { border-top: 1px solid #ccc; padding-top: 14px; margin-top: 20px; font-size: 13px; }
summary { cursor: pointer; font-weight: 600; }
.favorites-browser p, .favorites-browser li { line-height: 1.65; color: #555; }
.favorites-browser p { margin-top: 12px; }
.favorites-browser ol { padding-left: 20px; }
.favorites-browser li { margin-bottom: 9px; overflow-wrap: anywhere; }
.favorites-browser textarea { min-height: 140px; margin-top: 16px; resize: vertical; font-size: 11px; }
#favorites-items { list-style: none; margin: 14px 0 0; padding: 0; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
#favorites-items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #ddd; }
#favorites-items li > div { min-width: 0; }
#favorites-items a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; font-weight: 600; }
#favorites-items a:hover { text-decoration: underline; }
#favorites-items span { display: block; font-size: 11px; color: #686868; margin-top: 4px; }
#favorites-items strong { font-size: 11px; font-weight: 500; white-space: nowrap; }
#favorites-error { margin-top: 16px; }
.toast { position: fixed; bottom: 22px; left: 24px; max-width: min(540px, calc(100% - 48px)); padding: 13px 18px; background: #000; color: #fff; border: 1px solid #fff; font-size: 13px; z-index: 10; }

@media (max-width: 1100px) and (min-width: 901px) {
  :root { --rail-width: 260px; --art-size: 230px; }
  .rail { padding-inline: 20px; }
  .brand { font-size: 30px; letter-spacing: -2px; }
  .brand img { width: 44px; height: 44px; }
  .rail-actions { margin-inline: -20px; }
  .collection-text strong { font-size: 18px; }
  .table-heading { grid-template-columns: minmax(0, 1fr) 75px 44px 48px; gap: 5px; }
  .track-row { grid-template-columns: 42px minmax(0, 1fr) 75px 44px 48px; gap: 5px; }
  .track-play { width: 42px; height: 42px; }
  .track-title { font-size: 16px; }
  .track-duration { font-size: 15px; }
  .track-source { font-size: 11px; }
  .track-actions .icon-button { width: 24px; }
}
@media (max-width: 900px) {
  :root { --art-size: clamp(190px, 30vw, 300px); }
  .workspace { margin-right: 0; padding: 28px 20px 48px; }
  .rail { position: relative; width: 100%; padding: 14px 20px 12px; display: grid; grid-template-columns: 1fr auto; }
  .brand { font-size: 32px; letter-spacing: -2px; }
  .brand img { width: 42px; height: 42px; }
  .search { grid-column: 1 / -1; margin-top: 14px; padding-bottom: 6px; }
  .search input { font-size: 16px; }
  .rail-actions { grid-area: 1 / 2; display: flex; align-items: center; gap: 8px; margin: 0; }
  .rail-link, .clipboard-add { width: 38px; min-height: 38px; height: 38px; padding: 8px; border: 1px solid #fff; justify-content: center; }
  .rail-link { color: #fff; }
  .clipboard-symbol { width: 22px; height: 22px; padding: 0; border: 0; }
  .rail-label, .rail-counter, .rail-status { display: none !important; }
  .now-info { padding-top: 22px; }
  h1 { font-size: clamp(30px, 5.8vw, 48px); }
  .now-source { font-size: 16px; }
  .player-controls { margin-top: 20px; gap: 10px 18px; }
  .collection-art { width: 54px; height: 60px; padding: 17px; }
  .collection-text strong { font-size: 18px; }
  .collection-text > span { font-size: 12px; }
  .table-heading { grid-template-columns: minmax(0, 1fr) 80px 47px 54px; gap: 5px; }
  .track-row { grid-template-columns: 44px minmax(0, 1fr) 80px 47px 54px; gap: 5px; }
  .track-play { width: 44px; height: 44px; }
  .track-title { font-size: 17px; }
  .track-duration { font-size: 15px; }
}
@media (max-width: 640px) {
  :root { --art-size: clamp(130px, 38vw, 200px); }
  .rail { padding: 12px 16px; }
  .brand { font-size: 29px; gap: 7px; }
  .brand img { width: 36px; height: 36px; }
  .rail-actions { gap: 6px; }
  .rail-link, .clipboard-add { width: 34px; min-height: 34px; height: 34px; padding: 7px; }
  .workspace { padding: 28px 16px 40px; }
  .stage { gap: 10px; margin-bottom: 24px; }
  .now-info { padding-top: 12px; }
  h1 { font-size: clamp(25px, 7.3vw, 40px); letter-spacing: -.8px; }
  #now-title { padding-inline: 5px; }
  .now-source { margin-top: 2px; gap: 4px; font-size: 13px; }
  .now-source .icon { width: 16px; height: 18px; }
  #now-author { padding: 3px 4px; }
  .player-controls { margin: 16px 0 0; gap: 4px; }
  .transport-buttons { gap: 3px; }
  .icon-button { width: 30px; height: 34px; }
  .play-button { width: 36px; height: 36px; padding: 8px; }
  .volume { margin-top: 2px; }
  #volume { width: 74px; }
  .cover-timeline { height: 24px; font-size: 13px; }
  #current-time, #total-time { top: 3px; }
  .library-layout { display: block; }
  .section-bar { height: 27px; }
  .section-bar h2 { font-size: 18px; }
  .section-bar > span { font-size: 13px; }
  .collection-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin: 9px 0 18px; }
  .collection { display: block; }
  .collection-art, .collection-text > span { display: none; }
  .collection-text { padding: 10px 5px; min-height: 40px; justify-content: center; border: 1px solid #000; }
  .collection-text strong { font-size: 12px; line-height: 1.3; text-align: center; }
  .collection[data-collection=sounds] .collection-text strong { font-size: 11px; }
  .table-heading { height: 28px; grid-template-columns: minmax(0, 1fr) 44px 56px; gap: 6px; }
  .table-heading h2 { font-size: 18px; }
  .table-heading > span:nth-child(2) { display: none; }
  .table-heading > span { font-size: 13px; }
  .track-row { grid-template-columns: 44px minmax(0,1fr) 44px 56px; gap: 6px; min-height: 54px; }
  .track-title { font-size: 16px; }
  .track-author { font-size: 12px; padding-right: 20px; }
  .track-source { position: absolute; left: 50px; bottom: 5px; width: 15px; height: 15px; font-size: 0; }
  .track-row { position: relative; }
  .track-source .icon { width: 11px; height: 11px; }
  .track-author { padding-left: 16px; }
  .track-duration { font-size: 14px; }
  .track-actions .icon-button { width: 28px; min-height: 40px; padding: 6px; opacity: 1; }
  .track-play-symbol { padding: 13px; }
  dialog { padding: 26px 18px; max-height: calc(100dvh - 24px); }
  dialog h2 { font-size: 22px; }
  .import-heading { display: block; }
  .import-heading .limit { display: block; margin-top: 5px; }
  .import-input-wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
  .favorites-summary { font-size: 12px; }
  .favorites-actions button { flex: 1; }
  .favorites-browser textarea { font-size: 16px; }
  #favorites-items li { display: block; }
  #favorites-items strong { display: block; margin-top: 7px; }
  .toast { left: 16px; bottom: 16px; max-width: calc(100% - 32px); }
}
@media (hover: none) {
  .track-actions .icon-button { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner, .status-indicator.busy { animation-duration: 2s; }
}

/* SoundVault accounts and studio panels. Cover color is the only interface accent. */
.login-page{background:#000;color:#fff}.login-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;text-align:center}.login-screen h1{font-size:clamp(42px,8vw,64px);letter-spacing:-3px;margin-top:18px;line-height:1.2}.login-screen>img{width:112px;height:112px}.login-screen button{margin-top:46px;padding:15px 28px;min-width:240px;background:#fff;color:#000;border:1px solid #fff;font-size:16px;font-weight:700}.login-screen button:focus-visible{outline-color:#fff}.login-screen p{max-width:320px;min-height:22px;font-size:13px;color:#aaa;margin-top:16px}
.stage{grid-template-columns:clamp(280px,32vw,460px) minmax(0,1fr);gap:14px}.cover-stack{z-index:0}.cover-glow{position:absolute;inset:-14px;width:calc(100% + 28px);height:calc(100% + 28px);object-fit:cover;filter:blur(26px);opacity:.4;z-index:-2;pointer-events:none}.cover-stack::before,.cover-stack::after{z-index:-1}.cover-surface{width:100%;height:100%;position:relative;background:#292929}.cover-controls{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:22px;color:#fff;background:#0001}.cover-controls button{width:66px;height:76px;padding:10px;background:none;color:#fff;border:0;filter:drop-shadow(0 1px 3px #0006)}.cover-controls #play-pause{width:126px;height:150px;padding:12px;opacity:1}.cover-controls button:hover:not(:disabled){background:#0002}.cover-controls button:focus-visible{outline-color:#fff}.cover-controls button:disabled{opacity:.35}.cover-timeline{height:44px;font-size:29px}.cover-timeline progress{opacity:.85}.cover-timeline progress::-webkit-progress-value{background:var(--cover-accent,#aaa)}.cover-timeline progress::-moz-progress-bar{background:var(--cover-accent,#aaa)}#current-time,#total-time{top:2px;padding:0 7px}.now-info{padding-top:46px}.player-controls{margin-top:26px}.rail{padding-top:14px}.rail>.search{margin-top:24px;flex-shrink:0}.rail-content{flex:1;overflow-y:auto;min-height:0;margin-top:10px;padding-right:3px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#555 #000}.rail-actions{flex-shrink:0}.rail-current{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:16px 0 20px}.rail-current img{width:72px;height:72px;object-fit:cover}.rail-current>div{display:flex;flex-direction:column;justify-content:center;min-width:0}.rail-current strong{font-size:17px;line-height:1.2;overflow-wrap:anywhere}.rail-current span{font-size:12px;color:#aaa;overflow-wrap:anywhere;margin-top:4px}.studio-panel{padding:13px 0;border-top:1px solid #444}.studio-panel summary{display:flex;justify-content:space-between;align-items:center;font-size:17px;font-weight:600;list-style:none;gap:8px}.studio-panel summary::-webkit-details-marker{display:none}.studio-panel summary::after{content:'+';margin-left:auto;font-size:20px;font-weight:400}.studio-panel[open] summary::after{content:'−'}.studio-panel summary>span{font-size:12px;color:#888;font-weight:400}.order-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px}.studio-toggle{display:inline-flex;align-items:center;gap:7px;background:none;border:1px solid #777;color:#ccc;font-size:12px;padding:7px 9px}.studio-toggle .icon{width:16px;height:16px}.studio-toggle[aria-pressed=true]{background:#fff;color:#000;border-color:#fff}#hero-shuffle[aria-pressed=true]{background:#000;color:#fff}.studio-text{padding:3px 0;background:none;border:0;border-bottom:1px solid #666;color:#bbb;font-size:11px}.studio-text:hover{color:#fff}.studio-hint{font-size:11px;color:#999;line-height:1.5;margin-top:10px}.sound-order,.loop-segments{list-style:none;margin:12px 0 0;padding:0;max-height:270px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#555 #000}.sound-order li{display:flex;align-items:center;gap:5px;min-height:38px;border-bottom:1px solid #222}.sound-order li.current{color:#fff;background:#222}.queue-index{width:18px;flex-shrink:0;font-size:10px;color:#999;text-align:center}.sound-order button,.segment-actions button{border:0;background:none;color:#ccc;padding:5px;width:24px;flex-shrink:0;font-size:15px}.sound-order .queue-name{width:auto;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;text-align:left;padding:7px 2px}.sound-order li[draggable],.loop-segments li[draggable]{cursor:grab}.sound-order button:hover,.segment-actions button:hover{color:#fff;background:#333}.mix-picker{display:flex;gap:8px;margin-top:16px}.mix-picker select{flex:1;width:100%;min-width:0;background:#000;border:1px solid #777;color:#fff;padding:8px;font-size:12px;border-radius:0}.mix-picker button{flex-shrink:0;width:34px;background:#fff;color:#000;border:0;font-size:21px}.studio-label{display:block;font-size:11px;color:#aaa;margin:14px 0 5px}#mix-name{width:100%;padding:8px;background:#000;border:1px solid #666;color:#fff;font-size:14px}.region-preview{height:8px;background:#333;position:relative;margin:18px 0 12px;overflow:hidden}.region-preview span{display:block;height:100%;position:absolute;left:0;width:100%;background:#eee}#region-start-range,#region-end-range{display:block;width:100%;accent-color:#fff;margin:8px 0}.region-fields{display:grid;grid-template-columns:1fr 1fr .9fr;gap:7px;margin-top:16px}.region-fields label{font-size:10px;color:#aaa}.region-fields input{display:block;width:100%;min-width:0;padding:7px 4px;background:#000;border:1px solid #777;color:#fff;margin-top:4px;font-size:13px}.region-marks{display:flex;justify-content:space-between;margin:10px 0 16px}.studio-add{display:flex;gap:8px;align-items:center;justify-content:center;width:100%;padding:9px 7px;background:#fff;border:1px solid #fff;color:#000;font-weight:600;font-size:12px}.studio-add:disabled{opacity:.4}.studio-error{font-size:12px;line-height:1.4;border-left:2px solid #fff;padding-left:8px;margin-top:12px}.loop-segments{max-height:280px}.loop-segments li{display:flex;align-items:center;gap:7px;padding:10px 0;border-bottom:1px solid #333}.loop-segments li.active{background:#fff;color:#000}.loop-segments li.active span,.loop-segments li.active button{color:#333}.loop-segments li>div:first-child{min-width:0;flex:1}.loop-segments strong{display:block;font-size:12px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.loop-segments span{display:block;color:#aaa;font-size:10px;margin-top:4px}.segment-actions{display:flex;flex-shrink:0}.segment-actions button{width:21px;padding:4px}.mix-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:12px;margin:14px 0}.account-info{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 26px 3px;border-top:1px solid #333}.account-info>span{display:flex;min-width:0;flex-direction:column;gap:3px}.account-info strong{font-size:11px;font-weight:500;color:#bbb;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-info span span{font-size:10px;color:#888;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-info button{border:0;background:none;font-size:11px;color:#aaa;padding:6px}.rail-tools-toggle{display:none}#retry-player-save{margin:8px 0 16px}#player-save-status{min-height:0;margin-bottom:12px}
@media(max-width:1100px) and (min-width:901px){.stage{grid-template-columns:270px minmax(0,1fr)}.cover-controls{padding:12px}.cover-controls button{width:48px;height:56px;padding:7px}.cover-controls #play-pause{width:84px;height:110px}.cover-timeline{height:34px;font-size:22px}.rail-current{grid-template-columns:54px minmax(0,1fr)}.rail-current img{width:54px;height:54px}.account-info{padding-inline:20px}.studio-panel summary{font-size:15px}.order-toolbar{align-items:flex-start;flex-direction:column}.region-fields{gap:4px}.region-fields input{font-size:12px}}
@media(max-width:900px){.stage{grid-template-columns:clamp(200px,34vw,320px) minmax(0,1fr)}.rail-content{display:none;grid-column:1/-1;max-height:65dvh;margin:10px 0 0}.rail.tools-open .rail-content{display:block}.rail-tools-toggle{display:flex;justify-content:space-between;grid-column:1/-1;background:none;border:0;color:#bbb;font-size:12px;padding:12px 0 0;gap:12px}.rail-current{max-width:440px}.rail>.search{margin-top:14px}.rail-actions .account-info{position:absolute;top:16px;right:108px;border:0;padding:0}.account-info strong,.account-info span span{display:none}.account-info button{font-size:10px;max-width:40px;overflow:hidden}.rail-actions{grid-area:1/2;position:static}.cover-controls{padding:12px}.cover-controls button{width:48px;height:56px;padding:7px}.cover-controls #play-pause{width:84px;height:110px}.cover-timeline{height:34px;font-size:22px}.now-info{padding-top:22px}.studio-panel{max-width:600px}.region-fields input,#mix-name,.mix-picker select{font-size:16px}.sound-order,.loop-segments{max-height:230px}.order-toolbar{justify-content:flex-start;gap:24px}.account-info>span{display:none}}
@media(max-width:640px){.stage{grid-template-columns:minmax(0,1fr);gap:16px}.cover-stack{width:min(100%,360px)}.cover-controls{padding:18px}.cover-controls button{width:58px;height:70px}.cover-controls #play-pause{width:110px;height:128px}.cover-timeline{height:42px;font-size:28px}.now-info{padding-top:0;max-width:100%}.now-info h1{font-size:clamp(30px,8.5vw,44px)}.now-source{font-size:16px}.player-controls{margin-top:12px;justify-content:space-between}.volume{margin:0}#volume{width:94px}.rail-actions .account-info{position:static;border:0;padding:0}.account-info button{font-size:0;width:18px;min-height:30px;padding:2px}.account-info button::after{content:'↪';font-size:18px}.rail-current{grid-template-columns:64px minmax(0,1fr)}.rail-current img{width:64px;height:64px}.loop-segments strong{font-size:13px}.loop-segments span{font-size:11px}.studio-text{font-size:12px}.sound-order .queue-name{font-size:13px}.sound-order li{min-height:44px}.sound-order button,.segment-actions button{min-height:36px;width:30px}.studio-panel summary{font-size:18px}}
.segment-cycles{width:36px;min-width:0;background:#000;color:#fff;border:1px solid #666;padding:5px 2px;font-size:11px}.loop-segments li.active .segment-cycles{background:#fff;color:#000}.cover-controls button{width:80px;height:90px;padding:7px}.cover-controls #play-pause{width:140px;height:160px;padding:8px}
@media(max-width:900px){.cover-controls button{width:56px;height:66px;padding:7px}.cover-controls #play-pause{width:100px;height:120px;padding:8px}}
@media(max-width:640px){.cover-controls button{width:64px;height:76px}.cover-controls #play-pause{width:120px;height:140px}.segment-cycles{width:46px;font-size:16px}}
