:root {
    --bm-accent: #d6ff45;
    --bm-accent-strong: #b8e72d;
    --bm-ink: #151714;
    --bm-muted: #686d66;
    --bm-surface: #ffffff;
    --bm-surface-soft: #f4f5f1;
    --bm-border: #dfe2da;
    --bm-sidebar: #171a18;
    --bm-sidebar-muted: #a4aaa3;
    --bm-danger: #b42318;
    color-scheme: light;
}

:root[data-bm-theme="dark"] {
    --bm-ink: #f2f4ef;
    --bm-muted: #aeb4ac;
    --bm-surface: #202421;
    --bm-surface-soft: #171a18;
    --bm-border: #373d38;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root[data-bm-theme="system"] {
        --bm-ink: #f2f4ef;
        --bm-muted: #aeb4ac;
        --bm-surface: #202421;
        --bm-surface-soft: #171a18;
        --bm-border: #373d38;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.bandmission-app-page { background: var(--bm-surface-soft); color: var(--bm-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
textarea, [contenteditable] { font: inherit; }
button, a, select, input { outline-offset: 3px; }
.bm-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.bm-skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); background: var(--bm-accent); color: #111; padding: 10px 14px; border-radius: 8px; }
.bm-skip-link:focus { transform: none; }
.bm-shell { min-height: 100dvh; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.bm-sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 28px; padding: 24px 18px; background: var(--bm-sidebar); color: #f7f9f5; }
.bm-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 19px; }
.bm-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--bm-accent); color: #161914; font-size: 12px; font-weight: 900; }
.bm-sidebar-label, .bm-context, .bm-eyebrow { display: block; color: var(--bm-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bm-sidebar-label { color: var(--bm-sidebar-muted); padding: 0 10px 7px; }
.bm-band-switcher { display: grid; gap: 5px; }
.bm-band-choice { width: 100%; display: grid; gap: 3px; border: 0; border-radius: 12px; background: transparent; color: #f7f9f5; padding: 10px; text-align: left; cursor: pointer; }
.bm-band-choice small { color: var(--bm-sidebar-muted); }
.bm-band-choice:hover, .bm-band-choice.is-active { background: #2a2e2a; }
.bm-band-choice.is-active { box-shadow: inset 3px 0 var(--bm-accent); }
.bm-nav { display: grid; }
.bm-nav-link { display: flex; align-items: center; gap: 10px; border-radius: 12px; color: #f7f9f5; padding: 11px 12px; text-decoration: none; }
.bm-nav-link.is-active { background: #2a2e2a; }
.bm-marketing-link { margin-top: auto; color: var(--bm-sidebar-muted); font-size: 13px; text-decoration: none; }
.bm-marketing-link:hover { color: #fff; }
.bm-sidebar-songs { min-height: 0; display: grid; gap: 7px; }
.bm-sidebar-section-title { display: flex; align-items: center; justify-content: space-between; }
.bm-sidebar-section-title .bm-sidebar-label { padding-bottom: 0; }
.bm-sidebar-section-title button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: #2a2e2a; color: #fff; cursor: pointer; }
.bm-sidebar-section-title button:hover { background: var(--bm-accent); color: #151714; }
.bm-sidebar-song-list { display: grid; gap: 2px; }
.bm-sidebar-song-list > small, .bm-more-songs { color: var(--bm-sidebar-muted); padding: 7px 10px; }
.bm-sidebar-song-list a { min-width: 0; display: flex; align-items: center; gap: 9px; border-radius: 9px; color: #dfe3dd; padding: 8px 10px; font-size: 13px; text-decoration: none; }
.bm-sidebar-song-list a > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-sidebar-song-list a:hover, .bm-sidebar-song-list a.is-active { background: #2a2e2a; color: #fff; }
.bm-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--bm-status-color, #6b7280); }
.bm-workspace { position: relative; min-width: 0; }
.bm-topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--bm-border); background: color-mix(in srgb, var(--bm-surface) 92%, transparent); padding: 14px clamp(20px, 4vw, 56px); }
.bm-topbar strong { display: block; margin-top: 3px; }
.bm-profile { display: flex; align-items: center; gap: 12px; }
.bm-search-button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--bm-border); border-radius: 999px; background: var(--bm-surface); color: var(--bm-ink); padding: 0 14px; cursor: pointer; }
.bm-search-button > span { font-size: 20px; line-height: 1; }
.bm-search-button > strong { margin: 0; font-size: 13px; }
.bm-search-button:hover, .bm-search-button.is-active { border-color: var(--bm-accent-strong); background: color-mix(in srgb, var(--bm-accent) 22%, var(--bm-surface)); }
.bm-profile select { min-height: 38px; border: 1px solid var(--bm-border); border-radius: 10px; background: var(--bm-surface); color: var(--bm-ink); padding: 0 34px 0 11px; }
.bm-notification-button { position: relative; width: 40px; height: 40px; border: 1px solid var(--bm-border); border-radius: 50%; background: var(--bm-surface); color: var(--bm-ink); cursor: pointer; font-size: 20px; }
.bm-notification-button > span { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: var(--bm-danger); color: #fff; padding: 0 5px; font-size: 10px; font-weight: 900; }
.bm-notification-panel { position: absolute; z-index: 20; top: 68px; right: clamp(18px, 4vw, 56px); width: min(390px, calc(100% - 36px)); max-height: min(560px, calc(100dvh - 100px)); overflow: auto; border: 1px solid var(--bm-border); border-radius: 16px; background: var(--bm-surface); box-shadow: 0 24px 70px rgba(0,0,0,.2); padding: 10px; }
.bm-notification-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px 12px; }
.bm-notification-head button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--bm-muted); cursor: pointer; font-size: 22px; }
.bm-notification-item { width: 100%; display: grid; gap: 4px; border: 0; border-radius: 11px; background: transparent; color: var(--bm-ink); padding: 12px; text-align: left; cursor: pointer; }
.bm-notification-item:hover { background: var(--bm-surface-soft); }
.bm-notification-item.is-unread { background: color-mix(in srgb, var(--bm-accent) 14%, var(--bm-surface)); }
.bm-notification-item span, .bm-notification-item small, .bm-notification-empty { color: var(--bm-muted); }
.bm-notification-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-notification-empty { margin: 10px; }
.bm-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--bm-ink); color: var(--bm-surface); font-size: 12px; font-weight: 900; }
.bm-main { width: min(1180px, 100%); margin: 0 auto; padding: clamp(36px, 6vw, 80px) clamp(20px, 4vw, 56px); }
.bm-main h1 { margin: 8px 0 12px; font-size: clamp(34px, 5vw, 64px); letter-spacing: -.045em; line-height: .98; }
.bm-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.bm-page-heading .bm-button { margin-bottom: 9px; }
.bm-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.bm-summary-grid article { display: grid; gap: 4px; border: 1px solid var(--bm-border); border-radius: 16px; background: var(--bm-surface); padding: 20px; }
.bm-summary-grid strong { font-size: 30px; letter-spacing: -.04em; }
.bm-summary-grid span { color: var(--bm-muted); font-size: 13px; }
.bm-song-section { margin-top: 52px; }
.bm-section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.bm-section-heading h2 { margin: 5px 0 0; font-size: 28px; }
.bm-song-list { overflow: hidden; border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface); }
.bm-song-row { min-height: 78px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 32px; align-items: center; gap: 14px; border-bottom: 1px solid var(--bm-border); color: var(--bm-ink); padding: 12px 18px; text-decoration: none; }
.bm-song-row:last-child { border-bottom: 0; }
.bm-song-row:hover { background: var(--bm-surface-soft); }
.bm-song-index { color: var(--bm-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.bm-song-title { min-width: 0; display: grid; gap: 4px; }
.bm-song-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-song-title small { color: var(--bm-muted); }
.bm-song-arrow { color: var(--bm-muted); font-size: 20px; }
.bm-status-pill { min-height: 27px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--bm-border); border-radius: 999px; background: var(--bm-surface); color: var(--bm-muted); padding: 3px 10px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.bm-status-pill > span { width: 8px; height: 8px; border-radius: 50%; background: var(--bm-status-color, #6b7280); }
.bm-zero { display: grid; justify-items: start; border: 1px dashed var(--bm-border); border-radius: 20px; background: var(--bm-surface); padding: clamp(28px, 6vw, 54px); }
.bm-zero > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--bm-accent) 35%, var(--bm-surface)); font-size: 24px; }
.bm-zero h3 { margin: 22px 0 7px; font-size: 24px; }
.bm-zero p { max-width: 520px; margin: 0 0 24px; color: var(--bm-muted); line-height: 1.55; }
.bm-search-page { display: grid; gap: 22px; }
.bm-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface); padding: 10px; }
.bm-search-form label, .bm-search-form input { width: 100%; }
.bm-search-form input { min-height: 48px; border: 0; border-radius: 11px; background: var(--bm-surface-soft); color: var(--bm-ink); padding: 0 15px; font-size: 17px; }
.bm-search-count { margin: -8px 0 0; color: var(--bm-muted); font-size: 13px; }
.bm-search-results { overflow: hidden; display: grid; border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface); }
.bm-search-result { width: 100%; display: grid; grid-template-columns: 112px minmax(0, 1fr) 28px; align-items: center; gap: 15px; border: 0; border-bottom: 1px solid var(--bm-border); background: transparent; color: var(--bm-ink); padding: 17px 18px; text-align: left; cursor: pointer; }
.bm-search-result:last-child { border-bottom: 0; }
.bm-search-result:hover { background: var(--bm-surface-soft); }
.bm-search-type { justify-self: start; border-radius: 999px; background: var(--bm-surface-soft); color: var(--bm-muted); padding: 5px 9px; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.bm-search-type-private_note { background: color-mix(in srgb, var(--bm-accent) 35%, var(--bm-surface)); color: var(--bm-ink); }
.bm-search-copy { min-width: 0; display: grid; gap: 4px; }
.bm-search-copy > span { overflow: hidden; color: var(--bm-muted); text-overflow: ellipsis; white-space: nowrap; }
.bm-search-copy small { color: var(--bm-muted); }
.bm-search-arrow { color: var(--bm-muted); font-size: 20px; }
.bm-search-state { border: 1px dashed var(--bm-border); border-radius: 16px; background: var(--bm-surface); color: var(--bm-muted); padding: 24px; }
.bm-search-state.is-error { border-color: color-mix(in srgb, var(--bm-danger) 35%, var(--bm-border)); color: var(--bm-danger); }
.bm-create-song { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(220px, 2fr) minmax(160px, 1fr) auto; align-items: end; gap: 14px; border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface); margin-top: 30px; padding: 20px; }
.bm-create-song h2 { margin: 5px 0 0; font-size: 20px; }
.bm-create-song label, .bm-detail-grid label { display: grid; gap: 7px; color: var(--bm-muted); font-size: 12px; font-weight: 800; }
.bm-create-song input, .bm-create-song select, .bm-detail-grid input, .bm-status-select select { min-height: 44px; border: 1px solid var(--bm-border); border-radius: 10px; background: var(--bm-surface); color: var(--bm-ink); padding: 0 12px; }
.bm-form-actions { display: flex; gap: 8px; }
.bm-button-secondary { border: 1px solid var(--bm-border); background: var(--bm-surface); color: var(--bm-ink); }
.bm-button-secondary:hover { background: var(--bm-surface-soft); }
.bm-song-detail { width: min(960px, 100%); margin: 0 auto; }
.bm-song-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 35px; }
.bm-back, .bm-link-button { border: 0; background: transparent; color: var(--bm-muted); padding: 4px 0; cursor: pointer; }
.bm-back:hover, .bm-link-button:hover { color: var(--bm-ink); }
.bm-save-state { color: var(--bm-muted); font-size: 12px; }
.bm-save-state[data-state="saving"]::before, .bm-save-state[data-state="pending"]::before { content: '●'; color: #d97706; margin-right: 6px; }
.bm-save-state[data-state="saved"]::before { content: '✓'; color: #16a34a; margin-right: 6px; }
.bm-save-state[data-state="error"] { color: var(--bm-danger); }
.bm-song-form { display: grid; gap: 18px; }
.bm-song-hero { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 10px; }
.bm-song-hero > div { flex: 1 1 auto; }
.bm-song-name { width: 100%; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--bm-ink); margin-top: 6px; padding: 0 0 6px; font-size: clamp(34px, 5vw, 62px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.bm-song-name:not([readonly]):focus { border-bottom-color: var(--bm-accent-strong); outline: 0; }
.bm-status-select select { min-width: 150px; }
.bm-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bm-editor-card { border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface); padding: clamp(20px, 4vw, 32px); }
.bm-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.bm-editor-heading h2 { margin: 4px 0 0; font-size: 24px; }
.bm-editor-card textarea { width: 100%; resize: vertical; border: 1px solid var(--bm-border); border-radius: 11px; background: var(--bm-surface-soft); color: var(--bm-ink); padding: 13px; line-height: 1.6; }
.bm-rich-toolbar { display: flex; gap: 5px; }
.bm-rich-toolbar button { width: 34px; height: 32px; border: 1px solid var(--bm-border); border-radius: 8px; background: var(--bm-surface); color: var(--bm-ink); cursor: pointer; }
.bm-rich-toolbar button:hover { background: var(--bm-surface-soft); }
.bm-rich-editor { min-height: 220px; border: 1px solid var(--bm-border); border-radius: 11px; background: var(--bm-surface-soft); padding: 16px; line-height: 1.75; }
.bm-rich-editor[contenteditable="true"]:focus { border-color: var(--bm-accent-strong); outline: 2px solid color-mix(in srgb, var(--bm-accent) 35%, transparent); }
.bm-rich-editor:empty::before { content: attr(data-placeholder); color: var(--bm-muted); }
.bm-chords { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.bm-private-note { border-color: color-mix(in srgb, var(--bm-accent-strong) 55%, var(--bm-border)); background: color-mix(in srgb, var(--bm-accent) 7%, var(--bm-surface)); }
.bm-private-note-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.bm-private-note-lock { border-radius: 999px; background: color-mix(in srgb, var(--bm-accent) 30%, var(--bm-surface)); color: var(--bm-ink); padding: 5px 9px; font-size: 11px; font-weight: 850; }
.bm-private-note-help { max-width: 680px; margin: -2px 0 12px; color: var(--bm-muted); font-size: 13px; line-height: 1.5; }
.bm-private-note .bm-rich-editor { min-height: 150px; background: var(--bm-surface); }
.bm-private-note-state { display: block; margin-top: 10px; color: var(--bm-muted); font-size: 12px; font-weight: 750; }
.bm-private-note-state[data-state="pending"], .bm-private-note-state[data-state="saving"] { color: #8a5b00; }

.bm-public-page-settings { display: grid; gap: 28px; }
.bm-public-page-form { display: grid; gap: 22px; }
.bm-public-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bm-public-page-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
.bm-public-page-form input, .bm-public-page-form textarea, .bm-public-page-form select { width: 100%; }
.bm-public-toggle { grid-template-columns: auto 1fr; align-items: flex-start; padding: 16px; border: 1px solid var(--bm-border); border-radius: 14px; background: var(--bm-surface-soft); }
.bm-public-toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--bm-accent); }
.bm-public-toggle span { display: grid; gap: 4px; }
.bm-public-toggle small, .bm-public-track small { color: var(--bm-muted); font-weight: 500; }
.bm-input-prefix { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--bm-border); border-radius: 10px; background: var(--bm-surface); }
.bm-input-prefix small { padding: 0 0 0 12px; color: var(--bm-muted); white-space: nowrap; }
.bm-input-prefix input { border: 0; box-shadow: none; }
.bm-public-tracks { display: grid; border-top: 1px solid var(--bm-border); }
.bm-public-track { grid-template-columns: minmax(180px, 1fr) minmax(240px, 1fr); align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--bm-border); }
.bm-public-track > span { display: grid; gap: 4px; }
.bm-public-save { position: sticky; bottom: 18px; z-index: 4; display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 14px; border: 1px solid var(--bm-border); border-radius: 14px; background: color-mix(in srgb, var(--bm-surface) 92%, transparent); backdrop-filter: blur(12px); box-shadow: 0 16px 42px rgba(18, 22, 17, .12); }
.bm-public-save span { color: var(--bm-muted); font-size: 13px; }

@media (max-width: 760px) {
    .bm-public-grid, .bm-public-track { grid-template-columns: 1fr; }
    .bm-public-page-settings > .bm-page-heading { align-items: flex-start; flex-direction: column; }
    .bm-public-page-settings > .bm-page-heading .bm-button { min-width: 0; max-width: 100%; overflow: visible; white-space: normal; }
    .bm-public-save { bottom: 10px; }
    .bm-input-prefix { align-items: stretch; flex-direction: column; }
    .bm-input-prefix small { padding: 10px 12px 0; }
}
.bm-private-note-state[data-state="error"] { color: var(--bm-danger); }
.bm-danger-actions { display: flex; justify-content: flex-end; gap: 18px; padding: 14px 0; }
.bm-link-button.is-danger { color: var(--bm-danger); }
.bm-intro, .bm-onboarding > p { max-width: 700px; color: var(--bm-muted); font-size: 18px; line-height: 1.65; }
.bm-foundation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 42px; }
.bm-foundation-card { min-height: 190px; border: 1px solid var(--bm-border); border-radius: 20px; background: var(--bm-surface); padding: 24px; }
.bm-foundation-card h2 { margin: 24px 0 8px; font-size: 21px; }
.bm-foundation-card p { margin: 0; color: var(--bm-muted); line-height: 1.55; }
.bm-status { display: inline-flex; border-radius: 999px; background: var(--bm-surface-soft); color: var(--bm-muted); padding: 5px 9px; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.bm-status.is-ready { background: color-mix(in srgb, var(--bm-accent) 28%, var(--bm-surface)); color: var(--bm-ink); }
.bm-onboarding { width: min(720px, 100%); border: 1px solid var(--bm-border); border-radius: 24px; background: var(--bm-surface); padding: clamp(26px, 5vw, 52px); }
.bm-onboarding h1 { font-size: clamp(32px, 5vw, 52px); }
.bm-setup-form { display: grid; gap: 18px; margin-top: 34px; }
.bm-setup-form label { display: grid; gap: 7px; font-weight: 750; }
.bm-setup-form input { width: 100%; min-height: 48px; border: 1px solid var(--bm-border); border-radius: 12px; background: var(--bm-surface); color: var(--bm-ink); padding: 0 14px; }
.bm-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: var(--bm-accent); color: #151714; padding: 0 18px; font-weight: 850; cursor: pointer; }
.bm-button:hover { background: var(--bm-accent-strong); }
.bm-button:disabled { cursor: wait; opacity: .65; }
.bm-empty, .bm-fatal { width: min(650px, calc(100% - 40px)); margin: 10vh auto; border: 1px solid var(--bm-border); border-radius: 22px; background: var(--bm-surface); padding: 36px; }
.bm-empty h1, .bm-fatal h1 { margin-top: 0; }
.bm-loading { min-height: 100dvh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--bm-muted); }
.bm-spinner { width: 22px; height: 22px; border: 3px solid var(--bm-border); border-top-color: var(--bm-accent-strong); border-radius: 50%; animation: bm-spin .8s linear infinite; }
@keyframes bm-spin { to { transform: rotate(360deg); } }

.bm-members-page { width: min(980px, 100%); margin: 0 auto; }
.bm-invite-form { display: grid; grid-template-columns: minmax(210px, 1.2fr) minmax(230px, 1.5fr) minmax(150px, .8fr) auto; align-items: end; gap: 14px; border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface); margin-top: 36px; padding: 20px; }
.bm-invite-form h2 { margin: 5px 0 0; font-size: 20px; }
.bm-invite-form label { display: grid; gap: 7px; color: var(--bm-muted); font-size: 12px; font-weight: 800; }
.bm-invite-form input, .bm-invite-form select, .bm-member-row select, .bm-invite-result input { min-height: 44px; border: 1px solid var(--bm-border); border-radius: 10px; background: var(--bm-surface); color: var(--bm-ink); padding: 0 12px; }
.bm-invite-result { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(260px, 2fr) auto; align-items: center; gap: 12px; border: 1px solid color-mix(in srgb, #16a34a 45%, var(--bm-border)); border-radius: 16px; background: color-mix(in srgb, #16a34a 8%, var(--bm-surface)); margin-top: 14px; padding: 16px; }
.bm-invite-result > div { display: grid; gap: 3px; }
.bm-invite-result span { color: var(--bm-muted); font-size: 12px; line-height: 1.4; }
.bm-member-section { margin-top: 46px; }
.bm-member-list { overflow: hidden; border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface); }
.bm-member-row { min-height: 76px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--bm-border); padding: 12px 16px; }
.bm-member-row:last-child { border-bottom: 0; }
.bm-member-row > div:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.bm-member-row > div:nth-child(2) > strong, .bm-member-row > div:nth-child(2) > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-member-row > div:nth-child(2) > small, .bm-member-row strong small { color: var(--bm-muted); font-weight: 500; }
.bm-member-avatar { width: 42px; height: 42px; overflow: hidden; display: grid; place-items: center; border-radius: 50%; background: var(--bm-surface-soft); color: var(--bm-muted); }
.bm-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bm-zero-compact { padding: 22px; }
.bm-zero-compact p { margin: 0; }
.bm-invite-page { min-height: 100dvh; display: grid; place-items: center; padding: 30px 20px; }
.bm-invite-page .bm-onboarding { margin: 0; }
.bm-invite-brand { width: fit-content; margin-bottom: 38px; }
.bm-invite-page .bm-eyebrow { display: block; margin-top: 6px; }
.bm-invite-page .bm-setup-form { margin-top: 26px; }
.bm-invite-page .bm-setup-form small, .bm-invite-expiry { color: var(--bm-muted); }
.bm-invite-expiry { display: block; margin-top: 24px; font-size: 12px; }
.bm-invite-warning { display: grid; gap: 14px; margin-top: 24px; }
.bm-invite-warning p { margin: 0; color: var(--bm-danger); line-height: 1.55; }

.bm-nav-link small { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: var(--bm-accent); color: #151714; margin-left: auto; padding: 0 5px; font-size: 10px; font-weight: 900; }
.bm-sidebar-song-list a > small { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 999px; background: #363b36; color: #fff; margin-left: auto; padding: 0 5px; font-size: 10px; }
.bm-dashboard-todos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.bm-dashboard-todos .bm-section-heading { min-height: 54px; }
.bm-dashboard-todos .bm-section-heading a { color: var(--bm-muted); font-size: 12px; font-weight: 800; text-decoration: none; }
.bm-todo-section { margin-top: 18px; }
.bm-todo-section .bm-editor-heading h2 small { display: inline-grid; min-width: 24px; height: 24px; place-items: center; border-radius: 999px; background: var(--bm-surface-soft); color: var(--bm-muted); font-size: 11px; vertical-align: middle; }
.bm-todo-form { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(145px, .8fr) minmax(220px, 1.3fr) auto; align-items: end; gap: 12px; border: 1px solid var(--bm-border); border-radius: 13px; background: var(--bm-surface-soft); margin-bottom: 14px; padding: 14px; }
.bm-todo-form.is-editing { margin: 0 14px 14px; background: var(--bm-surface); }
.bm-todo-form > label, .bm-todo-form fieldset { min-width: 0; display: grid; gap: 7px; border: 0; color: var(--bm-muted); margin: 0; padding: 0; font-size: 11px; font-weight: 800; }
.bm-todo-form legend { margin-bottom: 7px; padding: 0; }
.bm-todo-form input[type="text"], .bm-todo-form input[type="date"], .bm-todo-form input:not([type]) { width: 100%; min-height: 42px; border: 1px solid var(--bm-border); border-radius: 9px; background: var(--bm-surface); color: var(--bm-ink); padding: 0 10px; }
.bm-todo-assignee-choices { max-height: 84px; display: flex; flex-wrap: wrap; gap: 5px; overflow: auto; }
.bm-todo-assignee-choices label { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--bm-border); border-radius: 999px; background: var(--bm-surface); color: var(--bm-ink); padding: 5px 8px; cursor: pointer; font-size: 11px; font-weight: 700; }
.bm-todo-assignee-choices input { accent-color: var(--bm-accent-strong); }
.bm-todo-form .bm-button { min-height: 42px; padding: 0 12px; }
.bm-todo-list, .bm-todo-overview { display: grid; gap: 8px; }
.bm-todo-overview-large { margin-top: 32px; }
.bm-todo { overflow: hidden; border: 1px solid var(--bm-border); border-radius: 12px; background: var(--bm-surface); }
.bm-todo[draggable="true"] { cursor: grab; }
.bm-todo.is-dragging { opacity: .45; }
.bm-todo.is-completed { opacity: .62; }
.bm-todo.is-completed .bm-todo-title strong { text-decoration: line-through; }
.bm-todo.is-overdue { border-color: color-mix(in srgb, var(--bm-danger) 45%, var(--bm-border)); }
.bm-todo-main { min-height: 58px; display: grid; grid-template-columns: 22px 28px minmax(150px, 1fr) auto auto; align-items: center; gap: 9px; padding: 9px 12px; }
.bm-todo-overview .bm-todo-main { grid-template-columns: 28px minmax(130px, 1fr) auto; }
.bm-todo-drag { color: var(--bm-muted); font-size: 14px; letter-spacing: -3px; }
.bm-todo-check { position: relative; width: 24px; height: 24px; display: block; }
.bm-todo-check input { position: absolute; opacity: 0; }
.bm-todo-check span { width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--bm-border); border-radius: 7px; background: var(--bm-surface); cursor: pointer; }
.bm-todo-check input:checked + span { border-color: var(--bm-accent-strong); background: var(--bm-accent); }
.bm-todo-check input:checked + span::after { content: '✓'; color: #151714; font-size: 13px; font-weight: 900; }
.bm-todo-check input:focus-visible + span { outline: 2px solid var(--bm-ink); outline-offset: 2px; }
.bm-todo-check input:disabled + span { cursor: default; }
.bm-todo-title { min-width: 0; display: grid; gap: 3px; border: 0; background: transparent; color: var(--bm-ink); padding: 0; text-align: left; cursor: pointer; }
.bm-todo-title strong, .bm-todo-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-todo-title small { color: var(--bm-muted); font-size: 11px; font-weight: 500; }
.bm-todo-meta { display: flex; align-items: center; gap: 10px; color: var(--bm-muted); font-size: 11px; }
.bm-todo.is-overdue time { color: var(--bm-danger); font-weight: 800; }
.bm-todo-assignees { display: flex; align-items: center; }
.bm-todo-assignees > span { width: 28px; height: 28px; overflow: hidden; display: grid; place-items: center; border: 2px solid var(--bm-surface); border-radius: 50%; background: var(--bm-surface-soft); color: var(--bm-muted); margin-left: -6px; font-size: 9px; font-weight: 900; }
.bm-todo-assignees > span:first-child { margin-left: 0; }
.bm-todo-assignees img { width: 100%; height: 100%; object-fit: cover; }
.bm-todo-actions { display: flex; align-items: center; gap: 7px; }
.bm-todo-actions button { min-height: 28px; border: 0; border-radius: 7px; background: var(--bm-surface-soft); color: var(--bm-muted); padding: 0 7px; cursor: pointer; font-size: 10px; font-weight: 800; }
.bm-todo-actions button:hover { color: var(--bm-ink); }
.bm-todo-actions button:disabled { cursor: default; opacity: .35; }
.bm-todo-actions button.is-danger { color: var(--bm-danger); }
.bm-todo-empty { border: 1px dashed var(--bm-border); border-radius: 12px; color: var(--bm-muted); padding: 18px; font-size: 13px; }
.bm-my-todos { width: min(980px, 100%); margin: 0 auto; }

.bm-dashboard-events { margin-top: 48px; }
.bm-dashboard-events .bm-section-heading a { color: var(--bm-muted); font-size: 12px; font-weight: 800; text-decoration: none; }
.bm-calendar-page { width: min(1080px, 100%); margin: 0 auto; }
.bm-calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 32px 0 22px; }
.bm-calendar-views, .bm-calendar-period { display: flex; align-items: center; gap: 5px; }
.bm-calendar-views, .bm-calendar-period > button { border: 1px solid var(--bm-border); border-radius: 12px; background: var(--bm-surface); padding: 4px; }
.bm-calendar-views button, .bm-calendar-period button { min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--bm-muted); padding: 0 11px; cursor: pointer; font-size: 12px; font-weight: 800; }
.bm-calendar-views button:hover, .bm-calendar-views button.is-active, .bm-calendar-period button:hover { background: var(--bm-surface-soft); color: var(--bm-ink); }
.bm-calendar-views button.is-active { box-shadow: inset 0 0 0 1px var(--bm-border); }
.bm-calendar-period { flex-wrap: wrap; justify-content: flex-end; }
.bm-calendar-period > button { min-width: 38px; }
.bm-calendar-period strong { min-width: 180px; margin-left: 8px; text-align: right; }
.bm-event-list { display: grid; gap: 10px; }
.bm-event-list-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bm-event-card { --bm-event-color: #6b7280; width: 100%; min-height: 82px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 24px; align-items: center; gap: 14px; border: 1px solid var(--bm-border); border-left: 4px solid var(--bm-event-color); border-radius: 14px; background: var(--bm-surface); color: var(--bm-ink); padding: 10px 14px 10px 10px; text-align: left; cursor: pointer; }
.bm-event-card:hover { background: var(--bm-surface-soft); }
.bm-event-date { min-height: 58px; display: grid; place-content: center; border-radius: 10px; background: color-mix(in srgb, var(--bm-event-color) 12%, var(--bm-surface)); text-align: center; }
.bm-event-date strong { font-size: 23px; letter-spacing: -.04em; line-height: 1; }
.bm-event-date small { color: var(--bm-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.bm-event-copy { min-width: 0; display: grid; gap: 3px; }
.bm-event-copy > strong, .bm-event-copy > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-event-copy > small { color: var(--bm-muted); }
.bm-event-type { color: var(--bm-event-color); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.bm-event-rehearsal { --bm-event-color: #7c3aed; }
.bm-event-recording { --bm-event-color: #2563eb; }
.bm-event-performance { --bm-event-color: #d97706; }
.bm-event-meeting { --bm-event-color: #16a34a; }
.bm-event-other { --bm-event-color: #6b7280; }
.bm-event-form { border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface); margin-bottom: 22px; padding: clamp(18px, 4vw, 28px); }
.bm-event-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bm-event-form label { display: grid; gap: 7px; color: var(--bm-muted); font-size: 11px; font-weight: 800; }
.bm-event-form input, .bm-event-form select, .bm-event-form textarea { width: 100%; min-height: 44px; border: 1px solid var(--bm-border); border-radius: 10px; background: var(--bm-surface-soft); color: var(--bm-ink); padding: 10px 12px; }
.bm-event-form textarea { resize: vertical; }
.bm-event-form .bm-event-note, .bm-event-form .bm-event-public { grid-column: 1 / -1; }
.bm-event-form .bm-event-public { display: flex; align-items: center; gap: 9px; color: var(--bm-ink); }
.bm-event-public input { width: 18px; min-height: 18px; accent-color: var(--bm-accent-strong); }
.bm-event-form .bm-form-actions { justify-content: flex-end; margin-top: 18px; }
.bm-event-detail { --bm-event-color: #6b7280; display: flex; align-items: start; justify-content: space-between; gap: 24px; border: 1px solid var(--bm-border); border-left: 5px solid var(--bm-event-color); border-radius: 16px; background: var(--bm-surface); margin-bottom: 22px; padding: 22px; }
.bm-event-detail h2 { margin: 5px 0 10px; font-size: 28px; }
.bm-event-detail p { margin: 5px 0; color: var(--bm-muted); line-height: 1.55; }
.bm-event-detail .bm-event-note-copy { color: var(--bm-ink); margin-top: 15px; }
.bm-event-detail-actions { display: flex; align-items: center; gap: 7px; }
.bm-event-detail-actions button { min-height: 34px; border: 0; border-radius: 8px; background: var(--bm-surface-soft); color: var(--bm-muted); padding: 0 10px; cursor: pointer; font-size: 11px; font-weight: 800; }
.bm-event-detail-actions button.is-danger { color: var(--bm-danger); }
.bm-month-calendar { overflow: hidden; border: 1px solid var(--bm-border); border-radius: 16px; background: var(--bm-surface); }
.bm-calendar-weekdays, .bm-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bm-calendar-weekdays { border-bottom: 1px solid var(--bm-border); background: var(--bm-surface-soft); }
.bm-calendar-weekdays strong { padding: 10px; color: var(--bm-muted); font-size: 10px; letter-spacing: .05em; text-align: center; text-transform: uppercase; }
.bm-calendar-day { min-width: 0; min-height: 126px; border-right: 1px solid var(--bm-border); border-bottom: 1px solid var(--bm-border); padding: 8px; }
.bm-calendar-day:nth-child(7n) { border-right: 0; }
.bm-calendar-day:nth-last-child(-n+7) { border-bottom: 0; }
.bm-calendar-day > time { width: 27px; height: 27px; display: grid; place-items: center; margin-bottom: 5px; color: var(--bm-muted); font-size: 11px; font-weight: 850; }
.bm-calendar-day.is-today > time { border-radius: 50%; background: var(--bm-accent); color: #151714; }
.bm-calendar-day.is-outside { background: color-mix(in srgb, var(--bm-surface-soft) 60%, transparent); opacity: .6; }
.bm-calendar-event-pill { --bm-event-color: #6b7280; width: 100%; overflow: hidden; display: block; border: 0; border-left: 3px solid var(--bm-event-color); border-radius: 5px; background: color-mix(in srgb, var(--bm-event-color) 10%, var(--bm-surface)); color: var(--bm-ink); margin: 3px 0; padding: 5px 6px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-size: 10px; }
.bm-calendar-event-pill span { color: var(--bm-muted); margin-right: 4px; }
.bm-calendar-day > small { color: var(--bm-muted); font-size: 9px; }
.bm-week-calendar { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; border: 1px solid var(--bm-border); border-radius: 16px; background: var(--bm-surface); }
.bm-week-day { min-height: 420px; border-right: 1px solid var(--bm-border); padding: 10px; }
.bm-week-day:last-child { border-right: 0; }
.bm-week-day > header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--bm-border); margin-bottom: 10px; padding: 3px 3px 10px; }
.bm-week-day > header span { color: var(--bm-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.bm-week-day > header strong { width: 28px; height: 28px; display: grid; place-items: center; }
.bm-week-day.is-today > header strong { border-radius: 50%; background: var(--bm-accent); color: #151714; }
.bm-week-event { --bm-event-color: #6b7280; width: 100%; display: grid; gap: 3px; border: 0; border-left: 3px solid var(--bm-event-color); border-radius: 7px; background: color-mix(in srgb, var(--bm-event-color) 10%, var(--bm-surface)); color: var(--bm-ink); margin-bottom: 7px; padding: 8px; text-align: left; cursor: pointer; }
.bm-week-event small, .bm-week-event span, .bm-week-empty { color: var(--bm-muted); font-size: 9px; }
.bm-year-calendar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bm-year-month { min-height: 160px; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 4px 12px; border: 1px solid var(--bm-border); border-radius: 14px; background: var(--bm-surface); color: var(--bm-ink); padding: 16px; text-align: left; cursor: pointer; }
.bm-year-month:hover { background: var(--bm-surface-soft); }
.bm-year-month > span { font-weight: 850; }
.bm-year-month > strong { grid-row: 1 / span 2; grid-column: 2; font-size: 28px; }
.bm-year-month > small { color: var(--bm-muted); }
.bm-year-month > em { --bm-event-color: #6b7280; grid-column: 1 / -1; overflow: hidden; border-left: 3px solid var(--bm-event-color); color: var(--bm-muted); margin-top: 5px; padding-left: 7px; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.bm-media-section { margin-top: 18px; }
.bm-upload-button { position: relative; overflow: hidden; }
.bm-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bm-storage-notice { display: grid; gap: 4px; border: 1px solid color-mix(in srgb, #d97706 35%, var(--bm-border)); border-radius: 12px; background: color-mix(in srgb, #f59e0b 9%, var(--bm-surface)); padding: 14px 16px; }
.bm-storage-notice span { color: var(--bm-muted); font-size: 13px; line-height: 1.5; }
.bm-upload-status { min-height: 20px; color: var(--bm-muted); margin: 10px 0; font-size: 12px; }
.bm-upload-status[data-state="error"] { color: var(--bm-danger); }
.bm-media-list { display: grid; gap: 12px; }
.bm-media-item { overflow: hidden; border: 1px solid var(--bm-border); border-radius: 14px; background: var(--bm-surface-soft); }
.bm-media-main { min-height: 72px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 12px 14px; }
.bm-media-main > div { min-width: 0; display: grid; gap: 4px; }
.bm-media-main strong, .bm-media-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-media-main small { color: var(--bm-muted); }
.bm-media-play { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--bm-ink); color: var(--bm-surface); font-size: 13px; font-weight: 900; cursor: pointer; }
.bm-media-play:disabled { cursor: wait; opacity: .45; }
.bm-preferred { border-radius: 999px; background: color-mix(in srgb, var(--bm-accent) 35%, var(--bm-surface)); padding: 6px 10px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.bm-media-player:empty { display: none; }
.bm-media-player { border-top: 1px solid var(--bm-border); padding: 12px 14px; }
.bm-media-player audio, .bm-media-player video, .bm-media-player iframe { width: 100%; }
.bm-media-player video { max-height: 520px; background: #000; border-radius: 10px; }
.bm-media-player iframe { min-height: 520px; border: 0; border-radius: 10px; background: #fff; }
.bm-media-meta { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(220px, 2fr); gap: 12px; border-top: 1px solid var(--bm-border); padding: 14px; }
.bm-media-meta label { display: grid; gap: 6px; color: var(--bm-muted); font-size: 11px; font-weight: 800; }
.bm-media-meta input, .bm-media-meta textarea { width: 100%; border: 1px solid var(--bm-border); border-radius: 9px; background: var(--bm-surface); color: var(--bm-ink); padding: 9px 10px; }
.bm-media-meta textarea { resize: vertical; }
.bm-media-actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.bm-media-actions .bm-button { min-height: 38px; padding: 0 14px; }
.bm-media-share { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--bm-border); background: var(--bm-surface); padding: 14px; }
.bm-media-share > div:first-child { min-width: 0; display: grid; gap: 4px; }
.bm-media-share small, .bm-share-status { color: var(--bm-muted); font-size: 12px; line-height: 1.45; }
.bm-media-share.is-error .bm-share-status { color: var(--bm-danger); }
.bm-media-share-copy { min-width: 0; flex: 1 1 auto; }
.bm-media-share-copy label { min-width: 0; display: grid; gap: 6px; color: var(--bm-muted); font-size: 11px; font-weight: 800; }
.bm-media-share-copy input { width: 100%; min-height: 40px; border: 1px solid var(--bm-border); border-radius: 9px; background: var(--bm-surface-soft); color: var(--bm-ink); padding: 0 10px; font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.bm-media-share-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 13px; }
.bm-media-share-actions .bm-button, .bm-media-share > .bm-button { min-height: 38px; padding: 0 13px; }
.bm-media-zero { display: flex; align-items: center; gap: 15px; border: 1px dashed var(--bm-border); border-radius: 14px; padding: 20px; }
.bm-media-zero > span { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--bm-surface-soft); }
.bm-media-zero p { margin: 4px 0 0; color: var(--bm-muted); line-height: 1.5; }

.bm-comments { border-top: 1px solid var(--bm-border); padding: 18px 14px 14px; }
.bm-song-detail > .bm-comments { margin-top: 18px; border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface); padding: clamp(20px, 4vw, 32px); }
.bm-comments-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.bm-comments-head > span { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: var(--bm-surface-soft); color: var(--bm-muted); font-size: 11px; font-weight: 850; }
.bm-comment-list { display: grid; gap: 10px; }
.bm-comment-empty { color: var(--bm-muted); margin: 4px 0 14px; }
.bm-comment { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; gap: 10px; }
.bm-comment.is-reply { margin-left: 44px; }
.bm-comment-avatar { width: 34px; height: 34px; overflow: hidden; display: grid; place-items: center; border-radius: 50%; background: var(--bm-border); }
.bm-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bm-comment-content { min-width: 0; border-radius: 12px; background: var(--bm-surface); padding: 10px 12px; }
.bm-song-detail > .bm-comments .bm-comment-content { background: var(--bm-surface-soft); }
.bm-comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bm-comment-meta small { color: var(--bm-muted); }
.bm-comment-content p { margin: 7px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.bm-comment-timecode { border: 0; border-radius: 999px; background: color-mix(in srgb, var(--bm-accent) 30%, var(--bm-surface)); color: var(--bm-ink); padding: 3px 7px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 850; }
.bm-comment-delete { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--bm-muted); cursor: pointer; }
.bm-comment-delete:hover { background: var(--bm-surface); color: var(--bm-danger); }
.bm-comment-form { display: grid; gap: 8px; margin-top: 14px; }
.bm-comment-form textarea { width: 100%; resize: vertical; border: 1px solid var(--bm-border); border-radius: 11px; background: var(--bm-surface); color: var(--bm-ink); padding: 11px 12px; line-height: 1.5; }
.bm-song-detail > .bm-comments .bm-comment-form textarea { background: var(--bm-surface-soft); }
.bm-comment-tools, .bm-comment-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.bm-mention-list { display: flex; flex-wrap: wrap; gap: 5px; }
.bm-mention-list button { border: 0; border-radius: 999px; background: var(--bm-surface); color: var(--bm-muted); padding: 5px 8px; cursor: pointer; font-size: 11px; }
.bm-song-detail > .bm-comments .bm-mention-list button { background: var(--bm-surface-soft); }
.bm-comment-actions { justify-content: flex-end; margin-left: auto; }
.bm-comment-actions .bm-button { min-height: 36px; padding: 0 12px; }
.bm-comment-actions [data-timecode-label] { color: var(--bm-muted); font-size: 12px; font-weight: 800; }

@media (max-width: 760px) {
    .bm-shell { grid-template-columns: 1fr; }
    .bm-sidebar { position: static; min-width: 0; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 14px 16px; }
    .bm-brand { grid-column: 1; }
    .bm-band-switcher { grid-column: 1 / -1; display: flex; overflow-x: auto; }
    .bm-band-switcher .bm-sidebar-label { display: none; }
    .bm-band-choice { min-width: 160px; }
    .bm-nav { grid-column: 2; grid-row: 1; display: flex; }
    .bm-nav-link { font-size: 0; }
    .bm-nav-link span { font-size: 20px; }
    .bm-marketing-link { display: none; }
    .bm-sidebar-songs { grid-column: 1 / -1; }
    .bm-sidebar-song-list { display: flex; overflow-x: auto; }
    .bm-sidebar-song-list a { flex: 0 0 auto; max-width: 210px; }
    .bm-more-songs { display: none; }
    .bm-topbar { min-height: 68px; padding: 12px 18px; }
    .bm-topbar > div:first-child { min-width: 0; }
    .bm-topbar > div:first-child .bm-context { display: none; }
    .bm-topbar > div:first-child strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bm-profile { gap: 8px; }
    .bm-search-button { width: 40px; padding: 0; justify-content: center; }
    .bm-search-button > strong { display: none; }
    .bm-profile select { width: 48px; color: transparent; }
    .bm-foundation-grid { grid-template-columns: 1fr; }
    .bm-page-heading { align-items: start; }
    .bm-page-heading .bm-button { min-width: 46px; overflow: hidden; white-space: nowrap; }
    .bm-summary-grid { grid-template-columns: 1fr 1fr; }
    .bm-dashboard-todos { grid-template-columns: 1fr; }
    .bm-create-song { grid-template-columns: 1fr; }
    .bm-invite-form, .bm-invite-result { grid-template-columns: 1fr; }
    .bm-member-row { grid-template-columns: 42px minmax(0, 1fr); }
    .bm-member-row > label, .bm-member-row > .bm-status, .bm-member-row > .bm-link-button { grid-column: 2; justify-self: start; }
    .bm-song-row { grid-template-columns: 28px minmax(0, 1fr) 24px; padding: 11px 13px; }
    .bm-song-row .bm-status-pill { grid-column: 2; justify-self: start; }
    .bm-song-row .bm-song-arrow { grid-column: 3; grid-row: 1 / span 2; }
    .bm-song-hero { align-items: start; flex-direction: column; }
    .bm-status-select, .bm-status-select select { width: 100%; }
    .bm-detail-grid { grid-template-columns: 1fr 1fr; }
    .bm-detail-grid label:last-child { grid-column: 1 / -1; }
    .bm-editor-heading { align-items: start; flex-direction: column; }
    .bm-media-main { grid-template-columns: 42px minmax(0, 1fr); }
    .bm-preferred { grid-column: 2; justify-self: start; }
    .bm-media-meta { grid-template-columns: 1fr; }
    .bm-media-actions { grid-column: 1; align-items: flex-start; flex-direction: column; }
    .bm-media-share { align-items: stretch; flex-direction: column; }
    .bm-media-share-actions { align-items: flex-start; flex-direction: column; }
    .bm-media-share > .bm-button { width: 100%; }
    .bm-media-player iframe { min-height: 380px; }
    .bm-comment-tools, .bm-comment-actions { align-items: flex-start; flex-direction: column; }
    .bm-comment-actions { margin-left: 0; }
    .bm-comment.is-reply { margin-left: 22px; }
    .bm-danger-actions { align-items: flex-start; flex-direction: column; }
    .bm-todo-form { grid-template-columns: 1fr; }
    .bm-todo-form.is-editing { margin: 0 9px 9px; }
    .bm-todo-main { grid-template-columns: 18px 26px minmax(0, 1fr); align-items: start; }
    .bm-todo-main .bm-todo-meta, .bm-todo-main .bm-todo-actions { grid-column: 3; justify-self: start; }
    .bm-todo-overview .bm-todo-main { grid-template-columns: 26px minmax(0, 1fr); }
    .bm-todo-overview .bm-todo-main .bm-todo-meta { grid-column: 2; }
    .bm-todo-actions { flex-wrap: wrap; }
    .bm-event-list-compact { grid-template-columns: 1fr; }
    .bm-search-result { grid-template-columns: minmax(0, 1fr) 24px; gap: 10px; padding: 15px; }
    .bm-search-type { grid-column: 1 / -1; }
    .bm-search-copy > span { white-space: normal; }
    .bm-private-note-tools { align-items: flex-start; flex-direction: column; }
    .bm-calendar-page > .bm-page-heading { flex-direction: column; }
    .bm-calendar-page > .bm-page-heading .bm-button { min-width: 0; overflow: visible; }
    .bm-calendar-toolbar { align-items: stretch; flex-direction: column; }
    .bm-calendar-period { justify-content: flex-start; }
    .bm-calendar-period strong { min-width: 0; margin-left: auto; }
    .bm-event-form-grid { grid-template-columns: 1fr; }
    .bm-event-form .bm-event-note, .bm-event-form .bm-event-public { grid-column: 1; }
    .bm-event-detail { flex-direction: column; }
    .bm-event-detail-actions { width: 100%; justify-content: flex-end; }
    .bm-month-calendar { overflow-x: auto; }
    .bm-calendar-weekdays, .bm-calendar-days { min-width: 720px; }
    .bm-year-calendar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .bm-brand strong { display: none; }
    .bm-calendar-views { width: 100%; }
    .bm-calendar-views button { flex: 1 1 0; padding: 0 6px; }
    .bm-calendar-period strong { width: 100%; order: -1; margin: 0 0 6px; text-align: left; }
    .bm-search-form { grid-template-columns: 1fr; }
    .bm-search-form .bm-button { width: 100%; }
    .bm-year-calendar { grid-template-columns: 1fr; }
}

/* 1.1 visual language — aligned with the approved BandMission prototype. */
:root {
    --bm-accent: #ff5d46;
    --bm-accent-strong: #e64d39;
    --bm-lime: #c9f27b;
    --bm-ink: #18201c;
    --bm-muted: #66706a;
    --bm-surface: #ffffff;
    --bm-surface-soft: #f4f6f3;
    --bm-surface-raised: rgba(255,255,255,.88);
    --bm-border: rgba(24,32,28,.11);
    --bm-sidebar: #17221c;
    --bm-shadow: 0 18px 55px rgba(30,43,36,.10);
    --bm-shadow-small: 0 6px 20px rgba(30,43,36,.08);
}
:root[data-bm-theme="dark"] { --bm-surface-raised: rgba(27,33,29,.9); --bm-border: rgba(255,255,255,.10); --bm-shadow: 0 20px 60px rgba(0,0,0,.28); }
@media (prefers-color-scheme: dark) { :root[data-bm-theme="system"] { --bm-surface-raised: rgba(27,33,29,.9); --bm-border: rgba(255,255,255,.10); --bm-shadow: 0 20px 60px rgba(0,0,0,.28); } }
body.bandmission-app-page { background: var(--bm-surface-soft); }
.bm-shell { grid-template-columns: 266px minmax(0,1fr); }
.bm-sidebar { gap: 20px; padding: 22px 16px; box-shadow: 8px 0 34px rgba(15,24,19,.07); }
.bm-brand-mark { position: relative; overflow: hidden; background: radial-gradient(circle at 77% 23%,var(--bm-accent) 0 2.5px,transparent 3px),#17221c; color: #fff; border: 1px solid rgba(255,255,255,.15); }
.bm-brand-mark::after { content: ''; position: absolute; width: 29px; height: 12px; border: 2px solid var(--bm-lime); border-radius: 50%; transform: rotate(-32deg); }
.bm-brand-mark { font-size: 0; }
.bm-brand-mark::before { content: 'M'; position: relative; z-index: 2; font-size: 18px; font-weight: 930; }
.bm-band-choice { border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.055); padding: 10px 11px; }
.bm-band-choice.is-active { box-shadow: none; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); }
.bm-nav { gap: 2px; }
.bm-nav-link { min-height: 42px; font-size: 13px; font-weight: 690; }
.bm-nav-link:hover { background: rgba(255,255,255,.07); }
.bm-nav-link.is-active { background: #f5f8f4; color: #17221c; }
.bm-nav-link small { margin-left: auto; min-width: 23px; border-radius: 999px; background: var(--bm-accent); color: #fff; padding: 2px 6px; text-align: center; font-size: 10px; }
.bm-sidebar-song-list a { display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 7px; padding: 8px 10px; }
.bm-song-drag,.bm-sort-handle { color: var(--bm-muted); cursor: grab; font-weight: 900; letter-spacing: -3px; }
.bm-sidebar-song-copy { min-width: 0; display: grid; gap: 3px; }
.bm-sidebar-song-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-sidebar-song-copy small { overflow: hidden; color: var(--bm-sidebar-muted); text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.bm-sidebar-song-copy i { display: inline-block; border-radius: 999px; background: color-mix(in srgb,var(--bm-status-color) 22%,transparent); color: color-mix(in srgb,var(--bm-status-color) 78%,#fff); padding: 2px 5px; font-style: normal; }
.bm-sidebar-song-copy b { color: #ff9f91; }
.bm-topbar { position: sticky; top: 0; z-index: 12; border-bottom: 0; background: color-mix(in srgb,var(--bm-surface-soft) 83%,transparent); backdrop-filter: blur(16px); }
.bm-search-button { min-width: min(310px,28vw); justify-content: flex-start; border-radius: 13px; box-shadow: 0 1px 0 rgba(255,255,255,.35); }
.bm-search-button kbd { margin-left: auto; border: 1px solid var(--bm-border); border-radius: 7px; background: var(--bm-surface-soft); color: var(--bm-muted); padding: 2px 6px; font-size: 11px; }
.bm-avatar { overflow: hidden; border: 3px solid var(--bm-surface); padding: 0; cursor: pointer; box-shadow: 0 0 0 1px var(--bm-border); }
.bm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bm-avatar:hover,.bm-avatar.is-active { box-shadow: 0 0 0 3px color-mix(in srgb,var(--bm-accent) 30%,transparent); }
.bm-main { width: min(1240px,100%); padding-top: clamp(26px,4vw,54px); }
.bm-main h1 { font-size: clamp(38px,5vw,68px); letter-spacing: -.055em; }
.bm-button { min-height: 42px; background: var(--bm-ink); color: var(--bm-surface); font-weight: 780; box-shadow: var(--bm-shadow-small); }
.bm-button:hover { background: var(--bm-accent); color: #fff; }
.bm-button-secondary { background: var(--bm-surface); color: var(--bm-ink); box-shadow: none; }
.bm-summary-grid article,.bm-editor-card,.bm-song-list,.bm-member-list,.bm-event-card { background: var(--bm-surface-raised); box-shadow: var(--bm-shadow-small); }
.bm-summary-grid article { position: relative; overflow: hidden; min-height: 116px; border-radius: 20px; padding: 22px; }
.bm-summary-grid article::after { content: ''; position: absolute; right: -20px; bottom: -28px; width: 78px; height: 78px; border-radius: 50%; background: color-mix(in srgb,var(--bm-accent) 12%,transparent); }
.bm-summary-grid article:nth-child(2)::after { background: color-mix(in srgb,var(--bm-lime) 34%,transparent); }
.bm-summary-grid strong { font-size: 38px; }
.bm-editor-card { border-radius: 22px; }
.bm-song-row { grid-template-columns: 38px minmax(0,1fr) auto 28px; transition: background .16s ease,transform .16s ease; }
.bm-song-row:hover { transform: translateX(3px); }
.bm-song-row.is-dragging,.bm-media-item.is-dragging,.bm-status-row.is-dragging,.bm-sidebar-song-list a.is-dragging { opacity: .45; }
.bm-status-pill { border: 0; background: color-mix(in srgb,var(--bm-status-color) 13%,var(--bm-surface)); color: var(--bm-ink); }
.bm-follow-button { min-height: 36px; border: 1px solid var(--bm-border); border-radius: 999px; background: var(--bm-surface); color: var(--bm-muted); padding: 0 12px; cursor: pointer; }
.bm-follow-button.is-active { border-color: color-mix(in srgb,var(--bm-accent) 35%,var(--bm-border)); background: color-mix(in srgb,var(--bm-accent) 12%,var(--bm-surface)); color: var(--bm-ink); }
.bm-song-detail-head > div { display: flex; align-items: center; gap: 14px; }
.bm-version-history { padding: 0; }
.bm-version-history summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; }
.bm-version-history summary::-webkit-details-marker { display: none; }
.bm-version-history summary > span { display: grid; gap: 4px; }
.bm-version-history summary > small { color: var(--bm-muted); }
.bm-version-list { display: grid; border-top: 1px solid var(--bm-border); }
.bm-version-list article { display: grid; grid-template-columns: 90px minmax(0,1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--bm-border); padding: 14px 22px; }
.bm-version-list article:last-child { border-bottom: 0; }
.bm-version-list article > div { min-width: 0; display: grid; gap: 3px; }
.bm-version-list small { overflow: hidden; color: var(--bm-muted); text-overflow: ellipsis; white-space: nowrap; }
.bm-version-type { border-radius: 999px; background: var(--bm-surface-soft); padding: 5px 8px; font-size: 10px; font-weight: 850; text-align: center; text-transform: uppercase; }
.bm-media-item[draggable="true"] .bm-media-main { grid-template-columns: 20px 46px minmax(0,1fr) auto; }
.bm-profile-page,.bm-statuses-page,.bm-activity-page { width: min(980px,100%); margin: 0 auto; }
.bm-profile-layout { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 22px; margin-top: 34px; align-items: start; }
.bm-profile-photo { display: grid; justify-items: center; gap: 20px; text-align: center; }
.bm-profile-photo > div:last-child { display: grid; justify-items: center; gap: 10px; }
.bm-profile-photo h2,.bm-profile-photo p { margin: 0; }
.bm-profile-photo p { color: var(--bm-muted); font-size: 13px; }
.bm-profile-preview { width: 150px; height: 150px; overflow: hidden; display: grid; place-items: center; border: 8px solid var(--bm-surface-soft); border-radius: 50%; background: linear-gradient(145deg,#ff9a6c,#7b3d2e); color: #fff; box-shadow: var(--bm-shadow); font-size: 34px; font-weight: 900; }
.bm-profile-preview img { width: 100%; height: 100%; object-fit: cover; }
.bm-profile-form input,.bm-profile-form select,.bm-status-create input,.bm-status-edit-form input { min-height: 44px; border: 1px solid var(--bm-border); border-radius: 10px; background: var(--bm-surface-soft); color: var(--bm-ink); padding: 0 12px; }
.bm-profile-checks { display: grid; gap: 10px; margin: 20px 0; }
.bm-profile-checks input,.bm-checkbox input { accent-color: var(--bm-accent); }
.bm-status-create { display: grid; grid-template-columns: minmax(220px,1fr) 100px auto auto; align-items: end; gap: 14px; margin: 32px 0 18px; border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface-raised); padding: 18px; box-shadow: var(--bm-shadow-small); }
.bm-status-create label { display: grid; gap: 7px; color: var(--bm-muted); font-size: 11px; font-weight: 800; }
.bm-status-create input[type="color"],.bm-status-edit-form input[type="color"] { width: 72px; padding: 5px; }
.bm-status-create .bm-checkbox { display: flex; align-items: center; min-height: 44px; color: var(--bm-ink); }
.bm-status-list { overflow: hidden; border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface-raised); box-shadow: var(--bm-shadow-small); }
.bm-status-row { min-height: 76px; display: grid; grid-template-columns: 24px 20px minmax(0,1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--bm-border); padding: 12px 18px; }
.bm-status-row:last-child { border-bottom: 0; }
.bm-status-row > div { display: grid; gap: 3px; }
.bm-status-row small { color: var(--bm-muted); }
.bm-status-swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--bm-status-color); box-shadow: 0 0 0 5px color-mix(in srgb,var(--bm-status-color) 15%,transparent); }
.bm-status-row-actions { display: flex !important; align-items: center; gap: 14px; }
.bm-status-edit-form { grid-column: 3/-1; display: grid; grid-template-columns: minmax(160px,1fr) 80px auto auto auto; align-items: center; gap: 10px; }
.bm-status-edit-form label { white-space: nowrap; }
.bm-activity-tabs { display: flex; gap: 5px; overflow-x: auto; margin: 30px 0 18px; border-bottom: 1px solid var(--bm-border); }
.bm-activity-tabs button { min-height: 46px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--bm-muted); padding: 0 12px; cursor: pointer; font-weight: 750; white-space: nowrap; }
.bm-activity-tabs button.is-active { border-color: var(--bm-accent); color: var(--bm-ink); }
.bm-activity-tabs span { min-width: 22px; border-radius: 999px; background: var(--bm-surface); padding: 2px 6px; font-size: 10px; }
.bm-activity-list { overflow: hidden; border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface-raised); box-shadow: var(--bm-shadow-small); }
.bm-activity-item { width: 100%; min-height: 72px; display: grid; grid-template-columns: 42px minmax(0,1fr) 24px; align-items: center; gap: 13px; border: 0; border-bottom: 1px solid var(--bm-border); background: transparent; color: var(--bm-ink); padding: 12px 16px; text-align: left; cursor: pointer; }
.bm-activity-item:last-child { border-bottom: 0; }
.bm-activity-item:hover { background: var(--bm-surface-soft); }
.bm-activity-item > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.bm-activity-item small { color: var(--bm-muted); }
.bm-activity-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb,var(--bm-accent) 14%,var(--bm-surface)); color: var(--bm-accent); font-weight: 900; }
.bm-dashboard-activity { overflow: hidden; display: grid; grid-template-columns: minmax(250px,.75fr) minmax(420px,1.25fr) auto; align-items: stretch; margin-top: 18px; border-radius: 20px; background: var(--bm-sidebar); color: #fff; box-shadow: var(--bm-shadow-small); }
.bm-dashboard-activity-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px; }
.bm-dashboard-activity-head h2 { margin: 4px 0 0; color: #fff; font-size: 22px; }
.bm-dashboard-activity-head .bm-eyebrow { color: var(--bm-lime); }
.bm-dashboard-activity-count { min-width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--bm-accent); font-size: 18px; font-weight: 900; }
.bm-dashboard-activity-list { display: grid; border-left: 1px solid rgba(255,255,255,.1); border-right: 1px solid rgba(255,255,255,.1); }
.bm-dashboard-activity-list button { display: grid; grid-template-columns: 34px minmax(0,1fr) 18px; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); background: transparent; color: #fff; padding: 9px 14px; text-align: left; cursor: pointer; }
.bm-dashboard-activity-list button:last-child { border-bottom: 0; }
.bm-dashboard-activity-list button:hover { background: rgba(255,255,255,.06); }
.bm-dashboard-activity-list button > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.bm-dashboard-activity-list strong,.bm-dashboard-activity-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-dashboard-activity-list strong { font-size: 12px; }
.bm-dashboard-activity-list small { color: var(--bm-sidebar-muted); font-size: 10px; }
.bm-dashboard-activity-list .bm-activity-icon { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.09); color: var(--bm-lime); }
.bm-dashboard-activity > a { display: grid; place-items: center; color: #fff; padding: 18px; font-size: 12px; font-weight: 800; text-align: center; }
.bm-dashboard-activity > a:hover { background: rgba(255,255,255,.06); }
.bm-public-assets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.bm-public-assets article { display: grid; justify-items: start; gap: 8px; border: 1px solid var(--bm-border); border-radius: 16px; background: var(--bm-surface-soft); padding: 14px; }
.bm-public-assets small,.bm-gallery-editor small { color: var(--bm-muted); }
.bm-public-asset-preview { width: 100%; height: 180px; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background: #17221c; color: var(--bm-lime); font-size: 30px; font-weight: 900; }
.bm-public-asset-preview.is-logo { background: #fff; color: #17221c; }
.bm-public-asset-preview img { width: 100%; height: 100%; object-fit: cover; }
.bm-public-asset-preview.is-logo img { object-fit: contain; padding: 18px; }
.bm-gallery-editor { margin-top: 24px; }
.bm-gallery-editor > .bm-editor-heading { margin-bottom: 12px; }
.bm-gallery-editor > .bm-editor-heading > div { display: flex; align-items: baseline; gap: 9px; }
.bm-gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.bm-gallery-grid figure { position: relative; overflow: hidden; aspect-ratio: 1; margin: 0; border-radius: 12px; background: var(--bm-surface-soft); }
.bm-gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.bm-gallery-grid figure button { position: absolute; top: 7px; right: 7px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(23,34,28,.84); color: #fff; cursor: pointer; }
.bm-register-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(circle at 85% 10%,rgba(203,255,91,.2),transparent 32%),var(--bm-surface); }
.bm-register-card { width: min(760px,100%); margin: 0; box-shadow: var(--bm-shadow); }
.bm-registration-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.bm-registration-password,.bm-registration-terms { grid-column: 1/-1; }
.bm-registration-terms { display: flex !important; align-items: flex-start; flex-direction: row !important; gap: 10px !important; }
.bm-registration-terms input { width: auto !important; margin-top: 4px; }
.bm-registration-login { margin: 4px 0 0 !important; font-size: 14px; }
.bm-honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bm-customer-onboarding { max-width: 820px; }
.bm-onboarding-checklist { display: grid; gap: 12px; margin: 28px 0; }
.bm-onboarding-checklist article { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 14px; align-items: start; border: 1px solid var(--bm-border); border-radius: 14px; background: var(--bm-surface-raised); padding: 16px; }
.bm-onboarding-checklist article > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--bm-surface-soft); color: var(--bm-muted); font-weight: 900; }
.bm-onboarding-checklist article.is-complete > span { background: var(--bm-lime); color: #17221c; }
.bm-onboarding-checklist article > div { display: grid; gap: 7px; }
.bm-onboarding-checklist small { color: var(--bm-muted); }
.bm-onboarding-song,.bm-onboarding-invite { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-onboarding-song input,.bm-onboarding-invite input { flex: 1 1 220px; }
.bm-onboarding-invite select { flex: 0 1 150px; }
.bm-storage-quota { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; border: 1px solid var(--bm-border); border-radius: 12px; background: var(--bm-surface-soft); padding: 12px 14px; }
.bm-storage-quota > div { display: grid; gap: 2px; }
.bm-storage-quota span { color: var(--bm-muted); font-size: 12px; }
.bm-storage-quota small { color: var(--bm-muted); font-size: 11px; line-height: 1.45; }
.bm-storage-quota progress { width: min(220px,38%); accent-color: var(--bm-accent); }
.bm-storage-quota.is-unconfigured { border-color: color-mix(in srgb,var(--bm-accent) 38%,var(--bm-border)); }
.bm-storage-quota.is-warning { border-color: color-mix(in srgb,#d97706 45%,var(--bm-border)); background: color-mix(in srgb,#f59e0b 8%,var(--bm-surface)); }
.bm-storage-quota.is-warning progress { accent-color: #d97706; }
.bm-storage-quota.is-critical, .bm-storage-quota.is-full { border-color: color-mix(in srgb,var(--bm-danger) 50%,var(--bm-border)); background: color-mix(in srgb,var(--bm-danger) 8%,var(--bm-surface)); }
.bm-storage-quota.is-critical progress, .bm-storage-quota.is-full progress { accent-color: var(--bm-danger); }

@media (max-width: 900px) {
    .bm-dashboard-activity { grid-template-columns: 1fr; }
    .bm-dashboard-activity-list { border: 1px solid rgba(255,255,255,.1); border-width: 1px 0; }
    .bm-profile-layout { grid-template-columns: 1fr; }
    .bm-profile-photo { grid-template-columns: 150px minmax(0,1fr); justify-items: start; text-align: left; }
    .bm-profile-photo > div:last-child { justify-items: start; }
    .bm-status-create { grid-template-columns: 1fr 100px; }
    .bm-status-create .bm-checkbox,.bm-status-create .bm-button { grid-column: auto; }
}
@media (max-width: 760px) {
    .bm-registration-grid { grid-template-columns: 1fr; }
    .bm-registration-password,.bm-registration-terms { grid-column: auto; }
    .bm-storage-quota { align-items: stretch; flex-direction: column; }
    .bm-storage-quota progress { width: 100%; }
    .bm-shell { grid-template-columns: minmax(0,1fr); }
    .bm-sidebar { position: static; width: 100%; height: auto; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px 14px; padding: 12px 14px; box-shadow: none; }
    .bm-brand { grid-column: 1; }
    .bm-brand strong { display: none; }
    .bm-band-switcher { grid-column: 2; display: block; min-width: 0; overflow: hidden; }
    .bm-band-switcher .bm-sidebar-label { display: none; }
    .bm-band-choice { min-width: 0; padding: 8px 10px; }
    .bm-nav { grid-column: 1/-1; grid-row: auto; display: flex; overflow-x: auto; gap: 3px; padding-bottom: 2px; scrollbar-width: none; }
    .bm-nav::-webkit-scrollbar { display: none; }
    .bm-nav-link { flex: 0 0 auto; min-height: 38px; gap: 7px; padding: 8px 10px; font-size: 11px; }
    .bm-nav-link span { font-size: 15px; }
    .bm-nav-link small { min-width: 20px; }
    .bm-sidebar-songs,.bm-marketing-link { display: none; }
    .bm-topbar { min-height: 62px; padding: 10px 14px; }
    .bm-topbar > div:first-child { min-width: 0; }
    .bm-topbar > div:first-child .bm-context { display: none; }
    .bm-topbar > div:first-child strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bm-profile { gap: 7px; }
    .bm-profile select { display: none; }
    .bm-main { padding: 28px 16px 52px; }
    .bm-main h1 { font-size: clamp(39px,12vw,54px); }
    .bm-page-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .bm-page-heading .bm-button { margin: 0; }
    .bm-summary-grid { margin-top: 24px; }
    .bm-search-button { min-width: 40px; }
    .bm-search-button kbd { display: none; }
    .bm-profile-photo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .bm-profile-photo > div:last-child { justify-items: center; }
    .bm-status-create,.bm-status-edit-form { grid-template-columns: 1fr; }
    .bm-status-row { grid-template-columns: 20px 18px minmax(0,1fr); }
    .bm-status-row-actions { grid-column: 3; }
    .bm-status-edit-form { grid-column: 3; }
    .bm-version-list article { grid-template-columns: 1fr; }
    .bm-public-assets { grid-template-columns: 1fr; }
    .bm-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .bm-gallery-editor > .bm-editor-heading > div { display: grid; gap: 3px; }
    .bm-media-item[draggable="true"] .bm-media-main { grid-template-columns: 18px 42px minmax(0,1fr); }
    .bm-media-item[draggable="true"] .bm-preferred { grid-column: 3; }
}
