html {
  font-size: 14px;
  --song-fullscreen-notation-min: 1.215rem;
  --song-fullscreen-notation-pref: 2.115vw;
  --song-fullscreen-notation-max: 1.98rem;
  --song-fullscreen-guitar-min: .9rem;
  --song-fullscreen-guitar-pref: 1.485vw;
  --song-fullscreen-guitar-max: 1.395rem;
  --song-fullscreen-prose-min: 1.305rem;
  --song-fullscreen-prose-pref: 2.295vw;
  --song-fullscreen-prose-max: 2.115rem;
}

html[data-song-fullscreen-zoom="1"] {
  --song-fullscreen-notation-min: .972rem;
  --song-fullscreen-notation-pref: 1.692vw;
  --song-fullscreen-notation-max: 1.584rem;
  --song-fullscreen-guitar-min: .72rem;
  --song-fullscreen-guitar-pref: 1.188vw;
  --song-fullscreen-guitar-max: 1.116rem;
  --song-fullscreen-prose-min: 1.044rem;
  --song-fullscreen-prose-pref: 1.836vw;
  --song-fullscreen-prose-max: 1.692rem;
}

html[data-song-fullscreen-zoom="2"] {
  --song-fullscreen-notation-min: 1.107rem;
  --song-fullscreen-notation-pref: 1.927vw;
  --song-fullscreen-notation-max: 1.804rem;
  --song-fullscreen-guitar-min: .82rem;
  --song-fullscreen-guitar-pref: 1.353vw;
  --song-fullscreen-guitar-max: 1.271rem;
  --song-fullscreen-prose-min: 1.189rem;
  --song-fullscreen-prose-pref: 2.091vw;
  --song-fullscreen-prose-max: 1.927rem;
}

html[data-song-fullscreen-zoom="4"] {
  --song-fullscreen-notation-min: 1.35rem;
  --song-fullscreen-notation-pref: 2.35vw;
  --song-fullscreen-notation-max: 2.2rem;
  --song-fullscreen-guitar-min: 1rem;
  --song-fullscreen-guitar-pref: 1.65vw;
  --song-fullscreen-guitar-max: 1.55rem;
  --song-fullscreen-prose-min: 1.45rem;
  --song-fullscreen-prose-pref: 2.55vw;
  --song-fullscreen-prose-max: 2.35rem;
}

html[data-song-fullscreen-zoom="5"] {
  --song-fullscreen-notation-min: 1.553rem;
  --song-fullscreen-notation-pref: 2.703vw;
  --song-fullscreen-notation-max: 2.53rem;
  --song-fullscreen-guitar-min: 1.15rem;
  --song-fullscreen-guitar-pref: 1.898vw;
  --song-fullscreen-guitar-max: 1.783rem;
  --song-fullscreen-prose-min: 1.668rem;
  --song-fullscreen-prose-pref: 2.933vw;
  --song-fullscreen-prose-max: 2.703rem;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.brand-logo-dark {
  display: none;
}

.floating-brand {
  bottom: 1rem;
  display: block;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  transform: translateY(.75rem);
  transition: opacity .18s ease, transform .18s ease;
  visibility: hidden;
  z-index: 1084;
}

.floating-brand.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.floating-brand .brand-logo {
  height: 52px;
  max-width: min(17rem, calc(100vw - 2rem));
}

.dark-mode .brand-logo-light {
  display: none;
}

.dark-mode .brand-logo-dark {
  display: block;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f7f6f2;
  color: #202124;
}

.dark-mode body {
  background: #111416;
  color: #ece8df;
}

.dark-mode .navbar,
.dark-mode .settings-panel,
.dark-mode .stat-card,
.dark-mode .song-card,
.dark-mode .content-columns article,
.dark-mode .calendar-item,
.dark-mode .response-grid form,
.dark-mode .filter-bar,
.dark-mode .people-form,
.dark-mode .song-table-wrap,
.dark-mode .notation-tabs,
.dark-mode .drag-list,
.dark-mode .member-check,
.dark-mode .reminder-panel,
.dark-mode .gig-graphic-frame,
.dark-mode .gig-media-card,
.dark-mode .media-upload-panel {
  background: #1c2124 !important;
  border-color: #3a4247;
  color: #ece8df;
}

.dark-mode .navbar {
  background: #171d20 !important;
  box-shadow: 0 1px 0 #465158;
}

.dark-mode .navbar-brand,
.dark-mode .nav-link,
.dark-mode .nav-link.text-dark,
.dark-mode .settings-gear-button,
.dark-mode .table-sort,
.dark-mode .song-card,
.dark-mode .calendar-item {
  color: #ece8df !important;
}

.dark-mode .song-file-indicator {
  color: #18d2e9;
}

.dark-mode .btn {
  background-color: #252d32;
  border-color: #56626b;
  color: #f4f7f8;
}

.dark-mode .btn-primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.05) 40%, rgba(0,0,0,.24) 42%, rgba(255,255,255,.08) 100%),
    linear-gradient(180deg, #6f8493, #33434e 48%, #202b33 52%, #526575);
  border-color: #8798a5;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.32), inset 0 -2px 4px rgba(0,0,0,.4), 0 10px 24px rgba(0,0,0,.34);
}

.dark-mode .btn-primary:hover,
.dark-mode .btn-primary:focus {
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.08) 40%, rgba(0,0,0,.20) 42%, rgba(255,255,255,.1) 100%),
    linear-gradient(180deg, #879baa, #435563 48%, #2c3943 52%, #667a89);
}

.dark-mode .song-nav-button,
.dark-mode .song-read-heading .icon-text-button,
.dark-mode .song-quick-menu-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.06) 40%, rgba(0,0,0,.28) 42%, rgba(255,255,255,.08) 100%),
    linear-gradient(180deg, #71818d 0%, #40505c 46%, #1f2a32 52%, #516371 100%);
  border-color: #7d8d98;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .34),
    inset 0 -2px 3px rgba(0, 0, 0, .45),
    0 10px 24px rgba(0, 0, 0, .42);
  color: #f5f7f8;
  text-shadow: none;
}

.dark-mode .song-nav-button:hover,
.dark-mode .song-nav-button:focus,
.dark-mode .song-read-heading .icon-text-button.btn:hover,
.dark-mode .song-read-heading .icon-text-button.btn:focus {
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.08) 40%, rgba(0,0,0,.22) 42%, rgba(255,255,255,.1) 100%),
    linear-gradient(180deg, #8797a3 0%, #526574 46%, #2c3943 52%, #657886 100%);
  color: #ffffff;
}

.dark-mode .song-nav-button.disabled {
  background: linear-gradient(180deg, #3d464d, #20282d);
  border-color: #505b63;
  color: #929da5;
}

.dark-mode .song-quick-menu-panel .dropdown-item {
  color: #f5f7f8;
}

.dark-mode .song-quick-menu-panel .dropdown-item:hover,
.dark-mode .song-quick-menu-panel .dropdown-item:focus {
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
}

.dark-mode .chrome-icon-button {
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.06) 40%, rgba(0,0,0,.26) 42%, rgba(255,255,255,.08) 100%),
    linear-gradient(180deg, #7c8d99 0%, #465866 46%, #25313a 52%, #5c707f 100%);
  border-color: #8798a5;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.34), inset 0 -2px 4px rgba(0,0,0,.42), 0 10px 24px rgba(0,0,0,.36);
  color: #f8fbfd;
}

.dark-mode .chrome-icon-button:hover,
.dark-mode .chrome-icon-button:focus {
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.09) 40%, rgba(0,0,0,.2) 42%, rgba(255,255,255,.12) 100%),
    linear-gradient(180deg, #95a6b2 0%, #586d7d 46%, #32414c 52%, #718595 100%);
  color: #ffffff;
}

.dark-mode .dropdown-menu {
  color: #ece8df;
}

.dark-mode .form-control,
.dark-mode .form-select {
  background-color: #121618;
  border-color: #485158;
  color: #f2eee8;
}

.dark-mode .form-control::placeholder {
  color: #9ea8ad;
}

.dark-mode .form-floating > label {
  color: #d7dee2 !important;
  font-weight: 700;
  opacity: 1 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .75);
}

.dark-mode .form-floating > .form-control:focus ~ label,
.dark-mode .form-floating > .form-control:not(:placeholder-shown) ~ label,
.dark-mode .form-floating > .form-select ~ label {
  color: #b9c4ca !important;
  opacity: 1 !important;
}

/* Chill dark mode: kill Bootstrap's bright white label "pill" behind floating
   labels so it blends into the field instead of glowing. */
.dark-mode .form-floating > label::after {
  background-color: transparent !important;
}

/* Read-only computed field reads as calm/inert, not an editable input. */
.dark-mode .computed-field {
  background-color: #171d20;
  border-color: #333c42;
  color: #cdd4d8;
}

.computed-field {
  background-color: #f1eee7;
  cursor: default;
}

.dark-mode .title-input {
  background: transparent;
  border-bottom-color: #667179;
}

/* Chill dark mode: check tiles and member tiles were stark white. */
.dark-mode .check-tile,
.dark-mode .member-check {
  background: #1b2124;
  border-color: #3a4247;
  color: #dfe3e0;
}

/* Chill dark mode: soften the mirror-chrome button into muted brushed metal. */
.dark-mode .chrome-button {
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.05) 40%, rgba(0,0,0,.24) 42%, rgba(255,255,255,.07) 100%),
    linear-gradient(135deg, #7f8f9c, #46555f 38%, #93a1ac 54%, #313d46);
  border-color: #6f7d88;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 1px rgba(0,0,0,.32), 0 6px 16px rgba(0,0,0,.4);
  color: #f2f5f7;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
}

.dark-mode .song-table-wrap {
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}

.dark-mode .song-table {
  --bs-table-bg: #161c1f;
  --bs-table-color: #f4f7f8;
  --bs-table-border-color: #344047;
  color: #f4f7f8;
}

.dark-mode .song-table thead,
.dark-mode .song-table th {
  background: #232c31;
  color: #ffffff;
}

.dark-mode .song-table tbody tr,
.dark-mode .song-table td {
  background-color: #151a1d;
  color: #f4f7f8;
}

.dark-mode .song-table tbody tr:nth-child(even) td {
  background-color: #1a2024;
}

.dark-mode .song-table tbody tr:hover td {
  background: #26323a;
}

.dark-mode .tag-row span,
.dark-mode .detail-strip span,
.dark-mode .status-pill,
.dark-mode .member-pill,
.dark-mode .inline-pill,
.dark-mode .pill-toggle {
  background: #2b3135;
  border-color: #4b555c;
  color: #ece8df;
}

.dark-mode .section-title,
.dark-mode .wide-label,
.dark-mode .song-tabs,
.dark-mode .notation-tabs pre,
.dark-mode .notation-tabs textarea {
  color: #ffffff;
}

.dark-mode .pill-toggle.active,
.dark-mode .form-toggle.active {
  background: #d8c27a;
  border-color: #d8c27a;
  color: #151719;
}

.dark-mode .song-tabs .nav-tabs {
  border-bottom-color: #7f8990;
}

.dark-mode .song-tabs .nav-link {
  background: #151b1f;
  border-color: #5b666e;
  color: #ffffff;
}

.dark-mode .song-tabs .nav-link.active {
  background: #808080;
  border-color: #5c5c5c #5c5c5c #808080;
  color: #ffffff;
  -webkit-text-stroke: .35px #000;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.dark-mode .notation-tabs {
  background: #151b1f !important;
  border-color: #5b666e;
}

.dark-mode .song-file-control {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025) 45%, rgba(0,0,0,.18)),
    #151b1f;
  border-color: #5b666e;
}

.dark-mode .song-file-control.drag-active {
  border-color: #16d5ee;
  box-shadow:
    inset 0 0 0 2px rgba(22, 213, 238, .34),
    0 0 0 3px rgba(22, 213, 238, .12);
}

.dark-mode .song-file-table-wrap {
  border-color: #68757d;
}

.dark-mode .song-file-table th {
  background: #263039;
  color: #f3eee5;
}

.dark-mode .song-file-table td {
  border-bottom-color: #3f4a52;
}

.dark-mode .song-file-date,
.dark-mode .song-file-name-cell {
  color: #bac4cb;
}

.dark-mode .song-file-action {
  background: #0b1013;
  border-color: #3c454c;
  color: #ffffff;
}

.dark-mode .song-file-upload-box {
  border-color: #68757d;
}

.dark-mode .song-sound-pill {
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.06) 42%, rgba(0,0,0,.16) 43%, rgba(0,0,0,.28)),
    #293238;
  border-color: #68757d;
  color: #f3eee5;
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}

.dark-mode .detail-strip .color-0 { background: #4062bb; color: #ffffff; }
.dark-mode .detail-strip .color-1 { background: #d1495b; color: #ffffff; }
.dark-mode .detail-strip .color-2 { background: #edae49; color: #202124; }
.dark-mode .detail-strip .color-3 { background: #00798c; color: #ffffff; }
.dark-mode .detail-strip .color-4 { background: #7a8f53; color: #ffffff; }
.dark-mode .detail-strip .color-5 { background: #8f3985; color: #ffffff; }
.dark-mode .detail-strip .color-6 { background: #5f5b6b; color: #ffffff; }
.dark-mode .detail-strip .color-7 { background: #c8553d; color: #ffffff; }
.dark-mode .detail-strip .tempo-color-0 { background: #2f6fbd; color: #ffffff; }
.dark-mode .detail-strip .tempo-color-1 { background: #238b8d; color: #ffffff; }
.dark-mode .detail-strip .tempo-color-2 { background: #7a8f53; color: #ffffff; }
.dark-mode .detail-strip .tempo-color-3 { background: #d08a28; color: #202124; }
.dark-mode .detail-strip .tempo-color-4 { background: #c73d3d; color: #ffffff; }
.dark-mode .detail-strip .key-color-0 { background: #d33f3f; color: #ffffff; }
.dark-mode .detail-strip .key-color-1 { background: #e45f2b; color: #ffffff; }
.dark-mode .detail-strip .key-color-2 { background: #ee8a20; color: #202124; }
.dark-mode .detail-strip .key-color-3 { background: #f4b83b; color: #202124; }
.dark-mode .detail-strip .key-color-4 { background: #e3cf2f; color: #202124; }
.dark-mode .detail-strip .key-color-5 { background: #a7c94b; color: #202124; }
.dark-mode .detail-strip .key-color-6 { background: #4aa35c; color: #ffffff; }
.dark-mode .detail-strip .key-color-7 { background: #1f9a93; color: #ffffff; }
.dark-mode .detail-strip .key-color-8 { background: #3478d4; color: #ffffff; }
.dark-mode .detail-strip .key-color-9 { background: #5655b8; color: #ffffff; }
.dark-mode .detail-strip .key-color-10 { background: #7e45b5; color: #ffffff; }
.dark-mode .detail-strip .key-color-11 { background: #c23a91; color: #ffffff; }

.dark-mode .detail-strip .difficulty-Medium,
.dark-mode .detail-strip .difficulty-Hard {
  color: #151719 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.dark-mode .btn-outline-secondary,
.dark-mode .btn-outline-primary {
  border-color: #667179;
  color: #ece8df;
}

.dark-mode .btn-outline-secondary:hover,
.dark-mode .btn-outline-primary:hover {
  background: #303a40;
  color: #fffdf8;
}

.dark-mode .drag-song {
  background: #15191b;
  color: #ece8df;
}

.dark-mode .stat-card span,
.dark-mode .drag-song span,
.dark-mode .form-state-label,
.dark-mode .toggle-group > span {
  color: #b9c1c5;
}

.dark-mode .footer {
  background: #111416;
  border-color: #343b40 !important;
  color: #b9c1c5 !important;
}

.footer-build {
  color: #6b7378;
  font-size: .75rem;
  margin-left: .75rem;
}

.dark-mode .footer-build {
  color: #9aa3a9;
}

.nav-media-label {
  font-size: .85rem;
  font-weight: 700;
  margin-left: .4rem;
}

h1 {
  font-size: 2rem;
  margin: 0;
}

h2 {
  font-size: 1rem;
}

.navbar {
  background: #fffdf8 !important;
}

.main-nav-link {
  align-items: center;
  display: inline-flex;
  gap: .32rem;
  max-width: 8.2rem;
  white-space: nowrap;
}

.main-nav-link span {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.navbar-collapse,
.navbar-nav {
  min-width: 0;
}

.nav-menu-icon {
  color: #087e9b;
  fill: currentColor;
  flex: 0 0 auto;
  height: 1.05rem;
  width: 1.05rem;
}

.main-nav-link:hover .nav-menu-icon,
.main-nav-link:focus .nav-menu-icon {
  color: #d9a928;
}

.nav-mic-icon {
  overflow: visible;
}

.dark-mode .nav-menu-icon {
  color: #18f0ff;
}

.dark-mode .main-nav-link:hover .nav-menu-icon,
.dark-mode .main-nav-link:focus .nav-menu-icon {
  color: #fff2a4;
}

@media (max-width: 1180px) {
  .main-nav-link {
    max-width: 5.25rem;
  }
}

@media (max-width: 1030px) and (min-width: 576px) {
  .main-nav-link {
    flex-direction: column;
    gap: .1rem;
    justify-content: center;
    max-width: 4.6rem;
    padding-left: .35rem;
    padding-right: .35rem;
  }

  .main-nav-link span {
    font-size: .7rem;
    line-height: 1.1;
  }

  .nav-menu-icon {
    height: 1.2rem;
    width: 1.2rem;
  }

  .nav-media-label {
    display: none;
  }
}

.other-dashboard > .main-nav-link {
  background: transparent;
  border: 0;
}

.other-dashboard-menu {
  background: #fffdf8;
  border: 1px solid #d8d2c6;
  border-radius: .75rem;
  box-shadow: 0 14px 32px rgba(36, 44, 49, .2);
  min-width: 23rem;
  padding: .75rem;
}

.other-dashboard-title {
  color: #56626b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  margin: 0 0 .55rem .15rem;
  text-transform: uppercase;
}

.other-dashboard-grid {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(4.75rem, 1fr));
}

.other-dashboard-card {
  align-items: center;
  background: #f5f1e8;
  border: 1px solid #ddd5c7;
  border-radius: .6rem;
  color: #26343b;
  display: flex;
  flex-direction: column;
  font-size: .78rem;
  font-weight: 750;
  gap: .35rem;
  justify-content: center;
  min-height: 4.8rem;
  padding: .6rem .4rem;
  text-decoration: none;
}

.other-dashboard-count {
  background: #087e9b;
  border-radius: 999px;
  color: #fff;
  font-size: .68rem;
  line-height: 1.2;
  min-width: 1.35rem;
  padding: .13rem .35rem;
  text-align: center;
}

.dark-mode .other-dashboard-count {
  background: #18d2e9;
  color: #101719;
}

.other-dashboard-card svg {
  color: #087e9b;
  fill: currentColor;
  height: 1.55rem;
  width: 1.55rem;
}

.other-dashboard-card:hover,
.other-dashboard-card:focus {
  background: #fff7db;
  border-color: #d9a928;
  color: #18262d;
}

.other-dashboard-card:hover svg,
.other-dashboard-card:focus svg { color: #b98500; }

.dark-mode .other-dashboard-menu {
  background: #171d20;
  border-color: #465158;
}

.dark-mode .other-dashboard-title { color: #adb7bd; }

.dark-mode .other-dashboard-card {
  background: #252d32;
  border-color: #4d5961;
  color: #f1eee8;
}

.dark-mode .other-dashboard-card svg { color: #18f0ff; }

.dark-mode .other-dashboard-card:hover,
.dark-mode .other-dashboard-card:focus {
  background: #334149;
  border-color: #fff2a4;
  color: #fff;
}

@media (max-width: 575.98px) {
  .other-dashboard-menu { min-width: min(23rem, calc(100vw - 2rem)); }
}

.settings-menu {
  align-items: center;
  display: flex;
}

.nav-media-button {
  flex: 0 0 auto;
  height: 2.6rem;
  margin-right: .65rem;
  padding-left: 1rem;
  padding-right: 1rem;
  width: auto;
}

.song-view-nav {
  align-items: center;
  display: inline-flex;
  gap: .4rem;
  margin-right: .65rem;
}

.settings-gear-button {
  color: #38423d;
}

.settings-panel {
  background: #fffdf8;
  border: 1px solid #ded8ca;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(32, 33, 36, .18);
  min-width: 16rem;
  padding: 1rem;
}

.settings-panel h2 {
  font-size: .95rem;
  font-weight: 800;
  margin: 0 0 .75rem;
}

.settings-toggle-row {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.settings-toggle-row span {
  font-weight: 700;
}

.settings-zoom-select {
  max-width: 4.75rem;
}

.settings-link {
  border-top: 1px solid #ece7db;
  color: #1c2630;
  display: block;
  font-weight: 700;
  margin-top: .75rem;
  padding-top: .75rem;
  text-decoration: none;
}

.settings-link:hover,
.settings-link:focus {
  text-decoration: underline;
}

.dark-mode .settings-link {
  border-top-color: #3a4247;
  color: #ece8df;
}

.dashboard-hero,
.page-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: .75rem 0;
}

.compact-heading {
  margin: .5rem 0 .75rem;
}

.dashboard-hero {
  background: #122620;
  border-radius: 8px;
  color: #fffdf8;
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.dashboard-hero::before {
  background: url("../img/bandcaptain-square-transparent.svg") center / contain no-repeat;
  content: "";
  inset: -5rem -2rem -5rem auto;
  opacity: .2;
  position: absolute;
  width: min(42vw, 34rem);
}

.dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero p,
.page-heading p {
  margin: .35rem 0 0;
  max-width: 58rem;
}

.song-read-heading {
  align-items: flex-start;
  margin: 0;
  /* Measured: shaded-region top (navbar border) -> title glyph must be 32px.
     navbar mb-3 (16px) + this padding (8px) + the h1's ~8px half-leading = 32px. */
  padding-top: .5rem;
}

.song-read-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.song-read-meta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
}

.song-read-meta-row .song-read-artist {
  flex: 0 1 auto;
}

.song-read-meta-row .song-read-strip {
  gap: .35rem;
  margin: .35rem 0 0;
}

.spotify-play-button.btn {
  align-items: center;
  background: #1ed760;
  border-color: #149a45;
  border-radius: 999px;
  color: #08150d;
  display: inline-flex;
  font-weight: 800;
  gap: .35rem;
  line-height: 1;
  padding: .34rem .72rem;
  text-shadow: none;
}

.spotify-play-button.btn:hover,
.spotify-play-button.btn:focus {
  background: #33e372;
  border-color: #18a84e;
  color: #061109;
}

.spotify-play-button .solid-icon {
  height: .92rem;
  width: .92rem;
}

.spotify-play-button.loading {
  opacity: .72;
}

.spotify-inline-button.btn {
  margin-left: .4rem;
  padding: .25rem .58rem;
}

.song-spotify-embed {
  flex: 1 0 100%;
  margin-top: .45rem;
  max-width: 38rem;
}

.song-spotify-embed iframe {
  border: 0;
  border-radius: 8px;
  display: block;
  height: 152px;
  width: 100%;
}

.dark-mode .spotify-play-button.btn,
.dark-mode .spotify-play-button.btn:hover,
.dark-mode .spotify-play-button.btn:focus {
  background: #1ed760;
  border-color: #2df176;
  color: #07120a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px rgba(0, 0, 0, .28);
}

.song-read-meta-row .readiness-pill-spacer {
  display: none;
}

.hero-actions,
.button-row,
.tag-row,
.header-actions,
.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tag-row {
  align-items: center;
}

.header-actions {
  align-items: center;
}

.form-state-label {
  color: #5f5b55;
  font-size: .95rem;
  font-weight: 700;
}

.toggle-group {
  align-items: center;
  grid-column: span 2;
}

.toggle-group > span {
  color: #5f5b55;
  font-size: .82rem;
  font-weight: 700;
  margin-right: .25rem;
  text-transform: uppercase;
}

.pill-toggle {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.35) 42%, rgba(0,0,0,.04) 43%, rgba(0,0,0,.08) 100%),
    #fffdf8;
  border: 1px solid #cfc6b4;
  border-radius: 999px;
  color: #38423d;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 700;
  gap: .25rem;
  min-height: 1.85rem;
  padding: .25rem .7rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 2px rgba(0, 0, 0, .12),
    0 2px 4px rgba(32, 33, 36, .08);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}

.pill-toggle.active {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04) 38%, rgba(0,0,0,.18) 42%, rgba(0,0,0,.08) 100%),
    #122620;
  border-color: #122620;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .35),
    inset 0 -1px 1px rgba(255, 255, 255, .18),
    0 1px 2px rgba(32, 33, 36, .16);
  color: #fffdf8;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
  transform: translateY(1px);
}

.sort-pill-toggle {
  font-size: .78rem;
  min-height: 1.75rem;
  padding: .18rem .58rem;
}

.star-pill-toggle {
  justify-content: center;
  width: 2.2rem;
}

.stat-grid,
.song-grid,
.form-grid,
.notation-grid,
.content-columns,
.builder-layout,
.member-grid,
.response-grid {
  display: grid;
  gap: 1rem;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.stat-card,
.song-card,
.content-columns article,
.calendar-item,
.response-grid form {
  background: #fffdf8;
  border: 1px solid #ded8ca;
  border-radius: 8px;
  color: inherit;
  padding: 1rem;
  text-decoration: none;
}

.stat-card span,
.drag-song span {
  color: #666;
  display: block;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
}

.filter-bar,
.people-form {
  background: #fffdf8;
  border: 1px solid #ded8ca;
  border-radius: 8px;
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  margin-bottom: 1rem;
  padding: .55rem .7rem;
}

.song-view-button {
  height: 2.35rem;
  width: 2.35rem;
}

.song-view-button.active {
  border-color: #122620;
  box-shadow:
    inset 0 2px 5px rgba(30, 38, 48, .4),
    inset 0 -1px 1px rgba(255, 255, 255, .55),
    0 5px 14px rgba(32, 33, 36, .16);
  color: #122620;
  transform: translateY(1px);
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}

.song-filter-section {
  grid-column: 1 / -1;
}

.song-filter-section[open] {
  align-items: center;
  display: grid;
  gap: .5rem .7rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.filter-section > summary {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  gap: .45rem;
  letter-spacing: 0;
  list-style: none;
  text-transform: uppercase;
  user-select: none;
}

.filter-section > summary::-webkit-details-marker {
  display: none;
}

.filter-section > summary::before {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  display: inline-block;
  height: .45rem;
  transform: rotate(-45deg);
  transition: transform .15s ease;
  width: .45rem;
}

.filter-section[open] > summary::before {
  transform: rotate(45deg);
}

.filter-section:not([open]) .toggle-group {
  display: none;
}

.filter-section:not([open]) .filter-fields {
  display: none;
}

.filter-section:not([open]) .filter-color-row {
  display: none;
}

.filter-section:not([open]) .filter-controls-row {
  display: none;
}

.filter-controls-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
  min-width: 0;
}

.filter-row-break {
  flex-basis: 100%;
  height: 0;
}

.filter-subhead {
  color: #5f5b55;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-pill-group {
  align-items: flex-start;
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}

.filter-pill-group .toggle-group {
  gap: .35rem;
  grid-column: auto;
}

.filter-color-group {
  flex: 0 1 auto;
}

.filter-sort-group {
  flex: 1 1 20rem;
  margin-left: .5rem;
}

.dark-mode .filter-subhead {
  color: #b9c1c5;
}

.song-search-filter {
  flex: 1 1 13rem;
  min-width: 13rem;
}

.filter-controls-row .form-select {
  flex: 0 1 9.5rem;
}

.tempo-filter {
  max-width: 8rem;
}

.key-filter {
  flex: 0 0 4.5rem;
  max-width: 4.5rem;
}

.input-validation-error,
.form-control.input-validation-error,
.form-select.input-validation-error {
  border-color: #c73d3d;
  box-shadow: 0 0 0 .15rem rgba(199, 61, 61, .15);
}

.app-toast {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(32, 33, 36, .18);
  color: white;
  max-width: 26rem;
  padding: .85rem 1rem;
  position: fixed;
  right: 1rem;
  top: 1rem;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 2000;
}

.success-toast { background: #2f7d4f; }
.error-toast { background: #b33636; }
.app-toast.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-.5rem);
}

.song-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.song-card {
  border-left: 8px solid #d6d2c8;
  position: relative;
}

.clickable-card {
  cursor: pointer;
  min-height: 14rem;
  padding-bottom: 3.75rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.clickable-card:hover,
.clickable-card:focus {
  box-shadow: 0 8px 24px rgba(32, 33, 36, .08);
  transform: translateY(-1px);
}

.card-actions {
  align-items: center;
  bottom: 1rem;
  display: flex;
  gap: .4rem;
  position: absolute;
  right: 1rem;
  z-index: 2;
}

.card-actions form {
  margin: 0;
}

.song-row-actions {
  align-items: center;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: .3rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.song-row-actions form,
.card-actions form {
  flex: 0 0 auto;
}

.card-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  font-size: 1rem;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 2rem;
}

.icon-button.btn:hover,
.icon-button.btn:focus {
  background: #ece7db;
  box-shadow: none;
}

.icon-text-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  height: 2.4rem;
  justify-content: center;
  padding: 0;
  width: 2.4rem;
}

.icon-text-button.btn:hover,
.icon-text-button.btn:focus {
  background: #ece7db;
  box-shadow: none;
}

.save-icon-button {
  background: #122620;
  color: #fffdf8;
}

.save-icon-button.btn:hover,
.save-icon-button.btn:focus {
  background: #1f3f36;
  color: #fffdf8;
}

.chrome-icon-button {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.25) 37%, rgba(60,70,82,.16) 38%, rgba(255,255,255,.26) 100%),
    linear-gradient(180deg, #ffffff 0%, #eef3f8 44%, #b9c5d1 50%, #f4f7fb 100%);
  border: 1px solid #9aa6b3;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,1),
    inset 0 -2px 4px rgba(65,78,94,.28),
    0 8px 18px rgba(32,33,36,.18);
  color: #202832;
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 3rem;
}

.chrome-icon-button:hover,
.chrome-icon-button:focus {
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.32) 38%, rgba(60,70,82,.14) 39%, rgba(255,255,255,.3) 100%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 44%, #ccd6e1 50%, #ffffff 100%);
  color: #111820;
}

.nav-media-button.chrome-icon-button {
  padding-left: 1rem;
  padding-right: 1rem;
  width: auto;
}

.song-view-nav .song-view-button.chrome-icon-button {
  height: 2.35rem;
  width: 2.35rem;
}

.solid-icon {
  display: block;
  fill: currentColor;
  height: 1.15rem;
  width: 1.15rem;
}

.song-nav-rail {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex: 0 0 auto;
  gap: .5rem;
  justify-content: center;
  margin: 0 0 0 .75rem;
  position: relative;
  top: 0;
}

.song-bottom-navigation {
  align-items: center;
  bottom: 1rem;
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  max-width: calc(100vw - 2rem);
  position: fixed;
  right: 1rem;
  z-index: 1085;
}

.song-bottom-next-title {
  color: #42484d;
  font-size: 1.35rem;
  font-weight: 800;
  max-width: min(24rem, calc(100vw - 8rem));
  opacity: .5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-brand-visible .song-bottom-navigation {
  bottom: 4.9rem;
}

.dark-mode .song-bottom-next-title {
  color: #e6eaed;
}

.song-nav-button,
.song-read-heading .icon-text-button {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 24%, #dfe5ed 48%, #b5c0cc 51%, #e8edf3 100%);
  border: 1px solid #a6adb9;
  color: #2b3038;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(70, 80, 95, 0.35),
    0 3px 5px rgba(18, 22, 32, 0.30),
    0 1px 2px rgba(18, 22, 32, 0.20);
  transition: box-shadow .12s ease, transform .06s ease, background .12s ease;
}

.song-nav-button {
  border-radius: 10px;
  height: 3rem;
  position: relative;
  width: 3rem;
}

.song-quick-menu {
  display: none;
}

.song-quick-menu-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(241,244,248,.98)),
    #ffffff;
  border: 1px solid #a6adb9;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(18, 22, 32, .28);
  min-width: 12rem;
  padding: .4rem;
}

.song-quick-menu-panel .dropdown-item {
  align-items: center;
  border-radius: 6px;
  color: #2b3038;
  display: flex;
  font-weight: 700;
  gap: .65rem;
  padding: .55rem .65rem;
}

.song-quick-menu-panel .dropdown-item:hover,
.song-quick-menu-panel .dropdown-item:focus {
  background: #edf1f5;
  color: #111820;
}

.song-quick-menu-icon {
  display: block;
  fill: currentColor;
  flex: 0 0 auto;
  height: 1.15rem;
  width: 1.15rem;
}

.song-read-heading .icon-text-button {
  border-radius: 9px;
  height: 2.6rem;
  width: 2.6rem;
}

.song-read-heading .song-nav-rail .song-fullscreen-toggle {
  border-radius: 10px;
  height: 3rem;
  width: 3rem;
}

.song-read-heading .song-nav-rail .song-teleprompter-toggle {
  border-radius: 10px;
  height: 3rem;
  width: 3rem;
}

.song-read-heading .song-nav-rail .song-teleprompter-toggle:not(.active):not(.paused) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.2) 43%, rgba(113,79,12,.13) 45%, rgba(255,255,255,.12)),
    #d8bd72;
  border-color: #b99a4d;
}

.song-nav-button:hover,
.song-nav-button:focus,
.song-read-heading .icon-text-button.btn:hover,
.song-read-heading .icon-text-button.btn:focus {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 26%, #e8edf3 49%, #c4ced9 52%, #f0f4f8 100%);
  color: #1b1f26;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 -2px 3px rgba(70, 80, 95, 0.30),
    0 4px 8px rgba(18, 22, 32, 0.34),
    0 1px 2px rgba(18, 22, 32, 0.22);
}

.song-nav-button:active,
.song-read-heading .icon-text-button.btn:active {
  background: linear-gradient(180deg, #d3d8df 0%, #c2c8d1 50%, #d9dde3 100%);
  box-shadow:
    inset 0 2px 4px rgba(38, 45, 58, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 1px 1px rgba(18, 22, 32, 0.20);
  transform: translateY(1px);
}

.song-nav-button.disabled,
.song-nav-button:disabled {
  background: linear-gradient(180deg, #e9eaec 0%, #d6d8dc 52%, #e4e6e9 100%);
  border-color: #c3c6cc;
  color: #a7abb2;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    0 1px 1px rgba(18, 22, 32, 0.10);
  cursor: not-allowed;
  opacity: .68;
}

.song-zoom-button.show-zoom-level .nav-icon {
  display: none;
}

.song-zoom-button.show-zoom-level::after {
  content: attr(data-zoom-feedback);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
}

.song-teleprompter-toggle .teleprompter-pause-icon {
  display: none;
}

.song-teleprompter-toggle.active .teleprompter-play-icon {
  display: none;
}

.song-teleprompter-toggle.active .teleprompter-pause-icon {
  display: block;
}

.song-teleprompter-toggle.active {
  background:
    linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,.12) 40%, rgba(0,0,0,.12) 42%, rgba(255,255,255,.1) 100%),
    linear-gradient(180deg, #55c878 0%, #2f9653 46%, #1f6f3b 52%, #42b96a 100%);
  border-color: #66d988;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .42);
}

.song-teleprompter-running:not(.song-page-fullscreen) .song-teleprompter-toggle {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .55),
    inset 0 -2px 4px rgba(0, 0, 0, .28),
    0 6px 18px rgba(18, 22, 32, .38);
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 1100;
}

@media (max-width: 575px) {
  .song-teleprompter-running:not(.song-page-fullscreen) .song-teleprompter-toggle {
    right: .65rem;
    top: .65rem;
  }
}

.song-recorder-controls {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
}

.song-recorder-controls:not(.is-recording):not(.is-paused) .song-record-pause-button,
.song-recorder-controls:not(.is-recording):not(.is-paused) .song-record-stop-button {
  display: none;
}

.song-recorder-controls.is-recording .song-record-button,
.song-recorder-controls.is-paused .song-record-button {
  background:
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.1) 44%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.2)),
    #c83d3d;
  border-color: #8f2525;
  color: #ffffff;
  text-shadow: none;
}

.song-recorder-controls.is-paused .song-record-pause-button {
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.16) 44%, rgba(0,0,0,.08) 45%, rgba(0,0,0,.17)),
    #d79429;
  border-color: #9d6417;
  color: #17120a;
}

.song-record-pause-button .recorder-resume-icon {
  display: none;
}

.song-record-pause-button.is-paused .recorder-pause-icon {
  display: none;
}

.song-record-pause-button.is-paused .recorder-resume-icon {
  display: block;
}

.song-recorder-toast:empty {
  display: none;
}

.admin-database-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-database-panel {
  border: 1px solid #b9c2c9;
  border-radius: 8px;
  padding: 1rem;
}

.admin-database-panel h2 {
  font-size: 1.35rem;
  margin: 0 0 .45rem;
}

.admin-database-facts {
  display: grid;
  gap: .35rem .75rem;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 1rem 0;
}

.admin-database-facts dt {
  font-weight: 900;
}

.admin-database-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-database-upload {
  display: grid;
  gap: .75rem;
}

.admin-database-action {
  align-items: center;
  display: inline-flex;
  gap: .45rem;
}

.danger-panel {
  border-color: #ca9a41;
}

.danger-action {
  background:
    linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.16) 44%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.18)),
    #d79429;
  color: #14100a;
}

@media (max-width: 760px) {
  .admin-database-grid {
    grid-template-columns: 1fr;
  }
}

.teleprompter-speed-label {
  align-items: center;
  background: rgba(10, 15, 18, .7);
  border-radius: 999px;
  bottom: .18rem;
  color: #ffffff;
  display: inline-flex;
  font-size: .58rem;
  font-weight: 800;
  height: .86rem;
  justify-content: center;
  line-height: 1;
  min-width: 1.16rem;
  padding: 0 .18rem;
  position: absolute;
  right: .18rem;
  text-shadow: none;
}

.song-read-heading .icon-text-button.song-save-button,
.song-save-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(255, 210, 210, .44) 28%, rgba(133, 16, 28, .12) 48%, rgba(82, 6, 16, .32) 51%, rgba(236, 74, 86, .5) 100%),
    #b91528;
  border-color: #f1a0a8 #82101e #5c0712;
  color: #fff8f8;
  text-shadow: 0 1px 0 rgba(80, 0, 0, .75);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .9),
    inset 0 -2px 4px rgba(63, 0, 10, .55),
    0 3px 7px rgba(64, 0, 12, .34),
    0 1px 2px rgba(18, 22, 32, .25);
}

.song-read-heading .icon-text-button.song-save-button:hover,
.song-read-heading .icon-text-button.song-save-button:focus,
.song-save-button:hover,
.song-save-button:focus {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 225, 225, .54) 28%, rgba(156, 18, 34, .12) 48%, rgba(96, 6, 18, .28) 51%, rgba(255, 91, 103, .58) 100%),
    #cf1d32;
  color: #ffffff;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .95),
    inset 0 -2px 4px rgba(63, 0, 10, .45),
    0 4px 10px rgba(94, 0, 18, .38),
    0 1px 2px rgba(18, 22, 32, .26);
}

.song-read-heading .icon-text-button.song-save-button:active,
.song-save-button:active {
  background:
    linear-gradient(180deg, rgba(92, 4, 14, .7), rgba(196, 32, 48, .88) 48%, rgba(255, 149, 158, .32)),
    #981322;
  box-shadow:
    inset 0 2px 5px rgba(40, 0, 8, .65),
    inset 0 1px 1px rgba(255, 255, 255, .25),
    0 1px 1px rgba(18, 22, 32, .2);
}

.nav-icon {
  height: 2rem;
  width: 2rem;
}

.song-table-wrap {
  background: #fffdf8;
  border: 1px solid #ded8ca;
  border-radius: 8px;
  overflow-x: auto;
}

.song-table {
  margin-bottom: 0;
}

.song-table tbody tr {
  box-shadow: inset -8px 0 0 #d6d2c8;
}

.song-table tbody tr:hover {
  background: #fff7cc;
  cursor: pointer;
}

.table-sort {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-align: left;
}

.song-file-indicator {
  align-items: center;
  color: #0b7f91;
  display: inline-flex;
  height: 1.25rem;
  justify-content: center;
  margin-left: .3rem;
  vertical-align: text-bottom;
  width: 1.25rem;
}

.song-file-indicator .solid-icon {
  height: 1rem;
  width: 1rem;
}

.song-card-key-wrap {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
}

.song-card-title,
.calendar-item {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}

.song-card-title h2 {
  font-size: 1.15rem;
  margin: 0;
}

/* Admin-only controls, revealed by the Settings "Admin mode" toggle. */
.admin-only {
  display: none !important;
}

.admin-mode .admin-only {
  display: inline-flex !important;
}

.practice-only {
  display: none !important;
}

.practice-mode .practice-only {
  display: list-item !important;
}

.practice-mode .practice-only.main-nav-link,
.practice-mode .practice-only .main-nav-link {
  display: inline-flex !important;
}

.practice-toggle {
  align-items: center;
  background: #fff7d7;
  border: 1px solid #e1cc75;
  border-radius: 8px;
  color: #26342f;
  display: none;
  font-weight: 800;
  gap: .45rem;
  padding: .35rem .6rem;
}

.practice-mode .practice-toggle {
  display: inline-flex;
}

.practice-toggle input {
  accent-color: #087e9b;
}

.member-readiness-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: -.2rem 0 .75rem;
}

.member-readiness-form label {
  color: #5f5a50;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.member-readiness-form .form-select {
  min-width: 13.5rem;
  width: auto;
}

.dark-mode .practice-toggle {
  background: #25313a;
  border-color: #596873;
  color: #f4f7f8;
}

.dark-mode .member-readiness-form label {
  color: #c9d1d7;
}

/* Collapsible setlist sections (filters, Done) that remember their state. */
.setlist-collapse {
  margin: 1rem 0;
}

.setlist-collapse > summary {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: .5rem;
  list-style: none;
  padding: .35rem 0;
  user-select: none;
}

.setlist-collapse > summary::-webkit-details-marker {
  display: none;
}

.setlist-collapse > summary::before {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  display: inline-block;
  height: .45rem;
  transform: rotate(-45deg);
  transition: transform .15s ease;
  width: .45rem;
}

.setlist-collapse[open] > summary::before {
  transform: rotate(45deg);
}

.setlist-collapse[open] > summary {
  margin-bottom: .5rem;
}

.setlist-done-panel {
  margin-top: 1.5rem;
}

.setlist-done-count {
  background: #d8c27a;
  border-radius: 999px;
  color: #151719;
  font-size: .8rem;
  font-weight: 700;
  padding: .05rem .5rem;
}

.setlist-done-panel > summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.setlist-clear-done-form {
  display: inline-flex;
  margin: 0 0 0 .1rem;
}

.setlist-clear-done-pill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .54), rgba(255, 255, 255, .12) 44%, rgba(0, 0, 0, .1) 45%, rgba(0, 0, 0, .18)),
    #e68125;
  border: 1px solid #ad5d15;
  border-radius: 999px;
  color: #1e1308;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.15;
  padding: .14rem .62rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .28);
}

.setlist-clear-done-pill:hover,
.setlist-clear-done-pill:focus {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .64), rgba(255, 255, 255, .16) 44%, rgba(0, 0, 0, .08) 45%, rgba(0, 0, 0, .14)),
    #f19635;
}

.setlist-song-filters {
  align-items: center;
  flex-wrap: wrap;
}

.setlist-order-reset.is-view-modified:not(:disabled) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.2) 43%, rgba(113,79,12,.13) 45%, rgba(255,255,255,.12)),
    #d8bd72;
  border-color: #b99a4d;
  color: #3f2d08;
}

.setlist-reset-header {
  background: inherit;
  min-width: 3.6rem;
  position: sticky;
  right: 0;
  text-align: right;
  z-index: 3;
}

.setlist-reset-header .setlist-order-reset {
  display: inline-flex;
}

.dark-mode .setlist-order-reset.is-view-modified:not(:disabled) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.08) 43%, rgba(0,0,0,.16) 45%, rgba(255,255,255,.05)),
    #a57e25;
  border-color: #d1ac50;
  color: #fff5ce;
}

.setlist-artist-filter {
  min-width: 8.5rem;
  width: auto;
}

.setlist-member-filter {
  align-items: center;
  background: #f5f1e8;
  border: 1px solid #c9c2b5;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  gap: .25rem;
  padding: .22rem .48rem;
}

.setlist-member-filter:has(input:checked) {
  background: #315f91;
  border-color: #244a73;
  color: #fff;
}

.setlist-member-filter input {
  height: .85rem;
  margin: 0;
  width: .85rem;
}

.dark-mode .setlist-member-filter {
  background: #293238;
  border-color: #68757d;
}

.dark-mode .setlist-member-filter:has(input:checked) {
  background: #3f78ad;
  border-color: #72a5d2;
}

/* "Done" checkbox on setlist rows/cards. */
.setlist-check-col {
  text-align: center;
  width: 2.6rem;
}

.setlist-actions-col {
  width: 3rem;
}

.setlist-done-col {
  text-align: right;
  width: 10rem;
}

.setlist-done-actions {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.setlist-edit-action {
  flex: 0 0 auto;
  margin-right: 20px;
}

.setlist-check {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #9a938a;
  cursor: pointer;
  line-height: 0;
  padding: .2rem;
}

.setlist-check svg {
  height: 1.4rem;
  width: 1.4rem;
}

.setlist-check .box {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.setlist-check .tick {
  opacity: 0;
}

.setlist-check:hover,
.setlist-check:focus {
  background: rgba(0, 0, 0, .06);
  color: #4aa35c;
}

.setlist-check.checked {
  color: #4aa35c;
}

.setlist-check.checked .box {
  fill: currentColor;
}

.setlist-check.checked .tick {
  opacity: 1;
  stroke: #fff;
}

.song-card-check {
  background: transparent;
  border: 0;
  flex: 0 0 auto;
  padding: 0;
}

.setlist-done-pill {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .24) 44%, rgba(0, 0, 0, .08) 45%, rgba(0, 0, 0, .14)),
    #f2eee6;
  border: 1px solid #aeb5b8;
  border-radius: 999px;
  color: #2d3438;
  cursor: pointer;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  gap: .28rem;
  line-height: 1;
  min-height: 1.8rem;
  padding: .28rem .62rem;
  text-shadow: none;
  white-space: nowrap;
}

.setlist-done-pill svg {
  height: .95rem;
  opacity: .45;
  width: .95rem;
}

.setlist-done-pill.checked {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .1) 44%, rgba(0, 0, 0, .1) 45%, rgba(0, 0, 0, .18)),
    #35a853;
  border-color: #2b8944;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .38);
}

.setlist-done-pill.checked svg {
  opacity: 1;
}

.dark-mode .setlist-check {
  color: #8b949b;
}

.dark-mode .setlist-check:hover,
.dark-mode .setlist-check:focus {
  background: rgba(255, 255, 255, .08);
  color: #62c07a;
}

.dark-mode .setlist-check.checked {
  color: #4aa35c;
}

.dark-mode .setlist-done-pill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06) 44%, rgba(0, 0, 0, .16) 45%, rgba(0, 0, 0, .28)),
    #293238;
  border-color: #68757d;
  color: #f3eee5;
}

.dark-mode .setlist-done-pill.checked {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .08) 44%, rgba(0, 0, 0, .1) 45%, rgba(0, 0, 0, .18)),
    #39a85a;
  border-color: #68d985;
  color: #ffffff;
}

.dark-mode .setlist-clear-done-pill {
  border-color: #f0a85a;
}

.tag-row span,
.detail-strip span,
.status-pill,
.member-pill,
.inline-pill {
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.24) 44%, rgba(0,0,0,.08) 45%, rgba(0,0,0,.16)),
    #ece7db;
  border-radius: 999px;
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  padding: .2rem .58rem;
  position: relative;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

.tag-row span,
.detail-strip span,
.inline-pill {
  border-left: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(0, 0, 0, .16),
    0 1px 1px rgba(0, 0, 0, .14),
    0 5px 12px rgba(75, 60, 36, .12);
}

.inline-pill {
  margin-left: .35rem;
}

.song-title-with-readiness {
  align-items: center;
  display: flex;
  gap: .5rem;
  justify-content: space-between;
}

.readiness-pill-group {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}

.readiness-pill-spacer {
  flex: 1 1 auto;
  min-width: .5rem;
}

.readiness-pill-form {
  display: inline-flex;
  margin: 0;
}

.tempo-pill-editor {
  display: inline-flex;
  margin: 0;
}

.tempo-pill-editor-trigger,
.tempo-pill-input {
  border: 0;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(0, 0, 0, .16),
    0 1px 1px rgba(0, 0, 0, .14),
    0 5px 12px rgba(75, 60, 36, .12);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
  padding: .2rem .58rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

.tempo-pill-editor-trigger {
  cursor: pointer;
}

.tempo-pill-input {
  box-sizing: content-box;
  outline: 2px solid rgba(255, 255, 255, .85);
  text-align: center;
  width: 3ch;
}

.start-cue-pill-form {
  display: inline-flex;
  margin: 0;
}

.start-cue-pill {
  appearance: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.2) 42%, rgba(0,0,0,.16) 43%, rgba(0,0,0,.28)),
    #755ca8;
  border: 0;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .58),
    inset 0 -1px 0 rgba(0, 0, 0, .2),
    0 1px 1px rgba(0, 0, 0, .16),
    0 5px 13px rgba(75, 60, 36, .14);
  color: #fff;
  cursor: pointer;
  field-sizing: content;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
  min-height: 1.58rem;
  padding: .18rem calc(.65rem + 5px);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
  width: auto;
}

.start-cue-pill option {
  background: #f4efe4;
  color: #12181c;
  font-weight: 800;
}

.song-equipment-editor {
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(111, 101, 83, .28);
  border-radius: 1rem;
  margin: 1rem 0;
  padding: .85rem;
}

.song-equipment-header {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
}

.song-equipment-header::-webkit-details-marker { display: none; }
.song-equipment-editor[open] .song-equipment-header { margin-bottom: .7rem; }
.song-equipment-chevron { margin-left: auto; transition: transform .15s ease; }
.song-equipment-editor[open] .song-equipment-chevron { transform: rotate(180deg); }

.song-equipment-header h2 {
  font-size: 1.05rem;
  margin: 0;
}

.song-equipment-header span {
  color: #6a645a;
  font-size: .84rem;
}

.song-equipment-people {
  display: grid;
  gap: .7rem;
}

.song-equipment-person {
  border: 0;
  border-top: 1px solid rgba(111, 101, 83, .2);
  margin: 0;
  padding: .6rem 0 0;
}

.song-equipment-person legend {
  float: none;
  font-size: .88rem;
  font-weight: 800;
  margin: 0 0 .4rem;
  width: auto;
}

.song-equipment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
}

.song-equipment-tag input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.song-equipment-tag span {
  background: #e0ddd5;
  border: 1px solid #aaa398;
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  font-size: .78rem;
  font-weight: 750;
  padding: .22rem .55rem;
}

.song-equipment-tag input:checked + span {
  background: #2b8790;
  border-color: #17636b;
  color: #fff;
}

.song-equipment-tag input:focus-visible + span {
  outline: 3px solid rgba(43, 135, 144, .35);
  outline-offset: 2px;
}

.dark-mode .song-equipment-editor {
  background: rgba(255, 255, 255, .04);
  border-color: #465058;
}

.dark-mode .song-equipment-header span { color: #b7bec3; }
.dark-mode .song-equipment-person { border-top-color: #3d474e; }
.dark-mode .song-equipment-tag span {
  background: #293239;
  border-color: #59656d;
  color: #eef1f2;
}

.readiness-select {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  field-sizing: content;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  max-width: none;
  min-height: 1.58rem;
  min-width: 0;
  padding: .18rem .58rem;
  position: relative;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  text-overflow: clip;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .58),
    inset 0 -1px 0 rgba(0, 0, 0, .2),
    0 1px 1px rgba(0, 0, 0, .16),
    0 5px 13px rgba(75, 60, 36, .14);
  width: auto;
}

.readiness-select-member {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .58),
    inset 0 -1px 0 rgba(0, 0, 0, .22),
    0 1px 1px rgba(0, 0, 0, .18),
    0 5px 13px rgba(75, 60, 36, .14);
}

.readiness-select-song {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .58),
    inset 0 -1px 0 rgba(0, 0, 0, .22),
    0 1px 1px rgba(0, 0, 0, .18),
    0 5px 13px rgba(75, 60, 36, .14);
}

.readiness-empty {
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.2) 42%, rgba(0,0,0,.16) 43%, rgba(0,0,0,.34)),
    #43505a !important;
  color: #f5f0e8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}

.readiness-select option {
  background: #f4efe4;
  color: #12181c;
  font-weight: 800;
}

.readiness-select option:checked {
  background: #cbd5dc;
  color: #101417;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1rem;
}

.song-edit-form .compact-heading {
  margin-bottom: .35rem;
}

.song-version-history {
  background: #eef2f4;
  border: 1px solid #b8c2c8;
  border-radius: 8px;
  margin: .45rem 0 .7rem;
}

.song-version-history summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 900;
  gap: .45rem;
  padding: .6rem .75rem;
}

.song-version-history summary .solid-icon {
  height: 1.1rem;
  width: 1.1rem;
}

.song-version-count {
  align-items: center;
  background: #273139;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .72rem;
  height: 1.35rem;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 .35rem;
}

.song-version-history ul {
  border-top: 1px solid #cbd3d8;
  list-style: none;
  margin: 0;
  padding: .35rem;
}

.song-version-history li + li {
  border-top: 1px solid #d5dce0;
}

.song-version-history a {
  display: flex;
  gap: .5rem;
  justify-content: space-between;
  padding: .5rem;
  text-decoration: none;
}

.song-version-title { font-weight: 800; }
.song-version-meta { color: #59656d; font-size: .8rem; }

.song-version-snapshot-banner {
  align-items: center;
  background: #fff2c7;
  border: 1px solid #d5ad36;
  border-radius: 8px;
  color: #3e3109;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  margin-bottom: .75rem;
  padding: .55rem .75rem;
}

.song-version-snapshot-banner a {
  font-weight: 800;
  margin-left: auto;
}

.dark-mode .song-version-history {
  background: #20282d;
  border-color: #536068;
}

.dark-mode .song-version-history ul,
.dark-mode .song-version-history li + li {
  border-color: #465159;
}

.dark-mode .song-version-meta { color: #bac4ca; }

.dark-mode .song-version-snapshot-banner {
  background: #493d18;
  border-color: #a9892e;
  color: #fff2bf;
}

.song-edit-form .form-grid {
  gap: .6rem .75rem;
  margin-bottom: .55rem;
}

.song-metadata-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.song-field-artist { grid-column: span 3; }
.song-field-start { min-width: calc(100% + 10px); position: relative; z-index: 1; }
.song-field-lead-singer,
.song-field-backup-singer { grid-column: span 3; }
.song-field-tempo { grid-column: span 1; }
.song-field-duration { grid-column: span 1; }
.song-field-duration label { align-items: center; display: flex; }
.duration-stopwatch-icon { fill: currentColor; height: 1.15rem; width: 1.15rem; }
.song-field-tempo-label { grid-column: span 2; }
.song-field-key { grid-column: span 1; }
.song-field-difficulty { grid-column: span 2; }
.song-field-style { grid-column: span 3; }
.song-field-readiness { grid-column: span 2; }
.song-field-completeness { grid-column: span 2; }
.song-field-capo { grid-column: span 3; }
.song-field-setlist { grid-column: span 5; }

@media (max-width: 980px) {
  .song-metadata-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .song-field-artist { grid-column: span 3; }
  .song-field-lead-singer,
  .song-field-backup-singer { grid-column: span 3; }
  .song-field-tempo { grid-column: span 1; }
  .song-field-duration { grid-column: span 1; }
  .song-field-tempo-label { grid-column: span 2; }
  .song-field-key { grid-column: span 1; }
  .song-field-difficulty { grid-column: span 2; }
  .song-field-style { grid-column: span 3; }
  .song-field-readiness,
  .song-field-completeness { grid-column: span 2; }
  .song-field-capo { grid-column: span 2; }
  .song-field-setlist { grid-column: span 6; }
}

@media (max-width: 575px) {
  .song-metadata-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .song-metadata-grid > * { grid-column: span 1; }
  .song-field-artist,
  .song-field-lead-singer,
  .song-field-backup-singer,
  .song-field-setlist { grid-column: 1 / -1; }
}

.check-tile {
  align-items: center;
  background: #fffdf8;
  border: 1px solid #ded8ca;
  border-radius: 8px;
  display: flex;
  gap: .55rem;
  min-height: 58px;
  padding: .75rem 1rem;
}

.form-toggle {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  min-height: 58px;
  justify-content: center;
}

.form-toggle.active {
  background: #122620;
  border-color: #122620;
  color: #fffdf8;
}

.song-tabs {
  margin-top: .5rem;
}

.song-edit-form .song-tabs {
  margin-top: .55rem;
}

.song-edit-form .song-tabs .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .22rem;
}

.song-edit-form .song-tabs .nav-item {
  flex: 0 0 var(--song-edit-tab-width, calc((100% - 1.54rem) / 8));
  min-width: 0;
  width: auto;
}

.song-edit-form .song-tabs .nav-link {
  width: 100%;
}

.song-edit-form .song-tabs .nav-link {
  align-items: center;
  display: flex;
  gap: .35rem;
  justify-content: center;
  min-height: 3.05rem;
  min-width: 0;
  overflow: hidden;
  padding-inline: .45rem;
  white-space: nowrap;
}

.song-edit-form .song-section-icon {
  display: block;
  flex: 0 0 auto;
}

.song-edit-form .song-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty edit sections remain available, but their title/icon reads at half strength. */
.song-edit-form .song-tabs .nav-link.section-empty .song-tab-label,
.song-edit-form .song-tabs .nav-link.section-empty .song-section-icon {
  opacity: .5;
}

/* In the editor, unselected tabs are inset and the selected tab is raised. */
.song-edit-form .song-tabs .nav-link:not(.active) {
  background:
    linear-gradient(180deg, rgba(91,104,116,.38) 0%, rgba(189,199,208,.92) 12%, rgba(244,247,249,.98) 62%, #fffdf8 100%),
    #d7dee5;
  border-color: #68747f #87929d #fffdf8;
  box-shadow:
    inset 0 3px 5px rgba(39,49,58,.38),
    inset 0 -1px 1px rgba(255,255,255,.92),
    1px 0 2px rgba(34,42,50,.16);
  transform: translateY(1px);
}

.song-edit-form .song-tabs .nav-link.active {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.74) 18%, rgba(218,225,232,.82) 46%, rgba(139,151,163,.55) 49%, rgba(235,239,243,.96) 100%),
    #cbd3dc;
  border-color: #f6f8fb #929ca7 #66717c;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.95),
    inset 0 -2px 3px rgba(54,65,76,.34),
    0 -1px 2px rgba(255,255,255,.7),
    1px 0 2px rgba(34,42,50,.2);
  transform: none;
}

.dark-mode .song-edit-form .song-tabs .nav-link:not(.active) {
  background:
    linear-gradient(180deg, rgba(0,0,0,.4), rgba(116,129,139,.8) 18%, rgba(67,77,85,.96) 64%, #343d44 100%),
    #4b5760;
  border-color: #252d33 #59666f #343d44;
  box-shadow:
    inset 0 3px 5px rgba(0,0,0,.65),
    inset 0 -1px 1px rgba(255,255,255,.15);
}

.dark-mode .song-edit-form .song-tabs .nav-link.active {
  background:
    linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.08) 42%, rgba(0,0,0,.3) 46%, rgba(255,255,255,.09)),
    #46515a;
  border-color: #89959e #3b454d #252d33;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.25),
    inset 0 -2px 3px rgba(0,0,0,.45),
    0 -1px 2px rgba(255,255,255,.12);
}

@media (max-width: 1100px) {
  .song-edit-form .song-tab-label {
    display: none;
  }

  .song-edit-form .song-tabs .nav-link {
    padding-inline: .2rem;
  }
}

.song-file-control {
  background:
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.24) 45%, rgba(0,0,0,.04)),
    #f3efe6;
  border: 1px solid #cfc6b4;
  border-radius: 8px;
  margin-top: 1rem;
  padding: .85rem;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.song-file-control.drag-active {
  border-color: #0db8cf;
  box-shadow:
    inset 0 0 0 2px rgba(13, 184, 207, .35),
    0 0 0 3px rgba(13, 184, 207, .16);
}

.song-file-control-header {
  align-items: center;
  display: flex;
  gap: .5rem;
  justify-content: space-between;
  margin-bottom: .65rem;
}

.song-file-control-header h2 {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.song-file-count {
  align-items: center;
  background: #20282e;
  border-radius: 999px;
  color: #fffdf8;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 900;
  height: 1.55rem;
  justify-content: center;
  min-width: 1.55rem;
  padding: 0 .45rem;
}

.song-file-table-wrap {
  border: 1px solid #c7d0d6;
  border-radius: 8px;
  margin-bottom: .75rem;
  overflow-x: auto;
}

.song-file-table {
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 48rem;
  width: 100%;
}

.song-file-table th,
.song-file-table td {
  border-bottom: 1px solid #d6dde1;
  padding: .42rem;
  vertical-align: middle;
}

.song-file-table th {
  background: #e6edf1;
  color: #1d272d;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.song-file-table tbody tr:last-child td {
  border-bottom: 0;
}

.song-file-date {
  color: #526069;
  font-size: .8rem;
  font-weight: 900;
  white-space: nowrap;
}

.song-file-name-cell {
  color: #566169;
  font-size: .82rem;
  font-weight: 800;
  max-width: 20rem;
}

.song-file-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-file-label-input {
  min-width: 11rem;
}

.song-file-tag-select {
  min-width: 8.5rem;
}

.song-file-actions {
  display: inline-flex;
  gap: .35rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.song-file-action {
  align-items: center;
  background: #263039;
  border: 1px solid #11171c;
  border-radius: 999px;
  color: #fffdf8;
  cursor: pointer;
  display: inline-flex;
  height: 1.72rem;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 1.72rem;
}

.song-file-action:hover,
.song-file-action:focus {
  background: #0db8cf;
  color: #071013;
}

.song-file-action.playing,
.song-sound-pill.playing {
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.12) 44%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.18)),
    #35a853;
  color: #ffffff;
}

.song-file-delete-action:hover,
.song-file-delete-action:focus {
  background: #c73d3d;
  color: #ffffff;
}

.song-inline-audio-player {
  display: none;
  right: .75rem;
  top: .75rem;
  max-width: min(28rem, calc(100vw - 1.5rem));
  position: fixed;
  width: 22rem;
  z-index: 1300;
}

.song-inline-audio-player.is-visible {
  display: block;
}

.song-sound-pill {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.22) 43%, rgba(0,0,0,.08) 44%, rgba(0,0,0,.16)),
    #dfe6eb;
  border: 1px solid #9da8af;
  border-radius: 999px;
  color: #151b20;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .82rem;
  font-weight: 900;
  gap: .28rem;
  line-height: 1.2;
  max-width: 9.5rem;
  min-height: 1.58rem;
  padding: .2rem .58rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.song-media-pill-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  padding-left: 0;
}

.song-media-pill-list li {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
}

.song-recording-item {
  flex: 1 1 min(32rem, 100%);
}

.song-recording-action {
  justify-content: center;
  padding-inline: .45rem;
  width: 2rem;
}

.song-recording-editor {
  align-items: center;
  display: grid;
  flex: 1 1 auto;
  gap: .35rem;
  grid-template-columns: minmax(10rem, 1fr) minmax(8rem, auto) 4.5rem;
  min-width: 0;
}

.song-recording-title,
.song-recording-tag {
  min-width: 0;
}

.song-recording-save-status {
  color: #59656d;
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}

.song-recording-save-status[data-state="saved"] { color: #25713e; }
.song-recording-save-status[data-state="error"] { color: #a32632; }

@media (max-width: 575px) {
  .song-recording-item {
    align-items: flex-start !important;
    flex-basis: 100%;
  }

  .song-recording-editor {
    grid-template-columns: minmax(0, 1fr) minmax(7rem, .7fr);
  }

  .song-recording-save-status {
    grid-column: 1 / -1;
  }
}

.song-download-pill {
  text-decoration: none;
}

.song-sound-pill .solid-icon {
  flex: 0 0 auto;
  height: .95rem;
  width: .95rem;
}

.song-sound-pill span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-file-upload-grid {
  align-items: stretch;
  display: grid;
  gap: .55rem;
  grid-template-columns: minmax(12rem, 1.25fr) minmax(10rem, 1fr) minmax(8rem, .75fr) minmax(12rem, 1.25fr) auto;
}

.song-file-upload-box {
  align-items: center;
  border: 1px dashed #8e9aa1;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-weight: 900;
  gap: .35rem;
  justify-content: center;
  min-height: 3.55rem;
  padding: .45rem .65rem;
  text-align: center;
}

.song-file-upload-box input {
  font-size: .78rem;
  max-width: 100%;
}

.song-file-upload-button {
  min-height: 3.55rem;
  white-space: nowrap;
}

.song-unsaved-dialog {
  background: transparent;
  border: 0;
  color: #f7f4ee;
  padding: 0;
}

.song-unsaved-dialog::backdrop {
  background: rgba(7, 11, 13, .72);
  backdrop-filter: blur(3px);
}

.song-unsaved-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035) 42%, rgba(0, 0, 0, .28)),
    #151c20;
  border: 1px solid rgba(186, 204, 216, .55);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .22),
    inset 0 -2px 5px rgba(0, 0, 0, .4),
    0 18px 44px rgba(0, 0, 0, .55);
  min-width: min(92vw, 25rem);
  padding: 1rem;
}

.song-unsaved-panel h2 {
  font-size: 1.2rem;
  margin: 0 0 .25rem;
}

.song-unsaved-panel p {
  color: #d7d0c4;
  margin: 0 0 .9rem;
}

.song-unsaved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}

.chrome-dialog-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .28) 42%, rgba(0, 0, 0, .12) 43%, rgba(0, 0, 0, .22)),
    #64717a;
  border-color: #9aa6ad #47525a #293138;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  min-width: 5.8rem;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .68);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .6),
    inset 0 -2px 4px rgba(0, 0, 0, .35),
    0 2px 5px rgba(0, 0, 0, .28);
}

.chrome-save-choice {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 219, 219, .38) 42%, rgba(111, 8, 20, .2) 43%, rgba(80, 5, 14, .35)),
    #c51c31;
  border-color: #f0a1aa #8f1424 #5f0713;
}

.song-tabs .nav-tabs {
  border-bottom: 1px solid #9da3a8;
  flex-wrap: nowrap;
  gap: .15rem;
  justify-content: flex-end;
  overflow-x: auto;
  overflow-y: hidden;
}

.song-tabs .nav-link {
  background:
    linear-gradient(180deg, rgba(91,104,116,.38) 0%, rgba(189,199,208,.92) 12%, rgba(244,247,249,.98) 62%, #fffdf8 100%),
    #d7dee5;
  border: 1px solid;
  border-color: #68747f #87929d #fffdf8;
  border-radius: 8px 8px 0 0;
  box-shadow:
    inset 0 3px 5px rgba(39,49,58,.38),
    inset 0 -1px 1px rgba(255,255,255,.92),
    1px 0 2px rgba(34,42,50,.16);
  color: #303941;
  font-weight: 800;
  min-height: 2.55rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.9);
  transition: background .12s ease, box-shadow .12s ease, transform .06s ease;
  transform: translateY(1px);
}

.song-tabs .nav-link:hover,
.song-tabs .nav-link:focus {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 22%, #e6ebf0 47%, #aeb9c4 50%, #f2f5f8 100%),
    #d8dfe6;
  border-color: #ffffff #87939e #5c6873;
  color: #161d23;
}

.song-tabs .nav-link.active {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.74) 18%, rgba(218,225,232,.82) 46%, rgba(139,151,163,.55) 49%, rgba(235,239,243,.96) 100%),
    #cbd3dc;
  border-color: #f6f8fb #929ca7 #66717c;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.95),
    inset 0 -2px 3px rgba(54,65,76,.34),
    0 -1px 2px rgba(255,255,255,.7),
    1px 0 2px rgba(34,42,50,.2);
  color: #171d22;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255,255,255,.92);
  transform: none;
}

.dark-mode .song-tabs .nav-link {
  background:
    linear-gradient(180deg, rgba(0,0,0,.4), rgba(116,129,139,.8) 18%, rgba(67,77,85,.96) 64%, #343d44 100%),
    #4b5760;
  border-color: #252d33 #59666f #343d44;
  box-shadow:
    inset 0 3px 5px rgba(0,0,0,.65),
    inset 0 -1px 1px rgba(255,255,255,.15);
  color: #ffffff;
  text-shadow: 0 1px 0 #000;
}

.dark-mode .song-tabs .nav-link.active {
  -webkit-text-stroke: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.08) 42%, rgba(0,0,0,.3) 46%, rgba(255,255,255,.09)),
    #46515a;
  border-color: #89959e #3b454d #252d33;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.25),
    inset 0 -2px 3px rgba(0,0,0,.45),
    0 -1px 2px rgba(255,255,255,.12);
  color: #ffffff;
}

.song-section-icon {
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
  height: 1.15rem;
  width: 1.15rem;
}

.song-tabs .nav-link {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
  white-space: nowrap;
}

.song-tabs .nav-item.icon-only .song-section-label {
  display: none;
}

.song-tabs .nav-item.icon-only .nav-link {
  padding-inline: .48rem;
}

.song-fullscreen-logo {
  display: none;
}

.notation-tabs {
  background: #fffdf8;
  border: 1px solid #cfc6b4;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  min-height: 8rem;
  padding: 1rem;
}

.notation-tabs textarea {
  border: 0;
  box-shadow: none;
  font-size: 1.15rem;
  line-height: 1.58;
  min-height: 25rem;
  resize: vertical;
}

.no-spinner {
  appearance: textfield;
}

.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.notation-tabs pre {
  font-size: 1.18rem;
  line-height: 1.62;
  margin: 0;
  min-height: 6rem;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

.song-section-lyrics pre,
.song-section-theme pre,
.song-section-notes pre,
.song-prose-field {
  font-family: "Aptos", "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 1.24rem;
  letter-spacing: 0;
  line-height: 1.72;
}

.song-page-fullscreen header,
.song-page-fullscreen footer {
  display: none;
}

.song-page-fullscreen .floating-brand {
  display: none !important;
}

.song-page-fullscreen.floating-brand-visible .song-bottom-navigation {
  bottom: 1rem;
}

.setlist-pool-filter-bar {
  flex: 1 1 100%;
  margin: .25rem 0 0;
}

.setlist-pool-filter-pills {
  flex: 1 1 100%;
}

.song-edit-readiness-grid {
  grid-template-columns: repeat(2, minmax(12rem, 1fr));
  margin: .65rem 0;
  max-width: 32rem;
}

.setlist-filter-panel {
  margin: .35rem 0 .65rem;
}

.setlist-filter-panel > summary {
  padding-block: .2rem;
}

.setlist-filter-panel[open] > summary {
  margin-bottom: .2rem;
}

.setlist-controls-compact {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  margin-bottom: .5rem;
  padding: .4rem .5rem;
}

.setlist-controls-compact > .toggle-group {
  align-items: center;
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: .3rem;
}

.setlist-controls-compact .setlist-pool-filter-bar {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  flex: 1 1 46rem;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
}

.setlist-pool-filter-bar > .form-control,
.setlist-pool-filter-bar > .form-select,
.setlist-pool-filter-bar > .dropdown {
  flex: 1 1 8.5rem;
  min-width: 7rem;
  width: auto;
}

.setlist-pool-filter-bar > .key-filter,
.setlist-pool-filter-bar > .not-key-filter {
  flex-basis: 6rem;
}

.setlist-controls-compact .setlist-pool-filter-pills {
  flex: 1 0 100%;
  justify-content: flex-end;
  margin-top: .05rem;
}

.setlist-controls-compact .setlist-view-toggle {
  margin-left: auto;
}

@media (max-width: 700px) {
  .song-edit-readiness-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .setlist-controls-compact .setlist-view-toggle {
    margin-left: 0;
  }
}

.song-page-fullscreen body {
  margin-bottom: 0;
}

.song-page-fullscreen body > .container {
  max-width: none;
  padding: 1.15rem clamp(.75rem, 1.8vw, 2rem) 5rem;
  width: 100%;
}

.song-page-fullscreen .song-read-heading {
  align-items: flex-start;
  margin-bottom: -2.65rem;
  padding-right: 0;
  padding-top: .15rem;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.song-page-fullscreen .song-read-heading .button-row form,
.song-page-fullscreen .song-read-heading .button-row a {
  display: none;
}

.song-page-fullscreen .song-quick-menu {
  display: none;
}

.song-page-fullscreen.song-section-tabs-truncated .song-quick-menu {
  display: inline-flex;
}

.song-page-fullscreen .song-nav-rail {
  margin: 0;
  pointer-events: auto;
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 1100;
}

.song-page-fullscreen .song-read-title {
  display: block;
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  line-height: 1.05;
  margin-left: 0;
  max-width: calc(100vw - 22rem);
  overflow: hidden;
  padding-right: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-page-fullscreen .song-read-meta-row {
  max-width: min(62vw, calc(100vw - 28rem));
  min-height: 2.7rem;
  padding-right: 0;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.song-page-fullscreen .song-read-heading p {
  font-size: 1.35rem;
  margin-left: 0;
  margin-top: .15rem;
}

.song-page-fullscreen .song-read-strip {
  display: flex;
  margin: .15rem 0 0;
}

.song-page-fullscreen .song-read-strip > * {
  pointer-events: auto;
}

.song-page-fullscreen .song-read-meta-row > button,
.song-page-fullscreen .song-read-meta-row > a {
  pointer-events: auto;
}

.song-page-fullscreen .section-title,
.song-page-fullscreen .link-list {
  display: none;
}

.song-page-fullscreen .song-media-pill-list {
  display: flex;
  margin: 1rem 0 0;
}

.song-page-fullscreen .song-tabs {
  margin-top: .15rem;
  position: relative;
  z-index: 1;
}

.song-page-fullscreen .song-tabs > .nav-tabs {
  align-items: flex-end;
  border-bottom: 1px solid #9da3a8;
  display: flex;
  flex-wrap: nowrap;
  gap: .15rem;
  justify-content: flex-end;
  min-height: 2.7rem;
  padding-left: min(62vw, calc(100vw - 28rem));
}

.song-page-fullscreen .song-tabs .nav-item {
  margin: 0;
}

.song-page-fullscreen .song-tabs .nav-link {
  align-items: center;
  border-radius: 6px 6px 0 0;
  display: inline-flex;
  gap: .35rem;
  height: auto;
  justify-content: center;
  padding: .5rem .85rem;
  width: auto;
}

.song-page-fullscreen .song-tabs .nav-link span {
  display: inline;
}

.song-page-fullscreen .song-section-icon {
  display: block;
}

.song-page-fullscreen .notation-tabs {
  border-radius: 10px;
  border-top: 1px solid #cfc6b4;
  min-height: calc(100vh - 11rem);
  padding: clamp(1rem, 2vw, 2rem);
}

.song-page-fullscreen .notation-tabs pre,
.song-page-fullscreen .notation-tabs textarea {
  font-size: clamp(
    calc(var(--song-fullscreen-notation-min) - 5px),
    calc(var(--song-fullscreen-notation-pref) - 5px),
    calc(var(--song-fullscreen-notation-max) - 5px)
  );
  line-height: 1.65;
}

.song-page-fullscreen .song-section-guitar pre {
  font-size: clamp(
    calc(var(--song-fullscreen-guitar-min) - 5px),
    calc(var(--song-fullscreen-guitar-pref) - 5px),
    calc(var(--song-fullscreen-guitar-max) - 5px)
  );
  line-height: 1.48;
}

.song-page-fullscreen .song-section-lyrics pre,
.song-page-fullscreen .song-section-theme pre,
.song-page-fullscreen .song-section-notes pre,
.song-page-fullscreen .song-prose-field {
  font-size: clamp(
    calc(var(--song-fullscreen-prose-min) - 5px),
    calc(var(--song-fullscreen-prose-pref) - 5px),
    calc(var(--song-fullscreen-prose-max) - 5px)
  );
  line-height: 1.68;
}

.song-page-fullscreen .song-fullscreen-logo {
  display: block;
  opacity: .86;
  position: fixed;
  left: auto;
  bottom: .8rem;
  right: 1rem;
  z-index: 1080;
}

.song-page-fullscreen .song-bottom-navigation,
.song-page-fullscreen.floating-brand-visible .song-bottom-navigation {
  bottom: 4.9rem;
}

.song-page-fullscreen .song-fullscreen-logo img {
  display: block;
  height: 3.1rem;
  width: auto;
}

.song-page-fullscreen .song-fullscreen-logo .brand-logo-dark {
  display: none;
}

.dark-mode.song-page-fullscreen .song-fullscreen-logo .brand-logo-light {
  display: none;
}

.dark-mode.song-page-fullscreen .song-fullscreen-logo .brand-logo-dark {
  display: block;
}

.dark-mode.song-page-fullscreen .song-tabs > .nav-tabs {
  background: transparent;
  border-color: #4e5961;
  box-shadow: none;
}

.notation-grid,
.content-columns,
.builder-layout {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.list-song-builder {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reminder-task-list {
  display: grid;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.book-another-date-button {
  margin-left: auto;
}

@media (max-width: 575px) {
  .book-another-date-button {
    margin-left: 0;
  }
}

.reminder-task-card {
  align-items: center;
  background: #fffdf8;
  border: 1px solid #ded8ca;
  border-radius: 10px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .75rem 1rem;
}

.reminder-task-card span,
.reminder-task-card small {
  color: #666;
  display: block;
}

.dark-mode .reminder-task-card {
  background: #20282d;
  border-color: #536068;
}

.dark-mode .reminder-task-card span,
.dark-mode .reminder-task-card small {
  color: #bac4ca;
}

.list-pool-filter-pills,
.list-color-controls,
.list-editor-color-controls {
  margin-bottom: .65rem;
}

@media (max-width: 760px) {
  .list-song-builder {
    grid-template-columns: minmax(0, 1fr);
  }
}

.notation-grid textarea,
.wide-label textarea {
  min-height: 9rem;
}

.wide-label {
  display: block;
  font-weight: 600;
}

.content-columns pre {
  margin: 0;
  min-height: 5rem;
  white-space: pre-wrap;
}

.detail-strip,
.link-list,
.calendar-list {
  display: grid;
  gap: .75rem;
  margin: 1rem 0;
}

.detail-strip {
  display: flex;
  flex-wrap: wrap;
  margin: .5rem 0 .75rem;
}

.song-title-text {
  text-decoration: underline;
}

.song-title-hint {
  font-size: calc(2rem - 2px);
  font-weight: 700;
  text-decoration: none;
}

.song-title-edit {
  flex: 1 1 auto;
}

.song-create-heading {
  align-items: center;
  gap: 1rem;
}

.cover-slider-control {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  gap: .55rem;
  margin: 0;
  user-select: none;
}

.cover-slider-label {
  color: #38434a;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .025em;
}

.cover-slider-control input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.cover-slider-track {
  background: linear-gradient(180deg, #aeb7bd 0%, #e4e8ea 48%, #89949b 100%);
  border: 1px solid #68737a;
  border-radius: 999px;
  box-shadow: inset 0 3px 5px rgba(20, 29, 34, .42), 0 2px 3px rgba(20, 29, 34, .25);
  display: inline-block;
  height: 2rem;
  padding: .16rem;
  position: relative;
  transition: background .18s ease, border-color .18s ease;
  width: 4rem;
}

.cover-slider-thumb {
  background: linear-gradient(145deg, #fff 0%, #e9ecee 48%, #adb6bb 100%);
  border: 1px solid #78838a;
  border-radius: 50%;
  box-shadow: 0 3px 5px rgba(24, 31, 35, .42), inset 0 1px 1px rgba(255, 255, 255, .9);
  display: block;
  height: 1.56rem;
  transform: translateX(0);
  transition: transform .18s ease;
  width: 1.56rem;
}

.cover-slider-control input:checked + .cover-slider-track {
  background: linear-gradient(180deg, #2274a5 0%, #62b6e8 48%, #15547a 100%);
  border-color: #124967;
}

.cover-slider-control input:checked + .cover-slider-track .cover-slider-thumb {
  transform: translateX(1.96rem);
}

.cover-slider-control input:focus-visible + .cover-slider-track {
  outline: 3px solid rgba(13, 110, 253, .35);
  outline-offset: 2px;
}

.song-create-form .original-form-toggle {
  display: none;
}

.dark-mode .cover-slider-label { color: #e4e9ec; }

.title-input {
  border: 0;
  border-bottom: 2px solid #cfc6b4;
  border-radius: 0;
  font-size: 2rem;
  font-weight: 700;
  padding-left: 0;
}

.capo-field {
  align-items: stretch;
  display: flex;
  gap: .45rem;
  max-width: 13rem;
}

.capo-input-wrap {
  flex: 0 0 5.8rem;
}

.original-form-toggle {
  flex: 0 0 6rem;
  min-height: 58px;
  padding-left: .55rem;
  padding-right: .55rem;
}

.favorite-pill {
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.12) 45%, rgba(0,0,0,.08) 46%, rgba(0,0,0,.12)),
    #ffe48a !important;
  color: #5f4300;
}

.favorite-toggle.active {
  color: #b88900;
}

.tempo-pill,
.key-pill,
.style-pill {
  color: white;
}

.detail-strip .color-0 { background: #4062bb; }
.detail-strip .color-1 { background: #d1495b; }
.detail-strip .color-2 { background: #edae49; color: #202124; }
.detail-strip .color-3 { background: #00798c; }
.detail-strip .color-4 { background: #7a8f53; }
.detail-strip .color-5 { background: #8f3985; }
.detail-strip .color-6 { background: #5f5b6b; }
.detail-strip .color-7 { background: #c8553d; }
.detail-strip .tempo-color-0 { background: #2f6fbd; }
.detail-strip .tempo-color-1 { background: #238b8d; }
.detail-strip .tempo-color-2 { background: #7a8f53; }
.detail-strip .tempo-color-3 { background: #d08a28; color: #202124; }
.detail-strip .tempo-color-4 { background: #c73d3d; }
.detail-strip .key-color-0 { background: #d33f3f; }
.detail-strip .key-color-1 { background: #e45f2b; }
.detail-strip .key-color-2 { background: #ee8a20; color: #202124; }
.detail-strip .key-color-3 { background: #f4b83b; color: #202124; }
.detail-strip .key-color-4 { background: #e3cf2f; color: #202124; }
.detail-strip .key-color-5 { background: #a7c94b; color: #202124; }
.detail-strip .key-color-6 { background: #4aa35c; }
.detail-strip .key-color-7 { background: #1f9a93; }
.detail-strip .key-color-8 { background: #3478d4; }
.detail-strip .key-color-9 { background: #5655b8; }
.detail-strip .key-color-10 { background: #7e45b5; }
.detail-strip .key-color-11 { background: #c23a91; }

.familiarity-0 { background: #2f6fbd !important; color: white; }
.familiarity-1 { background: #c73d3d !important; color: white; }
.familiarity-2 { background: #d08a28 !important; color: white; }
.familiarity-3 { background: #ee8a20 !important; color: #202124; }
.familiarity-4 { background: #9fca63 !important; color: #202124; }
.familiarity-5 { background: #4aa35c !important; color: white; }
.familiarity-6 { background: #35d44f !important; color: #102513; }

.readiness-0 {
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.1) 45%, rgba(0,0,0,.1) 46%, rgba(0,0,0,.18)), #2f6fbd !important;
  color: white;
}
.readiness-1 {
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.1) 45%, rgba(0,0,0,.1) 46%, rgba(0,0,0,.18)), #c73d3d !important;
  color: white;
}
.readiness-2 {
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.1) 45%, rgba(0,0,0,.1) 46%, rgba(0,0,0,.18)), #d08a28 !important;
  color: white;
}
.readiness-3 {
  background: linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.14) 45%, rgba(0,0,0,.08) 46%, rgba(0,0,0,.14)), #ee8a20 !important;
  color: #202124;
}
.readiness-4 {
  background: linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.14) 45%, rgba(0,0,0,.08) 46%, rgba(0,0,0,.14)), #9fca63 !important;
  color: #202124;
}
.readiness-5 {
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.1) 45%, rgba(0,0,0,.1) 46%, rgba(0,0,0,.18)), #4aa35c !important;
  color: white;
}
.readiness-6 {
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.16) 45%, rgba(0,0,0,.08) 46%, rgba(0,0,0,.14)), #35d44f !important;
  color: #102513;
}
.readiness-7 {
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.1) 45%, rgba(0,0,0,.1) 46%, rgba(0,0,0,.2)), #686f77 !important;
  color: white;
}
.readiness-8 {
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.08) 45%, rgba(0,0,0,.12) 46%, rgba(0,0,0,.24)), #3f464d !important;
  color: white;
}

.section-title {
  margin-top: 1.5rem;
}

.drag-list {
  background: #fffdf8;
  border: 1px dashed #a9a18e;
  border-radius: 8px;
  min-height: 25rem;
  padding: .75rem;
}

.drag-song {
  border-left: 6px solid #d6d2c8;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  cursor: grab;
  margin-bottom: .65rem;
  padding: .75rem;
}

.drag-song.is-hidden {
  display: none;
}

.drag-song.selected-filter-match {
  opacity: .5;
}

.dark-mode .drag-song.selected-filter-match {
  opacity: .5;
}

.drag-song.selected-not-key-match,
.dark-mode .drag-song.selected-not-key-match {
  opacity: .5;
}

.drag-song.singer-color-0 { background: #d94b4b; color: #fff; }
.drag-song.singer-color-1 { background: #3978d4; color: #fff; }
.drag-song.singer-color-2 { background: #45a35c; color: #fff; }

.drag-song.singer-color-0 span,
.drag-song.singer-color-1 span,
.drag-song.singer-color-2 span { color: rgba(255, 255, 255, .88); }

.lead-singer-filter-menu {
  max-height: 16rem;
  overflow-y: auto;
}

.singer-credit-dropdown {
  position: relative;
}

.singer-credit-dropdown summary {
  cursor: pointer;
  list-style: none;
}

.singer-credit-dropdown summary::-webkit-details-marker { display: none; }

.singer-credit-menu {
  background: #fffdf8;
  border: 1px solid #cfc6b4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  display: grid;
  gap: .35rem;
  left: 0;
  max-height: 16rem;
  min-width: 12rem;
  overflow-y: auto;
  padding: .65rem;
  position: absolute;
  top: calc(100% + .3rem);
  z-index: 30;
}

.singer-credit-menu label { white-space: nowrap; }
.singer-credit-menu small { color: #666; min-height: 1em; }

.dark-mode .singer-credit-menu {
  background: #20282d;
  border-color: #68757d;
}

.difficulty-Easy { background: #4aa35c !important; color: white; }
.difficulty-Medium {
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.24) 45%, rgba(0,0,0,.08) 46%, rgba(0,0,0,.14)),
    #ece7db !important;
  color: #151719 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .62);
}
.difficulty-Hard {
  background:
    linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,255,255,.12) 45%, rgba(0,0,0,.08) 46%, rgba(0,0,0,.18)),
    #d08a28 !important;
  color: #151719 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .42);
}
.difficulty-Pro { background: #c73d3d !important; color: white; }

.gig-graphic {
  border-radius: 8px;
  display: block;
  margin: 0;
  max-height: 24rem;
  max-width: 100%;
  object-fit: contain;
}

.gig-detail-header {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(160px, 260px) 1fr;
  margin: 1rem 0;
}

.gig-graphic-frame {
  background: #fffdf8;
  border: 1px solid #ded8ca;
  border-radius: 8px;
  min-height: 10rem;
  overflow: hidden;
}

.gig-detail-main .compact-heading {
  margin-top: 0;
}

.fan-details {
  color: #26342f;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 1rem 0;
  max-width: 68rem;
  white-space: pre-wrap;
}

.dark-mode .fan-details {
  color: #ffffff;
}

.media-report-form {
  margin-top: .35rem;
}

.media-report-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #a3564c;
  cursor: pointer;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 600;
  gap: .3rem;
  padding: .2rem .4rem;
  transition: background .12s ease, color .12s ease;
}

.media-report-button svg {
  height: .95rem;
  width: .95rem;
}

.media-report-button:hover,
.media-report-button:focus {
  background: rgba(201, 85, 61, .12);
  color: #c8553d;
}

.dark-mode .media-report-button {
  color: #e08b7f;
}

.dark-mode .media-report-button:hover,
.dark-mode .media-report-button:focus {
  background: rgba(224, 139, 127, .16);
  color: #f0a99e;
}

.reminder-panel {
  background: #fffdf8;
  border: 1px solid #e4ddcd;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(24, 28, 34, .06);
  margin-top: 1.5rem;
  overflow: hidden;
  padding: 0;
}

.reminder-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: .85rem;
  list-style: none;
  padding: 1.1rem 1.25rem;
  user-select: none;
}

.reminder-summary::-webkit-details-marker {
  display: none;
}

.reminder-bell {
  align-items: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(99, 102, 241, .35);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.reminder-bell svg {
  fill: currentColor;
  height: 1.35rem;
  width: 1.35rem;
}

.reminder-heading {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin-right: auto;
}

.reminder-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.reminder-subtitle {
  color: #6b6459;
  font-size: .85rem;
}

.reminder-chevron {
  color: #9a938a;
  fill: none;
  flex: 0 0 auto;
  height: 1.25rem;
  transition: transform .2s ease;
  width: 1.25rem;
}

.reminder-panel[open] .reminder-chevron {
  transform: rotate(180deg);
}

.reminder-form {
  border-top: 1px solid #efe9db;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1.25rem;
}

.reminder-fields {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.reminder-field {
  align-items: center;
  background: #fbf9f3;
  border: 1px solid #ddd6c6;
  border-radius: 10px;
  display: flex;
  gap: .5rem;
  margin: 0;
  padding: 0 .85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.reminder-field:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}

.reminder-field-icon {
  color: #9a938a;
  fill: currentColor;
  flex: 0 0 auto;
  height: 1.15rem;
  width: 1.15rem;
}

.reminder-input {
  background: transparent;
  border: 0;
  color: inherit;
  flex: 1;
  font-size: .95rem;
  min-width: 0;
  outline: none;
  padding: .7rem 0;
}

.reminder-input::placeholder {
  color: #a7a094;
}

.reminder-consent {
  align-items: flex-start;
  color: #6b6459;
  display: flex;
  font-size: .85rem;
  gap: .55rem;
  line-height: 1.35;
}

.reminder-check-input {
  accent-color: #6366f1;
  flex: 0 0 auto;
  height: 1.1rem;
  margin-top: .05rem;
  width: 1.1rem;
}

.reminder-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.reminder-switch {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: .6rem;
}

.reminder-switch-input {
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

.reminder-switch-track {
  background: #cfc8ba;
  border-radius: 999px;
  flex: 0 0 auto;
  height: 1.55rem;
  position: relative;
  transition: background .2s ease;
  width: 2.85rem;
}

.reminder-switch-thumb {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  height: 1.2rem;
  left: .175rem;
  position: absolute;
  top: .175rem;
  transition: transform .2s ease;
  width: 1.2rem;
}

.reminder-switch-input:checked ~ .reminder-switch-track {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.reminder-switch-input:checked ~ .reminder-switch-track .reminder-switch-thumb {
  transform: translateX(1.3rem);
}

.reminder-switch-input:focus-visible ~ .reminder-switch-track {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .35);
}

.reminder-switch-label {
  font-size: .92rem;
  font-weight: 600;
}

.dark-mode .reminder-subtitle,
.dark-mode .reminder-consent {
  color: #9aa3a8;
}

.dark-mode .reminder-chevron {
  color: #7c8790;
}

.dark-mode .reminder-form {
  border-top-color: #333c42;
}

.dark-mode .reminder-field {
  background: #12171a;
  border-color: #38424a;
}

.dark-mode .reminder-field-icon {
  color: #7c8790;
}

.dark-mode .reminder-input::placeholder {
  color: #7e8890;
}

.dark-mode .reminder-switch-track {
  background: #3a444b;
}

.chrome-button {
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.22) 38%, rgba(0,0,0,.18) 39%, rgba(255,255,255,.18) 100%),
    linear-gradient(135deg, #f6f8fb, #9ea7b3 35%, #f9fbff 52%, #687281);
  border: 1px solid #7d8792;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 1px rgba(0,0,0,.18), 0 8px 18px rgba(32,33,36,.16);
  color: #1c2630;
  font-weight: 800;
  justify-self: start;
  padding: .55rem 1.2rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
}

.chrome-button:hover,
.chrome-button:focus {
  filter: brightness(1.05);
}

.chrome-media-button {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.22) 38%, rgba(47,75,112,.18) 39%, rgba(255,255,255,.2) 100%),
    linear-gradient(135deg, #ffffff, #b9cadb 36%, #f6fbff 53%, #75889d);
  border: 1px solid #8798a8;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), inset 0 -2px 4px rgba(45,62,82,.28), 0 8px 20px rgba(32,33,36,.18);
  color: #1f2b36;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: .45rem;
  min-height: 2.45rem;
  padding: .5rem .95rem;
}

.chrome-media-button:hover,
.chrome-media-button:focus-within {
  filter: brightness(1.05);
}

.chrome-media-button input,
.media-drop-button input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.section-heading-row {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1rem;
}

.media-upload-form {
  margin: 0;
}

.gig-media-section {
  margin-top: 1.5rem;
}

.gig-media-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.gig-media-card {
  background: #fffdf8;
  border: 1px solid #ded8ca;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(32,33,36,.08);
  overflow: hidden;
}

.gig-media-card img,
.gig-media-card video {
  aspect-ratio: 16 / 10;
  background: #121618;
  display: block;
  object-fit: cover;
  width: 100%;
}

.gig-media-card div {
  display: grid;
  gap: .2rem;
  padding: .75rem;
}

.gig-media-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gig-media-card span,
.media-message,
.empty-state {
  color: #666;
  font-size: .9rem;
}

.media-upload-panel {
  background: #fffdf8;
  border: 1px solid #ded8ca;
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  padding: 1rem;
}

.media-drop-button {
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.88), transparent 26%),
    linear-gradient(135deg, #f6f8fb, #c8d8e7 42%, #ffffff 52%, #8093a8);
  border: 1px dashed #7f8ea0;
  border-radius: 8px;
  color: #1f2b36;
  cursor: pointer;
  display: flex;
  font-size: 1.05rem;
  font-weight: 800;
  gap: .65rem;
  justify-content: center;
  min-height: 8rem;
  padding: 1rem;
}

.dark-mode .chrome-media-button,
.dark-mode .media-drop-button {
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.08) 40%, rgba(0,0,0,.22) 42%, rgba(255,255,255,.11) 100%),
    linear-gradient(135deg, #8fa2b1, #455766 38%, #b7c4ce 54%, #2c3943);
  border-color: #8d9da9;
  color: #ffffff;
}

.dark-mode .gig-media-card span,
.dark-mode .media-message,
.dark-mode .empty-state {
  color: #b9c1c5;
}

.appointment-download-button {
  background: #eef3f7;
  border: 1px solid #b8c1ca;
  color: #26313b;
}

.appointment-download-button:hover,
.appointment-download-button:focus {
  background: #dfe7ee;
  color: #121a21;
}

.member-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.member-check {
  background: #fffdf8;
  border: 1px solid #ded8ca;
  border-radius: 8px;
  padding: .75rem;
}

.response-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.calendar-item time {
  background: #122620;
  border-radius: 8px;
  color: white;
  flex: 0 0 6rem;
  padding: .75rem;
  text-align: center;
}

.calendar-item time span {
  display: block;
  font-size: .8rem;
}

.color-0 { border-left-color: #4062bb; }
.color-1 { border-left-color: #d1495b; }
.color-2 { border-left-color: #edae49; }
.color-3 { border-left-color: #00798c; }
.color-4 { border-left-color: #7a8f53; }
.color-5 { border-left-color: #8f3985; }
.color-6 { border-left-color: #5f5b6b; }
.color-7 { border-left-color: #c8553d; }

.song-color-table tbody tr.color-0 { box-shadow: inset -8px 0 0 #4062bb; }
.song-color-table tbody tr.color-1 { box-shadow: inset -8px 0 0 #d1495b; }
.song-color-table tbody tr.color-2 { box-shadow: inset -8px 0 0 #edae49; }
.song-color-table tbody tr.color-3 { box-shadow: inset -8px 0 0 #00798c; }
.song-color-table tbody tr.color-4 { box-shadow: inset -8px 0 0 #7a8f53; }
.song-color-table tbody tr.color-5 { box-shadow: inset -8px 0 0 #8f3985; }
.song-color-table tbody tr.color-6 { box-shadow: inset -8px 0 0 #5f5b6b; }
.song-color-table tbody tr.color-7 { box-shadow: inset -8px 0 0 #c8553d; }

.tempo-color-0 { border-left-color: #2f6fbd; box-shadow: inset 8px 0 0 #2f6fbd; }
.tempo-color-1 { border-left-color: #238b8d; box-shadow: inset 8px 0 0 #238b8d; }
.tempo-color-2 { border-left-color: #7a8f53; box-shadow: inset 8px 0 0 #7a8f53; }
.tempo-color-3 { border-left-color: #d08a28; box-shadow: inset 8px 0 0 #d08a28; }
.tempo-color-4 { border-left-color: #c73d3d; box-shadow: inset 8px 0 0 #c73d3d; }

.key-color-0 { border-left-color: #d33f3f; box-shadow: inset 8px 0 0 #d33f3f; }
.key-color-1 { border-left-color: #e45f2b; box-shadow: inset 8px 0 0 #e45f2b; }
.key-color-2 { border-left-color: #ee8a20; box-shadow: inset 8px 0 0 #ee8a20; }
.key-color-3 { border-left-color: #f4b83b; box-shadow: inset 8px 0 0 #f4b83b; }
.key-color-4 { border-left-color: #e3cf2f; box-shadow: inset 8px 0 0 #e3cf2f; }
.key-color-5 { border-left-color: #a7c94b; box-shadow: inset 8px 0 0 #a7c94b; }
.key-color-6 { border-left-color: #4aa35c; box-shadow: inset 8px 0 0 #4aa35c; }
.key-color-7 { border-left-color: #1f9a93; box-shadow: inset 8px 0 0 #1f9a93; }
.key-color-8 { border-left-color: #3478d4; box-shadow: inset 8px 0 0 #3478d4; }
.key-color-9 { border-left-color: #5655b8; box-shadow: inset 8px 0 0 #5655b8; }
.key-color-10 { border-left-color: #7e45b5; box-shadow: inset 8px 0 0 #7e45b5; }
.key-color-11 { border-left-color: #c23a91; box-shadow: inset 8px 0 0 #c23a91; }

.key-minor.key-color-0 { border-left-color: #9f2929; box-shadow: inset 8px 0 0 #9f2929; }
.key-minor.key-color-1 { border-left-color: #ad421d; box-shadow: inset 8px 0 0 #ad421d; }
.key-minor.key-color-2 { border-left-color: #b96716; box-shadow: inset 8px 0 0 #b96716; }
.key-minor.key-color-3 { border-left-color: #bf8520; box-shadow: inset 8px 0 0 #bf8520; }
.key-minor.key-color-4 { border-left-color: #aa991b; box-shadow: inset 8px 0 0 #aa991b; }
.key-minor.key-color-5 { border-left-color: #78962e; box-shadow: inset 8px 0 0 #78962e; }
.key-minor.key-color-6 { border-left-color: #347940; box-shadow: inset 8px 0 0 #347940; }
.key-minor.key-color-7 { border-left-color: #15716d; box-shadow: inset 8px 0 0 #15716d; }
.key-minor.key-color-8 { border-left-color: #245ca5; box-shadow: inset 8px 0 0 #245ca5; }
.key-minor.key-color-9 { border-left-color: #3d3c8f; box-shadow: inset 8px 0 0 #3d3c8f; }
.key-minor.key-color-10 { border-left-color: #5d318c; box-shadow: inset 8px 0 0 #5d318c; }
.key-minor.key-color-11 { border-left-color: #922a6e; box-shadow: inset 8px 0 0 #922a6e; }

.song-color-table tbody tr.tempo-color-0 { box-shadow: inset -8px 0 0 #2f6fbd; }
.song-color-table tbody tr.tempo-color-1 { box-shadow: inset -8px 0 0 #238b8d; }
.song-color-table tbody tr.tempo-color-2 { box-shadow: inset -8px 0 0 #7a8f53; }
.song-color-table tbody tr.tempo-color-3 { box-shadow: inset -8px 0 0 #d08a28; }
.song-color-table tbody tr.tempo-color-4 { box-shadow: inset -8px 0 0 #c73d3d; }
.song-color-table tbody tr.key-color-0 { box-shadow: inset -8px 0 0 #d33f3f; }
.song-color-table tbody tr.key-color-1 { box-shadow: inset -8px 0 0 #e45f2b; }
.song-color-table tbody tr.key-color-2 { box-shadow: inset -8px 0 0 #ee8a20; }
.song-color-table tbody tr.key-color-3 { box-shadow: inset -8px 0 0 #f4b83b; }
.song-color-table tbody tr.key-color-4 { box-shadow: inset -8px 0 0 #e3cf2f; }
.song-color-table tbody tr.key-color-5 { box-shadow: inset -8px 0 0 #a7c94b; }
.song-color-table tbody tr.key-color-6 { box-shadow: inset -8px 0 0 #4aa35c; }
.song-color-table tbody tr.key-color-7 { box-shadow: inset -8px 0 0 #1f9a93; }
.song-color-table tbody tr.key-color-8 { box-shadow: inset -8px 0 0 #3478d4; }
.song-color-table tbody tr.key-color-9 { box-shadow: inset -8px 0 0 #5655b8; }
.song-color-table tbody tr.key-color-10 { box-shadow: inset -8px 0 0 #7e45b5; }
.song-color-table tbody tr.key-color-11 { box-shadow: inset -8px 0 0 #c23a91; }
.song-color-table tbody tr.key-minor.key-color-0 { box-shadow: inset -8px 0 0 #9f2929; }
.song-color-table tbody tr.key-minor.key-color-1 { box-shadow: inset -8px 0 0 #ad421d; }
.song-color-table tbody tr.key-minor.key-color-2 { box-shadow: inset -8px 0 0 #b96716; }
.song-color-table tbody tr.key-minor.key-color-3 { box-shadow: inset -8px 0 0 #bf8520; }
.song-color-table tbody tr.key-minor.key-color-4 { box-shadow: inset -8px 0 0 #aa991b; }
.song-color-table tbody tr.key-minor.key-color-5 { box-shadow: inset -8px 0 0 #78962e; }
.song-color-table tbody tr.key-minor.key-color-6 { box-shadow: inset -8px 0 0 #347940; }
.song-color-table tbody tr.key-minor.key-color-7 { box-shadow: inset -8px 0 0 #15716d; }
.song-color-table tbody tr.key-minor.key-color-8 { box-shadow: inset -8px 0 0 #245ca5; }
.song-color-table tbody tr.key-minor.key-color-9 { box-shadow: inset -8px 0 0 #3d3c8f; }
.song-color-table tbody tr.key-minor.key-color-10 { box-shadow: inset -8px 0 0 #5d318c; }
.song-color-table tbody tr.key-minor.key-color-11 { box-shadow: inset -8px 0 0 #922a6e; }

/* Setlist tables use the selected color across the full row, not just the edge. */
.song-color-table tbody tr.color-0 { --setlist-row-color: #4062bb; }
.song-color-table tbody tr.color-1 { --setlist-row-color: #d1495b; }
.song-color-table tbody tr.color-2 { --setlist-row-color: #edae49; }
.song-color-table tbody tr.color-3 { --setlist-row-color: #00798c; }
.song-color-table tbody tr.color-4 { --setlist-row-color: #7a8f53; }
.song-color-table tbody tr.color-5 { --setlist-row-color: #8f3985; }
.song-color-table tbody tr.color-6 { --setlist-row-color: #5f5b6b; }
.song-color-table tbody tr.color-7 { --setlist-row-color: #c8553d; }
.song-color-table tbody tr.tempo-color-0 { --setlist-row-color: #2f6fbd; }
.song-color-table tbody tr.tempo-color-1 { --setlist-row-color: #238b8d; }
.song-color-table tbody tr.tempo-color-2 { --setlist-row-color: #7a8f53; }
.song-color-table tbody tr.tempo-color-3 { --setlist-row-color: #d08a28; }
.song-color-table tbody tr.tempo-color-4 { --setlist-row-color: #c73d3d; }
.song-color-table tbody tr.key-color-0 { --setlist-row-color: #d33f3f; }
.song-color-table tbody tr.key-color-1 { --setlist-row-color: #e45f2b; }
.song-color-table tbody tr.key-color-2 { --setlist-row-color: #ee8a20; }
.song-color-table tbody tr.key-color-3 { --setlist-row-color: #f4b83b; }
.song-color-table tbody tr.key-color-4 { --setlist-row-color: #e3cf2f; }
.song-color-table tbody tr.key-color-5 { --setlist-row-color: #a7c94b; }
.song-color-table tbody tr.key-color-6 { --setlist-row-color: #4aa35c; }
.song-color-table tbody tr.key-color-7 { --setlist-row-color: #1f9a93; }
.song-color-table tbody tr.key-color-8 { --setlist-row-color: #3478d4; }
.song-color-table tbody tr.key-color-9 { --setlist-row-color: #5655b8; }
.song-color-table tbody tr.key-color-10 { --setlist-row-color: #7e45b5; }
.song-color-table tbody tr.key-color-11 { --setlist-row-color: #c23a91; }

.song-color-table tbody tr[class*="color-"] > td {
  background-color: color-mix(in srgb, var(--setlist-row-color) 13%, #fffdf8) !important;
  transition: background-color .15s ease;
}

.song-color-table tbody tr[class*="color-"]:hover > td {
  background-color: color-mix(in srgb, var(--setlist-row-color) 21%, #fffdf8) !important;
}

.dark-mode .song-color-table tbody tr[class*="color-"] > td {
  background-color: color-mix(in srgb, var(--setlist-row-color) 20%, #20282d) !important;
}

.dark-mode .song-color-table tbody tr[class*="color-"]:hover > td {
  background-color: color-mix(in srgb, var(--setlist-row-color) 30%, #20282d) !important;
}

.song-card.original-color-match {
  background-color: #fff6c9;
  border-left-color: #e1b52f;
}

.song-card.original-color-other {
  background-color: color-mix(in srgb, #666b70 10%, #fffdf8);
  border-left-color: #a3a6a8;
}

.song-color-table tbody tr.original-color-match > td {
  background-color: #fff6c9 !important;
}

.song-color-table tbody tr.original-color-match:hover > td {
  background-color: #ffefaa !important;
}

.song-color-table tbody tr.original-color-other > td {
  background-color: color-mix(in srgb, #666b70 10%, #fffdf8) !important;
}

.song-color-table tbody tr.original-color-other:hover > td {
  background-color: color-mix(in srgb, #666b70 16%, #fffdf8) !important;
}

.dark-mode .song-card.original-color-match,
.dark-mode .song-color-table tbody tr.original-color-match > td {
  background-color: #554b20 !important;
}

.dark-mode .song-card.original-color-other,
.dark-mode .song-color-table tbody tr.original-color-other > td {
  background-color: color-mix(in srgb, #aeb4b9 10%, #20282d) !important;
}

.setlist-drag-col {
  text-align: center;
  width: 2.5rem;
}

.setlist-drag-handle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #77736c;
  cursor: grab;
  display: inline-flex;
  justify-content: center;
  padding: .2rem;
}

.setlist-drag-handle:active {
  cursor: grabbing;
}

.setlist-drag-handle.is-locked {
  cursor: not-allowed;
  opacity: .65;
}

.setlist-drag-handle:hover,
.setlist-drag-handle:focus {
  background: rgba(0, 0, 0, .08);
  color: #202428;
}

.setlist-drag-handle svg {
  fill: currentColor;
  height: 1.35rem;
  width: 1.35rem;
}

.setlist-reorder-body tr.is-dragging {
  opacity: .45;
}

.setlist-table-sort::after {
  content: "↕";
  font-size: .72em;
  margin-left: .3rem;
  opacity: .42;
}

.setlist-table-sort[data-direction="asc"]::after {
  content: "↑";
  opacity: 1;
}

.setlist-table-sort[data-direction="desc"]::after {
  content: "↓";
  opacity: 1;
}

@media (max-width: 700px) {
  .dashboard-hero,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .song-filter-section[open] {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .filter-controls-row {
    align-items: stretch;
  }

  .filter-controls-row .form-control,
  .filter-controls-row .form-select {
    flex: 1 1 100%;
    max-width: none;
  }

  .filter-controls-row > .toggle-group,
  .filter-pill-group {
    flex: 1 1 100%;
  }

  .filter-subhead {
    flex: 0 0 auto;
    padding-top: .45rem;
  }

  .song-file-upload-grid {
    grid-template-columns: 1fr;
  }

  .song-file-table {
    min-width: 42rem;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Honeypot field: rendered for bots, invisible and non-interactive for humans. */
.trap-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Sign-in / access-denied panel */
.login-panel {
  max-width: 24rem;
  margin: 3rem auto;
  padding: 2rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .75rem;
  background: var(--bs-body-bg, #fff);
}

.login-panel h1 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

.settings-panel .signout-link {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.wheelhouse-multiselect {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  grid-column: 1 / -1;
  margin: 0;
  padding: .65rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .65rem;
}

.people-role-multiselect {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  grid-column: 1 / -1;
  margin: 0;
  padding: .65rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .65rem;
}

.people-role-multiselect legend {
  float: none;
  width: auto;
  margin: 0 .25rem 0 0;
  font-size: .85rem;
  font-weight: 700;
}

.people-photo-edit { grid-column: 1 / -1; font-weight: 700; }

.people-name-cell {
  align-items: center;
  display: inline-flex;
  gap: .55rem;
}

.people-avatar {
  border: 1px solid var(--bs-border-color);
  border-radius: 50%;
  height: 2.35rem;
  object-fit: cover;
  width: 2.35rem;
}

.people-avatar-placeholder {
  align-items: center;
  background: var(--bs-secondary-bg);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
}

.people-photo-form input[type="file"] {
  display: none;
}

.wheelhouse-table .wheelhouse-group-row th {
  background: var(--bs-secondary-bg);
  padding: .3rem .5rem;
}

.wheelhouse-group-row button {
  align-items: center;
  background: none;
  border: 0;
  color: inherit;
  display: flex;
  font-weight: 900;
  gap: .55rem;
  padding: .25rem;
  text-align: left;
  width: 100%;
}

.wheelhouse-group-row button small { color: var(--bs-secondary-color); }
.wheelhouse-group-row button[aria-expanded="false"] .wheelhouse-chevron { transform: rotate(-90deg); }
.wheelhouse-chevron { display: inline-block; transition: transform .15s ease; }

.wheelhouse-multiselect legend {
  float: none;
  width: auto;
  margin: 0 .25rem 0 0;
  font-size: .85rem;
  font-weight: 700;
}

.wheelhouse-option {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .55rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  cursor: pointer;
}

.wheelhouse-option:has(input:checked) {
  border-color: var(--bs-primary);
  background: color-mix(in srgb, var(--bs-primary) 18%, transparent);
}

.people-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  grid-column: 1 / -1;
}

.people-form {
  padding-right: 7.5rem;
  position: relative;
}

.people-photo-corner {
  align-items: center;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .7rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  justify-content: center;
  min-height: 5.4rem;
  padding: .45rem;
  position: absolute;
  right: .7rem;
  top: .55rem;
  width: 6rem;
}

.people-photo-corner .people-avatar { height: 3.35rem; width: 3.35rem; }
.people-photo-corner > input { display: none; }
.people-photo-corner > span { font-size: .72rem; font-weight: 800; }

.people-role-dropdown {
  grid-column: 1 / -1;
  max-width: 34rem;
  position: relative;
}

.people-role-dropdown > summary {
  align-items: center;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  cursor: pointer;
  display: flex;
  gap: .65rem;
  min-height: 3rem;
  padding: .55rem .8rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), transparent 55%),
    var(--bs-body-bg);
}

.people-role-dropdown > summary > span { color: var(--bs-secondary-color); font-size: .78rem; text-transform: uppercase; }
.people-role-dropdown > summary > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.people-role-dropdown-menu {
  background: #fffdf8;
  border: 1px solid var(--bs-border-color);
  border-radius: .6rem;
  box-shadow: 0 .6rem 1.4rem rgba(0,0,0,.22);
  display: grid;
  grid-template-columns: repeat(2, minmax(10rem, 1fr));
  gap: .2rem;
  left: 0;
  color: #20262b;
  min-width: 0;
  width: 100%;
  padding: .5rem;
  position: absolute;
  top: calc(100% + .25rem);
  z-index: 1100;
}

.people-role-dropdown-menu label { align-items: center; border-radius: .35rem; display: flex; font-size: 1rem; gap: .6rem; padding: .55rem .6rem; }
.people-role-dropdown-menu label:hover { background: var(--bs-secondary-bg); }
.people-role-dropdown-menu input { height: 1.15rem; width: 1.15rem; }
.people-self-edit-summary { display: flex; flex-direction: column; grid-column: 1 / -1; }

.people-text-tabs { grid-column: 1 / -1; margin-top: .15rem; }
.people-text-tabs .people-text-tab-list { justify-content: flex-start; overflow: visible; }
.people-text-tabs .people-text-tab-list .nav-item { flex: 1 1 0; min-width: 0; }
.people-text-tabs .people-text-tab-list .nav-link { justify-content: center; min-width: 0; padding: .55rem 1rem; width: 100%; }
.people-text-tab-content { min-height: 0; padding: .65rem; }
.people-text-tabs textarea { border-top-left-radius: 0; resize: vertical; }

/* Projects */
.project-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.project-card { background: #fffdf8; border: 1px solid #d7d0c2; border-radius: 12px; box-shadow: 0 5px 18px rgba(40, 45, 50, .1); padding: 1rem; }
.project-card-heading { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
.project-card-heading h2 { margin: 0; }
.project-counts { display: grid; gap: .45rem; grid-template-columns: repeat(4, 1fr); margin: 1rem 0; }
.project-counts span { background: rgba(96, 109, 120, .09); border-radius: 8px; padding: .55rem .35rem; text-align: center; }
.project-counts strong { display: block; font-size: 1.35rem; }
.project-title-edit small { color: #727b82; display: block; margin: .15rem 0 0 .15rem; }
.project-link-fields { display: grid; gap: .75rem; grid-template-columns: minmax(16rem, .8fr) minmax(20rem, 1.2fr); margin: .8rem 0 1rem; }
.project-link-fields .wide-label { margin: 0; }
.project-link-fields textarea { min-height: 5.1rem; }
.project-links-summary { align-items: flex-start; background: #fffdf8; border: 1px solid #d5cec0; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 1rem; padding: .8rem 1rem; }
.project-links-summary > a { font-weight: 800; }
.project-links-summary p { margin: .2rem 0 0; white-space: pre-line; }
.song-duration-pill { background: linear-gradient(180deg, #f8fbfd, #bcc8d0); border: 1px solid #85939d; border-radius: 999px; color: #202930; font-weight: 800; padding: .38rem .7rem; }
.song-duration-inline { color: inherit; white-space: nowrap; }
.song-table .song-favorite-col { text-align: center; width: 3.25rem; }
.song-favorite-heading-icon { color: #8a9298; height: 1rem; width: 1rem; }
.song-favorite-sort { align-items: center; display: inline-flex; justify-content: center; padding-inline: .3rem; }
.song-favorite-table-icon { color: #e1ac16; filter: drop-shadow(0 1px 1px rgba(65, 45, 0, .45)); height: 1.35rem; width: 1.35rem; }
.project-members-editor { background: #fffdf8; border: 1px solid #cfc6b4; border-radius: 10px; margin: 1rem 0; }
.project-members-editor > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; padding: .85rem 1rem; }
.project-members-editor > summary::-webkit-details-marker { display: none; }
.project-members-editor > summary span { display: grid; }
.project-members-editor > summary small { color: #737b82; font-weight: 400; }
.project-members-editor > summary svg { height: 1.25rem; transition: transform .15s ease; width: 1.25rem; }
.project-members-editor[open] > summary svg { transform: rotate(180deg); }
.project-member-selectors { border-top: 1px solid #d9d2c5; display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .85rem; }
.project-person-select { min-width: 0; position: relative; }
.project-person-select > summary { background: #fff; border: 1px solid #aab2b9; border-radius: 8px; cursor: pointer; display: grid; list-style: none; min-height: 4.2rem; padding: .55rem .7rem; }
.project-person-select > summary::-webkit-details-marker { display: none; }
.project-person-select > summary > span { color: #68727a; font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.project-person-select > summary > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-person-menu { background: #fffdf8; border: 1px solid #98a2aa; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,.22); display: grid; left: 0; max-height: 20rem; min-width: 100%; overflow: auto; padding: .45rem; position: absolute; right: 0; top: calc(100% + .25rem); z-index: 20; }
.project-person-menu label { align-items: flex-start; border-radius: 6px; cursor: pointer; display: flex; gap: .6rem; padding: .48rem; }
.project-person-menu label:hover { background: rgba(0, 174, 204, .1); }
.project-person-menu label span { display: grid; }
.project-person-menu small { color: #6e777f; white-space: nowrap; }
.project-resource-tabs .nav-tabs { display: flex; gap: .22rem; }
.project-resource-tabs .nav-item { flex: 1 1 0; min-width: 0; }
.project-resource-tabs .nav-link { justify-content: center; width: 100%; }
.project-tab-count { background: rgba(0,0,0,.12); border-radius: 999px; font-size: .75em; min-width: 1.5rem; padding: .1rem .4rem; text-align: center; }
.project-resource-panels { min-height: 25rem; }
.project-option-filter { margin-bottom: .8rem; max-width: 24rem; }
.project-association-note { color: #68727a; font-size: .88rem; margin: 0 0 .65rem; }
.project-option-grid { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.project-option { align-items: flex-start; background: #fff; border: 1px solid #d7d0c2; border-radius: 8px; cursor: pointer; display: flex; gap: .6rem; min-height: 4.3rem; padding: .65rem; }
.project-option:has(input:checked) { border-color: #00aeca; box-shadow: inset 0 0 0 1px #00aeca; }
.project-option span { display: grid; min-width: 0; }
.project-option strong, .project-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-option small { color: #69737b; }
.project-delete-row { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.project-people-strip { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.25rem; }
.project-person-pill { background: #fffdf8; border: 1px solid #d3ccbf; border-radius: 10px; display: grid; min-width: 11rem; padding: .65rem .8rem; }
.project-person-pill span { color: #008ca5; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.project-person-pill small { color: #68727a; }
.project-detail-columns { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-detail-columns > section { background: #fffdf8; border: 1px solid #d5cec0; border-radius: 10px; overflow: hidden; }
.project-detail-columns h2 { align-items: center; display: flex; justify-content: space-between; margin: 0; padding: .8rem 1rem; }
.project-detail-columns h2 span { color: #6c767e; font-size: .75em; }
.project-link-list { display: grid; }
.project-link-list a { border-top: 1px solid #e2ddd3; color: inherit; display: grid; padding: .7rem 1rem; text-decoration: none; }
.project-link-list a:hover { background: rgba(0, 174, 204, .08); }
.project-link-list small { color: #68727a; }
.dark-mode .project-card, .dark-mode .project-members-editor, .dark-mode .project-person-menu, .dark-mode .project-person-pill, .dark-mode .project-detail-columns > section, .dark-mode .project-links-summary { background: #1b2327; border-color: #52616a; }
.dark-mode .song-duration-pill { background: linear-gradient(180deg, #52606a, #273138); border-color: #71808a; color: #fff; }
.dark-mode .project-person-select > summary, .dark-mode .project-option { background: #141a1d; border-color: #596872; }
.dark-mode .project-option small, .dark-mode .project-link-list small, .dark-mode .project-person-menu small, .dark-mode .project-person-pill small { color: #bac3c8; }
@media (max-width: 900px) {
  .project-member-selectors, .project-detail-columns, .project-link-fields { grid-template-columns: 1fr; }
  .project-person-select > summary > strong { white-space: normal; }
}

.dark-mode .people-role-dropdown > summary {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 55%),
    #11171b;
  border-color: #69747c;
  color: #fffdf8;
}

.dark-mode .people-role-dropdown > summary > span { color: #b8c2c8; }
.dark-mode .people-role-dropdown-menu { background: #182126; border-color: #77838b; color: #fffdf8; }
.dark-mode .people-role-dropdown-menu label:hover { background: #2a353b; }
.dark-mode .people-role-dropdown-menu input { accent-color: #18a9ff; }

.people-drag-handle {
  color: var(--bs-secondary-color);
  cursor: grab;
  display: inline-block;
  font-size: 1.2rem;
  letter-spacing: -.3rem;
  margin-right: .65rem;
  padding-right: .3rem;
  user-select: none;
}

[draggable="true"].dragging { opacity: .45; }

.people-view-switch { display: flex; gap: 1.1rem; margin: .4rem 0 .8rem; }

.wheelhouse-tree {
  max-width: 70rem;
  padding: .3rem 0 1rem;
}

.wheelhouse-tree-branch + .wheelhouse-tree-branch { margin-top: .35rem; }

.wheelhouse-tree-toggle {
  align-items: center;
  background: none;
  border: 0;
  color: inherit;
  display: flex;
  font-size: 1.35rem;
  gap: .65rem;
  padding: .45rem .2rem;
  text-align: left;
  width: 100%;
}

.wheelhouse-tree-toggle small { color: var(--bs-secondary-color); font-size: .8rem; }
.wheelhouse-tree-toggle[aria-expanded="false"] .wheelhouse-chevron { transform: rotate(-90deg); }

.wheelhouse-tree-children {
  border-left: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  margin-left: .8rem;
  padding: .2rem 0 .25rem 2.1rem;
}

.wheelhouse-tree-person {
  align-items: center;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(12rem, .8fr) minmax(14rem, 1.4fr) auto;
  min-height: 3.25rem;
  padding: .35rem .45rem;
  position: relative;
}

.wheelhouse-tree-person::before {
  border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  content: "";
  left: -2.1rem;
  position: absolute;
  top: 50%;
  width: 1.45rem;
}

.wheelhouse-tree-meta { color: var(--bs-secondary-color); display: flex; flex-wrap: wrap; gap: .35rem; }
.wheelhouse-tree-actions { justify-self: end; }

@media (max-width: 760px) {
  .people-form { padding-right: .7rem; padding-top: 6.6rem; }
  .people-photo-corner { left: .7rem; right: auto; }
  .wheelhouse-tree-person { grid-template-columns: 1fr auto; }
  .wheelhouse-tree-meta { grid-column: 1 / -1; }
  .people-role-dropdown-menu { grid-template-columns: 1fr; }
}

.people-role-filter {
  margin: .35rem 0 .8rem;
}

.people-role-filter .pill-toggle {
  text-decoration: none;
}

.people-view-heading {
  color: inherit;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.people-view-heading:hover,
.people-view-heading:focus,
.people-view-heading.active {
  color: var(--bs-primary);
  text-decoration: underline;
  text-underline-offset: .22rem;
}

.wheelhouse-category-view {
  display: grid;
  gap: 1rem;
}

.wheelhouse-category {
  min-width: 0;
}

.wheelhouse-category h2 {
  align-items: center;
  display: flex;
  gap: .45rem;
  margin: 0 0 .35rem;
  font-size: 1rem;
}

.wheelhouse-category h2 small {
  color: var(--bs-secondary-color);
  font-size: .8rem;
}

.wheelhouse-category .song-table {
  margin-bottom: 0;
}

.list-metadata-grid {
  grid-template-columns: minmax(7rem, .5fr) minmax(8rem, .5fr) minmax(14rem, 1fr) minmax(14rem, 1fr);
}

.list-creator-pill {
  margin-left: .45rem;
  font-size: .78em;
  vertical-align: middle;
}

.gig-setlist-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

@media (max-width: 800px) {
  .list-metadata-grid { grid-template-columns: 1fr 1fr; }
}


/* Song edit research workspace */
.song-setlist-research-row {
  align-items: stretch;
  display: grid;
  gap: .75rem;
  grid-column: 1 / -1;
  grid-template-columns: minmax(14rem, 24rem) minmax(0, 1fr) auto;
}

.song-setlist-research-row .song-field-setlist { grid-column: 1; }
.song-setlist-research-row .song-research-toggle { grid-column: 3; justify-self: end; }
.song-research-toggle { font-weight: 700; min-width: 7rem; }
.song-research-workspace { min-width: 0; }
.song-research-editor { min-width: 0; }
.song-research-panel {
  background: #fffdf8;
  border: 1px solid #cfc6b4;
  border-radius: 8px;
  display: none;
  min-width: 0;
  overflow: hidden;
}
.song-research-workspace.research-active {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 1fr);
}
.song-research-workspace.research-active .song-research-panel { display: block; }
.song-research-results { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem .75rem 0; }
.song-research-results[hidden] { display: none; }
.song-research-result.btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-research-result-group { max-width: 100%; }
.song-research-result-navigation .btn { font-size: 1rem; font-weight: 700; line-height: 1; padding: .18rem .45rem; }
.song-research-address,
.song-research-definition,
.song-research-xpath { display: flex; gap: .5rem; padding: .75rem; }
.song-research-definition,
.song-research-xpath { padding-top: 0; }
.song-research-definition .form-select { flex: 0 0 13rem; }
.song-research-address .form-control,
.song-research-definition .form-control,
.song-research-xpath .form-control { min-width: 0; }
.song-research-address .btn,
.song-research-xpath .btn { white-space: nowrap; }
.song-research-message { color: #6c757d; margin: 0; padding: 0 .75rem .75rem; }
.song-research-extract-output {
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  display: block;
  min-height: 38rem;
  resize: vertical;
  width: 100%;
}
.dark-mode .song-research-panel { background: #2e363c; border-color: #65717a; }
.dark-mode .song-research-message { color: #bac4ca; }
.dark-mode .song-research-extract-output { background: #1f2529; color: #f4f1e8; border-color: #65717a; }

@media (max-width: 980px) {
  .song-setlist-research-row { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; }
  .song-setlist-research-row .song-research-toggle { grid-column: 2; }
  .song-research-workspace.research-active { grid-template-columns: 1fr; }
  .song-research-extract-output { min-height: 32rem; }
}

@media (max-width: 575px) {
  .song-setlist-research-row { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .song-setlist-research-row .song-research-toggle { grid-column: 1; justify-self: stretch; }
  .song-research-address,
  .song-research-definition,
  .song-research-xpath { align-items: stretch; flex-direction: column; }
  .song-research-definition .form-select { flex-basis: auto; }
  .song-research-extract-output { min-height: 26rem; }
}

/* Admin research log (Songs create/edit) */
.research-log { margin-top: 1.5rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); }
.research-log > summary { cursor: pointer; padding: .6rem .85rem; font-weight: 600; }
.research-log-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 0 .85rem .5rem; }
.research-log-hint { flex: 1 1 16rem; color: var(--bs-secondary-color); font-size: .85rem; }
.research-log-empty { padding: 0 .85rem .75rem; margin: 0; color: var(--bs-secondary-color); }
.research-log-entries { list-style: none; margin: 0; padding: 0 .85rem .85rem; max-height: 32rem; overflow-y: auto; font-family: var(--bs-font-monospace); font-size: .8rem; }
.research-log-entry { padding: .3rem 0; border-top: 1px solid var(--bs-border-color-translucent, var(--bs-border-color)); }
.research-log-head { display: flex; gap: .5rem; align-items: baseline; }
.research-log-time { color: var(--bs-secondary-color); white-space: nowrap; }
.research-log-level { min-width: 3rem; text-transform: uppercase; font-weight: 700; }
.research-log-info .research-log-level { color: var(--bs-info-text-emphasis, #087990); }
.research-log-warn .research-log-level { color: var(--bs-warning-text-emphasis, #997404); }
.research-log-error .research-log-level { color: var(--bs-danger-text-emphasis, #b02a37); }
.research-log-message { overflow-wrap: anywhere; }
.research-log-entry details { margin: .2rem 0 0 1rem; }
.research-log-entry pre { max-height: 16rem; overflow: auto; margin: .25rem 0 0; padding: .5rem; background: var(--bs-secondary-bg); border-radius: .25rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-search-settings + .admin-search-settings { margin-top: 1rem; }

.song-search-wrap { position: relative; flex: 1 1 16rem; }
.song-search-wrap .song-search-filter { width: 100%; padding-right: 2.5rem; }
.song-search-clear { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #dc3545; font-size: 1.5rem; line-height: 1; padding: .25rem; }
.song-search-clear[hidden] { display: none; }

.project-picker { border: 0; margin: 1rem 0; min-width: 0; padding: 0; }
.project-picker > legend { color: #68727a; font-size: .8rem; font-weight: 700; margin-bottom: .45rem; text-transform: uppercase; }
.project-picker .project-option { min-height: 0; }
.list-visibility-toggle { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .25rem; }

.drag-song.drop-before{box-shadow:0 -4px var(--bs-primary,#55e6c1)}
.drag-song.drop-after{box-shadow:0 4px var(--bs-primary,#55e6c1)}

.notation-tabs textarea{white-space:pre;overflow-wrap:normal;overflow-x:auto}

.filter-search-row {
  align-items: center;
  display: flex;
  gap: .6rem;
  margin-bottom: .45rem;
}

.filter-search-row .song-search-wrap { max-width: 32rem; }
.song-filter-section:not([open]) { align-items: flex-start; }
.song-filter-section[open] { grid-template-columns: auto minmax(0, 1fr); }

.attention-panel {
  background: #fffdf8;
  border: 1px solid #d8d2c6;
  border-radius: .75rem;
  margin-bottom: 1rem;
  padding: .9rem 1.1rem;
}

.attention-panel h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.attention-panel ul { list-style: none; margin: 0; padding: 0; }
.attention-panel li + li { border-top: 1px solid #ebe5d8; }
.attention-panel li a { color: inherit; display: flex; flex-direction: column; gap: .1rem; padding: .55rem 0; text-decoration: none; }
.attention-panel li a:hover strong, .attention-panel li a:focus-visible strong { text-decoration: underline; }
.attention-panel li span, .attention-empty { color: #4d5a60; font-size: .9rem; }
.attention-empty { margin: 0; }
.dark-mode .attention-panel { background: #171d20; border-color: #465158; }
.dark-mode .attention-panel li + li { border-color: #343b40; }
.dark-mode .attention-panel li span, .dark-mode .attention-empty { color: #b9c1c5; }

.calendar-month-nav { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.calendar-month-nav h2 { flex: 1 1 auto; font-size: 1.25rem; margin: 0; text-align: center; }
.calendar-grid { display: grid; gap: 1px; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #d8d2c6; border: 1px solid #d8d2c6; border-radius: .6rem; overflow: hidden; margin-bottom: 1.5rem; }
.calendar-grid-head { background: #efe9dc; font-size: .75rem; font-weight: 800; padding: .35rem .5rem; text-align: center; text-transform: uppercase; }
.calendar-grid-cell { background: #fffdf8; display: flex; flex-direction: column; gap: .2rem; min-height: 5.5rem; padding: .3rem .4rem; min-width: 0; }
.calendar-grid-cell.outside { background: #f5f1e8; color: #6b7378; }
.calendar-grid-cell.today { box-shadow: inset 0 0 0 2px #087e9b; }
.calendar-grid-day { font-size: .8rem; font-weight: 700; }
.calendar-grid-gig { background: #e1f1f5; border-radius: .35rem; color: #0b4f61; font-size: .75rem; font-weight: 700; overflow: hidden; padding: .15rem .35rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.calendar-grid-gig:hover, .calendar-grid-gig:focus-visible { background: #c9e6ee; }
.calendar-agenda-heading { font-size: 1.05rem; margin: 0 0 .5rem; }
.calendar-empty { color: #4d5a60; margin: .5rem 0 1rem; }
.dark-mode .calendar-grid { background: #343b40; border-color: #343b40; }
.dark-mode .calendar-grid-head { background: #252d32; }
.dark-mode .calendar-grid-cell { background: #171d20; }
.dark-mode .calendar-grid-cell.outside { background: #111416; color: #9aa3a9; }
.dark-mode .calendar-grid-gig { background: #1f3d46; color: #bff3ff; }
.dark-mode .calendar-empty { color: #b9c1c5; }
@media (max-width: 575.98px) { .calendar-grid-cell { min-height: 3.6rem; padding: .2rem; } .calendar-grid-gig { font-size: .65rem; } }

.song-row-artist { color: #4d5a60; display: block; font-size: .8rem; font-weight: 500; }
.dark-mode .song-row-artist { color: #b9c1c5; }

.action-label { display: none; font-size: .85rem; font-weight: 700; }
@media (min-width: 576px) {
  .icon-text-button:has(> .action-label) { gap: .4rem; padding: 0 .85rem; width: auto; }
  .icon-text-button > .action-label { display: inline; }
}

.settings-hint { color: #4d5a60; display: block; font-size: .72rem; font-weight: 500; }
.dark-mode .settings-hint { color: #b9c1c5; }
.text-muted { color: #565f64 !important; }
.dark-mode .text-muted { color: #b9c1c5 !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
  outline: 2px solid #087e9b;
  outline-offset: 2px;
}
.dark-mode a:focus-visible, .dark-mode button:focus-visible, .dark-mode summary:focus-visible, .dark-mode [tabindex]:focus-visible { outline-color: #18f0ff; }

.readiness-legend { color: #4d5a60; font-size: .8rem; margin: 0 0 .4rem; }
.dark-mode .readiness-legend { color: #b9c1c5; }

@media (max-width: 1030px) and (min-width: 576px) {
  .navbar-brand { margin-right: .5rem; }
  .navbar .brand-logo { height: 38px; }
  .navbar-nav .nav-link.main-nav-link { padding-left: .3rem; padding-right: .3rem; }
  .nav-media-button { margin-right: .25rem; padding-left: .6rem; padding-right: .6rem; }
}

.people-field { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.people-field > label { font-size: .8rem; font-weight: 700; }

@media (min-width: 576px) {
  .chrome-icon-button:has(> .action-label) { gap: .45rem; padding-left: .9rem; padding-right: .9rem; width: auto; }
  .chrome-icon-button > .action-label { display: inline; }
}

/* Column visibility (see column-menu.js) */
.col-hide-key .col-key, .col-hide-hint .col-hint, .col-hide-tempo .col-tempo, .col-hide-duration .col-duration,
.col-hide-style .col-style, .col-hide-difficulty .col-difficulty, .col-hide-readiness .col-readiness, .col-hide-lv .col-lv { display: none !important; }
.column-menu-th { text-align: right; white-space: nowrap; }
.column-menu-button { align-items: center; background: transparent; border: 1px solid transparent; border-radius: .4rem; color: inherit; display: inline-flex; height: 2.1rem; justify-content: center; padding: 0; width: 2.1rem; }
.column-menu-button:hover, .column-menu-button[aria-expanded="true"] { background: #ece7db; border-color: #d8d2c6; }
.dark-mode .column-menu-button:hover, .dark-mode .column-menu-button[aria-expanded="true"] { background: #303a40; border-color: #465158; }
.column-menu-panel { background: #fffdf8; border: 1px solid #d8d2c6; border-radius: .6rem; box-shadow: 0 12px 28px rgba(36, 44, 49, .22); display: flex; flex-direction: column; gap: .15rem; min-width: 12rem; padding: .6rem .7rem; position: fixed; z-index: 3000; }
.column-menu-panel strong { font-size: .75rem; letter-spacing: .04em; margin-bottom: .2rem; text-transform: uppercase; }
.column-menu-panel label { align-items: center; display: flex; gap: .55rem; min-height: 2rem; cursor: pointer; }
.dark-mode .column-menu-panel { background: #171d20; border-color: #465158; color: #ece8df; }

/* Song page: key pill editor and +/- pill */
.key-pill-editor { display: inline-flex; margin: 0; }
.key-pill-editor-trigger, .key-pill-input { border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; line-height: 1.2; padding: .2rem .58rem; }
.key-pill-input { box-sizing: content-box; cursor: text; outline: 2px solid rgba(255, 255, 255, .85); text-align: center; width: 4ch; }
.key-pill-editor-trigger:focus-visible { outline-offset: 2px; }
.song-read-strip:not(.show-extra-pills) .pill-extra { display: none !important; }
.pill-visibility-toggle { align-items: center; background: #ece7db; border: 1px solid #cfc7b6; border-radius: 999px; color: #26343b; cursor: pointer; display: inline-flex; font-size: 1rem; font-weight: 800; height: 1.7rem; justify-content: center; line-height: 1; padding: 0; width: 2.2rem; }
.pill-visibility-toggle:hover { background: #e1dac8; }
.dark-mode .pill-visibility-toggle { background: #303a40; border-color: #4d5961; color: #ece8df; }
.song-title-row { align-items: center; display: flex; gap: .5rem; min-width: 0; }
.song-title-row > form { flex: 0 0 auto; margin: 0; }
.song-title-edit { align-items: center; display: flex; gap: .5rem; flex-wrap: wrap; }
.song-title-edit .title-input { flex: 1 1 12rem; min-width: 0; }
.song-table .song-favorite-col { width: 2.5rem; padding-right: 0; }

/* Server sync admin page */
.sync-peer { border-top: 1px solid var(--bs-border-color, #ddd); padding: .75rem 0; }
.sync-form { display: grid; gap: .5rem; margin-top: .75rem; max-width: 34rem; }
.sync-form label { display: grid; gap: .25rem; font-size: .9rem; }
.admin-database-panel details { margin: .35rem 0; }
.admin-database-panel details pre { white-space: pre-wrap; word-break: break-word; max-height: 20rem; overflow: auto; }
