[hidden] {
  display: none !important;
}

.zu-library-card > .zu-panel-head {
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.zu-library-head-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  width: 100%;
}

.emboss-ui .zu-library-delete-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.85rem;
  margin: 0;
  padding: 0.32rem 0.45rem;
  text-align: center;
  white-space: nowrap;
  font-size: 0.68rem;
  color: #fecaca !important;
  background: #2a1520 !important;
}

.emboss-ui .tiny-btn.tiny-btn--playing,
.emboss-ui .tiny-btn.tiny-btn--playing:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffb347, #ff7a18) !important;
  color: #2a1400 !important;
  box-shadow:
    3px 3px 8px #07050c,
    -2px -2px 6px rgba(255, 179, 71, 0.4) !important;
}

.emboss-ui .nav-item::before,
.emboss-ui .nav-item--active::before {
  content: none;
  display: none;
}

html,
body,
#root {
  height: 100%;
}

body {
  background: #0f0b16;
}

.main__scroll--focus-results > #view-generate,
.main__scroll--focus-results > #view-master,
.main__scroll--focus-results > #view-settings {
  flex: 1;
  min-height: 0;
  display: flex;
}

#view-settings.settings-zu {
  width: 100%;
  max-width: none;
  overflow: hidden;
}

#view-settings .settings-zu-grid {
  flex: 1;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}

#view-settings .settings-zu-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#view-settings .settings-zu-card-head,
#view-settings .settings-empty-keys {
  flex-shrink: 0;
}

#view-settings .stored-keys {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
}

#view-settings .stored-keys-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 0.15rem;
}

#view-settings .settings-add-section,
#view-settings .stored-keys-head,
#view-settings .stored-keys-hint {
  flex-shrink: 0;
}

#view-settings .settings-about {
  min-height: 0;
  overflow: auto;
}

#view-master {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 0.7rem 0.85rem 0.55rem 0.35rem;
  background:
    radial-gradient(520px 280px at 0% 0%, rgba(155, 89, 246, 0.16), transparent 68%),
    radial-gradient(380px 220px at 100% 0%, rgba(255, 107, 129, 0.1), transparent 62%),
    #0f0b16;
}

#audioku-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 22px;
  background: #0f0b16;
  box-shadow:
    inset 6px 6px 14px #050308,
    inset -4px -4px 12px rgba(167, 139, 215, 0.16);
}

.playground-grid {
  flex: 1;
  min-height: 0;
}

.playground-form.zu-compose-panel,
.zu-right-col .zu-library-card,
.zu-detail-col .panel-right {
  min-height: 0;
  overflow: hidden;
}

.playground-form.zu-compose-panel,
#library-list.zu-recent-list--scroll {
  overflow: auto;
  scrollbar-gutter: auto;
}

.emboss-ui,
.emboss-ui * {
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 215, 0.55) transparent;
}

.emboss-ui *::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.emboss-ui *::-webkit-scrollbar-track {
  background: transparent;
}

.emboss-ui *::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 215, 0.55);
  border-radius: 999px;
}

.emboss-ui *::-webkit-scrollbar-thumb:hover {
  background: #e056fd;
}

#detail-body.zu-detail-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-headline-actions {
  display: flex;
  gap: 0.35rem;
}

.detail-style-scroll,
.detail-lyrics-scroll {
  overflow: auto;
  min-height: 0;
}

.detail-style-scroll {
  max-height: 9.5rem;
}

.detail-style-block.is-min .detail-style-scroll {
  display: none;
}

.detail-lyrics-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.detail-lyrics-scroll {
  flex: 1;
}

.zu-recent-name-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.zu-recent-name-row .zu-recent-name {
  flex: 1;
}

.zu-recent-rename {
  padding: 4px 8px;
  font-size: 0.78rem;
}

@media (max-width: 960px) {
  .main__scroll--focus-results {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .main__scroll--focus-results > #view-generate,
  .main__scroll--focus-results > #view-settings {
    display: block;
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  .layout:has(.main--master) .sidebar-status,
  .main.main--master .env-banner {
    display: none;
  }

  .main.main--master {
    padding: 0;
  }

  .main.main--master .main__scroll--focus-results {
    overflow: hidden;
    padding-bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px));
  }

  .main__scroll--focus-results > #view-master {
    display: flex;
    flex: 1;
    min-height: 0;
    height: 100%;
    padding: 0;
  }

  #audioku-frame {
    min-height: 0;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .playground-grid {
    flex: none;
    height: auto;
    min-height: auto;
  }

  .playground-form--suno.zu-compose-panel,
  .playground-form.zu-compose-panel {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .zu-right-col .zu-library-card,
  .zu-detail-col .panel-right,
  #detail-body.zu-detail-body,
  #view-settings.settings-zu,
  #view-settings .settings-zu-grid,
  #view-settings .settings-zu-card {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }
}

.emboss-ui .modal-scrim {
  z-index: 400;
}

.emboss-ui .modal-card.modal-card--notice {
  text-align: center;
  border: 1px solid rgba(244, 114, 182, 0.45);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(244, 114, 182, 0.22), transparent 55%),
    linear-gradient(180deg, #241833, #140e1c);
  box-shadow:
    10px 10px 24px rgba(0, 0, 0, 0.55),
    -6px -6px 16px rgba(167, 139, 215, 0.08),
    0 0 42px rgba(244, 114, 182, 0.2);
}

.notice-emoji {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 10px;
}

.notice-title {
  font-size: 20px;
  line-height: 1.35;
  color: #fff;
}

.notice-message {
  color: #d6c9e2;
}

.notice-actions {
  justify-content: center;
}

.notice-actions .btn-primary {
  min-width: 140px;
  border-radius: 999px;
}

.emboss-ui .modal-card.modal-card--danger {
  border: 1px solid rgba(248, 113, 113, 0.45);
  box-shadow:
    10px 10px 24px rgba(0, 0, 0, 0.55),
    -6px -6px 16px rgba(167, 139, 215, 0.08),
    0 0 36px rgba(248, 113, 113, 0.22);
}

.emboss-ui .modal-card .btn-danger-strong,
.emboss-ui .modal-card .btn-ghost {
  border-radius: 999px;
  min-height: 2.4rem;
  padding: 0.45rem 1.1rem;
}
