:root{--ink:#142d28;--muted:#65776f;--green:#136d52;--line:#e1e8e3;--paper:#f5f7f5;--soft:#eaf3ed}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #46a58c;outline-offset:4px}button[hidden],[hidden]{display:none!important}.topbar{height:85px;max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--line)}.brand{text-decoration:none;font-size:25px;letter-spacing:-1.4px;font-weight:750;color:var(--ink)}.brand>span:last-child{font-weight:350}.brand-icon{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--green);color:white;font-size:23px;margin-right:9px}.test-tag{font-size:10px;font-weight:700;letter-spacing:1.6px;border:1px solid #cad8cf;border-radius:5px;padding:5px 8px}main{max-width:1120px;margin:auto;padding:46px 32px 30px}.intro{margin-bottom:32px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:750;color:var(--green)}.dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:7px;vertical-align:middle}h1{font-size:46px;line-height:1.14;letter-spacing:-2px;font-weight:650;margin:15px 0}h1 span{color:#6d8378;font-weight:400}.intro>p{color:var(--muted);max-width:460px;margin:0}.workspace{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;align-items:start}.capture-card,.analysis-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:0 7px 28px #142d2804}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;font-size:13px;font-weight:650;gap:8px}.step{font-size:10px;color:#7a8f83;background:#f0f4f0;border-radius:5px;padding:4px 6px;margin-right:7px}.text-button{border:0;background:transparent;color:var(--green);font-size:12px;padding:7px 2px}.viewfinder{position:relative;aspect-ratio:1/1.06;overflow:hidden;border-radius:13px;background:#eef2ed;display:grid;place-items:center}.viewfinder video,.viewfinder>img{position:absolute;width:100%;height:100%;object-fit:contain;background:#14201c}.mirror{transform:scaleX(-1)}.empty{text-align:center;padding:20px}.face-mark{width:90px;margin:auto auto 22px}.face-mark svg{fill:none;stroke:#8caa97;stroke-width:1.2}.empty h2{font-size:16px;font-weight:550;letter-spacing:-.3px}.empty p{font-size:12px;color:var(--muted)}.guide{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.face-oval{width:55%;height:68%;border:1.5px dashed #dcf7df;border-radius:48%;box-shadow:0 0 0 500px #0002}.guide>span{position:absolute;bottom:18px;font-size:10px;color:white;background:#12251dc4;padding:6px 10px;border-radius:20px}.media-label{position:absolute;top:14px;left:14px;color:white;background:#12251dc4;backdrop-filter:blur(5px);border-radius:5px;padding:5px 9px;font-size:9px;letter-spacing:1px}.switch{position:absolute;right:13px;top:12px;background:#12251da6;color:white;border:1px solid #ffffff50;border-radius:50%;width:34px;height:34px;font-size:22px}.camera-actions{display:flex;gap:9px;margin-top:15px;flex-wrap:wrap}.button{border-radius:10px;padding:12px 16px;border:1px solid transparent;font-size:13px;font-weight:650;min-height:46px;display:flex;align-items:center;justify-content:center;gap:9px}.primary{background:var(--green);color:white;flex:1}.secondary{background:white;color:var(--ink);border-color:#dce4de;flex:1}.soft{background:var(--soft);color:var(--green);flex:1}.privacy{display:flex;gap:10px;margin-top:17px;align-items:center;color:var(--muted)}.privacy>span{font-size:23px;color:#81988a}.privacy p{font-size:10px;line-height:1.7;margin:0}.connection{border:0;background:transparent;padding:4px 0;font-size:9px;color:#7a8b80;white-space:nowrap}.connection.ready{color:var(--green)}.connection.ready:before{content:'● ';font-size:8px}.modes{border:0;padding:4px;margin:0;background:#f0f4f1;border-radius:10px;display:flex;gap:3px}.modes label{flex:1;position:relative;text-align:center;cursor:pointer}.modes input{position:absolute;opacity:0}.modes label span{font-size:11px;font-weight:600;display:block;border-radius:7px;padding:10px 3px}.modes input:checked+span{background:white;box-shadow:0 2px 5px #1731230a}.modes input:focus-visible+span{outline:2px solid var(--green)}.mode-help{font-size:11px;color:var(--muted);min-height:34px;margin:13px 0}.result{border-top:1px solid var(--line);padding-top:18px;min-height:238px}.result-placeholder{text-align:center;padding:27px 0 30px}.result-icon{font-size:30px;color:#8ba495}.result-placeholder h2{font-size:15px;font-weight:500;margin:12px 0 5px}.result-placeholder p{color:var(--muted);font-size:11px}.analyze{width:100%;background:var(--green);color:white;justify-content:space-between;margin-top:15px}.analyze>span{font-size:19px}.disclaimer{font-size:10px;color:#7a8b80;margin:15px 0 0;line-height:1.8}.tips{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;margin-top:33px}.tips>div{padding-left:15px;border-left:1px solid #d6e0d9}.tips span{font-size:9px;color:#899b8e;letter-spacing:1px}.tips h3{font-size:13px;font-weight:600;margin:7px 0 4px}.tips p{font-size:11px;color:var(--muted);margin:0}footer{max-width:1056px;margin:15px auto 0;padding:22px 0 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;color:#8b9b91;font-size:9px;letter-spacing:.4px}.result-heading{display:flex;justify-content:space-between;gap:8px;align-items:start}.result-heading h2{font-size:20px;font-weight:600;letter-spacing:-.6px;margin:0 0 3px}.result-heading p{font-size:11px;color:var(--muted);margin:0}.badge{font-size:10px;border-radius:6px;padding:4px 7px;background:#e9f4ed;color:var(--green);white-space:nowrap}.badge.warn{background:#fff1dd;color:#9d6020}.flag-list{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;margin:18px 0}.flag{font-size:11px;display:flex;justify-content:space-between;border-bottom:1px solid #edf1ed;padding-bottom:5px;color:var(--muted)}.flag strong{font-size:10px;font-weight:550;color:var(--green)}.flag strong.warn{color:#ad6b24}.timing{font-size:10px;color:var(--muted);display:flex;justify-content:space-between}.raw{font-size:10px;margin-top:13px;color:var(--muted)}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;background:#f4f7f3;padding:10px;border-radius:6px}.error{padding:10px 12px;color:#954c22;background:#fff2e8;font-size:12px;border-radius:8px;margin:10px 0}.busy-indicator{width:26px;height:26px;border:2px solid #e1eae3;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite;margin:10px auto 20px}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:1px solid var(--line);border-radius:20px;padding:30px;max-width:400px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 20px 100px #152a2440}dialog::backdrop{background:#152a2455;backdrop-filter:blur(4px)}dialog h2{font-size:24px;letter-spacing:-.8px;margin:12px 0}dialog p{font-size:13px;color:var(--muted)}dialog label{font-size:12px;display:block;margin:20px 0 7px}dialog input{border:1px solid #cfdcd3;border-radius:9px;width:100%;padding:12px;color:var(--ink);background:#fafcf9}#close-login{display:block;margin:9px auto 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:720px){.topbar{height:68px;padding:0 20px}.brand{font-size:23px}.test-tag{font-size:8px;letter-spacing:1px}main{padding:28px 16px 24px}h1{font-size:34px;letter-spacing:-1.5px}.intro{padding:0 4px;margin-bottom:25px}.intro>p{font-size:13px;max-width:310px}.workspace{grid-template-columns:1fr;gap:16px}.capture-card,.analysis-card{padding:17px;border-radius:16px}.viewfinder{aspect-ratio:1/1.05;max-height:450px}.card-head{margin-bottom:14px}.result{min-height:180px}.result-placeholder{padding:12px 0 20px}.tips{gap:13px;margin-top:25px}.tips>div{padding-left:9px}.tips span{font-size:7px;letter-spacing:.3px}.tips h3{font-size:11px}.tips p{font-size:10px}footer{margin:0 20px;padding:18px 0 25px;flex-direction:column;gap:5px}.button{min-height:48px}.analyze{min-height:51px}}@media(prefers-reduced-motion:reduce){.busy-indicator{animation:none}}

/* Three independent tasks. */
.modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.modes label{min-width:0}.branch-result{padding:16px 0;border-bottom:1px solid #e3e8e4}.branch-result h3{margin:0 0 8px}.branch-result p{overflow-wrap:anywhere;font-size:14px;line-height:1.5}.branch-result .reason{color:#8b471f}
