:root {
  color-scheme: dark;
  --bg: #08090b;
  --surface: #151619;
  --raised: #1b1c20;
  --ink: #f5f6f8;
  --muted: #9b9da6;
  --line: #2b2d33;
  --accent: #4385f5;
  --focus: #72a5ff;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; color: var(--ink); background: var(--bg); overflow-x: hidden; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .5; }
textarea { resize: vertical; min-height: 60px; }
img { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.svg-defs { position: absolute; width: 0; height: 0; }
:focus-visible, .upload-label:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
button, a, .upload-label { transition: background-color .18s, color .18s, border-color .18s, transform .18s; }
button:hover:not(:disabled), a:hover { color: #7faeff; }
.shell { width: min(calc(100% - 64px), 1050px); margin-inline: auto; }
.shell-wide { width: min(calc(100% - 64px), 1380px); margin-inline: auto; }
.nav { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand, .nav nav, .nav-actions, .nav-actions button { display: flex; align-items: center; }
.brand { gap: 10px; font-size: 17px; font-weight: 750; letter-spacing: -.035em; white-space: nowrap; }
.brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }
.nav nav { align-self: stretch; gap: clamp(20px, 2.8vw, 42px); color: #b5b6bc; font-size: 13px; }
.nav nav > * { display: grid; place-items: center; white-space: nowrap; }
.nav nav .active { color: #fff; }
.nav-actions { gap: 10px; white-space: nowrap; }
.nav-actions button { gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 22px; border: 1px solid #36383e; }
.nav-actions button svg { width: 15px; height: 15px; }
.credit-pill { background: #171a20; color: #cbd8f3; }
.coin-dot { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 11px var(--mono); }
.account-button { background: #f2f3f5; color: #17181b; font-weight: 650; max-width: 160px; }
.account-button:hover:not(:disabled) { color: #111; background: #fff; }
.account-button span { overflow: hidden; text-overflow: ellipsis; }
.hero { padding-top: 50px; }
.hero-heading { text-align: center; }
.hero-heading h1 { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -.045em; }
.hero-heading p { max-width: 720px; margin: 18px auto 0; color: #c2c3c9; font-size: 15px; line-height: 1.9; }
.composer { max-width: 820px; margin: 38px auto 0; padding: 16px; border: 1px solid #2a2c31; border-radius: 18px; background: #1c1d20; box-shadow: 0 18px 55px #0004; }
.composer-main { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 15px; min-height: 125px; }
.upload-label { cursor: pointer; display: grid; place-items: center; align-content: center; gap: 3px; min-width: 0; height: 104px; padding: 7px; border: 1px solid #30343b; border-radius: 12px; background: #24262b; text-align: center; }
.upload-label:hover, .upload-label.dragging { border-color: var(--accent); background: #232b39; }
.upload-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-label > span { color: #69a1ff; line-height: 1; }
.upload-label > span svg { width: 25px; height: 25px; }
.upload-label b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #74a7fb; font-size: 11px; }
.upload-label small, .upload-label em { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #858991; font-size: 8px; font-style: normal; }
.prompt-wrap { display: grid; min-width: 0; }
.prompt-wrap textarea { width: 100%; border: 0; outline: 0; background: transparent; padding: 4px 2px; color: #f3f4f6; font-size: 14px; line-height: 1.8; }
.prompt-wrap textarea::placeholder { color: #777a83; }
.prompt-wrap > span { padding-right: 3px; text-align: right; color: #71747d; font: 9px var(--mono); }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 13px; }
.composer-options, .style-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.model-pill { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid #34363d; border-radius: 9px; background: #25272c; color: #d7d9df; font-size: 11px; }
.model-pill svg { width: 14px; height: 14px; }
.style-chips button { padding: 6px 8px; border-radius: 7px; color: #858991; font-size: 10px; }
.style-chips .selected { color: #9fc1ff; background: #263348; }
.output-spec { color: #777b85; font-size: 9px; font-weight: 500; }
.generate-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 146px; min-height: 43px; padding: 0 17px; border-radius: 11px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 7px 20px #246bc32e; }
.generate-button:hover:not(:disabled), .blue-cta:hover { color: #fff; background: #5a96f7; transform: translateY(-1px); }
.generate-button small { color: #e1ebff; font-size: 10px; }
.control-note { margin-top: 9px; color: #777b84; text-align: right; font-size: 9px; }
.generation-canvas { max-width: 960px; margin: 24px auto 0; overflow: hidden; border: 1px solid #303239; border-radius: 18px; background: #14161a; }
.canvas { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.canvas-toolbar, .canvas-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 12px 16px; background: #191b1f; color: #a3a6af; font-size: 11px; }
.canvas-toolbar { border-bottom: 1px solid #2d3036; }
.canvas-toolbar > div { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: #24262c; }
.canvas-toolbar button { padding: 5px 9px; border-radius: 6px; }
.canvas-toolbar .active { color: #fff; background: #3a3d45; }
.canvas-toolbar > span i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #72a5ff; }
.canvas-toolbar > span b { font-weight: 500; }
.comparison { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; align-content: center; gap: 12px; min-height: 450px; padding: 28px 60px; background: radial-gradient(circle, #59627366 1px, transparent 1.4px) 0 0 / 19px 19px, #111317; }
.comparison figure { min-width: 0; padding: 6px; border: 1px solid #343841; border-radius: 13px; background: #1b1e24; }
.comparison figure:last-child { border-color: #426eb7; }
.comparison img, .result-frame { width: 100%; aspect-ratio: 1; border-radius: 8px; }
.comparison img { object-fit: contain; background: #05070c; }
.result-frame { position: relative; overflow: hidden; }
.result-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: #8d929f; background: #1b1e25; font-size: 12px; }
.comparison figcaption { display: flex; justify-content: space-between; align-items: center; padding: 8px 3px 2px; color: #858b98; font: 650 9px var(--mono); }
.comparison figcaption span { color: #e6e8ed; font: 650 11px -apple-system, "PingFang SC", sans-serif; }
.comparison figcaption i { padding: 2px 5px; border-radius: 4px; background: #263d65; color: #9ec2ff; font-style: normal; }
.compare-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #272b33; color: #75a7fb; }
.comparison.result-only { grid-template-columns: minmax(0, 360px); justify-content: center; }
.result-only figure:first-child, .result-only .compare-arrow { display: none; }
.generation-progress { padding: 11px 16px; border-top: 1px solid #2d3036; background: #191b1f; }
.generation-progress > div:first-child { display: flex; justify-content: space-between; color: #a3a6af; font-size: 11px; }
.progress-track { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 8px; background: #30333b; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s; }
.canvas-footer { border-top: 1px solid #2d3036; }
.canvas-footer > span, .canvas-footer > div, .canvas-footer button { display: flex; align-items: center; gap: 6px; }
.canvas-footer > span b { font-weight: 500; }
.canvas-footer button { padding: 7px 9px; border: 1px solid #363941; border-radius: 8px; background: #23262c; }
.canvas-footer .download-button { color: #9fc1ff; font-weight: 650; }
.works-section { margin-top: 36px; }
.works-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.works-heading h2 { font-size: 18px; }
.works-heading p { color: #858991; font-size: 11px; }
.works-all { display: flex; align-items: center; gap: 7px; color: #8db8ff; font-size: 11px; }
.works-empty { display: flex; align-items: center; gap: 15px; padding: 16px 20px; border: 1px solid #25272d; border-radius: 12px; background: #111216; }
.works-empty h3 { font-size: 12px; font-weight: 550; }
.works-empty p { margin-right: auto; color: #777b84; font-size: 10px; }
.works-empty .secondary-action { width: auto; min-height: 32px; padding: 5px 13px; font-size: 10px; }
.work-date-group + .work-date-group { margin-top: 28px; }
.work-date-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.work-date-heading h3 { font-size: 14px; }
.work-date-heading span { color: #777c88; font: 10px var(--mono); }
.work-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.work-card { min-width: 0; overflow: hidden; text-align: left; border: 1px solid #292c33; border-radius: 12px; background: #15171b; }
.work-card:hover { color: #fff; border-color: #4b638c; transform: translateY(-2px); }
.work-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 1.15; overflow: hidden; background: #1d2026; color: #9096a3; font-size: 11px; }
.work-thumb img { width: 100%; height: 100%; object-fit: contain; background: #080b12; }
.work-thumb > i { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #161a22d9; color: #8db8ff; }
.work-thumb svg { width: 12px; height: 12px; }
.work-card-copy { display: block; padding: 10px 11px; }
.work-card-copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.work-card-copy span { color: #777d89; font: 9px var(--mono); }
.showcase { margin-top: 75px; }
.showcase-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 15px; }
.showcase-grid article { position: relative; min-width: 0; height: 410px; overflow: hidden; border-radius: 16px; background: #17191d; }
.showcase-grid article > video { width: 100%; height: 100%; object-fit: cover; }
.media-label { position: absolute; inset: auto 0 0; padding: 50px 22px 22px; background: linear-gradient(transparent, #07090de8); }
.media-label span { display: block; color: #b5b9c3; font-size: 10px; }
.media-label b { font-size: 18px; }
.editorial { margin-top: 140px; }
.editorial-heading { max-width: 800px; margin: 0 auto 52px; text-align: center; }
.editorial-heading h2, .section-heading h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.3; letter-spacing: -.04em; }
.editorial-heading p, .section-heading p { margin-top: 15px; color: #b4b6be; font-size: 14px; line-height: 1.9; }
.editorial-body { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 45px; align-items: stretch; }
.feature-list { padding: 20px 0; }
.feature-list article { padding: 17px 22px; border-left: 2px solid #34363c; color: #686b73; }
.feature-list article.active { border-color: #d9e6ff; color: #f3f4f6; }
.feature-list h3 { font-size: 21px; }
.feature-list p { margin-top: 11px; color: #858992; font-size: 12px; line-height: 1.9; }
.feature-list article:not(.active) p { display: none; }
.editorial-media { position: relative; min-width: 0; height: 480px; overflow: hidden; border-radius: 17px; background: #17191e; }
.editorial-media > span { position: absolute; z-index: 1; left: 22px; bottom: 18px; color: #e0e4ed; font: 10px var(--mono); letter-spacing: .12em; text-shadow: 0 1px 6px #000; }
.dark-media { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1a2946, #080b13 70%); }
.dark-media video { width: 100%; height: 100%; object-fit: cover; }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #23252b; }
.split-media > div { display: grid; place-items: center; min-width: 0; background: #eae4da; }
.split-media > div:nth-child(2) { background: #e7edfc; }
.split-media video { width: 100%; height: 100%; object-fit: cover; }
.split-media > span { color: #d6d9e1; }
.history-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 28px; background: #121419; }
.history-media > div { position: relative; min-width: 0; overflow: hidden; border: 1px solid #30333c; border-radius: 12px; background: #1b1e25; }
.history-media video { width: 100%; height: 100%; object-fit: cover; }
.history-media span { position: absolute; left: 13px; bottom: 12px; color: #d6dae4; font-size: 11px; }
.how-section { margin-top: 150px; }
.section-heading { margin-bottom: 45px; text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps-grid article { position: relative; min-height: 390px; padding: 40px 30px; overflow: hidden; border-radius: 16px; background: #1c1d20; }
.steps-grid h3 { padding-top: 180px; font-size: 22px; line-height: 1.45; }
.steps-grid p { margin-top: 15px; color: #a7a9b1; font-size: 13px; line-height: 1.9; }
.steps-grid article > span { position: absolute; right: 24px; bottom: 7px; color: #ffffff08; font-size: 120px; font-weight: 800; line-height: 1; }
.blue-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; min-width: 220px; min-height: 58px; margin: 45px auto 0; padding: 13px 25px; border-radius: 32px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; }
.advantages { margin-top: 140px; }
.advantage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.advantage-grid article { padding: 25px 28px; }
.advantage-grid article + article { border-left: 1px solid #34363c; }
.advantage-grid h3 { font-size: 15px; }
.advantage-grid p { margin-top: 10px; color: #878b94; font-size: 12px; }
.scenes { margin-top: 140px; }
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.scene-grid article { padding-bottom: 25px; border-radius: 15px; overflow: hidden; background: #17191d; }
.scene-grid article > div { height: 235px; margin-bottom: 23px; background: #0c0f17; }
.scene-grid video { width: 100%; height: 100%; object-fit: cover; }
.scene-grid h3, .scene-grid p { margin-inline: 23px; }
.scene-grid h3 { font-size: 18px; }
.scene-grid p { margin-top: 10px; color: #999da7; font-size: 12px; }
.faq-section { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr); gap: 70px; margin-top: 150px; }
.faq-heading h2 { font-size: 36px; line-height: 1.3; letter-spacing: -.04em; }
.faq-heading p { margin-top: 12px; color: #858992; }
.faq-list details { padding: 17px 16px; border-bottom: 1px solid #303239; border-radius: 9px; background: #141518; }
.faq-list details + details { margin-top: 8px; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-weight: 650; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list p { padding: 12px 25px 0 0; color: #999da7; font-size: 12px; line-height: 1.9; }
.final-cta { margin-top: 130px; margin-bottom: 110px; padding: 60px 30px; border-top: 1px solid #292b31; text-align: center; }
.final-cta h2 { font-size: 38px; letter-spacing: -.04em; }
.final-cta p { margin-top: 12px; color: #92969f; }
.footer { border-top: 1px solid #27292f; background: #0c0d10; }
.footer-main { display: flex; justify-content: space-between; gap: 50px; padding-block: 48px; }
.footer-brand .brand { width: max-content; }
.footer-brand p { margin-top: 13px; color: #858992; font-size: 11px; }
.footer-links { display: flex; gap: 65px; }
.footer-links > div { display: grid; align-content: start; gap: 9px; min-width: 80px; font-size: 11px; }
.footer-links b { margin-bottom: 4px; font-size: 12px; }
.footer-links a, .footer-links button { width: max-content; color: #858992; text-align: left; font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid #27292f; color: #6f737c; font-size: 10px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 14px; background: #000a; backdrop-filter: blur(6px); }
body.modal-open { overflow: hidden; }
.modal, .history-drawer { position: relative; width: min(100%, 510px); max-height: 100%; overflow: auto; border: 1px solid #34363d; border-radius: 18px; padding: 23px; background: #17191d; color: var(--ink); box-shadow: 0 24px 90px #0009; }
.modal-close { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #363941; border-radius: 9px; background: #23262c; }
.modal > .modal-close { position: absolute; top: 12px; right: 12px; }
.modal h2, .drawer-head h2 { margin: 4px 0; font-size: 24px; }
.modal p, .modal > small { color: #9296a0; }
.modal-kicker, .drawer-head div > span { color: #86b2ff; font: 650 9px var(--mono); letter-spacing: .08em; }
.auth-modal { width: min(100%, 400px); text-align: center; }
.modal-logo { width: 50px; height: 50px; margin: 1px auto 11px; border-radius: 12px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 13px; padding: 3px; border-radius: 9px; background: #23252b; }
.auth-tabs button { padding: 7px; border-radius: 7px; color: #9296a0; }
.auth-tabs .active { color: #fff; background: #3a3d45; font-weight: 700; }
#auth-form { display: grid; gap: 10px; text-align: left; }
#auth-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 650; }
#auth-form input { width: 100%; padding: 10px; border: 1px solid #383b43; border-radius: 8px; outline: 0; background: #22242a; }
#auth-form input:focus { border-color: var(--focus); }
.code-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 124px; gap: 8px; }
.code-input-row .secondary-action { min-height: 40px; padding-inline: 8px; font-size: 12px; white-space: nowrap; }
.primary-action, .secondary-action { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 41px; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; }
.primary-action:hover:not(:disabled), .secondary-action:hover:not(:disabled) { color: #fff; background: #5a96f7; }
.secondary-action { border: 1px solid #35445e; background: #202b3e; color: #a9c7ff; }
.auth-benefits { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; padding-block: 12px; font-size: 11px; }
.auth-benefits svg { width: 15px; height: 15px; color: #86b2ff; }
.auth-modal > small a { color: #86b2ff; }
.credits-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-right: 32px; }
.balance { display: grid; color: #9296a0; text-align: right; font-size: 11px; }
.balance > b { color: #86b2ff; font-size: 22px; }
.balance small { font-size: 11px; }
.credit-breakdown { display: flex; justify-content: flex-end; gap: 16px; color: #9296a0; font-size: 12px; }
.credit-breakdown b { margin-left: 4px; color: var(--ink); }
.credits-tabs { display: flex; gap: 5px; margin: 12px 0; }
.credits-tabs button { padding: 5px 8px; border: 1px solid #383b43; border-radius: 7px; color: #9296a0; font-size: 12px; }
.credits-tabs button.active { color: #a9c7ff; background: #242a35; }
.credit-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 15px 0 12px; }
.credit-packs button { display: grid; justify-items: start; gap: 4px; min-width: 0; padding: 12px 9px; border: 1px solid #383b43; border-radius: 9px; background: #22242a; text-align: left; }
.credit-packs button.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.credit-packs .pack-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.credit-packs b { font-size: clamp(17px, 3vw, 23px); }
.credit-packs small, .credit-packs em { margin-left: 2px; font-size: 10px; font-style: normal; }
.credit-packs strong { color: #ff9084; font-size: 16px; }
.alipay-mark { padding: 2px 4px; border-radius: 4px; background: #fff; color: #1763d8; }
.payment-note, .credit-rules, .empty-state { margin-top: 8px; font-size: 12px; }
.credit-rules { display: grid; gap: 5px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #34363d; color: #9296a0; }
.purchase-list { display: grid; gap: 7px; }
.purchase-list article { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px; border: 1px solid #383b43; border-radius: 8px; background: #22242a; }
.purchase-list small { color: #9296a0; overflow-wrap: anywhere; }
.purchase-list span { color: #86b2ff; font-size: 12px; }
.drawer-backdrop { place-items: stretch end; padding: 0; }
.history-drawer { border-radius: 16px 0 0 16px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 15px; }
.history-list { display: grid; gap: 7px; }
.history-list article { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border: 1px solid #34363d; border-radius: 8px; background: #22242a; }
.history-list img { width: 64px; aspect-ratio: 1; object-fit: cover; border-radius: 5px; background: #111318; }
.history-list p, .history-list article div span { color: #9296a0; font-size: 11px; }
.history-list p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.history-list article button { padding: 7px; }
.drawer-create { margin-top: 13px; }
.toast { position: fixed; z-index: 15; left: 50%; bottom: 20px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); padding: 10px 15px; border: 1px solid var(--focus); border-radius: 9px; background: #1b1e24; color: #fff; box-shadow: 0 9px 35px #0006; }
.soft-badge, .seo-kicker { color: #8db8ff; font-size: 11px; }
.return-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.return-card { width: min(100%, 460px); padding: 34px; border: 1px solid #34363d; border-radius: 20px; background: #17191d; text-align: center; }
.return-card > img { width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 13px; }
.return-card h1 { margin: 12px 0 9px; font-size: 26px; }
.return-card p { margin-bottom: 20px; color: #9296a0; }
.return-balance { display: grid; margin: 18px 0; padding: 14px; border-radius: 10px; background: #202b3e; color: #a9c7ff; }
.return-balance b { font-size: 30px; }
.text-button { margin-top: 15px; color: #86b2ff; }
.legal-page { width: min(calc(100% - 40px), 880px); margin: 0 auto; padding: 28px 0 50px; }
.legal-page > .brand { width: max-content; }
.legal-page article { margin-top: 28px; padding: clamp(24px, 5vw, 52px); border: 1px solid #34363d; border-radius: 18px; background: #17191d; }
.legal-page h1 { margin: 7px 0 10px; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.04em; }
.legal-page .lead { margin-bottom: 30px; color: #a2a6b0; font-size: 15px; }
.legal-page article h2 { margin: 26px 0 8px; font-size: 19px; }
.legal-page article p { color: #a2a6b0; line-height: 1.85; }
.legal-footer { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 22px; color: #9296a0; font-size: 12px; }
@media (max-width: 1050px) {
  .shell-wide { width: calc(100% - 48px); }
  .nav { gap: 18px; }
  .nav nav { gap: 18px; font-size: 11px; }
  .brand { font-size: 15px; }
  .nav-actions button { padding-inline: 10px; }
  .showcase-grid article { height: 340px; }
  .editorial-body { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
  .editorial-media { height: 420px; }
}
@media (max-width: 800px) {
  .shell, .shell-wide { width: calc(100% - 36px); }
  .nav { min-height: 74px; flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .nav nav { order: 3; width: 100%; min-height: 42px; justify-content: center; gap: 25px; }
  .nav-actions { margin-left: auto; }
  .hero { padding-top: 35px; }
  .showcase-grid { grid-template-columns: 1.3fr 1fr; }
  .showcase-grid article { height: 340px; }
  .showcase-grid article:nth-child(3) { grid-column: 1 / -1; height: 300px; }
  .showcase-grid article:nth-child(3) > img { padding: 15px; }
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .editorial { margin-top: 100px; }
  .editorial-heading { margin-bottom: 35px; }
  .editorial-body { grid-template-columns: 1fr; gap: 20px; }
  .feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
  .feature-list article { padding: 15px; border-left: 0; border-top: 2px solid #34363c; }
  .feature-list article.active { border-color: #d9e6ff; }
  .feature-list h3 { font-size: 16px; }
  .feature-list p { display: none !important; }
  .editorial-media { height: 400px; }
  .how-section, .advantages, .scenes, .faq-section { margin-top: 100px; }
  .steps-grid article { min-height: 350px; padding: 25px 20px; }
  .steps-grid h3 { padding-top: 165px; font-size: 18px; }
  .advantage-grid { grid-template-columns: 1fr 1fr; gap: 25px 0; }
  .advantage-grid article:nth-child(3) { border-left: 0; }
  .scene-grid article > div { height: 190px; }
  .scene-grid h3 { font-size: 15px; }
  .faq-section { grid-template-columns: 1fr; gap: 30px; }
  .faq-heading { text-align: center; }
  .footer-main { flex-direction: column; }
  .footer-links { justify-content: space-between; }
}
@media (max-width: 560px) {
  .shell, .shell-wide { width: calc(100% - 28px); }
  .nav { min-height: 65px; padding-top: 0; }
  .nav nav { display: none; }
  .brand { gap: 7px; font-size: 14px; letter-spacing: -.045em; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .nav-actions { gap: 6px; }
  .nav-actions button { min-height: 33px; padding-inline: 8px; font-size: 10px; }
  .coin-dot { display: none; }
  .nav-actions button svg { width: 12px; height: 12px; }
  .account-button { max-width: 63px; }
  .hero { padding-top: 25px; }
  .hero-heading h1 { font-size: 32px; }
  .hero-heading p { margin-top: 15px; font-size: 14px; line-height: 1.85; }
  .hero-heading p br { display: none; }
  .composer { margin-top: 26px; padding: 12px; border-radius: 16px; }
  .composer-main { grid-template-columns: 70px minmax(0, 1fr); gap: 11px; min-height: 190px; }
  .upload-label { width: 70px; height: 96px; padding: 5px; }
  .upload-label small, .upload-label em { display: none; }
  .prompt-wrap textarea { font-size: 13px; }
  .composer-bottom { align-items: flex-end; flex-direction: column; gap: 12px; }
  .composer-options { width: 100%; justify-content: space-between; }
  .output-spec { display: none; }
  .generate-button { width: 100%; }
  .control-note { text-align: center; }
  .generation-canvas { border-radius: 14px; }
  .comparison { min-height: 235px; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 5px; padding: 15px 11px; }
  .comparison figure { padding: 4px; border-radius: 9px; }
  .comparison figcaption { padding-top: 5px; font-size: 7px; }
  .comparison figcaption span { font-size: 9px; }
  .compare-arrow { width: 22px; height: 22px; }
  .compare-arrow svg { width: 13px; height: 13px; }
  .canvas-toolbar, .canvas-footer { padding: 10px; font-size: 9px; }
  .works-section { margin-top: 30px; }
  .works-heading h2 { font-size: 17px; }
  .works-empty { display: grid; justify-items: center; gap: 6px; padding: 19px 14px; text-align: center; }
  .works-empty p { margin: 0 0 5px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .showcase { margin-top: 55px; }
  .showcase-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .showcase-grid article { height: 210px; border-radius: 12px; }
  .showcase-grid article:first-child { grid-column: 1 / -1; height: 330px; }
  .showcase-grid article:nth-child(3) { grid-column: auto; height: 210px; }
  .showcase-grid article:nth-child(2) > img, .showcase-grid article:nth-child(3) > img { padding: 13px; }
  .media-label { padding: 35px 13px 13px; }
  .media-label b { font-size: 13px; }
  .editorial { margin-top: 90px; }
  .editorial-heading h2, .section-heading h2 { font-size: 27px; }
  .editorial-heading p, .section-heading p { font-size: 13px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list article { padding: 10px 13px; }
  .feature-list h3 { font-size: 14px; }
  .feature-list article.active p { display: block !important; font-size: 11px; }
  .editorial-media { height: 310px; }
  .split-media img { padding: 14px; }
  .history-media { gap: 7px; padding: 12px; }
  .history-media img { padding: 7px; }
  .history-media span { left: 7px; bottom: 7px; font-size: 9px; }
  .how-section, .advantages, .scenes, .faq-section { margin-top: 90px; }
  .section-heading { margin-bottom: 28px; }
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .steps-grid article { min-height: 260px; padding: 25px; }
  .steps-grid h3 { padding-top: 80px; font-size: 19px; }
  .steps-grid p { font-size: 12px; }
  .steps-grid article > span { font-size: 90px; }
  .blue-cta { min-width: 200px; min-height: 50px; margin-top: 30px; font-size: 14px; }
  .advantage-grid { gap: 0; }
  .advantage-grid article { padding: 20px 12px; }
  .advantage-grid h3 { font-size: 13px; }
  .advantage-grid p { font-size: 10px; }
  .scene-grid { grid-template-columns: 1fr; }
  .scene-grid article > div { height: 260px; }
  .scene-grid h3 { font-size: 17px; }
  .faq-heading h2 { font-size: 29px; }
  .faq-list summary { font-size: 13px; }
  .final-cta { margin-top: 80px; margin-bottom: 70px; padding: 40px 10px; }
  .final-cta h2 { font-size: 29px; }
  .footer-main { padding-block: 35px; gap: 30px; }
  .footer-links { gap: 20px; }
  .footer-links > div { min-width: 0; }
  .footer-bottom { flex-wrap: wrap; gap: 4px 15px; }
  .credit-packs { grid-template-columns: 1fr; }
  .credit-packs button { grid-template-columns: 1fr auto; align-items: center; }
  .credit-packs strong { grid-row: 1 / 3; grid-column: 2; }
  .history-list article { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .history-list img { width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
