:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#151a1e;background:#f5f6f8;font-synthesis:none;--accent:#1f4bd8;--accent-dark:#173bab;--ink:#151a1e;--muted:#626b78;--line:#e2e5eb;--surface:#fff}
*{box-sizing:border-box}body{margin:0;-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}
button{min-height:48px;padding:12px 19px;border:1px solid #d7dce6;border-radius:12px;background:#fff;color:var(--ink);font-size:14px;font-weight:600;line-height:1.3;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}button:hover{background:#f0f3f8;border-color:#bcc5d7}button:active{transform:translateY(1px)}button:disabled{cursor:wait;opacity:.5;transform:none}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #7796f5;outline-offset:4px}
.primary{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 3px 8px #1f4bd819}.primary:hover{background:var(--accent-dark);border-color:var(--accent-dark)}.quiet{background:transparent;border-color:transparent;box-shadow:none;color:#465062}.quiet:hover{background:#eef1f7;border-color:transparent}.danger{color:#a13936}
input{width:100%;min-height:48px;padding:11px 13px;border:1px solid #bdc6d5;border-radius:10px;font-size:16px;color:var(--ink);background:#fff}input::placeholder{color:#89909c}
a{color:var(--accent);text-underline-offset:3px}p{margin:0 0 12px;font-size:15px;line-height:1.55}h1,h2,h3{margin:0}h1{font-size:39px;line-height:1.13;font-weight:650;letter-spacing:-1.35px}h2{font-size:22px;line-height:1.25;font-weight:650;letter-spacing:-.5px}h3{font-size:17px;line-height:1.3;font-weight:650;letter-spacing:-.2px}
.eyebrow,.small-label{display:block;font-size:10px;line-height:1.5;font-weight:650;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}.eyebrow{margin:0 0 8px}.small-label{margin-bottom:5px}.muted{color:var(--muted);font-size:12px!important}
.topbar{max-width:1104px;min-height:102px;padding:23px 32px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:20px}.wordmark{display:block;flex:none;line-height:0;padding:4px 0}.wordmark img{display:block;width:174px;height:auto}.edition{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted)}.edition-dot{width:5px;height:5px;border-radius:50%;background:var(--accent)}
main{max-width:1104px;margin:auto;padding:0 32px 22px}.journey{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:34px}.journey ol{display:flex;list-style:none;padding:15px 0;margin:0;gap:42px}.journey li{display:flex;gap:9px;align-items:center;font-size:12px;font-weight:550;color:#7b8390}.step-number{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border:1px solid #d5dae4;border-radius:50%;font-size:10px;font-variant-numeric:tabular-nums}
.journey li[aria-current="step"],.journey li.is-active{color:var(--accent)}.journey li[aria-current="step"] .step-number,.journey li.is-active .step-number{color:#fff;border-color:var(--accent);background:var(--accent)}.journey li.is-complete{color:#4a5668}
.intro{margin-bottom:25px}.intro>p:last-child{color:var(--muted);margin:11px 0 0;max-width:450px;font-size:15px}.workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);align-items:start;gap:26px}.camera-card,.side-card,.result-card{min-width:0}
.camera-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 8px 25px #151a1e04}.section-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:17px}.camera-heading h2{font-size:16px;letter-spacing:-.15px}.tag{flex:none;display:inline-flex;align-items:center;padding:6px 9px;border-radius:30px;background:#f0f3f8;font-size:10px;line-height:1.3;color:#526076;white-space:nowrap}.tag.warm{background:#f2f4f8;color:#5d6676}
.viewport{aspect-ratio:4/3;isolation:isolate;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:15px;background:radial-gradient(ellipse at 50% 45%,#273145 0,#171e2b 50%,#101622 100%);color:#c1c8d6}.viewport video{width:100%;height:100%;object-fit:contain;transform:scaleX(-1);position:absolute;inset:0;z-index:-1}
.face-guide{position:absolute;width:41%;height:72%;top:13%;left:29.5%;border:1px solid #b3c6f855;border-radius:47% 47% 45% 45% / 43% 43% 58% 58%;pointer-events:none}.face-guide::before,.face-guide::after{content:"";position:absolute;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:#92a8df}.face-guide::before{top:-2px}.face-guide::after{bottom:-2px}.guide-axis{position:absolute;top:46%;left:-12%;width:124%;border-top:1px dashed #a6b9e02b}
.placeholder{position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:center;flex-direction:column}.camera-off{display:flex;gap:7px;align-items:center;position:absolute;top:15px;left:15px;font-size:10px;color:#a5aec0}.camera-off svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round}.placeholder-caption{position:absolute;bottom:20px;font-size:11px;color:#929eb4;letter-spacing:.01em}
.frame-corner{position:absolute;width:17px;height:17px;border-color:#8496bf;border-style:solid;pointer-events:none;opacity:.7}.corner-tl{top:41px;left:18px;border-width:1px 0 0 1px;border-top-left-radius:5px}.corner-tr{top:41px;right:18px;border-width:1px 1px 0 0;border-top-right-radius:5px}.corner-bl{bottom:18px;left:18px;border-width:0 0 1px 1px;border-bottom-left-radius:5px}.corner-br{bottom:18px;right:18px;border-width:0 1px 1px 0;border-bottom-right-radius:5px}
.live-label{position:absolute;left:12px;bottom:12px;display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid #ffffff25;border-radius:20px;background:#111827d9;color:#fff;font-size:10px}.live-label span{width:5px;height:5px;border-radius:50%;background:#b5c7ff}
.capture-info{padding-top:17px}.capture-info p{font-size:13px;line-height:1.5;margin-bottom:5px}#hint{font-weight:550;min-height:20px}#progress-text{font-size:11px!important}progress{display:block;width:100%;height:4px;margin:13px 0 18px;border:0;border-radius:4px;background:#edf0f6;accent-color:var(--accent);overflow:hidden}progress::-webkit-progress-bar{background:#edf0f6;border-radius:4px}progress::-webkit-progress-value{background:var(--accent);border-radius:4px;transition:width .2s}progress::-moz-progress-bar{background:var(--accent);border-radius:4px}
.actions{display:flex;gap:10px;flex-wrap:wrap}.capture-actions>.primary{flex:1 1 auto}.capture-actions>.quiet{flex:0 1 auto}.privacy-note{display:flex;align-items:center;justify-content:center;gap:5px;color:#727c8e;font-size:10px;margin:14px 0 0}.privacy-note svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round}
.side-card{padding:20px 8px 0 4px}.side-card h2{max-width:220px;font-size:25px}.steps{list-style:none;margin:25px 0 0;padding:0}.steps li{display:flex;gap:14px;padding:19px 0;border-top:1px solid var(--line)}.steps li>span{padding-top:2px;min-width:18px;color:var(--accent);font-size:10px;font-weight:650}.steps strong{font-size:14px;font-weight:600}.steps p{color:var(--muted);font-size:13px;line-height:1.55;margin:7px 0 0}.scope-note{border-top:1px solid var(--line);margin-top:8px;padding-top:20px}.scope-note p{color:var(--muted);font-size:12px;line-height:1.6}
.result-card{padding:28px;border:1px solid var(--line);background:#fff;border-radius:22px;margin-top:26px}.result-heading{margin-bottom:10px}.result-heading h2{font-size:30px;letter-spacing:-.9px}.result-note{font-size:13px;color:var(--muted);margin-bottom:22px;max-width:650px}.measurements{margin:0 0 25px}
.measurement-hero{position:relative;isolation:isolate;min-height:218px;padding:28px;margin-bottom:17px;background:var(--accent);color:#fff;border-radius:16px;overflow:hidden}.metric-kicker{max-width:70%;margin:0 0 13px;font-size:13px;font-weight:500;line-height:1.5;color:#e2e9ff}.metric-value{position:relative;font-size:76px;font-weight:550;line-height:1;letter-spacing:-3.5px;font-variant-numeric:tabular-nums}.metric-unit{margin-left:9px;font-size:15px;font-weight:400;letter-spacing:0;color:#d8e3ff}.metric-description{max-width:72%;margin:16px 0 0;color:#e0e8ff;font-size:12px;line-height:1.6}
.metric-diagram{position:absolute;top:41px;right:34px;width:98px;height:132px;border:1px solid #a9c0ff7a;border-radius:46% 46% 43% 43% / 40% 40% 58% 58%;z-index:-1}.metric-diagram::before{content:"";position:absolute;left:50%;top:-10px;bottom:-10px;border-left:1px dashed #c0d2ff8c}.metric-diagram::after{content:"";position:absolute;top:43%;left:-12px;right:-12px;border-top:1px dashed #c0d2ff8c}
.measurement-hero>small{display:block;color:#d8e3ff;font-size:10px;line-height:1.5;margin-top:8px;max-width:72%}.measurement-hero>button{margin-top:12px;padding:7px 12px;min-height:38px;background:transparent;color:#fff;border-color:#93aeff;font-size:11px}
.measurement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.measurement{position:relative;min-width:0;padding:17px;border:1px solid var(--line);border-radius:12px;background:#fff}.measurements>.measurement{margin:12px 0}.measurement .name{color:#566174;font-size:12px;font-weight:500;line-height:1.45;margin:0 0 12px}.measurement .value{font-size:29px;font-weight:550;letter-spacing:-.9px;line-height:1.2;font-variant-numeric:tabular-nums}.measurement small{display:block;margin-top:7px;color:#727c8e;font-size:10px;line-height:1.5}
.measurement>button{margin-top:10px;padding:8px 0;border:0;min-height:36px;background:transparent;color:var(--accent);font-size:11px;font-weight:550;text-decoration:underline;text-underline-offset:3px}.edit-form{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.edit-form input{width:100%;min-width:0}.edit-form button{padding:8px 11px;min-height:40px;font-size:12px}
.manual-measurement{padding:21px;border:1px solid #dbe3f7;border-radius:14px;background:#f6f8fe}.manual-heading{display:flex;align-items:center;gap:12px;margin-bottom:13px}.manual-heading .small-label{font-size:9px;color:#5b6d96;letter-spacing:.07em;margin-bottom:3px}.ruler-symbol{display:flex;align-items:center;justify-content:center;width:38px;height:42px;border-radius:10px;flex:none;color:var(--accent);background:#e8edfc}.ruler-symbol svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#face-length-help{max-width:620px;font-size:12px;color:#5a6883;line-height:1.65;margin-bottom:16px}.manual-form{display:flex;align-items:end;flex-wrap:wrap;gap:11px}.manual-form .field{flex:1 1 180px;max-width:330px}.manual-form label{display:block;font-size:12px;font-weight:550;line-height:1.4;margin-bottom:7px}.manual-form small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-top:6px}.face-length-form button{border-color:#cad6f5;color:var(--accent);background:#fff}.wrist-form{padding:20px 0 0;margin-top:20px;border-top:1px solid var(--line)}.wrist-form button{margin-bottom:21px;font-size:12px}.optional{color:#747e8f;font-size:10px;font-weight:400}.form-status{font-size:12px;color:#355d48;margin:10px 0 0}.form-status:empty{display:none}
.result-actions{border-top:1px solid var(--line);margin-top:25px;padding-top:22px}.result-actions .primary{min-width:210px}.save-note{max-width:500px;margin:11px 0 7px;color:var(--muted);font-size:11px}.secondary-actions{gap:5px}.secondary-actions button{padding:8px 10px;min-height:40px;font-size:11px;margin-left:-10px}
details{border-top:1px solid var(--line);margin-top:20px;padding-top:8px}summary{display:list-item;cursor:pointer;padding:12px 0;font-size:12px;font-weight:500;color:#596478}summary::marker{color:#8993a4;font-size:9px}details>p{margin:10px 0 12px}.measurement-unavailable{margin:17px 0 0}.measurement-unavailable .measurement-grid{margin-top:8px}.measurement-unavailable .measurement{background:#f7f8fb;border-color:transparent}.measurement-unavailable .value{font-size:17px;color:#69768c;letter-spacing:-.2px}
pre{max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0 0;padding:16px;border-radius:10px;background:#f4f6f9;color:#566174;font-family:ui-monospace,Consolas,monospace;font-size:10px;line-height:1.65}
.app-footer{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.footer-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;font-size:10px;color:#828a98}.footer-links a{color:#69758a;text-decoration:none}.diagnostics{border:0;margin-top:10px;padding:0}.diagnostics summary{color:#7a8495;font-size:10px;font-weight:400}.diagnostics p{font-size:11px;color:var(--muted)}.diagnostic-row{display:flex;justify-content:space-between;gap:20px;padding:8px 0;max-width:640px;border-bottom:1px solid var(--line);color:#657187;font-size:11px;overflow-wrap:anywhere}.diagnostic-row>span{min-width:0}.diagnostics button{margin:14px 0 8px;min-height:40px;font-size:11px}.footer-note{max-width:700px;margin:9px 0 0;color:#8a929f;font-size:10px;line-height:1.6}
.license-page{max-width:800px;padding-top:55px}.license-page h1{margin-bottom:24px;font-size:32px}.license-page li{line-height:1.65;margin:15px 0}
body[data-phase="loading"] #phase,body[data-phase="ready"] #phase,body[data-phase="processing"] #phase{color:var(--accent);background:#edf1fd}
body[data-phase="loading"] #phase::before,body[data-phase="ready"] #phase::before,body[data-phase="processing"] #phase::before{content:"";display:inline-block;width:8px;height:8px;border:1px solid #abc0ff;border-top-color:var(--accent);border-radius:50%;margin-right:6px;animation:spin .9s linear infinite}
body[data-phase="capturing"] #phase{color:#fff;background:var(--accent)}body[data-phase="capturing"] #start,body[data-phase="processing"] #start{display:none}body[data-phase="error"] #phase{background:#fff0e8;color:#a05b30}body[data-phase="review"] #phase{color:#38674c;background:#edf5ef}
body[data-phase="capturing"] .face-guide{border-color:#bfcef7bd}#viewport[data-quality="steady"] .face-guide{border-color:#b3c9ff;box-shadow:0 0 0 1px #4876ed5c}
#viewport[data-quality="multiple_faces"] .face-guide,#viewport[data-quality="pose"] .face-guide,#viewport[data-quality="lighting"] .face-guide,#viewport[data-quality="blur"] .face-guide{border-color:#eac594}
@keyframes spin{to{transform:rotate(360deg)}}
.topbar{max-width:none;margin:0;padding-inline:max(32px,calc((100% - 1040px)/2));background:#fff}
.additional-metrics .measurement-grid{margin-top:12px}
.extra-measurements .wrist-form{border:0;margin-top:0;padding-top:5px}
body[data-phase="review"] .intro,body[data-phase="review"] .workspace{display:none}
body[data-phase="review"] .result-card{margin-top:0}
@media(max-width:760px){
.topbar{min-height:89px;padding:20px 22px;gap:13px}.wordmark img{width:166px}.edition{font-size:10px;gap:5px}main{padding:0 18px calc(22px + env(safe-area-inset-bottom))}.journey{margin-bottom:24px}.journey ol{justify-content:space-between;gap:10px;padding:13px 0}.journey li{gap:6px;font-size:11px}.step-number{width:21px;height:21px;font-size:9px}
.intro{margin-bottom:21px}.intro .eyebrow{font-size:9px;margin-bottom:7px}h1{font-size:30px;letter-spacing:-.9px}.intro>p:last-child{margin-top:8px;font-size:13px;max-width:295px;line-height:1.5}.workspace{display:block}.camera-card{padding:14px;border-radius:18px}.camera-heading{margin-bottom:13px;gap:7px}.camera-heading h2{font-size:14px}.tag{font-size:9px;padding:6px 8px}
.viewport{aspect-ratio:1.18;border-radius:12px}.face-guide{width:47%;left:26.5%;height:73%;top:12%}.camera-off{top:12px;left:12px;font-size:9px}.placeholder-caption{bottom:17px;font-size:10px}.capture-info{padding-top:14px}.capture-info p{font-size:12px}#progress-text{font-size:10px!important}progress{margin:12px 0 15px}
.capture-actions{gap:4px}.capture-actions button{font-size:13px;padding-right:13px;padding-left:13px}.privacy-note{font-size:9px;margin-top:12px;gap:4px}.side-card{display:none}
.result-card{margin-top:22px;padding:0;border:0;background:transparent;border-radius:0}.result-heading{align-items:flex-start;margin-bottom:10px}.result-heading h2{font-size:28px;letter-spacing:-.85px}.result-heading .eyebrow{font-size:9px}.result-heading .tag{margin-top:22px}.result-note{font-size:12px;line-height:1.6;margin-bottom:19px}
.measurements{margin-bottom:22px}.measurement-hero{padding:22px;min-height:217px;margin-bottom:12px;border-radius:15px}.metric-kicker{max-width:69%;font-size:12px;margin-bottom:15px}.metric-value{font-size:65px;letter-spacing:-3px}.metric-unit{margin-left:5px;font-size:12px}.metric-description{max-width:73%;font-size:11px;margin-top:14px}.metric-diagram{width:67px;height:95px;right:24px;top:65px}.measurement-hero>small{font-size:9px}
.measurement-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.measurement{padding:15px 13px 10px;border-radius:12px}.measurement .name{font-size:11px;line-height:1.5;min-height:33px;margin-bottom:10px}.measurement .value{font-size:27px}.measurement small{font-size:9px}.measurement>button{font-size:10px;min-height:40px;margin-top:4px}
.manual-measurement{padding:18px 16px;background:#fff;border-color:var(--line)}.manual-heading{gap:10px;margin-bottom:12px}.manual-heading h3{font-size:15px}.manual-heading .small-label{font-size:8px}.ruler-symbol{width:32px;height:38px;border-radius:9px}#face-length-help{font-size:11px;margin-bottom:15px}
.manual-form{gap:10px}.face-length-form .field{flex:1 1 100%;max-width:none}.face-length-form button{width:100%;min-height:44px;font-size:13px}.manual-form label{font-size:11px}.wrist-form{align-items:end;padding-top:20px;gap:9px}.wrist-form .field{flex:1 1 100%;max-width:none}.wrist-form button{margin-bottom:0;min-height:42px;font-size:11px}
.result-actions{margin-top:22px;padding-top:20px}.result-actions>.actions:first-child{display:grid;grid-template-columns:1fr;gap:8px}.result-actions .primary{min-width:0}.save-note{font-size:10px;margin-top:10px;line-height:1.6}.secondary-actions{justify-content:center;margin-top:8px}.secondary-actions button{margin:0;font-size:10px}.technical-details{margin-top:14px}.measurement-unavailable summary,.technical-details summary{font-size:11px}
.app-footer{margin-top:24px;padding-top:16px}.footer-links{gap:9px;font-size:9px}.diagnostics summary{font-size:9px}.footer-note{font-size:9px}.diagnostic-row{font-size:10px}
body[data-phase="review"] .intro,body[data-phase="review"] .workspace{display:none}body[data-phase="review"] .journey{margin-bottom:24px}body[data-phase="review"] .result-card{margin-top:0}body[data-phase="capturing"] .intro,body[data-phase="processing"] .intro{display:none}
.license-page{padding-top:32px}.license-page h1{font-size:28px}
}
@media(max-width:365px){.topbar{padding-right:18px;padding-left:18px}.wordmark img{width:160px}.edition{font-size:9px}main{padding-right:14px;padding-left:14px}.journey li{font-size:10px}.camera-card{padding:13px}.privacy-note{font-size:8.5px}.metric-value{font-size:59px}.metric-diagram{right:20px;width:60px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
button:not([hidden]){min-height:44px}
summary{min-height:44px}
.length-preparation{margin:0 0 17px;padding:13px 15px;border:1px solid #dce5f9;border-radius:12px;background:#f6f8fe}
.length-preparation label{display:flex;gap:11px;align-items:center;min-height:44px;font-size:12px;line-height:1.5;font-weight:550;cursor:pointer}
.length-preparation input{width:21px;height:21px;min-height:21px;flex:none;accent-color:var(--accent)}
.length-preparation p{font-size:11px;color:var(--muted);line-height:1.6;margin:6px 0 0}
.length-estimate .metric-value{font-size:clamp(50px,9vw,76px)}
.length-estimate .metric-description,.length-estimate .metric-kicker,.length-estimate>small{max-width:100%}
.length-unavailable{border-color:#dce5f9;background:#f6f8fe;margin-bottom:14px!important}
.length-unavailable .value{font-size:22px}.length-unavailable small{font-size:12px;line-height:1.6}
.footer-links a{display:inline-flex;align-items:center;min-height:44px;margin-top:-14px;margin-bottom:-14px}
.face-review{padding:24px;border:1px solid var(--line);border-radius:20px;background:#fff;margin:24px 0}
.face-review h3,.scan-comparison h3{font-size:23px;letter-spacing:-.5px;margin:4px 0 10px}
.face-review .muted,.scan-comparison p{font-size:13px;line-height:1.65;margin:12px 0}
.face-review-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;margin:20px 0;align-items:start}
.face-map-wrap{position:relative;background:#0c1823;border-radius:15px;overflow:hidden;line-height:0}
#face-map{display:block;width:100%;height:auto;max-height:650px;object-fit:contain}
.map-badge{position:absolute;left:12px;bottom:12px;background:#0a233adb;color:#fff;border-radius:30px;padding:9px 12px;font-size:10px;line-height:1.4;pointer-events:none}
.segment-list{display:grid;gap:8px}.segment-button{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:12px;width:100%;padding:15px;font-size:12px;border:1px solid var(--line);border-radius:12px;background:#f7f9fc}
.segment-list{max-height:390px;overflow-y:auto;padding:3px;scrollbar-width:thin}
.segment-button span{max-width:65%}.segment-button strong{white-space:nowrap}.segment-button[aria-pressed="true"]{background:#e7f8f4;border-color:#378d7d;color:#123e37}
.scan-comparison{padding:24px;background:#f0f4ff;border:1px solid #d6e0f6;border-radius:18px;margin:25px 0}
.baseline-note{padding:12px;background:#fff;border-radius:9px}.baseline-file-label{display:block;margin:18px 0 8px;font-size:13px}
#baseline-file{display:block;max-width:100%;width:100%;min-width:0;font-size:13px;padding:10px;border:1px solid #c8d4ef;border-radius:9px;background:#fff}
.conditions-label{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.6;margin-top:18px;cursor:pointer}
.conditions-label input{width:21px;height:21px;min-height:21px;margin-top:2px;flex:none;accent-color:var(--accent)}
.comparison-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:13px 0;border-bottom:1px solid #d6e0f6;font-size:12px;line-height:1.6}.comparison-row span{font-variant-numeric:tabular-nums}
#camera-guide{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#guide-status{padding:10px 12px;margin:12px 0 8px;background:#fff0f6;color:#8e2354;border:1px solid #f1bad2;border-radius:10px;font-size:12px}
#guide-status[data-ok="true"]{background:#e6faf0;color:#145a3c;border-color:#8fd8b7}.guide-checks{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:9px}.guide-checks span{font-size:10px;padding:5px 7px;border-radius:8px;background:#fff0f6;color:#8e2354}.guide-checks [data-ok="true"]{background:#e6faf0;color:#145a3c}
.capture-context{margin:0 0 14px}.capture-context label{display:flex;align-items:center;gap:9px;font-size:12px;min-height:40px}.capture-context input{width:20px;height:20px;min-height:20px;flex:none}
.extended-result{padding:20px;border-radius:16px;background:#fff;border:1px solid var(--line);margin:20px 0}.extended-result h3{margin:18px 0 12px}.color-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:16px 0}.color-card{border:1px solid var(--line);padding:12px;border-radius:12px;display:grid;gap:8px;font-size:12px}.color-card canvas{width:100%;height:38px;border-radius:7px}.color-card span{font-size:11px;color:var(--muted)}.contrast-values p{font-size:12px}
#analysis-file{max-width:100%;font-size:12px}#analysis-status{overflow-wrap:anywhere}#calibration-panel p{font-size:12px}#calibration-canvas{max-width:100%;height:auto;touch-action:manipulation;border-radius:12px;cursor:crosshair}#calibration-tools label{display:block;font-size:12px;margin:12px 0}#calibration-tools .conditions-label{display:flex}#calibration-tools textarea{width:100%;font:inherit;font-size:16px;border:1px solid var(--line);border-radius:10px;padding:10px}#calibration-tools button{margin:6px 0}#marker-result,#calibration-color-result{font-size:12px;line-height:1.6}
@media(max-width:760px){.face-review,.scan-comparison{padding:16px;border-radius:15px}.face-review-grid{grid-template-columns:minmax(0,1fr);gap:12px}.face-review h3,.scan-comparison h3{font-size:21px}.face-review .muted,.scan-comparison p{font-size:12px}.segment-button{padding:12px}.scan-comparison .actions{display:grid;grid-template-columns:minmax(0,1fr)}.scan-comparison button{font-size:12px}#face-map{max-height:none}}

/* Mobile capture revision: state surrounds the untouched camera image. */
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.camera-card{transition:background-color .55s,border-color .55s;scroll-margin-top:10px;background:#fff}
.camera-card[data-state="adjust"]{background:#fff0f4;border-color:#ebbecd}.camera-card[data-state="ready"]{background:#eaf8ef;border-color:#a9d9bc}
.viewport{background:#edf1f5;color:#526173;aspect-ratio:auto;height:clamp(230px,44svh,430px)}
.viewport video{z-index:0}.placeholder,#camera-guide,.live-label{z-index:1}.frame-corner{display:none}.camera-off,.placeholder-caption{color:#5e6d80}.live-label{background:#ffffffdf;color:#35445a;border-color:#dbe2eb}
.capture-info{padding-top:8px}#hint{min-height:36px;margin:0 0 8px;font-size:13px}.capture-actions{flex-wrap:nowrap;gap:8px}.capture-actions button{font-size:13px;padding:10px 13px}.capture-info progress{margin:8px 0}.scan-options{margin:8px 0 0}.scan-options summary{padding:8px 0}.privacy-note{margin-top:8px}.capture-context{margin-bottom:0}
.selected-measurement{background:#eff4ff;padding:13px;border-radius:12px;color:#183452;font-size:14px;font-weight:600}.face-map-wrap{background:#edf1f5}.scan-summary{padding:16px;background:#eff6f3;border-radius:14px;margin:16px 0;font-size:14px;line-height:1.6}.scan-summary:empty{display:none}.profile-panel{padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff;margin-top:20px}.profile-panel p{font-size:13px}.profile-panel button{margin:4px}.profile-panel ul{font-size:12px;line-height:1.6;padding-left:20px}.profile-panel input{width:20px;height:20px;flex:none}.profile-panel label{display:flex;gap:10px;font-size:13px;align-items:start;margin:12px 0}
@media(max-width:760px){.topbar{padding:12px 18px;height:auto}.wordmark img{width:116px}.journey{margin-bottom:12px}.journey ol{padding:8px 0}.intro{margin-bottom:12px}.intro .eyebrow{display:none}.intro h1{font-size:26px}.intro>p:last-child{font-size:13px;margin:5px 0}.camera-card{padding:12px}.camera-heading{margin-bottom:10px}.camera-heading h2{font-size:15px}.viewport{height:clamp(190px,37svh,330px)}.capture-info #hint{font-size:12px}.privacy-note{font-size:9px}.profile-panel{padding:16px}.side-card{display:none}body[data-phase="capturing"] .intro,body[data-phase="loading"] .intro,body[data-phase="ready"] .intro{display:none}.result-card{padding:16px}.color-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:600px){.viewport{height:180px}.journey,.intro{display:none}}

#calibration-view{overflow:auto;max-height:65svh;border-radius:12px;background:#edf1f5}#calibration-view.zoomed canvas{width:200%;max-width:none}#ruler-result{font-size:13px;line-height:1.7;margin:12px 0;overflow-wrap:anywhere}
/* Client edition: calm editorial layout, clear preparation, compact capture. */
:root{--accent:#265a4b;--accent-dark:#164535;--ink:#23332e;--muted:#63736a;--line:#dde4dc;background:#f6f7f2;color:var(--ink)}
body{background:radial-gradient(ellipse at 92% 0,#e9eddf 0,transparent 48%),#f6f7f2}
.topbar{min-height:82px}.edition{border:1px solid var(--line);border-radius:30px;padding:8px 12px;font-size:10px;background:#ffffff90}
h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:52px;letter-spacing:-1.8px}.intro>p:last-child{max-width:none}.intro{margin-bottom:22px}
.journey{border-top:0}.journey ol{padding:10px 0}.journey li[aria-current=step] .step-number{box-shadow:0 0 0 4px #265a4b0a}
.preparation{margin:0 0 22px;max-width:720px}.mode-picker{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mode-picker label{display:flex;align-items:center;gap:10px;border:1px solid var(--line);padding:12px 16px;background:#ffffffa6;border-radius:16px;cursor:pointer}.mode-picker label:has(input:checked){border-color:var(--accent);background:#eaf1e8;box-shadow:inset 0 0 0 1px var(--accent)}.mode-picker input{width:18px;height:18px;min-height:18px;padding:0;accent-color:var(--accent)}.mode-picker span{font-size:14px;font-weight:650}.mode-picker small{display:block;font-size:11px;font-weight:400;margin-top:4px;color:var(--muted)}#mode-help{font-size:12px;color:var(--muted);margin:8px 0}.preparation-help summary{font-size:12px;min-height:30px;padding:6px 0}.preparation-help ol{padding-left:23px;font-size:13px;line-height:1.7}.preparation-help li{margin:10px 0}.preparation-help p{font-size:12px}.preparation-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.preparation-chips span{font-size:10px;padding:6px 9px;background:#fff;border-radius:20px;border:1px solid var(--line)}
.camera-card{border-radius:26px;box-shadow:0 15px 55px #23332e08}.viewport{border-radius:18px;background-color:#edf1f5}.placeholder{background:radial-gradient(ellipse at 50% 50%,#f8faf6,#e1e7dd)}.placeholder::after{content:'';position:absolute;width:130px;height:175px;left:calc(50% - 65px);top:calc(50% - 90px);border:1px solid #8b9d8855;border-radius:48% 48% 44% 44%;box-shadow:0 0 0 16px #ffffff30,0 0 0 34px #ffffff20}.camera-off{background:#ffffffb0;border-radius:20px;padding:7px 10px;color:#496050}.placeholder-caption{color:#496050}.primary{box-shadow:0 4px 14px #265a4b15;border-radius:14px}.side-card h2{font-family:Georgia,serif;font-weight:400;font-size:32px;max-width:none}.tag{background:#eef2e9;color:#536650}
.series-panel{margin:20px 0;border:1px solid var(--line);border-radius:18px;background:#fff;padding:16px 20px}.series-panel>summary{font-weight:600;min-height:32px}.series-panel p{font-size:13px}.series-panel .actions{margin:16px 0}.series-row{padding:18px 0;border-top:1px solid var(--line)}.series-row h3{font-size:15px;margin-bottom:10px}.series-row label{font-size:12px;display:block;max-width:300px}.series-row input{margin:6px 0}.series-row p{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}#series-progress{font-weight:600;color:var(--accent)}
.color-card{padding:0 0 15px;overflow:hidden;border-radius:18px;background:#fafbf8}.color-card canvas{height:80px;border-radius:0}.color-card strong,.color-card span{padding:0 14px}.color-card strong{font-size:13px}.color-card span{line-height:1.6}.selected-measurement,.scan-summary{background:#edf3e9}.extended-result{border-radius:22px}.result-heading h2{font-family:Georgia,serif;font-size:36px;font-weight:400}.measurement-hero{background:linear-gradient(135deg,#e6eddf,#f5f7ef);color:var(--ink)}
body[data-phase=review] .preparation,body[data-phase=loading] .preparation,body[data-phase=ready] .preparation,body[data-phase=capturing] .preparation,body[data-phase=processing] .preparation{display:none}
body[data-phase=loading] .series-panel,body[data-phase=capturing] .series-panel,body[data-phase=processing] .series-panel{display:none}
@media(max-width:760px){.topbar{min-height:57px;padding:10px 16px}.wordmark img{width:105px}.edition{font-size:8px;padding:6px 8px}.journey{margin-bottom:10px}.journey ol{padding:7px 0}.intro h1{font-size:34px}.intro>p:last-child{font-size:12px;max-width:none}.intro{margin-bottom:12px}.preparation{margin-bottom:12px}.mode-picker label{padding:9px 10px;border-radius:12px;gap:7px}.mode-picker span{font-size:12px}.mode-picker small{font-size:9px}.mode-picker input{width:16px;height:16px;min-height:16px}#mode-help{font-size:10px;line-height:1.4;margin:5px 0}.preparation-help summary{font-size:11px}.preparation-chips{display:none}.viewport{height:clamp(150px,25svh,235px)}.camera-card{border-radius:20px;padding:12px}.camera-heading{margin-bottom:7px}.camera-heading h2{font-size:14px}.capture-info #hint{font-size:11px;min-height:30px;margin-bottom:6px}.placeholder::after{height:115px;width:85px;left:calc(50% - 42px);top:calc(50% - 58px);box-shadow:0 0 0 13px #ffffff30}.series-panel{padding:14px;margin:15px 0}.series-panel .actions{display:grid;grid-template-columns:1fr 1fr}.series-panel button{font-size:12px;padding:10px}.color-card canvas{height:65px}.color-card strong,.color-card span{padding:0 10px}.color-card span{font-size:11px}body[data-phase=capturing] .viewport,body[data-phase=loading] .viewport,body[data-phase=ready] .viewport{height:clamp(240px,50svh,430px)}}
@media(max-width:340px){.intro h1{font-size:30px}.intro>p:last-child{font-size:11px}.edition{font-size:7px}.preparation-help summary{min-height:26px}.mode-picker small{font-size:8px}}

/* The main path has one instruction and one action; advanced tools stay available. */
.intro>p:last-child{max-width:600px;line-height:1.6}
.preparation{max-width:none;margin-bottom:20px}
.preparation-chips{display:flex;gap:10px;margin:0;flex-wrap:wrap}
.preparation-chips span{display:flex;align-items:center;gap:8px;border:0;background:transparent;padding:0;font-size:13px;color:var(--ink)}
.preparation-chips b{display:grid;place-items:center;width:24px;height:24px;border:1px solid #cdd8c9;border-radius:50%;font-size:11px;font-weight:500;color:var(--accent)}
.preparation-help{border:0;padding:0;margin:6px 0 0;max-width:660px}
.preparation-help summary{min-height:44px;font-size:12px;padding:12px 0}
.preparation-help ol{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 18px 10px 36px}
.camera-heading{align-items:center;flex-wrap:wrap;row-gap:6px}
.camera-heading h2{font-size:17px}
.capture-info{padding-top:14px}
.capture-info #hint{font-size:16px;line-height:1.5;font-weight:600;min-height:48px;margin:0 0 8px;color:var(--ink)}
#progress-text{font-size:13px!important;line-height:1.55;min-height:40px;color:var(--muted);margin-bottom:10px}
.capture-info progress{height:6px;margin:10px 0 18px}
.capture-actions{gap:8px;flex-wrap:wrap}
.capture-actions button{min-height:48px;font-size:14px;padding:12px 16px}
.capture-actions>.primary{flex:1 1 180px}
.capture-actions>.quiet{flex:0 1 auto}
.capture-actions #start{font-size:15px}
.scan-options{margin-top:14px}
.scan-options>summary{padding:13px 0;font-size:12px}
.detail-option{display:flex;gap:12px;align-items:flex-start;cursor:pointer;border:1px solid var(--line);border-radius:14px;padding:15px;margin:8px 0 15px;background:#f7f9f3}
.detail-option input{width:21px;height:21px;min-height:21px;flex:none;accent-color:var(--accent);margin:2px 0 0}
.detail-option strong{display:block;font-size:13px;line-height:1.5;font-weight:600}
.detail-option small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:5px}
.mode-picker{margin:8px 0}.mode-picker label{min-width:0;padding:12px}
.mode-picker small{font-size:11px;line-height:1.4}
#mode-help{font-size:12px;line-height:1.6}
.privacy-note{font-size:11px;line-height:1.5;align-items:flex-start;justify-content:flex-start;margin-top:13px}
.privacy-note svg{margin-top:1px}
.recovery{margin:14px 0 0;padding:20px;border:1px solid #d4deca;border-radius:16px;background:#f1f5ea}
.recovery h3{font-size:20px;line-height:1.35;margin-bottom:9px}
.recovery p:not(.eyebrow){font-size:14px;line-height:1.6;color:var(--muted)}
.recovery .actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:15px}
.recovery .actions button{width:100%;font-size:14px}
.summary-next{font-size:14px;line-height:1.65;margin:0 0 20px;color:var(--muted)}
.summary-next:empty{display:none}
.scan-summary{font-size:15px;font-weight:550;line-height:1.65;margin:16px 0 10px}
.measurement-hero .metric-kicker,.measurement-hero .metric-description,.measurement-hero>small,.measurement-hero .metric-unit{color:#49624f}
.measurement-hero>button{color:var(--accent);border-color:#9bb79d}
.metric-diagram{border-color:#8ca58a80}.metric-diagram::before,.metric-diagram::after{border-color:#8ca58a70}
.result-heading{flex-wrap:wrap;align-items:center;row-gap:8px}
.result-card,.result-card details,.face-review,.extended-result,.profile-panel{overflow-wrap:anywhere}
.result-card input,.result-card select,.result-card textarea{min-width:0;max-width:100%}
.face-review{margin-top:24px}.face-review-grid>*{min-width:0}
.segment-button{font-size:13px;line-height:1.45}.segment-button span{overflow-wrap:anywhere}
.color-card span{font-size:12px}.color-grid{min-width:0}
.series-panel>summary{font-size:14px}.series-panel .actions button{min-width:0}
#guide-checks,#color-status{display:none!important}
body[data-phase=idle] #progress,body[data-phase=cancelled] #progress,body[data-phase=error] #progress{display:none}
body[data-phase=loading] .scan-options,body[data-phase=ready] .scan-options,body[data-phase=capturing] .scan-options,body[data-phase=processing] .scan-options{display:none}
body[data-phase=loading] .side-card,body[data-phase=ready] .side-card,body[data-phase=capturing] .side-card,body[data-phase=processing] .side-card{opacity:.65}
body[data-phase=loading] .profile-panel,body[data-phase=ready] .profile-panel,body[data-phase=capturing] .profile-panel,body[data-phase=processing] .profile-panel{display:none}
body[data-phase=error] .intro,body[data-phase=error] .preparation,body[data-phase=error] .viewport,body[data-phase=error] .capture-info #hint,body[data-phase=error] #progress-text,body[data-phase=error] #start{display:none}
body[data-phase=error] .capture-actions{justify-content:flex-end}
body[data-phase=error] .recovery{margin-top:8px}
@media(min-width:761px){
  .topbar{padding-block:14px;min-height:82px}.journey{margin-bottom:26px}
  .intro{margin:12px 0 24px}.intro>p:last-child{max-width:none}
  .preparation{display:none}
  body[data-phase=idle] .viewport,body[data-phase=cancelled] .viewport{height:220px}
}
@media(max-width:760px){
  main{padding-inline:16px}.topbar{min-height:64px}.wordmark img{width:116px}.edition{font-size:9px;line-height:1.4}
  .journey{margin-bottom:17px}.journey ol{padding:10px 0}.journey li{font-size:11px}
  .intro h1{font-size:34px;line-height:1.13;letter-spacing:-1px}.intro>p:last-child{font-size:14px;line-height:1.5;margin-top:9px}
  .intro{margin-bottom:16px}.preparation{margin-bottom:8px}
  .preparation-chips{display:flex;column-gap:13px;row-gap:8px}.preparation-chips span{font-size:11px;gap:5px}.preparation-chips b{width:19px;height:19px;font-size:10px}
  .preparation-help summary{font-size:12px;min-height:44px}
  .camera-card{padding:14px;border-radius:20px}.camera-heading{margin-bottom:10px;gap:6px}.camera-heading h2{font-size:15px}.camera-heading .tag{font-size:9px}
  .viewport{height:clamp(165px,23svh,215px);border-radius:14px}.camera-off{font-size:10px}.placeholder-caption{font-size:11px}
  .capture-info{padding-top:12px}.capture-info #hint{font-size:15px;min-height:45px;margin-bottom:8px}
  #progress-text{font-size:12px!important;min-height:36px}.capture-info progress{margin-bottom:14px}
  .capture-actions{gap:6px}.capture-actions button{font-size:13px;padding-inline:12px}.capture-actions>.primary{flex-basis:150px}.capture-actions #start{font-size:14px}
  .scan-options>summary{font-size:12px;line-height:1.5;padding:12px 0}.scan-options{margin-top:12px}
  .detail-option{padding:12px}.detail-option strong{font-size:13px}.detail-option small{font-size:12px}
  .mode-picker label{padding:10px 9px;gap:7px}.mode-picker span{font-size:12px}.mode-picker small{font-size:10px}
  #mode-help{font-size:12px}.privacy-note{font-size:10px}
  .recovery{padding:15px}.recovery h3{font-size:18px}.recovery p:not(.eyebrow){font-size:13px}
  .result-card{padding:0}.result-heading h2{font-size:31px}.result-heading .tag{margin:0}.result-note{font-size:13px}
  .scan-summary{font-size:14px;padding:15px}.summary-next{font-size:13px}
  .measurement-hero{padding:21px}.metric-kicker{font-size:13px}.metric-description{font-size:12px}.measurement-hero>small{font-size:11px}
  .measurement small{font-size:11px}.measurement .name{font-size:12px}
  .face-review{padding:14px}.face-review-grid{gap:15px}.segment-button{font-size:12px}.segment-list{max-height:340px}
  .extended-result{padding:14px}.color-card span{font-size:12px}
  .series-panel{padding:14px}.series-panel .actions{grid-template-columns:minmax(0,1fr)}
  .profile-panel p,.profile-panel label{font-size:12px}.profile-panel input{min-height:20px}
  body[data-phase=capturing] .viewport,body[data-phase=loading] .viewport,body[data-phase=ready] .viewport{height:clamp(220px,42svh,365px)}
}
@media(max-width:340px){
  main{padding-inline:12px}.topbar{padding-inline:14px;gap:8px}.edition{font-size:8px;padding:6px}.wordmark img{width:103px}
  .intro h1{font-size:30px}.intro>p:last-child{font-size:13px}.journey li{font-size:10px}
  .camera-card{padding:12px}.camera-heading{align-items:flex-start}.camera-heading h2{font-size:14px}.camera-heading .tag{font-size:8px;padding:5px 7px}
  .capture-actions>.primary{flex-basis:130px}.capture-actions button{font-size:12px}.mode-picker small{font-size:10px}
  .color-grid{grid-template-columns:minmax(0,1fr)}.result-heading h2{font-size:29px}
}
@media(max-width:760px) and (max-height:700px){
  .topbar{min-height:54px;padding-block:8px}
  .journey{margin-bottom:10px}.journey ol{padding-block:6px}
  .intro{margin-bottom:10px}.intro>p:last-child{margin-top:6px}
  .preparation{margin-bottom:4px}.preparation-chips{row-gap:6px}.preparation-help{margin-top:0}
  body[data-phase=idle] .viewport,body[data-phase=cancelled] .viewport{height:150px}
  body[data-phase=capturing] .viewport,body[data-phase=loading] .viewport,body[data-phase=ready] .viewport{height:clamp(190px,36svh,245px)}
}
