:root {
  --color-primary: #2563eb;
  --color-on-primary: #ffffff;
  --color-secondary: #3b82f6;
  --color-accent: #ea580c;
  --color-on-accent: #ffffff;
  --color-background: #f8fafc;
  --color-foreground: #1e293b;
  --color-card: #ffffff;
  --color-muted: #e9eff8;
  --color-muted-foreground: #475569;
  --color-border: #e2e8f0;
  --color-destructive: #dc2626;
  --color-ring: #2563eb;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 60px rgba(30, 64, 175, 0.10);
  --font: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --dock-bottom: max(12px, env(safe-area-inset-bottom));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}
.app-shell, .app-viewport { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .btn, .side-link, .dock-item { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 3px; }
.ambient {
  position: fixed; inset: -20vh -10vw auto; height: 70vh; z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, .28), transparent 40%),
    radial-gradient(circle at 75% 20%, rgba(251, 146, 60, .20), transparent 38%),
    radial-gradient(circle at 55% 65%, rgba(147, 197, 253, .25), transparent 45%);
  filter: blur(20px);
}
.topbar { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 28px; max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #2563eb, #60a5fa 55%, #fb923c); box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.pill { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.55); backdrop-filter: blur(16px); font-size: 14px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary); color: white; font-weight: 700; }
.app-frame { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1440px; margin: 0 auto; padding: 0 28px 48px; gap: 0; }
.side-nav { position: sticky; top: 18px; align-self: start; display: none; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius-lg); background: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.75); backdrop-filter: blur(22px); box-shadow: var(--shadow-soft); }
.side-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; color: var(--color-muted-foreground); transition: background .2s ease, color .2s ease; }
.side-link:hover { background: rgba(255,255,255,.7); color: var(--color-foreground); }
.side-link.is-active { background: var(--color-primary); color: white; }
.nav-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(37,99,235,.10); }
.nav-icon svg, .dock-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-link.is-active .nav-icon { background: rgba(255,255,255,.22); }
.content { min-width: 0; padding-bottom: 40px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 36px 4px 28px; }
.eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--color-primary); }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.12; letter-spacing: -.04em; margin-bottom: 14px; }
.lede { max-width: 620px; color: var(--color-muted-foreground); font-size: 16px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.8); font-size: 13px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.12); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: start; }
.card { background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); backdrop-filter: blur(20px); }
.studio-card, .result-card { padding: 22px; }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--color-muted); margin-bottom: 22px; }
.segment { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--color-muted-foreground); font-weight: 600; transition: background .2s, color .2s; }
.segment-short { display: none; }
.status-copy-short { display: none; }
.segment.is-active { background: white; color: var(--color-foreground); box-shadow: 0 2px 10px rgba(30,64,175,.10); }
.form-stack { display: grid; gap: 10px; }
.generate-submit { scroll-margin-bottom: 20px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--color-foreground); }
textarea, .input, select { width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(255,255,255,.85); padding: 13px 14px; color: var(--color-foreground); min-height: 46px; }
textarea { resize: vertical; }
textarea:focus, .input:focus, select:focus { border-color: var(--color-primary); outline: 3px solid rgba(37,99,235,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; margin-top: 4px; }
.field-row .field-label { margin: 0; }
.upload-preview { position: relative; margin-top: 12px; display: inline-block; max-width: 100%; }
.upload-preview img { display: block; max-width: min(100%, 260px); max-height: 220px; border-radius: 10px; object-fit: cover; }
.upload-preview button { position: absolute; top: 8px; right: 8px; min-height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(15,23,42,.72); color: white; font-size: 12px; }
.job-card { grid-column: 1 / -1; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.86); border: 1px solid var(--color-border); }
.job-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--color-muted-foreground); }
.job-badge { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-weight: 700; }
.job-badge.status-succeeded { background: #ecfdf5; color: #047857; }
.job-badge.status-failed { background: #fef2f2; color: #b91c1c; }
.job-prompt { margin: 10px 0; font-size: 14px; line-height: 1.65; }
.job-error { color: #b91c1c; font-size: 13px; }
.job-assets { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.job-assets img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; }
.job-assets figure { margin: 0; overflow: hidden; border-radius: 12px; background: var(--color-card); }
.asset-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
.text-action { padding: 0; border: 0; background: transparent; color: var(--color-text); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.text-action:hover { text-decoration: underline; }
.text-action.is-danger { color: #b42318; }
.work-list { display: grid; gap: 18px; }
.archive-panel { display: grid; gap: 8px; }
.archive-panel[hidden], .work-list[hidden] { display: none !important; }
.archive-head { margin-top: 0; }
.archive-card-list { margin-top: 0; }
.work-group { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.7); border: 1px solid var(--color-border); }
.work-group header { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--color-muted-foreground); }
.work-card { display: grid; gap: 8px; color: var(--color-foreground); }
.work-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.work-card span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.5; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: 0 10px 24px rgba(37,99,235,.25); }
.btn-primary:hover { background: #1d4ed8; }
.btn-soft { background: white; border-color: var(--color-border); color: var(--color-foreground); }
.btn-ghost { background: transparent; border-color: var(--color-border); }
.btn-lg { width: 100%; min-height: 50px; font-size: 16px; margin-top: 6px; }
.pricing-line { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 2px; border-top: 1px dashed var(--color-border); font-size: 14px; }
.hint { margin: 0; font-size: 12px; color: var(--color-muted-foreground); text-align: center; }
.studio-card .form-hint { margin: -2px 0 0; text-align: left; }
.studio-intro { display: grid; gap: 4px; margin-bottom: 4px; }
.studio-intro .eyebrow { margin-bottom: 0; }
.studio-intro h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.studio-intro p:last-child { margin: 0; color: var(--color-muted-foreground); font-size: 12px; line-height: 1.6; }
.prompt-field { position: relative; }
.prompt-field textarea { min-height: 150px; padding-bottom: 30px; }
.prompt-count { position: absolute; right: 12px; bottom: 9px; color: var(--color-muted-foreground); font-size: 11px; font-variant-numeric: tabular-nums; pointer-events: none; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: 12px; }
.field-pair .field-row { display: grid; grid-template-columns: 1fr; gap: 5px; align-items: stretch; margin-top: 0; }
.field-pair .field-label { margin: 0; }
.billing-row { display: flex; align-items: center; gap: 12px; }
.billing-label { flex: 0 0 auto; font-size: 13px; font-weight: 700; }
.billing-switch { flex: 1; min-width: 0; margin-bottom: 0; }
.generate-submit { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-inline: 20px; }
.generate-submit-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 1px; }
.generate-submit-price { display: none; font-size: 11px; font-weight: 600; line-height: 1.25; opacity: .82; }
.generate-submit-mobile { display: none !important; }
.generate-submit-arrow { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 15px; flex: 0 0 auto; }
.trust-note { margin-top: 2px; font-size: 11px; line-height: 1.6; }
.guest-finder { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--color-border); }
.guest-finder div { display: grid; gap: 2px; min-width: 0; }
.guest-finder strong { font-size: 13px; }
.guest-finder span { color: var(--color-muted-foreground); font-size: 11px; line-height: 1.5; }
.guest-finder .btn { flex: 0 0 auto; min-height: 36px; padding: 6px 12px; font-size: 12px; }
.result-status { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 999px; background: rgba(241,245,249,.9); font-size: 11px; font-weight: 700; }
.checkout-dialog { width: min(440px, 94vw); max-height: min(86dvh, 720px); overflow-y: auto; overscroll-behavior: contain; padding: 24px; border: 1px solid var(--color-border); border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(15,23,42,.28); }
.checkout-dialog::backdrop { background: rgba(15,23,42,.42); backdrop-filter: blur(4px); }
.checkout-dialog[open] { animation: dialog-in .24s cubic-bezier(.22,1,.36,1) both; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.checkout-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.checkout-head h2 { margin: 0; font-size: 24px; }
.checkout-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f5f9; font-size: 20px; line-height: 1; }
.checkout-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; margin: 10px 0; border-block: 1px dashed var(--color-border); color: var(--color-muted-foreground); font-size: 12px; }
.checkout-summary strong { color: var(--color-foreground); font-size: 26px; letter-spacing: -.03em; }
.channel-list { display: grid; gap: 8px; margin: 8px 0 14px; }
.channel-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 12px; }
.channel-option strong { display: block; font-size: 14px; }
.channel-option small { color: var(--color-muted-foreground); font-size: 12px; }
.order-state { display: inline-flex; padding: 7px 14px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-weight: 700; margin: 10px 0 16px; }
.order-state.order-paid { background: #ecfdf5; color: #047857; }
.order-state.order-refund_pending { background: #fffbeb; color: #b45309; }
.order-state.order-closed, .order-state.order-failed { background: #fef2f2; color: #b91c1c; }
.pay-shell { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 24px 4px; }
.pay-card { width: min(100%, 520px); padding: 26px; }
.result-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.muted { color: var(--color-muted-foreground); }
.result-empty { min-height: 360px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--color-muted-foreground); gap: 6px; }
.spark { font-size: 38px; color: var(--color-primary); }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 38px 4px 24px; }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); }
.notice { margin-bottom: 18px; padding: 13px 16px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.choice-card { padding: 22px; transition: transform .2s, box-shadow .2s; }
.choice-card:hover { transform: translateY(-3px); box-shadow: 0 24px 64px rgba(30,64,175,.14); }
.choice-no { font-size: 12px; font-weight: 800; color: var(--color-primary); letter-spacing: .08em; }
.choice-card h2 { margin: 14px 0 8px; font-size: 24px; }
.choice-card p { color: var(--color-muted-foreground); font-size: 14px; }
.text-link { color: var(--color-primary); font-weight: 700; font-size: 14px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { min-height: 40px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--color-border); background: rgba(255,255,255,.66); font-weight: 600; }
.tab.is-active { background: var(--color-foreground); color: white; border-color: var(--color-foreground); }
.guest-lookup { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; margin-bottom: 18px; }
.inline-form { display: flex; gap: 8px; min-width: 280px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.card-list, .work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.empty-state { grid-column: 1 / -1; padding: 54px 20px; text-align: center; border-radius: var(--radius-lg); background: rgba(255,255,255,.56); border: 1px dashed #cbd5e1; color: var(--color-muted-foreground); }
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.balance-card { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; gap: 8px; }
.balance-card strong { font-size: 44px; letter-spacing: -.04em; line-height: 1; }
.account-tile { display: flex; flex-direction: column; justify-content: space-between; padding: 22px; min-height: 120px; }
.account-tile span { color: var(--color-muted-foreground); font-size: 13px; }
.account-tile strong { font-size: 17px; }
.profile-card { padding: 24px; }
.form-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inline-alert { margin-bottom: 16px; padding: 13px 16px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.complaint-success { border: 1px solid #a7f3d0; background: linear-gradient(145deg, rgba(236,253,245,.96), rgba(255,255,255,.88)); }
.complaint-ticket { display: inline-block; margin: 4px 0; padding: 6px 10px; border-radius: 8px; background: #065f46; color: #ecfdf5; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-list div { padding: 12px; border-radius: 12px; background: rgba(248,250,252,.8); }
.detail-list dt { font-size: 12px; color: var(--color-muted-foreground); margin-bottom: 4px; }
.detail-list dd { margin: 0; font-weight: 600; }
.auth-wrap { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 24px 4px; }
.auth-card { width: min(100%, 440px); padding: 30px; }
.auth-card h1 { font-size: 30px; }
.alert { margin: 16px 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-switch { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--color-muted-foreground); }
.auth-switch a { color: var(--color-primary); font-weight: 700; }
.auth-card .segmented { margin-bottom: 18px; }
.auth-card .field-help { color: var(--color-muted-foreground); font-size: 12px; }
.code-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.code-field .btn { min-height: 46px; padding-inline: 16px; white-space: nowrap; }
.alert-notice { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.auth-links a { color: var(--color-primary); font-weight: 700; }
.verify-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.verify-row .btn { min-height: 46px; border-radius: 12px; padding-inline: 12px; font-size: 12px; }
.field-error { color: var(--color-destructive); font-size: 12px; }
.upload-slot { min-width: 0; padding: 14px; border: 1px dashed #bfdbfe; border-radius: 12px; background: #eff6ff; }
.upload-slot label { display: block; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.upload-slot input { display: block; width: 100%; max-width: 100%; min-width: 0; margin-top: 8px; font-size: 13px; }
.mobile-dock {
  position: fixed; z-index: 40; bottom: var(--dock-bottom); left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; width: min(560px, calc(100vw - 22px)); padding: 5px;
  border-radius: 26px; background: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.92);
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 16px 48px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.92), inset 0 -1px 0 rgba(15,23,42,.06);
  transition: transform .26s cubic-bezier(.22,1,.36,1), opacity .2s ease, bottom .26s ease;
  animation: dock-rise .48s cubic-bezier(.22,1,.36,1) both;
}
.mobile-dock.is-tucked,
.mobile-dock.is-tucked::before {
  animation: none;
}
.mobile-dock.is-tucked {
  display: none;
  opacity: 0;
  pointer-events: none;
}
.mobile-dock::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.46), rgba(255,255,255,.08) 42%, rgba(147,197,253,.18));
  pointer-events: none;
}
.dock-item { position: relative; min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; padding: 7px 1px 5px; border-radius: 18px; font-size: 10.5px; font-weight: 600; color: #475569; transition: background .2s ease, color .2s ease, transform .2s ease; }
.dock-item:active { transform: scale(.96); background: rgba(255,255,255,.42); }
.dock-icon { display: grid; place-items: center; width: 24px; height: 24px; color: inherit; }
.dock-icon svg { width: 19px; height: 19px; }
.dock-item.is-active { color: var(--color-primary); }
.dock-primary { background: none; box-shadow: none; color: var(--color-primary); }
.dock-primary:active { transform: scale(.96); }
.dock-primary.is-active { background: none; color: var(--color-primary); box-shadow: none; }
.dock-orbit {
  position: absolute; left: 50%; top: -13px; transform: translateX(-50%); display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 13px; color: white;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 24px rgba(15,23,42,.30), inset 0 1px 0 rgba(255,255,255,.24);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.dock-primary.is-active .dock-orbit {
  background: linear-gradient(145deg, #2563eb, #3b82f6);
  box-shadow: 0 10px 26px rgba(37,99,235,.38), inset 0 1px 0 rgba(255,255,255,.30);
}
.dock-primary .dock-icon { position: relative; width: 22px; height: 22px; }
.dock-primary .dock-icon svg { width: 19px; height: 19px; }
.dock-primary > span:last-child { color: var(--color-primary); }
.dock-primary { padding-top: 19px; }
@keyframes dock-rise {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 1023px) {
  html, body { height: 100%; min-height: 0; overflow: hidden; }
  body { overscroll-behavior-y: none; }
  .app-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .app-viewport {
    display: block;
    min-height: 0;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .app-frame { display: block; width: 100%; max-width: none; }
  .content { width: 100%; max-width: none; }
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-card, .result-card { width: 100%; max-width: none; }
  .choice-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .studio-grid, .studio-card, .result-card, .form-stack, .field-pair, .prompt-field,
  .billing-row, .guest-finder, .segmented, .dock-item, .field-row { min-width: 0; }
  .mobile-dock {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 14px auto max(8px, env(safe-area-inset-bottom));
    animation-name: dock-rise-in;
  }
  .site-footer { padding-bottom: 24px; }
}
@media (max-width: 719px) {
  .topbar {
    position: relative;
    z-index: 30;
    padding: max(14px, env(safe-area-inset-top)) 16px 12px;
    background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(248,250,252,.78));
    border-bottom: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 8px 24px rgba(30,64,175,.06);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }
  .app-frame { padding: 0 14px 24px; }
  .content { width: 100%; }
  .hero { flex-direction: column; align-items: flex-start; padding: 24px 2px 20px; }
  .page-head { flex-direction: column; align-items: flex-start; padding: 24px 2px 18px; }
  .hero-copy, .page-head > div { min-width: 0; }
  .lede { font-size: 14px; overflow-wrap: anywhere; }
  .studio-card, .result-card { padding: 16px; border-radius: 20px; }
  .segmented { gap: 3px; }
  .segment { min-width: 0; min-height: 44px; padding: 5px 3px; font-size: 13px; line-height: 1.3; white-space: nowrap; overflow-wrap: normal; }
  .studio-card .segmented { gap: 2px; }
  .studio-card .segmented .segment { font-size: 13px; letter-spacing: -.01em; }
  .studio-card .segmented .segment { white-space: normal; line-height: 1.25; }
  .status-chip { max-width: 100%; white-space: normal; line-height: 1.4; }
  .status-copy { display: none; }
  .status-copy-short { display: block; }
  .studio-intro h2 { font-size: 18px; }
  .field-pair { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .billing-row { align-items: stretch; flex-direction: column; gap: 6px; }
  .guest-finder { align-items: flex-start; }
  .result-empty { min-height: 240px; }
  .choice-grid, .account-grid, .card-list, .work-grid, .job-assets { grid-template-columns: 1fr; }
  .guest-lookup { flex-direction: column; align-items: stretch; }
  .inline-form { min-width: 0; }
  .detail-list { grid-template-columns: 1fr; }
  .form-two { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}
@media (max-width: 719px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-grid > .studio-card,
  .studio-grid > .result-card { grid-column: 1 / -1; width: 100%; max-width: none; }
  .studio-card .field-pair { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .studio-card .field-pair .field-row,
  .studio-card .field-pair .field-row label,
  .studio-card .field-pair .field-row select { width: 100%; min-width: 0; }
  .studio-card .guest-finder .btn { white-space: nowrap; }
  .content { padding-bottom: 0; }
  .mobile-dock {
    width: min(500px, calc(100vw - 16px));
    padding: 5px;
    border-radius: 24px;
    backdrop-filter: blur(34px) saturate(190%);
    -webkit-backdrop-filter: blur(34px) saturate(190%);
  }
  .mobile-dock.is-tucked { display: none; }
  .dock-item { min-width: 0; min-height: 56px; gap: 1px; padding: 5px 1px 4px; font-size: clamp(10px, 2.65vw, 11.5px); line-height: 1.12; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .dock-item:not(.dock-primary) { padding-top: 5px; }
  .dock-item.dock-primary { padding-top: 20px; }
  .dock-orbit { top: -10px; width: 32px; height: 32px; border-radius: 11px; box-shadow: 0 7px 18px rgba(15,23,42,.26), inset 0 1px 0 rgba(255,255,255,.30); }
  .dock-icon { width: 21px; height: 20px; }
  .dock-icon svg { width: 17px; height: 17px; }
  .dock-primary .dock-icon { width: 20px; height: 20px; }
  .dock-primary .dock-icon svg { width: 18px; height: 18px; }
  .mobile-dock { overflow: visible; }
  .field-row { grid-template-columns: minmax(72px, .68fr) minmax(0, 1.32fr); gap: 10px; }
  .field-row select, .field-pair, .field-pair .field-row, .prompt-field, .billing-row, .billing-switch { min-width: 0; }
  .studio-card .form-stack { gap: 11px; }
}
@media (max-width: 430px) {
  .studio-card .field-pair { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .studio-card .field-pair .field-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .studio-card #model, .studio-card #ratio { width: 100%; max-width: 100%; }
  .studio-card .segment-long { display: none; }
  .studio-card .segment-short { display: inline; }
  .studio-card .form-stack { gap: 9px; }
  .studio-card .prompt-field textarea { min-height: 132px; }
  .studio-card .trust-note { font-size: 10.5px; line-height: 1.5; }
}
@media (min-width: 1024px) {
  .app-frame { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  .side-nav { display: flex; }
  .mobile-dock { display: none; }
  .content { padding-bottom: 0; }
}
@media (max-width: 1023px) {
  .site-footer { max-width: none; padding-inline: 16px; }
  .site-footer nav { gap: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .mobile-dock { transition: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-dock { background: rgba(255,255,255,.96); }
}
.editor-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 4px 14px; flex-wrap: wrap; }
.editor-top-left { display: flex; align-items: flex-start; gap: 12px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.7); backdrop-filter: blur(14px); font-size: 18px; flex: 0 0 auto; }
.editor-title { border: 0; background: transparent; font-size: 26px; font-weight: 800; letter-spacing: -.03em; padding: 0; width: min(60vw, 520px); }
.editor-title:focus { outline: 2px solid rgba(37,99,235,.3); border-radius: 8px; }
.editor-title-static { font-size: 26px; margin: 0 0 4px; letter-spacing: -.03em; }
.editor-sub { margin: 2px 0 0; font-size: 12px; }
.editor-top-right { display: flex; align-items: center; gap: 8px; position: relative; }
.editor-menu { position: absolute; top: 52px; right: 0; z-index: 30; min-width: 190px; padding: 8px; border-radius: 14px; background: white; border: 1px solid var(--color-border); box-shadow: 0 20px 50px rgba(15,23,42,.18); display: grid; gap: 2px; }
.editor-menu button, .editor-menu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; font-size: 13px; }
.editor-menu button:hover, .editor-menu a:hover { background: #f1f5f9; }
.editor-menu .is-danger { color: #b91c1c; }
.editor-grid { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(220px, 280px); gap: 16px; align-items: start; }
.commerce-editor-grid { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(200px, 240px); }
.editor-panel { display: grid; gap: 12px; }
.panel-block { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.panel-block .field-label { display: block; margin: 12px 0 6px; }
.panel-block .field-label:first-child { margin-top: 0; }
.editor-canvas { min-height: 520px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.canvas-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.canvas-filter { margin-bottom: 0; flex-wrap: wrap; }
.canvas-filter .segment { min-height: 34px; padding: 0 12px; font-size: 12px; }
.canvas-empty { min-height: 380px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--color-muted-foreground); gap: 6px; }
.canvas-groups { display: grid; gap: 18px; }
.node-group h3 { font-size: 13px; letter-spacing: .04em; color: var(--color-muted-foreground); margin: 0 0 8px; }
.node-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.node-card { position: relative; border-radius: 14px; overflow: hidden; background: white; border: 2px solid transparent; cursor: pointer; text-align: left; padding: 0; }
.node-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.node-card.is-selected { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
.node-card figcaption { padding: 7px 9px; font-size: 11px; display: flex; justify-content: space-between; gap: 6px; }
.node-badge { color: var(--color-muted-foreground); }
.node-detail img { width: 100%; border-radius: 12px; }
.node-detail .node-title { font-weight: 700; margin: 10px 0 4px; }
.node-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.preset-list { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; padding-right: 2px; margin: 8px 0 12px; }
.preset-item { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: rgba(248,250,252,.9); border: 1px solid transparent; font-size: 12px; }
.preset-item:has(input:checked) { border-color: var(--color-primary); background: #eff6ff; }
.preset-item:has(input:checked) strong { color: #1d4ed8; }
.preset-item:has(input:checked)::after { content: '已选'; margin-left: auto; align-self: center; padding: 2px 7px; border-radius: 999px; background: #2563eb; color: white; font-size: 10px; font-weight: 700; white-space: nowrap; }
.preset-item input { margin-top: 3px; }
.preset-item strong { display: block; font-size: 12px; }
.preset-item small { color: var(--color-muted-foreground); font-size: 11px; line-height: 1.45; }
.preset-pane[hidden] { display: none; }
.editor-price { display: flex; justify-content: space-between; padding: 10px 0 2px; font-size: 13px; border-top: 1px dashed var(--color-border); margin-top: 10px; }
.editor-actions { position: sticky; bottom: 12px; }
.editor-feedback { min-height: 18px; margin: 8px 0 0; font-size: 12px; color: var(--color-muted-foreground); }
.ratio-lock { display: flex; align-items: center; font-weight: 700; color: var(--color-foreground); background: var(--color-muted); }
.hint-left { text-align: left; margin: 6px 0 0; font-size: 11px; }
.mini-list { display: grid; gap: 8px; margin: 8px 0 0; }
.mini-list div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.mini-list dt { color: var(--color-muted-foreground); }
.mini-list dd { margin: 0; font-weight: 700; }
.job-list { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.job-row { padding: 8px 10px; border-radius: 10px; background: rgba(248,250,252,.9); font-size: 11px; }
.job-row header { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; margin-bottom: 3px; }
.batch-board { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; font-size: 12px; }
.batch-board header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.batch-orders { margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: #ffffff; border: 1px solid #e5e7eb; font-size: 12px; }
.batch-orders:empty { display: none; }
.batch-orders header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.batch-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #f3f4f6; }
.batch-order:first-of-type { border-top: 0; }
.batch-progress { height: 8px; border-radius: 999px; background: #fef3c7; overflow: hidden; margin-bottom: 8px; }
.batch-progress span { display: block; height: 100%; background: var(--color-primary); }
.batch-item { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 700; }
.chip-live { background: #ecfdf5; color: #047857; }
.chip-muted { background: #f1f5f9; color: #64748b; }
.persona-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.persona-filter { margin-bottom: 0; max-width: 360px; }
.persona-card { display: grid; grid-template-columns: 132px minmax(0,1fr); overflow: hidden; }
.persona-cover, .commerce-cover { display: block; position: relative; background: #e2e8f0; min-height: 132px; }
.persona-cover img, .commerce-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.persona-cover-empty { display: grid; place-items: center; height: 100%; min-height: 132px; color: #94a3b8; font-size: 12px; text-align: center; }
.cover-badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(15,23,42,.6); color: white; font-size: 10px; }
.persona-card-body { padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.persona-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.persona-card-head h2 { margin: 0; font-size: 17px; }
.persona-meta, .persona-expire { margin: 0; font-size: 12px; }
.persona-card-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.persona-create { padding: 22px; display: grid; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid.compact { gap: 10px; margin-top: 8px; }
.form-span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-error { margin: 0; color: #b91c1c; font-size: 12px; min-height: 16px; }
.upload-drop { padding: 14px; border: 1px dashed #bfdbfe; border-radius: 12px; background: #eff6ff; }
.upload-drop input[type=file] { font-size: 13px; display: block; }
.source-image { width: 100%; border-radius: 12px; display: block; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 26px 2px 12px; }
.section-head h2 { margin: 0; font-size: 18px; }
.commerce-cover { min-height: 160px; }
.commerce-card { display: grid; grid-template-columns: 160px minmax(0,1fr); overflow: hidden; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel-card { padding: 20px; margin-bottom: 16px; }
.panel-card h2 { font-size: 17px; margin: 0 0 6px; }
.invite-copy, .invite-link-row { display: flex; gap: 8px; margin: 10px 0; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; font-size: 11px; color: var(--color-muted-foreground); padding: 8px 10px; border-bottom: 1px solid var(--color-border); }
.data-table td { padding: 10px; border-bottom: 1px solid #eef2f7; }
.status-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #f1f5f9; }
.status-pending { background: #fffbeb; color: #b45309; }
.status-available { background: #ecfdf5; color: #047857; }
.status-withdrawn, .status-paid, .status-approved { background: #eff6ff; color: #1d4ed8; }
.status-rejected, .status-reversed { background: #fef2f2; color: #b91c1c; }
.small-copy { font-size: 12px; }
.muted-small { font-size: 11px; color: var(--color-muted-foreground); }
@media (max-width: 1180px) {
  .editor-grid, .commerce-editor-grid { grid-template-columns: minmax(240px, 300px) minmax(0,1fr); }
  .editor-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .editor-grid, .commerce-editor-grid { grid-template-columns: 1fr; }
  .editor-right { grid-template-columns: 1fr; }
  .node-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .persona-card, .commerce-card { grid-template-columns: 110px minmax(0,1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .editor-wide, dialog, .checkout-dialog, .preset-pane, .preset-item, .preset-item span, .preset-item small { min-width: 0; }
  .editor-title { width: min(58vw, 320px); font-size: 20px; }
  .editor-canvas { min-height: 320px; padding: 12px; }
  .node-grid { gap: 8px; }
  .editor-top-right { flex-wrap: wrap; }
  .editor-actions { position: static; }
  .preset-list { max-height: 260px; }
  .batch-order { flex-wrap: wrap; }
}
.notice-inline { margin: 4px 0 0; }
.editor-left { align-content: start; }
.editor-more { min-width: 72px; }
.mode-switch { margin-bottom: 12px; }
.preset-tabs { flex-wrap: wrap; margin-bottom: 12px; }
.preset-tabs .segment { min-height: 36px; font-size: 12px; padding: 0 10px; }
.source-picker { padding: 10px; border-radius: 12px; background: rgba(248,250,252,.9); border: 1px dashed #cbd5e1; }
.source-current { display: flex; gap: 10px; align-items: flex-start; }
.source-current img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.source-current strong { font-size: 13px; display: block; margin-bottom: 2px; }
.source-empty { margin: 0; font-size: 12px; }
.guest-query-result { width: 100%; }
.guest-result { margin-top: 12px; padding: 14px; border-radius: 14px; background: rgba(248,250,252,.92); }
.guest-result header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.job-asset { margin: 0; overflow: hidden; border-radius: 12px; background: white; }
.job-asset img { display: block; width: 100%; border-radius: 12px; }

/* 协议与规则：前台阅读页和会员中心入口。 */
.site-footer { max-width: 1440px; margin: 0 auto; padding: 18px 28px 120px; color: var(--color-muted-foreground); font-size: 12px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
.site-footer a { color: var(--color-muted-foreground); }
.site-footer a:hover { color: var(--color-primary); }
.site-footer p { margin: 0; }
.legal-head { align-items: flex-start; }
.legal-card { max-width: 900px; padding: clamp(22px, 4vw, 42px); }
.legal-card p { margin: 0 0 1em; line-height: 1.85; color: var(--color-foreground); font-size: 15px; }
.legal-card p:first-child { font-size: 13px; color: var(--color-muted-foreground); padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--color-border); }
.legal-updated { font-size: 12px !important; color: var(--color-muted-foreground) !important; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; margin-top: 16px; padding: 18px; }
.legal-links a, .legal-entry-links a { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.82); border: 1px solid var(--color-border); color: var(--color-muted-foreground); font-size: 13px; }
.legal-links a:hover, .legal-entry-links a:hover { color: var(--color-primary); border-color: rgba(37,99,235,.35); }
.legal-entry-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* 会员中心数据权利：导出与注销。 */
.data-rights-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.is-danger-text { color: #b42318; }
.danger-zone { margin-top: 18px; padding: 18px; border: 1px solid rgba(185,28,28,.24); border-radius: 16px; background: rgba(254,242,242,.82); display: grid; gap: 10px; }
.danger-zone-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.danger-zone-head strong { color: #991b1b; }
.danger-zone .text-action { background: none; border: 0; color: var(--color-muted-foreground); padding: 4px 6px; }
.danger-zone .field-label { margin-top: 2px; }
.danger-zone .btn-danger { background: #b42318; color: white; border-color: #b42318; }
.danger-zone .btn-danger:hover { background: #991b1b; }
.danger-zone .btn-danger:disabled { opacity: .55; cursor: not-allowed; }
.close-blockers, .close-warnings { padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.close-blockers { background: rgba(254,226,226,.9); color: #991b1b; }
.close-warnings { background: rgba(254,249,195,.9); color: #854d0e; }
.close-blockers p, .close-warnings p { margin: 0 0 4px; }
.close-blockers p:last-child, .close-warnings p:last-child { margin-bottom: 0; }
.check-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #7f1d1d; line-height: 1.6; }
.check-row input { margin-top: 3px; }
@media (max-width: 719px) {
  .site-footer { padding: 14px 16px 24px; }
  .legal-card { padding: 20px 16px; }
  .legal-card p { font-size: 14px; line-height: 1.8; }
}
@supports (padding: max(0px)) {
  @media (max-width: 1023px) {
    .site-footer { padding-bottom: 24px; }
  }
}
@media (max-width: 390px) {
  .topbar { padding-inline: 12px; gap: 8px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand-mark { width: 28px; height: 28px; }
  .top-actions { gap: 6px; }
  .pill { padding: 7px 11px; font-size: 13px; }
  .top-actions .btn { min-height: 38px; padding-inline: 13px; font-size: 13px; }
  .app-frame { padding-inline: 12px; }
  .hero { padding-top: 18px; }
  h1 { font-size: 29px; }
  .studio-card, .result-card { padding: 14px; }
  .segment { padding-inline: 2px; font-size: 12px; }
  .studio-card .segmented .segment { font-size: 12px; line-height: 1.25; }
  .studio-card, .studio-card .form-stack, .studio-card .field-pair, .studio-card .billing-row, .guest-finder { min-width: 0; }
  .studio-card .segmented { flex-wrap: nowrap; overflow: visible; }
  .studio-card .segmented .segment { font-size: 12px; white-space: normal; }
  .guest-finder { flex-direction: column; }
  .guest-finder .btn { width: 100%; }
  .segment-long { display: none; }
  .segment-short { display: inline; }
  .checkout-dialog { padding: 20px 16px; border-radius: 18px; }
  .studio-card .prompt-field textarea { min-height: 118px; }
  .studio-card .form-stack { gap: 8px; }
  .studio-card .studio-intro p:last-child { font-size: 11px; line-height: 1.45; }
}
@media (hover: none) {
  .mobile-dock { touch-action: manipulation; }
  .dock-item { min-height: 48px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .app-frame { padding-inline: 16px; }
  .hero { padding: 16px 2px 14px; }
  .studio-card, .result-card { padding: 14px; }
  .prompt-field textarea { min-height: 108px; }
}
@keyframes dock-rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 1023px) {
  .page-home .app-viewport { scroll-padding-bottom: 178px; }
  .page-home .site-footer { padding-bottom: 178px; }
  .page-home .generate-submit-inline { display: none !important; }
  .page-home #mobile-action-mount .generate-submit-mobile {
    display: flex !important;
    position: fixed;
    z-index: 39;
    left: 8px;
    right: 8px;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 72px);
    width: auto;
    max-width: 500px;
    margin-inline: auto;
    min-height: 54px;
    transform: none;
    padding: 9px 16px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37,99,235,.94), rgba(29,78,216,.96));
    box-shadow: 0 16px 38px rgba(30,64,175,.30), inset 0 1px 0 rgba(255,255,255,.24);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    animation: generator-rise .42s cubic-bezier(.22,1,.36,1) both;
    scroll-margin: 0;
  }
  .page-home #mobile-action-mount .generate-submit-mobile:active { transform: scale(.985); }
  .page-home #mobile-action-mount .generate-submit-mobile .generate-submit-price { display: block; }
  .page-home #mobile-action-mount .generate-submit-mobile.is-generator-tucked { display: none !important; }
}
@keyframes generator-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-home .generate-submit[disabled] { opacity: .78; cursor: wait; }
@media (prefers-reduced-motion: reduce) {
  .checkout-dialog[open] { animation: none; }
}
