:root {
  --ink: #22231f;
  --muted: #6d6e67;
  --line: #deddd5;
  --paper: #f8f7f2;
  --card: #fff;
  --green: #294e42;
  --green-soft: #dce8e1;
  --clay: #c87152;
  --gold: #c79b58;
  --shadow: 0 18px 50px rgba(41, 45, 38, .09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.app-shell { display: grid; grid-template-columns: 242px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 242px; z-index: 20; display: flex; flex-direction: column; padding: 30px 22px 24px; background: #233b34; color: #f8f6ef; }
.theme-toggle { width: 100%; margin-top: 20px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 3px; color: rgba(255,255,255,.82); background: transparent; font-size: 10px; text-align: left; cursor: pointer; }
.theme-toggle:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: grid; font-family: Georgia, serif; font-size: 22px; line-height: .94; letter-spacing: -.35px; }
.brand-copy small { margin-bottom: 4px; color: #d8a8ff; font-family: Inter, ui-sans-serif, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.steps { display: flex; flex-direction: column; gap: 4px; margin-top: 58px; }
.step { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 12px; border: 0; border-radius: 8px; color: rgba(255,255,255,.54); background: transparent; text-align: left; cursor: pointer; }
.step:disabled { cursor: default; }
.step.is-active { color: #fff; background: rgba(255,255,255,.09); }
.step:not(:disabled):hover { background: rgba(255,255,255,.06); }
.step-number { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }
.step.is-active .step-number { color: #243c35; background: #f2ede2; border-color: #f2ede2; }
.step strong, .step small { display: block; }
.step strong { font-size: 13px; font-weight: 600; }
.step small { margin-top: 3px; font-size: 11px; opacity: .7; }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.privacy-note svg { width: 23px; fill: none; stroke: #b8d1c4; stroke-width: 1.5; }
.privacy-note strong, .privacy-note span { display: block; }
.privacy-note strong { color: #dce9e2; font-size: 11px; letter-spacing: .02em; }
.privacy-note span { margin-top: 5px; color: rgba(255,255,255,.5); font-size: 10px; line-height: 1.45; }

main { grid-column: 2; min-width: 0; }
.view { display: none; min-height: 100vh; }
.view.is-visible { display: block; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; border-bottom: 1px solid var(--line); background: rgba(248,247,242,.9); backdrop-filter: blur(14px); }
.topbar > span { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .13em; color: #77786f; }
.text-button, .back-button { padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.text-button:hover, .back-button:hover { color: var(--ink); }
.setup-wrap { width: min(1140px, calc(100% - 80px)); margin: 0 auto; padding: 68px 0 90px; }
.eyebrow { margin-bottom: 15px; color: var(--clay); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4.5vw, 62px); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
.lede { max-width: 710px; margin: 22px 0 38px; color: var(--muted); font-family: Georgia, serif; font-size: 17px; line-height: 1.65; }
.setup-grid { display: grid; grid-template-columns: minmax(330px, .9fr) minmax(480px, 1.1fr); gap: 20px; }
.import-card, .preferences-card { min-height: 430px; border: 1px solid var(--line); background: var(--card); }
.import-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 42px; border-style: dashed; text-align: center; transition: border-color .2s, background .2s, transform .2s; }
.import-card.is-dragging { border-color: var(--green); background: #f4f8f5; transform: translateY(-2px); }
.import-card.has-files { border-style: solid; border-color: #9cb5a8; background: #f7faf7; }
.import-icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.import-icon svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.import-card h2, .preferences-card h2, .export-panel h2 { margin: 0; font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.import-card > p { max-width: 300px; margin: 10px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.import-card > small { margin-top: 18px; color: #9a9a92; font-size: 10px; }
.picker-actions { display: flex; gap: 9px; }
.primary-button, .secondary-button, .begin-button, .export-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; cursor: pointer; }
.primary-button { padding: 11px 18px; border: 1px solid var(--green); color: white; background: var(--green); font-size: 12px; }
.secondary-button { padding: 11px 18px; border: 1px solid var(--line); background: white; font-size: 12px; }
.preferences-card { padding: 30px 34px; }
.card-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.section-number { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; background: var(--green); color: white; font-family: Georgia, serif; font-size: 11px; }
.field-label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.field-label span { color: #a0a097; font-weight: 400; }
input[type="text"], select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 2px; outline: none; background: white; color: var(--ink); font-size: 12px; }
input[type="text"]:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(41,78,66,.08); }
fieldset { padding: 0; margin: 23px 0; border: 0; }
.look-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.look-options input { position: absolute; opacity: 0; pointer-events: none; }
.look-options label > span { display: flex; flex-direction: column; align-items: center; padding: 11px 5px 10px; border: 1px solid var(--line); cursor: pointer; transition: .15s; }
.look-options input:checked + span { border-color: var(--green); background: #f3f7f4; box-shadow: inset 0 0 0 1px var(--green); }
.look-options strong { font-size: 10px; font-weight: 600; }
.look-options small { margin-top: 3px; color: #99998f; font-size: 8px; }
.swatch { width: 36px; height: 25px; margin-bottom: 8px; border-radius: 2px; background: linear-gradient(135deg, #d3cabb 50%, #67746c 50%); }
.swatch.warm { background: linear-gradient(135deg, #e8c29f 50%, #9b5f48 50%); }
.swatch.bright { background: linear-gradient(135deg, #f2eee3 50%, #9eacaf 50%); }
.swatch.true { background: linear-gradient(135deg, #c9d7d5 50%, #826e5f 50%); }
.count-row { display: flex; justify-content: space-between; align-items: center; }
.count-row output { color: var(--green); font-family: Georgia, serif; font-size: 18px; }
input[type="range"] { width: 100%; accent-color: var(--green); }
.range-labels { display: flex; justify-content: space-between; color: #aaa99f; font-size: 9px; }
.video-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.video-option strong, .video-option small { display: block; }
.video-option strong { font-size: 10px; }
.video-option small { max-width: 260px; margin-top: 4px; color: #99998f; font-size: 8px; line-height: 1.4; }
.video-option select { width: 92px; flex: 0 0 auto; padding: 8px; font-size: 9px; }
.preference-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); cursor: pointer; }
.preference-check input { margin: 1px 0 0; accent-color: var(--green); }
.preference-check strong, .preference-check small { display: block; }
.preference-check strong { font-size: 10px; }
.preference-check small { margin-top: 4px; color: #99998f; font-size: 8px; line-height: 1.4; }
.begin-button { width: 100%; gap: 12px; margin-top: 20px; padding: 15px; border: 0; color: white; background: var(--green); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.begin-button:disabled { color: #9d9e98; background: #e4e3dd; cursor: not-allowed; }
.begin-button svg, .export-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.analysis-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 50px; text-align: center; }
.analysis-panel h1 { font-size: 47px; }
.analysis-panel > p { margin: 14px 0 28px; color: var(--muted); font-family: Georgia, serif; }
.scan-visual { position: relative; width: 260px; height: 190px; margin-bottom: 36px; overflow: hidden; }
.scan-stack { height: 100%; display: flex; align-items: center; justify-content: center; gap: 5px; }
.scan-stack img { width: 66px; height: 106px; border-radius: 3px; object-fit: cover; box-shadow: var(--shadow); transform: rotate(-4deg); }
.scan-stack img:nth-child(2) { width: 82px; height: 126px; z-index: 2; transform: translateY(-5px); }
.scan-stack img:nth-child(3) { transform: rotate(4deg); }
.scan-line { position: absolute; left: 15px; right: 15px; top: 10%; z-index: 5; height: 1px; background: var(--clay); box-shadow: 0 0 12px var(--clay); animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { to { top: 90%; } }
.progress-track { width: min(420px, 80vw); height: 3px; overflow: hidden; background: #deded8; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--green); transition: width .25s; }
.analysis-panel > small { margin-top: 10px; color: #99998f; }

.review-topbar { position: sticky; top: 0; z-index: 10; }
.review-topbar > div:first-child { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.crumb { color: #9a9a92; }
.crumb::after { content: "/"; margin-left: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.status-pill { color: #6e746f; font-size: 10px; }
.status-pill i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #66a278; }
.primary-button.compact { padding: 10px 14px; border: 0; }
.primary-button.compact b { margin-left: 12px; font-size: 15px; }
.compact-secondary { padding: 9px 11px; font-size: 10px; }
.workspace { width: min(1400px, calc(100% - 70px)); margin: 0 auto; padding: 55px 0 80px; }
.review-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.review-heading h1 { font-size: clamp(34px, 3.4vw, 50px); }
.review-heading p { margin: 14px 0 0; color: var(--muted); font-family: Georgia, serif; font-size: 14px; }
.review-stats { display: flex; align-items: stretch; border: 1px solid var(--line); background: white; }
.review-stats div { min-width: 105px; padding: 15px 18px; border-right: 1px solid var(--line); text-align: center; }
.review-stats div:last-child { border: 0; }
.review-stats strong, .review-stats span { display: block; }
.review-stats strong { font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.review-stats span { margin-top: 3px; color: #92928a; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.notice { margin-top: 26px; padding: 12px 15px; border: 1px solid #dbcaa8; background: #fff9ea; color: #695b3f; font-size: 11px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin: 42px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; gap: 22px; }
.filter-tabs button { padding: 7px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #898980; font-size: 11px; cursor: pointer; }
.filter-tabs button.is-active { border-color: var(--ink); color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: 20px; color: #9a9a92; font-size: 9px; }
kbd { padding: 2px 4px; border: 1px solid #d3d2ca; border-radius: 2px; background: white; font: inherit; }
.toolbar select { width: auto; padding: 7px 26px 7px 9px; font-size: 9px; }
.photo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.photo-card { position: relative; min-width: 0; cursor: pointer; }
.photo-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e4e2da; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s, filter .25s; }
.photo-card:hover img { transform: scale(1.025); }
.photo-card:not(.is-selected) img { filter: saturate(.55) brightness(.87); }
.selection-mark { position: absolute; top: 9px; left: 9px; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; color: transparent; background: rgba(25,28,25,.28); font-size: 12px; }
.photo-card.is-selected .selection-mark { color: white; background: var(--green); border-color: var(--green); }
.lock-mark { position: absolute; top: 9px; right: 9px; padding: 5px 7px; border-radius: 2px; color: white; background: rgba(25,28,25,.55); font-size: 9px; opacity: 0; }
.photo-card.is-locked .lock-mark { opacity: 1; }
.reason { position: absolute; left: 8px; bottom: 8px; padding: 5px 7px; color: white; background: rgba(27,31,27,.7); font-size: 8px; letter-spacing: .02em; backdrop-filter: blur(5px); }
.photo-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; padding-top: 8px; }
.photo-meta strong { display: block; overflow: hidden; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.photo-meta span { flex: 0 0 auto; color: #9a9a92; font-size: 8px; }
.score-dots { display: flex; gap: 2px; margin-top: 4px; }
.score-dots i { width: 13px; height: 2px; background: #d7d7cf; }
.score-dots i.on { background: var(--gold); }

.finish-layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; min-height: calc(100vh - 68px); }
.preview-area { padding: 52px 55px 40px; overflow: hidden; }
.preview-copy { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 30px; }
.preview-copy .eyebrow { grid-column: 1 / -1; margin-bottom: -28px; }
.preview-copy h1 { font-size: clamp(36px, 3.8vw, 54px); }
.preview-copy p { margin: 0; color: var(--muted); font-family: Georgia, serif; font-size: 13px; line-height: 1.65; }
.hero-preview { position: relative; width: 100%; height: min(54vh, 600px); min-height: 330px; overflow: hidden; background: #deddd5; }
.hero-preview > img, .before-slice img { width: 100%; height: 100%; object-fit: contain; background: #292b28; }
.hero-preview.is-retouching { cursor: crosshair; }
.hero-preview.is-retouching > input { pointer-events: none; }
.hero-preview.is-retouching .before-slice, .hero-preview.is-retouching .before-label { display: none; }
.before-slice { position: absolute; inset: 0 50% 0 0; overflow: hidden; border-right: 1px solid white; }
.before-slice img { width: calc(200%); max-width: none; object-position: left center; }
.hero-preview > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.before-label, .after-label { position: absolute; z-index: 2; top: 12px; padding: 5px 8px; color: white; background: rgba(0,0,0,.45); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.before-label { left: 12px; }
.after-label { right: 12px; }
.retouch-cursor { position: absolute; z-index: 5; display: none; width: 28px; height: 28px; border: 1px solid white; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.45); pointer-events: none; transform: translate(-50%, -50%); }
.hero-preview.is-retouching .retouch-cursor { display: block; }
.filmstrip { display: flex; gap: 8px; height: 58px; margin-top: 10px; overflow-x: auto; }
.filmstrip button { width: 77px; flex: 0 0 auto; padding: 0; border: 2px solid transparent; background: #ddd; cursor: pointer; }
.filmstrip button.is-active { border-color: var(--clay); }
.filmstrip img { width: 100%; height: 100%; object-fit: cover; }
.export-panel { padding: 42px 30px 55px; border-left: 1px solid var(--line); background: #fff; }
.recipe-summary { display: flex; gap: 12px; padding: 15px; background: #f1f5f2; }
.recipe-icon { color: var(--green); font-size: 19px; }
.recipe-summary strong, .recipe-summary span { display: block; }
.recipe-summary strong { font-family: Georgia, serif; font-size: 14px; font-weight: 400; }
.recipe-summary span { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.tool-section { border-bottom: 1px solid var(--line); }
.tool-section > summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; font-family: Georgia, serif; font-size: 13px; cursor: pointer; list-style: none; }
.tool-section > summary::-webkit-details-marker { display: none; }
.tool-section > summary span { color: #98988f; transition: transform .2s; }
.tool-section > summary > span:first-child { color: var(--ink); }
.tool-section > summary em { display: inline-block; margin-left: 6px; padding: 2px 5px; border-radius: 2px; color: #fff; background: var(--clay); font-family: Inter, ui-sans-serif, sans-serif; font-size: 7px; font-style: normal; font-weight: 700; letter-spacing: .06em; vertical-align: middle; }
.tool-section[open] > summary span { transform: rotate(180deg); }
.tool-controls { display: grid; gap: 14px; padding: 0 0 18px; }
.tool-controls > label { font-size: 9px; font-weight: 650; }
.tool-controls select { margin-top: 7px; }
.slider-control { display: grid; grid-template-columns: 1fr 34px; align-items: center; gap: 8px; margin-top: 5px; }
.slider-control output { color: var(--green); font-size: 9px; text-align: right; }
.small-action { padding: 9px 11px; border: 1px solid var(--green); border-radius: 2px; color: var(--green); background: white; font-size: 9px; cursor: pointer; }
.small-action:hover, .small-action.is-active { color: white; background: var(--green); }
.small-action.quiet { border-color: var(--line); color: var(--muted); }
.small-action:disabled { opacity: .45; cursor: not-allowed; }
.primary-button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.tool-note { margin: -2px 0 0; color: #92928a; font-size: 8px; line-height: 1.5; }
.tool-controls textarea { width: 100%; min-height: 62px; margin-top: 7px; padding: 9px; resize: vertical; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 10px; line-height: 1.45; }
.tool-controls textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(41,78,66,.08); }
.pro-response { margin: 0; padding: 9px 10px; color: #385448; background: #f1f5f2; font-size: 8px; line-height: 1.5; }
.book-profile-note { margin: -4px 0 2px; padding: 9px 10px; color: #666c67; background: #f1f5f2; font-size: 8px; line-height: 1.5; }
.profile-dialog[hidden] { display: none; }
.profile-dialog { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 22px; background: rgba(19, 28, 24, .62); }
.profile-dialog-card { width: min(440px, 100%); padding: 28px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.profile-dialog-card h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.profile-dialog-card p { color: var(--muted); font-family: Georgia, serif; font-size: 14px; line-height: 1.55; }
.profile-dialog-card label { display: grid; gap: 7px; font-size: 10px; font-weight: 650; }
.profile-dialog-card input { width: 100%; padding: 10px; border: 1px solid var(--line); background: var(--paper); }
.profile-dialog-card small { display: block; margin-top: 14px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.profile-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

:root[data-theme="dark"] { --ink: #edf0e9; --muted: #aab1a8; --line: #3b443f; --paper: #18201d; --card: #222c27; --green: #96c8b2; --green-soft: #30483d; --clay: #e0a286; --gold: #e3bd78; --shadow: 0 18px 50px rgba(0,0,0,.35); }
:root[data-theme="dark"] .sidebar { background: #101713; }
:root[data-theme="dark"] .topbar { background: rgba(24,32,29,.92); }
:root[data-theme="dark"] .import-card.has-files, :root[data-theme="dark"] .recipe-summary, :root[data-theme="dark"] .pro-response, :root[data-theme="dark"] .book-profile-note { background: #26342d; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea, :root[data-theme="dark"] .small-action { color: var(--ink); background: #1b241f; }
:root[data-theme="dark"] .export-panel { background: #202a25; }
.custom-size-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.custom-size-fields[hidden] { display: none; }
.custom-size-fields label { font-size: 9px; font-weight: 650; }
.custom-size-fields input { width: 100%; margin-top: 7px; padding: 9px; border: 1px solid var(--line); background: white; font-size: 10px; }
.retouch-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
#background-color-row { display: flex; align-items: center; justify-content: space-between; }
#background-color-row[hidden] { display: none; }
#background-color { width: 42px; height: 28px; padding: 1px; border: 1px solid var(--line); background: white; }
#background-image-row[hidden] { display: none; }
#background-image { width: 100%; margin-top: 7px; padding: 7px; border: 1px dashed var(--line); color: var(--muted); font-size: 8px; }
.export-fields { display: grid; gap: 14px; margin-top: 0; }
.export-fields label { font-size: 9px; font-weight: 650; }
.export-fields select { margin-top: 8px; }
.quality-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.quality-row output { width: 35px; color: var(--green); font-size: 11px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin: 28px 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.check-row input { accent-color: var(--green); }
.check-row strong, .check-row small { display: block; }
.check-row strong { font-size: 10px; }
.check-row small { margin-top: 4px; color: #99998f; font-size: 8px; line-height: 1.4; }
.export-button { width: 100%; justify-content: space-between; padding: 15px 18px; border: 0; color: white; background: var(--green); font-size: 11px; }
.export-button:disabled { opacity: .55; cursor: wait; }
.share-photo-button { width: 100%; margin-top: 10px; }
.export-hint { color: #99998f; font-size: 8px; line-height: 1.5; text-align: center; }
.mobile-save-hint { margin-top: -7px; }
.export-progress { margin-top: 20px; }
.export-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 9px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; padding: 11px 17px; border-radius: 3px; color: white; background: #22231f; box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .setup-grid { grid-template-columns: 1fr; }
  .import-card { min-height: 310px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .finish-layout { grid-template-columns: 1fr; }
  .export-panel { border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 740px) {
  .app-shell { display: block; padding-bottom: 64px; }
  .sidebar { inset: auto 0 0; width: auto; height: 64px; flex-direction: row; align-items: center; padding: 8px; }
  .brand, .privacy-note { display: none; }
  .steps { flex: 1; flex-direction: row; margin: 0; }
  .step { justify-content: center; padding: 8px; }
  .step small { display: none; }
  main { display: block; }
  .topbar { padding: 0 18px; }
  .setup-wrap, .workspace { width: calc(100% - 32px); padding-top: 38px; }
  .setup-grid { grid-template-columns: 1fr; }
  .preferences-card { padding: 25px 20px; }
  .look-options { grid-template-columns: 1fr 1fr; }
  .review-heading, .toolbar { align-items: flex-start; flex-direction: column; }
  .review-stats { width: 100%; }
  .review-stats div { min-width: 0; flex: 1; padding: 12px 5px; }
  .toolbar { gap: 12px; }
  .toolbar-right > span { display: none; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .preview-area { padding: 38px 18px; }
  .preview-copy { grid-template-columns: 1fr; gap: 15px; }
  .preview-copy .eyebrow { margin-bottom: 0; }
  .hero-preview { height: 44vh; }
  .topbar-actions .status-pill { display: none; }
}
