[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-lirik,
.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: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#view-settings .stored-keys-list {
  flex: 1 1 auto;
  min-height: 9rem;
  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 .buy-token-link {
  margin-right: auto;
  text-decoration: none;
}

.field-head-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

#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;
}

.main.main--lirik {
  padding: 0;
}

.main.main--lirik .env-banner {
  display: none;
}

#view-lirik {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 0;
  background: #0f0b16;
}

#lirik-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #0f0b16;
  box-shadow: none;
}

#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;
}

.detail-lyrics-block.is-min {
  flex: none;
}

.detail-lyrics-block.is-min .detail-lyrics-scroll {
  display: none;
}

.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--lirik) .sidebar {
    display: none;
  }

  .layout:has(.main--master) .sidebar-status,
  .layout:has(.main--lirik) .sidebar-status,
  .main.main--master .env-banner,
  .main.main--lirik .env-banner {
    display: none;
  }

  .main.main--master,
  .main.main--lirik {
    padding: 0;
  }

  .main.main--master .main__scroll--focus-results,
  .main.main--lirik .main__scroll--focus-results {
    overflow: hidden;
    padding-bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px));
  }

  .main__scroll--focus-results > #view-master:not([hidden]),
  .main__scroll--focus-results > #view-lirik:not([hidden]) {
    display: flex;
    flex: 1;
    min-height: 0;
    height: 100%;
    padding: 0;
  }

  #lirik-frame,
  #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;
  }
}

.settings-important {
  margin-top: 0.35rem;
  padding: 0.9rem 0.95rem 0.85rem;
  border-radius: 16px;
  background: #120c1c;
  box-shadow:
    inset 4px 4px 10px #050308,
    inset -3px -3px 8px rgba(167, 139, 215, 0.16);
}

.settings-important__title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0abfc;
}

.settings-important ul {
  margin: 0;
  padding-left: 1.05rem;
}

.settings-important li {
  margin: 0.28rem 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #ece8f4;
}

.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;
}

.emboss-ui .zu-cover-lead {
  color: #d6cce6;
}

.emboss-ui .zu-cover-lead--warn {
  color: #fde68a;
}

.emboss-ui .zu-cover-note {
  color: #c4b5d8;
}

.emboss-ui .zu-cover-note--ok {
  color: #4ade80;
}

.emboss-ui .zu-compose-panel .form-actions {
  gap: 0.7rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.2rem 0.35rem;
  border-top: none;
}

.emboss-ui .zu-compose-panel .form-actions .btn-gradient--suno,
.emboss-ui .zu-compose-panel .form-actions .zu-action-btn {
  position: relative;
  isolation: isolate;
  min-height: 3.15rem;
  height: 3.15rem;
  border: none !important;
  border-radius: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.emboss-ui .zu-compose-panel .form-actions .btn-gradient--suno {
  color: #fff;
  background: linear-gradient(135deg, #ffc56b 0%, #ff6b81 40%, #e056fd 74%, #8b5cf6 100%);
  text-shadow: 0 1px 2px rgba(40, 10, 24, 0.45);
  box-shadow:
    6px 6px 14px #07050c,
    -4px -4px 12px rgba(167, 139, 215, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -4px 8px rgba(70, 16, 50, 0.38) !important;
}

.emboss-ui .zu-compose-panel .form-actions .btn-gradient--suno::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8px;
  right: 8px;
  top: 3px;
  height: 42%;
  border-radius: 12px 12px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.emboss-ui .zu-compose-panel .form-actions .zu-action-btn--danger {
  color: #241433;
  background: linear-gradient(180deg, #efe8ff 0%, #c4b0f0 100%) !important;
  box-shadow:
    6px 6px 14px #07050c,
    -4px -4px 12px rgba(167, 139, 215, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 6px rgba(90, 60, 150, 0.28) !important;
}

.emboss-ui .zu-compose-panel .form-actions .btn-gradient--suno:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    8px 10px 18px #07050c,
    -4px -4px 14px rgba(167, 139, 215, 0.34),
    0 10px 26px rgba(224, 86, 253, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

.emboss-ui .zu-compose-panel .form-actions .zu-action-btn--danger:hover {
  color: #1a1028;
  background: linear-gradient(180deg, #f7f3ff 0%, #d4c4f6 100%) !important;
  transform: translateY(-2px);
  box-shadow:
    8px 10px 18px #07050c,
    -4px -4px 14px rgba(167, 139, 215, 0.24),
    inset 0 1px 0 rgba(255, 186, 196, 0.36) !important;
}

.emboss-ui .zu-compose-panel .form-actions .btn-gradient--suno:active:not(:disabled),
.emboss-ui .zu-compose-panel .form-actions .zu-action-btn--danger:active {
  transform: translateY(1px);
  box-shadow:
    inset 5px 5px 12px #050308,
    inset -3px -3px 8px rgba(167, 139, 215, 0.16) !important;
}

@media (max-width: 960px) {
  .layout:has(.main--settings) .sidebar-status,
  .main.main--settings .env-banner {
    display: none;
  }

  .main.main--settings .main__scroll--focus-results {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  }

  #view-settings .settings-zu-card {
    padding: 0.95rem 0.85rem 1rem;
    gap: 0.15rem;
  }

  #view-settings .settings-zu-card-head {
    margin-bottom: 0.35rem;
  }

  #view-settings .settings-empty-keys {
    order: 1;
    margin-bottom: 0.35rem;
    color: #d6ccf0;
    font-size: 0.88rem;
  }

  #view-settings .settings-add-section {
    order: 2;
    margin-top: 0.2rem;
    padding-top: 0.15rem;
    border-top: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.55rem;
    row-gap: 0.45rem;
  }

  #view-settings .settings-add-section > .settings-add-label:not(.settings-add-label--small) {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.95rem;
  }

  #view-settings .settings-add-label--small {
    grid-column: 1;
    margin: 0;
    color: #c4b5d8;
    font-size: 0.82rem;
  }

  #view-settings .settings-add-row {
    display: contents;
  }

  #view-settings #token-toggle {
    grid-column: 2;
    grid-row: 2;
    min-height: 36px;
    padding: 0.35rem 0.8rem;
  }

  #view-settings #token-input {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 5.6rem;
    font-size: 0.92rem;
  }

  #view-settings .settings-add-error,
  #view-settings .settings-add-actions {
    grid-column: 1 / -1;
  }

  #view-settings .settings-add-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    gap: 0.55rem;
    margin-top: 0.2rem;
  }

  #view-settings .settings-add-actions .btn,
  #view-settings .buy-token-link {
    width: 100%;
    min-height: 46px;
    margin: 0;
    font-size: 0.98rem;
  }

  #view-settings .settings-add-actions .btn-primary {
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
    color: #1a1300;
    box-shadow: 0 8px 18px rgba(250, 204, 21, 0.28);
  }

  #view-settings #token-clear {
    background: transparent;
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.55);
    box-shadow: none;
  }

  #view-settings .stored-keys {
    order: 3;
    flex: none;
    margin-top: 1rem;
    overflow: visible;
  }

  #view-settings .stored-keys-head-left {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.4rem;
  }

  #view-settings .stored-keys-title {
    grid-column: 1 / -1;
    color: #efe8ff;
    font-size: 0.78rem;
  }

  #view-settings .stored-keys-head-left .settings-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.3rem 0.35rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fde68a;
    font-size: 0.75rem;
    text-align: center;
  }

  #view-settings .stored-keys-list {
    max-height: min(42vh, 22rem);
    min-height: 0;
    overflow: auto;
    gap: 0.55rem;
  }

  #view-settings .stored-keys-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    column-gap: 0.45rem;
    row-gap: 0.15rem;
    align-items: center;
    padding: 0.65rem 0.7rem;
  }

  #view-settings .stored-keys-idx {
    grid-row: 1 / span 2;
    font-size: 0.84rem;
  }

  #view-settings .stored-keys-provider {
    display: none;
  }

  #view-settings .stored-keys-mask {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.84rem;
    color: #f5f0ff;
  }

  #view-settings .stored-keys-credits {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.78rem;
  }

  #view-settings .stored-keys-copy,
  #view-settings .stored-keys-remove {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
  }

  #view-settings .stored-keys-hint {
    color: #c4b5d8;
    font-size: 0.84rem;
  }

  #view-settings .settings-about {
    margin-top: 0.85rem;
  }

  .main.main--generate .zu-right-col,
  .main.main--generate .zu-detail-col {
    display: none;
  }

  .main.main--library .env-banner,
  .main.main--library .playground-form {
    display: none;
  }

  .main.main--library .zu-right-col,
  .main.main--library .zu-detail-col {
    display: block;
    width: 100%;
  }

  .main.main--library .zu-recent-list--scroll {
    max-height: none;
    min-height: 46vh;
  }

  .mobile-bottom-nav__btn[data-view="master"] {
    display: none !important;
  }

  .emboss-ui .mobile-bottom-nav__btn--fab .mobile-bottom-nav__fab-inner {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-bottom-nav {
    justify-content: space-evenly;
    align-items: flex-end;
  }

  .mobile-bottom-nav__btn,
  .mobile-bottom-nav__btn--fab {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .mobile-bottom-nav__btn--fab {
    gap: 0.28rem;
  }

  .mobile-bottom-nav__btn--fab .mobile-bottom-nav__label {
    color: #f5e9ff;
    font-size: 0.68rem;
  }

  .emboss-ui .mobile-bottom-nav__btn--active:not(.mobile-bottom-nav__btn--fab) .mobile-bottom-nav__ico,
  .mobile-bottom-nav__btn--active:not(.mobile-bottom-nav__btn--fab) .mobile-bottom-nav__ico {
    color: #f0abfc;
  }
}

@keyframes kampung-rgb {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

#view-settings .settings-add-actions a.buy-token-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: min(100%, 520px);
  min-height: 54px;
  margin: 0 auto 0 0;
  padding: 0.9rem 3.1rem;
  border: 3px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(#1a1024, #1a1024) padding-box,
    linear-gradient(90deg, #ff2d55, #ffb703, #22d3ee, #8b5cf6, #ff2d55, #ffb703) border-box;
  background-size: auto, 280% 100%;
  background-clip: padding-box, border-box;
  color: #fff7ed;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(255, 45, 85, 0.35);
  animation: kampung-rgb 2.6s linear infinite;
}

@media (max-width: 960px) {
  #view-settings .settings-add-actions a.buy-token-link {
    width: 100%;
    min-height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #view-settings .settings-add-actions a.buy-token-link {
    animation: none;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .playground-grid,
  .playground-form.zu-compose-panel,
  .playground-form--suno.zu-compose-panel,
  .zu-right-col .zu-library-card,
  .zu-detail-col .panel-right,
  #detail-body.zu-detail-body,
  #library-list.zu-recent-list--scroll {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .main__scroll--focus-results {
    overflow-y: auto;
    overflow-x: hidden;
  }
}
