@font-face {
  font-family: Studio;
  src: url("/static/fonts/noto-sans-thai.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}
@font-face {
  font-family: Studio;
  src: url("/static/fonts/noto-sans-latin.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  --ink: #153c27;
  --green: #23663d;
  --dim: #55675b;
  --line: #d7e2d8;
  --sage: #f3f7f1;
  --page-width: 1440px;
  font: 400 16px/1.55 Studio, "Leelawadee UI", system-ui, sans-serif;
  color: var(--ink);
  background: #fdfefc;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a { color: inherit; }
button { background: none; }
:focus-visible { outline: 3px solid #437d4a; outline-offset: 4px; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden, .icon-defs, .setting input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.icon:where(svg) { display: block; flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-header { background: #fff; border-bottom: 1px solid #eaf0e8; }
.header-inner, main { width: min(var(--page-width), calc(100% - clamp(40px, 6.25vw, 96px))); margin-inline: auto; }
.header-inner { min-height: clamp(68px, 6.3vw, 94px); display: flex; justify-content: space-between; align-items: center; padding-inline: clamp(0px, 1.3vw, 20px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: clamp(22px, 2.25vw, 34px); font-weight: 750; letter-spacing: -.045em; }
.brand img { width: clamp(34px, 3.3vw, 50px); height: auto; margin-right: 2px; }
.brand small { color: var(--dim); font-size: .56em; font-weight: 600; letter-spacing: .02em; align-self: center; padding-top: 3px; }
.help-button { border: 0; display: flex; align-items: center; gap: 7px; font-size: clamp(14px, 1.2vw, 18px); font-weight: 600; padding: 10px 0 10px 10px; }
.help-button:hover, .remove:hover { color: #307b46; }
.help-button .icon { width: 1.3em; height: 1.3em; }
main { padding-block: clamp(16px, 1.7vw, 26px) 44px; }
.intro { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: clamp(142px, 14.6vw, 216px); border-radius: 16px; padding: clamp(22px, 2.75vw, 42px); background: var(--sage); }
.intro-copy { min-width: 0; flex: 1.05; }
.intro h1 { font-size: clamp(39px, 4.7vw, 72px); letter-spacing: -.055em; line-height: 1.25; font-weight: 750; }
.intro p { margin-top: 5px; color: var(--dim); font-size: clamp(14px, 1.45vw, 21px); }
.hero-art { width: 33%; height: clamp(126px, 15vw, 220px); object-fit: contain; margin: -22px 4% -22px 0; }
.studio-panel, .result-panel { background: #fff; border: 1px solid #cedbcf; border-radius: 16px; }
.studio-panel { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(22px, 2.45vw, 36px); margin-top: clamp(18px, 2vw, 30px); padding: clamp(22px, 2.1vw, 32px); }
h2 { font-weight: 700; font-size: clamp(23px, 2.13vw, 33px); line-height: 1.35; letter-spacing: -.035em; }
.source-section, .settings-section { min-width: 0; display: flex; flex-direction: column; }
.source-section { border-right: 1px solid var(--line); padding-right: clamp(22px, 2.2vw, 34px); }
.dropzone { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: clamp(245px, 22.5vw, 342px); margin-top: clamp(14px, 1.4vw, 21px); padding: 22px 14px; border-radius: 13px; border: 1.5px dashed #8cb88e; background: #f5f9f3; text-align: center; transition: border-color .16s, background .16s; }
.dropzone.drag { border-color: var(--green); background: #eaf5e5; }
.upload-well { width: clamp(62px, 7.2vw, 105px); height: clamp(62px, 7.2vw, 105px); background: #e1f2df; color: #215737; border-radius: 50%; display: grid; place-items: center; }
.upload-well .icon { width: 44%; height: 44%; }
#file-name { max-width: 100%; overflow-wrap: anywhere; margin: 12px 0; font-size: clamp(20px, 2.1vw, 31px); font-weight: 700; line-height: 1.35; letter-spacing: -.028em; }
.dropzone.selected #file-name { font-size: clamp(17px, 1.55vw, 23px); }
.file-controls { display: flex; align-items: center; gap: 8px; }
.secondary { border: 1px solid var(--green); border-radius: 8px; background: #fff; color: #214c30; padding: 8px clamp(15px, 2.7vw, 40px); min-height: 40px; font-size: clamp(14px, 1.35vw, 20px); font-weight: 600; text-decoration: none; }
.secondary:hover { background: #eaf4e8; }
.remove { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 40px; height: 40px; display: grid; place-items: center; }
.remove .icon { width: 16px; height: 16px; }
#file-hint, .setting-copy small, #feedback { color: var(--dim); font-size: clamp(13px, 1.18vw, 17px); line-height: 1.5; }
#file-hint { margin-top: 10px; }
.settings-section h2 { margin-bottom: clamp(4px, .6vw, 9px); }
.studio-mode-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
#studio-mode[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 3px; }
.auto-controls { padding: clamp(14px, 1.7vw, 24px); margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: #f5f9f3; }
.auto-controls #face-slim-control { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.intensity-graph { --fill: 65%; position: relative; padding-top: 52px; margin-top: 10px; }
.intensity-graph::before {
  content: ""; position: absolute; inset: 0 7px 25px; pointer-events: none;
  background: linear-gradient(to right, #8bb78c var(--fill), #dbe8da var(--fill));
  clip-path: polygon(0 87%, 12.5% 87%, 12.5% 82%, 25% 82%, 25% 73%, 37.5% 73%, 37.5% 63%, 50% 63%, 50% 50%, 62.5% 50%, 62.5% 37%, 75% 37%, 75% 23%, 87.5% 23%, 87.5% 5%, 100% 5%, 100% 100%, 0 100%);
}
#auto-strength { display: block; width: 100%; height: 28px; margin: 0; accent-color: var(--green); cursor: pointer; }
#auto-strength:disabled { cursor: not-allowed; }
.intensity-labels { display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; }
#studio-form[data-studio-mode="auto"] ~ .result-panel :is(#compare-focus, #preview-to-reference, #result-to-reference) { display: none; }
.segments-panel { margin: 5px 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f5f9f3; }
.segments-head, .segment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.segments-head { justify-content: space-between; }
.segments-head h3 { margin: 0; font-size: clamp(16px, 1.4vw, 21px); }
.segments-head .secondary, .segment-actions .secondary { min-height: 38px; padding: 5px 10px; font-size: 14px; }
#segments-status { margin-top: 6px; color: var(--dim); font-size: 14px; }
#segments-status:empty { display: none; }
#segments-status[data-state="error"] { color: #9a352c; }
.segments-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 6px; margin: 8px 0; max-height: 180px; overflow: auto; padding: 3px; }
.segment-choice { display: grid; gap: 1px; padding: 7px 9px; text-align: left; border: 1px solid #a9c5ab; border-radius: 7px; background: #fff; }
.segment-choice strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.segment-choice span, .segment-choice small { font-size: 12px; color: var(--dim); }
.segment-choice:hover:enabled { border-color: var(--green); }
.segment-choice[aria-pressed="true"] { background: #deefdb; border-color: var(--green); }
.segment-choice[data-adjusted="true"] small { color: var(--green); font-weight: 700; }
#segment-context { display: grid; gap: 4px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 14px; }
.setting { position: relative; min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: clamp(10px, 1.55vw, 24px); padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.tool-icon { height: clamp(40px, 3.55vw, 54px); width: clamp(40px, 3.55vw, 54px); display: grid; place-items: center; border: 1px solid #749b7c; border-radius: 12px; color: #285d38; }
.tool-icon .icon { width: 48%; height: 48%; }
.setting-copy strong, .setting-copy small { display: block; }
.setting-copy strong { font-size: clamp(17px, 1.67vw, 25px); line-height: 1.4; letter-spacing: -.025em; font-weight: 700; }
.setting-copy small { margin-top: 3px; }
.switch { width: clamp(37px, 3.7vw, 54px); height: clamp(22px, 2.1vw, 31px); background: #99a29a; border-radius: 50px; padding: 3px; display: flex; align-items: center; transition: background .16s; }
.switch::after { content: ""; display: block; height: 100%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #12342235; transition: margin .15s; }
.setting input:checked + .switch { background: #34834a; }
.setting input:checked + .switch::after { margin-left: auto; }
.setting input:focus-visible + .switch { outline: 3px solid #437d4a; outline-offset: 4px; }
.primary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: clamp(48px, 4.75vw, 72px); margin-top: clamp(15px, 1.5vw, 23px); padding: 10px 12px; background: #174f2d; border: 0; border-radius: 10px; color: #fff; font-size: clamp(17px, 1.65vw, 25px); font-weight: 650; transition: background .15s; }
.primary .icon { width: 1.35em; height: 1.35em; }
.primary:hover:enabled { background: #0b3b20; }
.primary:disabled { background: #446c50; color: #f4f8f2; }
.primary.busy .icon { display: none; }
#upload-progress { display: block; width: 100%; height: 6px; margin-top: 8px; accent-color: var(--green); }
.render-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: clamp(15px,1.5vw,23px); }
.render-actions .primary { margin-top: 0; }
.render-actions .secondary { padding: 8px clamp(12px,1.65vw,23px); }
.render-actions .secondary:disabled { color: var(--dim); border-color: var(--line); background: #f3f6f2; }
.dropzone.selected { min-height: 0; flex: none; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 10px; text-align: left; align-items: center; padding: 12px; }
.dropzone.selected .upload-well { display: none; }
.dropzone.selected #file-name, .dropzone.selected #file-hint { margin: 0; }
.dropzone.selected .file-controls { grid-column: 2; grid-row: 1 / 3; }
.dropzone.selected .secondary { padding-inline: 12px; font-size: 14px; }
#preview-picker { margin-top: 14px; }
#preview-picker .slider-head { margin-top: 10px; }
#preview-start { display: block; width: 100%; margin: 0; min-height: 30px; accent-color: var(--green); }
#start-seconds { width: 6em; margin: 6px; border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px; }
#source-picker-video { max-height: 235px; }
#picker-warning, #preview-description { color: var(--dim); font-size: 14px; }
#preview-result { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 15px; }
#preview-video { width: 100%; max-height: 360px; margin-top: 8px; }
#preview-to-full { width: fit-content; padding: 10px 18px; min-height: 44px; margin-top: 12px; font-size: 16px; }
#preview-to-reference { margin: 8px 10px 0; }
.reference-look { border-bottom: 1px solid var(--line); padding: 12px 0; }
.reference-look h3 { margin: 0; font-size: clamp(16px,1.4vw,21px); }
.reference-look p { color: var(--dim); font-size: 14px; line-height: 1.5; margin: 4px 0; }
#reference-status[data-state=error] { color: #9a352c; }
#reference-status[data-state=success] { color: var(--green); }
.reference-source { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0; }
.reference-source strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.reference-source button { flex: none; }
#reference-strength { display: block; width: 100%; min-height: 30px; margin: 0; accent-color: var(--green); }
.primary.busy::before { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid #ffffff66; border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-panel { margin-top: clamp(16px, 1.8vw, 26px); padding: clamp(20px, 1.8vw, 28px) clamp(22px, 2.25vw, 34px); }
.result-heading { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.result-heading > .icon { width: clamp(33px, 3.5vw, 50px); height: clamp(33px, 3.5vw, 50px); }
.result-heading h2 { font-size: clamp(20px, 1.9vw, 28px); }
#feedback[data-state="error"] { color: #9a352c; }
#feedback[data-state="success"] { color: var(--green); }
#result { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.result-details, .durations { display: flex; align-items: center; gap: 18px; }
.result-details { justify-content: space-between; }
.durations { flex-wrap: wrap; }
.durations > div { display: grid; gap: 2px; }
.durations span { font-size: 13px; color: var(--dim); }
.durations strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.download { display: inline-flex; gap: 7px; align-items: center; font-size: 15px; padding: 8px 15px; }
.download .icon { width: 18px; height: 18px; }
video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #142119; display: block; border-radius: 9px; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.comparison figure { min-width: 0; margin: 0; }
.comparison figcaption { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.comparison p { font-size: 13px; color: var(--dim); }
.adjustments { display: grid; gap: clamp(12px, 1vw, 16px); padding: clamp(8px, .8vw, 12px) 0 clamp(12px, 1.4vw, 20px); border-bottom: 1px solid var(--line); }
.adjustment { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: clamp(12px, 1.3vw, 20px); }
.setting.light-option { grid-template-columns: minmax(0,1fr) auto; margin-left: calc(clamp(40px, 3.55vw, 54px) + clamp(12px,1.3vw,20px)); padding-block: 3px; border: 0; }
.light-option .setting-copy small { font-size: clamp(12px,.95vw,14px); }
.slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.slider-head label { font-size: clamp(16px, 1.4vw, 21px); font-weight: 650; }
.slider-head output { font-size: clamp(14px, 1.2vw, 18px); font-weight: 650; color: var(--green); font-variant-numeric: tabular-nums; }
.adjustment input { --fill: 45%; display: block; width: 100%; height: 24px; cursor: pointer; appearance: none; background: transparent; margin: 0; }
#skin-smooth { --fill: 35%; }
#skin-clear, #skin-texture, #skin-white, #face-slim, #shine-reduce, #under-eye { --fill: 0%; }
#skin-texture:disabled { opacity: .48; cursor: not-allowed; }
.skin-adjustment { align-items: start; }
.skin-sliders { display: grid; gap: 8px; min-width: 0; }
.slider-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.slider-label small { color: var(--dim); font-size: clamp(12px,.95vw,14px); }
.adjustment input::-webkit-slider-runnable-track { height: 6px; border-radius: 20px; background: linear-gradient(to right, var(--green) var(--fill), #d7e5d7 var(--fill)); }
.adjustment input::-webkit-slider-thumb { appearance: none; background: white; height: 19px; width: 19px; border-radius: 50%; border: 2px solid var(--green); margin-top: -6.5px; }
.adjustment input::-moz-range-track { height: 6px; border-radius: 20px; background: #d7e5d7; }
.adjustment input::-moz-range-progress { height: 6px; border-radius: 20px; background: var(--green); }
.adjustment input::-moz-range-thumb { background: white; height: 16px; width: 16px; border-radius: 50%; border: 2px solid var(--green); }
.audio-title { font-size: clamp(16px,1.4vw,21px); margin: 12px 0 3px; }
.setting .tool-icon { height: 33px; width: 37px; border-color: #c0d1c1; border-radius: 7px; }
.setting-copy strong { font-size: clamp(15px,1.16vw,18px); font-weight: 550; }
.setting .switch { width: 38px; height: 23px; }

.source-title-row, .batch-heading, .batch-list-heading, .batch-footer, .batch-file {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.batch-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; border: 0; color: var(--green); font-weight: 600; font-size: 14px; line-height: 1.45; background: transparent; text-decoration: none; }
.batch-link:hover:enabled, a.batch-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.batch-link .icon { width: 18px; height: 18px; }
.batch-heading { align-items: flex-start; padding-bottom: 17px; }
.batch-heading > button { white-space: nowrap; flex: none; }
.batch-note { color: var(--dim); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.batch-heading .batch-note { margin-top: 2px; }
.batch-setup { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(22px,3.5vw,52px); padding: 18px 0; border-block: 1px solid var(--line); }
.batch-group { display: grid; grid-template-rows: auto auto auto auto; align-content: start; gap: 6px; min-width: 0; }
.batch-label { display: block; font-weight: 600; font-size: 15px; }
.batch-label:not(:first-child) { margin-top: 7px; }
.batch-input-row, .batch-folder, .batch-file-tools, .batch-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.batch-folder, .batch-actions { flex-wrap: wrap; }
.batch-panel input[type=text], .batch-panel select {
  width: 100%; min-width: 0; height: 40px; padding: 6px 10px; color: var(--ink); font: inherit; font-size: 15px; background: #fff; border: 1px solid #b8c9ba; border-radius: 7px;
}
.batch-input-row input, .batch-input-row select { flex: 1; }
.batch-panel .secondary, .batch-actions .primary { flex: none; width: auto; min-height: 40px; margin: 0; padding: 7px 14px; border-radius: 7px; font-size: 14px; line-height: 1.45; }
.batch-panel button:disabled { opacity: .64; }
.batch-list-heading { margin: 18px 0 6px; }
.batch-list-heading h3 { font-size: 18px; margin: 0; }
.batch-review-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 10px 0 4px; }
#batch-review-counts { margin: 0; }
#batch-review-filters { display: flex; flex-wrap: wrap; gap: 4px; }
#batch-review-filters button { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 5px 9px; min-height: 34px; font-size: 13px; color: var(--dim); }
#batch-review-filters button[aria-pressed=true] { border-color: var(--green); background: #eef6ef; color: var(--green); font-weight: 600; }
.batch-review-findings { grid-column: 1 / -1; padding-left: 16px; margin: 3px 0 0; color: #745211; font-size: 13px; overflow-wrap: anywhere; }
.batch-file:is([data-review-state=invalid], [data-review-state=error]) .batch-review-findings { color: #9a352c; }
#preview-batch-back { width: auto; margin-top: 12px; }
#batch-files { max-height: 320px; overflow-y: auto; margin: 0; padding: 0 5px 0 0; list-style: none; }
.batch-file { min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.batch-file-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 12px; flex: 1; min-width: 0; }
.batch-file-name { min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; }
.batch-file-status { max-width: 36ch; color: var(--dim); font-size: 13px; overflow-wrap: anywhere; }
.batch-file[data-state=failed] .batch-file-status { color: #9a352c; }
.batch-file[data-state=done] .batch-file-status { color: var(--green); }
.batch-file-progress { width: 100%; height: 6px; grid-column: 1 / -1; accent-color: var(--green); }
.batch-file-tools { flex: none; }
.batch-file-remove { width: 34px; height: 34px; }
.batch-footer { align-items: flex-end; flex-wrap: wrap; margin-top: 14px; background: var(--sage); border-radius: 9px; padding: 12px 14px; }
.batch-summary { min-width: 0; flex: 1 1 210px; overflow-wrap: anywhere; }
.batch-summary p { font-size: 14px; }
#batch-summary { color: var(--dim); }
#batch-result-notice, #batch-close-readiness, #batch-storage-wait { margin-top: 8px; }
#batch-close-readiness[data-state=safe] { color: var(--green); font-weight: 600; }
@media (max-width: 700px) {
  .batch-setup { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .batch-folder { gap: 5px 9px; }
  .batch-file-info { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; }
  .batch-file-tools { flex-wrap: wrap; justify-content: flex-end; max-width: 43%; }
  .batch-file-download { font-size: 12px; }
  .batch-actions { width: 100%; }
  .batch-footer { align-items: flex-start; }
}

dialog { width: min(440px, calc(100% - 36px)); padding: 24px; color: var(--ink); background: #fff; box-shadow: 0 15px 70px #102c2230; border-radius: 16px; border: 1px solid var(--line); }
dialog::backdrop { background: #14281c66; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
dialog ol { padding-left: 24px; }
dialog li { margin: 8px 0; }
dialog p { color: var(--dim); font-size: 14px; }
dialog p + p { margin-top: 8px; }
@media (min-width: 1000px) {
  main { padding-top: 4px; }
  .intro { padding-block: 9px; height: clamp(165px, 14.1vw, 216px); min-height: 0; }
  .intro h1 { font-size: clamp(49px, 5vw, 77px); }
  .intro p { font-size: clamp(16px, 1.5vw, 23px); }
  .hero-art { height: 110%; margin-block: 0; }
}
@media (max-width: 760px) {
  .header-inner, main { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; padding-inline: 0; }
  main { padding-top: 14px; }
  .intro { padding: 21px; gap: 2%; min-height: 132px; }
  .intro-copy { flex: 1; }
  .intro h1 { font-size: 37px; }
  .intro p { font-size: 14px; }
  .hero-art { width: 25%; height: 96px; margin: 0; }
  .studio-panel { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .source-section { padding: 0; border: 0; }
  .dropzone { min-height: 184px; padding: 13px 10px; margin-top: 11px; }
  .upload-well { width: 56px; height: 56px; }
  #file-name { margin: 8px 0; }
  .settings-section h2 { margin-bottom: 2px; }
  .setting { padding-block: 7px; gap: 12px; }
  .comparison { grid-template-columns: 1fr; }
  .tool-icon { width: 40px; height: 40px; border-radius: 9px; }
  .primary { min-height: 48px; }
  .result-panel { padding: 17px 20px; }
}
@media (max-width: 420px) {
  .intro { gap: 8px; padding: 19px 18px; }
  .intro h1 { font-size: clamp(29px, 8.7vw, 36px); }
  .hero-art { width: 23%; height: 76px; }
  .studio-panel { padding: 17px; }
  .render-actions { grid-template-columns: 1fr; }
  .setting { gap: 9px; }
  .setting-copy small { font-size: 12px; }
  .result-details { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1.5s !important; transition: none !important; }
}
