:root {
  color-scheme: dark;
  --bg: #080d10;
  --surface: #141d21;
  --surface-hover: #1c282e;
  --text: #f0eee9;
  --muted: #a0a9ad;
  --line: #334047;
  --line-soft: #263239;
  --active: #42d7a0;
  --page-width: 1440px;
  --gutter: 54px;
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; }
body.is-studio { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled, input:disabled, select:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}
input, textarea, select { color: var(--text); accent-color: var(--text); }
input::placeholder, textarea::placeholder { color: #879398; }
select option { background: var(--surface); color: var(--text); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, p, h1, h2, h3, h4, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.12; letter-spacing: -.045em; }
h1 { font-size: 60px; }
h2 { font-size: 38px; }
h3 { font-size: 26px; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { color: var(--bg); background: var(--text); }

.container { width: 100%; max-width: var(--page-width); margin-inline: auto; padding-inline: var(--gutter); }
.site-header, .page-shell, .site-footer { width: 100%; max-width: var(--page-width); margin-inline: auto; padding-inline: var(--gutter); }
.page-shell { padding-top: 38px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .045em; text-transform: uppercase; }
.demo-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 20px; color: var(--bg); background: var(--text); border-radius: 999px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; gap: 40px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img, .brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--muted); font-size: 14px; padding-block: 12px; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { border-color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 0; font-size: 15px; line-height: 1.25; text-align: center; white-space: nowrap; transition: color .16s ease, background-color .16s ease; }
.btn:hover, .text-link:hover { color: var(--text); }
.btn.primary { min-height: 50px; padding: 14px 28px; border-radius: 999px; background: var(--text); color: var(--bg); }
.btn.primary:hover { background: var(--text); color: var(--bg); }
.btn.small { min-height: 40px; font-size: 13px; }
.btn.primary.small { padding: 10px 20px; }
.btn svg, .text-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 0; font-size: 14px; line-height: 1.3; }
.mobile-toggle { display: none; padding: 10px; width: 44px; height: 44px; margin-left: auto; }

.hero-heading { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 54px; }
.hero-heading h1 { font-size: clamp(42px, calc(4.2vw / var(--site-scale)), 60px); line-height: 1.035; }
.hero-copy { color: var(--muted); font-size: 18px; line-height: 1.48; max-width: 430px; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 24px; margin-bottom: 40px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 2.3; object-fit: cover; object-position: 35% 25%; }
.media-caption { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; padding-top: 8px; }
.media-caption .text-link { min-height: 28px; font-size: 13px; }
.session-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.session-strip .text-link { margin-left: auto; color: var(--text); }
.case-section { padding-top: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.section-heading > div { min-width: 0; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading p { color: var(--muted); font-size: 15px; max-width: 600px; }
.section-heading h2 + p { margin-top: 12px; }
.section-heading .text-link { flex-shrink: 0; }
.section-heading > .muted { font-size: 13px; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.compare-frame { position: relative; min-width: 0; }
.compare-frame img { width: 100%; aspect-ratio: 1.98; object-fit: cover; object-position: 35% 35%; }
.compare-grid figcaption, .references-grid figcaption { padding-top: 7px; color: var(--muted); font-size: 13px; }
.mask-outline { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.mask-outline path, .mask-outline polygon, .mask-outline polyline { fill: none; stroke: var(--text); stroke-width: 2; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
.references-grid { display: grid; grid-template-columns: 1fr 1fr 48px 2.7fr; align-items: start; gap: 16px; }
.ref-person, .ref-garment, .ref-result { min-width: 0; }
.ref-person img, .ref-garment img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 35%; }
.ref-person img { object-position: 35% center; }
.ref-result img { width: 100%; aspect-ratio: 2.75; object-fit: cover; object-position: 35% 40%; }
.ref-arrow { display: flex; align-items: center; justify-content: center; align-self: stretch; padding-bottom: 24px; color: var(--text); font-size: 28px; }
.bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.bottom-cta h2 { margin-bottom: 10px; }
.bottom-cta p { color: var(--muted); font-size: 14px; }
.bottom-cta .btn { flex-shrink: 0; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding-top: 20px; padding-bottom: 24px; color: var(--muted); font-size: 12px; }
.site-footer .brand img, .site-footer .brand svg { width: 24px; height: 24px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.footer-links a:hover { color: var(--text); }
.site-footer .demo-note { margin-left: auto; }

.page-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 32px; margin-bottom: 30px; }
.page-title > h1, .page-title > .eyebrow { grid-column: 1 / -1; }
.page-title h1 { font-size: 60px; }
.page-title p { margin-top: 8px; color: var(--muted); font-size: 23px; letter-spacing: -.025em; }
.page-title > .muted { font-size: 15px; flex-shrink: 0; margin-bottom: 4px; }
.tabs { display: flex; gap: 54px; align-items: center; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.tabs button, .tabs a { position: relative; min-height: 52px; color: var(--muted); font-size: 18px; padding: 10px 0 16px; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs [aria-selected="true"], .tabs .active { color: var(--text); border-bottom-color: var(--text); }
.tabs button:hover, .tabs a:hover { color: var(--text); }
.catalog-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 54px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.tool-menu { align-self: start; }
.tool-menu button { display: block; position: relative; width: 100%; padding: 18px 0 18px 32px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 18px; line-height: 1.3; }
.tool-menu button:last-child { border-bottom: 0; }
.tool-menu button.active, .tool-menu button:hover { color: var(--text); }
.tool-menu strong { font-weight: 400; }
.tool-menu button.active::before { content: ""; position: absolute; left: 0; top: 25px; width: 9px; height: 9px; border-radius: 50%; background: var(--text); }
.tool-input { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.tool-detail { min-width: 0; }
.tool-detail h2 { font-size: 30px; }
.tool-detail .section-heading { align-items: flex-start; }
.tool-detail .section-heading p { margin-top: 6px; font-size: 17px; }
.tool-detail .compare-frame img { aspect-ratio: 1.48; }
.definition-strip { display: grid; grid-template-columns: 1fr 1.25fr 1.6fr; gap: 28px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.definition-strip > * { min-width: 0; }
.definition-strip > * + * { padding-left: 24px; border-left: 1px solid var(--line); }
.definition-strip dt, .definition-strip .eyebrow { display: block; font-size: 11px; color: var(--text); margin-bottom: 3px; letter-spacing: .02em; }
.definition-strip small { display: block; color: var(--text); font-size: 11px; text-transform: uppercase; margin-bottom: 3px; }
.definition-strip span { display: block; }
.continue-row { display: grid; grid-template-columns: 1.2fr 1.15fr .85fr .85fr; align-items: center; gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.continue-row h2 { font-size: 32px; }
.continue-row p { font-size: 14px; color: var(--muted); margin-top: 5px; }
.continue-row .text-link { justify-self: start; border-bottom: 1px solid var(--muted); }
.single-preview { width: 100%; aspect-ratio: 3.25; object-fit: cover; object-position: 35% 30%; }
.tool-detail > .single-preview { aspect-ratio: auto; }
.single-preview > img { width: 100%; aspect-ratio: 2.2; object-fit: cover; object-position: 35% 35%; }
.single-preview figcaption { padding-top: 8px; color: var(--muted); font-size: 12px; }
.continue-row > img { width: 100%; aspect-ratio: 3.25; object-fit: cover; object-position: 35% 30%; }

.session-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 54px; padding-top: 28px; padding-bottom: 48px; }
.session-config h1 { font-size: 56px; margin-top: 12px; }
.session-config h1 + p { font-size: 23px; color: var(--muted); margin-top: 7px; }
.session-config h2 { font-size: 30px; }
.project-summary { display: grid; grid-template-columns: minmax(140px, .75fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 26px 0; }
.project-thumb { width: 100%; aspect-ratio: 2.5; object-fit: cover; object-position: 35% 35%; border-radius: 5px; }
.project-summary h2, .project-summary h3 { font-size: 27px; margin-bottom: 5px; }
.project-summary p { color: var(--muted); margin-top: 6px; }
.field-group { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.field-group h2, .field-group h3 { margin-bottom: 16px; }
.field-group > .muted { margin-top: 10px; font-size: 13px; }
.choice-row { display: flex; align-items: center; gap: 26px; }
.radio-row { display: flex; align-items: center; gap: 22px; min-height: 78px; padding: 16px 8px; border-bottom: 1px solid var(--line); cursor: pointer; }
.radio-row:last-child { border-bottom: 0; }
.radio-row > div { flex: 1; min-width: 0; }
.radio-row > span:not(.muted) { flex: 1; min-width: 0; }
.radio-row strong { display: block; font-size: 18px; font-weight: 400; }
.radio-row small, .radio-row .muted { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.radio-row input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; width: 24px; height: 24px; flex-shrink: 0; border: 1.5px solid var(--text); border-radius: 50%; background: transparent; }
.radio-row input[type="radio"]:checked { background: var(--text); box-shadow: inset 0 0 0 4px var(--bg); }
.radio-row [role="radio"] { text-align: left; }
.duration-choices { display: flex; align-items: center; flex-wrap: wrap; gap: 38px; }
.duration-choices button { min-height: 42px; padding: 6px 14px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 18px; }
.duration-choices button.active, .duration-choices [aria-pressed="true"], .duration-choices [aria-checked="true"] { color: var(--text); border-bottom-color: var(--text); }
.session-summary { border-left: 1px solid var(--line); padding-left: 46px; align-self: start; position: sticky; top: 28px; }
.session-summary h2 { font-size: 36px; }
.session-summary h2 + p { margin-top: 6px; color: var(--muted); font-size: 18px; }
.summary-list { padding-block: 24px; margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-list > div, .summary-list > li { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-block: 9px; font-size: 17px; }
.summary-list dt { color: var(--muted); }
.summary-list dd { min-width: 0; }
.total-price { margin-top: 24px; margin-bottom: 30px; }
.total-price p, .total-price > span { display: block; font-size: 19px; }
.total-price strong { display: block; font-weight: 400; font-size: 44px; letter-spacing: -.04em; margin-top: 6px; }
.total-price .muted { font-size: 14px; margin-top: 8px; }
.session-summary > .btn.primary { width: 100%; min-height: 62px; font-size: 19px; padding-inline: 18px; }
.session-summary > .demo-note { margin-top: 12px; }
.check-list { counter-reset: step; list-style: none; margin-top: 10px; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 16px; margin-top: 10px; color: var(--muted); }
.check-list li::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; background: var(--surface); color: var(--text); flex-shrink: 0; }
.check-list + .text-link { margin-left: 41px; margin-top: 8px; border-bottom: 1px solid var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 14px; }
.field input, .field select { width: 100%; min-height: 44px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.field textarea, textarea.field { width: 100%; min-height: 120px; padding: 14px 16px; background: var(--surface); border: 1px solid transparent; border-radius: 16px; color: var(--text); resize: vertical; line-height: 1.5; }
.field small { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 14px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #7c878d; flex-shrink: 0; }
.status-dot.active, .status.active .status-dot { background: var(--active); }

.studio-shell { display: flex; flex-direction: column; height: calc(100dvh / var(--site-scale)); min-height: 0; background: var(--bg); }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 12px 28px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; }
.app-header > .brand { padding-right: 22px; border-right: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 18px; font-size: 14px; min-width: 0; }
.app-header .breadcrumbs { margin-right: auto; }
.breadcrumbs .brand { border-right: 1px solid var(--line); padding-right: 22px; margin-right: 2px; }
.breadcrumbs > span { color: var(--muted); }
.breadcrumbs a, .breadcrumbs button { white-space: nowrap; }
.breadcrumbs a, .breadcrumbs > span { flex-shrink: 0; }
.breadcrumbs button { min-width: 0; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.gpu-controls { display: flex; align-items: center; gap: 18px; flex-shrink: 0; font-size: 13px; }
.gpu-controls .btn, .gpu-controls .text-link { min-height: 34px; font-size: 13px; }
.gpu-controls .timer { font-variant-numeric: tabular-nums; }
.workspace-tabs { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding-inline: 28px; gap: 24px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; }
.workspace-tabs > div { display: flex; align-items: center; gap: 28px; min-width: 0; }
.workspace-tabs > div:first-child { gap: 38px; overflow-x: auto; scrollbar-width: thin; }
.workspace-tabs > div:first-child > button { min-height: 58px; padding: 14px 0; border-bottom: 2px solid transparent; font-size: 17px; white-space: nowrap; color: var(--muted); }
.workspace-tabs > div:first-child > button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.workspace-tabs > div:first-child > button:hover { color: var(--text); }
.workspace-tabs > div:last-child .text-link { font-size: 13px; }
.workspace-tabs .tabs { border-bottom: 0; gap: 38px; }
.workspace-tabs .tabs button { min-height: 56px; padding-block: 14px; font-size: 17px; }
.workspace-tabs > .header-actions, .workspace-tabs .workspace-links { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.workspace-grid { display: grid; grid-template-columns: 312px minmax(0, 1fr) 230px; flex: 1; min-height: 0; }
.controls-panel { display: flex; flex-direction: column; border-right: 1px solid var(--line-soft); min-height: 0; min-width: 0; }
.control-content { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 24px 20px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.control-content > h1, .control-content > h2 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 24px; }
.control-label { display: block; color: var(--text); font-size: 13px; margin-bottom: 10px; }
.control-content .field, .control-content .field-group { margin-top: 24px; }
.control-content .field-group { border-top: 0; padding-top: 0; }
.control-content .field-group h3 { font-size: 14px; letter-spacing: 0; }
.control-content .muted, .control-content .demo-note { font-size: 12px; }
.control-content .field label { font-size: 13px; }
.control-content .field select { min-height: 40px; padding-inline: 8px; }
.control-content .field textarea { min-height: 124px; font-size: 13px; padding: 13px 14px; }
.mode-choices { display: flex; align-items: center; gap: 14px; }
.mode-choices button { min-height: 37px; padding: 4px 0 10px; color: var(--muted); font-size: 12px; border-bottom: 2px solid transparent; }
.mode-choices button.active, .mode-choices [aria-pressed="true"], .mode-choices [aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.mode-choices button:hover { color: var(--text); }
.mode-choices + .muted { margin-top: 8px; }
.control-content .choice-row { gap: 28px; }
.control-content .choice-row button { min-width: 44px; min-height: 37px; padding: 4px 4px 10px; color: var(--muted); border-bottom: 2px solid transparent; font-size: 14px; }
.control-content .choice-row button.active, .control-content .choice-row [aria-pressed="true"] { color: var(--text); border-bottom-color: var(--text); }
.upload-field { padding-block: 12px; border-bottom: 1px solid var(--line); }
.upload-field .text-link { min-height: 32px; }
.upload-field img { max-height: 150px; width: 100%; object-fit: cover; margin-top: 8px; }
.upload-field input[type="file"] { width: 100%; font-size: 12px; }
.upload-field input::file-selector-button { background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--muted); padding: 8px 0; margin-right: 10px; cursor: pointer; }
.control-content details { margin-top: 24px; }
.control-content summary { font-size: 13px; color: var(--text); cursor: pointer; padding-block: 10px; }
.control-content details[open] summary { margin-bottom: 8px; }
.generate-bar { flex-shrink: 0; padding: 18px 24px 22px; }
.generate-bar .btn.primary { width: 100%; font-size: 17px; }
.generate-bar .demo-note { text-align: center; margin-top: 10px; font-size: 11px; }
.stage-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 22px 24px 14px; }
.stage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; margin-bottom: 12px; font-size: 13px; flex-shrink: 0; }
.stage-toolbar > div { display: flex; align-items: center; gap: 16px; }
.stage-toolbar .btn, .stage-toolbar .text-link { min-height: 28px; padding: 0; font-size: 12px; }
.stage-toolbar select { border: 0; background: transparent; font-size: 12px; }
.result-stage { display: flex; position: relative; align-items: center; justify-content: center; flex: 1; min-height: 0; min-width: 0; overflow: hidden; }
.stage-image { display: block; aspect-ratio: 4 / 5; object-fit: cover; object-position: 35% center; height: auto; width: auto; max-height: 100%; max-width: 100%; transform: scale(var(--zoom, 1)); transform-origin: center; }
.stage-image.fit-image { object-fit: contain; }
.stage-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; padding: 10px 0; flex-shrink: 0; }
.stage-actions .btn, .stage-actions .text-link { font-size: 13px; min-height: 34px; }
.stage-actions > :last-child { margin-left: auto; }
.workflow-path { display: flex; align-items: center; justify-content: center; gap: 18px; border-top: 1px solid var(--line-soft); padding: 12px 0 4px; font-size: 12px; color: var(--muted); flex-shrink: 0; }
.workflow-path button, .workflow-path a { padding: 6px 0; white-space: nowrap; }
.workflow-path .active { color: var(--text); border-bottom: 1px solid var(--text); }
.result-history { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 24px 18px 18px; border-left: 1px solid var(--line-soft); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.result-history > h2, .result-history > h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 24px; }
.result-history .section-heading { margin-bottom: 22px; gap: 12px; }
.result-history .section-heading h2 { font-size: 21px; letter-spacing: -.02em; }
.result-history .section-heading .muted { font-size: 12px; }
.history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; align-items: start; }
.history-item { position: relative; min-width: 0; text-align: left; padding: 0; color: var(--muted); }
.history-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 35% center; border-radius: 3px; }
.history-item.selected { color: var(--text); }
.history-item.selected::after { content: ""; position: absolute; left: -1px; top: -1px; width: 17px; height: 17px; border-left: 2px solid var(--text); border-top: 2px solid var(--text); pointer-events: none; }
.history-caption { display: block; font-size: 12px; margin-top: 7px; }
.materials-link { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 20px 0 0; margin-top: auto; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; min-height: 48px; }
.materials-link:hover { color: var(--text); }
.materials-link svg { width: 18px; height: 18px; }
.materials-link > :last-child { margin-left: auto; }
.progress-bar { width: 100%; height: 3px; background: var(--line-soft); overflow: hidden; }
.progress-bar > span, .progress-bar > div { display: block; height: 100%; width: var(--progress, 0%); background: var(--text); transition: width .3s ease; }
.spinner { width: 18px; height: 18px; display: inline-block; border: 2px solid var(--line); border-right-color: var(--text); border-radius: 50%; flex-shrink: 0; animation: rotate 1s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }

.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 26px; padding-bottom: 44px; }
.project-card { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 0 12px; padding: 0; min-width: 0; text-align: left; }
.project-card img { width: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: 35% 35%; }
.project-card > img { grid-column: 1 / -1; }
.project-card > span { min-width: 0; padding-top: 16px; }
.project-card strong { display: block; font-size: 23px; font-weight: 400; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.project-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 7px; }
.project-card > .icon { margin-top: 20px; }
.project-card h2, .project-card h3 { font-size: 24px; margin-top: 15px; }
.project-card p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.project-card .text-link { margin-top: 8px; }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; min-height: 280px; padding: 32px; text-align: center; color: var(--muted); }
.empty-state h2, .empty-state h3 { color: var(--text); }
.empty-state p { max-width: 400px; }
.library-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; padding: 18px 0 40px; }
.library-links > a, .library-links > div, .library-links > section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.library-links h2, .library-links h3 { font-size: 25px; }
.library-links p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.library-links section > .text-link { display: flex; justify-content: space-between; width: 100%; text-align: left; min-height: 44px; }
.library-links section > p { margin-bottom: 16px; }
.service-form { display: flex; flex-direction: column; gap: 26px; max-width: 740px; padding: 20px 0 56px; }
.service-form .btn.primary { align-self: flex-start; }

.toasts { position: fixed; z-index: 120; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(calc(100vw / var(--site-scale)) - 48px)); pointer-events: none; }
.toast { padding: 15px 18px; background: var(--surface); border-left: 2px solid var(--text); border-radius: 3px; color: var(--text); font-size: 14px; box-shadow: 0 8px 30px #0005; pointer-events: auto; }
dialog { width: min(620px, calc(100% - 40px)); max-height: calc(calc(100dvh / var(--site-scale)) - 64px); overflow: auto; border: 1px solid var(--line); border-radius: 20px; padding: 0; background: var(--surface); color: var(--text); box-shadow: 0 20px 80px #0008; }
dialog::backdrop { background: #020609c9; backdrop-filter: blur(4px); }
.modal-body { padding: 32px; }
.modal-body h2 { font-size: 32px; margin-bottom: 18px; padding-right: 30px; }
.modal-body p { color: var(--muted); margin-top: 12px; }
.modal-body .field { margin-top: 20px; }
.modal-close { position: absolute; right: 16px; top: 16px; display: flex; justify-content: center; align-items: center; width: 36px; height: 36px; font-size: 24px; color: var(--muted); }
.modal-close:hover { color: var(--text); }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.option-list { display: flex; flex-direction: column; margin-block: 16px; }
.option-list button, .option-list label { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; padding: 14px 0; text-align: left; border-bottom: 1px solid var(--line); }
.option-list button.active { color: var(--text); }
.option-list small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.compare-slider { position: relative; width: min(100%, 520px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg); }
.comparison-base, .comparison-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.comparison-base img, .comparison-overlay img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.comparison-overlay { clip-path: inset(0 calc(100% - var(--compare, 50%)) 0 0); }
.compare-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--text); pointer-events: none; }
.compare-slider input[type="range"] { position: absolute; inset: auto 18px 16px; z-index: 2; width: calc(100% - 36px); cursor: ew-resize; }

.icon { display: inline-block; width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
.flow-arrow { color: var(--muted); font-size: 20px; }
.instruction-caption { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.case-section > .eyebrow { margin-bottom: 8px; }
.back-link { margin-top: -8px; margin-bottom: 6px; }
.title-aside { justify-self: end; }
.page-title > .eyebrow { font-size: 12px; margin-top: 0; letter-spacing: .045em; }
.bottom-cta p > span { display: inline-block; margin-inline: 22px; }
.page-shell > .demo-note { padding-top: 14px; }
.session-time { margin-left: 4px; font-variant-numeric: tabular-nums; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #2b353a; color: var(--text); flex-shrink: 0; font-size: 14px; }
.advanced summary { display: flex; gap: 10px; align-items: center; list-style: none; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::after { content: "⌄"; font-size: 17px; line-height: 1; }
.advanced[open] summary::after { transform: rotate(180deg); }
.control-content .mode-choices.choice-row { gap: 16px; }
.control-content .mode-choices.choice-row button { min-width: 0; padding-inline: 0; font-size: 12px; }
.control-content .field .control-label { margin-bottom: 0; }
.upload-field { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; position: relative; min-height: 58px; cursor: pointer; }
.upload-field > img { width: 70px; height: 70px; margin: 0; object-fit: cover; }
.upload-field > span { flex: 1; overflow-wrap: anywhere; font-size: 13px; }
.upload-field small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.upload-field input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: -1px; padding: 0; border: 0; }
.upload-field:focus-within { outline: 2px solid var(--text); outline-offset: 5px; }
.is-busy .stage-image { opacity: .5; }
.faq-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-size: 16px; }
.faq-item p { font-size: 14px; padding-bottom: 4px; }
.material-list > div { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.material-list strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 400; }
.material-list .muted { font-size: 12px; }
.material-list img { grid-column: 1 / -1; max-height: 240px; width: 100%; object-fit: contain; object-position: left; }
.custom-photo { width: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: 35% center; margin-bottom: 18px; }
.library-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: center; margin-block: 24px 36px; }
.library-intro img { width: 100%; aspect-ratio: 1.7; object-fit: cover; object-position: 35% center; }
.library-intro h2 { font-size: 34px; }
.library-intro p { margin-block: 14px; }
.modal-body form { display: flex; flex-direction: column; gap: 24px; }
.modal-body form > .field { margin-top: 0; }
.modal-body form > .btn { align-self: flex-start; }
.modal-body .compare-slider { margin: 20px auto 0; width: min(100%, 440px); }
.field input[type="range"] { padding: 0; min-height: 24px; border: 0; cursor: pointer; }
.mask-editor { position: relative; width: 100%; margin-top: 18px; }
.mask-editor > img { display: block; width: 100%; height: auto; }
.mask-editor > canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .4; touch-action: none; cursor: crosshair; }

@media (max-width: 1320px) {
  :root { --gutter: 40px; }
  .site-header { gap: 28px; }
  .nav-links { gap: 24px; }
  .hero-heading { gap: 32px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .hero-copy { font-size: 16px; }
  .section-heading h2, .bottom-cta h2 { font-size: 33px; }
  .catalog-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 36px; }
  .tool-menu button { font-size: 17px; }
  .session-grid { gap: 36px; }
  .session-summary { padding-left: 32px; }
  .workspace-grid { grid-template-columns: 280px minmax(0, 1fr) 190px; }
  .control-content { padding-inline: 20px; }
  .generate-bar { padding-inline: 20px; }
  .mode-choices { gap: 12px; }
  .stage-panel { padding-inline: 20px; }
  .result-history { padding-inline: 14px; }
  .app-header { padding-inline: 24px; gap: 16px; }
  .gpu-controls { gap: 12px; }
  .workspace-tabs { padding-inline: 24px; }
  .continue-row { grid-template-columns: 1.1fr 1fr .9fr .75fr; gap: 22px; }
}

@media (max-width: 1100px) {
  .hero-heading h1 { font-size: 44px; }
  .header-actions { gap: 18px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .session-strip { justify-content: flex-start; gap: 14px 22px; }
  .definition-strip { grid-template-columns: 1fr 1fr; }
  .definition-strip > :last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .project-summary { gap: 20px; }
  .session-grid { grid-template-columns: minmax(0, 1.4fr) minmax(290px, 1fr); }
  .session-config h1 { font-size: 46px; }
  .session-config h1 + p { font-size: 20px; }
  .duration-choices { gap: 12px; }
  .duration-choices button { font-size: 16px; }
  .session-summary h2 { font-size: 32px; }
  .summary-list > div, .summary-list > li { font-size: 15px; }
  .breadcrumbs button { max-width: 210px; }
  .app-header > .brand { padding-right: 16px; }
  .gpu-controls, .gpu-controls .status, .gpu-controls .text-link { font-size: 12px; }
}

@media (max-width: 990px) {
  body.is-studio { overflow: auto; }
  .studio-shell { height: auto; min-height: calc(100dvh / var(--site-scale)); }
  .app-header { flex-wrap: wrap; align-items: center; padding: 14px 20px; }
  .breadcrumbs { gap: 12px; }
  .breadcrumbs .brand { padding-right: 14px; }
  .gpu-controls { margin-left: auto; flex-wrap: wrap; gap: 10px 16px; }
  .workspace-tabs { padding-inline: 20px; flex-wrap: wrap; gap: 4px 20px; }
  .workspace-tabs .tabs { gap: 28px; max-width: 100%; }
  .workspace-tabs .tabs button { font-size: 15px; }
  .workspace-tabs > div:first-child { gap: 28px; max-width: 100%; }
  .workspace-tabs > div:first-child > button { min-height: 52px; font-size: 15px; }
  .workspace-tabs > div:last-child { gap: 24px; }
  .workspace-tabs > .header-actions, .workspace-tabs .workspace-links { gap: 20px; padding-bottom: 8px; }
  .workspace-grid { display: grid; grid-template-columns: 1fr; }
  .controls-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .control-content { overflow: visible; padding: 24px 20px; }
  .control-content .field, .control-content .field-group { max-width: 640px; }
  .mode-choices { gap: 26px; }
  .mode-choices button { font-size: 14px; }
  .generate-bar { padding: 0 20px 24px; max-width: 400px; width: 100%; }
  .stage-panel { padding: 24px 20px 18px; }
  .result-stage { flex: auto; overflow: visible; }
  .stage-image { height: auto; width: min(100%, 540px); aspect-ratio: 4 / 5; max-height: none; }
  .stage-actions { padding-block: 14px; }
  .workflow-path { justify-content: flex-start; overflow-x: auto; }
  .result-history { border-left: 0; border-top: 1px solid var(--line); overflow: visible; padding: 24px 20px; }
  .history-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .materials-link { margin-top: 24px; }
  .continue-row { grid-template-columns: 1.2fr 1fr; }
  .continue-row .text-link { min-height: 36px; }
}

@media (max-width: 836px) {
  :root { --gutter: 20px; }
  body { font-size: 14px; }
  .page-shell { padding-top: 26px; }
  h1, .page-title h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }
  .site-header { gap: 18px; min-height: 70px; position: relative; flex-wrap: wrap; padding-block: 12px; }
  .brand img, .brand svg { width: 24px; height: 24px; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; order: 3; margin-left: 0; }
  .header-actions { margin-left: auto; gap: 18px; }
  .header-actions .btn.small { font-size: 12px; }
  .header-actions .btn.primary.small { padding-inline: 16px; }
  .site-header > .nav-links { display: none; order: 4; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); gap: 0; }
  .site-header.menu-open > .nav-links { display: flex; flex-direction: column; align-items: stretch; }
  .site-header .nav-links a { min-height: 44px; display: flex; align-items: center; font-size: 15px; }
  .site-header .nav-links a[aria-current="page"] { border-bottom-color: transparent; text-decoration: underline; text-underline-offset: 6px; }
  .hero-heading { grid-template-columns: 1fr; gap: 22px; }
  .hero-heading h1 { font-size: clamp(36px, calc(6.8vw / var(--site-scale)), 48px); line-height: 1.055; }
  .hero-copy { max-width: 540px; font-size: 16px; }
  .hero-actions { margin-top: 22px; margin-bottom: 28px; gap: 24px; }
  .hero-media img { aspect-ratio: 1.5; object-position: 35% 25%; }
  .media-caption { align-items: flex-start; font-size: 11px; gap: 16px; }
  .media-caption .text-link { font-size: 11px; text-align: right; }
  .session-strip { padding-block: 18px; font-size: 12px; gap: 12px 18px; }
  .session-strip .text-link { margin-left: 0; font-size: 12px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px 20px; }
  .section-heading h2, .bottom-cta h2 { font-size: 30px; }
  .section-heading p { font-size: 14px; }
  .section-heading > .muted { font-size: 12px; }
  .compare-grid { gap: 12px; }
  .compare-frame img { aspect-ratio: 4 / 5; }
  .compare-grid figcaption, .references-grid figcaption { font-size: 11px; }
  .references-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .ref-arrow { display: none; }
  .ref-result { grid-column: 1 / -1; }
  .ref-result img { aspect-ratio: 1.9; }
  .bottom-cta { align-items: flex-start; flex-direction: column; gap: 20px; }
  .bottom-cta p { font-size: 13px; }
  .site-footer { gap: 20px; padding-block: 20px 28px; }
  .footer-links { gap: 14px 24px; flex: 1; }
  .site-footer .demo-note { margin-left: 0; flex-basis: 100%; }
  .page-title { grid-template-columns: 1fr; align-items: start; gap: 10px; margin-bottom: 24px; }
  .page-title p { font-size: 20px; }
  .page-title > .muted { font-size: 13px; }
  .page-title .title-aside { justify-self: start; }
  .tabs { gap: 32px; }
  .tabs button, .tabs a { font-size: 16px; min-height: 48px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 18px; }
  .tool-menu { display: flex; overflow-x: auto; gap: 20px; scrollbar-width: thin; padding-bottom: 6px; }
  .tool-menu button { width: auto; min-width: 172px; flex-shrink: 0; padding: 10px 0 12px; font-size: 16px; border-bottom: 2px solid transparent; }
  .tool-menu button:last-child { border-bottom: 2px solid transparent; }
  .tool-menu button.active { border-bottom-color: var(--text); }
  .tool-menu button.active::before { display: none; }
  .tool-input { font-size: 12px; }
  .tool-detail .section-heading { align-items: center; }
  .tool-detail h2 { font-size: 28px; }
  .tool-detail .section-heading p { font-size: 15px; }
  .tool-detail .compare-frame img { aspect-ratio: 4 / 5; }
  .definition-strip { gap: 16px 20px; font-size: 12px; }
  .definition-strip > * + * { padding-left: 20px; }
  .continue-row { gap: 18px; }
  .continue-row h2 { font-size: 28px; }
  .single-preview { aspect-ratio: 2.5; }
  .continue-row > img { aspect-ratio: 2.5; }
  .session-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 22px; }
  .session-config h1 { font-size: 42px; }
  .session-config h1 + p { font-size: 20px; }
  .session-config h2 { font-size: 28px; }
  .project-summary { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .project-summary h2, .project-summary h3 { font-size: 22px; }
  .project-summary p { font-size: 12px; }
  .project-thumb { aspect-ratio: 1.6; }
  .session-summary { position: static; padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .session-summary h2 { font-size: 32px; }
  .session-summary > .btn.primary { min-height: 54px; font-size: 17px; }
  .summary-list > div, .summary-list > li { font-size: 16px; }
  .radio-row { gap: 18px; padding-inline: 0; }
  .radio-row strong { font-size: 16px; }
  .radio-row small, .radio-row .muted { font-size: 12px; }
  .duration-choices { gap: 22px; }
  .duration-choices button { padding-inline: 10px; }
  .check-list li { font-size: 13px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .library-links { grid-template-columns: 1fr; }
  .service-form { padding-top: 8px; }
  .library-intro { grid-template-columns: 1fr; gap: 24px; }
  .library-intro h2 { font-size: 30px; }
  .custom-photo { aspect-ratio: 1.4; }
  .bottom-cta p > span { margin-inline: 10px; }
  .instruction-caption { font-size: 12px; margin-bottom: 14px; }
  .modal-body { padding: 28px 24px; }
  .modal-body h2 { font-size: 28px; }
}

@media (max-width: 528px) {
  .header-actions { gap: 12px; }
  .header-actions > .text-link { font-size: 12px; }
  .hero-heading h1 { font-size: 35px; }
  .hero-actions { gap: 20px; }
  .hero-actions .btn.primary { padding-inline: 22px; }
  .hero-actions .text-link { font-size: 13px; }
  .hero-media img { aspect-ratio: 1.18; }
  .section-heading h2, .bottom-cta h2 { font-size: 28px; }
  .section-heading .text-link { min-height: 32px; }
  .continue-row { grid-template-columns: 1fr 1fr; }
  .continue-row > :first-child { grid-column: 1 / -1; }
  .continue-row .single-preview { grid-column: 1 / -1; aspect-ratio: 3; }
  .continue-row > img { grid-column: 1 / -1; aspect-ratio: 3; }
  .continue-row .text-link { font-size: 13px; }
  .form-row { grid-template-columns: 1fr; gap: 20px; }
  .project-summary { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .project-summary h2, .project-summary h3 { font-size: 21px; }
  .project-thumb { aspect-ratio: 1.3; }
  .radio-row > :last-child { font-size: 13px; }
  .duration-choices { gap: 16px; }
  .duration-choices button { padding-inline: 8px; font-size: 15px; }
  .projects-grid { grid-template-columns: 1fr; }
  .gpu-controls { width: 100%; margin-left: 0; justify-content: flex-start; gap: 10px 18px; }
  .gpu-controls .status, .gpu-controls .btn, .gpu-controls .text-link { font-size: 12px; }
  .breadcrumbs { font-size: 13px; }
  .workspace-tabs .tabs { width: 100%; gap: 24px; }
  .workspace-tabs .tabs button { font-size: 14px; }
  .workspace-tabs > div:first-child { width: 100%; gap: 24px; }
  .workspace-tabs > div:first-child > button { font-size: 14px; }
  .workspace-tabs > div:last-child { padding-bottom: 8px; }
  .workspace-tabs > .header-actions { margin-left: 0; }
  .stage-toolbar { gap: 10px; font-size: 12px; }
  .stage-toolbar > div { gap: 12px; }
  .stage-actions { gap: 12px 20px; }
  .stage-actions .btn, .stage-actions .text-link { font-size: 12px; }
  .history-grid { gap: 12px; }
  .control-content .mode-choices.choice-row { gap: 24px; }
  .app-header > .brand { padding-right: 12px; }
  .workflow-path { gap: 14px; font-size: 11px; }
  .modal-actions { gap: 14px; }
  .modal-actions .btn.primary { padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
