[hidden]{display:none!important}#manual-debug,#debug-panel,#editor-ai-diagnostics,#editor-diameters,#measurements,.manual,[hidden][inert]{display:none!important}
/* STEP 16-19: presentation only; detection, coordinates and rendering stay unchanged. */
:root{--ink:#382d3d;--muted:#746575;--accent:#ae306a;--line:#f0dce7;--paper:#fff;--pink:#fff2f7;--lavender:#f4efff}
body{background:#fffafd;color:var(--ink);font-family:Pretendard,"Pretendard Variable",-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;font-size:16px;line-height:1.65}
.topbar{max-width:1440px;margin:auto;padding:22px 5%;border-bottom:1px solid var(--line);gap:16px}
.brand{font-family:inherit;font-size:24px;letter-spacing:3px;color:#a62d63;font-weight:800}.brand span{font-size:10px;letter-spacing:1.6px;color:#786276}
.badge{border-color:#e9cddd;background:#fff;color:#8b4568;font-size:12px;letter-spacing:.6px;padding:7px 12px}
main{max-width:1440px;padding:40px 5% 64px}.intro{text-align:center;position:relative;padding:36px 20px 28px;background:linear-gradient(120deg,#fff3f8,#fff 52%,#f5f0ff);border:1px solid #f5e6ef;border-radius:30px;margin-bottom:32px}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;color:#9d3a6b;margin:0 0 14px}.eyebrow span{font-size:20px;margin-right:7px}
h1{font-size:clamp(29px,3.5vw,48px);letter-spacing:-1.8px;line-height:1.3;margin:10px 0 16px;font-weight:800}h1 span{font:inherit;color:#b62b6b;margin-left:0!important}
.lead{font-size:17px;color:#66536a;line-height:1.8;margin:0 auto;max-width:620px}.notice{font-size:14px;line-height:1.8;color:#796576;margin:14px auto 0;max-width:620px}
.journey{display:flex;justify-content:center;gap:24px;padding:0;margin:24px 0 0;list-style:none;flex-wrap:wrap}.journey li{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#6c4562}.journey li span,.step{display:inline-grid;place-items:center;background:#fce4f0;color:#9c285c;border-radius:50%;width:29px;height:29px;font-family:inherit;font-size:13px;font-weight:700;font-style:normal;flex-shrink:0}.journey li:nth-child(2) span{background:#eee6ff;color:#73518b}
.workspace{grid-template-columns:340px minmax(0,1fr);gap:24px;align-items:start}.controls{gap:24px}.card{border:1px solid var(--line);border-radius:24px;background:#fff;padding:24px;box-shadow:0 8px 28px #90406508}h2{font-size:19px;line-height:1.5;margin:0 0 20px;letter-spacing:-.5px;gap:10px}
.upload{border:1.5px dashed #dba6c2;background:#fff7fb;border-radius:18px;padding:24px 16px;gap:9px;transition:background .15s,border-color .15s}.upload:hover{background:#ffedf6;border-color:#b43672}.upload strong{font-size:17px;color:#8e2859}.upload-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:15px;background:#ffe0ee;color:#a52f66;font-size:30px;line-height:1}.upload span:not(.upload-icon),small{font-size:13px;color:var(--muted);line-height:1.7}
#photo{font:inherit;font-size:14px;line-height:1.6;margin-top:14px}input[type=file]::file-selector-button{border:1px solid #e3c9d8;background:#fff5fa;color:#823453;border-radius:12px;padding:10px;margin-right:10px;font:inherit;cursor:pointer}
.muted,.privacy,.check,.selection{font-size:14px;line-height:1.8}.privacy{background:#faf7fc;padding:12px;border-radius:12px;color:#746274}.check{gap:10px;align-items:center;margin-top:16px}input[type=checkbox],input[type=radio]{accent-color:#b32f70;width:22px;height:22px;flex-shrink:0}.selection{color:#80536c}#selection{margin:14px 0 0}
select{font:inherit;font-size:16px;color:var(--ink);background:#fff;border:1px solid #dbc4d3;border-radius:12px;padding:11px;max-width:100%}#photo-type{width:100%}
button{font-family:inherit;font-size:15px;font-weight:600;min-height:48px;border-radius:14px;padding:13px 17px;transition:background .15s,box-shadow .15s;background:#f7edf4;color:#7e3a60;white-space:normal;line-height:1.5}
button:hover:not(:disabled){box-shadow:0 4px 12px #b53b7220}button:disabled,#compose:disabled,#editor-render:disabled{background:#f1eaf0;color:#897c87;box-shadow:none}
#compose,#download:not(:disabled),#editor-render:not(:disabled){background:#ae306a;color:#fff;box-shadow:0 5px 14px #b62e6a20}#compose{margin-top:20px;font-size:16px}#compose:hover:not(:disabled),#download:hover:not(:disabled),#editor-render:hover:not(:disabled){background:#932258}
#edit-eyes{background:#f2ecfc;color:#6c4684}#reset-photo{background:#fff;border:1px solid #e9d6e2;color:#775b70;font-size:14px}#change-photo{background:#f7e7f0;color:#893860}
#lens-products{grid-template-columns:repeat(auto-fit,minmax(min(125px,100%),1fr));gap:12px}.product-card{border:1px solid #e9d8e3;border-radius:18px;padding:16px 10px;gap:8px;background:#fff;min-height:220px}.product-card img{background:#fff7fb;border-radius:12px}.product-card strong{font-size:15px;line-height:1.6}.product-color{font-size:14px;color:#785b70}.product-selected{font-size:13px;color:#9c275f;font-weight:700}.product-card:has(input:checked){border:2px solid #bc4b80;padding:15px 9px;background:#fff4f9;box-shadow:0 3px 12px #c94e8510}.product-card:has(input:focus-visible){outline-color:#9c3971}
.comparison{padding:26px}.section-head{align-items:center;margin-bottom:6px;flex-wrap:wrap}.section-head h2{margin-bottom:10px}.section-head .badge{margin-bottom:10px}.compare-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
figcaption{font-size:13px;letter-spacing:1px;font-weight:700;color:#9c416b;margin:10px 0 12px}figcaption span{font-size:14px;color:#746074;font-weight:500}.photo-area,.photo-area.result{background:#fbf5f9;border:1px solid #f0e2eb;border-radius:18px;aspect-ratio:3/4}.photo-area.result{background:#f7f3fc}.photo-area img{object-fit:contain}.empty{padding:22px 12px;color:#7c6577}.empty>span{font-size:44px;color:#d991b6;margin-bottom:16px}.empty strong{font-size:16px;font-weight:600}.empty p{font-size:14px;line-height:1.9}.result-footer{border-top:1px solid #f2e6ef;padding-top:20px;margin-top:24px;align-items:center}.result-footer p{font-size:14px;color:#705c6c;line-height:1.8}#download{min-width:168px;flex-shrink:0}.download-note{font-size:13px;text-align:left;margin-bottom:0}
#upload-original{background:#fff5fa!important}#manual-guidance{color:#8f325d;border-left-color:#c9568d;font-size:14px}
#eye-editor{background:#fff;border-color:#ead5e2;border-radius:24px;color:var(--ink);box-shadow:0 16px 60px #49203a30}#eye-editor::backdrop{background:#3e26396b}.editor-head,.editor-actions{background:#fff;border-color:var(--line)}.editor-help,#editor-count,#editor-message,#editor-view-scale,.editor-selection{font-size:14px;color:#715b70}.editor-selection{background:#fff0f7}.editor-tools label{font-size:14px}#eye-editor select{border-color:#dbc4d3;border-radius:10px}#eye-canvas{background:#362d3b}.editor-actions{gap:12px}
footer{max-width:1440px;margin:auto;border-color:var(--line);padding:26px 5%;font-size:14px;letter-spacing:0;align-items:center}.footer-brand{font-weight:800;letter-spacing:2px;color:#a62d63}
:focus-visible{outline:3px solid #8f3676;outline-offset:4px}.skip-link{position:fixed;left:12px;top:-90px;background:#fff;color:#8c2859;padding:12px 18px;border:2px solid #a52f66;border-radius:12px;z-index:20}.skip-link:focus{top:12px}
@media(max-width:1100px){.workspace{grid-template-columns:300px minmax(0,1fr);gap:18px}.card,.comparison{padding:20px}.section-head .badge{display:none}}
@media(max-width:800px){.workspace{grid-template-columns:minmax(0,1fr)}.controls{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.comparison{min-width:0}}
@media(max-width:700px){.controls{grid-template-columns:minmax(0,1fr)}main{padding:20px 4% 36px}.topbar{padding:18px 5%;gap:12px}.topbar .badge{font-size:12px;padding:6px 9px}.brand{font-size:21px}.brand span{font-size:9px}.intro{padding:28px 17px 24px;margin-bottom:24px;border-radius:24px}h1{font-size:30px;letter-spacing:-1.3px}.lead{font-size:16px}.eyebrow{font-size:10px;letter-spacing:1.4px}.notice{font-size:13px}.journey{gap:12px;margin-top:20px}.journey li{font-size:13px;gap:6px}.journey li span{width:25px;height:25px}.card,.comparison{padding:20px;border-radius:22px}.compare-grid{grid-template-columns:minmax(0,1fr);gap:24px}.photo-area:has(img:not([hidden])){aspect-ratio:auto;display:block}.photo-area img:not([hidden]){display:block;width:100%;height:auto;object-fit:contain}.photo-area{aspect-ratio:4/3}.result-footer{align-items:stretch;gap:10px}#download{width:100%}h2{font-size:18px}.check{font-size:14px}footer{align-items:flex-start;gap:8px}#eye-editor{border-radius:18px}.editor-head h2{font-size:17px}.editor-actions button{font-size:14px}.editor-tools select{font-size:16px}#upload-original{max-height:min(40dvh,320px);object-fit:contain}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.request-feedback{margin-top:14px;padding:14px;border:1px solid #ead5e2;border-radius:14px;background:#fff7fb;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 12px;align-items:center}.request-feedback[hidden]{display:none}.request-feedback p{margin:0;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.request-feedback button,.request-feedback #request-elapsed{grid-column:2}.request-feedback #request-elapsed{font-size:13px;color:#746274;font-variant-numeric:tabular-nums}.request-spinner{width:22px;height:22px;border:3px solid #ead5e2;border-top-color:#ae306a;border-radius:50%;animation:request-spin 1s linear infinite;align-self:start;margin-top:4px}@keyframes request-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.request-spinner{animation:none}}

/* STEP 16-143: view-only catalog filtering; selected lens remains unchanged. */
.lens-search{display:flex;align-items:center;gap:8px;width:100%;min-width:0;margin:12px 0}
.lens-search input{flex:1;min-width:0;width:100%;min-height:46px;font-size:16px;padding:10px 12px;border:1px solid #bd8ca5;border-radius:12px;background:#fff;color:#40313b;box-sizing:border-box}
.lens-search button{flex:none;min-height:46px;min-width:58px;margin:0;padding:10px;border-radius:12px}
.lens-search input:focus-visible,.lens-search button:focus-visible{outline:3px solid #9c3971;outline-offset:2px}
.product-card[hidden]{display:none!important}
#lens-search-status{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:420px){.lens-search{flex-wrap:wrap}.lens-search input{flex-basis:100%}.lens-search button{margin-left:auto}}

/* STEP159: official logo links; preserve full image canvas and aspect ratio. */
.topbar .brand,footer .footer-brand{display:inline-flex;align-items:center;text-decoration:none}
footer .footer-brand{align-self:flex-start}
footer{flex-direction:column;align-items:flex-start}
.footer-logo{display:block;width:128px;max-width:100%;height:auto;object-fit:contain}
.topbar .brand:focus-visible,footer .footer-brand:focus-visible{outline:3px solid #ad78c8;outline-offset:5px;border-radius:4px}
@media(max-width:480px){.footer-logo{width:112px}}

/* STEP17-1 presentation only. */
.intro .lead,.intro .notice{word-break:keep-all;overflow-wrap:normal;max-width:100%}
.intro .eyebrow{word-break:keep-all;overflow-wrap:normal}
.journey .step,h2 .step{display:inline-grid;place-items:center;box-sizing:border-box;flex:0 0 29px;width:29px;height:29px;min-width:29px;min-height:29px;padding:0;border-radius:50%;font-family:inherit;font-size:13px;font-weight:700;line-height:1;letter-spacing:0;vertical-align:middle}
.journey li .step.step-1,h2 .step-1{background:#fce4f0;color:#9c285c}
.journey li .step.step-2,h2 .step-2{background:#eee6ff;color:#64447d}
.journey li .step.step-3,h2 .step-3{background:#dff4ee;color:#256553}
#correction-note{margin:18px 0 10px}#edit-eyes{margin-top:0}
