:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --paper-deep: #eee8dc;
  --white: #fffefd;
  --ink: #302d2b;
  --muted: #6f6862;
  --rouge: #914653;
  --rouge-deep: #753541;
  --rouge-pale: #f1e5e3;
  --jade: #52625d;
  --line: #ddd5c9;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: #e8c8c6; color: var(--ink); }

.site-header { border-top: 3px solid var(--rouge); border-bottom: 1px solid var(--line); background: rgba(247, 244, 237, .94); }
.header-inner { max-width: 1240px; min-height: 84px; padding: 0 36px; margin: auto; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; white-space: nowrap; }
.brand-seal { width: 40px; height: 40px; background: var(--rouge); color: white; display: grid; place-items: center; font: 25px/1 var(--serif); border: 1px solid #ffffff90; outline: 1px solid var(--rouge); outline-offset: 2px; }
.brand-name { display: block; font: 600 27px/1 var(--serif); letter-spacing: .08em; }
.brand-name small { display: block; font: 10px/1.3 var(--sans); letter-spacing: .18em; color: var(--muted); margin-top: 6px; }
.header-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.header-nav a { text-decoration: none; color: #544d47; font-size: 13px; font-weight: 600; transition: color .2s; }
.header-nav a:hover { color: var(--rouge); }
.header-edition { border-left: 1px solid var(--line); padding-left: 28px; color: var(--muted); font-size: 11px; white-space: nowrap; letter-spacing: .05em; }

.hero, .workspace, .result-section, .how-section, .limits-section { max-width: 1168px; margin-left: auto; margin-right: auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 50px; align-items: stretch; padding: 84px 36px 82px; }
.hero-copy { align-self: center; }
.hero-eyebrow, .section-kicker { color: var(--rouge); letter-spacing: .16em; font-size: 11px; font-weight: 750; margin: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-line { display: inline-block; width: 30px; height: 1px; background: var(--rouge); }
.hero h1 { font: 500 clamp(44px, 5.5vw, 72px)/1.29 var(--serif); letter-spacing: -.065em; margin: 24px 0 19px; }
.hero h1 em { color: var(--rouge); font-style: normal; }
.hero-description { color: #625c55; max-width: 570px; font-size: 15px; line-height: 2; margin: 0; }
.hero-action-row { display: flex; align-items: center; gap: 20px; margin-top: 31px; }
.hero-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-width: 176px; padding: 13px 18px; background: var(--rouge); color: white; text-decoration: none; font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; }
.hero-link:hover { background: var(--rouge-deep); transform: translateY(-2px); }
.hero-link span { font-size: 19px; font-weight: 400; line-height: 1; }
.hero-action-row > span { color: var(--muted); font-size: 12px; }
.hero-aside { border-left: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 325px; padding: 14px 24px 10px; position: relative; overflow: hidden; }
.aside-top { width: 100%; display: flex; justify-content: space-between; color: #887f71; font-size: 10px; letter-spacing: .18em; }
.aside-art { position: relative; width: 230px; height: 170px; margin-top: 20px; }
.aside-circle { width: 152px; height: 152px; border: 1px solid #cfc4b2; border-radius: 50%; position: absolute; left: 39px; top: 4px; }
.aside-circle::after { content: ""; width: 118px; height: 118px; border: 1px solid #e6ded1; border-radius: 50%; position: absolute; inset: 16px; }
.aside-brush { width: 164px; height: 1px; background: #8c7d6b; position: absolute; left: 29px; top: 114px; transform: rotate(-28deg); transform-origin: center; }
.aside-brush::before { content: ""; width: 26px; height: 9px; background: #958a79; border-radius: 0 90% 30% 0; position: absolute; left: 0; top: -4px; }
.aside-blush { width: 56px; height: 56px; background: radial-gradient(circle, #b86165c7 0, #d4a5a077 55%, transparent 70%); border-radius: 50%; position: absolute; left: 137px; top: 69px; }
.aside-character { font: 88px/1 var(--serif); color: #8b4c53; opacity: .78; position: absolute; left: 73px; top: 28px; }
.hero-aside p { color: #4b443d; font: 20px/1.75 var(--serif); letter-spacing: .11em; margin: 1px 0 4px; }
.aside-foot { color: #aa9e91; font-size: 9px; letter-spacing: .2em; margin-top: auto; }

.workspace { padding: 0 36px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-top: 26px; border-top: 1px solid var(--ink); margin-bottom: 26px; }
.section-heading h2, .how-section h2, .limits-section h2 { margin: 9px 0 0; font: 500 36px/1.3 var(--serif); letter-spacing: -.045em; }
.section-heading > p { max-width: 315px; color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0 0 4px; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.upload-grid:has(#referenceCard[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 530px; }
.upload-card { height: 346px; position: relative; background: var(--white); border: 1px solid var(--line); overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.upload-card:hover { border-color: #a6857a; transform: translateY(-2px); box-shadow: 0 12px 26px #4f392515; }
.upload-card::before, .upload-card::after { content: ""; position: absolute; width: 20px; height: 20px; border-color: #bcae9e; z-index: 2; pointer-events: none; }
.upload-card::before { top: 13px; left: 13px; border-top: 1px solid; border-left: 1px solid; }
.upload-card::after { top: 13px; right: 13px; border-top: 1px solid; border-right: 1px solid; }
.upload-card input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 5; }
.upload-card > img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f2eee7; }
.upload-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fbf9f5; }
.upload-index { position: absolute; top: 24px; left: 33px; color: #857568; font-size: 11px; letter-spacing: .14em; }
.upload-emblem { width: 104px; height: 104px; border: 1px solid #e0d7c9; border-radius: 50%; display: grid; place-items: center; font: 56px/1 var(--serif); color: #b3a397; margin-bottom: 13px; background: #f7f3ec; }
.reference-emblem { color: #a9666a; background: #f8f0ed; }
.upload-placeholder strong { font: 500 22px/1.5 var(--serif); }
.upload-placeholder small { font-size: 12px; color: var(--muted); margin-top: 5px; }
.upload-link { margin-top: 19px; color: var(--rouge); font-size: 12px; font-weight: 700; border-bottom: 1px solid #ba9190; padding-bottom: 6px; }
.upload-link span { margin-left: 10px; }
.upload-caption { position: absolute; left: 20px; bottom: 18px; background: #fffdf8ea; border: 1px solid #e5dbcf; color: #564d46; padding: 7px 10px; font-size: 11px; z-index: 2; letter-spacing: .05em; }
.upload-caption i { font-style: normal; color: var(--rouge); margin-left: 8px; }
.upload-card.filled .upload-caption { background: #fffdf2eb; }
.source-modes { display: flex; gap: 8px; margin-bottom: 17px; flex-wrap: wrap; }
.source-modes button { padding: 11px 18px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 12px; }
.source-modes button.selected { color: var(--rouge); border-color: var(--rouge); background: #fff8f5; font-weight: 700; }
.source-panel { margin-top: 18px; padding: 24px 28px; border: 1px solid var(--line); background: var(--white); }
.source-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.source-panel-heading h3 { font: 500 23px/1.4 var(--serif); margin: 5px 0 0; }
.source-panel-heading > p { color: var(--muted); line-height: 1.7; font-size: 11px; max-width: 360px; margin: 0; }
.source-picker-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: start; }
#sourceCanvas { display: block; width: min(100%, 460px); aspect-ratio: 1; border: 1px solid var(--line); background: #f4f1ea; cursor: crosshair; touch-action: none; }
.source-picker-tools { display: flex; flex-direction: column; align-items: start; gap: 10px; }
.source-picker-tools strong { font-size: 12px; }
.source-picker-tools p { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 0 0 8px; }
.picked-swatch { width: 76px; height: 76px; border: 1px solid var(--line); background: #eee8e0; }
.source-picker-tools .primary-btn { min-width: 0; width: 100%; }
.quiet-btn { border: 0; background: transparent; color: var(--rouge); padding: 7px 0; font-size: 11px; text-decoration: underline; }
.source-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 20px; }
.source-meta label { display: block; color: var(--muted); font-size: 11px; }
.source-meta input { display: block; width: 100%; margin-top: 8px; padding: 11px 12px; border: 1px solid var(--line); background: #fdfbf8; color: var(--ink); font-size: 11px; }
.catalog-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.catalog-choices button { border: 1px solid var(--line); background: #fdfbf8; text-align: left; padding: 13px; color: var(--ink); }
.catalog-choices button.selected { border-color: var(--rouge); box-shadow: inset 0 0 0 1px var(--rouge); }
.catalog-swatch { display: block; height: 54px; margin-bottom: 10px; border: 1px solid #00000012; }
.catalog-choices strong { font-size: 11px; line-height: 1.4; }
.selected-color, .chosen-shade { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 12px; }
.selected-color { border: 1px solid #cbb1aa; background: #fbf2ee; padding: 12px 15px; margin-top: 14px; }
.ai-consent-panel { margin-top: 14px; padding: 13px 16px; border: 1px solid var(--line); background: #fbfaf6; }
.ai-consent-panel label { color: var(--ink); font-size: 12px; font-weight: 650; }
.ai-consent-panel input { accent-color: var(--rouge); vertical-align: middle; }
.ai-consent-panel small { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 5px; }
.chosen-shade { padding-top: 18px; font-weight: 650; }
.chosen-shade a { color: var(--rouge); font-size: 11px; font-weight: 500; margin-left: auto; }
.summary-swatch { width: 25px; height: 25px; flex: 0 0 25px; border: 1px solid #00000022; border-radius: 50%; }
.advanced-controls { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.advanced-controls summary { color: var(--rouge); font-size: 12px; font-weight: 700; cursor: pointer; }
.brief-heading strong { display: block; font: 500 23px/1.3 var(--serif); margin-top: 7px; }
.followup-card small { display: block; color: var(--muted); margin-top: 10px; font-size: 10px; line-height: 1.6; }
.brief-card { margin-top: 18px; padding: 26px 30px 28px; border: 1px solid var(--line); background: var(--white); }
.brief-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.brief-heading label { display: block; font: 500 23px/1.3 var(--serif); margin-top: 7px; }
.brief-heading > span { color: var(--muted); font-size: 11px; }
.brief-card textarea { display: block; width: 100%; min-height: 88px; resize: vertical; border: 1px solid #d9d2c9; background: #fcfbf8; padding: 14px 17px; color: var(--ink); line-height: 1.7; font-size: 13px; outline: none; }
.brief-card textarea:focus, .followup-card input:focus { border-color: var(--rouge); box-shadow: 0 0 0 3px #9146531c; }
.brief-card textarea::placeholder, .followup-card input::placeholder { color: #9b928b; }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quick-prompts button, .choice-row button { background: transparent; border: 1px solid #d8cec4; padding: 8px 12px; color: #695f58; font-size: 11px; min-height: 34px; transition: border-color .2s, color .2s, background .2s; }
.quick-prompts button:hover, .choice-row button:hover { border-color: var(--rouge); color: var(--rouge); background: #fff7f4; }
.brief-footer { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-top: 25px; }
.brief-footer > span { color: var(--muted); font-size: 11px; line-height: 1.65; max-width: 520px; }
.photo-save-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; padding: 15px 20px; border: 1px solid var(--line); background: #fbfaf6; }
.photo-save-panel strong { display: block; font-size: 12px; color: var(--ink); }
.photo-save-panel small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.photo-save-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.photo-save-actions button { border: 1px solid #d8cec4; background: var(--white); color: var(--rouge); padding: 8px 11px; font-size: 11px; }
.photo-save-actions button:disabled { opacity: .45; cursor: default; }
.primary-btn { border: none; background: var(--rouge); color: white; padding: 14px 20px; min-width: 202px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s; }
.primary-btn:hover { background: var(--rouge-deep); }
.primary-btn:disabled { opacity: .55; cursor: wait; }
.primary-btn span { font-size: 19px; font-weight: 400; margin-left: 16px; }
.notice { border-left: 3px solid #967252; background: #f0e9de; padding: 13px 16px; margin-top: 16px; color: #604f41; line-height: 1.6; font-size: 12px; }
.notice.warning { border-color: #a36e57; }
.notice.error { border-color: var(--rouge); color: #803948; background: #f5e8e6; }

.result-section { padding: 0 36px; margin-top: 102px; }
.result-heading { margin-bottom: 23px; }
.result-layout { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(330px, .83fr); gap: 22px; align-items: start; }
.preview-panel { border: 1px solid var(--line); background: var(--white); padding: 19px; min-width: 0; }
.preview-head { display: flex; justify-content: space-between; color: var(--rouge); font-size: 11px; font-weight: 700; letter-spacing: .1em; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.preview-head span:last-child { font-weight: 400; color: var(--muted); letter-spacing: 0; }
.preview-tabs { display: flex; gap: 24px; margin: 0; border-bottom: 1px solid var(--line); }
.preview-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: #817770; padding: 14px 2px 12px; font-size: 12px; font-weight: 600; }
.preview-tabs button.active { color: var(--rouge); border-bottom-color: var(--rouge); }
.preview-tabs span { color: #9a8b81; font-size: 10px; font-weight: 400; margin-left: 4px; }
.main-preview { position: relative; aspect-ratio: 1; background: #eeebe6; overflow: hidden; margin-top: 18px; }
.main-preview canvas, .main-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.preview-stamp { position: absolute; left: 14px; bottom: 14px; background: #fffcf6e8; border: 1px solid #e5ddd2; color: #514741; padding: 7px 10px; font-size: 11px; }
.preview-disclaimer { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 12px 1px 14px; }
.source-strip { border-top: 1px solid var(--line); padding-top: 13px; display: flex; gap: 17px; align-items: center; }
.source-strip > div { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.source-strip img { width: 35px; height: 35px; object-fit: cover; border: 1px solid var(--line); }
.source-strip button { margin-left: auto; color: var(--rouge); font-size: 11px; font-weight: 700; border: 0; background: transparent; white-space: nowrap; padding: 9px 0; }
.source-strip button:hover { text-decoration: underline; }
.source-strip button span { margin-left: 4px; }
.control-panel { display: flex; flex-direction: column; gap: 14px; }
.control-panel > div { background: var(--white); border: 1px solid var(--line); padding: 23px 24px; }
.agent-card { border-left: 3px solid var(--rouge) !important; background: #fdfbf7 !important; }
.agent-title { display: flex; align-items: center; gap: 10px; }
.agent-spark { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--rouge); color: var(--rouge); font: 16px var(--serif); }
.agent-title strong { font: 500 18px/1.3 var(--serif); }
.agent-title small { margin-left: auto; color: var(--jade); background: #e9eee9; padding: 5px 7px; font-size: 10px; }
.agent-card p { font-size: 12px; color: #625952; line-height: 1.8; margin: 13px 0 0; }
.agent-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.agent-tags span { font-size: 10px; padding: 5px 7px; border: 1px solid #ded4c9; color: #6d5d53; }
.agent-card .agent-uncertain { color: #8f5860; font-size: 11px; }
.card-title { display: flex; align-items: end; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.card-title h3 { font: 500 22px/1.3 var(--serif); margin: 7px 0 0; }
.card-title button { background: transparent; border: none; color: var(--rouge); font-size: 11px; white-space: nowrap; padding: 6px 0; }
.adjust-group { margin-top: 21px; }
.foundation-group { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.range-title { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; }
.range-title output { color: var(--rouge); font-size: 12px; }
.adjust-group input[type="range"] { width: 100%; accent-color: var(--rouge); margin: 13px 0 2px; }
.adjust-group small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.control-caption { display: block; margin-top: 11px; color: #756b64; font-size: 10px; letter-spacing: .08em; }
.foundation-group small { display: block; margin-top: 11px; }
.foundation-jump { display: inline-block; margin-top: 8px; color: var(--rouge); font-size: 11px; text-decoration: none; border-bottom: 1px solid #c9a8a2; padding-bottom: 2px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.choice-row button { padding: 7px 10px; min-height: 32px; }
.choice-row button.selected { background: var(--rouge); border-color: var(--rouge); color: white; }
.followup-card label { display: block; font: 500 18px/1.3 var(--serif); margin-bottom: 11px; }
.followup-card > div { display: flex; gap: 8px; }
.followup-card input { min-width: 0; flex: 1; background: #fcfbf8; border: 1px solid #d9d2c9; padding: 10px 11px; font-size: 11px; outline: none; }
.followup-card button { border: 0; background: var(--ink); color: white; padding: 0 11px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.followup-card button:disabled { opacity: .55; }
.shop-section { margin-top: 64px; }
.section-heading.compact { border-top-color: var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.no-lip-match { grid-column: 1 / -1; padding: 15px 18px; margin: 0; border: 1px solid var(--line); background: #fffdf9; color: var(--muted); font-size: 12px; line-height: 1.7; }
.product-card { background: var(--white); border: 1px solid var(--line); padding: 18px; display: flex; align-items: start; gap: 14px; }
.product-swatch { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; border: 1px solid #00000017; }
.product-body small { color: var(--rouge); font-size: 10px; letter-spacing: .06em; }
.product-body h3 { font: 500 17px/1.3 var(--serif); margin: 7px 0 8px; }
.product-body p { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 0 0 13px; }
.product-body a { color: var(--rouge); text-decoration: none; border-bottom: 1px solid #c9a8a2; padding-bottom: 3px; font-size: 11px; font-weight: 700; }
.product-try { display: block; margin: 0 0 10px; border: 1px solid var(--rouge); background: #fff8f4; color: var(--rouge); padding: 8px 12px; font-size: 11px; cursor: pointer; }
.product-try.selected { background: var(--rouge); color: white; }
.lip-detail { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 14px; }
.lip-detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11px; color: var(--muted); }
.lip-detail-head strong { color: var(--ink); font-size: 12px; }
.lip-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.lip-detail figure { margin: 0; background: #f4eee9; border: 1px solid var(--line); }
.lip-detail canvas { width: 100%; height: auto; display: block; }
.lip-detail figcaption { padding: 7px 10px; font-size: 10px; color: var(--muted); }
.calibration-panel { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 13px; }
.calibration-panel summary { cursor: pointer; color: var(--rouge); font-size: 11px; font-weight: 700; }
.calibration-panel p, .calibration-panel > small { display: block; color: var(--muted); line-height: 1.7; font-size: 10px; margin: 11px 0; }
#calibrationCanvas { display: block; width: 100%; height: auto; aspect-ratio: 560 / 260; border: 1px solid var(--line); background: #eee6df; cursor: crosshair; touch-action: none; }
.calibration-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 11px; }
.calibration-tools .choice-row { margin-top: 0; }
.calibration-tools label { color: var(--muted); font-size: 10px; white-space: nowrap; }
.calibration-tools input[type="range"] { width: 105px; accent-color: var(--rouge); }
.calibration-tools .quiet-btn { font-size: 10px; }
.shrink-toggle { color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.shrink-toggle input { accent-color: var(--rouge); vertical-align: middle; }
#shrinkControls { margin-top: 11px; }
.shop-note { font-size: 11px; color: var(--muted); line-height: 1.65; margin-top: 13px; }

.how-section { margin-top: 100px; padding: 40px 36px 44px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.how-section h2 { font-size: 32px; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how-steps article { border-left: 1px solid var(--line); padding-left: 19px; }
.how-steps b { color: var(--rouge); font: 26px/1 var(--serif); }
.how-steps h3 { font: 500 20px var(--serif); margin: 17px 0 7px; }
.how-steps p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.limits-section { padding: 81px 36px 93px; display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.limits-section h2 { font-size: 29px; }
.limits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.limits-grid article { border-top: 1px solid var(--line); padding-top: 13px; }
.limits-grid b { color: var(--rouge); font-size: 11px; }
.limits-grid h3 { font: 500 18px var(--serif); margin: 17px 0 8px; }
.limits-grid p { color: var(--muted); line-height: 1.75; font-size: 11px; margin: 0; }
footer { background: #eae4d9; border-top: 1px solid #d7cfc1; padding: 28px max(36px, calc((100vw - 1096px) / 2)); display: flex; gap: 24px; justify-content: space-between; align-items: center; color: #6d6258; font-size: 11px; }
.footer-brand { color: var(--ink); font: 500 22px var(--serif); }
.footer-brand i { font: 9px var(--sans); font-style: normal; letter-spacing: .13em; margin-left: 5px; color: var(--muted); }

.anchor-overlay { position: fixed; inset: 0; z-index: 100; background: #201b18c9; display: grid; place-items: center; padding: 18px; }
.anchor-modal { width: min(94vw, 620px); max-height: 94vh; overflow: auto; background: var(--paper); padding: 20px; box-shadow: 0 25px 90px #0005; }
.anchor-modal h2 { font: 500 24px var(--serif); margin: 0 0 7px; }
.anchor-modal p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0 0 10px; }
.anchor-modal strong { display: block; color: var(--rouge); font-size: 13px; margin-bottom: 10px; }
.anchor-stage { position: relative; width: min(100%, 490px); margin: auto; aspect-ratio: 1; cursor: crosshair; background: #eee; }
.anchor-stage img { width: 100%; height: 100%; display: block; object-fit: contain; }
.anchor-dot { position: absolute; transform: translate(-50%, -50%); border: 2px solid white; border-radius: 50%; background: var(--rouge); color: white; width: 26px; height: 26px; display: grid; place-items: center; font-size: 12px; pointer-events: none; box-shadow: 0 2px 8px #0006; }
.anchor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.anchor-actions button { border: 1px solid var(--line); background: var(--white); padding: 8px 12px; color: var(--ink); }

@media (max-width: 960px) {
  .header-edition { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
  .hero-aside { min-height: 300px; }
  .result-layout { grid-template-columns: 1fr; }
  .control-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .followup-card { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-section, .limits-section { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .source-panel { padding: 17px 14px; }
  .source-panel-heading, .source-picker-layout { display: block; }
  .source-panel-heading > p { margin-top: 8px; }
  #sourceCanvas { width: 100%; }
  .source-picker-tools { margin-top: 13px; }
  .source-meta { grid-template-columns: 1fr; }
  .catalog-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { padding: 0 19px; min-height: 72px; gap: 14px; }
  .brand-seal { width: 34px; height: 34px; font-size: 21px; }
  .brand-name { font-size: 22px; }
  .brand-name small { font-size: 8px; }
  .header-nav { gap: 15px; }
  .header-nav a { font-size: 11px; }
  .header-nav a:last-child { display: none; }
  .hero { display: block; padding: 63px 20px 57px; }
  .hero h1 { font-size: clamp(41px, 10vw, 58px); margin: 21px 0 18px; }
  .hero-description { font-size: 13px; line-height: 1.85; }
  .hero-action-row { display: block; margin-top: 24px; }
  .hero-action-row > span { display: block; margin-top: 10px; }
  .hero-aside { display: none; }
  .workspace, .result-section { padding: 0 20px; }
  .section-heading { display: block; padding-top: 20px; margin-bottom: 19px; }
  .section-heading h2 { font-size: 30px; }
  .section-heading > p { margin-top: 9px; max-width: 100%; }
  .upload-grid { gap: 10px; }
  .upload-card { height: 248px; }
  .upload-index { top: 20px; left: 25px; font-size: 9px; }
  .upload-emblem { width: 70px; height: 70px; font-size: 37px; margin-bottom: 9px; }
  .upload-placeholder strong { font-size: 16px; }
  .upload-placeholder small { font-size: 10px; line-height: 1.5; padding: 0 8px; }
  .upload-link { margin-top: 10px; font-size: 10px; }
  .upload-caption { left: 8px; bottom: 8px; padding: 5px 7px; font-size: 9px; }
  .brief-card { padding: 19px 16px 20px; margin-top: 11px; }
  .brief-heading { display: block; }
  .brief-heading label { font-size: 21px; }
  .brief-heading > span { display: block; margin-top: 6px; }
  .brief-footer { display: block; margin-top: 19px; }
  .brief-footer > span { display: block; }
  .photo-save-panel { display: block; padding: 14px; }
  .photo-save-actions { margin-top: 11px; }
  .primary-btn { margin-top: 15px; width: 100%; }
  .result-section { margin-top: 72px; }
  .preview-panel { padding: 12px; }
  .preview-head span:last-child { display: none; }
  .preview-tabs { gap: 16px; }
  .preview-tabs button { font-size: 11px; }
  .source-strip { flex-wrap: wrap; gap: 10px 15px; }
  .source-strip button { margin-left: 0; }
  .control-panel { display: flex; }
  .control-panel > div { padding: 18px; }
  .followup-card > div { flex-wrap: wrap; }
  .followup-card input { flex-basis: 100%; }
  .followup-card button { padding: 10px 12px; }
  .shop-section { margin-top: 48px; }
  .product-grid { grid-template-columns: 1fr; }
  .how-section { margin-top: 75px; padding: 29px 20px 36px; gap: 22px; }
  .how-section h2 { font-size: 28px; }
  .how-steps { gap: 11px; }
  .how-steps article { padding-left: 9px; }
  .how-steps h3 { font-size: 15px; margin: 12px 0 5px; }
  .how-steps p { font-size: 10px; }
  .limits-section { padding: 59px 20px 71px; gap: 22px; }
  .limits-section h2 { font-size: 27px; }
  .limits-grid { grid-template-columns: 1fr; gap: 18px; }
  .limits-grid h3 { margin: 8px 0 4px; }
  footer { padding: 24px 20px; flex-wrap: wrap; gap: 8px; }
  footer > span:last-child { width: 100%; }
}

@media (max-width: 390px) {
  .upload-card { height: 218px; }
  .upload-placeholder small { display: none; }
  .upload-link { margin-top: 8px; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps article { border-left: none; border-top: 1px solid var(--line); padding: 10px 0 0; }
}
