﻿.logo {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--accent-violet), #f04d72, #ff9c35);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo span,
.logo i {
  font-style: normal;
}

.design-switch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(122, 92, 255, 0.18), rgba(255, 90, 61, 0.12)),
    rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.design-switch-button::before {
  content: "⇄";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffb454;
  font-size: 0.88rem;
  line-height: 1;
}

.design-switch-button:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 181, 253, 0.38);
  background:
    linear-gradient(135deg, rgba(122, 92, 255, 0.26), rgba(255, 90, 61, 0.18)),
    rgba(255, 255, 255, 0.06);
}

.auth-stack {
  display: grid;
  gap: 10px;
}

.auth-card {
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    #17181d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-card__head strong {
  font-size: 1rem;
}

.auth-card__head span {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.auth-btn--yandex {
  width: 100%;
  background: linear-gradient(90deg, #ff6f2c, #ff4f67);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 98, 48, 0.22);
}

.auth-btn--vk {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-btn:hover,
.social-pill:hover {
  transform: translateY(-1px);
}

.auth-text {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social-pill {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 14px;
  background: #222228;
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-pill--mail {
  background: linear-gradient(180deg, rgba(56, 138, 255, 0.28), rgba(56, 138, 255, 0.12));
}

.social-pill--ok {
  background: linear-gradient(180deg, rgba(255, 149, 0, 0.28), rgba(255, 149, 0, 0.12));
}

.social-pill--telegram {
  background: linear-gradient(180deg, rgba(64, 166, 245, 0.28), rgba(64, 166, 245, 0.12));
}

.sidebar-nav {
  display: grid;
  gap: 18px;
}

.sidebar-nav a,
.sidebar-footer a {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  color: #9f9fab;
  font-size: 0.96rem;
  cursor: pointer;
}

.sidebar-nav a::before,
.sidebar-footer a::before {
  flex-shrink: 0;
  content: "○";
  margin-right: 8px;
  color: #666673;
}

.sidebar-nav a.is-active {
  color: #fff;
  font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-footer a:hover {
  color: #fff;
}

.sidebar-nav a.is-muted,
.sidebar-footer a.is-muted {
  opacity: 0.72;
}

.quick-start {
  margin-top: auto;
  max-width: 176px;
  padding: 22px 16px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(125, 60, 255, 0.92), rgba(255, 105, 88, 0.84)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 38%);
  box-shadow: var(--shadow);
}

.quick-start h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.quick-start p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.sidebar-footer {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.sidebar-footer a.sidebar-social-button,
.sidebar-footer a.sidebar-support-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  color: #f2f2f4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer a.sidebar-social-button::before,
.sidebar-footer a.sidebar-support-link::before {
  display: none;
}

.sidebar-social-button {
  justify-content: flex-start;
  min-width: 0;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.sidebar-social-button:hover,
.sidebar-support-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

.sidebar-social-button--max {
  background:
    linear-gradient(180deg, rgba(96, 74, 255, 0.16), rgba(96, 74, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(122, 110, 255, 0.18);
}

.sidebar-social-button--telegram-link {
  background:
    linear-gradient(180deg, rgba(47, 154, 255, 0.16), rgba(47, 154, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(74, 178, 255, 0.18);
}

.sidebar-support-link {
  color: #c9cad4;
}

.sidebar-social-button__label {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sidebar-social-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  color: transparent;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.sidebar-social-button__icon--max {
  background-image: url("../assets/icons/max-logo.svg");
}

.sidebar-social-button__icon--telegram {
  background-image: url("../assets/icons/telegram-logo.svg");
}

.account-dock {
  position: relative;
  margin-top: 10px;
}

.account-trigger {
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.account-trigger__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.account-trigger__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-trigger__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.account-trigger__meta strong {
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-trigger__meta span {
  color: #ff9f43;
  font-size: 0.9rem;
  font-weight: 700;
}

.account-trigger__arrow {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
}

.account-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 30;
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(39, 39, 46, 0.98), rgba(28, 28, 34, 0.98)),
    rgba(26, 27, 33, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.account-menu__balance {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.account-menu__balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  font-weight: 700;
}

.account-menu__balance-row span:last-child {
  color: #68e38c;
}

.account-menu__topup {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f16e39, #eb4e78);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(241, 110, 57, 0.2);
}

.account-menu__id {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.92rem;
}

.account-menu__id-icon,
.account-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: rgba(255, 255, 255, 0.54);
  flex-shrink: 0;
}

.account-menu__divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.08);
}

.account-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0;
  color: rgba(255, 255, 255, 0.64);
  text-align: left;
  font-size: 0.98rem;
}

.account-menu__item span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu__item:hover {
  color: #fff;
}

.account-menu__item--danger {
  color: rgba(255, 255, 255, 0.72);
}

.topup-modal-open {
  overflow: hidden;
}

.topup-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
}

.topup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 14, 0.72);
  backdrop-filter: blur(10px);
}

.topup-modal__card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 24px));
  margin: 9vh auto 0;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 110, 73, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(35, 35, 44, 0.98), rgba(20, 20, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.topup-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
}

.topup-modal__head h3 {
  margin: 8px 0 10px;
  font-size: 2rem;
}

.topup-modal__head p,
.topup-modal__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.topup-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffbf9b;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topup-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 18px;
}

.topup-amount-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topup-amount-card strong {
  font-size: 1.4rem;
}

.topup-amount-card span {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.45;
}

.topup-amount-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.topup-amount-card:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.topup-consent {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.topup-consent__label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  line-height: 1.5;
  cursor: pointer;
}

.topup-consent__checkbox {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #ff7a3d;
}

.topup-consent__checkbox[aria-invalid="true"] {
  outline: 2px solid rgba(255, 107, 107, 0.9);
  outline-offset: 2px;
}

.topup-consent__label a {
  color: #ffbf9b;
  text-decoration: underline;
  text-decoration-color: rgba(255, 191, 155, 0.55);
  text-underline-offset: 0.15em;
}

.topup-consent__label a:hover {
  color: #ffd3ba;
}

.topup-consent__error {
  margin: 10px 0 0 32px;
  color: #ff8e8e;
  font-size: 0.92rem;
  line-height: 1.4;
}

.promo-modal-open {
  overflow: hidden;
}

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 265;
}

.promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 14, 0.72);
  backdrop-filter: blur(10px);
}

.promo-modal__card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(420px, calc(100vw - 24px));
  margin: 16vh auto 0;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(104, 227, 140, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(35, 35, 44, 0.98), rgba(20, 20, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.promo-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
}

.promo-modal__head {
  display: grid;
  gap: 8px;
  padding-right: 48px;
}

.promo-modal__head h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.promo-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(104, 227, 140, 0.12);
  color: #78ee9d;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-field {
  display: grid;
  gap: 8px;
}

.promo-field span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  font-weight: 700;
}

.promo-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  outline: none;
}

.promo-field input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.promo-field input:focus {
  border-color: rgba(104, 227, 140, 0.5);
  box-shadow: 0 0 0 3px rgba(104, 227, 140, 0.12);
}

.promo-field input[aria-invalid="true"] {
  border-color: rgba(255, 108, 108, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 108, 108, 0.12);
}

.promo-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.promo-status {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.45;
}

.promo-status--success {
  color: #78ee9d;
}

.promo-status--error {
  color: #ff8e8e;
}

.promo-submit {
  min-height: 52px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f16e39, #eb4e78);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(241, 110, 57, 0.2);
}

.promo-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.site-consent-visible {
  padding-bottom: 184px;
}

.site-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 240;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.site-consent-banner[hidden] {
  display: none;
}

.site-consent-banner--with-player {
  bottom: 112px;
}

.site-consent-banner__card {
  pointer-events: auto;
  width: min(760px, 100%);
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 26px;
  border: 1px solid rgba(166, 202, 74, 0.28);
  background:
    radial-gradient(circle at top left, rgba(164, 194, 79, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(36, 37, 42, 0.97), rgba(22, 23, 28, 0.97));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.site-consent-banner__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.62;
}

.site-consent-banner__text a {
  color: #c7de68;
  text-decoration: underline;
  text-decoration-color: rgba(199, 222, 104, 0.55);
  text-underline-offset: 0.14em;
}

.site-consent-banner__text a:hover {
  color: #ddf38a;
}

.site-consent-banner__accept {
  min-height: 54px;
  padding: 0 28px;
  border-radius: 18px;
  justify-self: start;
  background: linear-gradient(180deg, #8fc44f, #76a83e);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(112, 160, 52, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.site-consent-banner__accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(112, 160, 52, 0.28);
  filter: brightness(1.03);
}

.payments-panel {
  min-height: calc(100vh - 36px);
}

.payments-panel__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.payments-panel__head h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.payments-panel__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
}

.payments-status,
.payments-empty {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

.payments-status--error {
  color: #ffb3b3;
  border: 1px solid rgba(255, 87, 87, 0.22);
}

.payments-list {
  display: grid;
  gap: 12px;
}

.payment-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 120px 130px;
  gap: 16px;
  align-items: center;
  min-height: 66px;
  padding: 0 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.payment-row__date,
.payment-row__reason,
.payment-row__amount,
.payment-row__type {
  font-size: 0.98rem;
}

.payment-row__reason {
  font-weight: 700;
  color: #fff;
}

.payment-row__amount {
  text-align: right;
  font-weight: 800;
}

.payment-row__amount--credit {
  color: #ffffff;
}

.payment-row__amount--charge {
  color: #ffffff;
}

.payment-row__type {
  text-align: right;
  font-weight: 700;
}

.payment-row__type--credit {
  color: #38e07b;
}

.payment-row__type--charge {
  color: #ff4c4c;
}

.payments-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.payments-page {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.payments-page.is-active {
  background: linear-gradient(90deg, #f16e39, #eb4e78);
  color: #fff;
  box-shadow: 0 14px 26px rgba(241, 110, 57, 0.22);
}

@media (max-width: 760px) {
  .topup-modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .topup-modal__card {
    width: min(520px, calc(100vw - 20px));
    max-height: min(82dvh, 760px);
    margin: max(18px, env(safe-area-inset-top, 0px)) auto 18px;
    padding: 20px 18px 18px;
    overflow-y: auto;
  }

  .topup-modal__head h3 {
    font-size: 1.8rem;
    line-height: 1.02;
  }

  .topup-modal__grid {
    gap: 10px;
    margin: 18px 0 16px;
  }

  .topup-amount-card {
    min-height: 108px;
    padding: 16px;
    border-radius: 20px;
  }

  .topup-amount-card strong {
    font-size: 1.25rem;
  }

  .topup-amount-card span {
    font-size: 0.95rem;
  }

  .topup-modal__note {
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    font-size: 0.95rem;
  }

  .topup-consent {
    margin-top: 16px;
    padding-top: 14px;
  }

  .topup-consent__label {
    gap: 10px;
    font-size: 0.92rem;
  }

  .topup-consent__error {
    margin-left: 28px;
    font-size: 0.88rem;
  }

  .promo-modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .promo-modal__card {
    width: min(420px, calc(100vw - 20px));
    margin: max(18px, env(safe-area-inset-top, 0px)) auto 18px;
    padding: 20px 18px 18px;
    border-radius: 24px;
  }

  .promo-modal__head h3 {
    font-size: 1.8rem;
  }

  .promo-field input {
    min-height: 52px;
    font-size: 1rem;
  }

  .promo-create-grid {
    grid-template-columns: 1fr;
  }

  .site-consent-visible {
    padding-bottom: 206px;
  }

  .site-consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .site-consent-banner--with-player {
    bottom: 96px;
  }

  .site-consent-banner__card {
    gap: 14px;
    padding: 16px 16px 18px;
    border-radius: 22px;
  }

  .site-consent-banner__text {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .site-consent-banner__accept {
    width: 100%;
    min-height: 52px;
    justify-self: stretch;
    border-radius: 16px;
  }

  .payments-panel {
    padding-top: 2px;
  }

  .payments-panel__head {
    margin-bottom: 18px;
  }

  .payments-panel__head h1 {
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.02;
  }

  .payments-panel__head p {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .payment-row {
    grid-template-columns: 1fr minmax(112px, auto);
    grid-template-areas:
      "date type"
      "reason amount";
    gap: 10px 14px;
    min-height: 0;
    padding: 16px;
    border-radius: 24px;
  }

  .payment-row__date {
    grid-area: date;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.86);
  }

  .payment-row__reason {
    grid-area: reason;
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .payment-row__amount {
    grid-area: amount;
    text-align: right;
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .payment-row__type {
    grid-area: type;
    text-align: right;
    font-size: 0.96rem;
    white-space: nowrap;
  }
}

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  margin-bottom: 120px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(1, 8, 16, 0.9) 0%, rgba(3, 8, 15, 0.42) 55%, rgba(2, 4, 10, 0.88) 100%),
    radial-gradient(circle at 65% 30%, rgba(91, 159, 255, 0.24), transparent 24%),
    linear-gradient(135deg, #0b1320, #091118 45%, #06070a);
  box-shadow: inset 0 -80px 100px rgba(0, 0, 0, 0.45);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(69, 123, 255, 0.18) 58% 62%, transparent 62% 100%),
    linear-gradient(120deg, transparent 0 68%, rgba(69, 123, 255, 0.12) 68% 72%, transparent 72% 100%);
  opacity: 0.8;
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: 14%;
  top: 12%;
  width: 34%;
  height: 50%;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #4a5b7f, #161d28);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(-2deg);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 42px 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9db4d5;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-banner h1 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 460px;
  margin: 0 0 32px;
  color: #efeff5;
  font-size: 1.05rem;
  line-height: 1.45;
}

.primary-btn,
.secondary-btn,
.select-field,
.pill-btn {
  border-radius: 999px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 38px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  color: white;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(217, 62, 120, 0.22);
}

.primary-btn--wide,
.secondary-btn {
  width: 100%;
}

.secondary-btn {
  min-height: 40px;
  background: #3a3a3d;
  font-weight: 700;
}

.hero-slides {
  position: absolute;
  right: 28px;
  bottom: 22px;
  display: flex;
  gap: 14px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-dot--active {
  background: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 52px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 182px;
  padding: 30px 32px;
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(180deg, #202025, #1a1a1f);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 48%, rgba(255, 255, 255, 0.06) 48% 52%, transparent 52% 100%);
  opacity: 0.55;
}

.feature-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 48px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.price-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f6f6f7;
  font-weight: 700;
}

.feature-visual {
  position: relative;
  z-index: 1;
  flex: 0 0 170px;
  border-radius: 32px;
}

.feature-visual--headphones,
.feature-visual--lens,
.feature-visual--brush {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.35), transparent 24%),
    linear-gradient(145deg, rgba(130, 80, 255, 0.92), rgba(255, 102, 77, 0.86));
  filter: saturate(1.2);
}

.feature-visual--headphones::before {
  content: "";
  position: absolute;
  inset: 18px 32px 22px;
  border: 10px solid rgba(255, 255, 255, 0.55);
  border-bottom: 0;
  border-radius: 80px 80px 20px 20px;
}

.feature-visual--headphones::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 16px;
  height: 54px;
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.46),
    -54px 0 0 0 rgba(255, 255, 255, 0.46),
    54px 0 0 0 rgba(255, 255, 255, 0.46);
}

.feature-visual--lens::before {
  content: "";
  position: absolute;
  inset: 36px 30px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.38);
  transform: rotate(18deg);
}

.feature-visual--lens::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  right: 26px;
  top: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.5);
}

.feature-visual--brush::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 124px;
  right: 74px;
  top: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  transform: rotate(28deg);
}

.feature-visual--brush::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  right: 18px;
  top: 8px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.72), transparent 28%);
}

.collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.collection-column h3 {
  margin: 0 0 24px;
  font-size: 1.5rem;
}

.track-card {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.cover-art {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--cover-gradient, linear-gradient(135deg, #7538ff, #ff5b77));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.track-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.track-info p {
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.track-meta {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 140, 55, 0.18);
  color: #ffab63;
  font-size: 0.78rem;
  white-space: nowrap;
}

.tab-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.tab-switch__item {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 700;
}

.tab-switch__item--active {
  background: #4b4b51;
}

.select-row,
.double-select {
  display: flex;
  gap: 10px;
}

.select-field {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #f2f2f4;
}

.select-field::after {
  content: "▾";
  margin-left: 10px;
  color: var(--text-soft);
}

.select-field--wide {
  width: 100%;
}

.creation-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 8px;
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.prompt-box {
  position: relative;
  border-radius: 26px;
  background: #1d1d22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.prompt-box textarea {
  width: 100%;
  min-height: 160px;
  padding: 18px 66px 42px 18px;
  resize: none;
  color: var(--text-soft);
}

.prompt-box--photo textarea {
  min-height: 112px;
}

.prompt-tools {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  gap: 10px;
}

.icon-btn,
.star-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #d8d8de;
}

.prompt-footer {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: #75757f;
  font-size: 0.86rem;
}

.pill-row {
  display: flex;
  gap: 8px;
}

.pill-btn {
  min-height: 42px;
  padding: 0 16px;
  background: #26262c;
  font-weight: 700;
}

.separator-text {
  text-align: center;
  color: #8c8c95;
  font-weight: 700;
}

.results-toolbar {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.lyrics-drawer {
  margin-bottom: 18px;
  padding: 18px 18px 20px;
  border-radius: 28px;
  background: #17181d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateX(18px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.lyrics-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
}

.lyrics-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lyrics-drawer__title {
  font-size: 1rem;
}

.lyrics-drawer__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.lyrics-drawer__status {
  color: var(--text-soft);
  margin-bottom: 14px;
}

.lyrics-drawer__loading {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.lyrics-drawer__loading[hidden] {
  display: none;
}

.lyrics-drawer__loading span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ff6d35;
  animation: lyricsPulse 1s infinite ease-in-out;
}

.lyrics-drawer__loading span:nth-child(2) {
  animation-delay: 0.15s;
}

.lyrics-drawer__loading span:nth-child(3) {
  animation-delay: 0.3s;
}

.lyrics-drawer__content {
  min-height: 180px;
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.6;
}

.lyrics-drawer__content[hidden] {
  display: none;
}

.lyrics-drawer__variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lyrics-drawer__variants[hidden] {
  display: none;
}

.lyrics-variant {
  display: grid;
  gap: 14px;
}

.lyrics-variant__choose {
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  color: #fff;
  font-weight: 800;
  padding: 0 18px;
}

.lyrics-variant__text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.55;
}

@keyframes lyricsPulse {
  0%, 80%, 100% {
    transform: scale(0.85);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.search-field {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #1d1d21;
}

.search-field input {
  width: 100%;
  min-height: 38px;
}

.track-list {
  display: grid;
  gap: 18px;
}

.track-row {
  display: grid;
  grid-template-columns: 62px 1fr auto auto;
  gap: 20px;
  align-items: center;
}

.track-row__actions {
  display: flex;
  gap: 18px;
  color: var(--text-soft);
}

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

.upload-tile {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 24px;
  background: #1d1d22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #d6d6db;
  font-weight: 700;
}

.upload-tile::before {
  content: "+";
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

@media (max-width: 1200px) {
  .collections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-overlay {
    padding: 28px 22px;
  }

  .hero-banner {
    min-height: 320px;
    margin-bottom: 44px;
  }

  .feature-card {
    min-height: 160px;
    padding: 24px;
  }

  .track-row {
    grid-template-columns: 62px 1fr;
  }

  .track-row__actions,
  .track-row > .badge {
    display: none;
  }

  .lyrics-drawer__variants {
    grid-template-columns: 1fr;
  }
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.music-form {
  display: grid;
  gap: 14px;
  overflow: visible;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid--double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #1b1b20;
  color: #f2f2f4;
}

.form-field textarea {
  min-height: 144px;
  resize: vertical;
}

.toggle-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-select {
  position: relative;
}

.compact-select select {
  width: 100%;
  min-height: 52px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #16161b;
  color: #fff;
  appearance: none;
}

.compact-select::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}

.compact-select--model {
  min-width: 134px;
}

.custom-dropdown {
  position: relative;
  overflow: visible;
}

.custom-dropdown__trigger {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #16161b;
  color: #fff;
  text-align: left;
}

.custom-dropdown__trigger::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
}

.custom-dropdown__trigger--chip {
  min-height: 42px;
  border-radius: 999px;
  background: #2a2a30;
}

.custom-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: max(100%, 240px);
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  z-index: 2000;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #4a4a54;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.custom-dropdown.is-open .custom-dropdown__menu {
  display: block;
}

.custom-dropdown__menu--tall {
  max-height: 420px;
}

.custom-dropdown.custom-dropdown--block {
  z-index: 10;
}

.custom-dropdown.custom-dropdown--block.is-open {
  z-index: 2200;
}

.custom-dropdown__option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  text-align: left;
  white-space: nowrap;
}

.custom-dropdown__option:hover,
.custom-dropdown__option.is-active {
  background: #2f6ccc;
}

.custom-dropdown__option-group {
  padding: 8px 12px 4px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.compact-title-wrap {
  position: relative;
}

.compact-title-input {
  width: 100%;
  min-height: 44px;
  padding: 0 62px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #1e1e23;
  color: #fff;
}

.compact-title-counter {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #74747c;
  font-size: 0.85rem;
}

.prompt-composer {
  border-radius: 28px;
  background: #1b1b20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.prompt-composer__body {
  position: relative;
  min-height: 238px;
  padding: 18px 18px 0;
}

.prompt-composer__body textarea {
  width: 100%;
  min-height: 180px;
  padding: 8px 52px 36px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  resize: none;
}

body[data-page="music"] .prompt-composer__body textarea {
  padding-right: 80px;
}

body[data-page="music"] .prompt-composer__body .prompt-tools {
  top: 16px;
  right: 22px;
  gap: 12px;
}

body[data-page="music"] .prompt-composer__body .prompt-footer {
  right: 22px;
}

.composer-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 14px 16px;
}

.chip-select,
.composer-chip,
.ghost-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: #2a2a30;
  color: white;
  font-weight: 700;
}

.composer-toolbar > .composer-chip,
.composer-toolbar > .custom-dropdown {
  flex: 1 1 0;
  min-width: 0;
}

.composer-chip {
  background: #24242a;
}

.composer-chip.is-active {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
}

.audio-upload-panel {
  padding: 14px;
  border-radius: 26px;
  background: #1b1b20;
}

.audio-upload-box {
  display: flex;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 107, 45, 0.85);
  border-radius: 24px;
}

.ghost-chip {
  min-width: 138px;
  background: #212127;
}

.ghost-chip--file {
  cursor: pointer;
}

.audio-upload-note {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.audio-upload-panel.is-hidden + .source-track-card:not(.is-hidden) {
  margin-top: -4px;
}

.source-track-card {
  padding: 14px;
  border-radius: 26px;
  background: #1b1b20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.source-track-card__head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.source-track-card__mini-cover {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    linear-gradient(135deg, #35576f, #f17e56);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.source-track-card__mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.source-track-card__action .custom-dropdown__trigger {
  min-height: 38px;
  border-radius: 14px;
}

.source-track-card__remove {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.source-track-card__waveform {
  position: relative;
  overflow: hidden;
  min-height: 106px;
  border: 1px solid rgba(255, 107, 45, 0.92);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 124, 54, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    #17171b;
}

.source-track-card__waveform::before {
  content: "";
  position: absolute;
  inset: 12px 16px;
  background:
    linear-gradient(90deg,
      transparent 0 2%,
      rgba(255, 109, 53, 0.88) 2% 2.6%,
      transparent 2.6% 4%,
      rgba(255, 109, 53, 0.82) 4% 4.4%,
      transparent 4.4% 5.2%,
      rgba(255, 109, 53, 0.9) 5.2% 6%,
      transparent 6% 7%,
      rgba(255, 109, 53, 0.76) 7% 7.5%,
      transparent 7.5% 8.6%,
      rgba(255, 109, 53, 0.94) 8.6% 9.2%,
      transparent 9.2% 10.2%,
      rgba(255, 109, 53, 0.82) 10.2% 11%,
      transparent 11% 12.6%,
      rgba(255, 109, 53, 0.88) 12.6% 13.1%,
      transparent 13.1% 14.8%,
      rgba(255, 109, 53, 0.72) 14.8% 15.5%,
      transparent 15.5% 17.1%,
      rgba(255, 109, 53, 0.92) 17.1% 17.6%,
      transparent 17.6% 19.2%,
      rgba(255, 109, 53, 0.83) 19.2% 20%,
      transparent 20% 21.5%,
      rgba(255, 109, 53, 0.97) 21.5% 22.2%,
      transparent 22.2% 23.5%,
      rgba(255, 109, 53, 0.75) 23.5% 24.1%,
      transparent 24.1% 26%,
      rgba(255, 109, 53, 0.92) 26% 26.7%,
      transparent 26.7% 28.1%,
      rgba(255, 109, 53, 0.88) 28.1% 29%,
      transparent 29% 30.4%,
      rgba(255, 109, 53, 0.82) 30.4% 31.1%,
      transparent 31.1% 33%,
      rgba(255, 109, 53, 0.95) 33% 33.9%,
      transparent 33.9% 35.2%,
      rgba(255, 109, 53, 0.78) 35.2% 36%,
      transparent 36% 37.4%,
      rgba(255, 109, 53, 0.9) 37.4% 38.2%,
      transparent 38.2% 40%,
      rgba(255, 109, 53, 0.82) 40% 40.6%,
      transparent 40.6% 42.3%,
      rgba(255, 109, 53, 0.95) 42.3% 43.2%,
      transparent 43.2% 44.7%,
      rgba(255, 109, 53, 0.74) 44.7% 45.2%,
      transparent 45.2% 47%,
      rgba(255, 109, 53, 0.92) 47% 47.8%,
      transparent 47.8% 49.3%,
      rgba(255, 109, 53, 0.79) 49.3% 50.1%,
      transparent 50.1% 52%,
      rgba(255, 109, 53, 0.94) 52% 52.8%,
      transparent 52.8% 54.2%,
      rgba(255, 109, 53, 0.76) 54.2% 54.8%,
      transparent 54.8% 56.6%,
      rgba(255, 109, 53, 0.92) 56.6% 57.5%,
      transparent 57.5% 59.4%,
      rgba(255, 109, 53, 0.84) 59.4% 60.1%,
      transparent 60.1% 62%,
      rgba(255, 109, 53, 0.97) 62% 62.9%,
      transparent 62.9% 64.5%,
      rgba(255, 109, 53, 0.78) 64.5% 65.1%,
      transparent 65.1% 67%,
      rgba(255, 109, 53, 0.9) 67% 67.9%,
      transparent 67.9% 69.4%,
      rgba(255, 109, 53, 0.82) 69.4% 70.2%,
      transparent 70.2% 72.4%,
      rgba(255, 109, 53, 0.94) 72.4% 73.1%,
      transparent 73.1% 75.2%,
      rgba(255, 109, 53, 0.74) 75.2% 75.8%,
      transparent 75.8% 77.6%,
      rgba(255, 109, 53, 0.91) 77.6% 78.4%,
      transparent 78.4% 80.2%,
      rgba(255, 109, 53, 0.8) 80.2% 81%,
      transparent 81% 82.8%,
      rgba(255, 109, 53, 0.95) 82.8% 83.7%,
      transparent 83.7% 85.4%,
      rgba(255, 109, 53, 0.77) 85.4% 86.2%,
      transparent 86.2% 88.2%,
      rgba(255, 109, 53, 0.92) 88.2% 89.1%,
      transparent 89.1% 90.8%,
      rgba(255, 109, 53, 0.83) 90.8% 91.5%,
      transparent 91.5% 93.4%,
      rgba(255, 109, 53, 0.96) 93.4% 94.2%,
      transparent 94.2% 100%);
  opacity: 0.96;
  clip-path: polygon(0 52%, 3% 48%, 6% 66%, 9% 35%, 12% 72%, 15% 42%, 18% 61%, 21% 24%, 24% 69%, 27% 39%, 30% 62%, 33% 18%, 36% 77%, 39% 43%, 42% 58%, 45% 25%, 48% 71%, 51% 33%, 54% 63%, 57% 40%, 60% 68%, 63% 29%, 66% 75%, 69% 42%, 72% 60%, 75% 23%, 78% 71%, 81% 37%, 84% 65%, 87% 31%, 90% 73%, 93% 41%, 96% 59%, 100% 50%, 100% 50%, 96% 41%, 93% 63%, 90% 27%, 87% 72%, 84% 33%, 81% 66%, 78% 38%, 75% 71%, 72% 22%, 69% 58%, 66% 41%, 63% 77%, 60% 30%, 57% 69%, 54% 36%, 51% 61%, 48% 28%, 45% 74%, 42% 34%, 39% 57%, 36% 20%, 33% 70%, 30% 40%, 27% 60%, 24% 31%, 21% 76%, 18% 26%, 15% 63%, 12% 39%, 9% 73%, 6% 31%, 3% 57%, 0 48%);
}

.source-track-card__meta {
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.45;
  word-break: break-word;
  font-size: 0.92rem;
}

.style-composer {
  border-radius: 28px;
  background: #1b1b20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.style-composer__body {
  position: relative;
  min-height: 148px;
  padding: 18px 18px 0;
}

.style-composer__body textarea {
  width: 100%;
  min-height: 108px;
  padding: 8px 52px 36px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  resize: none;
}

body[data-page="music"] .style-composer__body textarea {
  padding-right: 72px;
}

.prompt-tools--style {
  top: 18px;
}

body[data-page="music"] .style-composer__body .prompt-tools--style {
  right: 22px;
}

body[data-page="music"] .style-composer__body .prompt-footer {
  right: 22px;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 16px;
  overflow: visible;
}

body[data-page="music"] .creation-panel--music {
  gap: 14px;
}

body[data-page="music"] .panel-head--music {
  margin-bottom: 8px;
}

body[data-page="music"] .music-form--music {
  gap: 14px;
}

body[data-page="music"] .compact-title-wrap--music {
  margin-bottom: 2px;
}

body[data-page="music"] .compact-title-input {
  min-height: 54px;
  padding: 0 18px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #222227;
}

body[data-page="music"] .compact-title-counter {
  display: none;
  right: 18px;
  color: rgba(255, 255, 255, 0.22);
}

body[data-page="music"] .prompt-composer--music,
body[data-page="music"] .style-composer--music {
  border-radius: 30px;
  background: #222226;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

body[data-page="music"] .prompt-composer--music .prompt-composer__body {
  min-height: 230px;
  padding: 18px 18px 0;
}

body[data-page="music"] .prompt-composer--music .prompt-composer__body textarea {
  min-height: 174px;
  padding: 10px 64px 42px 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.02rem;
  line-height: 1.45;
}

body[data-page="music"] .prompt-composer--music .prompt-composer__body textarea::placeholder,
body[data-page="music"] .style-composer--music .style-composer__body textarea::placeholder,
body[data-page="music"] .compact-title-input::placeholder {
  color: rgba(255, 255, 255, 0.19);
}

body[data-page="music"] .prompt-composer--music .prompt-tools,
body[data-page="music"] .style-composer--music .prompt-tools--style {
  top: 16px;
  right: 18px;
}

body[data-page="music"] .prompt-composer--music .prompt-footer,
body[data-page="music"] .style-composer--music .prompt-footer {
  right: 18px;
  color: rgba(255, 255, 255, 0.26);
}

body[data-page="music"] .music-tool-btn--hidden {
  display: none;
}

body[data-page="music"] .tab-switch__item,
body[data-page="music"] .music-voice-switch__item,
body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music,
body[data-page="music"] .composer-chip--music,
body[data-page="music"] .secondary-btn--music,
body[data-page="music"] .primary-btn--music {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    filter 180ms ease;
  will-change: transform;
}

body[data-page="music"] .composer-chip--music,
body[data-page="music"] .secondary-btn--music,
body[data-page="music"] .primary-btn--music {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

body[data-page="music"] .composer-chip--music::before,
body[data-page="music"] .secondary-btn--music::before,
body[data-page="music"] .primary-btn--music::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.78rem;
  line-height: 1;
  flex: 0 0 20px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

body[data-page="music"] .composer-chip--music::before {
  width: 15px;
  height: 15px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  flex: 0 0 15px;
  opacity: 0.96;
}

body[data-page="music"] #instrumental-mode-btn::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f4f6' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 3 9 3 15 6 15 11 19 11 5'/%3E%3Cline x1='16' y1='9' x2='21' y2='14'/%3E%3Cline x1='21' y1='9' x2='16' y2='14'/%3E%3C/svg%3E");
}

body[data-page="music"] #audio-mode-btn::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f4f6' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.5 7.5l-6.8 7.1a3.5 3.5 0 1 0 5 4.9l7.6-7.9a5 5 0 0 0-7.1-7.1L5.7 13'/%3E%3C/svg%3E");
}

body[data-page="music"] #record-voice-btn::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd7cb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3.5' width='6' height='10' rx='3'/%3E%3Cpath d='M7 11.5a5 5 0 0 0 10 0'/%3E%3Cpath d='M12 17v3.5'/%3E%3Cpath d='M9.5 20.5h5'/%3E%3C/svg%3E");
}

body[data-page="music"] #generate-lyrics-btn::before {
  content: "✦";
  color: #ffe2c9;
}

body[data-page="music"] #generate-btn::before {
  content: "♪";
  font-size: 0.8rem;
}

body[data-page="music"] .composer-toolbar--music {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 16px;
}

body[data-page="music"] .composer-chip--music {
  min-height: 42px;
  min-width: 0;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), #18181c;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.015em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

body[data-page="music"] .composer-chip--music.is-active {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)), #2a2a31;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body[data-page="music"] .composer-chip--music.is-active::before {
  background-color: transparent;
  box-shadow: none;
}

body[data-page="music"] .music-voice-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #121216;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

body[data-page="music"] .music-voice-switch__item {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.96rem;
  white-space: nowrap;
  font-weight: 500;
}

body[data-page="music"] .music-voice-switch__item--active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music {
  min-height: 54px;
  border-radius: 20px;
  background: #121216;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  color: #fff;
}

body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music::after {
  transition: transform 180ms ease, color 180ms ease;
}

body[data-page="music"] .custom-dropdown--music.is-open .custom-dropdown__trigger--music::after {
  transform: translateY(-50%) rotate(180deg);
  color: #fff;
}

body[data-page="music"] .audio-upload-panel {
  padding: 14px 16px;
  border-radius: 24px;
  background: #1a1a1f;
}

body[data-page="music"] .audio-upload-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  border: 0;
}

body[data-page="music"] .ghost-chip--file {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  background: #25252d;
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-page="music"] .audio-upload-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.58);
}

body[data-page="music"] .style-composer--music .style-composer__body {
  min-height: 164px;
  padding: 18px 18px 0;
}

body[data-page="music"] .style-composer--music .style-composer__body textarea {
  min-height: 112px;
  padding: 10px 62px 40px 0;
}

body[data-page="music"] .music-tuning-grid {
  display: grid;
  gap: 10px;
  padding: 0 18px 14px;
}

body[data-page="music"] .music-tuning {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  align-items: center;
  gap: 12px;
}

body[data-page="music"] .music-tuning__label {
  color: rgba(255, 241, 228, 0.92);
  font-size: 0.92rem;
  line-height: 1.15;
}

body[data-page="music"] .music-tuning__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6e3a, #ff5b4f);
  outline: none;
}

body[data-page="music"] .music-tuning__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 0;
  background: #b755d8;
  box-shadow: 0 0 0 4px rgba(183, 85, 216, 0.12);
  cursor: pointer;
}

body[data-page="music"] .music-tuning__range::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, #ff6e3a, #ff5b4f);
}

body[data-page="music"] .music-tuning__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 0;
  background: #b755d8;
  box-shadow: 0 0 0 4px rgba(183, 85, 216, 0.12);
  cursor: pointer;
}

body[data-page="music"] .style-grid {
  padding: 0 14px 16px;
}

body[data-page="music"] .secondary-btn--music {
  min-height: 50px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)), #3a3a40;
  font-size: 1rem;
  letter-spacing: -0.01em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

body[data-page="music"] .primary-btn--music {
  min-height: 56px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 34%),
    linear-gradient(90deg, #ff7435, #ff4e77);
  font-size: 1rem;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 38px rgba(239, 87, 96, 0.24);
}

body[data-page="music"] .tab-switch__item--active {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 20px rgba(0, 0, 0, 0.18);
}

body[data-page="music"] .tab-switch__item:focus-visible,
body[data-page="music"] .music-voice-switch__item:focus-visible,
body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music:focus-visible,
body[data-page="music"] .composer-chip--music:focus-visible,
body[data-page="music"] .secondary-btn--music:focus-visible,
body[data-page="music"] .primary-btn--music:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 4px rgba(255, 112, 71, 0.14);
}

body[data-page="music"] #record-voice-btn.is-recording {
  border-color: rgba(255, 118, 112, 0.42);
  background: linear-gradient(135deg, rgba(255, 114, 103, 0.18), rgba(255, 255, 255, 0.03)), #23181b;
  box-shadow: 0 12px 24px rgba(255, 92, 98, 0.18);
}

body[data-page="music"] #record-voice-btn.is-recording::before {
  background-color: transparent;
  box-shadow: 0 0 0 0 rgba(255, 111, 101, 0.22);
  animation: music-record-pulse 1.4s ease infinite;
  filter: drop-shadow(0 0 6px rgba(255, 128, 109, 0.3));
}

@media (hover: hover) {
  body[data-page="music"] .tab-switch__item:hover,
  body[data-page="music"] .music-voice-switch__item:hover,
  body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music:hover,
  body[data-page="music"] .composer-chip--music:hover,
  body[data-page="music"] .secondary-btn--music:hover,
  body[data-page="music"] .primary-btn--music:hover {
    transform: translateY(-1px);
  }

  body[data-page="music"] .tab-switch__item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  body[data-page="music"] .music-voice-switch__item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
      0 12px 22px rgba(0, 0, 0, 0.18),
      inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music:hover::after {
    color: #fff;
  }

  body[data-page="music"] .composer-chip--music:hover,
  body[data-page="music"] .secondary-btn--music:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.24),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }

  body[data-page="music"] .composer-chip--music:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)), #1e1e23;
  }

  body[data-page="music"] .secondary-btn--music:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)), #45454d;
  }

  body[data-page="music"] .primary-btn--music:hover {
    filter: saturate(1.08) brightness(1.02);
    box-shadow: 0 22px 48px rgba(239, 87, 96, 0.3);
  }

  body[data-page="music"] .composer-chip--music:hover::before,
  body[data-page="music"] .secondary-btn--music:hover::before,
  body[data-page="music"] .primary-btn--music:hover::before {
    transform: translateX(1px) scale(1.06);
    background-color: transparent;
    box-shadow: none;
  }
}

body[data-page="music"] .tab-switch__item:active,
body[data-page="music"] .music-voice-switch__item:active,
body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music:active,
body[data-page="music"] .composer-chip--music:active,
body[data-page="music"] .secondary-btn--music:active,
body[data-page="music"] .primary-btn--music:active {
  transform: translateY(0) scale(0.985);
}

@keyframes music-record-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 111, 101, 0.24);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(255, 111, 101, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 111, 101, 0);
  }
}

@media (max-width: 420px) {
  body[data-page="music"] .composer-toolbar--music {
    gap: 5px;
    padding: 0 10px 12px;
  }

  body[data-page="music"] .composer-chip--music {
    min-height: 38px;
    padding: 0 8px;
    gap: 6px;
    font-size: 0.77rem;
    letter-spacing: -0.02em;
  }

  body[data-page="music"] .composer-chip--music::before {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  body[data-page="music"] .music-voice-switch__item {
    padding: 0 6px;
    font-size: 0.78rem;
  }

  body[data-page="music"] #record-voice-btn {
    padding: 0 6px;
    gap: 5px;
    font-size: 0.73rem;
    letter-spacing: -0.02em;
  }
}

.advanced-tuning {
  margin-top: -2px;
}

.advanced-grid {
  display: none;
}

.creation-panel.is-pro .advanced-grid {
  display: grid;
}

.creation-panel.is-pro .basic-only {
  display: none;
}

.creation-panel.is-pro .form-help {
  order: 99;
}

.toggle-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #1b1b20;
  color: #f2f2f4;
}

.toggle-card input {
  accent-color: #ff6b2d;
}

.form-help {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  line-height: 1.45;
}

.is-hidden {
  display: none;
}

.results-toolbar--stack {
  grid-template-columns: 1fr;
}

.results-toolbar--library {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

.results-toolbar--photo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.results-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.08;
  max-width: 100%;
}

.results-subtitle {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.results-retention-note {
  margin: 8px 0 0;
  color: rgba(255, 194, 130, 0.92);
  font-size: 0.95rem;
}

.status-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #f2f2f4;
}

.status-banner--error {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
}

.task-list {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.library-tools {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.favorite-filter,
.library-clear,
.player-btn,
.player-close,
.composition-card__icon,
.composition-card__menu,
.composition-card__star,
.composition-card__rename {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.favorite-filter.is-active,
.composition-card__star.is-active {
  background: linear-gradient(180deg, #8d38ff, #6120d0);
}

.library-search {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #232327;
}

.library-search__icon {
  color: var(--text-soft);
}

.library-search input {
  min-width: 0;
  min-height: 40px;
  color: var(--text);
}

.processing-list,
.composition-list {
  display: grid;
  gap: 12px;
}

.processing-list {
  margin-bottom: 18px;
}

.processing-card {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 18px;
  background: #363638;
}

.processing-card__bar {
  position: absolute;
  inset: 10px 12px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 109, 53, 0.94), rgba(242, 76, 115, 0.9)),
    radial-gradient(circle at 20% 50%, rgba(255, 210, 92, 0.35), transparent 20%),
    radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.18), transparent 16%);
  opacity: 0.96;
  transform-origin: left center;
  animation: processingSlide 2.1s linear infinite;
}

.processing-card__text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
}

.library-empty {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.library-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.library-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.library-pagination__nav,
.library-pagination__page {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.library-pagination__page.is-active {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  border-color: transparent;
  color: #fff;
}

.library-pagination__nav:disabled {
  opacity: 0.42;
  cursor: default;
}

.composition-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #2f2f33;
}

.composition-card.is-playing {
  box-shadow: inset 0 0 0 1px rgba(255, 109, 53, 0.5);
}

.composition-card__cover {
  position: relative;
  --cover-indicator-size: 36px;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--cover-gradient, linear-gradient(135deg, #3a4361, #f85a70));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.composition-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composition-card__cover-indicator {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(10, 11, 16, 0.08), rgba(10, 11, 16, 0.36));
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.composition-card__cover-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--cover-indicator-size);
  height: var(--cover-indicator-size);
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.78);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(6px) scale(0.88);
  transition: transform 220ms ease, opacity 220ms ease;
}

.composition-card__cover-icon--play::before {
  content: "";
  margin-left: 3px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #fff;
}

.composition-card__cover-icon--pause {
  gap: 4px;
}

.composition-card__cover-icon--pause span {
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  transform-origin: center;
}

.composition-card__cover--idle .composition-card__cover-icon--play,
.composition-card__cover--paused .composition-card__cover-icon--play,
.composition-card__cover--playing .composition-card__cover-icon--pause {
  display: inline-flex;
}

.composition-card__cover:hover .composition-card__cover-indicator,
.composition-card__cover:focus-visible .composition-card__cover-indicator {
  opacity: 1;
}

.composition-card__cover:hover .composition-card__cover-icon,
.composition-card__cover:focus-visible .composition-card__cover-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.composition-card__cover--idle:hover .composition-card__cover-icon--play,
.composition-card__cover--idle:focus-visible .composition-card__cover-icon--play,
.composition-card__cover--paused:hover .composition-card__cover-icon--play,
.composition-card__cover--paused:focus-visible .composition-card__cover-icon--play {
  animation: coverPlayPulse 0.95s ease-in-out infinite alternate;
}

.composition-card__cover--playing:hover .composition-card__cover-icon--pause span,
.composition-card__cover--playing:focus-visible .composition-card__cover-icon--pause span {
  animation: none;
  transform: none;
}

.composition-card__duration {
  position: absolute;
  z-index: 2;
  left: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.75rem;
}

.composition-card__body {
  min-width: 0;
}

.composition-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.composition-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.composition-card__desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.composition-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f2f2f4;
  font-size: 0.8rem;
  white-space: nowrap;
}

.chip-badge--accent {
  background: rgba(255, 255, 255, 0.16);
}

.composition-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.composition-card__action-pill {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.composition-card__icon {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.composition-card__menu {
  position: relative;
  z-index: 2;
  touch-action: manipulation;
}

.composition-menu {
  position: fixed;
  z-index: 220;
  min-width: 260px;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  border-radius: 24px;
  background: #343438;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
}

.composition-menu[hidden] {
  display: none;
}

.composition-menu__item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  text-align: left;
}

.composition-menu__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.composition-menu__item--danger {
  color: #ffc1c1;
}

.composition-menu__divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.12);
}

@keyframes coverPlayPulse {
  0% {
    transform: translateY(0) scale(0.96);
  }

  100% {
    transform: translateY(-1px) scale(1.04);
  }
}

@keyframes coverPausePulse {
  0% {
    transform: scaleY(0.76);
  }

  100% {
    transform: scaleY(1);
  }
}

.player-dock {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr minmax(180px, 240px) 42px;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  padding: 12px 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px 18px 0 0;
  background: rgba(15, 15, 18, 0.96);
  backdrop-filter: blur(12px);
}

.player-dock__track {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}

.player-dock__cover {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--cover-gradient, linear-gradient(135deg, #3a4361, #f85a70));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.player-dock__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-dock__meta strong {
  display: block;
  margin-bottom: 8px;
}

.player-dock__time {
  color: var(--text-soft);
}

.player-dock__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.player-btn--play {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1rem;
}

.player-btn.is-active {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
}

.player-dock__volume {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.player-dock__volume input,
.player-progress {
  width: 100%;
  accent-color: #f56b33;
}

.player-progress {
  grid-column: 1 / -1;
  cursor: pointer;
}

@keyframes processingSlide {
  0% {
    transform: scaleX(0.58);
    filter: saturate(0.95);
  }
  50% {
    transform: scaleX(0.9);
    filter: saturate(1.15);
  }
  100% {
    transform: scaleX(0.58);
    filter: saturate(0.95);
  }
}

.task-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #17171c;
}

.task-card--empty {
  color: var(--text-soft);
}

.task-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.task-card__head strong {
  display: block;
  margin-bottom: 6px;
}

.task-card__head p,
.task-card__note,
.task-card__empty {
  margin: 0;
  color: var(--text-soft);
}

.task-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.generated-list {
  display: grid;
  gap: 10px;
}

.generated-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.generated-item p {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.generated-item__links {
  display: flex;
  gap: 10px;
}

.generated-item__links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.results-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 20px;
  color: var(--text-soft);
}

.results-divider::before,
.results-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .field-grid--double,
  .field-grid--triple,
  .toggle-row,
  .style-grid {
    grid-template-columns: 1fr;
  }

  .composer-toolbar,
  .audio-upload-box {
    flex-direction: column;
  }

  .generated-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .library-tools {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .library-clear {
    display: none;
  }

  .composition-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .composition-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .player-dock {
    grid-template-columns: 1fr;
  }

  .player-dock__volume {
    justify-content: flex-start;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-avatar-card {
    justify-items: center;
  }

  .profile-form-card {
    max-width: 100%;
  }
}

body[data-page="home"] .sidebar {
  background: linear-gradient(180deg, rgba(25, 14, 5, 0.86), rgba(5, 6, 10, 0.94));
}

body[data-page="home"] .page-content {
  min-width: 0;
  overflow-x: hidden;
}

body[data-page="home"] .logo {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

body[data-page="home"] .auth-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

body[data-page="home"] .auth-btn--yandex {
  background: linear-gradient(90deg, #ff8b1e, #ff5b6e);
  box-shadow: 0 0 30px rgba(255, 121, 48, 0.25);
}

body[data-page="home"] .auth-btn--vk {
  background: rgba(255, 255, 255, 0.05);
}

body[data-page="home"] .sidebar-nav a,
body[data-page="home"] .sidebar-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
}

body[data-page="home"] .sidebar-nav a:hover,
body[data-page="home"] .sidebar-footer a:hover,
body[data-page="home"] .sidebar-nav a.is-active {
  color: #fff;
}

body[data-page="home"] .sidebar-nav a::before,
body[data-page="home"] .sidebar-footer a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body[data-page="home"] .sidebar-footer a.sidebar-social-button::before,
body[data-page="home"] .sidebar-footer a.sidebar-support-link::before {
  display: none;
  width: 0;
  height: 0;
  margin-right: 0;
  border: 0;
}

body[data-page="home"] .account-dock {
  margin-top: 4px;
}

body[data-page="home"] .account-trigger {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .account-menu {
  left: 0;
  right: auto;
  width: min(100%, 236px);
}

body[data-page="home"] .quick-start {
  background:
    linear-gradient(135deg, rgba(94, 9, 74, 0.65), rgba(110, 62, 216, 0.28), rgba(248, 178, 93, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

body[data-page="home"] .quick-start h3 {
  color: #fff;
}

body[data-page="home"] .quick-start p {
  color: rgba(255, 255, 255, 0.86);
}

body[data-page="home"] .hero-banner {
  position: relative;
  height: 430px;
  min-height: 430px;
  margin-bottom: 28px;
  padding: 44px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(90deg, rgba(4, 8, 18, 0.82), rgba(4, 8, 18, 0.28)),
    radial-gradient(circle at top left, rgba(255, 157, 0, 0.16), transparent 28%),
    radial-gradient(circle at top center, rgba(56, 103, 255, 0.2), transparent 30%),
    #060913;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page="home"] .hero-banner::after {
  display: none;
}

body[data-page="home"] .hero-overlay {
  position: relative;
  z-index: 2;
  width: min(100%, 700px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}

body[data-page="home"] .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body[data-page="home"] .hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 4, 12, 0.94) 0%, rgba(2, 4, 12, 0.72) 24%, rgba(2, 4, 12, 0.28) 54%, rgba(2, 4, 12, 0.58) 100%);
}

body[data-page="home"] .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 150, 32, 0.16), transparent 26%),
    radial-gradient(circle at 78% 20%, rgba(255, 64, 129, 0.18), transparent 22%),
    linear-gradient(180deg, transparent 0%, rgba(4, 7, 15, 0.08) 100%);
}

body[data-page="home"] .hero-media--music-studio {
  background-image:
    linear-gradient(90deg, rgba(8, 10, 18, 0.1), rgba(8, 10, 18, 0.1)),
    url("https://images.unsplash.com/photo-1619983081563-430f63602796?auto=format&fit=crop&w=1800&h=760&q=80");
}

body[data-page="home"] .hero-media--brand {
  background-image:
    linear-gradient(90deg, rgba(8, 10, 18, 0.16), rgba(8, 10, 18, 0.16)),
    linear-gradient(120deg, rgba(10, 18, 42, 0.94) 0 55%, rgba(26, 38, 82, 0.88) 55% 62%, rgba(8, 12, 26, 0.94) 62% 72%, rgba(16, 25, 52, 0.9) 72% 80%, rgba(8, 12, 26, 0.94) 80% 100%);
}

body[data-page="home"] .hero-media--brand::after {
  background:
    linear-gradient(90deg, rgba(3, 5, 15, 0.25), rgba(3, 5, 15, 0.1)),
    radial-gradient(circle at 76% 42%, rgba(161, 177, 215, 0.3), transparent 18%);
}

body[data-page="home"] .hero-media--brand::before {
  background:
    linear-gradient(90deg, rgba(2, 4, 12, 0.95) 0%, rgba(2, 4, 12, 0.74) 30%, rgba(2, 4, 12, 0.34) 56%, rgba(2, 4, 12, 0.42) 100%);
}

body[data-page="home"] .hero-media--brand {
  background-color: #070b18;
}

body[data-page="home"] .hero-media--brand::after {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body[data-page="home"] .hero-media--image {
  background-image:
    linear-gradient(90deg, rgba(8, 10, 18, 0.12), rgba(8, 10, 18, 0.12)),
    url("https://images.unsplash.com/photo-1545239351-1141bd82e8a6?auto=format&fit=crop&w=1800&h=760&q=80");
  background-position: center 34%;
}

body[data-page="home"] .hero-media--video {
  background-image:
    linear-gradient(90deg, rgba(8, 10, 18, 0.12), rgba(8, 10, 18, 0.12)),
    url("https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?auto=format&fit=crop&w=1800&h=760&q=80");
  background-position: center 46%;
}

body[data-page="home"] .hero-banner .primary-btn {
  position: relative;
  z-index: 2;
}

.creation-panel--photo,
.results-panel--photo {
  min-height: calc(100vh - 36px);
}

.results-panel--photo {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.panel-head--photo {
  margin-bottom: 14px;
}

.photo-field {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.photo-field__icon,
.photo-field__label {
  color: #fff;
  font-weight: 700;
}

.photo-native-select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
  appearance: auto;
  padding: 0 4px;
}

.photo-native-select option {
  color: #fff;
  background: #25252d;
}

.prompt-composer--photo {
  margin-bottom: 16px;
}

.photo-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 120px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  color: #f0f1f5;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
  overflow: hidden;
}

.photo-slot:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.photo-slot--disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.photo-slot__plus {
  font-size: 1.8rem;
  font-weight: 800;
  color: #f4f4f8;
}

.photo-slot__label {
  font-weight: 700;
}

.photo-slot__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.7);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-slot__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 14, 22, 0.72);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.photo-field--select,
.photo-pill-select {
  overflow: visible;
}

.photo-toolbar-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.photo-pill-select {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.photo-pill-select__icon {
  color: rgba(255, 255, 255, 0.74);
}

.photo-native-select--pill {
  font-weight: 700;
}

.photo-note {
  min-height: 22px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.photo-stage {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.photo-stage__card {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.photo-stage__card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
}

.photo-stage__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-stage__empty {
  width: 100%;
  max-width: none;
  min-height: 320px;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.photo-stage__empty h3 {
  margin: 0 0 14px;
  font-size: 2.05rem;
  line-height: 1.08;
  color: #f5f6ff;
  max-width: 12ch;
}

.photo-stage__empty p {
  margin: 0;
  line-height: 1.72;
  font-size: 1rem;
  max-width: 40rem;
}

.photo-history-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.photo-history-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.photo-history-panel__head h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #f3f4ff;
}

.photo-stage__card[hidden],
.photo-history-panel[hidden],
.photo-modal[hidden],
.results-panel--photo .library-empty[hidden] {
  display: none !important;
}

.photo-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
}

.photo-history-card {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.photo-history-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.photo-history-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 14, 0.92));
  text-align: left;
}

.photo-history-card__overlay strong,
.photo-history-card__overlay span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-modal-open {
  overflow: hidden;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.photo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 12, 0.76);
  backdrop-filter: blur(12px);
}

.photo-modal__card {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100vw - 40px));
  margin: 8vh auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 30, 34, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.photo-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.photo-modal__media {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.photo-modal__media img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.photo-modal__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.photo-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 42px;
}

.photo-modal__head h3 {
  margin: 0;
  font-size: 1.95rem;
}

.photo-modal__prompt {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.photo-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-modal__chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #edf0ff;
  font-weight: 700;
}

.photo-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-chip--icon {
  min-width: 46px;
  justify-content: center;
}

.ghost-chip--wide {
  width: 100%;
  justify-content: center;
}

.results-panel--photo .library-empty {
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .photo-modal__card {
    grid-template-columns: 1fr;
    width: min(720px, calc(100vw - 24px));
  }

  .photo-stage {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .photo-stage__card {
    width: min(100%, 280px);
  }

  .photo-stage__empty {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .photo-reference-grid,
  .photo-toolbar-row {
    grid-template-columns: 1fr 1fr;
  }

  .photo-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-modal__card {
    margin-top: 3vh;
    padding: 14px;
  }

  .photo-modal__head h3 {
    font-size: 1.5rem;
  }
}

body[data-page="home"] .hero-slides {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 12px;
}

body[data-page="home"] .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 18px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="home"] .eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff9a1f;
  box-shadow: 0 0 16px rgba(255, 154, 31, 0.8);
}

body[data-page="home"] .hero-banner h1 {
  margin: 20px 0 18px;
  max-width: 640px;
  font-size: clamp(3.35rem, 4.6vw, 4.45rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 900;
}

body[data-page="home"] .hero-banner h1 br {
  display: block;
}

body[data-page="home"] .hero-banner[data-hero-variant="brand"] h1 {
  max-width: 600px;
  font-size: clamp(2.9rem, 4vw, 3.7rem);
  line-height: 0.94;
  margin: 18px 0 14px;
}

body[data-page="home"] .hero-banner[data-hero-variant="music"] h1 {
  max-width: 560px;
  font-size: clamp(3.15rem, 4.25vw, 4rem);
  line-height: 0.95;
  margin: 18px 0 14px;
}

body[data-page="home"] .hero-banner[data-hero-variant="image"] h1,
body[data-page="home"] .hero-banner[data-hero-variant="video"] h1 {
  max-width: 560px;
  font-size: clamp(3rem, 4.1vw, 3.85rem);
  line-height: 0.95;
  margin: 18px 0 14px;
}

body[data-page="home"] .hero-banner h1 .gradient-text,
body[data-page="home"] .gradient-text {
  display: block;
  background: linear-gradient(90deg, #ffb000, #ff7a00, #ffd36a, #77a2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-page="home"] .hero-text {
  max-width: 620px;
  margin: 0 0 20px;
  font-size: 1.22rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

body[data-page="home"] .hero-banner[data-hero-variant="brand"] .hero-text {
  max-width: 520px;
  font-size: 1.08rem;
  margin: 0 0 14px;
}

body[data-page="home"] .hero-banner[data-hero-variant="music"] .hero-text {
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.46;
  margin: 0 0 16px;
}

body[data-page="home"] .hero-banner[data-hero-variant="image"] .hero-text,
body[data-page="home"] .hero-banner[data-hero-variant="video"] .hero-text {
  max-width: 500px;
  font-size: 1.06rem;
  line-height: 1.45;
  margin: 0 0 16px;
}

body[data-page="home"] .primary-btn {
  align-self: flex-start;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff8a00, #ff5a3d);
  box-shadow: 0 14px 40px rgba(255, 122, 0, 0.34);
  font-size: 1.1rem;
}

body[data-page="home"] .hero-banner[data-hero-variant="brand"] .primary-btn {
  min-height: 54px;
  padding: 0 24px;
}

body[data-page="home"] .hero-banner[data-hero-variant="music"] .primary-btn {
  min-height: 54px;
  padding: 0 24px;
}

body[data-page="home"] .hero-banner[data-hero-variant="image"] .primary-btn,
body[data-page="home"] .hero-banner[data-hero-variant="video"] .primary-btn {
  min-height: 54px;
  padding: 0 24px;
}

body[data-page="home"] .hero-dot {
  border: 0;
  cursor: pointer;
  width: 32px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

body[data-page="home"] .hero-dot:hover {
  transform: translateY(-1px);
}

body[data-page="home"] .hero-dot--active {
  width: 56px;
  background: rgba(255, 255, 255, 0.92);
}

body[data-page="home"] .feature-grid {
  gap: 20px;
  margin-bottom: 28px;
}

body[data-page="home"] .feature-card {
  min-height: 170px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(255, 136, 0, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(70, 103, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.03);
}

body[data-page="home"] .feature-card h2 {
  margin: 8px 0 0;
  font-size: clamp(2.2rem, 3vw, 3.3rem);
  font-weight: 900;
}

body[data-page="home"] .feature-visual--emoji {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  filter: drop-shadow(0 16px 28px rgba(255, 122, 0, 0.18));
}

body[data-page="profile"] .sidebar {
  background: linear-gradient(180deg, rgba(11, 11, 16, 0.94), rgba(8, 8, 12, 0.98));
}

.profile-panel {
  max-width: 1380px;
  padding: 8px 20px 40px;
}

.profile-title {
  margin: 0 0 34px;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.profile-grid {
  display: grid;
  grid-template-columns: 280px minmax(560px, 1fr);
  gap: 68px;
  align-items: start;
}

.profile-avatar-card {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #3aa8df, #2f85d8);
  color: #fff;
  font-size: 4rem;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.profile-avatar.has-image {
  background: rgba(255, 255, 255, 0.04);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.profile-form-card {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.profile-status {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
}

.profile-status[data-state="success"] {
  background: rgba(88, 213, 136, 0.12);
  color: #aef1c3;
}

.profile-status[data-state="error"] {
  background: rgba(255, 93, 115, 0.12);
  color: #ffc2cb;
}

.profile-form {
  display: grid;
  gap: 26px;
}

.profile-field {
  display: grid;
  gap: 10px;
}

.profile-field > span {
  font-size: 1.02rem;
  font-weight: 800;
}

.profile-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 10px;
  background: #1d1d22;
  color: #f2f2f4;
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 1rem;
}

.profile-readonly {
  position: relative;
}

.profile-readonly input {
  padding-right: 52px;
  color: rgba(255, 255, 255, 0.48);
}

.profile-copy-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
}

.profile-save-btn {
  width: min(100%, 420px);
  min-height: 42px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f16e39, #eb4e78);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(241, 110, 57, 0.18);
}

.eyebrow--static {
  margin-bottom: 18px;
}

.page-content--legal {
  padding: 22px 28px 40px;
}

.legal-panel {
  max-width: 1200px;
  padding: 8px 12px 32px;
}

.legal-panel__head {
  margin-bottom: 28px;
}

.legal-title {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.legal-meta {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.legal-card {
  display: grid;
  gap: 16px;
  padding: 26px 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(17, 18, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.legal-card h2 {
  margin: 14px 0 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.legal-card p,
.legal-card li {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
  font-size: 1rem;
}

.legal-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.legal-card a {
  color: #ffb14d;
}

.legal-company {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 980px) {
  .page-content--legal {
    padding: 18px 16px 30px;
  }

  .legal-card {
    padding: 20px;
  }
}

@media (max-width: 760px) {
  .logo {
    font-size: 1.9rem;
  }

  .auth-card {
    padding: 14px;
    border-radius: 20px;
  }

  .auth-card__head {
    margin-bottom: 10px;
  }

  .auth-card__head span,
  .auth-text {
    font-size: 0.76rem;
  }

  .social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .social-pill {
    min-height: 36px;
    font-size: 0.74rem;
  }

  .sidebar-nav {
    gap: 14px;
  }

  .sidebar-nav a,
  .sidebar-footer a {
    font-size: 0.92rem;
  }

  .quick-start {
    max-width: none;
    padding: 18px 16px;
    border-radius: 22px;
  }

  .quick-start h3 {
    font-size: 1rem;
  }

  .hero-banner,
  body[data-page="home"] .hero-banner {
    height: auto;
    min-height: 360px;
    padding: 24px 20px;
    margin-bottom: 20px;
    border-radius: 24px;
  }

  body[data-page="home"] .hero-overlay {
    width: 100%;
    max-width: 100%;
  }

  .eyebrow,
  body[data-page="home"] .eyebrow {
    max-width: 100%;
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .hero-banner h1,
  body[data-page="home"] .hero-banner h1,
  body[data-page="home"] .hero-banner[data-hero-variant="brand"] h1,
  body[data-page="home"] .hero-banner[data-hero-variant="music"] h1,
  body[data-page="home"] .hero-banner[data-hero-variant="image"] h1,
  body[data-page="home"] .hero-banner[data-hero-variant="video"] h1 {
    max-width: 100%;
    margin: 16px 0 12px;
    font-size: clamp(2.3rem, 10vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  .hero-text,
  body[data-page="home"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="brand"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="music"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="image"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="video"] .hero-text {
    max-width: 100%;
    margin: 0 0 14px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .primary-btn,
  .secondary-btn,
  body[data-page="home"] .primary-btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }

  body[data-page="home"] .hero-slides {
    right: 18px;
    bottom: 18px;
    gap: 8px;
  }

  body[data-page="home"] .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body[data-page="home"] .feature-card {
    min-height: 138px;
    padding: 20px;
    border-radius: 22px;
  }

  body[data-page="home"] .feature-card h2 {
    font-size: 2.4rem;
  }

  body[data-page="home"] .feature-visual {
    transform: scale(0.88);
    transform-origin: right center;
  }

  body[data-page="home"] .collections {
    gap: 18px;
  }

  body[data-page="home"] .collection-column h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .panel-head {
    gap: 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .tab-switch {
    width: 100%;
  }

  .tab-switch__item {
    flex: 1;
  }

  .custom-dropdown--compact {
    width: 100%;
  }

  .compact-title-wrap,
  .advanced-grid,
  .style-grid,
  .library-tools {
    gap: 12px;
  }

  .prompt-composer__body {
    min-height: 210px;
    padding: 16px 16px 0;
  }

  .prompt-composer__body textarea {
    min-height: 154px;
    padding-right: 46px;
  }

  .composer-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .composer-chip,
  .custom-dropdown__trigger--chip {
    width: 100%;
    justify-content: center;
  }

  .audio-upload-box {
    grid-template-columns: 1fr;
  }

  .source-track-card__head {
    grid-template-columns: 42px minmax(0, 1fr) 38px;
  }

  .source-track-card__waveform {
    min-height: 88px;
  }

  .results-toolbar--library {
    margin-bottom: 6px;
  }

  .results-title {
    font-size: 2rem;
  }

  .results-subtitle,
  .results-retention-note {
    font-size: 0.92rem;
  }

  .status-banner {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .library-tools {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .composition-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .composition-card__cover {
    --cover-indicator-size: 32px;
    width: 56px;
    height: 56px;
  }

  .composition-card__title-row {
    margin-bottom: 6px;
  }

  .composition-card__title {
    font-size: 0.98rem;
  }

  .composition-card__desc {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .composition-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .composition-card__action-pill {
    min-height: 32px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .composition-card__icon,
  .composition-card__menu,
  .composition-card__star,
  .composition-card__rename {
    width: 38px;
    height: 38px;
  }

  .player-dock {
    position: static;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .player-dock__track {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .player-dock__cover {
    width: 56px;
    height: 56px;
  }

  .player-dock__controls {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .player-dock__volume {
    justify-content: flex-start;
  }

  .composition-menu {
    min-width: min(300px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .profile-panel,
  .legal-panel {
    padding: 4px 0 24px;
  }

  .profile-title,
  .legal-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .profile-grid {
    gap: 22px;
  }

  .profile-avatar {
    width: 140px;
    height: 140px;
    font-size: 3rem;
  }

  .profile-form-card {
    max-width: 100%;
  }

  .profile-form {
    gap: 18px;
  }

  .profile-field input {
    min-height: 48px;
    padding: 0 16px;
  }

  .profile-save-btn {
    width: 100%;
  }

  .legal-card {
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
  }

  .legal-card p,
  .legal-card li {
    font-size: 0.96rem;
    line-height: 1.6;
  }
}

@media (max-width: 560px) {
  .logo {
    font-size: 1.7rem;
  }

  .auth-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .social-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .sidebar-nav a::before,
  .sidebar-footer a::before {
    margin-right: 6px;
  }

  body[data-page="home"] .hero-banner {
    min-height: 330px;
    padding: 20px 16px;
  }

  body[data-page="home"] .hero-slides {
    left: 16px;
    right: auto;
    bottom: 16px;
  }

  body[data-page="home"] .home-video-clips {
    margin: 14px 0 24px;
  }

  body[data-page="home"] .home-video-clips__head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
  }

  body[data-page="home"] .home-video-clips__controls {
    display: none;
  }

  body[data-page="home"] .home-video-clips__copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
    line-height: 1;
  }

  body[data-page="home"] .home-video-clips__copy p {
    margin-top: 6px;
    max-width: 300px;
    font-size: 0.86rem;
    line-height: 1.38;
  }

  body[data-page="home"] .home-video-clips__track {
    grid-auto-columns: minmax(0, 68vw);
    gap: 12px;
    padding: 2px 14px 8px 0;
  }

  body[data-page="home"] .video-clip-card__media {
    border-radius: 22px;
  }

  body[data-page="home"] .video-clip-card__play {
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
  }

  body[data-page="home"] .video-clip-card__play svg {
    width: 24px;
    height: 24px;
  }

  body[data-page="home"] .video-clip-card {
    gap: 9px;
  }

  body[data-page="home"] .video-clip-card__duration {
    top: 10px;
    left: 10px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  body[data-page="home"] .video-clip-card__body strong {
    font-size: 0.96rem;
  }

  body[data-page="home"] .video-clip-card__author {
    font-size: 0.82rem;
  }

  body[data-page="home"] .video-clip-card__author::before {
    width: 13px;
    height: 13px;
  }

  body[data-page="home"] .feature-card h2 {
    font-size: 2rem;
  }

  .results-title {
    font-size: 1.7rem;
  }

  .composer-toolbar {
    grid-template-columns: 1fr;
  }

  .style-grid {
    grid-template-columns: 1fr;
  }

  .library-pagination {
    gap: 10px;
  }

  .library-pagination__nav,
  .library-pagination__page {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .composition-card__meta {
    gap: 6px;
  }

  .chip-badge {
    font-size: 0.78rem;
  }

  .player-dock__meta strong {
    margin-bottom: 4px;
  }

  .player-dock__time {
    font-size: 0.92rem;
  }

  .profile-readonly input {
    padding-right: 46px;
  }

  .legal-company {
    padding: 14px 16px;
  }
}

body[data-page="home"] .price-pill {
  min-height: 34px;
  color: rgba(255, 255, 255, 0.84);
}

body[data-page="home"] .home-video-clips {
  margin: 22px 0 34px;
  min-width: 0;
  overflow: hidden;
}

body[data-page="home"] .home-video-clips__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

body[data-page="home"] .home-video-clips__copy h2 {
  margin: 0;
  font-size: clamp(2.75rem, 4vw, 3.9rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 900;
}

body[data-page="home"] .home-video-clips__copy p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.45;
}

body[data-page="home"] .home-video-clips__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-top: 4px;
}

body[data-page="home"] .home-video-clips__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.55rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

body[data-page="home"] .home-video-clips__nav:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
}

body[data-page="home"] .home-video-clips__nav:disabled {
  opacity: 0.42;
  cursor: default;
}

body[data-page="home"] .home-video-clips__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 278px;
  width: 100%;
  max-width: 100%;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}

body[data-page="home"] .home-video-clips__track::-webkit-scrollbar {
  display: none;
}

body[data-page="home"] .video-clip-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  scroll-snap-align: start;
}

body[data-page="home"] .video-clip-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5.85;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(255, 134, 36, 0.24), rgba(77, 101, 255, 0.18)),
    #14151b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  touch-action: pan-x;
}

body[data-page="home"] .video-clip-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(7, 9, 15, 0.28));
  pointer-events: none;
  transition: background 0.2s ease;
}

body[data-page="home"] .video-clip-card__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #101117;
  cursor: pointer;
  touch-action: pan-x;
}

body[data-page="home"] .video-clip-card__duration {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(14, 15, 21, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

body[data-page="home"] .video-clip-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #11141c;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body[data-page="home"] .video-clip-card__play:hover {
  transform: scale(1.04);
}

body[data-page="home"] .video-clip-card__play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .video-clip-card:not(.is-playing) .video-clip-card__play {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.88);
  }

  body[data-page="home"] .video-clip-card:not(.is-playing) .video-clip-card__media:hover .video-clip-card__play,
  body[data-page="home"] .video-clip-card:not(.is-playing) .video-clip-card__media:focus-within .video-clip-card__play {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  body[data-page="home"] .video-clip-card:not(.is-playing) .video-clip-card__media:hover::after,
  body[data-page="home"] .video-clip-card:not(.is-playing) .video-clip-card__media:focus-within::after {
    background: linear-gradient(180deg, rgba(7, 9, 15, 0.04), rgba(7, 9, 15, 0.34));
  }
}

body[data-page="home"] .video-clip-card.is-playing .video-clip-card__play {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
}

body[data-page="home"] .video-clip-card__body {
  display: grid;
  gap: 4px;
}

body[data-page="home"] .video-clip-card__body strong {
  min-width: 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="home"] .video-clip-card__author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  line-height: 1.2;
}

body[data-page="home"] .video-clip-card__author::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 100%),
    rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

body[data-page="home"] .collections {
  gap: 26px;
}

body[data-page="home"] .collection-column h3 {
  margin: 0 0 18px;
  font-size: 2rem;
  font-weight: 900;
}

body[data-page="home"] .track-card {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body[data-page="home"] .cover-art {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

body[data-page="home"] .track-info strong {
  font-size: 1.2rem;
}

body[data-page="home"] .track-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

body[data-page="home"] .badge {
  background: rgba(255, 140, 55, 0.14);
}

@media (max-width: 960px) {
  body[data-page="home"] .hero-banner {
    padding: 28px;
    height: 380px;
    min-height: 380px;
  }

  body[data-page="home"] .hero-media::before {
    background:
      linear-gradient(180deg, rgba(2, 4, 12, 0.9) 0%, rgba(2, 4, 12, 0.72) 38%, rgba(2, 4, 12, 0.6) 100%);
  }

  body[data-page="home"] .hero-slides {
    right: 22px;
    bottom: 20px;
  }

  body[data-page="home"] .home-video-clips__head {
    gap: 16px;
    margin-bottom: 16px;
  }

  body[data-page="home"] .home-video-clips__copy h2 {
    font-size: clamp(2.25rem, 6vw, 3.15rem);
  }

  body[data-page="home"] .home-video-clips__copy p {
    font-size: 0.95rem;
  }

  body[data-page="home"] .home-video-clips__track {
    grid-auto-columns: 252px;
  }
}

@media (max-width: 560px) {
  body[data-page="home"] .home-video-clips {
    margin: 14px 0 24px;
  }

  body[data-page="home"] .home-video-clips__head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
  }

  body[data-page="home"] .home-video-clips__controls {
    display: none;
  }

  body[data-page="home"] .home-video-clips__copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
    line-height: 1;
  }

  body[data-page="home"] .home-video-clips__copy p {
    margin-top: 6px;
    max-width: 300px;
    font-size: 0.86rem;
    line-height: 1.38;
  }

  body[data-page="home"] .home-video-clips__track {
    grid-auto-columns: 70vw;
    gap: 12px;
    padding: 2px 14px 8px 0;
  }

  body[data-page="home"] .video-clip-card {
    gap: 9px;
  }

  body[data-page="home"] .video-clip-card__media {
    border-radius: 22px;
  }

  body[data-page="home"] .video-clip-card__duration {
    top: 10px;
    left: 10px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  body[data-page="home"] .video-clip-card__play {
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
  }

  body[data-page="home"] .video-clip-card__play svg {
    width: 24px;
    height: 24px;
  }

  body[data-page="home"] .video-clip-card__body strong {
    font-size: 0.96rem;
  }

  body[data-page="home"] .video-clip-card__author {
    font-size: 0.82rem;
  }

  body[data-page="home"] .video-clip-card__author::before {
    width: 13px;
    height: 13px;
  }
}

.feature-card--link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.feature-card--link:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.feature-card--link:focus-visible {
  outline: 2px solid rgba(255, 153, 91, 0.9);
  outline-offset: 3px;
}

.feature-card--link .feature-visual {
  transition: transform 0.2s ease;
}

.feature-card--link:hover .feature-visual {
  transform: translateY(-4px) scale(1.05);
}

body[data-page="home"] .feature-card--link:hover {
  background:
    linear-gradient(120deg, rgba(117, 58, 255, 0.28), rgba(255, 83, 111, 0.22)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(255, 136, 0, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(70, 103, 255, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.04);
}

.video-coming-card {
  width: min(760px, 100%);
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 115, 84, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(112, 78, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(27, 28, 36, 0.98), rgba(16, 17, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.video-coming-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffb68d;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-coming-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.95;
}

.video-coming-card p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
  line-height: 1.65;
}

.video-coming-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.creation-panel--video,
.results-panel--video {
  min-height: calc(100vh - 36px);
}

.results-panel--video {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.panel-head--video {
  margin-bottom: 14px;
}

.video-model-trigger {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.video-model-trigger__icon,
.video-model-trigger__label {
  font-weight: 700;
}

.video-model-trigger__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.video-model-trigger__arrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.15rem;
}

.video-model-trigger--static {
  cursor: default;
}

.video-model-trigger--static .video-model-trigger__arrow {
  display: none;
}

.prompt-composer--video {
  margin-bottom: 16px;
}

body[data-page="video"] .prompt-composer--video .prompt-composer__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 238px;
  padding: 18px;
}

body[data-page="video"] .prompt-composer--video .prompt-composer__body textarea {
  flex: 1 1 auto;
  min-height: 172px;
  padding: 8px 2px 0 0;
  line-height: 1.42;
}

body[data-page="video"] .prompt-composer--video .prompt-footer--video {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

body[data-page="video"] .video-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body[data-page="video"] .video-prompt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 247, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

body[data-page="video"] .video-prompt-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1;
}

body[data-page="video"] .video-prompt-btn--accent {
  background: linear-gradient(135deg, rgba(255, 143, 84, 0.16), rgba(255, 109, 53, 0.08));
  border-color: rgba(255, 147, 92, 0.16);
}

body[data-page="video"] .video-prompt-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

body[data-page="video"] .video-prompt-btn--accent:hover {
  border-color: rgba(255, 163, 114, 0.28);
  background: linear-gradient(135deg, rgba(255, 150, 99, 0.22), rgba(255, 116, 69, 0.12));
}

body[data-page="video"] .video-prompt-btn:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

body[data-page="video"] .prompt-composer--video #video-prompt-counter {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 520px) {
  body[data-page="video"] .prompt-composer--video .prompt-composer__body {
    gap: 10px;
    padding: 16px 16px 14px;
  }

  body[data-page="video"] .prompt-composer--video .prompt-composer__body textarea {
    min-height: 168px;
  }

  body[data-page="video"] .prompt-composer--video .prompt-footer--video {
    align-items: flex-end;
    gap: 10px;
  }

  body[data-page="video"] .video-prompt-actions {
    gap: 6px;
  }

  body[data-page="video"] .video-prompt-btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.78rem;
  }
}

.video-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.video-reference-mode {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-bottom: 12px;
}

.video-reference-mode .tab-switch__item {
  min-height: 38px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.video-reference-grid--multi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-multimodal-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.video-multimodal-panel[hidden],
.video-reference-grid[hidden] {
  display: none !important;
}

.video-reference-list-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.video-reference-list-head,
.video-reference-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-reference-list-head strong {
  font-size: 0.92rem;
}

.video-reference-file-list {
  display: grid;
  gap: 8px;
}

.video-reference-file-empty {
  color: var(--text-dim);
  font-size: 0.84rem;
}

.video-reference-file {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.video-reference-file__name {
  min-width: 0;
  overflow: hidden;
  color: #f4f5fb;
  font-size: 0.86rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-reference-file__meta {
  color: var(--text-dim);
  font-size: 0.78rem;
  white-space: nowrap;
}

.video-reference-file__remove {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  cursor: pointer;
}

.animate-reference-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.animate-slot {
  min-height: 138px;
}

.video-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 124px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  color: #f0f1f5;
  cursor: pointer;
  overflow: hidden;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.video-slot:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.video-slot--disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.video-slot--disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.09);
}

.video-slot__icon {
  font-size: 1.55rem;
}

.video-slot__label {
  font-weight: 700;
  text-align: center;
}

.video-slot__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-slot__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 14, 22, 0.72);
  color: #fff;
  cursor: pointer;
}

.video-slot__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.7);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-toolbar-row {
  margin-bottom: 10px;
}

.video-toolbar-row--single {
  grid-template-columns: 1fr;
}

.photo-pill-select--wide {
  grid-column: 1 / -1;
}

.photo-pill-select[hidden],
.video-toolbar-row[hidden] {
  display: none !important;
}

.video-note {
  margin-bottom: 12px;
}

.results-toolbar--video {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.video-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
}

.video-showcase__media {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  min-height: 240px;
}

.video-showcase__media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.video-showcase__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-showcase__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.video-showcase__head h3 {
  margin: 0;
  font-size: 1.8rem;
}

.video-showcase__price,
.video-model-card__price {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8d35, #e8426a);
  color: #fff;
  font-weight: 800;
}

.video-showcase__description,
.video-showcase__prompt-block p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.video-showcase__tags,
.video-model-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-showcase__tag,
.video-model-card__tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #edf0ff;
  font-weight: 700;
  font-size: 0.92rem;
}

.video-showcase__prompt-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.video-showcase__prompt-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.video-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.video-tip-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.video-tip-card strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 1rem;
}

.video-tip-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

.video-model-modal-open {
  overflow: hidden;
}

.video-model-modal[hidden] {
  display: none !important;
}

.video-model-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
}

.video-model-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 12, 0.78);
  backdrop-filter: blur(12px);
}

.video-model-modal__card {
  position: relative;
  z-index: 1;
  width: min(1500px, calc(100vw - 40px));
  max-height: calc(100vh - 72px);
  margin: 36px auto;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(32, 32, 36, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
  overflow: auto;
}

.video-model-modal__head h2 {
  margin: 0 0 18px;
  font-size: 1.95rem;
}

.video-model-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.video-model-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-model-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.video-model-card--active {
  border-color: rgba(255, 117, 84, 0.55);
  box-shadow: 0 18px 42px rgba(255, 88, 112, 0.16);
}

.video-stage {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
}

.video-stage__player {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.video-stage__player video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #0b0d14;
}

.video-stage__empty {
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.video-stage__empty h3,
.video-history-panel__head h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.video-stage__empty p,
.video-library-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.video-stage__meta {
  display: grid;
  gap: 14px;
}

.video-stage__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-stage__chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #edf0ff;
  font-size: 0.92rem;
  font-weight: 700;
}

.video-stage__prompt {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.video-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-chip--link {
  text-decoration: none;
}

.video-history-panel {
  display: grid;
  gap: 16px;
}

.video-history-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.video-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.animate-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.animate-history-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-align: left;
}

.animate-history-card--active {
  border-color: rgba(255, 117, 84, 0.55);
  box-shadow: 0 18px 42px rgba(255, 88, 112, 0.12);
}

.animate-history-card__thumb {
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 108px;
  height: 82px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 141, 53, 0.24), rgba(232, 66, 106, 0.18));
}

.animate-history-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.animate-history-card__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.animate-history-card__body strong,
.animate-history-card__body span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.animate-history-card__body span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.video-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-align: left;
}

.video-history-card--active {
  border-color: rgba(255, 117, 84, 0.55);
  box-shadow: 0 18px 42px rgba(255, 88, 112, 0.12);
}

.video-history-card__select {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  width: 100%;
  color: inherit;
  text-align: left;
}

.video-history-card__thumb {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 141, 53, 0.24), rgba(232, 66, 106, 0.18));
}

.video-history-card__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-history-card__play,
.video-history-card__placeholder {
  font-size: 1.35rem;
  font-weight: 800;
}

.video-history-card__thumb-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(10, 11, 18, 0.72);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.video-history-card__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.video-history-card__body strong,
.video-history-card__body span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-history-card__body span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.video-history-card__download {
  align-self: end;
  min-width: 104px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.video-history-card__download--disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  min-width: 104px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.84rem;
  font-weight: 700;
  pointer-events: none;
}

.video-library-empty {
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.video-model-card__media {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.video-model-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-model-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.video-model-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.62;
}

.video-model-card__price {
  align-self: flex-start;
}

.video-model-card__select {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .video-model-modal__grid,
  .video-tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-showcase {
    grid-template-columns: 1fr;
  }

  .video-history-grid {
    grid-template-columns: 1fr;
  }

  .animate-history-grid {
    grid-template-columns: 1fr;
  }

  .video-history-card {
    grid-template-columns: 1fr;
  }

  .video-history-card__download,
  .video-history-card__download--disabled {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .video-reference-grid,
  .video-model-modal__grid,
  .video-tips-grid {
    grid-template-columns: 1fr;
  }

  .animate-reference-grid {
    grid-template-columns: 1fr;
  }

  .video-model-modal__card {
    width: 100vw;
    max-height: 100dvh;
    margin: 0;
    padding: calc(max(12px, env(safe-area-inset-top, 0px)) + 6px) 14px calc(max(16px, env(safe-area-inset-bottom, 0px)) + 18px);
    border-radius: 0;
    border: 0;
  }

  .video-model-modal__head h2 {
    margin-bottom: 12px;
    padding-right: 42px;
    font-size: 1.35rem;
  }

  .video-model-modal__close {
    top: calc(max(10px, env(safe-area-inset-top, 0px)) + 2px);
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 1.55rem;
  }

  .video-model-modal__grid {
    gap: 12px;
  }

  .video-model-card {
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
  }

  .video-model-card__media {
    border-radius: 16px;
  }

  .video-model-card__media img {
    aspect-ratio: 16 / 8.6;
  }

  .video-model-card h3 {
    font-size: 0.96rem;
    line-height: 1.25;
  }

  .video-model-card p {
    font-size: 0.92rem;
    line-height: 1.48;
  }

  .video-model-card__tags {
    gap: 8px;
  }

  .video-model-card__tag {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .video-model-card__price {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .video-model-card__select {
    min-height: 40px;
    font-size: 0.95rem;
  }

  .video-showcase__head h3 {
    font-size: 1.45rem;
  }
}

.mobile-topbar,
.mobile-menu-backdrop,
.mobile-account-modal {
  display: none;
}

.mobile-account-modal[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  body {
    background: #101013;
  }

  body::before {
    display: none;
  }

  .mobile-topbar {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: max(14px, env(safe-area-inset-top, 0px)) 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(14, 14, 18, 0.96);
    position: sticky;
    top: 0;
    z-index: 120;
    backdrop-filter: blur(14px);
  }

  .mobile-menu-toggle {
    display: grid;
    gap: 5px;
    align-content: center;
    width: 42px;
    height: 42px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #fff;
  }

  .mobile-topbar__logo {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(1.7rem, 7vw, 2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    background: linear-gradient(90deg, #7a5cff, #f04d72, #ff9c35);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .mobile-topbar__account {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
  }

  .mobile-account-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: min(44vw, 172px);
    min-height: 42px;
    padding: 0 8px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #ff9f43;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-account-pill--auth {
    color: #fff;
  }

  .mobile-account-pill__label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.98rem;
  }

  .mobile-account-pill__avatar,
  .mobile-account-pill__avatar img,
  .mobile-account-pill__avatar span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }

  .mobile-account-pill__avatar {
    overflow: hidden;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
  }

  @media (max-width: 430px) {
    .mobile-topbar {
      grid-template-columns: 40px minmax(0, 1fr) auto;
      gap: 10px;
      padding: max(12px, env(safe-area-inset-top, 0px)) 14px 12px;
    }

    .mobile-menu-toggle {
      width: 40px;
      height: 40px;
    }

    .mobile-topbar__logo {
      font-size: clamp(1.55rem, 6.8vw, 1.85rem);
    }

    .mobile-account-pill {
      gap: 8px;
      max-width: min(42vw, 156px);
      min-height: 40px;
      padding: 0 7px 0 12px;
    }

    .mobile-account-pill__label {
      font-size: 0.92rem;
    }

    .mobile-account-pill__avatar,
    .mobile-account-pill__avatar img,
    .mobile-account-pill__avatar span {
      width: 30px;
      height: 30px;
    }
  }

  .page-content,
  .page-content--split,
  .page-content--photo,
  .page-content--profile,
  .page-content--payments,
  .page-content--video,
  .page-content--legal {
    padding: 14px 16px 24px;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 130;
    width: min(320px, calc(100vw - 10px));
    height: 100dvh;
    padding: max(18px, env(safe-area-inset-top, 0px)) 16px 20px;
    background: #111116;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
    transform: translateX(-110%);
    transition: transform 180ms ease;
    overflow-y: auto;
  }

  .app-shell.is-mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 125;
    border: 0;
    background: rgba(0, 0, 0, 0.52);
  }

  .mobile-menu-open .mobile-menu-backdrop {
    display: block;
  }

  .mobile-account-modal {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 240;
  }

  .mobile-account-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 14, 0.7);
    backdrop-filter: blur(10px);
  }

  .mobile-account-modal__sheet {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    padding: 78px 16px 24px;
    background: #1f1f23;
  }

  .mobile-account-modal__close {
    position: absolute;
    top: calc(max(16px, env(safe-area-inset-top, 0px)) + 4px);
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.3rem;
  }

  .account-menu--mobile {
    position: static;
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .account-menu--mobile .account-menu__balance {
    padding: 18px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
      rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  }

  .account-menu--mobile .account-menu__balance-row {
    margin-bottom: 16px;
    font-size: 1rem;
  }

  .account-menu--mobile .account-menu__topup {
    min-height: 58px;
  }

  .account-menu--mobile .account-menu__id {
    margin: 18px 6px 14px;
    font-size: 0.95rem;
  }

  .account-menu--mobile .account-menu__divider {
    margin: 14px 0;
  }

  .account-menu--mobile .account-menu__item {
    min-height: 54px;
    padding: 0 6px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
  }

  .account-menu--mobile .account-menu__icon {
    width: 28px;
    font-size: 1.1rem;
  }

  .sidebar .logo {
    margin-bottom: 8px;
    font-size: 2rem;
  }

  .account-dock {
    display: none;
  }

  .sidebar-nav {
    gap: 12px;
  }

  .sidebar-nav a,
  .sidebar-footer a {
    min-height: 44px;
    font-size: 1rem;
  }

  .sidebar-footer a.sidebar-social-button,
  .sidebar-footer a.sidebar-support-link {
    gap: 7px;
    padding: 0 10px;
  }

  .sidebar-footer a.sidebar-social-button {
    font-size: 0.82rem;
  }

  .sidebar-social-button__label {
    text-overflow: clip;
    letter-spacing: -0.02em;
  }

  .creation-panel,
  .results-panel,
  .creation-panel--photo,
  .results-panel--photo,
  .creation-panel--video,
  .results-panel--video,
  .blank-stage {
    min-height: 0;
    padding-right: 0;
  }

  .creation-panel {
    gap: 14px;
  }

  .results-panel,
  .results-panel--photo,
  .results-panel--video {
    gap: 14px;
    margin-top: 8px;
  }

  .hero-banner,
  body[data-page="home"] .hero-banner {
    min-height: 320px;
    padding: 22px 18px;
    margin-bottom: 14px;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(12, 12, 16, 0.88), rgba(12, 12, 16, 0.72)),
      linear-gradient(135deg, rgba(122, 92, 255, 0.14), rgba(255, 108, 79, 0.16));
  }

  .feature-grid {
    gap: 12px;
  }

  body[data-page="home"] .feature-card,
  .feature-card {
    min-height: 132px;
    padding: 18px;
    border-radius: 26px;
    background: #1b1b20;
  }

  .feature-card h2,
  body[data-page="home"] .feature-card h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
  }

  .panel-head,
  .panel-head--photo,
  .panel-head--video {
    gap: 10px;
    margin-bottom: 0;
  }

  .tab-switch,
  .photo-field,
  .video-model-trigger,
  .custom-dropdown__trigger,
  .photo-pill-select,
  .toggle-card {
    border-color: rgba(255, 255, 255, 0.12);
    background: #121216;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  }

  .tab-switch {
    padding: 3px;
    border-radius: 999px;
  }

  .tab-switch__item {
    min-height: 40px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.68);
  }

  .tab-switch__item--active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .custom-dropdown__trigger,
  .photo-field,
  .video-model-trigger {
    min-height: 54px;
    border-radius: 999px;
  }

  .prompt-composer,
  .prompt-box {
    border-radius: 28px;
    background: #1c1c20;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  .prompt-composer__body {
    min-height: 176px;
    padding: 16px 16px 0;
  }

  .prompt-composer__body textarea {
    min-height: 122px;
    padding-right: 52px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.42;
  }

  .prompt-composer__body textarea::placeholder {
    color: rgba(255, 255, 255, 0.26);
  }

  .prompt-tools {
    right: 12px;
    top: 14px;
    gap: 10px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
  }

  .photo-reference-grid,
  .video-reference-grid {
    gap: 14px;
  }

  .photo-slot,
  .video-slot {
    min-height: 144px;
    border-radius: 28px;
    background: #1d1d22;
  }

  .photo-slot--filled,
  .video-slot--filled,
  .animate-slot.photo-slot--filled {
    min-height: 168px;
    padding: 0;
  }

  .photo-slot__preview,
  .video-slot__preview {
    display: block;
  }

  .photo-slot__caption,
  .video-slot__caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .photo-slot__remove,
  .video-slot__remove {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }

  .photo-slot__label,
  .video-slot__label {
    font-size: 1rem;
  }

  .photo-slot__plus,
  .video-slot__icon {
    font-size: 1.7rem;
  }

  .photo-toolbar-row,
  .video-toolbar-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
  }

  .video-toolbar-row--single,
  .photo-pill-select--wide {
    grid-template-columns: 1fr;
  }

  .photo-pill-select {
    min-height: 52px;
    padding: 0 14px;
  }

  .photo-native-select--pill,
  .photo-native-select {
    font-size: 0.98rem;
  }

  .primary-btn {
    min-height: 60px;
    font-size: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #f07033, #f84f78);
    box-shadow: none;
  }

  .secondary-btn {
    min-height: 56px;
    border-radius: 999px;
    background: #3a3a40;
  }

  .status-banner,
  .form-help {
    margin-bottom: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
  }

  .results-toolbar--library,
  .results-toolbar--photo,
  .results-toolbar--video {
    margin-bottom: 0;
  }

  .results-title {
    font-size: 1.32rem;
  }

  .results-subtitle {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .photo-stage,
  .video-stage {
    min-height: 0;
    padding: 16px;
    border-radius: 28px;
    background: #17181c;
  }

  .photo-stage__empty,
  .video-stage__empty,
  .library-empty,
  .video-library-empty {
    padding: 0;
    background: transparent;
  }

  .photo-history-panel,
  .video-history-panel,
  .lyrics-drawer,
  .composition-card,
  .task-card,
  .track-row,
  .library-search {
    border-radius: 22px;
  }

  .library-tools {
    gap: 10px;
  }

  .favorite-filter,
  .library-clear,
  .player-btn,
  .player-close,
  .composition-card__icon,
  .composition-card__menu,
  .composition-card__star,
  .composition-card__rename {
    background: rgba(255, 255, 255, 0.08);
  }

  .page-content--profile {
    padding-top: 10px;
  }

  .profile-panel {
    padding: 0 0 18px;
  }

  .profile-title {
    margin: 0 0 18px;
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.02;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-avatar-card {
    gap: 14px;
    justify-items: center;
  }

  .profile-avatar {
    width: 108px;
    height: 108px;
    border-width: 4px;
    font-size: 2.2rem;
  }

  .profile-avatar__button {
    min-height: 32px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .profile-form-card {
    gap: 12px;
    max-width: 100%;
  }

  .profile-status {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.92rem;
  }

  .profile-form {
    gap: 14px;
  }

  .profile-field {
    gap: 8px;
  }

  .profile-field > span {
    font-size: 0.92rem;
  }

  .profile-field input {
    min-height: 46px;
    padding: 0 14px;
    font-size: 0.96rem;
  }

  .profile-readonly input {
    padding-right: 42px;
  }

  .profile-copy-btn {
    right: 14px;
    font-size: 0.95rem;
  }

  .profile-save-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    font-size: 0.96rem;
  }
}

@media (max-width: 900px) {
  body[data-page="music"] .panel-head--music {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  body[data-page="music"] .panel-head--music .tab-switch {
    flex: 1 1 auto;
    width: auto;
  }

  body[data-page="music"] .panel-head--music .custom-dropdown--compact {
    flex: 0 0 auto;
    width: auto;
    min-width: 138px;
  }

  body[data-page="music"] .style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page="music"] .panel-head--music {
    gap: 10px;
  }

  body[data-page="music"] .panel-head--music .custom-dropdown__trigger {
    min-height: 44px;
    padding: 0 34px 0 14px;
    border-radius: 999px;
    font-size: 0.94rem;
  }

  body[data-page="music"] .panel-head--music .tab-switch {
    padding: 3px;
  }

  body[data-page="music"] .panel-head--music .tab-switch__item {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.95rem;
  }

  body[data-page="music"] .prompt-composer--music .prompt-composer__body {
    min-height: 212px;
    padding: 16px 16px 0;
  }

  body[data-page="music"] .prompt-composer--music .prompt-composer__body textarea {
    min-height: 156px;
    padding-right: 56px;
    font-size: 0.98rem;
  }

  body[data-page="music"] .composer-toolbar--music {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0 12px 14px;
  }

  body[data-page="music"] .composer-chip--music {
    min-height: 40px;
    padding: 0 8px;
    gap: 8px;
    font-size: 0.84rem;
  }

  body[data-page="music"] .composer-chip--music::before,
  body[data-page="music"] .secondary-btn--music::before,
  body[data-page="music"] .primary-btn--music::before {
    width: 18px;
    height: 18px;
    font-size: 0.68rem;
    flex-basis: 18px;
  }

  body[data-page="music"] .music-voice-switch__item {
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.84rem;
  }

  body[data-page="music"] .custom-dropdown--music .custom-dropdown__trigger--music {
    min-height: 50px;
    padding: 0 40px 0 16px;
    border-radius: 18px;
    font-size: 0.96rem;
  }

  body[data-page="music"] .style-composer--music .style-composer__body {
    min-height: 150px;
    padding: 16px 16px 0;
  }

  body[data-page="music"] .style-composer--music .style-composer__body textarea {
    min-height: 102px;
    padding-right: 56px;
  }

  body[data-page="music"] .music-tuning-grid {
    gap: 8px;
    padding: 0 16px 12px;
  }

  body[data-page="music"] .music-tuning {
    grid-template-columns: 1fr 136px;
    gap: 10px;
  }

  body[data-page="music"] .music-tuning__label {
    font-size: 0.88rem;
  }

  body[data-page="music"] .style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 12px 14px;
  }

  body[data-page="music"] .secondary-btn--music {
    min-height: 54px;
    border-radius: 22px;
    gap: 9px;
    font-size: 0.98rem;
  }

  body[data-page="music"] .primary-btn--music {
    min-height: 56px;
    border-radius: 22px;
    gap: 9px;
    font-size: 1rem;
  }
}

