@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700;750&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #302642;
  --muted: #766c87;
  --paper: #f1edff;
  --purple: #9370de;
  --purple-deep: #7450be;
  --lime: #d9f48d;
  --line: #ded6ed;
  --danger: #a32e42;
  --radius: 28px;
  color-scheme: light;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 25px; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 7% 16%, #e1d6ffb0 0, transparent 39%),
    radial-gradient(ellipse at 99% 36%, #e1f7b36e 0, transparent 32%),
    radial-gradient(ellipse at 52% 91%, #e9d9ffb0 0, transparent 44%),
    linear-gradient(130deg, #f4f1ff, #eeecfa 45%, #f6f4fc);
  min-height: 100vh;
}
button, input, select, a { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible,
.audio-control:has(input:focus-visible), .preset-card:has(input:focus-visible) {
  outline: 3px solid #7650b5; outline-offset: 4px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px; background: var(--lime); z-index: 100; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header { height: 92px; max-width: 1440px; padding: 0 56px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; font: 700 30px 'Space Grotesk', sans-serif; letter-spacing: -1.8px; }
.brand > span:not(.brand-icon):not(.brand-period) { font-weight: 400; }
.brand-icon { width: 42px; height: 42px; margin-right: 11px; display: grid; place-items: center; background: linear-gradient(140deg, #eaffb9, #cdeb7b); border-radius: 14px; transform: rotate(-7deg); box-shadow: 0 6px 16px #8ca34724, inset 0 1px 1px #fff; }
.brand-icon svg { width: 27px; fill: #3e422f; stroke-width: 0; transform: rotate(7deg); }
.brand-period { align-self: flex-start; font-size: 10px; letter-spacing: 0; margin: 5px 0 0 5px; }
.site-header nav { display: flex; align-items: center; gap: 29px; font-size: 13px; font-weight: 600; }
.nav-active { display: flex; gap: 9px; align-items: center; padding: 10px 15px; background: #ffffff6b; border-radius: 30px; box-shadow: inset 0 1px #ffffffa8; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: #9d7cd0; }
.nav-link { min-height: 44px; padding: 10px 0; color: #83758f; }
.nav-link span { margin-left: 6px; }
.local-badge { display: flex; gap: 8px; align-items: center; font-size: 11px; font-weight: 550; color: #70647d; padding: 10px 13px; background: #fafff366; border-radius: 30px; }
.pulse-dot { width: 6px; height: 6px; background: #7eaa53; border-radius: 50%; box-shadow: 0 0 0 4px #a5c47c16; }
main { max-width: 1440px; padding: 35px 56px 0; margin: auto; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; margin-bottom: 45px; }
.hero-copy { padding: 6px 0 12px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 1.6px; font-weight: 650; color: #78668f; }
.tiny-star { font-size: 19px; color: #a184c4; }
h1 { font: 600 clamp(48px, 5vw, 72px)/1.02 'Space Grotesk', sans-serif; letter-spacing: -4.4px; margin: 19px 0 24px; }
h1 .quality-word { position: relative; white-space: nowrap; color: #9064c4; }
h1 .quality-word svg { position: absolute; bottom: -6px; left: -2px; width: 102%; height: 12px; stroke: #b28de0; stroke-width: 2.2; }
.hero-description { font-size: 14px; line-height: 1.7; color: #796c88; margin: 0 0 23px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 16px; font-size: 10px; color: #7c6b8e; }
.hero-pills > span { display: flex; align-items: center; gap: 5px; }
.hero-pills svg { width: 13px; height: 13px; }
.hero-art { position: relative; height: 302px; border-radius: 28px; box-shadow: 0 20px 44px -12px #73568b3b, 0 3px 8px #8872b312; isolation: isolate; transform: rotate(1deg); }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; border-radius: inherit; }
.hero-art:after { content: ''; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, #241235b0); border-radius: 0 0 28px 28px; z-index: 0; pointer-events: none; }
.art-corner { position: absolute; top: 18px; left: 19px; font: 500 8px 'Space Grotesk', sans-serif; letter-spacing: 1.7px; color: #fff9ef; text-shadow: 1px 1px 3px #1d152d; }
.art-star { position: absolute; top: -17px; right: 31px; font-size: 48px; color: #dafa97; filter: drop-shadow(0 4px 3px #4e376b3d); transform: rotate(-9deg); z-index: 2; animation: star-rock 8s ease-in-out infinite; }
.art-caption { position: absolute; bottom: 19px; left: 19px; right: 19px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 550; z-index: 1; }
.art-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.art-sticker { position: absolute; right: -16px; bottom: 47px; background: #e0f6a4ed; border-radius: 15px; box-shadow: 0 9px 24px #28153f2b, inset 0 1px #ffffffa8; padding: 14px 27px 14px 15px; font: 700 10px/1.25 'Space Grotesk', sans-serif; transform: rotate(-7deg); z-index: 2; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #3e4433; }
.art-sticker span { position: absolute; right: 8px; bottom: 10px; font-size: 18px; }

.studio { display: grid; grid-template-columns: minmax(0, 1.53fr) minmax(350px, 1fr); gap: 24px; align-items: start; }
.panel { position: relative; background: linear-gradient(145deg, #ffffffd4, #ffffff8c); border: 1px solid #ffffffeb; border-radius: var(--radius); box-shadow: 0 17px 45px -19px #70568e30, 0 2px 6px #9680b108, inset 0 1px 0 #fff; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); overflow: hidden; }
.upload-panel { padding: 28px 28px 0; display: flex; flex-direction: column; min-height: 607px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; gap: 12px; }
.panel-heading > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.step-number { background: linear-gradient(135deg, #ebfbc9, #d7edaa); display: grid; place-items: center; width: 31px; height: 31px; border-radius: 11px; font: 600 11px 'Space Grotesk', sans-serif; flex-shrink: 0; color: #5a6d3d; box-shadow: 0 3px 8px #b5c79c1f; }
.step-number.violet { background: linear-gradient(135deg, #eee2ff, #dfcef6); color: #8a67b1; }
h2 { font: 600 19px 'Space Grotesk', sans-serif; letter-spacing: -.7px; margin: 0; }
.count-pill { border-radius: 8px; padding: 6px 9px; font: 500 10px 'Space Grotesk', sans-serif; color: #8d7b9d; white-space: nowrap; background: #f3edf8ad; }
.drop-zone { position: relative; background: radial-gradient(ellipse at 50% 22%, #f4efff 0, #eee8fb87 75%), #ede9f7; border-radius: 21px; text-align: center; padding: 58px 18px 35px; min-height: 323px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 2px 11px #8863ba08; transition: background .2s, box-shadow .2s, transform .2s; }
.drop-zone:before { content: ''; position: absolute; inset: 9px; border-radius: 15px; box-shadow: inset 0 0 0 1px #ffffff82; pointer-events: none; }
.drop-zone.dragover { background: #e5d7f8; box-shadow: inset 0 0 0 2px #b59ad8, 0 0 20px #c5addb38; transform: scale(.99); }
.upload-mark { position: relative; display: grid; place-items: center; background: linear-gradient(145deg, #fff, #eee2fd); width: 65px; height: 65px; margin: 0 auto 24px; border-radius: 21px; transform: rotate(-8deg); color: #9a77bf; box-shadow: 0 10px 20px #9672bd23, inset 0 1px 0 #fff; }
.upload-mark svg { width: 32px; transform: rotate(8deg); stroke-width: 1.6; }
.upload-mark > span { position: absolute; right: -9px; top: -8px; background: #dcf399; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #6e804d; font: 500 20px 'Space Grotesk', sans-serif; box-shadow: 0 3px 7px #8a79601a; transform: rotate(8deg); }
.drop-zone h3 { font: 600 22px 'Space Grotesk', sans-serif; letter-spacing: -.8px; margin: 0 0 8px; }
.drop-zone p { font-size: 13px; margin: 0 0 21px; color: #86758f; }
.text-button { font-weight: 600; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.drop-zone .text-button { color: #8555b8; min-height: 30px; }
.drop-zone .text-button span { display: inline-block; margin-left: 2px; text-decoration: none; }
.file-hint { font-size: 11px; color: #8b779c; }
.batch-hint { font-size: 10px; color: #9786a5; margin-top: 6px; }
.queue-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 63px; font-size: 10px; color: #8f7e9c; margin-top: auto; }
.sample-button { font-size: 11px; font-weight: 600; color: #8964a6; white-space: nowrap; min-height: 44px; padding: 6px 0 6px 12px; }
.sample-button span { margin-left: 5px; }
.sample-button:disabled { opacity: .5; }
.subtle { font-size: 11px; font-weight: 450; color: #8a729b; text-decoration: none; min-height: 40px; }
.subtle:hover { text-decoration: underline; }

.settings-panel { padding: 28px; }
.settings-panel .panel-heading { margin-bottom: 28px; }
.settings-spark { font-size: 29px; color: #b29bd1; line-height: 1; }
.control-label { font-size: 10px; letter-spacing: 1.1px; color: #9a86aa; font-weight: 650; margin-bottom: 13px; }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preset-card { position: relative; display: flex; flex-direction: column; padding: 17px 15px 15px; background: #f3eef963; box-shadow: inset 0 0 0 1px #e9e0f39c; border-radius: 17px; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.preset-card:hover { background: #eee4fa; transform: translateY(-1px); }
.preset-card:has(input:checked) { background: linear-gradient(145deg, #e9dbff, #e0cff8); box-shadow: 0 5px 14px #a47cc824, inset 0 1px 0 #f7f0ff; }
.preset-card:has(input:disabled) { cursor: default; transform: none; }
.preset-card > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.preset-symbol { display: block; color: #a48ab9; margin-bottom: 13px; }
.preset-symbol svg { width: 23px; height: 23px; }
.preset-card:has(input:checked) .preset-symbol { color: #8d69b2; }
.preset-name { font: 600 26px 'Space Grotesk', sans-serif; letter-spacing: -1.3px; }
.preset-name > span { font: 600 7px 'DM Sans', sans-serif; letter-spacing: .3px; color: #9876b3; margin-left: 2px; }
.preset-description { color: #8b719c; font-size: 11px; margin-top: 5px; }
.radio-mark { position: absolute; right: 13px; top: 16px; background: #e8dff1; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px #d6c7e3; }
.preset-card:has(input:checked) .radio-mark { background: #9d73c9; box-shadow: none; }
.preset-card:has(input:checked) .radio-mark:after { content: ''; position: absolute; width: 5px; height: 5px; top: 4px; left: 4px; background: #fff; border-radius: 50%; }
.recommended { position: absolute; top: -8px; left: 13px; padding: 4px 7px; background: #a785c9; border-radius: 6px; font-size: 6px; letter-spacing: .6px; color: #fff; font-weight: 650; }
.preset-note { font-size: 11px; color: #8c769d; line-height: 1.55; margin: 13px 0 22px; }
.size-control { padding: 0 0 21px; }
.size-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.size-label > span { font-size: 10px; color: #a18aad; font-weight: 450; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; min-height: 47px; padding: 11px 41px 11px 15px; background: #f5f0fbae; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px #e3d8ee70; appearance: none; -webkit-appearance: none; font-size: 12px; font-weight: 550; cursor: pointer; }
.select-wrap select:hover { background: #f0e7fa; }
.select-wrap > svg { position: absolute; right: 15px; top: 15px; width: 18px; height: 18px; pointer-events: none; color: #9a7eb0; }
.control-help { color: #95819f; font-size: 10px; line-height: 1.6; margin: 10px 1px 0; }
.custom-size-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; color: #8c769c; }
.custom-size-input { position: relative; width: 140px; }
.custom-size-input input { width: 100%; min-height: 45px; padding: 10px 42px 10px 13px; background: #fff9; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px #dacdea; font-size: 13px; font-weight: 550; }
.custom-size-input > span { position: absolute; right: 13px; top: 14px; font-size: 11px; color: #9d87ad; pointer-events: none; }
.size-estimate { margin-top: 12px; padding: 11px 13px; border-radius: 12px; background: #edf5dbb3; color: #6a7d49; font-size: 11px; line-height: 1.6; }
.size-estimate.warning { background: #fcf0dc; color: #966c3e; }
.audio-control { position: relative; display: flex; align-items: center; gap: 10px; padding-top: 17px; cursor: pointer; border-top: 1px solid #e4daee8f; }
.audio-icon { color: #a18caf; }
.audio-icon svg { width: 18px; height: 18px; }
.audio-control strong { display: block; font-size: 12px; font-weight: 600; }
.audio-control small { display: block; font-size: 10px; line-height: 1.5; color: #9c86a7; margin-top: 4px; }
.audio-control input { position: absolute; right: 0; width: 44px; height: 44px; opacity: 0; margin: 0; }
.toggle-track { width: 35px; height: 21px; border-radius: 15px; background: #e0d8e9; margin-left: auto; flex-shrink: 0; transition: background .2s; }
.toggle-track:after { content: ''; display: block; width: 15px; height: 15px; margin: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #5d427c1f; transition: transform .2s; }
.audio-control input:checked + .toggle-track { background: #a585cb; }
.audio-control input:checked + .toggle-track:after { transform: translateX(14px); }
.smart-defaults { display: flex; gap: 9px; align-items: center; background: #eee7f66b; border-radius: 13px; padding: 11px 12px; margin: 20px 0; color: #9781a5; }
.smart-defaults > span { font-size: 21px; color: #b39aca; }
.smart-defaults p { font-size: 10px; line-height: 1.6; margin: 0; }
.compress-button { width: 100%; min-height: 53px; display: flex; align-items: center; justify-content: center; gap: 13px; background: linear-gradient(135deg, #e3f8ad, #d0ed8a); border-radius: 15px; font-size: 13px; font-weight: 650; color: #46552d; box-shadow: 0 8px 19px #a3ba672b, inset 0 1px #f7ffe5; transition: transform .16s, box-shadow .16s, background .16s; }
.compress-button svg { width: 20px; height: 20px; fill: currentColor; stroke-width: 0; }
.compress-button:hover:not(:disabled) { background: linear-gradient(135deg, #e9ffb6, #d7f494); transform: translateY(-2px); box-shadow: 0 10px 23px #a3ba6745; }
.compress-button:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 3px 10px #a3ba6733; }
.compress-button:disabled { background: #e8e1f0; color: #ad9bbb; box-shadow: inset 0 1px #f4effa; }
.action-hint { text-align: center; color: #a18cad; font-size: 10px; margin: 12px 0 0; line-height: 1.6; }
.stop-button { width: 100%; min-height: 44px; padding: 12px 0 0; color: #a06c87; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.under-studio { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 3px 0; color: #9b85a8; font-size: 10px; }
.under-studio > span { display: flex; gap: 6px; align-items: center; }
.under-studio svg { width: 14px; height: 14px; flex-shrink: 0; }
.workflow { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 29px 0 35px; padding: 25px 31px; background: #eee4f869; border-radius: 23px; box-shadow: inset 0 1px #ffffff7d; }
.workflow > div { display: flex; gap: 13px; align-items: flex-start; }
.workflow > div > span { font: 500 10px 'Space Grotesk', sans-serif; color: #b099c3; margin-top: 2px; }
.workflow p { font-size: 11px; line-height: 1.75; color: #a48cb3; margin: 0; }
.workflow strong { font-size: 12px; font-weight: 600; color: #897194; }
.workflow-arrow { font-size: 22px; font-weight: 400; color: #c0aace; }
.workflow-end { font-size: 35px; color: #bea3d3; }
footer { max-width: 1440px; display: flex; align-items: center; justify-content: space-between; margin: auto; padding: 0 56px 31px; font-size: 10px; color: #a08aab; }
footer > span { display: flex; align-items: center; gap: 9px; }
footer .footer-star { font-size: 12px; color: #ac8fc3; }
footer > div { display: flex; align-items: center; gap: 25px; }
footer > div > span { font: 500 7px 'Space Grotesk', sans-serif; letter-spacing: 1px; }
footer button { font-size: 10px; color: inherit; padding: 5px 0; min-height: 32px; }

.queue:not(:empty) { padding-top: 12px; padding-bottom: 14px; }
.queue-item { position: relative; display: flex; column-gap: 11px; align-items: center; padding: 15px 0; }
.queue-item + .queue-item { border-top: 1px solid #e9e0f180; }
.queue-thumb { width: 68px; height: 54px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #e9e1f4; display: grid; place-items: center; border: 0; padding: 0; color: #ac93bf; }
.queue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.queue-thumb svg { width: 24px; }
.queue-thumb:hover { box-shadow: 0 0 0 2px #c2a5de; }
.queue-main { min-width: 0; flex: 1; }
.queue-name { padding: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; display: block; font-size: 12px; font-weight: 600; line-height: 1.8; }
.queue-name:hover { text-decoration: underline; }
.queue-meta { font-size: 10px; line-height: 1.8; color: #a087af; margin-top: 3px; }
.queue-status { font-size: 11px; line-height: 1.65; margin-top: 5px; color: #9a7aac; }
.queue-status.error { color: var(--danger); }
.queue-status.success { color: #789448; }
.queue-status.warning { color: #ad824e; }
.queue-actions { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
.remove-file { font-size: 20px; color: #b299c1; width: 34px; min-height: 44px; padding: 5px; }
.remove-file:hover { color: var(--danger); }
.download-one, .retry-one { background: #eee4f9; border-radius: 10px; padding: 10px 12px; min-height: 40px; font-size: 11px; color: #9675ad; }
.download-one:hover, .retry-one:hover { background: #e5d5f4; }
.queue-mini-progress { height: 4px; background: #efe6f5; margin-top: 7px; border-radius: 3px; overflow: hidden; }
.queue-mini-progress > div { height: 100%; background: #b799d0; transition: width .25s; }
.queue-warnings { margin: 4px 0 0; padding: 0; font-size: 10px; list-style: none; color: #a17f4e; line-height: 1.6; }
.queue-result { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.savings-tag { font-size: 9px; padding: 3px 6px; border-radius: 6px; color: #79934b; background: #eaf3db; }
.savings-tag.larger { color: #a37f4c; background: #fcf0da; }
.intake-errors { margin: 14px 0 0; background: #fff0f1; padding: 13px 15px; border-radius: 13px; color: #ad4d63; font-size: 11px; line-height: 1.7; }
.intake-errors p { margin: 0 0 5px; }
.intake-errors p:last-child { margin-bottom: 0; }
.batch-progress { margin-top: 19px; }
.batch-progress > div:first-child { display: flex; gap: 10px; justify-content: space-between; font-size: 10px; line-height: 1.6; color: #a27ab6; }
.progress-track { height: 6px; background: #e9dff3; border-radius: 4px; margin-top: 9px; overflow: hidden; }
.progress-track > div { height: 100%; width: 0; background: linear-gradient(90deg, #c3a2e2, #a97fd0); transition: width .3s; }
.download-panel { padding-top: 19px; margin-top: 19px; border-top: 1px solid #e5d9ef80; }
.download-all { width: 100%; display: flex; align-items: center; justify-content: space-between; background: #e9dbf8; border-radius: 13px; padding: 15px; font-size: 12px; font-weight: 600; color: #9369ac; }
.download-all:hover { background: #dfc9f1; }
.download-panel > span { display: block; text-align: center; font-size: 10px; line-height: 1.7; color: #a98db5; margin-top: 9px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 30; background: #423052ed; color: #fbf4ff; box-shadow: 0 9px 25px #4933512b; border-radius: 16px; padding: 15px 21px; font-size: 12px; max-width: min(90vw, 500px); line-height: 1.6; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.info-dialog, .preview-dialog { position: fixed; background: #fcfaffed; color: var(--ink); border: 1px solid #fff; border-radius: 26px; box-shadow: 0 25px 90px #38214f45; padding: 35px; width: min(92vw, 510px); max-height: 85vh; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.info-dialog::backdrop, .preview-dialog::backdrop { background: #3f2b5269; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dialog-close { position: absolute; right: 13px; top: 11px; font-size: 25px; color: #b298c3; width: 44px; height: 44px; }
.dialog-eyebrow { font-size: 8px; letter-spacing: 1.5px; color: #b58acd; margin-bottom: 13px; }
.info-dialog h2 { font-size: 26px; letter-spacing: -1px; max-width: 90%; margin-bottom: 18px; }
.info-dialog p, .info-dialog li { font-size: 12px; line-height: 1.85; color: #977da9; }
.info-dialog li { margin-bottom: 9px; }
.info-dialog ol, .info-dialog ul { padding-left: 19px; }
.info-dialog a { text-decoration: underline; }
.dialog-done { display: flex; align-items: center; justify-content: space-between; border-radius: 13px; background: var(--lime); width: 100%; min-height: 48px; padding: 12px 15px; font-size: 12px; font-weight: 600; margin-top: 22px; color: #5e733c; }
.preview-dialog { width: min(93vw, 850px); padding: 25px; overflow: auto; }
.preview-heading { display: flex; justify-content: space-between; padding-right: 30px; margin-bottom: 20px; min-height: 24px; align-items: center; }
.preview-heading h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.preview-tabs { display: flex; gap: 8px; margin-bottom: 15px; }
.preview-tabs button { padding: 10px 15px; min-height: 42px; border-radius: 11px; font-size: 11px; color: #aa8cba; background: #f2eaf9; }
.preview-tabs button[aria-selected=true] { background: #e5d4f4; color: #936cad; }
.preview-tabs button:disabled { opacity: .5; }
.video-stage { background: #30213e; border-radius: 16px; overflow: hidden; min-height: 150px; display: grid; place-items: center; }
.video-stage video { display: block; width: 100%; max-height: 55vh; }
.video-stage p { font-size: 12px; line-height: 1.7; text-align: center; color: #d9bfe6; padding: 20px; max-width: 420px; }
.preview-meta { font-size: 11px; line-height: 1.8; color: #ac8bbb; margin-top: 14px; }
.noscript { padding: 20px; text-align: center; background: #f7cad4; }
.is-busy .upload-mark { animation: float 2s ease-in-out infinite; }
.is-busy .settings-spark { animation: star-rock 3s ease-in-out infinite; }
.is-busy .drop-zone { opacity: .65; }
.is-busy .preset-card { opacity: .75; }
.drop-zone.compact { padding: 19px 15px; min-height: 115px; }
.drop-zone.compact .upload-mark { display: none; }
.drop-zone.compact h3 { font-size: 15px; margin-bottom: 4px; }
.drop-zone.compact p { margin-bottom: 7px; font-size: 11px; }
.drop-zone.compact .batch-hint { display: none; }
.file-badge { display: inline-block; font-size: 7px; padding: 1px 5px; border-radius: 4px; margin-left: 5px; font-weight: 500; color: #af8ec2; background: #f1e8f9; }
.spinner { display: inline-block; width: 10px; height: 10px; border: 1.5px solid #dfc9ee; border-top-color: #a67ec0; border-radius: 50%; margin-right: 5px; vertical-align: -1px; animation: spin 1s linear infinite; }
@keyframes star-rock { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(13deg); } }
@keyframes float { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-4px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1500px) {
  main { padding-top: 47px; }
  .hero { margin-bottom: 50px; }
  .hero-art { height: 330px; }
}
@media (max-width: 1100px) {
  .site-header { padding: 0 35px; }
  main { padding: 27px 35px 0; }
  .hero { gap: 38px; }
  .hero-art { height: 280px; }
  h1 { font-size: 58px; letter-spacing: -3.8px; }
  .hero-pills { gap: 10px; font-size: 9px; }
  .studio { grid-template-columns: minmax(0, 1.3fr) minmax(335px, 1fr); gap: 20px; }
  .upload-panel, .settings-panel { padding: 23px; }
  .upload-panel { padding-bottom: 0; }
  .drop-zone h3 { font-size: 19px; }
  .panel-heading h2 { font-size: 17px; }
  footer { padding: 0 35px 26px; }
  .art-sticker { right: -10px; }
  .workflow { padding: 24px; gap: 13px; }
  .workflow > div { gap: 10px; }
  .workflow-end { display: none; }
}
@media (max-width: 850px) {
  .site-header { height: 78px; padding: 0 25px; }
  .brand { font-size: 26px; }
  .brand-icon { width: 36px; height: 36px; border-radius: 12px; }
  .brand-icon svg { width: 24px; }
  .site-header nav { gap: 20px; font-size: 11px; }
  .local-badge { font-size: 9px; padding: 8px 10px; }
  main { padding: 28px 25px 0; }
  .hero { grid-template-columns: 1fr .95fr; gap: 28px; margin-bottom: 34px; }
  .hero-art { height: 250px; border-radius: 23px; }
  .hero-art:after { border-radius: 0 0 23px 23px; }
  .eyebrow { font-size: 8px; letter-spacing: 1px; }
  h1 { font-size: 49px; letter-spacing: -3px; }
  .hero-description { font-size: 12px; }
  .hero-pills { font-size: 9px; }
  .hero-pills > span:last-child { display: none; }
  .art-sticker { font-size: 8px; bottom: 45px; padding: 12px 22px 12px 12px; }
  .art-caption { font-size: 10px; }
  .art-star { font-size: 42px; }
  .studio { grid-template-columns: minmax(0, 1.1fr) minmax(295px, 1fr); gap: 17px; }
  .upload-panel, .settings-panel { padding: 20px; }
  .upload-panel { padding-bottom: 0; min-height: 618px; }
  .panel-heading { gap: 8px; }
  .panel-heading > div { gap: 9px; }
  .panel-heading h2 { font-size: 15px; }
  .step-number { width: 27px; height: 27px; border-radius: 9px; font-size: 10px; }
  .presets { gap: 9px; }
  .preset-card { padding: 16px 12px 14px; }
  .preset-name { font-size: 24px; }
  .preset-name > span { font-size: 6px; }
  .preset-description { font-size: 10px; }
  .preset-note { font-size: 10px; }
  .drop-zone { padding: 42px 12px; min-height: 327px; }
  .drop-zone h3 { font-size: 17px; }
  .drop-zone p { font-size: 11px; }
  .file-hint { font-size: 10px; }
  .batch-hint { font-size: 9px; }
  .queue-footer > span { display: none; }
  .queue-footer { justify-content: flex-end; }
  .queue-item { gap: 9px; flex-wrap: wrap; }
  .queue-thumb { width: 48px; height: 43px; border-radius: 10px; }
  .queue-main { min-width: 100px; }
  .queue-name { font-size: 11px; }
  .queue-meta, .queue-status, .queue-warnings { font-size: 10px; }
  .queue-actions { margin-left: auto; }
  .queue-actions button { font-size: 10px; }
  .queue-actions .remove-file { font-size: 19px; }
  .under-studio { font-size: 9px; }
  .under-studio > span { max-width: 75%; line-height: 1.6; }
  .under-studio .text-button { font-size: 10px; }
  .workflow { gap: 12px; padding: 22px; }
  .workflow > div { gap: 8px; }
  .workflow p { font-size: 9px; }
  .workflow strong { font-size: 10px; }
  .workflow-arrow { font-size: 19px; }
  footer { padding: 0 25px 25px; font-size: 9px; }
  footer button { font-size: 9px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 18px; }
  .site-header { height: 75px; padding: 0 20px; }
  .site-header nav .nav-active { display: none; }
  .site-header nav { margin-left: auto; margin-right: 0; }
  .local-badge { display: none; }
  main { padding: 25px 18px 0; }
  .hero { display: flex; flex-direction: column; gap: 27px; align-items: stretch; margin-bottom: 29px; }
  .hero-copy { padding: 0 4px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  h1 { font-size: 59px; line-height: 1.01; letter-spacing: -3.8px; margin: 18px 0 23px; }
  .hero-description { font-size: 13px; margin-bottom: 17px; }
  .hero-description br { display: none; }
  .hero-pills { font-size: 10px; gap: 17px; }
  .hero-art { height: 231px; transform: rotate(.5deg); margin: 0 5px 0 0; border-radius: 24px; }
  .hero-art > img { object-position: center 47%; }
  .hero-art:after { border-radius: 0 0 24px 24px; }
  .art-sticker { right: -10px; bottom: 45px; font-size: 9px; }
  .art-corner { font-size: 7px; }
  .art-caption { font-size: 11px; }
  .studio { grid-template-columns: 1fr; gap: 21px; }
  .panel { border-radius: 25px; }
  .upload-panel, .settings-panel { padding: 22px; }
  .upload-panel { padding-bottom: 0; min-height: 0; }
  .panel-heading { margin-bottom: 22px; }
  .panel-heading h2 { font-size: 18px; }
  .panel-heading > div { gap: 11px; }
  .step-number { width: 30px; height: 30px; border-radius: 10px; font-size: 11px; }
  .drop-zone { padding: 35px 14px 29px; min-height: 279px; border-radius: 20px; }
  .upload-mark { width: 59px; height: 59px; margin-bottom: 23px; border-radius: 19px; }
  .upload-mark svg { width: 29px; }
  .drop-zone h3 { font-size: 19px; }
  .drop-zone p { font-size: 12px; }
  .file-hint { font-size: 10px; }
  .batch-hint { font-size: 9px; }
  .queue-footer > span { display: inline; }
  .queue-footer { justify-content: space-between; min-height: 62px; }
  .sample-button { font-size: 11px; }
  .queue-thumb { width: 59px; height: 50px; border-radius: 11px; }
  .queue-name { font-size: 12px; }
  .queue-meta, .queue-status, .queue-warnings { font-size: 10px; }
  .queue-actions { gap: 4px; }
  .queue-actions button { font-size: 11px; }
  .queue-actions .remove-file { font-size: 20px; }
  .presets { gap: 13px; }
  .preset-card { padding: 18px 16px 16px; border-radius: 18px; }
  .preset-symbol { margin-bottom: 12px; }
  .preset-name { font-size: 28px; }
  .preset-name > span { font-size: 8px; }
  .preset-description { font-size: 11px; }
  .preset-note { font-size: 11px; margin-bottom: 23px; }
  .recommended { left: 14px; font-size: 6px; }
  .size-label { font-size: 13px; }
  .select-wrap select { min-height: 49px; font-size: 13px; }
  .select-wrap > svg { top: 16px; }
  .control-help { font-size: 11px; }
  .size-control { padding-bottom: 22px; }
  .audio-control strong { font-size: 13px; }
  .audio-control small { font-size: 11px; }
  .smart-defaults { padding: 12px; margin: 20px 0; }
  .smart-defaults p { font-size: 11px; }
  .compress-button { min-height: 54px; font-size: 14px; }
  .action-hint { font-size: 11px; }
  .under-studio { font-size: 9px; flex-direction: column; align-items: center; gap: 0; text-align: center; padding-top: 17px; }
  .under-studio > span { max-width: 100%; line-height: 1.6; justify-content: center; }
  .under-studio .text-button { font-size: 10px; }
  .workflow { position: relative; margin: 15px 0 26px; display: grid; grid-template-columns: 1fr; padding: 23px 25px; gap: 21px; border-radius: 23px; }
  .workflow > div { gap: 17px; }
  .workflow > div > span { margin-top: 2px; font-size: 10px; }
  .workflow p { font-size: 11px; line-height: 1.6; }
  .workflow strong { font-size: 12px; }
  .workflow-arrow { display: none; }
  .workflow-end { display: block; position: absolute; right: 27px; top: 74px; font-size: 53px; opacity: .5; }
  footer { padding: 0 22px 25px; align-items: flex-start; gap: 15px; font-size: 9px; }
  footer > span { max-width: 52%; line-height: 1.7; display: block; }
  footer .footer-star { display: none; }
  footer > div { align-items: flex-end; gap: 6px; flex-direction: column; }
  footer > div > span { font-size: 6px; }
  .info-dialog { padding: 29px; }
  .preview-dialog { padding: 18px; }
  .preview-heading h2 { font-size: 13px; }
  .drop-zone.compact { min-height: 116px; }
  .drop-zone.compact h3 { font-size: 14px; }
  .drop-zone.compact .file-hint { font-size: 10px; }
}
@media (max-width: 360px) {
  h1 { font-size: 53px; letter-spacing: -3.3px; }
  .hero-pills { gap: 11px; font-size: 9px; }
  .upload-panel, .settings-panel { padding: 18px; }
  .upload-panel { padding-bottom: 0; }
  .panel-heading h2 { font-size: 16px; }
  .drop-zone h3 { font-size: 17px; }
  .preset-card { padding: 18px 12px 16px; }
  .preset-name { font-size: 25px; }
  .preset-name > span { font-size: 6px; }
  .audio-control small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* Keep quiet supporting text legible on the frosted surfaces. */
.control-label, .preset-note, .preset-description, .preset-name > span,
.control-help, .size-label > span, .custom-size-row, .custom-size-input > span,
.audio-control small, .smart-defaults p, .action-hint,
.queue-meta, .queue-status, .queue-footer, .batch-hint, .file-hint,
.under-studio, .workflow p, .workflow strong, footer,
.download-panel > span, .preview-meta { color: #7f6b90; }
.preset-name { display: flex; align-items: baseline; gap: 4px; line-height: 1.1; white-space: nowrap; }
.preset-name > span { display: inline-block; white-space: nowrap; margin-left: 0; }
@media (max-width: 680px) {
  .preset-name { font-size: 26px; }
  .preset-name > span { font-size: 6px; letter-spacing: 0; }
}
