/* Account surfaces share the homepage's warm charcoal and gold palette. */
.account-auth,
.account-pricing,
.landing-body .login-dialog,
.landing-body .membership-home-dialog {
  color-scheme: dark;
  --theme-card: #1e1f19;
  --theme-text: #f8f4ed;
  --theme-strong: #f8f4ed;
  --theme-muted: #d0cabc;
  --theme-border: #4b493f;
  --theme-soft: #292b24;
  --theme-soft-hover: #393a30;
  --theme-control-text: #eee4d4;
  --theme-focus: #ffe0a4;
  --theme-primary: #f4c77d;
  --theme-primary-hover: #ffdaa0;
  --theme-on-primary: #211c15;
  --theme-input: #191a15;
  --theme-input-border: #59574b;
  --theme-placeholder: #c4bcad;
  --theme-danger: #ffb4a7;
  --theme-success: #b9d8ad;
  --ink: #f8f4ed;
  --muted: #d0cabc;
  --line: #4b493f;
  --accent: #f4c77d;
  --accent-hover: #ffdaa0;
  --on-accent: #211c15;
  --paper: #171815;
  --paper-top: #1e1f19;
  --paper-deep: #141510;
  --white: #252620;
  --green: #b9d8ad;
  --error: #ffb4a7;
  --skeleton-highlight: #34352c;
  --scrollbar: #817760;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.landing-body .home-header { grid-template-columns: 1fr auto 1fr; gap: 20px; }
.home-header .home-brand { min-height: 44px; }
.home-header .home-nav { display: flex; gap: 4px; }
.home-header .home-nav :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.home-header .home-actions .button { min-height: 40px; min-width: 76px; padding: 0 20px; border-radius: 8px; font-size: 14px; font-weight: 600; box-shadow: none; }
.landing-body .login-dialog { width: min(520px, 100%); border-radius: 16px; }
.landing-body .login-dialog > header { min-height: 70px; padding: 16px 24px; }
.landing-body .login-dialog > header h2 { font-size: 20px; font-weight: 500; }
.landing-body .login-dialog > header button { width: 44px; height: 44px; border-radius: 8px; }
.landing-body .login-dialog iframe { height: min(580px, calc(100dvh - 120px)); }
.landing-body .membership-home-dialog { border-radius: 16px; }
.landing-body .membership-home-dialog::backdrop { backdrop-filter: blur(6px); }

.account-auth { background: linear-gradient(90deg, #13140fd9, #13140f80), url('./fashion-editorial.jpg') center / cover fixed; }
.account-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 12px max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); background: #11120eb3; }
.account-topbar a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 14px; }
.account-topbar img { width: 32px; height: 32px; }
body.account-auth .login-shell { width: min(480px, calc(100% - 32px)); min-height: calc(100dvh - 72px); padding: 32px 0; background: transparent; }
.account-auth .login-panel { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: #1e1f19f2; box-shadow: 0 26px 80px #00000042; }
.account-auth .member-body { display: block; }
.account-auth .login-card { gap: 24px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.account-auth .card-title { gap: 10px; }
.account-auth .card-title strong { font-size: 28px; font-weight: 500; letter-spacing: -.025em; }
.account-auth .card-title small { font-size: 13px; line-height: 1.7; font-weight: 400; }
.account-auth form { gap: 16px; }
.account-auth .login-card label { color: var(--theme-control-text); font-size: 13px; font-weight: 400; line-height: 1.6; }
.account-auth .login-card input:not([type="checkbox"]) { min-height: 46px; border-radius: 8px; font-size: 14px; caret-color: var(--accent); }
.account-auth .login-card input::placeholder { color: var(--theme-placeholder); opacity: 1; }
.account-auth .login-card button { min-height: 44px; border-radius: 8px; font-weight: 600; }
.account-auth .login-card button.secondary { border-color: var(--line); background: transparent; }
.account-auth .login-card button.secondary:hover { background: var(--theme-soft-hover); }
.account-auth .login-card button:disabled { opacity: .55; cursor: not-allowed; }
.account-auth .agreement-row a { color: var(--accent); text-underline-offset: 3px; }
.account-auth .agreement-row input { accent-color: var(--accent); }
.account-auth .status { font-weight: 400; }
.account-auth .status.error { color: var(--theme-danger); }
.account-auth .status.success { color: var(--theme-success); }
.account-auth :focus-visible, .account-pricing :focus-visible { outline: 2px solid var(--theme-focus); outline-offset: 3px; }
.account-auth ::selection, .account-pricing ::selection { background: var(--accent); color: var(--on-accent); }
.is-embedded-login .account-auth { overflow: auto; background: var(--theme-card); }
.is-embedded-login .account-topbar { display: none; }
.is-embedded-login body.account-auth .login-shell { width: 100%; min-height: 0; padding: 0; }
.is-embedded-login .account-auth .login-panel { padding: 24px; border: 0; border-radius: 0; box-shadow: none; }

.account-pricing { background: linear-gradient(120deg, #171815f5, #171815de), url('./fashion-editorial.jpg') center / cover fixed; }
.account-pricing .shell { max-width: 1080px; padding-top: 24px; }
.account-pricing .topbar { margin-bottom: 40px; }
.account-pricing .brand { gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: 0; }
.account-pricing .brand-mark { width: 32px; height: 32px; border: 0; border-radius: 0; background: transparent; object-fit: contain; }
.account-pricing .hero { gap: 32px; margin-bottom: 32px; }
.account-pricing h1 { font-family: inherit; font-size: clamp(30px, 4vw, 48px); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.account-pricing .hero p { margin-top: 16px; font-size: 14px; }
.account-pricing :is(.rule-card, .channel-card, .skeleton) { border-radius: 12px; box-shadow: none; }
.account-pricing .rule-card { padding: 20px; font-size: 13px; }
.account-pricing :is(.channel-head h2, .note b) { font-family: inherit; font-weight: 500; }
.account-pricing .channel-head h2 { font-size: 20px; overflow-wrap: anywhere; }
.account-pricing :is(.button, .filters, .filter) { border-radius: 8px; }
.account-pricing .filter { min-height: 44px; }
.account-pricing .channel-kind { letter-spacing: .04em; }
.account-pricing .notes { gap: 12px; margin-top: 28px; }
.account-pricing .note { padding: 18px 0; font-size: 13px; }
.account-pricing .footer { margin-top: 28px; }
.account-pricing :is(.rule-card, .channel-card, .credit-package) { background: rgb(37 38 32 / 68%); }
.credit-packages { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.packages-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.packages-heading h2, .usage-prices-title { margin: 0 0 12px; font-size: 24px; font-weight: 500; }
.packages-heading p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.packages-heading .button { flex-shrink: 0; font-size: 13px; }
.packages-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.credit-package { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 18px; border: 1px solid var(--line); border-radius: 12px; }
.credit-package h3 { margin: 0 0 24px; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.package-amount { color: var(--ink); font-size: 32px; font-weight: 500; font-variant-numeric: tabular-nums; }
.credit-package p { margin: 8px 0 24px; color: var(--accent); font-size: 15px; }
.credit-package .button { width: 100%; margin-top: auto; min-height: 44px; font-size: 13px; }
.account-pricing button:disabled { cursor: not-allowed; }
.credit-package .button:disabled { background: rgb(244 199 125 / 12%); border-color: var(--line); color: var(--muted); transform: none; }
.packages-policy { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.packages-policy a { color: var(--accent); text-underline-offset: 3px; }
.usage-prices-title { margin-bottom: 20px; }
@media (max-width: 860px) { .packages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .credit-package { padding: 18px 12px; } .package-amount { font-size: 28px; } .packages-heading { align-items: flex-start; } }

@media (max-width: 900px) {
  .landing-body .home-header { grid-template-columns: auto 1fr auto; gap: 12px; padding-inline: 18px; }
  .home-header .home-nav { justify-content: center; }
  .home-header .home-nav :is(a, button) { padding-inline: 9px; font-size: 13px; }
}
@media (max-width: 680px) {
  .landing-body { --landing-header-height: 104px; }
  .landing-body .home-header { grid-template-columns: 1fr auto; gap: 0 12px; padding: 8px 14px 4px; }
  .home-header .home-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 2px; }
  .home-header .home-actions { grid-column: 2; grid-row: 1; }
  .home-header .home-actions .button { min-width: 64px; min-height: 44px; padding-inline: 16px; }
  .home-header .home-nav :is(a, button) { padding-inline: 10px; }
  .landing-body .login-dialog > header { padding-inline: 18px; }
  .is-embedded-login .account-auth .login-panel { padding: 22px 18px; }
  .account-auth .login-panel { padding: 24px; }
  .account-pricing .topbar { gap: 10px; margin-bottom: 28px; }
  .account-pricing .top-actions .button { padding-inline: 12px; font-size: 13px; }
  .account-pricing .hero { gap: 20px; }
  .account-pricing .filter { padding-inline: 13px; }
  .account-pricing .channel-head { gap: 8px; }
}
