/* Locally served fonts; licenses are included in wwwroot/fonts. */
@font-face {
    font-family:'Manrope';
    font-style:normal;
    font-weight:200 800;
    font-display:swap;
    src:url('fonts/manrope-variable.ttf') format('truetype')
}

@font-face {
    font-family:'Bai Jamjuree';
    font-style:normal;
    font-weight:600;
    font-display:swap;
    src:url('fonts/bai-jamjuree-600.ttf') format('truetype')
}

@font-face {
    font-family:'Bai Jamjuree';
    font-style:normal;
    font-weight:700;
    font-display:swap;
    src:url('fonts/bai-jamjuree-700.ttf') format('truetype')
}

/* Rock Garage's purple, monochrome surfaces, and bold display typography. */
:root {
    color-scheme:light;
    --bg:#f5f4f9;
    --sidebar:#000000;
    --panel:#ffffff;
    --panel-soft:#f5f4f9;
    --field:#ffffff;
    --line:#e2deeb;
    --border:#968ba8;
    --text:#171921;
    --text-secondary:#4b4958;
    --muted:#686574;
    --accent:#513e92;
    --accent-hover:#443176;
    --accent-ink:#ffffff;
    --accent-readable:#513e92;
    --accent-soft:#eeeaf7;
    --accent-line:#c5b8df;
    --focus:#513e92;
    --danger:#ac283e;
    --danger-hover:#8f1e31;
    --danger-soft:#fff0f2;
    --danger-line:#e1a7b1;
    --font-body:'Manrope','Segoe UI',Arial,sans-serif;
    --font-heading:'Bai Jamjuree','Segoe UI',Arial,sans-serif;
    font-family:var(--font-body);
    font-synthesis:none;
    font-size:14px;
    line-height:1.5
}

/* Keep the same controls legible on the black navigation, hero, and player. */
.sidebar,.library-hero,.player-bar {
    color-scheme:dark;
    --text:#ffffff;
    --text-secondary:#dcd9e5;
    --muted:#a3a3b1;
    --panel:#171921;
    --panel-soft:#1e1e24;
    --field:#0d0d11;
    --line:#2b2932;
    --border:#696274;
    --accent-readable:#c8b7f5;
    --accent-soft:#262033;
    --accent-line:#574772;
    --focus:#c8b7f5;
    color:var(--text)
}

* {
    box-sizing:border-box
}

body {
    margin:0;
    background:var(--bg);
    color:var(--text)
}

button,input,select,textarea {
    font:inherit
}

button,a,input,select,textarea {
    -webkit-tap-highlight-color:transparent
}

button {
    cursor:pointer
}

button {
    color:inherit
}

a {
    color:inherit
}

button:disabled {
    cursor:not-allowed;
    opacity:.45
}

button,input,textarea,select {
    outline-offset:4px
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
    outline:2px solid var(--focus)
}

h1,h2,h3,p {
    margin:0
}

h1,h2,h3 {
    font-family:var(--font-heading);
    font-weight:700;
    text-transform:uppercase
}

button svg,span svg {
    flex-shrink:0
}

button {
    transition:background .15s,color .15s,border-color .15s
}

svg {
    vertical-align:middle
}

.muted {
    color:var(--muted)
}

.eyebrow {
    font-size:10px;
    letter-spacing:1.9px;
    color:var(--accent-readable);
    font-family:var(--font-heading);
    font-weight:600
}

.sr-only {
    position:absolute!important;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap
}

.app-shell {
    min-height:100vh;
    padding-bottom:112px;
    display:grid;
    grid-template-columns:248px minmax(0,1fr)
}

.sidebar {
    background:var(--sidebar);
    border-right:1px solid var(--line);
    padding:36px 20px 0;
    display:flex;
    flex-direction:column;
    min-height:calc(100vh - 112px)
}

.brand {
    display:flex;
    align-items:center;
    gap:11px;
    text-decoration:none;
    font-size:24px;
    line-height:1.2;
    margin:0 4px 45px;
    font-family:var(--font-heading);
    font-weight:700;
    letter-spacing:-.8px
}

.brand-mark {
    background:var(--accent);
    color:var(--accent-ink);
    width:39px;
    height:43px;
    display:grid;
    place-items:center;
    flex-shrink:0;
    border-radius:4px
}

.brand-dot {
    color:var(--accent-readable)
}

.brand small {
    display:block;
    font-size:7px;
    letter-spacing:1.7px;
    color:var(--muted);
    margin-top:7px;
    font-family:var(--font-body);
    font-weight:600
}

.workspace-label,.nav-section-heading {
    color:var(--muted);
    font-size:10px;
    letter-spacing:1.65px;
    font-family:var(--font-heading);
    font-weight:600
}

.workspace-label {
    padding:0 12px;
    margin-bottom:13px
}

.nav-item {
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    min-height:48px;
    border:1px solid transparent;
    background:transparent;
    text-align:left;
    color:var(--text-secondary);
    padding:10px 11px;
    border-radius:4px;
    font-weight:600
}

.nav-item>span:nth-last-child(2) {
    flex:1;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}

.nav-item:hover {
    background:var(--panel-soft)
}

.nav-item.active {
    background:var(--accent);
    border-color:var(--accent);
    color:var(--accent-ink);
    box-shadow:inset 3px 0 #c8b7f5
}

.nav-count {
    font-size:11px;
    background:#ffffff12;
    min-width:22px;
    padding:1px 5px;
    text-align:center;
    border-radius:4px;
    color:var(--text-secondary)
}

.nav-section-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:30px 2px 9px 12px
}

.nav-section-heading .muted {
    margin-left:6px
}

.band-nav {
    display:flex;
    flex-direction:column;
    gap:3px;
    max-height:40vh;
    overflow-y:auto
}

.band-avatar {
    display:grid;
    place-items:center;
    width:27px;
    height:29px;
    font-size:10px;
    letter-spacing:.4px;
    flex-shrink:0;
    background:var(--accent-soft);
    color:var(--accent-readable);
    border:1px solid var(--accent-line);
    border-radius:3px;
    font-weight:700
}

.nav-empty {
    padding:10px 12px;
    color:var(--muted);
    font-size:12px;
    line-height:1.9
}

.new-band-button {
    display:flex;
    align-items:center;
    gap:9px;
    padding:11px 12px;
    margin:11px 0 20px;
    background:transparent;
    color:var(--text-secondary);
    text-align:left;
    font-size:12px;
    border:1px solid var(--border);
    border-radius:4px;
    font-family:var(--font-heading);
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.4px
}

.new-band-button:hover {
    background:var(--accent-soft);
    border-color:var(--accent-line)
}

.sidebar-bottom {
    margin-top:auto
}

.rehearsal-note {
    border:1px solid var(--line);
    padding:22px 17px;
    margin:44px 0 25px;
    background:linear-gradient(145deg,#241c3b,#101014);
    border-radius:5px;
    border-top:3px solid var(--accent)
}

.rehearsal-note>svg {
    color:var(--accent-readable);
    margin-bottom:14px
}

.rehearsal-note strong {
    display:block;
    line-height:1.35;
    font-family:var(--font-heading);
    font-weight:700;
    font-size:22px;
    text-transform:uppercase;
    letter-spacing:0
}

.rehearsal-note p {
    font-size:11px;
    color:var(--muted);
    margin-top:12px;
    line-height:1.8
}

.profile {
    display:flex;
    align-items:center;
    gap:10px;
    padding:21px 0;
    border-top:1px solid var(--line)
}

.profile-avatar {
    display:grid;
    place-items:center;
    flex-shrink:0;
    width:31px;
    height:31px;
    border-radius:50%;
    font-weight:600;
    font-size:12px;
    background:var(--accent);
    color:var(--accent-ink)
}

.profile div {
    flex:1
}

.profile strong {
    display:block;
    font-size:11px;
    font-weight:550
}

.profile div span {
    display:block;
    font-size:9px;
    color:var(--muted);
    margin-top:3px
}

.profile>svg {
    color:var(--muted)
}

.main-content {
    min-width:0
}

.topbar {
    height:76px;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 38px;
    font-size:11px;
    background:var(--panel)
}

.topbar>div {
    display:flex;
    align-items:center;
    gap:14px
}

.admin-badge {
    display:flex;
    align-items:center;
    gap:7px;
    padding:5px 9px;
    font-size:10px;
    color:var(--accent-readable);
    background:var(--accent-soft);
    border:1px solid var(--accent-line);
    border-radius:3px
}

.admin-badge>span,.live-dot,.tiny-dot {
    width:5px;
    height:5px;
    border-radius:50%;
    background:var(--accent);
    display:inline-block
}

.page-content {
    max-width:1570px;
    margin:auto;
    padding:30px 38px 0
}

.library-hero {
    position:relative;
    min-height:219px;
    display:flex;
    overflow:hidden;
    align-items:center;
    justify-content:space-between;
    padding:30px 34px;
    background:radial-gradient(ellipse at 100% 50%,#513e9270,transparent 58%),linear-gradient(105deg,#000000,#17151f);
    border:1px solid #2b2932;
    border-bottom:4px solid var(--accent);
    border-radius:5px
}

.hero-copy {
    position:relative;
    z-index:1;
    min-width:0;
    max-width:72%
}

.hero-copy .eyebrow {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:9px;
    letter-spacing:1.7px
}

.hero-copy h1 {
    line-height:1.15;
    margin:15px 0 12px;
    overflow-wrap:anywhere;
    font-size:42px;
    font-weight:700;
    letter-spacing:-.6px
}

.hero-copy>p:not(.eyebrow) {
    color:var(--text-secondary);
    line-height:1.8;
    max-width:500px;
    font-size:13px
}

.hero-meta {
    display:flex;
    gap:22px;
    margin-top:24px;
    color:var(--text-secondary);
    font-size:11px
}

.hero-meta>span {
    display:flex;
    align-items:center;
    gap:6px
}

.hero-art {
    position:absolute;
    right:24px;
    top:20px;
    width:225px;
    height:190px
}

.record {
    height:166px;
    width:166px;
    border-radius:50%;
    position:absolute;
    right:20px;
    top:0;
    display:grid;
    place-items:center;
    transform:rotate(-17deg);
    box-shadow:0 12px 35px #00000040;
    background:repeating-radial-gradient(circle at center,#111115 0,#111115 2px,#35333d 3px,#111115 4px);
    border:1px solid #615b6d
}

.record:before {
    content:'';
    position:absolute;
    inset:0;
    border-radius:50%;
    background:conic-gradient(transparent 0deg,#c8b7f526 45deg,transparent 90deg,transparent 170deg,#c8b7f526 215deg,transparent 260deg)
}

.record-label {
    display:grid;
    place-items:center;
    width:65px;
    height:65px;
    background:var(--accent);
    color:var(--accent-ink);
    border-radius:50%;
    z-index:1;
    border:5px solid #33265b
}

.art-caption {
    font-size:7px;
    letter-spacing:1.7px;
    color:var(--muted);
    position:absolute;
    right:9px;
    bottom:0
}

.art-caption span {
    padding-left:18px;
    color:var(--accent-readable);
    font-size:15px
}

.workspace-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin:33px 0 20px
}

.workspace-toolbar h2 {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:21px;
    font-weight:700;
    letter-spacing:0
}

.count-badge {
    line-height:1;
    padding:5px 7px;
    background:var(--accent-soft);
    color:var(--accent-readable);
    font-weight:500;
    font-family:var(--font-body);
    font-size:11px;
    border-radius:3px
}

.workspace-toolbar p {
    color:var(--muted);
    margin-top:5px;
    font-size:12px
}

.toolbar-actions {
    display:flex;
    gap:9px;
    align-items:center
}

.button {
    border:1px solid transparent;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:9px 15px;
    white-space:nowrap;
    text-decoration:none;
    border-radius:3px;
    font-family:var(--font-heading);
    font-size:13px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.35px;
    min-height:41px
}

.button.primary {
    background:var(--accent);
    color:var(--accent-ink);
    border-color:var(--accent);
    box-shadow:none
}

.button.primary:hover {

    background:linear-gradient(161deg,#7c69bd,var(--accent));
    border-color:var(--accent-hover)
}

.button.secondary {
    background:transparent;
    border-color:var(--border);
    color:var(--text)
}

.button.secondary:hover {
    background:var(--accent-soft);
    border-color:var(--accent)
}

.button.danger {
    background:var(--danger);
    border-color:var(--danger);
    color:#ffffff
}

.button.danger:hover {
    background:var(--danger-hover)
}

.icon-button {
    border:0;
    background:transparent;
    color:var(--muted);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:5px;
    width:31px;
    height:31px;
    flex-shrink:0;
    padding:0
}

.icon-button:hover {
    color:var(--text);
    background:var(--accent-soft)
}

.icon-button.outlined {
    border:1px solid var(--border);
    width:38px;
    height:39px
}

.danger-hover:hover {
    color:var(--danger);
    background:var(--danger-soft)
}

.icon-button[aria-pressed=true] {
    background:var(--accent-soft);
    color:var(--accent-readable)
}

.rehearsal-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr) 287px;
    gap:20px;
    align-items:start
}

.track-panel {
    border:1px solid var(--line);
    background:var(--panel);
    overflow:hidden;
    min-height:394px;
    border-radius:5px;
    box-shadow:0 4px 18px #17192105
}

.track-filters {
    display:flex;
    gap:12px;
    padding:17px;
    border-bottom:1px solid var(--line);
    align-items:center;
    background:var(--panel)
}

.search-field {
    display:flex;
    gap:9px;
    align-items:center;
    flex:1;
    min-width:0;
    border:1px solid var(--border);
    background:var(--field);
    padding:0 11px;
    color:var(--muted);
    border-radius:3px
}

.search-field input {
    border:0;
    box-shadow:none;
    background:transparent;
    width:100%;
    min-width:0;
    padding:9px 0;
    color:var(--text);
    font-size:12px
}

.search-field input:focus {
    outline:none
}

.search-field:focus-within {
    outline:2px solid var(--focus)
}

input::placeholder,textarea::placeholder {
    color:var(--muted)
}

select {
    background:var(--panel-soft);
    border:1px solid var(--border);
    color:var(--text-secondary);
    padding:8px;
    border-radius:3px;
    font-size:11px
}

.track-filters select {
    max-width:120px;
    min-height:36px
}

.table-scroll {
    overflow-x:auto
}

.track-table {
    width:100%;
    border-collapse:collapse;
    text-align:left;
    table-layout:auto
}

.track-table th {
    color:var(--muted);
    height:39px;
    border-bottom:1px solid var(--line);
    font-family:var(--font-heading);
    font-weight:600;
    font-size:10px;
    background:var(--panel-soft);
    letter-spacing:1px
}

.track-table th,.track-table td {
    padding:0 8px
}

.track-table th:first-child,.track-table td:first-child {
    padding-left:17px;
    width:51px
}

.track-table th:last-child,.track-table td:last-child {
    padding-right:12px;
    width:70px
}

.track-table td {
    height:72px;
    border-bottom:1px solid var(--line);
    font-size:11px;
    color:var(--text-secondary)
}

.track-table tr.selected {

    background:var(--accent-soft)
}

.track-table tbody tr:hover {

    background:var(--panel-soft)
}

.track-table tbody tr.selected:hover {
    background:var(--accent-soft)
}

.track-table tr.selected td:first-child {
    box-shadow:inset 2px 0 var(--accent)
}

.row-play {
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border:1px solid var(--accent-line);
    border-radius:50%;
    color:var(--accent-readable);
    padding:0;
    background:var(--panel);
    border-color:var(--border)
}

.row-play:hover {
    background:var(--accent);
    color:var(--accent-ink)
}

.track-title-button {
    display:block;
    text-align:left;
    background:none;
    border:0;
    padding:13px 0;
    max-width:100%;
    color:var(--text)
}

.track-title-button strong,.track-title-button span {
    display:block
}

.track-title-button strong {
    overflow-wrap:anywhere;
    line-height:1.5;
    font-weight:700;
    font-size:13px
}

.track-title-button span {
    color:var(--muted);
    margin-top:4px;
    font-size:11px
}

.tempo-column {
    width:46px
}

.key-column {
    width:80px
}

.key-tag {
    font-size:9px;
    display:inline-block;
    border:1px solid var(--border);
    border-radius:4px;
    padding:2px 6px;
    max-width:80px;
    overflow-wrap:anywhere
}

.board-column {
    width:33px
}

.has-board {
    color:var(--accent-readable)
}

.row-actions {
    display:flex;
    gap:1px
}

.row-actions .icon-button {
    width:25px
}

.table-footer {
    padding:14px 18px;
    display:flex;
    justify-content:space-between;
    gap:8px;
    color:var(--muted);
    font-size:10px
}

.table-footer>span:last-child {
    display:flex;
    align-items:center;
    gap:6px
}

.tiny-dot {
    width:4px;
    height:4px;
    background:var(--accent-readable)
}

.empty-state {
    padding:34px 15px 31px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    min-height:319px
}

.empty-record {
    width:66px;
    height:66px;
    border-radius:50%;
    border:1px solid var(--accent-line);
    display:grid;
    place-items:center;
    margin:1px 0 22px;
    color:var(--accent-readable);
    background:repeating-radial-gradient(circle,#eeeaf7 0,#eeeaf7 5px,#dcd3ed 6px,#eeeaf7 7px)
}

.empty-state .eyebrow {
    letter-spacing:1.5px;
    color:var(--accent-readable);
    margin-bottom:9px;
    font-size:9px
}

.empty-state h3 {
    font-size:21px;
    font-weight:700;
    letter-spacing:0
}

.empty-state>p:not(.eyebrow) {
    color:var(--muted);
    line-height:1.8;
    margin:10px 0 20px;
    font-size:12px
}

.empty-state .button {
    font-size:12px;
    min-height:40px
}

.empty-footnote {
    color:var(--muted);
    margin-top:12px;
    font-size:10px
}

.empty-icon {
    margin:28px 0 18px;
    color:var(--accent-readable)
}

.whiteboard-panel {
    border:1px solid var(--line);
    background:var(--panel);
    overflow:hidden;
    min-height:394px;
    display:flex;
    flex-direction:column;
    border-radius:5px;
    box-shadow:0 4px 18px #17192105
}

.panel-title {
    height:59px;
    border-bottom:1px solid var(--line);
    padding:0 18px;
    display:flex;
    align-items:center;
    gap:5px
}

.panel-title h2 {
    display:flex;
    align-items:center;
    gap:8px;
    flex:1;
    font-size:16px;
    font-weight:700
}

.panel-title h2 svg {
    color:var(--accent-readable)
}

.small-tag {
    padding:3px 5px;
    border:1px solid var(--border);
    border-radius:3px;
    letter-spacing:1px;
    color:var(--accent-readable);
    font-family:var(--font-heading);
    font-size:9px
}

.whiteboard-song {
    padding:18px 18px 12px
}

.whiteboard-song strong {
    font-size:12px;
    display:block;
    overflow-wrap:anywhere;
    font-weight:700
}

.whiteboard-song>span {
    display:block;
    font-size:10px;
    color:var(--muted);
    margin-top:3px
}

.whiteboard-preview {
    display:block;
    position:relative;
    margin:0 16px;
    border:1px solid var(--border);
    border-radius:5px;
    padding:6px;
    background:var(--accent-soft);
    cursor:zoom-in
}

.whiteboard-preview img {
    display:block;
    width:100%;
    height:190px;
    object-fit:contain;
    background:#ffffff;
    border-radius:2px
}

.whiteboard-document {
    margin:0 16px 12px;
    min-width:0
}

.whiteboard-pdf {
    display:block;
    width:100%;
    height:320px;
    border:1px solid var(--border);
    border-radius:4px;
    background:#ffffff;
    color:var(--text);
    color-scheme:light
}

.whiteboard-document.expanded {
    margin:24px 0 0
}

.whiteboard-document.expanded .whiteboard-pdf {
    height:65dvh;
    min-height:280px
}

.pdf-fallback {
    padding:28px 18px;
    text-align:center;
    font-size:12px;
    line-height:1.8
}

.pdf-fallback svg,.pdf-fallback a {
    color:var(--accent-readable)
}

.pdf-fallback p {
    margin:12px 0 8px
}

.pdf-actions {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:10px
}

.pdf-actions .button {
    font-size:11px;
    min-height:34px;
    padding:7px 11px
}

.board-hint {
    font-size:9px;
    color:var(--muted);
    text-align:center;
    margin:9px 0
}

.board-button {
    margin:5px 17px 19px;
    align-self:center;
    font-size:10px
}

.whiteboard-empty {
    padding:18px 10px 15px;
    text-align:center;
    color:var(--muted)
}

.whiteboard-empty h3 {
    color:var(--text-secondary);
    margin-top:17px;
    font-size:18px;
    font-weight:700;
    letter-spacing:0
}

.whiteboard-empty p {
    color:var(--muted);
    line-height:1.8;
    margin-top:9px;
    font-size:11px
}

.whiteboard-empty.no-selection {
    padding:37px 10px 26px;
    flex:1
}

.board-sketch {
    width:172px;
    height:104px;
    padding:18px 8px;
    border:2px solid var(--accent-line);
    border-radius:4px;
    margin:0 auto 25px;
    transform:rotate(-5deg);
    font-family:Georgia,serif;
    font-style:italic;
    font-size:11px;
    background:#ffffff;
    color:var(--accent);
    box-shadow:0 0 0 4px #eeeaf7,4px 9px 0 #17192112
}

.board-sketch div {
    height:1px;
    background:var(--accent-readable);
    transform:rotate(-2deg);
    margin:11px 10px
}

.board-sketch span:last-child {
    color:var(--accent-readable);
    font-size:10px
}

.whiteboard-tip {
    margin-top:auto;
    display:flex;
    align-items:flex-start;
    gap:9px;
    padding:16px;
    background:var(--panel-soft);
    border-top:1px solid var(--line);
    color:var(--muted)
}

.whiteboard-tip svg {
    flex-shrink:0;
    margin-top:2px
}

.whiteboard-tip p {
    line-height:1.8;
    font-size:10px
}

.page-footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:var(--muted);
    padding:24px 1px;
    font-size:10px
}

.page-footer>span:last-child {
    display:flex;
    gap:6px;
    align-items:center
}

.player-bar {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    min-height:108px;
    display:grid;
    grid-template-columns:310px minmax(0,1fr);
    align-items:center;
    gap:25px;
    padding:19px 33px;
    z-index:20;
    background:#0d0d11;
    border-top:3px solid var(--accent);
    box-shadow:0 -8px 30px #00000018
}

.now-playing {
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0
}

.player-art {
    width:51px;
    height:51px;
    display:grid;
    place-items:center;
    flex-shrink:0;
    background:linear-gradient(145deg,#513e92,#2c204e);
    border:1px solid #7c69bd;
    color:#ffffff;
    border-radius:4px
}

.now-playing>div:last-child {
    min-width:0
}

.now-playing .eyebrow {
    display:block;
    letter-spacing:1.4px;
    color:var(--accent-readable);
    font-size:9px
}

.now-playing strong {
    display:block;
    font-size:12px;
    margin-top:4px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-weight:700
}

.now-playing div>span:last-child {
    display:block;
    font-size:10px;
    color:var(--muted);
    margin-top:3px
}

.playback {
    display:flex;
    align-items:center;
    gap:18px;
    position:relative;
    min-width:0
}

.transport {
    display:flex;
    align-items:center;
    flex:1;
    min-width:0;
    gap:4px
}

.transport audio {
    height:39px;
    width:100%;
    min-width:150px;
    color-scheme:dark
}

.player-extras {
    display:flex;
    align-items:center;
    gap:6px
}

.player-extras select {
    font-size:11px;
    width:57px;
    padding:6px 3px;
    border:0;
    background:var(--panel-soft);
    color:var(--text-secondary)
}

.volume-control {
    display:flex;
    align-items:center;
    gap:8px;
    margin-left:10px;
    color:var(--text-secondary)
}

.volume-control input {
    width:76px;
    cursor:pointer;
    height:14px;
    accent-color:var(--accent-readable)
}

.volume-control output {
    font-size:10px;
    width:29px;
    color:var(--text-secondary);
    font-variant-numeric:tabular-nums
}

.player-message {
    position:absolute;
    top:100%;
    left:38px;
    font-size:10px;
    color:#f1c790
}

.modal {
    width:min(510px,calc(100% - 30px));
    max-height:calc(100dvh - 40px);
    overflow-y:auto;
    color:var(--text);
    padding:28px;
    background:var(--panel);
    border:1px solid var(--line);
    border-top:4px solid var(--accent);
    border-radius:5px;
    box-shadow:0 25px 100px #00000050
}

.modal::backdrop {
    background:#000000b8;
    backdrop-filter:blur(5px)
}

.modal-heading {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px
}

.modal-heading .eyebrow {
    margin-bottom:7px;
    line-height:1.8;
    font-size:10px
}

.modal-heading h2 {
    line-height:1.3;
    overflow-wrap:anywhere;
    font-weight:700;
    font-size:28px;
    letter-spacing:-.3px
}

.modal-description {
    line-height:1.9;
    color:var(--muted);
    margin:14px 0 22px;
    font-size:13px
}

.modal fieldset {
    padding:0;
    border:0;
    margin:0;
    min-width:0
}

.field-label {
    display:block;
    color:var(--text-secondary);
    margin:17px 0 8px;
    font-weight:700;
    font-size:12px
}

.field-label>span:not(.optional) {
    color:var(--accent-readable)
}

.optional {
    color:var(--muted);
    font-size:10px;
    font-weight:400;
    margin-left:4px
}

.modal input:not([type=checkbox]):not([type=file]),.modal textarea {
    width:100%;
    background:var(--field);
    color:var(--text);
    border:1px solid var(--border);
    border-radius:5px;
    padding:10px 12px;
    font-size:12px
}

.modal textarea {
    resize:vertical;
    min-height:80px
}

.modal .search-field input:not([type=checkbox]) {
    border:0;
    padding:10px 0;
    background:none
}

.form-columns {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px
}

.file-drop {
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-height:126px;
    padding:17px 14px;
    background:var(--accent-soft);
    color:var(--accent-readable);
    text-align:center;
    overflow:hidden;
    border:1px dashed var(--accent);
    border-radius:4px
}

.file-drop>strong {
    max-width:100%;
    overflow-wrap:anywhere;
    margin-top:4px;
    font-weight:700;
    font-size:13px
}

.file-drop>span {
    color:var(--muted);
    font-size:11px
}

.file-drop input {
    position:absolute;
    inset:0;
    opacity:0;
    width:100%;
    height:100%;
    cursor:pointer
}

.file-drop:focus-within {
    outline:2px solid var(--focus);
    outline-offset:3px
}

.file-drop.compact {
    min-height:105px
}

.checkbox-label {
    display:flex;
    gap:9px;
    align-items:center;
    font-size:11px;
    color:var(--text-secondary);
    margin-top:13px
}

input[type=checkbox] {
    accent-color:var(--accent);
    width:16px;
    height:16px;
    cursor:pointer;
    flex-shrink:0
}

.modal-actions {
    margin-top:26px;
    display:flex;
    justify-content:flex-end;
    gap:9px;
    padding-top:20px;
    border-top:1px solid var(--line)
}

.modal-actions button {

    font-size:12px
}

.validation-message,.form-error {
    color:var(--danger);
    font-size:11px;
    margin-top:7px
}

.form-error {
    padding:10px 12px;
    background:var(--danger-soft);
    border:1px solid var(--danger-line);
    border-radius:5px;
    margin-top:16px
}

.invalid {
    border-color:var(--danger)!important
}

.upload-progress {
    display:flex;
    flex-direction:column;
    font-size:11px;
    gap:8px;
    color:var(--accent-readable);
    margin-top:18px
}

.upload-progress progress {
    width:100%;
    height:6px;
    accent-color:var(--accent)
}

.notice {
    border:1px solid var(--accent-line);
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 10px 8px 15px;
    border-radius:6px;
    margin-bottom:18px;
    border-color:var(--accent-line);
    background:var(--accent-soft);
    color:var(--accent-readable);
    font-size:12px
}

.notice>span {
    flex:1
}

.notice.error {
    background:var(--danger-soft);
    border-color:var(--danger-line);
    color:var(--danger)
}

.library-picker {
    max-height:340px;
    overflow-y:auto;
    margin-top:17px
}

.library-choice {
    display:flex;
    gap:12px;
    align-items:center;
    border:1px solid var(--line);
    border-radius:5px;
    padding:13px;
    margin-bottom:8px;
    cursor:pointer;
    background:var(--panel-soft)
}

.library-choice:has(input:checked) {
    border-color:var(--accent);
    background:var(--accent-soft)
}

.library-choice>span {
    flex:1;
    min-width:0
}

.library-choice strong {
    display:block;
    font-size:12px;
    font-weight:500;
    overflow-wrap:anywhere
}

.library-choice small {
    display:block;
    font-size:10px;
    color:var(--muted);
    margin-top:3px
}

.library-choice>svg {
    color:var(--accent-readable)
}

.picker-empty {
    font-size:12px;
    color:var(--muted);
    padding:25px 12px;
    text-align:center
}

.image-modal {
    width:min(1100px,calc(100% - 30px))
}

.full-whiteboard {
    display:block;
    max-width:100%;
    max-height:75vh;
    object-fit:contain;
    margin:24px auto 0;
    background:#ffffff
}

.track-modal {
    width:min(530px,calc(100% - 30px))
}

.track-modal .modal-description {
    margin-bottom:12px
}

.upload-steps {
    display:flex;
    gap:22px;
    padding:0;
    margin:24px 0 18px;
    list-style:none;
    color:var(--muted);
    font-family:var(--font-heading);
    font-size:12px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.4px
}

.upload-steps li {
    display:flex;
    align-items:center;
    gap:7px;
}

.upload-steps li>span {
    display:grid;
    place-items:center;
    width:23px;
    height:23px;
    border:1px solid var(--line);
    border-radius:50%;
    font-size:10px;
}

.upload-steps .current {
    color:var(--accent-readable);
}

.upload-steps .current>span,.upload-steps .complete>span {
    background:var(--accent);
    border-color:var(--accent);
    color:var(--accent-ink)
}

.file-drop.audio-first {
    min-height:190px;
    margin-top:24px;
    gap:10px;
}

.uploaded-file {
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:20px;
    padding:13px;
    border:1px solid var(--accent-line);
    border-radius:6px;
    background:var(--accent-soft);
    color:var(--accent-readable);
}

.uploaded-file>div {
    flex:1;
    min-width:0;
}

.uploaded-file strong {
    display:block;
    overflow-wrap:anywhere;
    font-weight:700;
    font-size:12px
}

.uploaded-file div>span {
    display:block;
    margin-top:3px;
    color:var(--muted);
    font-size:10px
}

.uploaded-file .button {
    padding:7px 9px;
    min-height:32px;
    font-size:11px
}

@media(min-width:1600px) {
    .page-content {
        padding-top:38px
    }
    .library-hero {
        min-height:245px
    }
    .rehearsal-grid {
        grid-template-columns:minmax(0,1fr) 340px
    }
    .empty-state {
        min-height:360px;
        padding-top:48px
    }
    .whiteboard-panel {
        min-height:438px
    }
    .whiteboard-empty.no-selection {
        padding-top:51px
    }
    .hero-art {
        right:60px;
        transform:scale(1.1);
        top:35px
    }
    .hero-copy h1 {
        font-size:44px
    }
}

@media(max-width:1180px) {
    .app-shell {
        grid-template-columns:213px minmax(0,1fr)
    }
    .sidebar {
        padding-left:15px;
        padding-right:15px
    }
    .brand {
        font-size:21px;
        gap:8px
    }
    .brand-mark {
        width:34px;
        height:39px
    }
    .brand small {
        font-size:6px;
        letter-spacing:1.5px
    }
    .topbar {
        padding:0 25px
    }
    .page-content {
        padding:25px 25px 0
    }
    .rehearsal-grid {
        grid-template-columns:minmax(0,1fr) 240px;
        gap:15px
    }
    .hero-art {
        right:0;
        opacity:.7
    }
    .hero-copy {
        max-width:68%
    }
    .hero-copy h1 {
        font-size:34px
    }
    .library-hero {
        padding-left:25px
    }
    .player-bar {
        grid-template-columns:240px minmax(0,1fr);
        gap:16px;
        padding:18px 23px
    }
    .playback {
        gap:8px
    }
    .player-extras {
        gap:2px
    }
    .volume-control {
        margin-left:4px;
        gap:6px
    }
    .volume-control input {
        width:58px
    }
    .workspace-toolbar {
        align-items:flex-start
    }
    .toolbar-actions {
        gap:6px;
        flex-wrap:wrap;
        justify-content:flex-end
    }
    .toolbar-actions .button {
        padding:9px 11px
    }
    .workspace-toolbar p {
        max-width:250px
    }
    .key-column {
        display:none
    }
    .track-filters {
        padding:12px;
        gap:8px
    }
    .track-filters select {
        max-width:100px
    }
}

@media(max-width:960px) {
    .rehearsal-grid {
        grid-template-columns:minmax(0,1fr)
    }
    .whiteboard-panel {
        min-height:0
    }
    .whiteboard-empty.no-selection {
        padding:20px
    }
    .board-sketch {
        display:none
    }
    .whiteboard-empty.no-selection h3 {
        margin-top:0
    }
    .whiteboard-preview img {
        height:260px
    }
    .whiteboard-empty:not(.no-selection) {
        padding:15px
    }
    .player-bar {
        grid-template-columns:210px minmax(0,1fr);
        padding:14px 20px;
        min-height:117px
    }
    .playback {
        flex-wrap:wrap;
        gap:3px
    }
    .transport {
        flex-basis:100%
    }
    .player-extras {
        justify-content:center;
        width:100%
    }
    .volume-control input {
        width:90px
    }
    .player-message {
        top:auto;
        bottom:100%;
        left:0
    }
    .app-shell {
        padding-bottom:117px
    }
    .hero-art {
        opacity:.35;
        right:-25px
    }
    .hero-copy {
        max-width:90%
    }
    .hero-meta {
        gap:14px
    }
    .topbar {
        height:62px
    }
    .workspace-toolbar h2 {
        font-size:16px
    }
    .toolbar-actions {
        max-width:250px
    }
    .key-column {
        display:table-cell
    }
    .whiteboard-tip {
        padding:12px 17px
    }
}

@media(max-width:700px) {
    .app-shell {
        display:block;
        padding-bottom:162px
    }
    .sidebar {
        min-height:0;
        padding:17px 18px 13px;
        border-right:0;
        border-bottom:1px solid var(--line);
        display:block
    }
    .brand {
        font-size:22px;
        margin:0 0 20px
    }
    .brand-mark {
        width:35px;
        height:38px
    }
    .brand small {
        font-size:6px
    }
    .workspace-label,.nav-section-heading,.sidebar-bottom {
        display:none
    }
    .sidebar>.nav-item {
        width:auto;
        min-height:40px;
        padding:7px 11px;
        font-size:12px;
        display:inline-flex;
        gap:9px;
        vertical-align:top
    }
    .sidebar>.nav-item .nav-count {
        margin-left:8px
    }
    .band-nav {
        display:flex;
        flex-direction:row;
        max-height:none;
        overflow-x:auto;
        gap:8px;
        flex-wrap:nowrap;
        margin-top:10px;
        padding-bottom:2px
    }
    .band-nav .nav-item {
        width:auto;
        flex-shrink:0;
        max-width:240px;
        font-size:11px;
        min-height:37px;
        padding:6px 9px;
        background:var(--panel-soft);
        border-color:var(--line);
        gap:8px
    }
    .band-nav .nav-item.active {
        background:var(--accent);
        border-color:var(--accent)
    }
    .band-avatar {
        width:22px;
        height:24px;
        font-size:8px
    }
    .nav-empty {
        display:none
    }
    .new-band-button {
        position:absolute;
        top:20px;
        right:18px;
        margin:0;
        padding:9px 12px;
        font-size:10px
    }
    .topbar {
        height:48px;
        padding:0 20px;
        font-size:10px
    }
    .topbar>div {
        gap:10px
    }
    .topbar>div:first-child {
        min-width:0;
        white-space:nowrap;
        overflow:hidden
    }
    .topbar>div:first-child>span:last-child {
        text-overflow:ellipsis;
        overflow:hidden
    }
    .admin-badge {
        font-size:9px;
        padding:3px 7px;
        white-space:nowrap
    }
    .page-content {
        padding:18px 18px 0
    }
    .library-hero {
        min-height:199px;
        padding:24px
    }
    .hero-copy {
        max-width:100%
    }
    .hero-copy h1 {
        font-size:34px
    }
    .hero-copy>p:not(.eyebrow) {
        font-size:11px;
        max-width:85%
    }
    .hero-copy .eyebrow {
        font-size:8px;
        letter-spacing:1.2px
    }
    .hero-art {
        right:-60px;
        opacity:.2;
        top:23px
    }
    .art-caption {
        display:none
    }
    .hero-meta {
        margin-top:19px;
        gap:16px;
        font-size:9px
    }
    .workspace-toolbar {
        margin:25px 0 15px;
        flex-direction:column;
        gap:15px
    }
    .workspace-toolbar p {
        max-width:none
    }
    .toolbar-actions {
        width:100%;
        max-width:none;
        justify-content:flex-start
    }
    .toolbar-actions .button {
        font-size:10px;
        min-height:36px
    }
    .toolbar-actions .icon-button {
        width:33px;
        height:36px
    }
    .rehearsal-grid {
        gap:17px
    }
    .track-panel {
        min-height:380px
    }
    .empty-state {
        padding-top:29px
    }
    .empty-state h3 {
        font-size:17px
    }
    .track-table th:first-child,.track-table td:first-child {
        padding-left:12px;
        width:45px
    }
    .key-column {
        display:none
    }
    .track-table th,.track-table td {
        padding-left:5px;
        padding-right:5px
    }
    .track-title-button strong {
        font-size:11px
    }
    .row-actions .icon-button {
        height:36px;
        width:28px
    }
    .track-table th:last-child,.track-table td:last-child {
        padding-right:8px;
        width:70px
    }
    .page-footer {
        font-size:8px;
        gap:10px
    }
    .player-bar {
        grid-template-columns:1fr;
        gap:8px;
        padding:11px 16px;
        min-height:154px
    }
    .now-playing {
        gap:10px
    }
    .player-art {
        width:34px;
        height:34px;
        border-radius:5px
    }
    .player-art svg {
        width:19px
    }
    .now-playing .eyebrow {
        display:none
    }
    .now-playing strong {
        margin:0;
        font-size:11px;
        max-width:75vw
    }
    .now-playing div>span:last-child {
        font-size:9px;
        margin-top:0
    }
    .playback {
        flex-wrap:wrap;
        gap:0
    }
    .transport audio {
        height:33px
    }
    .transport .icon-button {
        height:30px
    }
    .player-extras {
        gap:9px
    }
    .volume-control {
        margin-left:10px
    }
    .volume-control input {
        width:85px
    }
    .player-extras .icon-button {
        height:28px
    }
    .player-message {
        bottom:calc(100% + 3px);
        background:#0d0d11;
        font-size:9px;
        max-width:100%
    }
    .modal {
        padding:22px;
        max-height:calc(100dvh - 24px)
    }
    .modal-heading h2 {
        font-size:22px
    }
    .modal-description {
        font-size:11px
    }
    .form-columns {
        gap:10px
    }
    .image-modal {
        padding:16px
    }
    .notice {
        font-size:10px;
        line-height:1.7
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition:none!important;
        scroll-behavior:auto!important
    }
}

.standalone-page {
    max-width:620px;
    padding:70px 25px;
    margin:0 auto;
    text-align:center
}

.standalone-page>svg {
    color:var(--accent-readable);
    margin-bottom:24px
}

.standalone-page h1 {
    font-size:34px;
    margin:15px 0;
    font-weight:700;
    letter-spacing:0
}

.standalone-page>p:not(.eyebrow) {
    color:var(--muted);
    line-height:1.9;
    margin-bottom:28px
}

.standalone-page small {
    display:block;
    color:var(--muted);
    font-size:10px;
    margin-top:25px
}
