:root {
  --bg: #101311;
  --bg-soft: #171a17;
  --panel: rgba(25, 28, 25, 0.86);
  --panel-solid: #191d1a;
  --panel-strong: #222821;
  --line: rgba(236, 232, 220, 0.12);
  --line-strong: rgba(236, 232, 220, 0.2);
  --text: #f2efe7;
  --muted: #aaa89c;
  --faint: #71766d;
  --accent: #bf6d52;
  --accent-2: #8fba62;
  --green: #7fbf84;
  --blue: #78a9bb;
  --danger: #d97964;
  --control: rgba(242, 239, 231, 0.08);
  --control-strong: rgba(242, 239, 231, 0.14);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 28px 80px rgba(5, 7, 6, 0.34);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f6f1;
  --bg-soft: #ecefe8;
  --panel: rgba(255, 255, 251, 0.9);
  --panel-solid: #fffffb;
  --panel-strong: #eef1eb;
  --line: rgba(30, 48, 38, 0.12);
  --line-strong: rgba(30, 48, 38, 0.2);
  --text: #17201b;
  --muted: #657066;
  --faint: #8c958c;
  --accent: #b8644b;
  --accent-2: #4f7d55;
  --green: #477f56;
  --blue: #4f8190;
  --danger: #b85f4f;
  --control: rgba(23, 32, 27, 0.055);
  --control-strong: rgba(23, 32, 27, 0.095);
  --shadow: 0 26px 70px rgba(41, 52, 42, 0.13);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(143, 186, 98, 0.1), transparent 34%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 42%, #0c0f0d 100%);
  font-family:
    ui-sans-serif,
    "Avenir Next",
    "Satoshi",
    "Geist",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
  contain: paint;
}

.site-background-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

.site-background-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

body.customer-page {
  --composer-width: 100%;
  --composer-panel-alpha: 91%;
  --composer-control-alpha: 94%;
  --scene-left-shade: rgba(4, 8, 6, 0.1);
  --scene-center-shade: rgba(4, 8, 6, 0.01);
  --scene-right-shade: rgba(4, 8, 6, 0.1);
  --scene-bottom-shade: rgba(4, 8, 6, 0.18);
  background: var(--bg);
}

body.customer-page[data-bg-preset="fresh"] {
  --composer-panel-alpha: 92%;
  --composer-control-alpha: 94%;
  --scene-left-shade: rgba(249, 252, 242, 0.04);
  --scene-center-shade: rgba(249, 252, 242, 0.01);
  --scene-right-shade: rgba(6, 10, 7, 0.08);
  --scene-bottom-shade: rgba(6, 10, 7, 0.22);
}

body.customer-page[data-bg-preset="warm"] {
  --composer-panel-alpha: 94%;
  --composer-control-alpha: 96%;
  --scene-left-shade: rgba(65, 40, 14, 0.12);
  --scene-center-shade: rgba(255, 221, 145, 0.05);
  --scene-right-shade: rgba(34, 45, 18, 0.08);
  --scene-bottom-shade: rgba(65, 40, 14, 0.24);
}

body.customer-page[data-bg-preset="deep"] {
  --composer-panel-alpha: 96%;
  --composer-control-alpha: 97%;
  --scene-left-shade: rgba(4, 8, 6, 0.34);
  --scene-center-shade: rgba(4, 8, 6, 0.08);
  --scene-right-shade: rgba(4, 8, 6, 0.16);
  --scene-bottom-shade: rgba(4, 8, 6, 0.46);
}

body.customer-page[data-form-reveal="scenic"] {
  --composer-width: 100%;
}

body.customer-page[data-form-reveal="balanced"] {
  --composer-width: 1120px;
}

body.customer-page[data-form-reveal="wide"] {
  --composer-width: 100%;
}

body.customer-page::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, var(--scene-left-shade), var(--scene-center-shade) 48%, var(--scene-right-shade)),
    linear-gradient(180deg, rgba(6, 8, 7, 0.03), var(--scene-bottom-shade));
  pointer-events: none;
}

body:not(.customer-page)::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 80%);
}

:root[data-theme="light"] body {
  background:
    linear-gradient(135deg, rgba(79, 125, 85, 0.1), transparent 34%),
    linear-gradient(180deg, #fbfcf7 0%, var(--bg) 56%, #e9ede5 100%);
}

:root[data-theme="light"] body.customer-page {
  background: var(--bg);
}

:root[data-theme="light"] body.customer-page::before {
  background:
    linear-gradient(90deg, var(--scene-left-shade), var(--scene-center-shade) 48%, var(--scene-right-shade)),
    linear-gradient(180deg, rgba(6, 8, 7, 0.02), var(--scene-bottom-shade));
}

:root[data-theme="light"] body:not(.customer-page)::before {
  background-image:
    linear-gradient(rgba(28, 46, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 46, 36, 0.03) 1px, transparent 1px);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(1500px, calc(100vw - 36px));
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 0 120px;
}

.top-nav {
  position: sticky;
  top: 14px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-solid) 78%, transparent);
  box-shadow: 0 16px 48px rgba(5, 7, 6, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
  padding: 8px 10px 8px 16px;
}

.brand-mark,
.nav-links,
.account-strip,
.mode-row,
.title-row,
.create-actions,
.button-row,
.library-header,
.history-item-header {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #f7f5ef;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  object-fit: cover;
}

.nav-links {
  justify-content: center;
  gap: 4px;
}

.nav-links a,
.nav-tab {
  border-radius: 10px;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-tab:hover,
.nav-tab.active {
  background: var(--control);
  color: var(--text);
}

.account-strip {
  justify-content: end;
  gap: 8px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--control);
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.language-toggle {
  font-size: 11px;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--control-strong);
}

.account-button {
  display: inline-grid;
  grid-template-columns: 38px auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--control);
  color: var(--text);
  padding: 4px 12px 4px 5px;
  text-align: left;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.account-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent-2) 42%, var(--line));
  background: var(--control-strong);
}

.account-button-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-button-copy strong,
.account-button-copy small {
  overflow: hidden;
  max-width: 128px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-button-copy strong {
  font-size: 13px;
}

.account-button-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.account-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244, 176, 95, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.38), transparent 0.58rem),
    linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #111611;
  font-weight: 950;
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.account-avatar.large {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

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

.account-avatar[data-avatar-kind="image"] {
  border-color: var(--line-strong);
  background: var(--panel-solid);
  color: transparent;
  padding: 0;
}

.account-avatar[data-avatar-palette="cute-1"] {
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.46), transparent 0.56rem),
    linear-gradient(135deg, #b9d67d, #f0aa72);
}

.account-avatar[data-avatar-palette="cute-2"] {
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.44), transparent 0.56rem),
    linear-gradient(135deg, #9fd1c7, #e7b2a2);
}

.account-avatar[data-avatar-palette="cute-3"] {
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.44), transparent 0.56rem),
    linear-gradient(135deg, #d9c784, #8db88d);
}

.account-avatar[data-avatar-palette="cute-4"] {
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.44), transparent 0.56rem),
    linear-gradient(135deg, #92bad0, #e3b96f);
}

.account-avatar[data-avatar-palette="cute-5"] {
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.44), transparent 0.56rem),
    linear-gradient(135deg, #e7a486, #a8c486);
}

.account-avatar[data-avatar-palette="cute-6"] {
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.44), transparent 0.56rem),
    linear-gradient(135deg, #b7c1e1, #e9bc82);
}

.admin-nav {
  min-height: 58px;
  border-radius: 18px;
  background: rgba(13, 15, 18, 0.84);
  padding: 8px 10px 8px 14px;
}

.admin-nav .brand-mark {
  font-size: 15px;
}

.admin-tabs {
  display: flex;
  align-items: center;
  justify-self: center;
  min-width: 0;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}

.admin-tab-button {
  position: relative;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, transform 150ms ease;
}

.admin-tab-button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.admin-tab-button.active {
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
}

.admin-tab-button.active::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-2);
  content: "";
}

.admin-tab-button:active {
  transform: translateY(1px) scale(0.99);
}

.status-pill,
.user-chip,
.credit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.ready {
  border-color: rgba(101, 200, 145, 0.36);
  color: var(--green);
}

.status-pill.warning {
  border-color: rgba(255, 122, 102, 0.36);
  color: var(--danger);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
  padding-top: 54px;
}

.customer-grid {
  display: grid;
  grid-template-columns: minmax(0, min(var(--composer-width), 100%));
  justify-content: center;
  align-items: start;
  gap: 0;
  padding-top: 22px;
}

.customer-view[hidden] {
  display: none;
}

.customer-view {
  animation: viewIn 180ms ease both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 22px;
  align-items: start;
  padding-top: 42px;
}

.account-drawer[hidden] {
  display: none;
}

.account-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: start;
  justify-items: end;
  padding: 88px 28px 28px;
  pointer-events: none;
}

.account-drawer[data-panel="auth"] {
  place-items: center;
  padding: 28px;
}

.account-drawer-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(12, 15, 13, 0.2);
  pointer-events: auto;
}

.account-drawer-panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 22%),
    var(--panel-solid);
  box-shadow: 0 34px 90px rgba(5, 7, 6, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 18px;
  pointer-events: auto;
}

.account-drawer[data-panel="auth"] .account-wallet-panel,
.account-drawer[data-panel="wallet"] .auth-modal-panel {
  display: none;
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 36px));
  max-height: calc(100dvh - 42px);
  overflow: hidden auto;
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--panel-solid);
  box-shadow: 0 38px 100px rgba(5, 7, 6, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: auto;
}

.auth-showcase {
  min-height: 500px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(247, 245, 237, 0.76), rgba(247, 245, 237, 0.3)),
    url("/assets/willow-branch-poster.jpg?v=20260609-clear") center / cover no-repeat,
    linear-gradient(90deg, rgba(247, 245, 237, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(145deg, rgba(143, 186, 98, 0.2), transparent 46%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 84%, transparent), var(--bg));
  padding: 32px;
}

.auth-brand-lockup {
  display: grid;
  align-content: start;
  gap: 12px;
}

.auth-showcase img {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #f7f7f0;
  object-fit: cover;
  padding: 6px;
}

.auth-showcase h2 {
  max-width: 13em;
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.auth-workspace {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
}

.auth-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--control);
  padding: 5px;
}

.auth-tab {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.active {
  background: var(--text);
  color: var(--bg);
}

.auth-tab:active {
  transform: scale(0.98);
}

.auth-tab-panel {
  display: grid;
  gap: 14px;
  min-height: 260px;
  animation: viewIn 170ms ease both;
}

.auth-tab-panel[hidden] {
  display: none;
}

.password-auth-card {
  display: grid;
  gap: 14px;
}

[data-auth-register-field][hidden] {
  display: none;
}

.auth-switch-line {
  margin: -2px 0 0;
}

.wechat-stage {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--control);
  padding: 14px;
}

.wechat-stage.is-disabled {
  opacity: 0.72;
}

.wechat-qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--text) 14%, transparent) 10px, transparent 10px) 0 0 / 24px 24px,
    linear-gradient(color-mix(in srgb, var(--text) 14%, transparent) 10px, transparent 10px) 0 0 / 24px 24px,
    var(--panel-solid);
  overflow: hidden;
}

.wechat-qr-frame span {
  position: absolute;
  inset: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-solid) 78%, transparent);
}

.wechat-qr-frame img {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #f7f7f0;
  object-fit: cover;
  padding: 4px;
}

.account-drawer-head,
.account-profile {
  display: flex;
  align-items: center;
}

.account-drawer-head {
  justify-content: space-between;
  gap: 12px;
}

.account-profile {
  min-width: 0;
  gap: 12px;
}

.account-profile h2 {
  overflow: hidden;
  max-width: 220px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.account-mini-stats div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--control);
  padding: 12px;
}

.account-mini-stats strong {
  font-size: 20px;
}

.account-mini-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.wallet-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.wallet-action-row #logoutButton {
  grid-column: 1 / -1;
}

.account-menu-list {
  margin-top: 4px;
}

.account-menu-button {
  min-height: 54px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.account-menu-button:hover {
  border-color: var(--line);
  background: var(--control);
}

.account-menu-button:active {
  transform: scale(0.99);
}

.account-menu-button.muted {
  color: var(--muted);
}

.account-menu-button strong {
  font-size: 15px;
  font-weight: 900;
}

.account-menu-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
}

.account-menu-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-menu-button:hover .account-menu-icon {
  color: var(--accent-2);
}

.account-subdialog[hidden] {
  display: none;
}

.account-subdialog {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: grid;
  place-items: center;
  background: rgba(12, 15, 13, 0.52);
  padding: 20px;
}

.account-subdialog-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  display: grid;
  gap: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--panel-solid);
  box-shadow: 0 32px 90px rgba(5, 7, 6, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 24px;
}

.account-subdialog-card.wide,
.account-subdialog-card.ledger-card {
  width: min(760px, 100%);
}

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

.settings-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--control);
  padding: 14px;
}

.settings-form .secondary-button {
  justify-self: end;
  min-width: 120px;
}

.settings-bind-list > div,
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--control);
  padding: 14px;
}

.settings-bind-list span,
.ledger-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

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

.purchase-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 34%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(244, 176, 95, 0.16), rgba(119, 154, 85, 0.1)),
    var(--control);
  padding: 16px;
}

.purchase-hero div {
  display: grid;
  gap: 4px;
}

.purchase-hero span,
.purchase-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.purchase-hero strong {
  font-size: 26px;
  line-height: 1;
}

.ledger-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ledger-category-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control);
  color: var(--muted);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 950;
}

.ledger-category-tabs button.active {
  background: var(--text);
  color: var(--bg);
}

.ledger-table {
  display: grid;
  gap: 8px;
}

.ledger-row strong.positive {
  color: var(--accent-2);
}

.ledger-row strong.negative {
  color: #a44b3f;
}

.history-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.support-card {
  width: min(420px, 100%);
  justify-items: center;
  text-align: center;
}

.support-card img {
  width: min(320px, 100%);
  max-height: 320px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  object-fit: contain;
  padding: 10px;
}

.seo-content {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
  padding: 22px;
}

.seo-content[hidden] {
  display: none;
}

.seo-content h2,
.seo-content h3,
.seo-content p {
  margin: 0;
}

.seo-content h2 {
  margin-top: 4px;
  font-size: clamp(22px, 2vw, 30px);
}

.seo-content p {
  max-width: 70ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.seo-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.seo-content-grid article {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.seo-content-grid h3 {
  font-size: 16px;
}

.dialog-close-float {
  justify-self: end;
}

.standalone-section {
  min-height: calc(100dvh - 150px);
}

.quick-account-panel,
.flow-panel {
  display: grid;
  gap: 12px;
}

.create-stage {
  min-height: calc(100dvh - 188px);
  display: grid;
  align-content: start;
  gap: 0;
  grid-column: 1;
}

.stage-copy {
  width: min(760px, 100%);
}

.compact-stage {
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  max-width: 780px;
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 span {
  display: inline;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.stage-subcopy {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.composer-card,
.now-card,
.account-panel,
.library-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 18%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
}

.composer-card {
  display: grid;
  align-content: start;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 18%),
    color-mix(in srgb, var(--panel-solid) var(--composer-panel-alpha), transparent);
  padding: 16px;
}

.mode-row {
  gap: 8px;
  justify-content: space-between;
}

.mode-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--control);
  color: var(--muted);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  transition: transform 170ms ease, background 170ms ease, color 170ms ease;
}

.mode-pill.active {
  background: var(--text);
  color: var(--bg);
}

.mode-pill:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

form {
  display: grid;
  gap: 15px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--control) var(--composer-control-alpha), transparent);
  color: var(--text);
  outline: none;
  padding: 13px 14px;
  line-height: 1.5;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

select {
  appearance: none;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 62%, transparent);
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--accent-2) 54%, var(--line));
  background: color-mix(in srgb, var(--control-strong) 70%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 13%, transparent);
}

.title-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 110px 140px 150px 110px;
  gap: 12px;
}

.audio-error-hint {
  color: #b84834;
  font-weight: 850;
}

.lyrics-section {
  display: grid;
  gap: 12px;
}

.lyrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lyrics-head label {
  display: block;
}

.lyrics-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lyrics-mode-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.lyrics-mode-control {
  width: min(260px, 100%);
}

.lyrics-assist-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.lyrics-box {
  min-height: 320px;
  font-size: 15px;
  line-height: 1.78;
}

.prompt-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 12px;
}

.voice-style-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 46%),
    color-mix(in srgb, var(--control) var(--composer-control-alpha), transparent);
  padding: 14px;
}

.voice-preset-select {
  display: none;
}

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

.voice-preset-card {
  min-height: 88px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--control) var(--composer-control-alpha), transparent);
  color: var(--text);
  padding: 10px;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.voice-preset-card:hover {
  transform: translateY(-1px);
  background: var(--control-strong);
}

.voice-preset-card.active {
  border-color: color-mix(in srgb, var(--accent-2) 62%, var(--line));
  background: color-mix(in srgb, var(--accent-2) 12%, var(--control));
}

.voice-preset-card strong,
.voice-preset-card small {
  display: block;
}

.voice-preset-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.voice-preset-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.voice-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.36), transparent 0.55rem),
    linear-gradient(135deg, #e45643, #f4b05f);
  color: #111419;
  font-size: 15px;
  font-weight: 950;
  box-shadow: inset 0 -8px 20px rgba(0, 0, 0, 0.22);
}

.avatar-clear_female {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.38), transparent 0.55rem),
    linear-gradient(135deg, #7aa7e8, #65c891);
}

.avatar-rock_husky {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.32), transparent 0.55rem),
    linear-gradient(135deg, #ff7a66, #353a44);
  color: var(--text);
}

.avatar-rnb_male {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34), transparent 0.55rem),
    linear-gradient(135deg, #7aa7e8, #f4b05f);
}

.avatar-folk_warm {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34), transparent 0.55rem),
    linear-gradient(135deg, #65c891, #f4b05f);
}

.avatar-guofeng_female {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34), transparent 0.55rem),
    linear-gradient(135deg, #f4b05f, #e45643);
}

.phone-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.recharge-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

.create-actions {
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 42px;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 950;
  transition: transform 150ms ease, opacity 150ms ease, background 150ms ease, border-color 150ms ease;
}

.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--text) 14%, transparent);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--control-strong);
  color: var(--text);
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--control);
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.mode-pill:active {
  transform: translateY(1px) scale(0.99);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.primary-button[data-busy="true"],
.secondary-button[data-busy="true"] {
  cursor: wait;
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.full {
  width: 100%;
}

.hint,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.hint {
  max-width: 46ch;
  margin: 0;
  font-size: 12px;
}

.side-stack {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 14px;
}

.now-card,
.account-panel,
.library-section {
  padding: 18px;
}

.section-heading,
.library-header {
  margin-bottom: 16px;
}

.compact-heading {
  margin-bottom: 12px;
}

.library-header {
  justify-content: space-between;
  gap: 14px;
}

.now-playing {
  display: grid;
  gap: 14px;
  align-items: start;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 58%),
    var(--control);
  padding: 14px;
}

.now-playing.is-empty {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
}

.now-playing.has-generation {
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1fr);
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
}

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

.player-empty {
  align-self: center;
}

.record-mark {
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #f4f1e9 0 5px, #0f1114 6px 10px, transparent 11px),
    repeating-radial-gradient(circle at center, #242933 0 2px, #15181e 3px 5px);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.035), 0 18px 34px rgba(0, 0, 0, 0.32);
}

.record-mark.idle {
  opacity: 0.86;
}

.now-playing.is-playing .record-mark {
  animation: recordSpin 9s linear infinite;
}

@keyframes recordSpin {
  to {
    transform: rotate(360deg);
  }
}

audio {
  width: 100%;
  margin-top: 12px;
  filter: invert(0.9) hue-rotate(180deg);
}

.player-controls audio {
  margin-top: 0;
}

.now-playing.has-generation .player-main {
  grid-column: 1;
}

.now-playing.has-generation .player-controls {
  grid-column: 1;
  align-self: end;
}

.player-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.player-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.player-lyrics {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 13px;
  line-height: 1.85;
}

.player-lyrics p {
  margin: 0;
  border-radius: 8px;
  padding: 3px 8px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.player-lyrics p.active {
  background: color-mix(in srgb, var(--accent-2) 18%, transparent);
  color: var(--text);
  transform: translateX(4px);
}

.now-playing.has-generation .player-lyrics {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-height: 420px;
  border-top: 0;
  border-left: 1px solid var(--line);
  padding-top: 0;
  padding-left: 18px;
}

.floating-player {
  position: fixed;
  top: 50%;
  right: 22px;
  bottom: auto;
  left: auto;
  z-index: 7;
  width: min(640px, calc(46vw + 40px));
  min-width: 430px;
  min-height: 360px;
  max-width: calc(100vw - 44px);
  max-height: calc(100dvh - 40px);
  translate: 0 -50%;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-solid) 96%, transparent);
  box-shadow: 0 28px 86px rgba(5, 7, 6, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 14px;
  overflow: auto;
  resize: both;
  animation: playerRise 190ms ease both;
}

.floating-player[hidden] {
  display: none;
}

@keyframes playerRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.floating-player-head [data-player-drag-handle] {
  cursor: grab;
  user-select: none;
}

.floating-player.is-dragging {
  transition: none;
}

.floating-player.is-dragging .floating-player-head [data-player-drag-handle] {
  cursor: grabbing;
}

.floating-player .now-playing {
  min-height: 170px;
}

.floating-player .now-playing.has-generation {
  grid-template-columns: minmax(190px, 0.68fr) minmax(240px, 1fr);
}

.floating-player .player-lyrics {
  max-height: 210px;
}

.floating-player .task-log {
  display: none;
}

.task-log,
.history-list {
  display: grid;
  gap: 10px;
}

.task-log {
  margin-top: 12px;
}

.log-item,
.history-item,
.studio-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--control);
  padding: 14px;
}

.history-item {
  min-height: 132px;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.history-actions .hint {
  width: 100%;
  text-align: center;
}

.history-actions .compact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  text-align: center;
}

.history-download-button {
  padding-left: 18px;
  padding-right: 18px;
}

.history-item-header {
  justify-content: space-between;
  gap: 10px;
}

.status-tag {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.status-tag.SUCCEEDED {
  background: rgba(101, 200, 145, 0.14);
  color: var(--green);
}

.status-tag.FAILED {
  background: rgba(255, 122, 102, 0.13);
  color: var(--danger);
}

.status-tag.RUNNING,
.status-tag.PENDING,
.status-tag.QUEUED,
.status-tag.UNKNOWN {
  background: rgba(122, 167, 232, 0.14);
  color: var(--blue);
}

.account-panel {
  scroll-margin-top: 120px;
}

.account-panel .studio-panel + .studio-panel {
  margin-top: 12px;
}

.auth-panel {
  display: grid;
  gap: 0;
}

.auth-panel[data-mode="bind"] .guest-auth-section {
  display: none;
}

.guest-auth-section {
  display: grid;
  gap: 12px;
}

.guest-action-row {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 10px;
  align-items: start;
}

.email-login-details {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--control);
  padding: 12px;
}

.email-login-details[open] {
  gap: 12px;
}

.email-login-details summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.email-login-details label {
  margin-top: 12px;
}

.key-panel {
  display: grid;
  gap: 12px;
}

.billing-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.cost-panel {
  display: grid;
  gap: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-card {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.metric-card.wide {
  grid-column: 1 / -1;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.metric-card strong {
  font-size: 18px;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.plan-card {
  min-height: 132px;
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--control);
  color: var(--text);
  padding: 16px;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-2) 38%, var(--line));
}

.plan-card.active,
.plan-card.featured {
  border-color: color-mix(in srgb, var(--accent-2) 44%, var(--line));
  background:
    linear-gradient(135deg, rgba(244, 176, 95, 0.16), rgba(119, 154, 85, 0.08)),
    var(--control);
}

.plan-card span,
.plan-card small,
.plan-card em {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.plan-card strong {
  font-size: 26px;
}

.plan-card em {
  align-self: end;
  font-style: normal;
}

.flow-steps {
  display: grid;
  gap: 10px;
}

.quiet-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiet-actions strong {
  display: block;
  font-size: 15px;
}

.quiet-action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.flow-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.flow-step > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.flow-step strong,
.flow-step p {
  display: block;
  margin: 0;
}

.flow-step strong {
  font-size: 14px;
}

.flow-step p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.flow-step.active {
  border-color: rgba(244, 176, 95, 0.4);
  background:
    linear-gradient(135deg, rgba(244, 176, 95, 0.12), transparent 54%),
    rgba(255, 255, 255, 0.045);
}

.flow-step.active > span {
  border-color: rgba(244, 176, 95, 0.48);
  color: var(--accent-2);
}

.flow-step.done > span {
  border-color: rgba(101, 200, 145, 0.38);
  color: var(--green);
}

.flow-actions,
.mini-plan-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mini-plan-list {
  display: grid;
  grid-template-columns: 1fr;
}

.mini-plan {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 10px;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.mini-plan:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 176, 95, 0.38);
  background: rgba(244, 176, 95, 0.08);
}

.mini-plan small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.auth-panel[hidden] {
  display: none;
}

.button-row {
  gap: 10px;
}

.button-row button {
  flex: 1;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
}

.divider::before,
.divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--line);
}

.library-section {
  margin-top: 22px;
  scroll-margin-top: 110px;
}

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

.mobile-tabbar {
  display: none;
}

.site-footer {
  width: 100vw;
  margin: 56px calc(50% - 50vw) -120px;
  border-top: 1px solid #e4e8ee;
  background: #f3f5f8;
  color: #96999e;
  font-size: 14px;
  line-height: 1.75;
  text-align: center;
}

.site-footer-inner {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 34px 0 38px;
}

.site-footer p {
  margin: 0;
}

.site-footer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 14px;
  align-items: center;
}

.site-footer a {
  color: #8e9298;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: #5f646b;
}

.background-preview-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 24px));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(13, 18, 14, 0.82);
  color: #f7f5ed;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  padding: 12px;
}

.background-preview-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}

.background-preview-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.background-preview-options button {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 8px;
  text-align: left;
}

.background-preview-options button.active {
  border-color: rgba(191, 226, 132, 0.72);
  background: rgba(191, 226, 132, 0.2);
}

.background-preview-options span,
.background-preview-options small {
  display: block;
}

.background-preview-options span {
  font-size: 12px;
  font-weight: 950;
}

.background-preview-options small {
  color: rgba(247, 245, 237, 0.72);
  font-size: 11px;
  line-height: 1.35;
}

.admin-site-footer {
  margin-top: 44px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 40px));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-solid) 98%, transparent);
  color: var(--text);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.generation-dialog,
.lyrics-mode-dialog {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 8, 0.28);
  padding: 18px;
}

.generation-dialog[hidden],
.lyrics-mode-dialog[hidden] {
  display: none;
}

.generation-dialog-card,
.lyrics-mode-card {
  width: min(420px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel-solid) 98%, transparent);
  box-shadow: 0 26px 80px rgba(5, 7, 6, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 24px;
  text-align: center;
}

.generation-dialog-card h2,
.lyrics-mode-card h2 {
  margin: 8px 0 8px;
  font-size: clamp(22px, 4vw, 30px);
}

.generation-dialog-card button {
  margin-top: 18px;
}

.lyrics-mode-choice-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.lyrics-mode-choice {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--control);
  color: var(--text);
  padding: 16px;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.lyrics-mode-choice:hover,
.lyrics-mode-choice.active {
  border-color: color-mix(in srgb, var(--accent-2) 58%, var(--line));
  background: color-mix(in srgb, var(--accent-2) 12%, var(--control));
}

.lyrics-mode-choice:active {
  transform: translateY(1px) scale(0.99);
}

.lyrics-mode-choice strong {
  font-size: 16px;
}

.lyrics-mode-choice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.lyrics-mode-card > .ghost-button {
  margin-top: 16px;
}

.lyrics-mode-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.lyrics-mode-dialog-actions .compact-button {
  min-width: 118px;
}

.generation-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border: 3px solid color-mix(in srgb, var(--accent-2) 20%, transparent);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: generationSpin 900ms linear infinite;
}

@keyframes generationSpin {
  to {
    transform: rotate(360deg);
  }
}

.payment-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
  padding: 18px;
}

.payment-card {
  width: min(520px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  padding: 18px;
}

.video-export-card {
  display: grid;
  gap: 16px;
}

.video-export-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0f1412;
}

.video-export-card .button-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.payment-body img {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
}

.payment-body strong {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
}

.payment-mark {
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(244, 176, 95, 0.32);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(244, 176, 95, 0.18), rgba(228, 86, 67, 0.12)),
    rgba(255, 255, 255, 0.045);
  color: var(--accent-2);
  font-size: 42px;
  font-weight: 950;
}

.payment-choice-body {
  display: grid;
  gap: 16px;
}

.payment-method-grid {
  display: grid;
  gap: 10px;
}

.payment-method-button {
  min-height: 64px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 4px;
  border-radius: 16px;
  text-align: left;
}

.payment-method-button span {
  font-size: 14px;
}

.payment-method-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.payment-jump-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 10px;
}

.admin-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(122, 167, 232, 0.14), transparent 22rem),
    linear-gradient(180deg, #111419 0%, #0b0d10 100%);
}

.admin-shell {
  width: min(1440px, calc(100vw - 36px));
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.admin-login-panel {
  min-height: calc(100dvh - 130px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: center;
}

.admin-login-panel h1 {
  font-size: clamp(44px, 5vw, 72px);
}

.admin-auth-card {
  display: grid;
  gap: 14px;
}

.admin-workspace {
  display: grid;
  gap: 16px;
  padding-top: 22px;
}

.admin-workspace[hidden],
.admin-login-panel[hidden] {
  display: none;
}

.admin-tab-panel {
  display: grid;
  gap: 16px;
}

.admin-tab-panel[hidden] {
  display: none;
}

.admin-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: start;
}

.model-card {
  grid-column: 1 / -1;
}

.model-card label {
  display: grid;
  gap: 6px;
}

.model-title-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
}

.analytics-card {
  display: grid;
  gap: 12px;
}

.analytics-list {
  display: grid;
  gap: 8px;
}

.analytics-row,
.analytics-event-row {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.analytics-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.analytics-event-row span,
.analytics-event-row small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.settings-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.recharge-code-form {
  display: grid;
  grid-template-columns: 1.05fr 0.65fr 0.65fr 0.65fr 0.95fr 0.9fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.settings-card-wide,
.billing-card {
  grid-column: 1 / -1;
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.integration-card {
  display: grid;
  gap: 8px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.integration-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.integration-card strong {
  align-self: end;
  color: var(--text);
  font-size: 20px;
}

.integration-card.ready {
  border-color: rgba(101, 200, 145, 0.28);
  background: linear-gradient(135deg, rgba(101, 200, 145, 0.12), rgba(255, 255, 255, 0.035));
}

.integration-card.warning {
  border-color: rgba(255, 122, 102, 0.24);
  background: linear-gradient(135deg, rgba(255, 122, 102, 0.1), rgba(255, 255, 255, 0.035));
}

.env-snippet {
  overflow-x: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 9, 12, 0.72);
  color: #f3dec2;
  padding: 14px;
  font-size: 12px;
  line-height: 1.75;
}

code {
  color: #f3dec2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ops-steps {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.toggle-line,
.mini-toggle {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.toggle-line input,
.mini-toggle input {
  width: auto;
}

.billing-title-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.billing-guide-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.billing-guide-grid strong {
  font-size: 13px;
}

.billing-guide-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.plan-editor {
  display: grid;
  gap: 10px;
}

.plan-edit-head,
.plan-edit-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.7fr 0.7fr 0.7fr auto;
  gap: 8px;
  align-items: center;
}

.plan-edit-head {
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
}

.plan-edit-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.plan-edit-row label[data-plan-label] {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.plan-edit-row label[data-plan-label] > span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-panel {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

td span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1160px) {
  .top-nav {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: start;
    overflow-x: auto;
  }

  .admin-tabs {
    justify-self: stretch;
    overflow-x: auto;
  }

  .account-strip {
    justify-content: start;
    flex-wrap: wrap;
  }

  .studio-grid,
  .customer-grid,
  .account-page-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .side-stack {
    position: static;
  }

  .now-playing.has-generation {
    grid-template-columns: 1fr;
  }

  .now-playing.has-generation .player-main,
  .now-playing.has-generation .player-controls,
  .now-playing.has-generation .player-lyrics {
    grid-column: auto;
    grid-row: auto;
  }

  .now-playing.has-generation .player-lyrics {
    max-height: 360px;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
  }

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

  .admin-metrics,
  .admin-settings-grid,
  .recharge-code-form,
  .admin-login-panel {
    grid-template-columns: 1fr;
  }

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

  .seo-content-grid {
    grid-template-columns: 1fr;
  }

  .plan-edit-head {
    display: none;
  }

  .plan-edit-row {
    grid-template-columns: 1fr 1fr;
  }

  .plan-edit-row label[data-plan-label] > span {
    display: block;
  }
}

@media (max-width: 760px) {
  body:not(.customer-page) {
    background:
      linear-gradient(135deg, rgba(143, 186, 98, 0.1), transparent 34%),
      linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  }

  body:not(.customer-page)::before {
    display: none;
  }

  .app-shell {
    width: min(calc(100vw - 16px), 390px);
    max-width: min(calc(100vw - 16px), 390px);
    margin-left: 8px;
    margin-right: auto;
    padding: 8px 0 96px;
  }

  .top-nav {
    position: static;
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: 58px;
    border-radius: 16px;
    padding: 8px 9px 8px 12px;
  }

  .brand-mark {
    font-size: 16px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    display: none;
  }

  .admin-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  .admin-tab-button {
    min-height: 34px;
    padding: 0 6px;
    font-size: 12px;
  }

  .account-strip {
    display: flex;
    justify-content: end;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .account-button {
    grid-template-columns: 34px;
    min-height: 42px;
    padding: 4px;
  }

  .account-button-copy {
    display: none;
  }

  .account-avatar {
    width: 34px;
    height: 34px;
  }

  .status-pill,
  .credit-badge {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }

  .studio-grid,
  .customer-grid,
  .account-page-grid {
    width: 100%;
    max-width: 100%;
    gap: 14px;
    padding-top: 14px;
  }

  body.customer-page {
    --composer-width: 100%;
    --composer-panel-alpha: 94%;
    --composer-control-alpha: 96%;
  }

  .account-drawer {
    align-items: end;
    justify-items: center;
    padding: 10px;
  }

  .account-drawer[data-panel="auth"] {
    place-items: start center;
    padding: max(10px, env(safe-area-inset-top)) 10px max(18px, env(safe-area-inset-bottom));
  }

  .account-drawer-panel {
    width: 100%;
    max-height: min(760px, calc(100dvh - 20px));
    border-radius: 18px;
    padding: 14px;
  }

  .auth-modal-panel {
    width: 100%;
    max-height: min(820px, calc(100svh - 28px));
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .auth-showcase {
    min-height: auto;
    align-content: center;
    align-items: center;
    padding: 14px 16px;
  }

  .auth-brand-lockup {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
  }

  .auth-showcase img {
    grid-row: 1 / span 2;
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .auth-showcase .eyebrow {
    margin: 0;
  }

  .auth-showcase h2 {
    max-width: none;
    margin-bottom: 4px;
    font-size: clamp(19px, 5.2vw, 23px);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .auth-workspace {
    padding: 16px;
  }

  .wechat-stage {
    grid-template-columns: 112px 1fr;
    gap: 12px;
  }

  .wechat-qr-frame {
    width: 112px;
    height: 112px;
    border-radius: 14px;
    background-size: 20px 20px;
  }

  .wechat-qr-frame img {
    width: 48px;
    height: 48px;
  }

  .guest-action-row,
  .wallet-action-row {
    grid-template-columns: 1fr;
  }

  .account-mini-stats,
  .purchase-plan-grid,
  .settings-bind-list > div,
  .ledger-row {
    grid-template-columns: 1fr;
  }

  .account-subdialog {
    padding: 10px;
  }

  .account-subdialog-card {
    border-radius: 18px;
    padding: 16px;
  }

  .seo-content {
    margin-top: 14px;
    border-radius: 16px;
    padding: 16px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1.04;
  }

  h1 span {
    display: block;
  }

  .stage-copy {
    padding: 4px 3px 0;
  }

  .eyebrow {
    font-size: 10px;
  }

  .composer-card,
  .now-card,
  .account-panel,
  .library-section {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(5, 7, 6, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 14px;
  }

  .composer-card {
    gap: 14px;
  }

  .mode-row,
  .create-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mode-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .mode-pill {
    min-height: 36px;
    padding: 0 10px;
  }

  .title-row,
  .prompt-stack,
  .history-list,
  .phone-login-grid,
  .recharge-box,
  .admin-metrics,
  .integration-grid,
  .admin-settings-grid,
  .recharge-code-form,
  .billing-title-row,
  .billing-guide-grid {
    grid-template-columns: 1fr;
  }

  .voice-style-section {
    gap: 10px;
    padding: 12px;
  }

  .voice-preset-grid {
    display: none;
  }

  .voice-preset-select {
    display: block;
  }

  .admin-shell {
    width: min(calc(100vw - 16px), 430px);
  }

  .admin-login-panel {
    min-height: auto;
    padding-top: 28px;
  }

  .admin-section {
    border-radius: 24px;
    padding: 14px;
  }

  .plan-edit-head {
    display: none;
  }

  .plan-edit-row {
    grid-template-columns: 1fr;
  }

  .plan-edit-row label[data-plan-label] > span {
    display: block;
  }

  .payment-body {
    grid-template-columns: 1fr;
  }

  .payment-body img {
    width: 100%;
    height: auto;
  }

  input,
  select,
  textarea {
    border-radius: 16px;
    font-size: 16px;
  }

  .lyrics-box {
    min-height: 260px;
  }

  .lyrics-head,
  .lyrics-mode-row {
    align-items: stretch;
    flex-direction: column;
  }

  .lyrics-mode-control {
    width: 100%;
  }

  .now-playing {
    grid-template-columns: 1fr;
  }

  .now-playing.is-empty {
    grid-template-columns: 1fr;
  }

  .floating-player {
    top: auto;
    right: 8px;
    bottom: 76px;
    left: 8px;
    width: auto;
    min-width: 0;
    min-height: 0;
    translate: 0 0;
    max-height: calc(100dvh - 98px);
    overflow: auto;
    resize: none;
    border-radius: 16px;
    padding: 12px;
  }

  .floating-player-head [data-player-drag-handle] {
    cursor: default;
  }

  .floating-player .now-playing.has-generation {
    grid-template-columns: 1fr;
  }

  .floating-player .now-playing.has-generation .player-main,
  .floating-player .now-playing.has-generation .player-controls,
  .floating-player .now-playing.has-generation .player-lyrics {
    grid-column: auto;
    grid-row: auto;
  }

  .floating-player .now-playing.has-generation .player-lyrics {
    max-height: 180px;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
  }

  .side-stack {
    gap: 14px;
  }

  .account-panel {
    scroll-margin-top: 18px;
  }

  .library-section {
    margin-top: 14px;
    scroll-margin-top: 18px;
  }

  .mobile-tabbar {
    position: fixed;
    right: auto;
    bottom: 12px;
    left: 8px;
    width: min(calc(100vw - 16px), 390px);
    max-width: min(calc(100vw - 16px), 390px);
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 7px;
    backdrop-filter: none;
  }

  .mobile-tabbar a,
  .mobile-tabbar button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 950;
  }

  .mobile-tabbar a:active,
  .mobile-tabbar button:active,
  .mobile-tabbar button.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
  }

  .site-footer {
    margin-top: 28px;
    margin-bottom: -96px;
    font-size: 12px;
    line-height: 1.65;
  }

  .site-footer-inner {
    width: calc(100vw - 32px);
    padding: 18px 0 96px;
  }

  .site-footer-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 12px;
  }

  .top-nav,
  .composer-card,
  .now-card,
  .account-panel,
  .library-section,
  .floating-player,
  .payment-card,
  .account-drawer-backdrop {
    backdrop-filter: none;
  }

  .background-preview-panel {
    right: 8px;
    bottom: 76px;
    width: min(calc(100vw - 16px), 390px);
    max-height: calc(100dvh - 96px);
    overflow: auto;
  }

  .voice-preset-card,
  .mode-pill,
  input,
  select,
  textarea {
    transition-duration: 80ms;
  }

  .voice-preset-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
