.is-dashboard :is(.landing-page, .sidebar, .main-app, .stage-top, .playback-bar) {
  display: none !important;
}

.dashboard-reader-back {
  display: inline-flex;
  flex: none;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #394630;
  color: var(--accent);
}

.dashboard-reader-back svg {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.is-admin .breadcrumb > span,
.is-admin .breadcrumb > svg {
  display: none;
}

@media (max-width: 760px) {
  .dashboard-reader-back span {
    display: none;
  }
}

.account-dashboard {
  min-height: 100dvh;
  padding: 22px max(20px, env(safe-area-inset-right)) 52px max(20px, env(safe-area-inset-left));
  background: radial-gradient(ellipse 540px 380px at 15% 0%, #202e1a, transparent), var(--bg);
}

#accountDashboard,
#accountDashboard .dashboard-wrap {
  display: flex;
  flex-direction: column;
}
#accountDashboard .dashboard-wrap {
  flex: 1;
  width: 100%;
}
.dashboard-footer {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 20px;
  text-align: center;
}
.dashboard-footer .developer-credit {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.dashboard-wrap {
  max-width: 960px;
  margin-inline: auto;
}

.dashboard-header,
.dashboard-identity,
.dashboard-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-header,
.dashboard-page-header {
  justify-content: space-between;
  flex-wrap: wrap;
}

.dashboard-header {
  margin-bottom: clamp(24px, 4vw, 43px);
  padding-bottom: 17px;
  border-bottom: 1px solid var(--border);
}

.dashboard-identity {
  min-width: 0;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -.04em;
}

.dashboard-mark {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #1b291d;
  color: var(--accent);
}

.dashboard-mark svg {
  width: 23px;
  height: 23px;
}

.dashboard-heading-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.dashboard-heading-actions .dashboard-button {
  min-height: 44px;
  white-space: nowrap;
}

.dashboard-title {
  margin: 0 0 17px;
  font-size: clamp(29px, 4vw, 43px);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.dashboard-title:focus,
.dashboard-page h2:focus {
  outline: none;
}

.dashboard-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid #303b2b;
  border-radius: 10px;
  background: #151b13;
}

.dashboard-nav-item {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 6px;
  color: #b8c4b0;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.dashboard-nav-item svg {
  width: 16px;
  height: 16px;
}

.dashboard-nav-item[aria-current="page"] {
  border-color: #435735;
  background: #293a21;
  color: #dcf7ad;
}

.dashboard-nav-item:focus-visible {
  outline-offset: -2px;
}

#dashboardTabRequests {
  margin-inline-start: auto;
}

.dashboard-feedback {
  margin: 0 0 16px;
  color: #ffc4a8;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.dashboard-button,
.sidebar-dashboard-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #435439;
  background: #192117;
  color: #dce8d4;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.dashboard-button svg,
.sidebar-dashboard-button svg {
  width: 16px;
  height: 16px;
}

.dashboard-button-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #1b2912;
}

.dashboard-button-accent:not(:disabled):hover {
  background: #e5fbab;
}

.dashboard-page {
  padding: clamp(15px, 2.7vw, 27px);
  border: 1px solid #344131;
  border-radius: 13px;
  background: #151a14;
}

.dashboard-page-header {
  margin-bottom: 17px;
}

.dashboard-page-header h2 {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.15;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.dashboard-count {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: #293921;
  color: #d0e8b8;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.dashboard-catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, .29fr) minmax(120px, .29fr);
  align-items: end;
  gap: 9px;
}

.dashboard-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: #b5c1ad;
  font-size: 13px;
  font-weight: 550;
}

.dashboard-field input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #374631;
  border-radius: 9px;
  background: #101610;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.dashboard-field input::placeholder {
  color: #889483;
}

.dashboard-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dashboard-song-search {
  max-width: 490px;
}

.dashboard-detail-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(155px, .35fr);
  align-items: end;
  gap: 9px;
}

.dashboard-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.dashboard-list > li {
  min-width: 0;
}

.dashboard-empty,
.dashboard-repertoire-empty {
  padding: 13px;
  border: 1px dashed #374631;
  border-radius: 8px;
  color: #afbe9f;
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-list > li > button {
  display: flex;
  width: 100%;
  min-height: 57px;
  align-items: center;
  gap: 11px;
  padding: 9px 13px;
  border: 1px solid #32402d;
  border-radius: 8px;
  background: #1b2319;
  color: var(--ink);
  text-align: left;
}

.dashboard-repertoire-list > li > button {
  min-height: 69px;
  padding-left: 16px;
  border-left: 3px solid #66864e;
}

.dashboard-row-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid #435436;
  border-radius: 8px;
  background: #25351e;
  color: #d0eab6;
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.dashboard-row-icon svg {
  width: 16px;
  height: 16px;
}

.dashboard-row-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.dashboard-row-key {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 4px;
  background: #263521;
  color: #cfe4be;
  font-size: 12px;
}

.repertoire-row-status {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

.repertoire-public-status {
  display: grid;
  width: 20px;
  place-items: center;
  color: var(--accent);
}

.repertoire-public-status svg { width: 18px; height: 18px; }

.dashboard-row-arrow {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: #a2ba8d;
}

.dashboard-list > li > button:not(:disabled):hover {
  border-color: #536a43;
  background: #25331f;
}

.dashboard-list > .dashboard-song-with-actions {
  display: flex;
  align-items: center;
  border: 1px solid #32402d;
  border-radius: 8px;
  background: #1b2319;
}

.dashboard-list > .dashboard-song-with-actions > button {
  flex: 1;
  min-width: 0;
  width: auto;
  border-color: transparent;
}

.dashboard-list > .dashboard-song-with-actions > button:focus-visible {
  outline-offset: -2px;
}

.dashboard-song-actions {
  display: flex;
  flex: none;
  gap: 4px;
  padding-inline: 6px;
}

.dashboard-song-actions button {
  display: grid;
  width: 38px;
  height: 40px;
  padding: 0;
  place-items: center;
  border-color: #405239;
  border-radius: 7px;
  color: #c9deb6;
}

.dashboard-song-actions button:focus-visible {
  outline-offset: -2px;
}

.dashboard-song-actions button:not(:disabled):hover {
  border-color: #647b54;
  background: #2b3a25;
}

.dashboard-song-actions button:last-child:not(:disabled):hover {
  border-color: #87574f;
  background: #392520;
  color: #ffd0c2;
}

.dashboard-song-actions svg {
  width: 17px;
  height: 17px;
}

.dashboard-list :is(strong, small) {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-list strong {
  font-size: 15px;
  font-weight: 650;
}

.dashboard-list small {
  color: #afbe9f;
  font-size: 12px;
}

.dashboard-actions,
.dashboard-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-actions {
  margin-bottom: 17px;
}

.dashboard-drafts {
  color: #d7f786;
}

.dashboard-back {
  min-height: 36px;
  margin-bottom: 13px;
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
  color: #c8e3b0;
}

.dashboard-back svg {
  transform: rotate(180deg);
}

.dashboard-back:hover {
  padding-inline: 0;
  background: transparent;
  color: #ebffcb;
  text-decoration: underline;
}

.dashboard-detail-heading {
  min-width: 0;
}

.dashboard-detail-count {
  display: block;
  margin-top: 5px;
  color: #acb8a3;
  font-size: 13px;
}

.dashboard-page .approval-list {
  max-height: none;
  margin: 12px 0 0;
  overflow: visible;
}

.dashboard-page .approval-list:empty {
  display: none;
}

@media (max-width: 600px) {
  .account-dashboard {
    padding-top: 15px;
    padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
  }

  .dashboard-header {
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  .dashboard-heading-actions { width: 100%; }

  .dashboard-heading-actions .dashboard-button {
    padding-inline: 5px;
    font-size: 12px;
  }

  .dashboard-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .dashboard-nav-item {
    min-width: 0;
    min-height: 44px;
    gap: 5px;
    padding-inline: 6px;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #dashboardTabRequests {
    margin: 0;
    width: 100%;
  }

  .dashboard-field input {
    font-size: 16px;
  }

  .dashboard-catalog-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-catalog-tools .dashboard-field:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .dashboard-heading-actions .dashboard-button {
    min-height: 50px;
    flex-direction: column;
    gap: 4px;
    white-space: normal;
  }
}

@media (max-width: 465px) {
  .dashboard-detail-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-list > li > button {
    gap: 8px;
    padding-inline: 10px;
  }

  .dashboard-list > .dashboard-song-with-actions > button {
    padding-inline: 8px 4px;
  }

  .dashboard-song-with-actions .dashboard-row-arrow {
    display: none;
  }

  .dashboard-row-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }
}

.cloud-app .sidebar {
  display: grid;
  grid-template-rows: auto minmax(145px, 1fr) auto;
  gap: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar-header,
.sidebar-library {
  min-width: 0;
}

.sidebar-header {
  display: grid;
  gap: 14px;
}

.cloud-app .sidebar-header .brand {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0 4px;
  font-size: clamp(22px, 2.25vw, 28px);
  white-space: nowrap;
}

.cloud-app .sidebar-header .brand-icon {
  flex-shrink: 0;
}

.sidebar-dashboard-button {
  width: 100%;
  min-height: 36px;
  justify-content: space-between;
  color: #d7f786;
}

.sidebar-library {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.sidebar-library .repertoire-controls {
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 0 15px;
}

.sidebar-library .repertoire-controls-heading > label,
.sidebar-library .setlist-heading {
  color: #c3cebd;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: normal;
}

.sidebar-library .setlist-heading {
  margin: 0 2px 8px;
}

.sidebar-library .search {
  min-height: 38px;
  margin: 0 0 9px;
  padding: 0 8px;
  border: 1px solid #303e28;
  border-radius: 8px;
  background: #161c14;
  color: #9ba793;
}

.sidebar-library .search input {
  outline-offset: 0;
}

.sidebar-library .song-list {
  min-height: 78px;
  padding-right: 3px;
  scrollbar-gutter: stable;
}

.sidebar .song-list > .song-item {
  min-height: 46px;
}
.sidebar .song-item > span:last-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cloud-app .sidebar-bottom {
  min-width: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.sidebar-bottom .account-actions {
  gap: 6px;
  margin: 7px 0 4px;
}

.sidebar-bottom .account-actions > button {
  min-height: 36px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #303e28;
  border-radius: 7px;
  font-size: 12px;
}

.sidebar-bottom .login-feedback {
  margin: 7px 0 3px;
}

.sidebar-bottom .developer-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px 5px;
  margin: 0;
  padding: 9px 6px 2px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.sidebar-bottom .developer-credit strong {
  font-weight: 650;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .cloud-app .sidebar {
    width: min(290px, calc(100vw - 32px));
    padding-bottom: max(14px, calc(7px + env(safe-area-inset-bottom)));
    visibility: hidden;
    pointer-events: none;
    transition: transform .2s;
  }

  .cloud-app .sidebar.open {
    z-index: 12;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-height: 670px) {
  .cloud-app .sidebar {
    gap: 12px;
    padding-top: 15px;
  }

  .sidebar-header {
    gap: 9px;
  }

  .sidebar-library .repertoire-controls {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
}
