/* 衣镜 — editorial warmth, clear actions, full-body imagery. */
:root {
  color-scheme: light;
  --paper: #f8f6f2; --surface: #fffdfa; --ink: #292722; --muted: #716c63;
  --line: #e5dfd6; --accent: #ad493c; --accent-soft: #f7e9e4;
  --success: #37654d; --warning: #805e2c; --error: #a43d35;
  --radius: 16px; --shell: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px; color: var(--ink); background: #eae6df;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { padding: 24px; overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, a { color: inherit; }
button { transition: background .16s, border-color .16s, transform .16s; }
button:active:not(:disabled) { transform: translateY(1px); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app, .screen { width: min(100%, var(--shell)); height: 100%; margin: 0 auto; min-height: 0; display: flex; flex-direction: column; background: var(--paper); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; }
.topbar { min-height: 84px; padding: 16px 32px; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 42px; border: 1px solid var(--ink); border-radius: 20px 20px 5px 5px; font-family: 'Songti SC', SimSun, serif; font-size: 20px; }
.brand strong { font-family: 'Songti SC', SimSun, serif; font-size: 26px; letter-spacing: 5px; font-weight: 500; }
.brand small { display: block; margin-top: 3px; font-size: 9px; letter-spacing: 2.3px; color: var(--muted); }
.top-actions { display: flex; gap: 20px; align-items: center; }
.edition { font-size: 12px; letter-spacing: 2px; color: var(--muted); }
.icon-button, .close { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 20px; flex: 0 0 auto; }
.intro { flex: 0 0 auto; padding: 24px 32px 16px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.eyebrow { display: block; font-size: 10px; font-weight: 500; letter-spacing: 2px; color: var(--muted); line-height: 1.5; }
.intro h1 { font-family: 'Songti SC', SimSun, serif; margin-top: 8px; font-size: 30px; font-weight: 500; letter-spacing: 1px; }
.intro p { color: var(--muted); font-size: 12px; line-height: 1.6; padding-bottom: 3px; }
.prototype-note { display: flex; gap: 7px; align-items: center; flex: 0 0 auto; padding: 0 32px 16px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.status-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.group-tabs { padding: 0 32px; display: flex; flex: 0 0 auto; gap: 26px; border-bottom: 1px solid var(--line); }
.group-tab { position: relative; border: 0; padding: 12px 2px; min-height: 46px; background: transparent; color: var(--muted); white-space: nowrap; }
.group-tab.active { color: var(--ink); font-weight: 600; }
.group-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); }
.workbench { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 48% 52%; overflow: hidden; }
.catalog, .preview-pane { min-width: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cdc4b7 transparent; }
.catalog { padding: 20px 24px 24px 32px; border-right: 1px solid var(--line); }
.category-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.category-tab { border: 1px solid var(--line); padding: 8px 12px; min-height: 40px; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; }
.category-tab.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.section-title { font-size: 16px; font-weight: 500; }
.category-count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.product-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.product-card.selected { border-color: var(--accent); }
.product-pick { position: relative; width: 100%; padding: 0; border: 0; text-align: left; background: transparent; }
.product-pick img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #ece7e0; }
.selected-tick { position: absolute; right: 8px; top: 8px; width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #ffffff90; border-radius: 50%; background: var(--surface); color: transparent; font-size: 12px; }
.selected .selected-tick { background: var(--accent); color: white; }
.product-meta { display: block; padding: 13px 12px 0; }
.product-meta strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.product-style { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.size-link { margin: 8px 12px 0; padding: 8px 0 10px; width: calc(100% - 24px); min-height: 40px; border: 0; border-top: 1px solid var(--line); text-align: left; background: transparent; color: var(--muted); font-size: 11px; display: block; }
.size-link:is(button) { color: var(--accent); }
.preview-pane { padding: 24px 32px; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; }
.preview-heading h2 { margin-top: 4px; font-size: 22px; font-family: 'Songti SC', SimSun, serif; font-weight: 500; }
.photo-button { background: transparent; padding: 8px 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; white-space: nowrap; }
.person-stage { position: relative; width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: #e5dfd7; }
.person-stage > img { width: 100%; height: 100%; object-fit: contain; }
.draft-label { position: absolute; top: 12px; right: 12px; background: #fffdfaeb; padding: 6px 9px; border: 1px solid #ffffff90; border-radius: 5px; font-size: 10px; }
.selection-rail { position: absolute; top: 12px; left: 8px; max-height: calc(100% - 24px); padding: 8px 12px 8px 6px; display: flex; flex-direction: column; gap: 14px; overflow: auto; scrollbar-width: none; }
.rail-item { position: relative; width: 46px; height: 46px; flex: 0 0 46px; }
.rail-item img { width: 100%; height: 100%; border-radius: 8px; object-fit: contain; background: #f4f0e9; border: 2px solid var(--surface); box-shadow: 0 2px 7px #29272218; }
.rail-remove { position: absolute; right: -8px; top: -9px; width: 28px; height: 28px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; }
.rail-remove span { width: 19px; height: 19px; border: 1px solid white; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 50%; font-family: Arial, sans-serif; font-size: 13px; line-height: 1; }
.photo-status { max-width: 360px; margin: 10px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: 4px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.delete-photo { border: 0; background: none; font-size: 11px; padding: 5px 0; min-height: 36px; color: var(--error); }
.preview-hint { max-width: 360px; margin: 10px auto 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.recent-result { width: 100%; max-width: 360px; display: flex; align-items: center; gap: 12px; margin: 16px auto 0; background: transparent; border: 0; border-top: 1px solid var(--line); padding: 14px 0 0; text-align: left; }
.recent-result img { width: 38px; height: 50px; object-fit: contain; border-radius: 5px; }
.recent-result > span:first-of-type { flex: 1; min-width: 0; }
.recent-result strong { display: block; font-weight: 500; font-size: 12px; }
.recent-result small { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }
.bottom-bar, .result-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; border-top: 1px solid var(--line); background: var(--surface); padding: 16px 32px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.draft-count { flex: 1; min-width: 0; }
.draft-count strong { font-size: 18px; font-weight: 500; }
.draft-count span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.4; }
.primary, .secondary, .sheet-primary { min-height: 48px; padding: 12px 24px; border-radius: 9px; font-weight: 500; border: 1px solid transparent; line-height: 1.4; font-size: 14px; }
.primary, .sheet-primary { background: var(--accent); color: white; }
.bottom-bar > .primary { min-width: 240px; }
.secondary { border-color: var(--line); color: var(--ink); background: transparent; }
.text-danger { color: var(--error); font-size: 12px; border: 0; background: transparent; padding: 12px 4px; min-height: 44px; }
.task-banner { flex: 0 0 auto; border: 1px solid var(--line); background: #f0ebe4; margin: 0 32px 16px; padding: 12px 16px; border-radius: 10px; }
.task-banner.success { background: #edf2ed; border-color: #d7e0d5; }
.task-banner.error { background: #f8ece7; }
.task-banner.warning { background: #f4efe2; }
.task-main { display: flex; align-items: center; gap: 10px; }
.task-pulse { font-size: 22px; color: var(--accent); }
.task-copy { flex: 1; min-width: 0; }
.task-copy strong { display: block; font-size: 13px; font-weight: 500; }
.task-copy span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.task-action { flex: 0 0 auto; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--ink); min-height: 44px; font-size: 12px; padding: 5px 0; }
.task-items { display: flex; gap: 5px; margin: 8px 0 0 28px; }
.task-items img { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }
.full-screen { position: fixed; inset: 0; padding: 24px; display: none; z-index: 80; background: #eae6df; }
.full-screen.show { display: flex; }
.screen-topbar { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.screen-topbar strong { font-size: 15px; font-weight: 500; }
.screen-wordmark { margin-left: auto; font-family: 'Songti SC', SimSun, serif; letter-spacing: 4px; }
.result-loading { position: absolute; inset: 0; overflow: hidden; background: #ece7df; }
.result-loading .loading-source { filter: saturate(.65) blur(1.2px); opacity: .72; }
.mirror-veil { position: absolute; inset: 0; background: linear-gradient(180deg, #f8f6f28c 0%, #f8f6f212 36%, #f8f6f226 53%, #f8f6f2eb 82%, #f8f6f2 100%); }
.loading-signature { position: absolute; top: 26px; left: 26px; font-family: 'Songti SC', SimSun, serif; font-size: 21px; letter-spacing: 5px; color: #51483d; }
.loading-signature span { display: block; margin-top: 8px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 8px; letter-spacing: 2px; }
.loading-caption { position: absolute; left: 24px; right: 24px; bottom: 68px; text-align: center; color: #51483d; }
.loading-caption strong { display: block; font-family: 'Songti SC', SimSun, serif; font-size: clamp(18px, 3.5vw, 23px); font-weight: 400; letter-spacing: 2px; line-height: 1.7; }
.loading-caption > span:last-child { display: block; margin-top: 7px; font-size: 11px; letter-spacing: 1px; line-height: 1.7; color: #71685c; }
.loading-rhythm { height: 22px; display: flex; justify-content: center; align-items: center; gap: 5px; margin-bottom: 12px; opacity: .55; }
.loading-rhythm i { display: block; width: 2px; height: 12px; border-radius: 2px; background: #a18b72; }
.loading-rhythm i:nth-child(2) { height: 20px; }
.result-motion { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.mirror-frame { position: absolute; inset: 14px; border: 1px solid #fffdfaa6; border-radius: 100px 100px 12px 12px; box-shadow: inset 0 0 24px #ffffff18; }
.mirror-halo { position: absolute; inset: -30%; background: radial-gradient(ellipse at 35% 35%, #ffefdc5c, transparent 48%); opacity: .6; }
.mirror-sweep { position: absolute; top: 0; left: 0; right: 0; height: 27%; background: linear-gradient(180deg, transparent, #fffdfa12 25%, #fffdfa70 78%, #fffdfac2 95%, transparent); opacity: 0; }
.full-screen.show .is-processing .mirror-sweep { animation: mirror-scan 4.8s cubic-bezier(.42, 0, .28, 1) infinite; }
.full-screen.show .is-processing .mirror-halo { animation: mirror-breathe 5.6s ease-in-out infinite; }
.full-screen.show .is-processing .loading-rhythm i { animation: mirror-rhythm 1.8s ease-in-out infinite; }
.full-screen.show .is-processing .loading-rhythm i:nth-child(2) { animation-delay: .2s; }
.full-screen.show .is-processing .loading-rhythm i:nth-child(3) { animation-delay: .4s; }
.result-hero.is-revealed > #result-image { animation: result-reveal .65s ease-out both; }
@keyframes mirror-scan { 0% { transform: translateY(-110%); opacity: 0; } 16%, 66% { opacity: .85; } 85%, 100% { transform: translateY(410%); opacity: 0; } }
@keyframes mirror-breathe { 0%, 100% { transform: translate(-3%, -2%); opacity: .35; } 50% { transform: translate(4%, 3%); opacity: .8; } }
@keyframes mirror-rhythm { 0%, 100% { transform: scaleY(.55); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes result-reveal { from { opacity: .25; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }
.result-badge { position: absolute; left: 12px; bottom: 12px; z-index: 3; max-width: calc(100% - 24px); padding: 8px 10px; border-radius: 6px; background: #fffdfaeF; font-size: 11px; line-height: 1.4; }
.submitted-items, .sheet-items { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.submitted-items img, .sheet-items img { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 7px; object-fit: contain; background: #eee8e0; }
.result-demo-note { margin-top: 20px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.result-content { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding: 32px; align-items: start; }
.result-hero { position: relative; border-radius: 18px; overflow: hidden; background: #e8e1d8; width: 100%; aspect-ratio: 2 / 3; max-width: 360px; margin: 0 auto; isolation: isolate; }
.result-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.result-details { padding: 16px 0; }
.result-details > h2 { font-family: 'Songti SC', SimSun, serif; font-size: 27px; font-weight: 500; margin: 12px 0; line-height: 1.5; }
.result-description { font-size: 12px; line-height: 1.8; color: var(--muted); }
.result-card { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.result-card h3 { font-weight: 500; font-size: 13px; }
.feedback { display: flex; gap: 8px; margin-top: 12px; }
.feedback button { min-height: 44px; border: 1px solid var(--line); padding: 10px 20px; border-radius: 8px; background: transparent; font-size: 12px; }
.feedback button.selected { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.result-privacy { margin-top: 24px; }
.result-privacy p { font-size: 11px; line-height: 1.8; color: var(--muted); }
.result-actions { justify-content: flex-end; }
.result-actions button { min-width: 170px; }
.result-actions #result-cancel { margin-right: auto; min-width: 0; }
.scrim { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 24px; background: #29272266; overscroll-behavior: none; }
.scrim.show { display: flex; }
.sheet { width: min(100%, 460px); max-height: min(90dvh, 740px); padding: 28px; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 20px; box-shadow: 0 20px 80px #29272224; }
.handle { display: none; }
.sheet-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font-family: 'Songti SC', SimSun, serif; font-size: 23px; font-weight: 500; margin: 5px 0 8px; }
.sheet-head p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.sheet-note { padding: 12px; margin: 16px 0; background: #f1ede7; border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.sheet-primary { width: 100%; margin-top: 12px; }
.sheet-danger { background: var(--error); }
.size-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 20px; text-align: center; }
.size-table th, .size-table td { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.size-table th { font-weight: 500; color: var(--muted); background: #f4f0ea; }
.scenario-options { display: grid; gap: 8px; margin-top: 20px; }
.scenario-options button { min-height: 62px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: left; background: transparent; font-size: 13px; }
.scenario-options button span { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.scenario-options button.active { border-color: var(--accent); background: var(--accent-soft); }
.photo-guide { display: flex; gap: 20px; align-items: center; margin-top: 20px; padding: 16px; background: #f1ede7; border-radius: 12px; }
.photo-guide svg { width: 70px; height: 120px; color: #928576; flex: 0 0 auto; }
.photo-guide strong { font-size: 13px; font-weight: 500; }
.photo-guide p { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.photo-guide small { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.consent { display: flex; align-items: start; gap: 10px; font-size: 12px; line-height: 1.7; }
.consent input { width: 18px; height: 18px; margin: 2px 0; flex: 0 0 auto; accent-color: var(--accent); }
.toast { position: fixed; z-index: 150; left: 50%; bottom: calc(108px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 8px); padding: 12px 16px; width: max-content; max-width: min(90%, 460px); display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 1.6; background: var(--ink); color: white; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .16s, transform .16s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.show button { pointer-events: auto; }
.toast button { border: 0; border-bottom: 1px solid white; background: transparent; color: white; padding: 4px; min-height: 36px; white-space: nowrap; }
body.modal-open .app, body.modal-open .screen { pointer-events: none; }
body.modal-open .catalog, body.modal-open .preview-pane, body.modal-open .result-content { overflow: hidden; }
@media (hover: hover) { .product-pick:hover img { filter: brightness(1.025); } .primary:hover:not(:disabled), .sheet-primary:hover:not(:disabled) { background: #913b31; } .secondary:hover, .photo-button:hover, .icon-button:hover { background: #eee8df; } }
@media (max-width: 759px) {
  body, .full-screen { padding: 0; }
  .app, .screen { border: 0; border-radius: 0; width: 100%; height: 100vh; height: 100dvh; }
  .topbar { min-height: 66px; padding: 10px 16px; }
  .brand { gap: 9px; } .brand-mark { width: 29px; height: 36px; font-size: 17px; } .brand strong { font-size: 23px; } .brand small { font-size: 8px; letter-spacing: 1.6px; }
  .edition { display: none; }
  .intro { padding: 14px 16px 10px; } .intro .eyebrow, .intro p { display: none; } .intro h1 { margin: 0; font-size: 22px; }
  .prototype-note { padding: 0 16px 12px; font-size: 10px; }
  .group-tabs { gap: 0; padding: 0 10px; justify-content: space-between; } .group-tab { padding: 10px 5px; font-size: 12px; }
  .workbench { grid-template-columns: 40% 60%; }
  .catalog { padding: 12px 8px 20px 12px; }
  .category-tabs { gap: 5px; margin-bottom: 14px; } .category-tab { padding: 6px 7px; font-size: 11px; min-height: 36px; }
  .section-title { font-size: 13px; } .category-count { font-size: 10px; } .catalog-heading { flex-wrap: wrap; gap: 3px; margin-bottom: 10px; }
  .product-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .product-meta { padding: 10px 8px 0; } .product-meta strong { font-size: 12px; } .product-style { font-size: 10px; margin-top: 5px; }
  .size-link { margin: 8px 8px 0; width: calc(100% - 16px); min-height: 40px; font-size: 11px; }
  .selected-tick { width: 20px; height: 20px; right: 6px; top: 6px; }
  .preview-pane { padding: 12px 12px 20px 10px; }
  .preview-heading { margin-bottom: 12px; gap: 4px; } .preview-heading .eyebrow { font-size: 8px; letter-spacing: 1px; } .preview-heading h2 { font-size: 18px; }
  .photo-button { padding: 5px 8px; font-size: 11px; }
  .person-stage { border-radius: 12px; } .draft-label { top: 8px; right: 8px; padding: 5px 6px; font-size: 9px; }
  .selection-rail { top: 4px; left: 0; padding: 8px 10px 8px 5px; gap: 14px; max-height: calc(100% - 8px); }
  .rail-item { width: 34px; height: 34px; flex-basis: 34px; } .rail-remove { right: -7px; top: -8px; }
  .photo-status { font-size: 11px; } .preview-hint { font-size: 11px; margin-top: 8px; }
  .recent-result { gap: 7px; margin-top: 12px; } .recent-result img { width: 28px; height: 38px; } .recent-result strong { font-size: 11px; } .recent-result small { font-size: 10px; }
  .bottom-bar, .result-actions { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .draft-count strong { font-size: 16px; } .draft-count span { font-size: 10px; }
  .bottom-bar > .primary { min-width: 0; flex: 0 0 56%; padding-inline: 10px; }
  .task-banner { margin: 0 12px 10px; padding: 10px; } .task-copy span { font-size: 10px; } .task-copy strong { font-size: 12px; } .task-action { font-size: 11px; }
  .task-items { margin: 6px 0 0 24px; gap: 4px; } .task-items img { width: 25px; height: 25px; }
  .screen-topbar { padding: 10px 14px; gap: 12px; } .screen-topbar strong { font-size: 14px; }
  .result-content { display: block; padding: 16px; } .result-hero { max-width: 390px; } .result-details { padding: 24px 4px 12px; } .result-details > h2 { font-size: 24px; }
  .result-actions button { flex: 1; min-width: 0; padding-inline: 10px; }
  .result-actions { flex-wrap: wrap; }
  .result-actions #result-cancel { flex: 1; min-height: 44px; padding-inline: 6px; font-size: 12px; }
  .scrim { align-items: flex-end; padding: 0; } .sheet { max-height: 90dvh; width: 100%; max-width: 560px; padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; }
  .handle { display: block; height: 4px; width: 32px; margin: 0 auto 20px; background: #d7cfc3; border-radius: 2px; }
  .toast { bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 359px) { .catalog { padding-left: 8px; } .preview-pane { padding: 12px 8px; } .photo-button { padding-inline: 6px; } .photo-button span { display: none; } .product-meta strong { font-size: 11px; } .preview-heading h2 { font-size: 16px; } .bottom-bar { padding-inline: 12px; } .group-tab { font-size: 11px; padding-inline: 4px; } }
@media (pointer: coarse) { .category-tab, .size-link, .delete-photo { min-height: 44px; } .selection-rail { padding-right: 20px; } .rail-remove { width: 44px; height: 44px; top: -15px; right: -15px; } }
@media (max-height: 650px) { .intro { display: none; } .prototype-note { padding-top: 8px; padding-bottom: 8px; } .task-items { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
