* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.65; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, .btn { transition: background var(--motion), border-color var(--motion); }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 10px 12px; color: var(--ink); min-width: 0; }
textarea { resize: vertical; }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 600; }
button, .btn { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 9px 15px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.5; }
button:hover, .btn:hover { border-color: #b8b8be; background: var(--soft); }
.primary, .btn-accent, .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.primary:hover, .btn-accent:hover { background: #5542c5; color: #fff; }
.btn-sm, .mini-btn { font-size: 12px; padding: 7px 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -.045em; line-height: 1.2; margin-bottom: 18px; }
h2 { font-size: 23px; letter-spacing: -.025em; line-height: 1.35; }
h3 { font-size: 16px; }
small { font-size: 11px; color: var(--muted); font-weight: 400; }
code, pre, .mono, .price, .balance { font-family: var(--mono); }
code { overflow-wrap: anywhere; font-size: 12px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 12px; margin: 0; }
.muted, .fine-print { color: var(--muted); }
.fine-print { font-size: 11px; margin-top: 14px; }
.accent { color: var(--accent); }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .15em; margin-bottom: 20px; }
.lead { font-size: 16px; line-height: 1.9; color: var(--muted); }
.skip { position: fixed; top: -60px; left: 12px; background: white; z-index: 100; padding: 12px; }
.skip:focus { top: 0; }
.topbar { height: 76px; padding: 0 4vw; display: flex; gap: 52px; align-items: center; border-bottom: 1px solid var(--line); background: #ffffffee; position: sticky; top: 0; z-index: 30; }
.brand { font-size: 19px; font-weight: 700; letter-spacing: -.05em; display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; background: var(--ink); color: #fff; width: 30px; height: 30px; border-radius: 7px; font: 22px var(--mono); letter-spacing: -.2em; padding-right: 4px; }
.product-nav { display: flex; gap: 30px; height: 100%; align-items: center; }
.product-nav a { display: grid; align-items: center; height: 100%; border-bottom: 2px solid transparent; font-size: 13px; color: var(--muted); }
.product-nav .active { border-color: var(--accent); color: var(--ink); }
.account-actions { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.balance { font-size: 12px; }
.balance span { color: var(--muted); }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; list-style: none; display: grid; place-items: center; width: 32px; height: 32px; background: var(--accent-soft); color: var(--accent); border-radius: 50%; font-weight: 700; }
.dropdown { position: absolute; right: 0; top: 44px; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
.dropdown a, .dropdown button, .dropdown small { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; }
.mobile-menu { display: none; }
.work { max-width: 1240px; margin: auto; padding: 44px 40px 70px; min-height: calc(100vh - 190px); }
.work.wide { max-width: 1600px; padding: 28px 32px 50px; }
.page-heading { margin-bottom: 32px; }
.page-heading .eyebrow { margin-bottom: 12px; }
.page-heading p { color: var(--muted); }
.section { margin-top: 65px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title h2, .section-title p { margin-bottom: 0; }
.actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 25px 0; }
.home-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 90px; padding: 32px 0 15px; }
.home-hero h1 { font-size: clamp(40px, 4.7vw, 66px); line-height: 1.23; }
.hero-note { border-left: 1px solid var(--line); padding: 18px 0 18px 65px; align-self: center; }
.hero-number { font: 88px/1.3 var(--mono); letter-spacing: -.09em; }
.hero-number span { font: 14px var(--font); margin-left: 16px; }
.hero-note h3 { margin-top: 14px; }
.hero-note p { color: var(--muted); }
.hero-note a { font-size: 12px; color: var(--accent); }
.table-wrap, .table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; background: var(--surface); }
.table th { font-size: 11px; color: var(--muted); font-weight: 500; background: var(--soft); white-space: nowrap; }
.table td, .table th { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td { font-size: 12px; }
.table td small { display: block; }
.table .price { font-size: 16px; white-space: nowrap; }
.price small { display: inline !important; margin-left: 4px; }
.saving { display: inline-block; color: var(--saving); background: var(--saving-soft); border-radius: 4px; font-size: 11px; padding: 2px 8px; white-space: nowrap; }
.maintenance { color: #7c6740; background: #f6f2e9; padding: 12px 16px; border-radius: var(--radius); font-size: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.getting-started { padding-left: 20px; }
.getting-started li { padding: 8px 0 8px 10px; }
.getting-started p { font-size: 12px; color: var(--muted); margin: 4px 0; }
.codebox { border: 1px solid var(--line); border-radius: var(--radius); background: #f4f4f2; overflow: hidden; min-width: 0; }
.codebar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 11px; }
.codebar button { padding: 4px 10px; font-size: 11px; }
.codebox pre { padding: 20px; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 12px 0 0; color: var(--muted); }
.filters { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.filters label { flex: 1; min-width: 120px; }
.filters .search { flex: 2; }
.model-list { border-top: 1px solid var(--line); margin-top: 25px; }
.model-row { display: grid; grid-template-columns: 1.4fr .85fr 1.8fr auto; gap: 24px; padding: 26px 0; align-items: center; border-bottom: 1px solid var(--line); }
.model-identity { display: flex; gap: 14px; align-items: center; }
.model-identity h2 { font-size: 16px; margin: 0 0 4px; }
.model-identity code { font-size: 10px; color: var(--muted); }
.model-identity small, .model-spec small { display: block; margin-top: 6px; }
.model-glyph { width: 42px; height: 42px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 23px; flex-shrink: 0; }
.model-glyph sup { font-size: 12px; }
.model-spec { font-size: 12px; }
.model-rates > div { display: flex; gap: 10px; align-items: center; margin: 7px 0; font-size: 10px; }
.model-rates b { font-size: 14px; margin-left: auto; }
.model-rates b small { margin-left: 4px; }
.row-actions { display: grid; gap: 10px; text-align: center; font-size: 11px; }
.tabs, .account-nav { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs button, .account-nav a { white-space: nowrap; border: 0; border-radius: 0; padding: 13px 2px; background: transparent; border-bottom: 2px solid transparent; color: var(--muted); }
.tabs .active, .account-nav .active { color: var(--ink); border-bottom-color: var(--accent); }
.account-nav { margin-top: -20px; margin-bottom: 36px; }
.card, .pane { border: 1px solid var(--line); padding: 24px; background: #fff; border-radius: var(--radius-lg); margin-bottom: 20px; }
.model-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; margin: 15px 0 35px; }
.model-hero h1 { margin-top: 8px; }
.calculator { border: 1px solid var(--line); padding: 24px; border-radius: 12px; background: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-price { font: 32px var(--mono); margin: 18px 0 8px; }
.spec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; padding: 30px 0; border-block: 1px solid var(--line); }
.spec-grid span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.related { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.studio-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.studio-heading h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 4px; }
.studio-heading p { margin: 0; font-size: 12px; color: var(--muted); }
body:has(.studio-heading) .topbar { height: 64px; }
.work.wide:has(.studio-heading) { max-width: 1500px; padding-top: 22px; }
.admin-badge { font-size: 11px; color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.studio { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 22px; align-items: start; }
.studio-form { min-width: 0; padding: 20px; display: grid; align-content: start; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.studio-form h3, .studio-section-head h3 { margin: 0; font-size: 13px; font-weight: 600; }
.studio-form label { font-size: 13px; }
.studio-form textarea { font-weight: 400; font-size: 13px; line-height: 1.7; min-height: 96px; }
.studio-model-row { display: flex; gap: 16px; align-items: end; }
.studio-model-row label { flex: 1; }
.studio-model-row select { font-weight: 600; }
.studio-channel { flex-shrink: 0; font-size: 11px; color: var(--muted); padding-bottom: 12px; }
.studio-channel.available { color: var(--saving); }
.studio-channel.available::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.studio-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.studio-section-head > a, .studio-section-head > span { color: var(--muted); font-size: 11px; }
.studio-materials > .fine-print { margin: 6px 0 12px; }
.studio-settings { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 14px 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.studio-settings h3 { margin-bottom: 8px; }
.studio-settings select { font-size: 12px; font-weight: 400; padding: 8px 10px; }
.studio-ratios { grid-column: 1/-1; }
.studio-output { min-width: 0; display: grid; gap: 20px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { padding: 7px 10px; font-size: 11px; }
.chips .selected { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.ratio-icon { display: inline-block; border: 1.5px solid currentColor; height: 12px; width: 18px; border-radius: 2px; }
.field-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.canvas-wrap { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.result-heading { padding: 16px 20px; }
.canvas { background: #f4f3f8; aspect-ratio: 16/9; min-height: 240px; display: flex; align-items: center; justify-content: center; padding: 24px; color: var(--ink); text-align: center; border-block: 1px solid var(--line); }
.canvas-empty svg { width: 52px; height: 52px; color: #9c91c8; margin-bottom: 16px; }
.canvas h2 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.canvas p { color: var(--muted); font-size: 12px; max-width: 380px; margin: auto; }
.canvas:has(video:not([hidden])) { background: var(--canvas); padding: 0; }
.canvas video { width: 100%; height: 100%; max-height: 480px; object-fit: contain; }
.result-meta { padding: 16px 20px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.result-meta .actions { margin: 10px 0 0; }
.stage-list { display: flex; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 11px; flex-wrap: wrap; }
.stage-list .active { color: var(--accent); }
.history { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.history-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.history-list > p, .history-list > .skeleton { grid-column: 1/-1; }
.history-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 24px 0; margin: 0; }
.history-item { display: grid; min-width: 0; padding: 7px; width: 100%; text-align: left; justify-content: stretch; gap: 5px; font-size: 10px; }
.history-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item video { width: 100%; height: 75px; object-fit: cover; border-radius: 4px; background: var(--canvas); }
.history-placeholder { height: 75px; display: grid; place-items: center; background: var(--soft); border-radius: 4px; }
.generation-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); background: #fff; }
.generation-price { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 11px; }
.generation-bar strong { font-family: var(--mono); font-size: 18px; }
.generation-bar small { flex-basis: 100%; font-size: 10px; }
.generation-bar .actions { margin: 0; gap: 8px; }
.generation-bar button { font-size: 12px; padding: 10px 12px; white-space: nowrap; }
.generation-bar .primary { min-width: 122px; }
.generation-bar .fine-print { grid-column: 1/-1; margin: 0; font-size: 10px; }
[data-references] { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; align-items: start; }
[data-references] > .fine-print { grid-column: 1/-1; order: 1; margin: 0; }
.reference-box { min-width: 0; }
.reference-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; }
.dropzone { min-height: 64px; display: grid; align-content: center; justify-items: center; gap: 3px; padding: 8px; text-align: center; border: 1px dashed #cbc6df; background: #fbfaff; border-radius: 8px; font-size: 11px; color: var(--accent); cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.upload-symbol { font-size: 23px; line-height: 1.1; font-weight: 300; }
.reference-url { font-size: 10px; color: var(--muted); margin-top: 7px; }
.reference-url summary { cursor: pointer; }
.reference-links { display: flex; gap: 6px; margin-top: 8px; }
.reference-links input { padding: 7px; font-size: 10px; }
.reference-links button { padding: 5px 9px; font-size: 10px; white-space: nowrap; }
.reference-gallery { grid-column: 1/-1; order: 2; min-width: 0; }
.reference-gallery:not(:has(.reference-group:not([hidden]))) { display: none; }
.reference-gallery:has(.reference-group:not([hidden])) { padding-top: 4px; }
.reference-group h4 { font-size: 11px; margin: 4px 0 8px; color: var(--muted); font-weight: 500; }
.reference-group + .reference-group { margin-top: 14px; }
.reference-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(104px,1fr)); gap: 8px; }
.reference-group[data-kind="audio"] .reference-list { grid-template-columns: 1fr; }
.reference-group[data-kind="video"] .reference-list { grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); }
.reference-item { border: 1px solid var(--line); border-radius: 8px; padding: 6px; overflow: hidden; font-size: 10px; }
.reference-item img, .reference-item video { width: 100%; height: 66px; object-fit: cover; border-radius: 4px; }
.reference-item video { height: 120px; object-fit: contain; background: var(--canvas); }
.reference-item audio { width: 100%; height: 30px; }
.reference-item button { padding: 2px 6px; float: right; }
.reference-item progress { width: 100%; }
.reference-item .error { color: var(--danger); }
.reference-filename { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status, .pill { display: inline-block; padding: 3px 8px; border-radius: 5px; background: var(--soft); font-size: 10px; white-space: nowrap; }
.status.processing, .status.queued { color: var(--accent); background: var(--accent-soft); }
.status.failed { color: var(--danger); background: #f9eeee; }
.empty { text-align: center; color: var(--muted); padding: 45px 20px !important; }
.metrics { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 30px; }
.metric { padding: 28px; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric span { display: block; font-size: 12px; color: var(--muted); }
.metric b { display: block; font: 30px var(--mono); margin: 12px 0; }
.checklist { padding: 18px 0; margin-bottom: 25px; border-bottom: 1px solid var(--line); display: flex; gap: 28px; font-size: 12px; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 80px 0; align-items: center; }
.login-layout h1 { font-size: 45px; }
.login-panel { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 40px; }
.login-panel h2 { margin-top: 24px; }
.login-panel .btn { width: 100%; margin: 20px 0; }
.billing-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.networks { display: grid; gap: 9px; margin: 20px 0; }
.networks label { display: flex; border: 1px solid var(--line); border-radius: 8px; padding: 15px; align-items: center; gap: 15px; cursor: pointer; }
.networks label:has(:checked) { border-color: var(--accent); background: var(--accent-soft); }
.networks input { width: 16px; }
.networks small { display: block; }
.payment-grid { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 24px; margin-top: 25px; }
#payment-qr { background: #fff; padding: 8px; align-self: start; }
#payment-qr img, #payment-qr canvas { max-width: 100%; }
.payment-address { overflow-wrap: anywhere; font: 12px var(--mono); padding: 12px; background: var(--soft); margin: 10px 0; }
.payment-amount { font: 28px var(--mono); margin: 10px 0; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 36px; box-shadow: var(--shadow); max-width: min(600px,calc(100vw - 32px)); width: 100%; color: var(--ink); }
dialog::backdrop { background: #11152066; }
.dialog-close { float: right; padding: 3px 9px; }
dialog form { display: grid; gap: 18px; }
#key-value { display: block; padding: 16px; background: var(--soft); margin: 16px 0; }
#toasts { position: fixed; right: 24px; bottom: 24px; z-index: 100; width: min(400px,calc(100vw - 48px)); }
.toast { padding: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow); border-radius: 8px; margin-top: 8px; font-size: 12px; }
.toast a { color: #d1c8ff; display: block; margin-top: 6px; }
.site-footer { border-top: 1px solid var(--line); padding: 25px 4vw; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer .brand { font-size: 14px; }
.site-footer small { letter-spacing: 0; margin-left: 12px; }
.site-footer nav { display: flex; gap: 24px; font-size: 11px; color: var(--muted); }
.dh-bar-in { display: flex; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 26px; font-size: 12px; }
.dh-tabs { display: flex; gap: 20px; }
.dh-grid { display: grid; grid-template-columns: 190px minmax(0,1fr) 170px; gap: 35px; }
.dh-side, .dh-toc { position: sticky; top: 105px; align-self: start; font-size: 11px; }
.dh-sg, .dh-toc-h { color: var(--muted); margin: 24px 0 10px; font-size: 10px; }
.dh-sl, .dh-toc a { display: block; padding: 7px 0; }
.dh-sl.on { color: var(--accent); }
.dh-main { min-width: 0; }
.doc-content .card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 25px 0; background: transparent; }
.doc-bar { display: flex; gap: 20px; justify-content: space-between; }
.doc-bar h1 { font-size: 30px; margin-top: 10px; }
.copy-page { white-space: nowrap; }
.doc-content .tabs { gap: 16px; margin-bottom: 14px; }
.doc-content .tabs button { font-size: 11px; }
.dh-menu, .doc-close { display: none; }
.skeleton { background: var(--soft); height: 50px; border-radius: 8px; }
@media (max-width: 1200px) {
  .studio { gap: 16px; }
  .studio-form { padding: 18px; }
  .history-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .model-row { grid-template-columns: 1.2fr .8fr 1.8fr; gap: 14px; }
  .row-actions { grid-column: 1/-1; display: flex; align-items: center; }
  .dh-grid { grid-template-columns: 170px minmax(0,1fr); }
  .dh-toc { display: none; }
}
@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; }
  .studio-output { grid-template-columns: minmax(0,1fr) minmax(0,.8fr); align-items: start; }
  .canvas { min-height: 220px; }
}
@media (max-width: 700px) {
  .topbar { height: 62px; padding: 0 18px; gap: 12px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 26px; height: 26px; font-size: 19px; }
  .mobile-menu { display: block; order: 3; border: 0; padding: 7px; }
  .product-nav { display: none; position: absolute; left: 0; right: 0; top: 62px; height: auto; background: #fff; border-bottom: 1px solid var(--line); padding: 15px 22px; }
  .product-nav.open { display: flex; }
  .product-nav a { padding: 8px 0; }
  .account-actions { gap: 12px; }
  .balance { font-size: 10px; }
  .balance span { display: none; }
  .work, .work.wide { padding: 28px 18px 40px; }
  .home-hero, .split, .model-hero, .login-layout, .billing-layout { grid-template-columns: 1fr; gap: 28px; }
  .home-hero { padding: 10px 0; }
  .home-hero h1 { font-size: 43px; }
  .hero-note { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .hero-number { font-size: 60px; }
  .hero-note .eyebrow { margin-bottom: 6px; }
  .section { margin-top: 42px; }
  .section-title { align-items: start; gap: 12px; }
  .section-title > a { font-size: 10px; white-space: nowrap; padding-top: 4px; }
  h2 { font-size: 20px; }
  .table td, .table th { padding: 12px; }
  .price-table table { min-width: 560px; }
  .model-row { grid-template-columns: 1fr; gap: 17px; padding: 23px 0; }
  .model-spec { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .model-spec small { margin: 0; }
  .model-rates > div { gap: 12px; }
  .model-rates b { margin-left: 0; }
  .filters { gap: 9px; }
  .filters .search { flex-basis: 100%; }
  .filters label { min-width: 95px; }
  .model-hero { margin-top: 0; }
  .spec-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .studio-heading h1 { font-size: 21px; }
  .studio-heading { margin-bottom: 16px; }
  .studio-heading > a { padding: 6px 9px; font-size: 11px; }
  .work.wide:has(.studio-heading) { padding: 18px 12px 30px; }
  .studio-form { padding: 16px; gap: 16px; }
  .studio-output { grid-template-columns: 1fr; }
  .studio-channel { max-width: 80px; }
  .studio-section-head small { font-size: 10px; }
  .canvas { min-height: 210px; padding: 20px; }
  [data-references] { gap: 10px; }
  .reference-head { flex-wrap: wrap; font-size: 11px; gap: 2px; }
  .reference-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .reference-links { flex-wrap: wrap; }
  .reference-links button { width: 100%; }
  .generation-bar { padding: 10px 14px max(10px,env(safe-area-inset-bottom)); gap: 4px 8px; }
  .generation-bar strong { font-size: 16px; }
  .generation-bar button { font-size: 12px; padding: 10px; }
  .generation-bar .primary { min-width: 112px; }
  .generation-bar [data-code-open] { padding: 10px 6px; border-color: transparent; }
  .admin-badge { padding: 2px 5px; font-size: 10px; }
  body:has(.studio-heading) .product-nav { top: 64px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 20px; border-bottom: 1px solid var(--line); }
  .metric b { font-size: 23px; }
  .checklist { flex-direction: column; gap: 12px; }
  .account-nav { gap: 20px; margin-top: -10px; font-size: 12px; }
  .login-layout { padding: 15px 0; }
  .login-layout h1 { font-size: 35px; }
  .login-panel { padding: 24px; }
  .payment-grid { display: flex; flex-direction: column-reverse; }
  #payment-qr { align-self: center; }
  .site-footer { align-items: start; flex-direction: column; padding: 24px 18px; }
  .site-footer .brand { flex-wrap: wrap; }
  .site-footer small { margin-left: 0; }
  .dh-grid { display: block; }
  .dh-side { display: none; position: fixed; inset: 70px 20px 20px; overflow: auto; z-index: 25; background: #fff; border: 1px solid var(--line); padding: 25px; border-radius: 12px; }
  .dh-open .dh-side { display: block; }
  .dh-menu, .doc-close { display: inline-flex; }
  .dh-tabs { gap: 10px; flex-wrap: wrap; }
  .dh-home { display: none; }
  .dh-bar-in { gap: 12px; align-items: center; }
  .doc-bar { display: block; }
  .copy-page { margin-bottom: 16px; }
  .doc-content .table { min-width: 540px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (min-width: 1201px) {
  .home-hero { grid-template-columns: .95fr 1.45fr; gap: 38px; padding: 20px 0; }
  .home-hero h1 { font-size: 52px; }
  .hero-prices .table td, .hero-prices .table th { padding: 11px 9px; }
  .hero-prices .table td { font-size: 10px; }
  .hero-prices .table .price { font-size: 14px; }
  .hero-prices .eyebrow { margin-bottom: 15px; }
  .hero-prices > a { font-size: 12px; }
}
.check-inline { display: flex; align-items: center; margin-top: 12px; }
.check-inline input { width: 15px; }
@media (max-width: 700px) {
  body:has(.work.wide [data-studio]), body:has([data-model-panel="try"]:not([hidden])) { padding-bottom: 105px; }
  .generation-bar { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; margin: 0; border-radius: 0; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #20212408; }
  .hero-prices .price-table table { min-width: 540px; }
}
.hero-prices { min-width: 0; }
@media (max-width: 700px) {
  .hero-prices .price-table table { min-width: 0; table-layout: fixed; }
  .hero-prices .table th, .hero-prices .table td { padding: 10px 5px; font-size: 10px; white-space: normal; }
  .hero-prices .table th:first-child { width: 34%; }
  .hero-prices .table th:last-child, .hero-prices .table td:last-child { display: none; }
  .hero-prices .table .price { font-size: 12px; }
  .hero-prices .table small { font-size: 9px; }
  .hero-prices .saving { padding: 2px 4px; font-size: 9px; }
}

/* User-provided filmstrip V identity, 2026-10-30. */
.brand-logo { display: block; width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.login-panel > .brand-logo { width: 52px; height: 52px; }
@media (max-width: 700px) { .brand-logo { width: 30px; height: 30px; } }
