@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;600;700&family=Noto+Sans+Sinhala:wght@400;600;700&display=swap");
@import url("palette.css");
@import url("icons.css");
.container {
  max-width: 800px;
}
.site-logo {
  height: 42px;
  max-width: 220px;
  object-fit: contain;
}
.site-header {
  padding-bottom: 15px;
  padding-top: 15px;
}
@media (max-width: 991.98px) {
  body:has(.site-header #nav.show) {
    overflow: hidden;
  }
  .mobile-menu-backdrop {
    background: rgba(0, 0, 0, 0.68);
    border: 0;
    display: none;
    inset: 0;
    padding: 0;
    position: fixed;
    width: 100%;
    z-index: 1040;
  }
  body:has(.site-header #nav.show) .mobile-menu-backdrop {
    display: block;
  }
  .site-header #nav.show,
  .site-header #nav.collapsing {
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.55);
    height: auto !important;
    left: 50%;
    max-height: calc(100dvh - 2rem);
    max-width: 25rem;
    overflow-y: auto;
    padding: 3.25rem 2rem 2rem;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
    z-index: 1050;
  }
  .site-header #nav.show {
    display: block !important;
  }
  .site-header #nav.collapsing {
    transition: opacity 0.2s ease;
  }
  .mobile-menu-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #fff;
    display: inline-flex;
    font-size: 2rem;
    height: 2.5rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 0.75rem;
    top: 0.6rem;
    width: 2.5rem;
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus-visible {
    color: var(--site-accent, #ff6410);
  }
  .site-header #nav .navbar-nav {
    align-items: center !important;
    justify-content: center;
    margin: 0 !important;
    text-align: center;
    width: 100%;
  }
  .site-header #nav .nav-link {
    font-size: 1.25rem;
    font-weight: 500;
    padding: 0.65rem 1rem;
    text-align: center;
  }
  .site-header #nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    margin: 0.5rem auto 0;
    position: static;
    text-align: center;
  }
  .site-header #nav .dropdown-item {
    color: #fff;
    font-size: 1.1rem;
    padding: 0.6rem 1.5rem;
    text-align: center;
  }
  .site-header #nav .dropdown-item:hover,
  .site-header #nav .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
}
.home-cover {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.inner-page-cover {
  align-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 120px;
  padding: clamp(1.25rem, 4vw, 2rem);
}
.inner-page-cover h1 {
  color: inherit;
  margin-bottom: 0;
}
.inner-page-cover .text-secondary {
  color: color-mix(in srgb, currentColor 75%, transparent) !important;
}
.page-songs .inner-page-cover > .configured-page-heading,
.page-my-collections .inner-page-cover > .configured-page-heading,
.page-my-lists .inner-page-cover > .configured-page-heading {
  flex: 1 1 0;
  min-width: 0;
}
.page-songs .inner-page-cover > .song-filter-actions {
  flex: 0 1 425px;
  flex-wrap: nowrap !important;
  margin-left: auto;
  min-width: 0;
}
.page-songs .inner-page-cover .song-filters {
  flex: 1 1 auto;
  flex-direction: column;
  flex-wrap: nowrap !important;
  min-width: 0;
  width: 100%;
}
.page-songs .inner-page-cover .song-filter-search,
.page-songs .inner-page-cover .song-artist-filter {
  min-width: 0;
  width: 100%;
}
.page-my-collections .inner-page-cover > .my-collections-create-form,
.page-my-lists .inner-page-cover > .my-collections-create-form {
  flex: 0 1 425px;
  margin-left: auto;
  max-width: 425px;
}
.page-songs #songResults .card-body h2.h5 {
  font-size: 1.1rem;
}
.page-song article.card > .card-body > .d-flex h1 {
  font-size: 1.3rem !important;
}
.page-home .home-section:last-of-type .card-body h3.h5 {
  font-size: 1.1rem;
  margin-bottom: 0;
  padding-bottom: 0;
}
@media (max-width: 575.98px) {
  .inner-page-cover {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
  }
  .inner-page-cover .song-filter-actions {
    justify-content: stretch !important;
  }
  .page-songs .inner-page-cover > .song-filter-actions,
  .page-my-collections .inner-page-cover > .my-collections-create-form,
  .page-my-lists .inner-page-cover > .my-collections-create-form {
    flex-basis: auto;
    margin-left: 0;
    max-width: none;
    width: 100%;
  }
  .page-songs .inner-page-cover > .song-filter-actions,
  .page-songs .inner-page-cover .song-filters {
    flex-wrap: wrap !important;
  }
}
.chord-line .chord-pair {
  margin-right: 0.38em;
}
.site-header a[href*="page=admin"],
.site-header a[href*="page=reviews"],
.site-header a[href*="page=song-new"] {
  display: none !important;
}
.footer-admin-link {
  color: inherit;
  opacity: 0.8;
}
.footer-admin-link:hover {
  color: inherit;
  opacity: 1;
}
body {
  display: flex;
  flex-direction: column;
  font-family: "Albert Sans", system-ui, sans-serif;
  min-height: 100vh;
}
body.bg-body-tertiary {
  background-color: #000 !important;
}
body.bg-body-tertiary > main {
  color: #fff;
}
body.bg-body-tertiary .card,
body.bg-body-tertiary .modal,
body.bg-body-tertiary .accordion,
body.bg-body-tertiary .dropdown-menu {
  color: var(--bs-body-color);
}
body > main {
  flex: 1 0 auto;
}
body > main.container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.site-footer {
  flex-shrink: 0;
}
.footer-menu {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.footer-menu-link {
  align-items: center;
  color: inherit !important;
  display: inline-flex;
  font-weight: 600;
  gap: 0.4rem;
  text-decoration: none;
}
.footer-menu-link:hover,
.footer-menu-link:focus-visible {
  color: var(--site-accent, #ff6410) !important;
}
.footer-copyright {
  line-height: 1.6;
}
h1,
.h1 {
  font-size: 1.7rem;
}
h1 {
  font-size: 1.7rem !important;
}
h2,
.h2,
h3,
.h3 {
  font-size: 1.5rem;
}
a {
  text-decoration: none;
}
body > main.container h1 {
  align-items: center;
  display: flex;
  gap: 0.6rem;
}
body > main.container h1::before {
  background: currentColor;
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: 1.1em;
  mask-image: url("icons/music.svg");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 1.1em;
}
.page-home > main.container h1::before {
  display: none;
}
.page-lists > main.container h1::before,
.page-collections > main.container h1::before,
.page-list > main.container h1::before,
.page-my-lists > main.container h1::before,
.page-my-collections > main.container h1::before,
.page-favorite-collections > main.container h1::before,
.page-my-favorite > main.container h1::before {
  mask-image: url("icons/collection.svg");
}
.page-login > main.container h1::before,
.page-register > main.container h1::before {
  mask-image: url("icons/user.svg");
}
.page-settings > main.container h1::before,
.page-song-edit > main.container h1::before,
.page-song-suggest > main.container h1::before {
  mask-image: url("icons/settings.svg");
}
.page-reviews > main.container h1::before {
  mask-image: url("icons/review.svg");
}
.my-lists-empty {
  max-width: 560px;
  margin: 3rem auto;
}
.my-collections-create-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  width: 100%;
}
.my-collections-create-form > div:not(.custom-thumbnail-control) {
  grid-column: 1 / -1;
}
.inner-page-cover .my-collections-create-form {
  flex: 0 1 340px;
  grid-template-columns: 1fr;
  margin-left: auto;
  max-width: 340px;
}
.inner-page-cover .my-collections-create-form > *,
.inner-page-cover .my-collections-create-form > div:not(.custom-thumbnail-control) {
  grid-column: 1;
}
.inner-page-cover .my-collections-create-form .btn {
  width: 100%;
}
@media (max-width: 575.98px) {
  .inner-page-cover .my-collections-create-form {
    flex-basis: auto;
    margin-left: 0;
    max-width: none;
    width: 100%;
  }
}
.custom-thumbnail-control {
  align-items: center;
  background: #fff;
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  color: #212529;
  display: flex;
  min-width: 0;
  overflow: hidden;
}
.custom-thumbnail-button {
  background: #f8f9fa;
  border-right: var(--bs-border-width) solid var(--bs-border-color);
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem;
}
.custom-thumbnail-name {
  min-width: 0;
  overflow: hidden;
  padding: 0.55rem 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-collection-card-actions {
  align-items: center;
  align-self: stretch;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}
.collection-card-title {
  font-size: 1.2rem !important;
}
body:is(.page-list, .page-collection) .collection-detail-header h1 {
  font-size: 1.3rem !important;
}
.collection-card-title a {
  color: #212529 !important;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
.collection-card-title a:hover,
.collection-card-title a:focus-visible {
  color: var(--site-accent, #ff6410) !important;
}
.my-collection-like-count {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  font-size: 0.9rem;
  gap: 0.25rem;
  padding: 0;
  white-space: nowrap;
}
.my-collection-like-count:hover {
  color: var(--bs-primary);
}
.my-collection-like-count:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.my-collection-like-count .svg-icon {
  --icon-size: 0.8em;
}

body:is(.page-collections, .page-my-collections, .page-my-favorite)
  .collection-edit-button,
body:is(.page-collections, .page-my-collections, .page-my-favorite)
  .collection-like-button,
body:is(.page-collections, .page-my-collections, .page-my-favorite)
  .my-collection-like-count {
  color: #212529;
}
body:is(.page-collections, .page-my-collections, .page-my-favorite)
  .collection-edit-button,
body:is(.page-collections, .page-my-collections, .page-my-favorite)
  .collection-like-button {
  font-size: 1.1rem;
}
body:is(.page-collections, .page-my-collections, .page-my-favorite)
  .collection-edit-button
  .icon-share {
  --icon-size: 0.88em;
}
body:is(.page-collections, .page-my-collections, .page-my-favorite)
  .collection-like-button.is-liked {
  color: var(--site-accent, #ff6410);
}
body:is(.page-collections, .page-my-collections, .page-my-favorite)
  .my-collection-like-count
  .icon-heart-filled {
  color: var(--site-accent, #ff6410);
}
body:is(.page-collections, .page-my-collections, .page-my-favorite)
  .collection-edit-button:hover,
body:is(.page-collections, .page-my-collections, .page-my-favorite)
  .collection-like-button:not(.is-liked):hover {
  color: var(--site-accent, #ff6410);
}
body.page-collections
  > main.container
  > .row
  > .col-lg-6
  .card-body
  > .mt-auto
  > .d-flex {
  align-items: center !important;
  display: flex;
  gap: 0.8rem !important;
  line-height: 1;
}
body.page-collections
  > main.container
  > .row
  > .col-lg-6
  .card-body
  > .mt-auto
  > .d-flex
  form {
  align-items: center;
  display: flex;
  margin: 0;
}
body.page-collections
  > main.container
  > .row
  > .col-lg-6
  .card-body
  > .mt-auto
  > .d-flex
  .btn-link {
  color: #212529;
  line-height: 1;
  margin: 0;
  padding: 0;
  text-decoration: none;
}
body.page-collections
  > main.container
  > .row
  > .col-lg-6
  .card-body
  > .mt-auto
  > .d-flex
  .btn-link:hover {
  color: var(--site-accent, #ff6410);
}
.registration-banner {
  align-items: center;
  background: var(--bs-primary);
  border-radius: 0.75rem;
  color: #fff;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1.5rem;
}
.registration-banner h2 {
  color: inherit;
}
.registration-banner-compact {
  border-radius: 0.6rem;
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
}
@media (max-width: 576px) {
  .registration-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
  }
  .registration-banner .btn {
    width: 100%;
  }
}

.chord-badge[role="button"] {
  cursor: pointer;
}
.chord-badge[role="button"]:focus-visible {
  outline: 2px solid #ff6410;
  outline-offset: 2px;
}
.chord-diagram-popover {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.85rem;
  box-shadow: 0 10px 32px #0005;
  color: #20252b;
  padding: 0.75rem;
  position: absolute;
  width: 220px;
  z-index: 1200;
}
.chord-diagram-popover[hidden] {
  display: none;
}
.chord-diagram-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #666;
  display: inline-flex;
  font-size: 1.4rem;
  height: 28px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0.55rem;
  top: 0.4rem;
  width: 28px;
  z-index: 1;
}
.chord-diagram-close:hover,
.chord-diagram-close:focus-visible {
  color: #ff6410;
}
.chord-diagram-canvas {
  min-height: 190px;
}
.chord-diagram-canvas:empty {
  min-height: 0;
}
.chord-diagram-canvas svg {
  display: block;
  height: auto;
  max-height: 255px;
  width: 100%;
}
.chord-diagram-message {
  margin: 1.75rem 0 0.5rem;
  text-align: center;
}

.tuner-cover {
  min-height: 120px;
}
.chord-library-cover {
  min-height: 120px;
}
.chord-library-cover .svg-icon {
  --icon-size: 1.1em;
}
.chord-library {
  margin: 0 auto;
  max-width: 720px;
}
.chord-library-filters .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.chord-library-heading h2 {
  color: #fff;
}
.chord-voicing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}
.chord-voicing-card {
  overflow: hidden;
}
.chord-library-diagram {
  min-height: 250px;
}
.chord-library-diagram svg {
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: 360px;
  max-width: 330px;
  width: 100%;
}
.chord-library-diagram.is-error {
  align-items: center;
  color: #842029;
  display: flex;
  justify-content: center;
  min-height: 180px;
  text-align: center;
}
@media (min-width: 700px) {
  .chord-voicing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .chord-library-filters .card-body {
    padding: 0.85rem;
  }
  .chord-library-filters .row {
    --bs-gutter-x: 0.55rem;
  }
  .chord-library-filters .form-select {
    font-size: 0.9rem;
  }
}
.tuner-cover .svg-icon {
  --icon-size: 1.15em;
}
.tuner-card {
  margin: 0 auto;
  max-width: 620px;
  overflow: hidden;
}
.tuner-monkey-logo {
  display: block;
  height: 96px;
  margin: 0 auto 1rem;
  object-fit: contain;
  width: 96px;
}
.tuner-status {
  min-height: 1.5em;
}
.tuner-strings {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(6, 1fr);
  margin: 1.5rem auto;
  max-width: 430px;
}
.tuner-strings button {
  background: #f1f3f5;
  border: 0;
  border-radius: 0.55rem;
  color: #343a40;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 0.2rem;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.tuner-strings button:hover,
.tuner-strings button:focus-visible,
.tuner-strings button.is-playing {
  background: var(--site-accent, #ff6410);
  color: #fff;
}
.tuner-strings button.is-playing {
  transform: translateY(-2px);
}
.tuner-continuous-switch {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
  padding-left: 0;
}
.tuner-continuous-switch .form-check-input {
  float: none;
  margin: 0;
}
@media (max-width: 480px) {
  .tuner-strings { gap: 0.3rem; }
  .tuner-monkey-logo {
    height: 82px;
    width: 82px;
  }
}

.app-install-modal .modal-dialog { max-width: 24rem; padding: 0.75rem; }
.app-install-modal .modal-content { border: 0; border-radius: 1rem; }
.app-install-modal .app-install-close { position: absolute; right: 1rem; top: 1rem; }
.app-install-modal .app-install-icon { border-radius: 1rem; height: 72px; object-fit: cover; width: 72px; }
.app-install-modal .app-install-action { min-width: 8rem; }
.home-browse-link {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  text-decoration: none;
}
.home-browse-link svg {
  transition: transform 0.18s ease;
}
.home-browse-link:hover svg {
  transform: translateX(0.2rem);
}
.suggest-edit-link,
.suggest-edit-link:hover,
.suggest-edit-link:focus-visible {
  background: transparent;
  border: 0;
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}
.suggest-edit-link:hover {
  opacity: 0.82;
}
.home-section > h2,
body > main.container > h2 {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}
.home-section > h2::before,
body > main.container > h2::before {
  background: currentColor;
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: 1.2em;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 1.2em;
}
.home-section:first-of-type > h2::before {
  mask-image: url("icons/collection.svg");
}
.home-section:last-of-type > h2::before,
body > main.container > h2::before {
  mask-image: url("icons/music.svg");
}
.card-body.p-lg-4 {
  position: relative;
}
.card-body.p-lg-4 > .d-flex:first-child > .d-flex.gap-2 {
  margin-left: auto;
}
.card-body.p-lg-4 > .d-flex:first-child > .d-flex.gap-2 .btn {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #212529 !important;
  display: inline-flex;
  font-size: 0;
  justify-content: center;
  min-height: 1.25rem;
  min-width: 1.25rem;
  padding: 0;
}
.card-body.p-lg-4 > .d-flex:first-child > .d-flex.gap-2 .btn::before {
  background-color: currentColor;
  content: "";
  display: block;
  height: 22px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 22px;
}
.card-body.p-lg-4 > .d-flex:first-child > .d-flex.gap-2 a.btn::before {
  mask-image: url("icons/edit.svg");
}
.card-body.p-lg-4 > .d-flex:first-child > .d-flex.gap-2 button.btn::before {
  mask-image: url("icons/delete.svg");
}
.card-body.p-lg-4 > .d-flex:first-child > .d-flex.gap-2 .btn:hover {
  background: transparent !important;
  color: #d94f00 !important;
}
.card-body.p-lg-4 > .d-flex:first-child > .d-flex.gap-2 .btn-danger:hover {
  background: transparent !important;
  color: #b02a37 !important;
}
.page-song > main.container > article.card {
  margin-bottom: 3rem;
  overflow: visible;
}
.page-song
  > main.container
  > article.card
  > .card-body.p-lg-4
  > .d-flex:first-child
  > .d-flex.gap-2 {
  bottom: -2.35rem;
  column-gap: 1rem !important;
  position: absolute;
  right: 0;
  z-index: 5;
}
.page-song
  > main.container
  > article.card
  > .card-body.p-lg-4
  > .d-flex:first-child
  > .d-flex.gap-2
  .btn {
  color: #fff !important;
  font-size: 0.95rem;
  min-height: 0;
  min-width: 0;
  text-decoration: none;
}
.page-song
  > main.container
  > article.card
  > .card-body.p-lg-4
  > .d-flex:first-child
  > .d-flex.gap-2
  .btn::before {
  display: none;
}
.page-song
  > main.container
  > article.card
  > .card-body.p-lg-4
  > .d-flex:first-child
  > .d-flex.gap-2
  .btn:hover {
  color: #fff !important;
  opacity: 0.8;
}
.collection-thumbnail {
  background: #fff;
  border-radius: 0.75rem;
  flex: 0 0 auto;
}
.collection-sort-mobile {
  max-width: 9rem;
}
.song-artist-filter {
  min-width: 200px;
  width: auto;
}
.song-filter-search {
  min-width: 230px;
  width: auto;
}
.song-filter-actions {
  max-width: 100%;
}
#songResults.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 576px) {
  .song-filter-actions,
  .song-filters,
  .song-filter-search,
  .song-artist-filter {
    width: 100%;
  }
}
.collection-create-inline summary {
  cursor: pointer;
  font-weight: 600;
}
.scroll-floating {
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
  min-height: 48px !important;
  min-width: 48px !important;
  overflow: visible !important;
  right: 1rem !important;
  z-index: 1095 !important;
}
@media (max-width: 576px) {
  h1,
  .h1 {
    font-size: 1.7rem !important;
    line-height: 1.15;
  }
  .collection-sort-mobile {
    max-width: 8.5rem;
  }
  .scroll-floating {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
    right: 0.75rem !important;
  }
  .page-song > main.container > article.card {
    margin-bottom: 3rem;
    overflow: visible;
  }
  .page-song
    > main.container
    > article.card
    > .card-body.p-lg-4
    > .d-flex:first-child
    > .d-flex.gap-2 {
    bottom: -2.35rem;
    position: absolute;
    right: 0;
    z-index: 5;
  }
  .page-song
    > main.container
    > article.card
    > .card-body.p-lg-4
    > .d-flex:first-child
    > .d-flex.gap-2
    .btn {
    color: #fff !important;
  }
  .page-song
    > main.container
    > article.card
    > .card-body.p-lg-4
    > .d-flex:first-child
    > .d-flex.gap-2
    .btn:hover {
    color: #fff !important;
    opacity: 0.8;
  }
  .my-collections-create-form {
    grid-template-columns: 1fr;
  }
}
.collection-edit-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--bs-primary);
  display: inline-flex;
  font-size: 1.15rem;
  justify-content: center;
  min-height: 1.25rem;
  min-width: 1.25rem;
  padding: 0;
}
.collection-edit-button:hover {
  background: transparent;
  color: #d94f00;
}
.collection-edit-button[aria-label*="Copy"],
.collection-edit-button[aria-label*="copy"] {
  color: #212529;
}
.collection-edit-button[aria-label*="Copy"]:hover,
.collection-edit-button[aria-label*="copy"]:hover {
  color: #000;
}
.collection-edit-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.collection-copy-icon {
  display: none;
}
@media (max-width: 576px) {
  .collection-detail-header {
    align-items: flex-start !important;
    position: relative;
  }
  .collection-detail-identity {
    align-items: flex-start !important;
    padding-right: 5rem;
  }
  .collection-detail-actions {
    align-items: flex-start !important;
    gap: 0.8rem !important;
    margin: 0 !important;
    position: absolute;
    right: 0;
    top: 0.15rem;
  }
  .collection-detail-actions .collection-edit-button,
  .collection-detail-actions .collection-copy-button {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #d1d1d1 !important;
    display: inline-flex;
    min-height: 1.5rem;
    min-width: 1.5rem;
    padding: 0 !important;
  }
  .collection-detail-actions .collection-edit-button:hover,
  .collection-detail-actions .collection-edit-button:focus-visible,
  .collection-detail-actions .collection-copy-button:hover,
  .collection-detail-actions .collection-copy-button:focus-visible {
    color: var(--bs-primary) !important;
  }
  .collection-detail-actions .collection-copy-form {
    margin: 0 !important;
  }
  .collection-copy-icon {
    display: inline-block;
  }
  .collection-copy-label {
    display: none;
  }
}
.header-search-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  font-size: 1.2rem;
  justify-content: center;
  min-height: 1.25rem;
  min-width: 1.25rem;
  padding: 0;
}
.header-search-button:hover,
.header-search-button:focus-visible {
  background: transparent;
  color: #c4c3ff;
}
.header-search-modal .modal-dialog {
  max-width: 620px;
}
.guest-registration-modal .modal-dialog {
  max-width: 520px;
}
.guest-registration-modal .modal-content {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
}
.guest-registration-modal .modal-header {
  align-items: flex-start;
}
.guest-registration-modal .modal-title {
  font-size: 1.5rem;
  line-height: 1.1em;
}
.header-search-modal .form-control {
  font-size: 1.1rem;
}
@media (max-width: 576px) {
  .header-search-modal .input-group {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .header-search-modal .input-group-text {
    border-radius: 0.5rem 0 0 0.5rem !important;
    grid-column: 1;
    grid-row: 1;
  }
  .header-search-modal .form-control {
    border-radius: 0 0.5rem 0.5rem 0 !important;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100% !important;
  }
  .header-search-modal .input-group > .btn {
    border-radius: 0.5rem !important;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: 0 !important;
    margin-top: 0.6rem;
    width: 100%;
  }
}
.song-heart-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--site-accent, #ff6410);
  display: inline-flex;
  font-size: 1.35rem;
  justify-content: center;
  line-height: 1;
  min-height: 1.25rem;
  min-width: 1.25rem;
  padding: 0;
  position: absolute;
  right: 1rem;
  text-decoration: none;
  top: 1rem;
  z-index: 3;
}
.song-heart-button:hover {
  background: transparent;
  color: color-mix(in srgb, var(--site-accent, #ff6410) 80%, #000);
}
.song-heart-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.page-song article.card .card-body > .d-flex:first-child p.text-secondary {
  font-size: 0.8rem;
  margin-left: 2.03rem;
}
.collection-like-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--bs-danger);
  display: inline-flex;
  font-size: 1.45rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.collection-like-button:hover {
  color: #b02a37;
}
.collection-like-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
body:is(.page-lists, .page-collections)
  > main.container
  > .row
  > .col-lg-6
  .card-body
  > .d-flex:first-child {
  margin-bottom: 0 !important;
}
body:is(.page-lists, .page-collections)
  > main.container
  > .row
  > .col-lg-6
  .card-body
  > .mt-auto {
  margin-top: 0.65rem !important;
}
body:is(.page-lists, .page-collections)
  > main.container
  > .row
  > .col-lg-6
  .card-body
  > .mt-auto
  > .d-flex {
  flex-wrap: nowrap;
  gap: 0.65rem !important;
  white-space: nowrap;
}
body:is(.page-lists, .page-collections)
  button.btn.btn-link[data-bs-target^="#likes"] {
  color: #212529;
  line-height: 1;
  padding: 0 !important;
  text-decoration: none !important;
}
body:is(.page-lists, .page-collections)
  button.btn.btn-link[data-bs-target^="#likes"]:hover {
  color: var(--bs-primary);
  text-decoration: none !important;
}
#songs .accordion-item {
  border-radius: 0.75rem;
  overflow: hidden;
}
#songs .accordion-button {
  border-radius: 0.75rem;
}
#songs .accordion-button:not(.collapsed) {
  border-radius: 0.75rem 0.75rem 0 0;
}
#songs .accordion-button::after {
  background-size: 1.35rem;
  height: 1.35rem;
  width: 1.35rem;
}
#songs .accordion-collapse,
#songs .accordion-body {
  border-radius: 0 0 0.75rem 0.75rem;
}
.song-card-header:has(.song-remove-form) .accordion-button::after {
  position: absolute;
  right: 3.75rem;
}
.chord-toolbar {
  --toolbar-control-height: 42px;
  display: flex;
}
.chord-toolbar .btn,
.chord-toolbar .form-select {
  height: var(--toolbar-control-height);
  min-height: var(--toolbar-control-height);
}
.chord-toolbar .btn-group,
.chord-toolbar .input-group {
  align-items: stretch;
}
.toolbar-control,
.scroll-control-group {
  flex: 0 0 auto;
}
.toolbar-control {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.toolbar-label {
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  min-height: 0.8rem;
  padding-left: 0.1rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.toolbar-control:has([data-scroll]) {
  min-width: 12rem;
}
.scroll-control-group {
  width: auto;
}
.scroll-control-group .form-select {
  min-width: 7rem;
  width: auto;
}
.toolbar-icon-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 44px;
}
.toolbar-icon-button .svg-icon {
  pointer-events: none;
}
.fullscreen-toolbar-button,
.fullscreen-toolbar-button:hover,
.fullscreen-toolbar-button:focus,
.fullscreen-toolbar-button:active {
  background: #00000014 !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ff6410;
  min-width: 0 !important;
  padding: 10px !important;
  width: auto !important;
}
.fullscreen-toolbar-button:hover,
.fullscreen-toolbar-button:focus-visible {
  background: #00000024 !important;
}
.fullscreen-toolbar-button .svg-icon {
  --icon-size: 24px;
  background-color: #ff6410;
  pointer-events: none;
}
.fullscreen-toolbar-button:hover .svg-icon,
.fullscreen-toolbar-button:focus-visible .svg-icon {
  background-color: #d94f00;
}
[data-scroll-stop] {
  display: none;
}
[data-scroll].is-scrolling [data-scroll-stop] {
  display: block;
}
[data-scroll].is-scrolling [data-scroll-play] {
  display: none;
}
[data-scroll].is-scrolling,
[data-scroll].is-scrolling:hover,
[data-scroll].is-scrolling:focus,
[data-scroll].is-scrolling:active {
  background-color: #ff6410 !important;
  border-color: #ff6410 !important;
  border-radius: 0.65rem !important;
  color: #fff !important;
}
[data-scroll].is-scrolling .svg-icon {
  background-color: #fff !important;
}
.scroll-edge-controls {
  align-items: stretch;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  width: 52px;
  z-index: 1095;
}
.scroll-edge-speed {
  appearance: none;
  background-image: none !important;
  border: 0;
  border-radius: 0.55rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  height: 36px;
  padding: 0 !important;
  text-align: center;
  width: 52px;
}
.scroll-edge-menu {
  position: relative;
}
.scroll-edge-tool,
.scroll-edge-tool:hover,
.scroll-edge-tool:focus,
.scroll-edge-tool:active {
  align-items: center;
  background: #f1f1f1;
  border: 0;
  border-radius: 0.65rem;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  padding: 0;
  width: 52px;
}
.scroll-edge-tool .svg-icon {
  --icon-size: 24px;
  background-color: #20252b;
}
.scroll-edge-tool:hover .svg-icon,
.scroll-edge-tool:focus-visible .svg-icon {
  background-color: #ff6410;
}
.scroll-edge-panel {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: none;
  padding: 0;
  position: absolute;
  right: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}
.scroll-edge-menu.is-open .scroll-edge-panel {
  display: block;
}
.scroll-edge-panel .btn-group {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
}
.scroll-edge-panel .btn.disabled {
  display: none;
}
.scroll-edge-panel .btn {
  align-items: center;
  background: #aaa;
  border: 0;
  border-radius: 0.5rem !important;
  color: #111;
  display: inline-flex;
  font-size: 1.15rem;
  height: 36px;
  justify-content: center;
  min-width: 36px;
  padding: 0;
  width: 36px;
}
.scroll-edge-panel .btn:hover,
.scroll-edge-panel .btn:focus-visible,
.scroll-edge-panel .btn:active {
  background: #ff6410;
  color: #fff;
}
.scroll-edge-fullscreen,
.scroll-edge-fullscreen:hover,
.scroll-edge-fullscreen:focus,
.scroll-edge-fullscreen:active {
  align-items: center;
  background: #f1f1f1 !important;
  border-radius: 0.65rem !important;
  display: inline-flex;
  height: 52px;
  justify-content: center !important;
  padding: 0 !important;
  width: 52px !important;
}
.scroll-edge-fullscreen .svg-icon {
  --icon-size: 24px;
}
.scroll-edge-button,
.scroll-edge-button:hover,
.scroll-edge-button:focus,
.scroll-edge-button:active {
  align-items: center;
  background: #f1f1f1;
  border: 0;
  border-radius: 0.65rem;
  box-shadow: 0 5px 18px #0004;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  padding: 0;
  width: 52px;
}
.scroll-edge-button .svg-icon {
  --icon-size: 24px;
  background-color: #20252b;
}
.scroll-edge-button::before {
  display: none !important;
}
@media (max-width: 576px) {
  .scroll-edge-controls {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    right: calc(0.75rem + env(safe-area-inset-right, 0px));
  }
}
@media (max-width: 576px) {
  .chord-toolbar {
    align-items: end;
    column-gap: 0.75rem;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.85rem;
  }
  .chord-toolbar .toolbar-control {
    min-width: 0 !important;
    width: 100%;
  }
  .chord-toolbar .toolbar-control .btn-group,
  .chord-toolbar .toolbar-control .input-group {
    width: 100%;
  }
  .chord-toolbar .toolbar-control .btn-group > .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
  .toolbar-control:has([data-scroll]) {
    grid-column: 1;
    grid-row: 2;
  }
  .toolbar-control:has([data-scroll]) .scroll-control-group {
    width: 100%;
  }
  .toolbar-control:has([data-scroll]) .form-select {
    flex: 1 1 auto;
  }
  .scroll-control-group .form-select {
    min-width: 0;
  }
  .toolbar-icon-button {
    min-width: 40px;
  }
  .fullscreen-toolbar-button {
    align-items: center;
    display: inline-flex;
    grid-column: 2;
    grid-row: 2;
    height: auto;
    justify-content: flex-end;
    justify-self: end;
    width: auto !important;
  }
}
[data-scroll]::before {
  background-image: url("icons/auto-scroll.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: block;
  height: 24px;
  width: 18px;
}
[data-scroll].is-scrolling::before {
  display: none;
}
.song-card-header {
  position: relative;
}
.song-card-header .accordion-button {
  padding-right: 1.25rem;
}
.song-card-header:has(.song-remove-form) .accordion-button {
  padding-right: 5.5rem;
}
.song-card-header .accordion-button::after {
  margin-left: auto;
}
.song-remove-form {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.song-remove-button {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--bs-danger);
  display: inline-flex;
  font-size: 1.15rem;
  justify-content: center;
  line-height: 1;
  min-height: 1.25rem;
  min-width: 1.25rem;
  padding: 0;
}
.song-remove-button:hover {
  background: transparent !important;
  color: #b02a37;
}
.song-remove-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.review-diff {
  background: #111827;
  border-radius: 0.4rem;
  color: #e5e7eb;
  font-family: "Noto Sans Sinhala", ui-monospace, monospace;
  max-height: 34rem;
  overflow: auto;
  padding: 0.65rem 0;
}
.diff-line {
  display: grid;
  grid-template-columns: 2rem 1fr;
  min-height: 1.65rem;
  padding: 0.12rem 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.diff-line > span {
  font-weight: 700;
  user-select: none;
}
.diff-same {
  color: #9ca3af;
}
.diff-add {
  background: #064e3b;
  color: #d1fae5;
}
.diff-del {
  background: #7f1d1d;
  color: #fee2e2;
  text-decoration: line-through;
}
.diff-key {
  border-radius: 0.2rem;
  color: #fff;
  display: inline-block;
  text-align: center;
  width: 1.4rem;
}
.diff-key-add {
  background: #047857;
}
.diff-key-del {
  background: #b91c1c;
}
.change-summary del {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.1rem 0.25rem;
}
.change-summary ins {
  background: #d1fae5;
  color: #065f46;
  padding: 0.1rem 0.25rem;
  text-decoration: none;
}
body {
  min-width: 280px;
}
.site-main,
.site-nav {
  max-width: 800px;
}
.auth-card {
  max-width: 560px;
}
.page-settings .settings-card {
  max-width: 760px;
}
.contribution-summary {
  align-items: stretch;
  background: #f3f4f6;
  border-radius: 0.75rem;
  display: grid;
  flex: 0 1 260px;
  grid-template-columns: repeat(2, minmax(78px, 1fr));
  overflow: hidden;
  margin-left: auto;
  max-width: 260px;
}
.contribution-stat,
.contribution-level {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.4rem 0.55rem;
}
.contribution-stat {
  color: #212529 !important;
  text-decoration: none;
  transition: background-color 0.15s ease-in-out;
}
.contribution-stat:hover,
.contribution-stat:focus-visible {
  background: #e5e7eb;
  color: #212529 !important;
}
.contribution-stat + .contribution-stat {
  border-left: 1px solid #dfe2e6;
}
.contribution-stat strong {
  font-size: 1.1rem;
  line-height: 1;
}
.contribution-stat span,
.contribution-level span,
.contribution-stat small {
  color: #6c757d;
  font-size: 0.66rem;
  white-space: nowrap;
}
.contribution-level {
  background: #212529;
  color: #fff;
  grid-column: 1 / -1;
  text-align: center;
}
.contribution-level span {
  color: rgba(255, 255, 255, 0.7);
}
.contribution-level strong {
  font-size: 0.78rem;
}
@media (max-width: 767.98px) {
  .settings-profile-header {
    align-items: stretch !important;
    flex-direction: column;
  }
  .contribution-summary {
    flex-basis: auto;
    margin-left: 0;
    max-width: none;
    width: 100%;
  }
}
.contribution-history-section {
  scroll-margin-top: 1rem;
}
.card-link {
  color: inherit;
  transition: 0.2s;
}
.card-link:hover {
  border-color: #86b7fe;
  transform: translateY(-2px);
}
.chord-chart {
  --chart-scale: 1;
  background: #fff;
  border-radius: 0.75rem;
  max-width: 100%;
}
.chord-toolbar {
  column-gap: 0.8rem;
  row-gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.chart-body,
.notation-editor {
  font-family: "Noto Sans Sinhala", system-ui, sans-serif;
}
.chart-body {
  font-size: calc(1rem * var(--chart-scale));
  overflow-wrap: anywhere;
}
.section-title {
  font-size: 1.15em;
  margin: 1.5rem 0 0.75rem;
}
.section-title:first-child {
  margin-top: 0;
}
.section-gap {
  height: 0.65rem;
}
.chord-line {
  display: block;
  line-height: 1.65;
  min-height: 3.6em;
}
.chord-pair {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  max-width: 100%;
  row-gap: 0.15em;
  vertical-align: bottom;
}
.chord-pair > span:last-child {
  min-height: 1.65em;
}
.chord-badge {
  background: #ffe58f;
  border-radius: 0.45rem;
  color: #111;
  display: inline-block;
  font:
    700 calc(0.875rem * var(--chart-scale))/1.15 "Noto Sans Sinhala",
    system-ui,
    sans-serif;
  padding: 0.28em 0.46em;
  white-space: nowrap;
  width: max-content;
}
.chord-badge .chord-suffix {
  font-size: 0.72em;
  line-height: inherit;
  margin-left: 0.04em;
  position: relative;
  top: -0.14em;
}
.progression {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}
.notation-pair {
  max-width: 100%;
  overflow: hidden;
}
.notation-pair-content {
  transform-origin: left top;
  width: max-content;
}
.notation-chords,
.notation-lyrics {
  font-family: "Noto Sans Sinhala", sans-serif;
  min-width: max-content;
  white-space: pre;
}
.notation-chords {
  align-items: flex-end;
  display: block;
  line-height: 1.5;
  min-height: 1.8em;
}
.notation-chords .chord-badge {
  display: inline-flex;
  vertical-align: bottom;
}
.notation-chord-slot {
  display: inline-block;
  position: relative;
}
.notation-chord-source {
  visibility: hidden;
}
.notation-chord-slot .chord-badge {
  bottom: 0;
  left: 0;
  position: absolute;
}
.notation-chord-slot > span:last-child > .chord-badge {
  position: static;
}
.notation-lyrics {
  line-height: 1.55;
  min-height: 1.55em;
}
.notation-pair + .notation-pair {
  margin-top: 0.2rem;
}
.chord-chart:fullscreen {
  background: #fff;
  height: 100vh;
  overflow: auto;
  padding: clamp(1rem, 3vw, 2.5rem);
  width: 100vw;
}
.chord-chart:fullscreen .fullscreen-toolbar-button {
  position: static;
  width: 52px !important;
}
.scroll-floating {
  bottom: 1rem;
  box-shadow: 0 5px 18px #0004;
  position: fixed !important;
  right: 1rem;
  z-index: 1090;
}
.review-chart {
  background: #111827;
  color: #f8fafc;
  max-height: 24rem;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
}
@media (max-width: 576px) {
  main.site-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .card-body {
    padding: 1rem;
  }
  .chord-toolbar {
    align-items: stretch;
  }
  .chord-toolbar .btn,
  .chord-toolbar .form-select {
    font-size: 0.78rem;
    min-height: 40px;
  }
  .chord-line {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .scroll-edge-controls {
    align-items: center;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    gap: 0.35rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
  }
  .scroll-edge-tool,
  .scroll-edge-button,
  .scroll-edge-fullscreen,
  .chord-chart:fullscreen .scroll-edge-fullscreen {
    height: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
  }
  .scroll-edge-speed {
    height: 44px;
    width: 44px;
  }
  .scroll-edge-panel {
    bottom: calc(100% + 0.5rem);
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
  }
}
