
/* Band Manager components. Values come from tokens.css. */
.t-display, .t-numeral { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.t-overline { text-transform: uppercase; }
.bm-muted { color: var(--ink-muted); }
.bm-danger { color: var(--danger); }
.bm-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-flip { transform: scaleX(-1); }
.bm-icon { flex: 0 0 auto; display: block; }
:where(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bm-pad { padding: var(--space-4); }
.bm-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.bm-inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

/* Button */
.bm-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--size-tap); padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid transparent; font: 500 14px/20px var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.bm-btn-sm { min-height: 36px; padding: 0 var(--space-3); }
.bm-btn-block { width: 100%; }
.bm-btn-primary { background: var(--ink); color: var(--on-ink); }
.bm-btn-accent { background: var(--accent); color: var(--on-accent); }
.bm-btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.bm-btn-secondary:active, .bm-btn-ghost:active { background: var(--surface-sunken); }
.bm-btn-ghost { background: transparent; color: var(--ink); }
.bm-btn-danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.bm-btn:disabled { opacity: .4; cursor: default; }

/* Chip */
.bm-chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px 10px 2px 8px; border-radius: var(--radius-pill); font: 500 13px/20px var(--font-sans); white-space: nowrap; flex: 0 0 auto; }
.bm-tone-offered { color: var(--offered); background: var(--offered-soft); }
.bm-tone-negotiating { color: var(--negotiating); background: var(--negotiating-soft); }
.bm-tone-confirmed { color: var(--confirmed); background: var(--confirmed-soft); }
.bm-tone-played { color: var(--played); background: var(--played-soft); }
.bm-tone-declined { color: var(--declined); background: var(--declined-soft); }
.bm-tone-rehearsal { color: var(--rehearsal); background: var(--rehearsal-soft); }

/* Segmented */
.bm-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-md); background: var(--surface-sunken); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.bm-seg-block { display: flex; }
.bm-seg-block .bm-seg-item { flex: 1; }
.bm-seg-item { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 var(--space-3); border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); font: 500 14px/20px var(--font-sans); cursor: pointer; white-space: nowrap; }
.bm-seg-item.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-raise); }
.bm-seg-count { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* Attendance */
.bm-att { display: flex; gap: var(--space-2); }
.bm-att-item { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--size-tap); padding: 0 var(--space-2); border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 14px/20px var(--font-sans); cursor: pointer; }
.bm-att-going.is-on { background: var(--confirmed-soft); color: var(--confirmed); border-color: var(--confirmed); }
.bm-att-maybe.is-on { background: var(--negotiating-soft); color: var(--negotiating); border-color: var(--negotiating); }
.bm-att-cant.is-on { background: var(--declined-soft); color: var(--declined); border-color: var(--declined); }

/* Rows and groups */
.bm-group { display: flex; flex-direction: column; gap: var(--space-2); }
.bm-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: 0 var(--space-1); }
.bm-group-head h3 { margin: 0; display: flex; align-items: center; gap: var(--space-2); }
.bm-count { font: 600 12px/20px var(--font-sans); min-width: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); text-align: center; }
.bm-group-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-raise); overflow: hidden; }
.bm-row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--size-tap); padding: var(--space-3) var(--space-4); color: inherit; text-decoration: none; }
.bm-row + .bm-row { border-top: 1px solid var(--line); }
a.bm-row:active { background: var(--surface-sunken); }
.bm-row-main { flex: 1; min-width: 0; }
.bm-dateblock { flex: 0 0 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; border-radius: var(--radius-md); background: var(--surface-sunken); }
.bm-dateblock .t-overline { color: var(--accent-text); }
.bm-dateblock .t-numeral { font-size: 20px; line-height: 22px; }
.bm-dateblock-rehearsal { background: var(--rehearsal-soft); }
.bm-dateblock-rehearsal .t-overline, .bm-dateblock-rehearsal .t-numeral { color: var(--rehearsal); }

/* Task */
.bm-task-icon { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); }
.bm-task.is-overdue .bm-task-icon { background: var(--declined-soft); color: var(--declined); }
.bm-task.is-done { color: var(--confirmed); }

/* Next up */
.bm-nextup { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-raise); color: var(--ink); text-decoration: none; }
.bm-nextup-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-1); }
.bm-nextup .t-display { color: var(--ink); }
.bm-nextup-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.bm-nextup-meta span { display: inline-flex; align-items: center; gap: var(--space-1); }
.bm-nextup .bm-att { margin-top: var(--space-3); }

/* Stepper */
.bm-stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.bm-step { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; position: relative; color: var(--ink-muted); }
.bm-step::before { content: ''; position: absolute; top: 9px; left: 20px; right: 4px; height: 2px; background: var(--line); }
.bm-step:last-child::before { display: none; }
.bm-step.is-done::before { background: var(--confirmed); }
.bm-step-dot { width: 20px; height: 20px; border-radius: var(--radius-pill); display: grid; place-items: center; border: 2px solid var(--line-strong); background: var(--surface); position: relative; }
.bm-step.is-done .bm-step-dot { background: var(--confirmed); border-color: var(--confirmed); color: var(--on-ink); }
.bm-step.is-current { color: var(--ink); }
.bm-step.is-current .bm-step-dot { border-color: var(--accent-text); box-shadow: inset 0 0 0 4px var(--accent-text); }
.bm-stepper.is-declined { display: flex; align-items: center; gap: var(--space-3); }
:root[data-theme="dark"] .bm-step.is-done .bm-step-dot { color: var(--canvas); }

/* Calendar */
.bm-cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3); }
.bm-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.bm-iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); cursor: pointer; }
.bm-iconbtn:active { background: var(--surface-sunken); }
.bm-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.bm-cal-wd { text-align: center; padding: var(--space-1) 0; }
.bm-cal-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px; padding: 6px 0 4px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font: 500 14px/20px var(--font-sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.bm-cal-day.is-outside { color: var(--ink-muted); opacity: .55; }
.bm-cal-num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-pill); }
.bm-cal-day.is-today .bm-cal-num { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.bm-cal-day.is-selected { background: var(--accent-soft); }
.bm-cal-events { display: flex; gap: 3px; height: 6px; }
.bm-cal-ev { width: 6px; height: 6px; border-radius: var(--radius-pill); }
.bm-ev-rehearsal { background: var(--rehearsal); border-radius: 1px; }
.bm-ev-offered { background: var(--offered); } .bm-ev-confirmed { background: var(--confirmed); } .bm-ev-played { background: var(--played); }
.bm-cal-day.free-some::after, .bm-cal-day.free-none::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 1px; height: 3px; border-radius: 2px; }
.bm-cal-day.free-some::after, .bm-key.free-some { background: var(--negotiating); }
.bm-cal-day.free-none::after, .bm-key.free-none { background: var(--declined); }
.bm-cal-legend { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin-top: var(--space-3); }
.bm-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bm-key { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }

/* Date match */
.bm-match-score { flex: 0 0 48px; display: flex; align-items: baseline; justify-content: center; }
.bm-match.is-best { background: var(--confirmed-soft); }
.bm-best, .bm-tag { margin-left: var(--space-2); padding: 0 8px; border-radius: var(--radius-pill); font: 600 12px/20px var(--font-sans); vertical-align: 1px; }
.bm-best { background: var(--confirmed); color: var(--on-ink); }
:root[data-theme="dark"] .bm-best { color: var(--canvas); }
.bm-tag { background: var(--surface-sunken); color: var(--ink-muted); }

/* Field */
.bm-field { display: flex; flex-direction: column; gap: 6px; }
.bm-input { width: 100%; min-height: var(--size-tap); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 400 16px/24px var(--font-sans); appearance: none; }
.bm-input::placeholder { color: var(--ink-muted); }
.bm-field.has-error .bm-input { border-color: var(--danger); border-width: 2px; padding: 9px 11px; }
.bm-field-msg { display: flex; align-items: center; gap: var(--space-1); }
.bm-select { position: relative; }
.bm-select .bm-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-muted); }
textarea.bm-input { resize: vertical; }

/* Empty */
.bm-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); padding: var(--space-6) var(--space-4); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.bm-empty-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-muted); margin-bottom: var(--space-1); }
.bm-empty .bm-btn { margin-top: var(--space-2); }

/* Avatar, switcher, menu */
.bm-avatar { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); font: 600 14px/1 var(--font-sans); text-transform: uppercase; }
.bm-avatar-sm { width: 24px; height: 24px; font-size: 12px; }
.bm-me { background: var(--surface-sunken); color: var(--ink); }
.bm-switch { position: relative; min-width: 0; }
.bm-switch-btn { display: flex; align-items: center; gap: var(--space-2); max-width: 100%; min-height: var(--size-tap); padding: 0 var(--space-2) 0 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.bm-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 5; min-width: 240px; padding: var(--space-1); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-overlay); }
.bm-menu-item { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--size-tap); padding: 0 var(--space-3); border: 0; border-radius: 8px; background: none; color: var(--ink); font: 400 15px/20px var(--font-sans); text-align: left; cursor: pointer; }
.bm-menu-item .bm-icon:last-child { margin-left: auto; color: var(--accent-text); }
.bm-menu-item.is-on { font-weight: 600; }
.bm-menu-item:active { background: var(--surface-sunken); }
.bm-menu-sep { height: 1px; background: var(--line); margin: var(--space-1) 0; }

/* BrandLogo: always top-left (phone header, desktop sidebar). Two images; the theme picks one. */
.bm-logo { display: block; width: auto; flex: 0 0 auto; }
.bm-logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bm-logo-light { display: none; } :root:not([data-theme="light"]) .bm-logo-dark { display: block; } }
:root[data-theme="dark"] .bm-logo-light { display: none; }
:root[data-theme="dark"] .bm-logo-dark { display: block; }
.bm-logo-link { display: flex; align-items: center; min-height: var(--size-tap); flex: 0 0 auto; }
button.bm-avatar { border: 0; cursor: pointer; }

/* Extras for the DOM port */
.bm-plainlink { color: inherit; text-decoration: none; }
.bm-detail-value { text-align: right; overflow-wrap: anywhere; }
.bm-tone-offered, .bm-tone-confirmed, .bm-tone-played, .bm-tone-declined, .bm-tone-rehearsal, .bm-tone-negotiating { }
.bm-match.is-past { opacity: .6; }
.bm-menu { right: auto; }
.bm-menu-right { left: auto; right: 0; }
.bm-menu-heading { padding: var(--space-2) var(--space-3) 0; }
.bm-menu-item { text-decoration: none; }
.bm-menu-item.is-danger { color: var(--danger); }
.bm-menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-menu-item .bm-icon:first-child { color: var(--ink-muted); }
.bm-menu-item .bm-icon:last-child:not(:first-child) { margin-left: auto; color: var(--accent-text); }

/* ---- Shell ---- */
#app-view { min-height: 100vh; }
.bm-main { min-width: 0; padding-bottom: calc(var(--size-tabbar) + 88px); }
.bm-header { position: sticky; top: 0; z-index: 30; height: var(--size-header); display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-4); background: var(--surface); border-bottom: 1px solid var(--line); }
.bm-header .bm-switch { flex: 1 1 auto; min-width: 0; }
.bm-header .bm-switch-btn .t-heading { font-size: 15px; }
.bm-header .bm-avatar-band { display: none; }
.bm-account { position: relative; flex: 0 0 auto; }
.bm-avatar-band { background: var(--accent); color: var(--on-accent); }
.bm-switch-btn .bm-icon { color: var(--ink-muted); }
.bm-progress { position: sticky; top: var(--size-header); z-index: 29; height: 3px; background: var(--accent-soft); overflow: hidden; }
.bm-progress div { height: 100%; width: 35%; background: var(--accent-text); animation: bm-slide 1s ease-in-out infinite; }
@keyframes bm-slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .bm-progress div { animation: none; width: 100%; } }
.content { padding: var(--space-4); max-width: calc(var(--size-content) + 2 * var(--space-4)); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-5); }
.content > h1.t-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; }
.bm-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--size-tabbar); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bm-fab { position: fixed; right: var(--space-4); bottom: calc(var(--size-tabbar) + var(--space-4)); width: 56px; height: 56px; display: grid; place-items: center; border: 0; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-overlay); cursor: pointer; z-index: 31; }
.bm-sidebar { display: none; }
body.no-bands .bm-tabbar, body.no-bands .bm-fab, body.no-bands .bm-sidenav, body.no-bands .bm-sidebar .bm-btn { display: none; }
.bm-create-item { width: 100%; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.bm-create-item:hover { background: var(--surface-sunken); }
@media (min-width: 960px) {
  #app-view { display: grid; grid-template-columns: var(--size-sidebar) minmax(0, 1fr); }
  .bm-sidebar { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4) var(--space-3); background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; }
  .bm-sidebar .bm-logo-link { padding: 0 var(--space-2); }
  .bm-sidebar .bm-avatar-band { display: grid; }
  .bm-sidenav { display: flex; flex-direction: column; gap: 2px; }
  .bm-sidenav .bm-nav-item { flex-direction: row; justify-content: flex-start; gap: var(--space-3); min-height: var(--size-tap); padding: 0 var(--space-3); border-radius: var(--radius-md); color: var(--ink-muted); font: 500 15px/20px var(--font-sans); text-decoration: none; }
  .bm-sidenav .bm-nav-item.is-on { background: var(--accent-soft); color: var(--accent-text); }
  .bm-sidenav .bm-badge { position: static; margin-left: auto; }
  .bm-sidebar-foot { margin-top: auto; display: flex; }
  .bm-sidebar-foot .bm-menu { top: auto; bottom: calc(100% + 4px); left: 0; right: auto; }
  .bm-header, .bm-tabbar, .bm-fab { display: none; }
  .bm-main { padding-bottom: var(--space-6); }
  .bm-progress { top: 0; }
  .content { padding: var(--space-5); }
}

/* ---- Sheet (dialog): bottom sheet on phones, centred dialog on desktop ---- */
dialog.bm-dialog { margin: auto 0 0; padding: 0; width: 100%; max-width: 100%; max-height: 90vh; border: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-overlay); overflow: hidden; flex-direction: column; }
dialog.bm-dialog[open] { display: flex; }
dialog.bm-dialog::backdrop { background: var(--scrim); }
@media (min-width: 640px) { dialog.bm-dialog { margin: auto; max-width: 560px; border-radius: var(--radius-lg); } }
.bm-sheet-grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: var(--space-2) auto 0; flex: 0 0 auto; }
@media (min-width: 640px) { .bm-sheet-grip { display: none; } }
.bm-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); flex: 0 0 auto; }
.bm-sheet-head h2 { margin: 0; }
.bm-sheet-body { padding: var(--space-2) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); overflow: auto; }
.bm-sheet-body > .bm-group-body { margin: 0 calc(-1 * var(--space-4)); border-radius: 0; border-left: 0; border-right: 0; }
@media (prefers-reduced-motion: no-preference) { dialog.bm-dialog[open] { animation: bm-up .2s ease-out; } }
@keyframes bm-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.stack-5 { display: flex; flex-direction: column; gap: var(--space-5); }
.bm-link { color: var(--accent-text); text-decoration: none; }

/* Nav items (tab bar and sidebar) */
.bm-nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-muted); text-decoration: none; font: 500 12px/16px var(--font-sans); }
.bm-nav-item.is-on { color: var(--accent-text); }
.bm-badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font: 600 11px/18px var(--font-sans); text-align: center; }
.bm-badge[hidden] { display: none; }
.bm-att-item { white-space: nowrap; padding: 0 6px; }
@media (min-width: 960px) { .bm-sidenav .bm-badge { position: static; } }

/* Calendar and misc helpers */
.bm-between { justify-content: space-between; }
.stack-3 { display: flex; flex-direction: column; gap: var(--space-3); }
.bm-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 14px/20px var(--font-sans); cursor: pointer; }
.bm-pill.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.bm-cal-title::first-letter { text-transform: uppercase; }
.bm-cal-tools { margin-bottom: var(--space-2); }
.bm-cal-head .bm-iconbtn:first-child .bm-icon { transform: scaleX(-1); }
.bm-cal .chips { margin-bottom: var(--space-3); }
.bm-actions { flex-wrap: wrap; gap: var(--space-2); }
.bm-key-dot, .bm-key-sq { display: inline-block; width: 8px; height: 8px; background: var(--confirmed); }
.bm-key-dot { border-radius: 50%; }
.bm-key-sq { background: var(--rehearsal); border-radius: 1px; }
.bm-flush { margin: 0 calc(-1 * var(--space-4)); border-radius: 0; border-left: 0; border-right: 0; }
.bm-rehearsal .stack-3 .bm-inline { gap: var(--space-2); }
.bm-ev-offered { background: var(--offered); } .bm-ev-confirmed { background: var(--confirmed); } .bm-ev-played { background: var(--played); } .bm-ev-declined { background: var(--declined); }

/* Gigs and detail */
.bm-back { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); text-decoration: none; min-height: 32px; }
.bm-back .bm-icon { transform: scaleX(-1); }
.stack-1 { display: flex; flex-direction: column; gap: var(--space-1); }
.bm-more { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.bm-more > summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--size-tap); padding: 0 var(--space-4); cursor: pointer; list-style: none; }
.bm-more > summary::-webkit-details-marker { display: none; }
.bm-more[open] > summary .bm-icon { transform: rotate(180deg); }
.bm-more-body { padding: 0 var(--space-4) var(--space-4); }
.bm-quiet { gap: var(--space-2); }
.bm-danger-text { color: var(--danger); }
.gigs-embed > .section-head > h2, .gigs-embed > h2 { display: none; }
.gigs-embed > .section-head { justify-content: flex-end; }
.gigs-embed > .section-head:empty { display: none; }
.period-filter { gap: var(--space-2); }
.period-filter select { flex: 1; min-width: 0; min-height: 40px; padding: 6px 10px; font-size: 14px; background: var(--surface); border-color: var(--line-strong); }
.bm-match .bm-row-main > div > .t-caption { margin-top: 2px; }

.bm-rowmenu { position: relative; flex: 0 0 auto; }
.bm-doc .panel { margin: 0; padding: var(--space-3) var(--space-4) var(--space-4); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-3); }
.bm-doc + .bm-doc { border-top: 1px solid var(--line); }
.bm-doc .bm-row + .bm-row { border-top: 0; }
.band-docs > .bm-group-head { margin-bottom: var(--space-2); }
.bm-group-body:has(.bm-menu) { overflow: visible; }
.bm-doc .bm-row { flex-wrap: wrap; }
.bm-doc .bm-row-main { flex: 1 1 150px; }
.bm-doc .bm-row-main .t-body-strong { white-space: normal; }

/* Form controls and scrollbars follow the chosen theme */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
.bm-row > .bm-seg { width: 100%; }
