:root {
  color-scheme: dark;
  --bg: #04141d;
  --panel: #082430;
  --panel-light: #0b2c3a;
  --input: #051b26;
  --line: #164050;
  --ink: #eafaf3;
  --muted: #92b2b2;
  --accent: #2bff9e;
  --cyan: #45dbdc;
  --warn: #ffd17c;
  --danger: #ff96a6;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scrollbar-color: #245062 var(--bg); }
body { margin: 0; background: radial-gradient(ellipse at 90% 0, #0c3a383d, transparent 42%), var(--bg); color: var(--ink); font: 14px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .42; cursor: default; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea, select, canvas { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: 16px; line-height: 1.4; letter-spacing: -.025em; }
h3 { font-size: 15px; line-height: 1.5; }
code, .time { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
code { font-size: .9em; color: #b5f4db; overflow-wrap: anywhere; }
.app-shell { width: min(1280px, calc(100% - 64px)); margin: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 100px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 800; letter-spacing: -.055em; line-height: 1.15; }
.brand-light { font-weight: 400; }
.brand small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .25em; margin-top: 7px; font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; border: 1px solid #2bff9e4d; background: #2bff9e0d; color: var(--accent); }
.brand-mark svg { width: 30px; height: 30px; }
.header-note, .live-dot, .estimate { display: flex; align-items: center; }
.header-note { gap: 9px; color: var(--muted); font-size: 12px; }
.live-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px #2bff9e25; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 10px 16px; border: 1px solid #255064; border-radius: 9px; background: #0c3040; color: var(--ink); font-size: 12px; font-weight: 650; white-space: nowrap; transition: background .15s, border-color .15s; }
.button:hover:not(:disabled) { border-color: #5e9b99; background: #134354; }
.button.primary { color: #03291c; background: var(--accent); border-color: var(--accent); font-weight: 750; }
.button.primary:hover:not(:disabled) { background: #75ffbe; }
.button.small { min-height: 35px; padding: 7px 11px; font-size: 11px; }
.button.subtle { background: transparent; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 44px 0 34px; }
.eyebrow { color: var(--muted); font-size: 9px; letter-spacing: .2em; font-weight: 700; margin-bottom: 12px; }
.intro h1 { margin: 0 0 10px; font-size: clamp(30px, 3.8vw, 49px); line-height: 1.12; font-weight: 650; letter-spacing: -.055em; }
.intro h1 span { color: var(--accent); }
.intro p:last-child { color: var(--muted); margin: 0; font-size: 13px; }
.format-badges { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 3px; }
.format-badges span { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; min-width: 88px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 9px; background: #08243070; }
.format-badges b { font-size: 15px; font-weight: 650; color: var(--ink); letter-spacing: -.02em; }
.studio-layout { display: grid; grid-template-columns: minmax(330px, 440px) minmax(0, 1fr); gap: 22px; align-items: start; }
.editor-stack { display: grid; gap: 20px; }
.panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(155deg, #0b2c3a, #08212d); box-shadow: 0 8px 30px #00000010; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.section-heading h2 { margin: 0; }
.step-number, .section-icon { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border-radius: 7px; background: #2bff9e11; color: var(--accent); font-size: 11px; font-weight: 750; }
.section-icon { font-size: 19px; }
.badge { display: inline-flex; align-items: center; width: max-content; max-width: 100%; margin-left: auto; padding: 4px 8px; border: 1px solid #255064; border-radius: 6px; color: var(--muted); font-size: 9px; font-weight: 600; }
.badge.on { background: #2bff9e12; border-color: #2bff9e50; color: var(--accent); }
.muted { color: var(--muted); font-size: 12px; line-height: 1.75; margin-bottom: 20px; }
.account-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.account-panel .muted { overflow-wrap: anywhere; }
.landing-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .85fr); gap: 22px; align-items: start; }
.landing-hero > div:first-child { max-width: 680px; }
.landing-hero .landing-cta { margin-top: 24px; }
.feature-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.feature-list li + li { margin-top: 12px; }
#accountSection, #dashboard { scroll-margin-top: 20px; }
#accountEmail { overflow-wrap: anywhere; }
.vip-panel { border-color: #2bff9e35; background: linear-gradient(150deg, #123d37aa, #082430 65%); }
.vip-panel .section-heading { gap: 8px; }
.vip-panel h2 { font-size: 14px; }
.vip-panel .badge { font-size: 8px; }
label, legend { display: block; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
input:not([type="range"], [type="radio"], [type="file"]), textarea, select { display: block; width: 100%; min-width: 0; padding: 11px 13px; border: 1px solid #245062; border-radius: 9px; color: var(--ink); background: var(--input); font-size: 13px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #61848a; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.input-action { display: flex; gap: 8px; }
.input-action input { flex: 1; }
#vipCode { letter-spacing: .04em; }
.status { color: var(--muted); font-size: 11px; line-height: 1.75; margin: 12px 0 0; overflow-wrap: anywhere; }
.status.error, .audio-status.error { color: var(--danger); }
.status.warning { color: var(--warn); }
.status.success { color: var(--accent); }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 19px; }
.price-grid div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 2px; border: 1px solid #2bff9e20; border-radius: 8px; background: #031f2280; }
.price-grid span { font-size: 10px; color: var(--muted); }
.price-grid strong { font-size: 11px; font-weight: 650; color: #d3f6e8; }
.micro { font-size: 10px; color: var(--muted); line-height: 1.7; margin: 10px 0 0; }
.vip-active { padding: 14px; border-radius: 10px; background: #2bff9e09; border: 1px solid #2bff9e35; }
.vip-status { font-size: 12px; color: var(--accent); margin-bottom: 12px; }
.vip-active-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vip-active-row p { display: flex; align-items: center; gap: 9px; margin: 0; }
.vip-active-row strong { font-size: 27px; line-height: 1; }
.vip-active-row span { font-size: 10px; color: var(--muted); }
.points-balance-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.points-balance { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.points-balance strong { font-size: 36px; line-height: 1; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
.points-balance > span { color: var(--muted); font-size: 10px; }
.points-history { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.points-history summary { cursor: pointer; font-size: 11px; }
.points-history summary span { display: inline-block; color: var(--muted); font-size: 9px; margin-left: 5px; }
.points-history ol { list-style: none; padding: 0; margin: 10px 0 0; }
.points-history li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.points-history li > span { color: var(--ink); }
.points-history time { font-size: 9px; }
.generate-price { margin: 0 0 10px; text-align: center; color: var(--ink); font-size: 11px; }
.text-button { margin-left: auto; padding: 5px 0; background: none; color: var(--accent); border: 0; font-size: 10px; }
.field { margin-bottom: 19px; }
.optional { color: #7d9ea0; font-size: 10px; font-weight: 400; margin-left: 4px; }
.required { color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preset-fieldset { border: 0; padding: 0; margin: 2px 0 20px; min-width: 0; }
.preset-fieldset legend { padding: 0; margin-bottom: 11px; }
.preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preset-option { display: block; position: relative; margin: 0; cursor: pointer; }
.preset-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.preset-face { display: flex; align-items: center; gap: 9px; min-height: 62px; padding: 10px; border: 1px solid #214451; border-radius: 10px; background: #051b2670; transition: border-color .15s; }
.preset-option:hover .preset-face { border-color: #5e9b99; }
.preset-option input:checked + .preset-face { border-color: var(--accent); background: #2bff9e0b; box-shadow: inset 0 0 0 1px #2bff9e25; }
.preset-option input:focus-visible + .preset-face { outline: 2px solid var(--accent); outline-offset: 3px; }
.preset-swatch { display: flex; flex-wrap: wrap; width: 27px; height: 27px; flex: none; overflow: hidden; border-radius: 7px; transform: rotate(-5deg); box-shadow: 0 0 0 1px #ffffff16; }
.preset-swatch i { width: 50%; height: 50%; }
.preset-name { font-size: 10px; line-height: 1.4; }
.preset-name small { display: block; margin-top: 2px; font-size: 8px; color: var(--muted); font-weight: 400; }
.estimate { justify-content: center; gap: 7px; font-size: 10px; color: var(--muted); margin: 20px 0 12px; }
.estimate .live-dot { width: 4px; height: 4px; }
.generate-button { width: 100%; min-height: 50px; font-size: 13px; border-radius: 10px; box-shadow: 0 6px 25px #2bff9e16; }
.generate-button span:last-child { margin-left: auto; }
.generate-button span:first-child { margin-right: auto; }
.generate-button:disabled { opacity: .65; cursor: wait; }
.local-note { display: flex; gap: 10px; padding: 0 10px; color: #6f979d; }
.local-note > span { color: var(--accent); font-size: 12px; }
.local-note p { font-size: 10px; line-height: 1.7; margin: 0; }
.variation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.variation-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #051b26; color: var(--ink); }
.variation-card:hover { border-color: #5e9b99; }
.variation-card.active { border-color: #2bff9e90; background: #2bff9e09; }
.variation-card .variation-number { font-size: 9px; color: var(--muted); display: flex; justify-content: space-between; width: 100%; }
.variation-card.active .variation-number { color: var(--accent); }
.variation-card strong { font-size: 11px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.variation-card small { display: block; font-size: 8px; line-height: 1.5; color: var(--muted); }
.variation-dots { display: flex; gap: 3px; margin-top: 4px; }
.variation-dots i { display: block; width: 11px; height: 4px; border-radius: 3px; }
.player-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 18px; }
.player-heading .eyebrow { font-size: 8px; display: block; margin-bottom: 5px; }
.player-heading h3 { margin: 0; max-width: 320px; overflow-wrap: anywhere; }
.source-label { display: block; max-width: 130px; color: #a8d6c4; font-size: 9px; line-height: 1.5; text-align: right; }
.preview { display: flex; justify-content: center; padding: 16px; background: radial-gradient(ellipse at center, #0e3037, #041923); border: 1px solid #143743; border-radius: 12px; }
#studioCanvas { display: block; width: min(100%, 390px); height: auto; aspect-ratio: 9 / 16; background: #10151b; box-shadow: 0 12px 32px #0007, 0 0 0 1px #ffffff0a; }
.controls { margin-top: 16px; border: 1px solid var(--line); border-radius: 11px; background: #051c27; overflow: hidden; }
.transport { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 13px 9px; }
.transport-buttons { display: flex; gap: 5px; }
.time { font-size: 11px; font-variant-numeric: tabular-nums; color: #b8d8d1; white-space: nowrap; }
.seek-row { padding: 1px 15px 12px; }
.seek-caption { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; margin-bottom: 5px; }
.seek-caption label { margin: 0; font-size: 9px; font-weight: 400; }
input[type="range"] { display: block; width: 100%; height: 20px; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.audio-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-top: 1px solid var(--line); }
.audio-tools .button { font-size: 9px; padding: 7px 9px; min-height: 32px; }
.clean-button { margin-left: auto; }
.audio-status { padding: 0 14px 12px; margin: 0; font-size: 9px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.keyboard-note { text-align: center; color: #6d959b; font-size: 9px; line-height: 1.9; margin: 13px 0 0; }
.keyboard-note span { margin: 0 4px; }
.delivery-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.vo-list { display: grid; gap: 0; padding: 0; list-style: none; margin: 0; max-height: 470px; overflow-y: auto; scrollbar-width: thin; }
.vo-scene { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px 2px; border-top: 1px solid var(--line); }
.vo-number { color: var(--accent); font: 11px/1.8 ui-monospace, monospace; }
.vo-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.vo-heading h3 { font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.vo-heading time { font: 9px/1.9 ui-monospace, monospace; color: var(--muted); flex: none; }
.vo-scene p { margin: 0; white-space: pre-wrap; color: #b0c9c7; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.export-options { display: grid; gap: 10px; }
.export-button { display: flex; align-items: center; gap: 13px; padding: 16px; width: 100%; text-align: left; background: #051c27; border: 1px solid #245062; border-radius: 11px; color: var(--ink); }
.export-button:hover:not(:disabled) { border-color: var(--accent); background: #0c3038; }
.export-icon { display: grid; place-items: center; width: 34px; height: 34px; background: #2bff9e0c; border-radius: 9px; color: var(--accent); font: 16px/1 ui-monospace, monospace; flex: none; }
.export-button > span:nth-child(2) { flex: 1; }
.export-button strong { display: block; font-size: 12px; font-weight: 650; }
.export-button small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.export-button > span:last-child { color: var(--muted); }
.recording-status { padding: 13px; border-top: 1px solid var(--line); }
.recording-status > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 10px; color: #ffd0d4; }
.recording-status button { margin-left: auto; }
.record-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff6e86; flex: none; }
.recording-status progress { display: block; width: 100%; height: 6px; margin-top: 12px; accent-color: var(--accent); }
.github-instructions { padding: 17px; margin-top: 18px; border: 1px solid #2bff9e30; background: #2bff9e06; border-radius: 10px; }
.github-instructions h3 { font-size: 13px; margin-bottom: 10px; }
.github-instructions p, .github-instructions ol { font-size: 11px; color: var(--muted); line-height: 1.9; }
.github-instructions ol { padding-left: 18px; margin-bottom: 0; }
.github-instructions li + li { margin-top: 9px; }
.github-instructions strong { color: var(--ink); }
.ad-display { margin-top: 24px; text-align: center; }
.ad-banner-slot { display: grid; place-items: center; min-height: 100px; padding: 24px; border: 1px dashed #306072; border-radius: 12px; color: var(--muted); background: #051b2670; font-size: 12px; }
.offerwall-modal { width: min(680px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 24px; border: 1px solid #306072; border-radius: 16px; background: var(--panel); color: var(--ink); overflow-y: auto; }
.offerwall-modal::backdrop { background: #010c14cc; backdrop-filter: blur(4px); }
.offerwall-modal .section-heading { justify-content: space-between; }
.offerwall-modal > p { font-size: 12px; line-height: 1.8; }
.offerwall-modal > .micro { font-size: 10px; }
.offerwall-frame { position: relative; margin-top: 18px; border: 1px dashed #306072; border-radius: 10px; overflow: hidden; background: var(--input); }
.offerwall-frame iframe { display: block; width: 100%; height: 320px; border: 0; background: var(--input); }
.offerwall-frame > span { display: grid; align-content: center; position: absolute; inset: 0; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.8; pointer-events: none; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 34px 0 26px; color: #648a91; font-size: 10px; }
.site-footer span:first-child { color: var(--muted); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript-note { padding: 20px; text-align: center; color: var(--warn); }
body.clean { background: #030d12; }
body.clean .app-shell { width: 100%; }
body.clean .site-header, body.clean .intro, body.clean .editor-stack, body.clean .delivery-layout, body.clean .ad-display, body.clean .site-footer, body.clean .result-panel > :not(.preview) { display: none; }
body.clean .studio-layout { display: block; }
body.clean .result-panel { border: 0; border-radius: 0; padding: 0; box-shadow: none; background: none; }
body.clean .preview { width: 100%; min-height: 100svh; padding: 0; border: 0; border-radius: 0; background: none; align-items: center; }
body.clean #studioCanvas { width: min(100vw, calc(100svh * .5625)); max-width: none; box-shadow: none; cursor: pointer; }
.standalone-shell { width: min(620px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0; }
.standalone-shell .player-heading { border-top: 0; }
.standalone-shell .preview { background: transparent; border: 0; padding: 0; }
.standalone-shell .export-options { margin-top: 16px; }
body.clean .standalone-shell { width: 100%; padding: 0; }
body.clean .standalone-shell > :not(.preview) { display: none; }
@media (min-width: 1500px) { .app-shell { width: min(1320px, calc(100% - 100px)); } }
@media (max-width: 1080px) {
  .app-shell { width: calc(100% - 40px); }
  .studio-layout { grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); gap: 16px; }
  .panel { padding: 19px; }
  .header-note { display: none; }
  .intro { gap: 18px; }
  .format-badges span { min-width: 72px; padding: 9px 10px; }
  .variation-card { padding: 9px; }
  .variation-grid { gap: 6px; }
  .clean-button { margin-left: 0; }
  .transport { gap: 9px; }
  .time { font-size: 10px; }
  .delivery-layout { gap: 16px; }
}
@media (max-width: 800px) {
  .app-shell { width: min(600px, calc(100% - 32px)); }
  .site-header { min-height: 83px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 39px; height: 39px; }
  .intro { display: block; padding: 31px 0 26px; }
  .intro h1 { font-size: 36px; }
  .format-badges { margin-top: 22px; gap: 7px; }
  .format-badges span { flex: 1; flex-direction: row; align-items: center; gap: 7px; padding: 8px 10px; font-size: 9px; }
  .format-badges b { font-size: 12px; }
  .studio-layout, .delivery-layout, .landing-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .editor-stack { gap: 18px; }
  .local-note { margin-bottom: 2px; }
  .panel { padding: 21px; }
  .result-panel { scroll-margin-top: 15px; }
  .vip-panel .badge { font-size: 9px; }
  .preset-name { font-size: 11px; }
  .preset-name small { font-size: 9px; }
  .preset-face { padding: 12px; }
  .delivery-layout { margin-top: 18px; }
  .vo-list { max-height: 390px; }
  .controls .button, .input-action .button, .text-button { min-height: 44px; }
  input[type="range"] { height: 30px; }
  .site-footer { flex-wrap: wrap; gap: 8px; padding: 26px 0; }
  .site-footer span:last-child { width: 100%; }
}
@media (max-width: 420px) {
  .app-shell { width: calc(100% - 24px); }
  .panel { padding: 17px; border-radius: 13px; }
  .section-heading { gap: 7px; }
  .section-heading h2 { font-size: 14px; }
  .vip-panel h2 { font-size: 12px; }
  .vip-panel .badge { font-size: 8px; }
  .brand { font-size: 19px; gap: 9px; }
  .intro h1 { font-size: 33px; }
  .intro p:last-child { font-size: 12px; }
  .format-badges span { flex-direction: column; align-items: flex-start; gap: 2px; }
  .preset-face { padding: 10px 8px; gap: 8px; }
  .preset-name { font-size: 10px; }
  .preset-name small { font-size: 8px; }
  .variation-card { padding: 10px 8px; }
  .variation-card strong { font-size: 10px; }
  .variation-card small { font-size: 7px; }
  .preview { padding: 10px; }
  .transport { padding: 11px 9px 8px; gap: 8px; }
  .transport .button { padding: 7px 9px; font-size: 10px; }
  .transport .time { margin-left: auto; font-size: 10px; }
  .audio-tools { padding: 10px; }
  .seek-row { padding-left: 11px; padding-right: 11px; }
  .vo-heading { display: block; }
  .vo-heading time { display: block; margin-top: 3px; }
  .export-button { padding: 13px; gap: 10px; }
  .export-button strong { font-size: 11px; }
  .export-button small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
