:root{font-size:80%;--bw-blue: #0087b7;--bw-blue-dark: #006f96;--bw-blue-deep: #3f4f87;--bw-green: #00bfb6;--bw-green-dark: #007086;--bw-teal: #2ea4a8;--bw-magenta: #c7017f;--bw-orange: #ec6607;--bw-orange-light: #f7b058;--bw-black: #000000;--bw-gray-700: #7d7d7d;--bw-gray-300: #cccccc;--bw-gray-350: #d9d9d9;--bw-gray-200: #e6e6e6;--bw-gray-100: #f2f2f2;--bw-gray-50: #f8f8f8;--surface: #ffffff;--surface-muted: #f8f8f8;--ink: #111111;--muted: #5f666a;--line: rgba(0, 0, 0, .12);--line-strong: rgba(0, 0, 0, .2);--shadow: 0 18px 42px rgba(0, 0, 0, .1);--shadow-soft: 0 10px 24px rgba(0, 0, 0, .08);font-family:Roboto,Arial,sans-serif}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{background:linear-gradient(180deg,#ffffff 0%,var(--bw-gray-50) 42%,var(--bw-gray-100) 100%);color:var(--ink)}button,input{font:inherit}button{transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease,transform .16s ease}button:hover{transform:translateY(-1px)}button:focus-visible,input:focus-visible{outline:3px solid rgba(0,191,182,.38);outline-offset:2px}.page{max-width:1440px;margin:0 auto;padding:22px}.hero{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px;padding:14px 16px;border:1px solid var(--line);border-top:6px solid var(--bw-blue);border-radius:8px;background:var(--surface);box-shadow:var(--shadow-soft)}.hero-brand{min-width:0}.hero-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto}.language-toggle{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--bw-gray-350);border-radius:999px;background:var(--bw-gray-50)}.language-option{min-width:37px;min-height:32px;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--muted);cursor:pointer;font-size:.86rem;font-weight:800}.language-option-active{background:var(--bw-blue);color:#fff;box-shadow:0 8px 16px #0087b73d}.hero h1,.empty-state h2{margin:0;font-family:Roboto Condensed,Arial Narrow,Roboto,Arial,sans-serif;font-weight:700}.hero h1{color:var(--bw-black);font-size:3rem;line-height:.98}.product-logo{display:block;width:300px;max-width:100%;height:auto}.hero-copy{margin:6px 0 0;color:var(--muted)}.hero-subtitle{margin:8px 0 0;color:var(--bw-blue-deep);font-size:1.05rem;font-weight:700}.health{padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-size:.92rem;font-weight:700}.health:before{display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:var(--bw-orange);content:""}.health-ok:before{background:var(--bw-green)}.health-error{color:#8a004f}.health-error:before{background:var(--bw-magenta)}.onepage-grid{display:grid;grid-template-columns:360px minmax(0,1fr);gap:16px;align-items:stretch}.controls-card,.workspace-card{border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.controls-card{padding:16px}.controls-block+.controls-block{margin-top:14px}.block-label{display:block;margin-bottom:8px;color:var(--bw-black);font-size:.94rem;font-weight:800}.button-row{display:grid;gap:8px}.button{position:relative;display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:38px;border:1px solid transparent;border-radius:999px;padding:0 18px;cursor:pointer;text-align:center;font-size:1rem;font-weight:800}.button input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.button-soft{border-color:#a3a3a3;background:#fff;color:#001a24}.button-soft:hover{border-color:var(--bw-blue-dark);background:var(--bw-gray-50);color:var(--bw-blue-dark)}.button-primary{border-color:var(--bw-blue-dark);background:var(--bw-blue-dark);color:#fff;box-shadow:0 12px 24px #0087b742}.button-primary:hover{border-color:var(--bw-blue);background:var(--bw-blue)}.segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.segment{min-height:35px;border:1px solid var(--bw-gray-350);border-radius:999px;padding:0 13px;background:#fff;color:var(--muted);cursor:pointer;font-weight:800}.segment-active{border-color:var(--bw-green-dark);background:var(--bw-green-dark);color:#fff;box-shadow:0 10px 22px #00708633}.distance-field,.zoom-control,.advanced-field{display:flex;align-items:center;gap:8px;min-height:37px;border:1px solid var(--line);border-radius:999px;background:var(--bw-gray-50);padding:8px 10px}.distance-field span,.zoom-control strong,.advanced-field strong{color:var(--bw-blue-deep);font-weight:800;white-space:nowrap}.advanced-block{border-top:1px solid var(--line);padding-top:14px}.advanced-toggle{width:100%;border:1px solid var(--line);border-radius:999px;padding:10px 11px;background:var(--surface);color:var(--ink);cursor:pointer;font-weight:800;text-align:left}.advanced-toggle-open{border-color:#00bfb680;background:#00bfb61a;color:var(--bw-green-dark)}.advanced-panel{margin-top:11px}.advanced-field+.block-label{margin-top:11px}.advanced-field input,.zoom-control input{flex:1;min-width:0;accent-color:var(--bw-blue)}.distance-field input{width:80px;min-width:0;border:0;outline:none;background:transparent;color:var(--ink);font-weight:700}.error-banner{margin-top:13px;border-left:4px solid var(--bw-magenta);border-radius:8px;background:#c7017f14;color:#8a004f;padding:10px 11px;font-weight:700}.run-button{width:100%;margin-top:14px}.inline-disclaimer{margin-top:11px;border:1px solid var(--bw-gray-350);border-radius:24px;background:#fff;overflow:hidden}.inline-disclaimer-open{border-color:#ec660761;border-radius:8px;background:#f7b05824}.inline-disclaimer-toggle{display:flex;align-items:center;gap:8px;width:100%;min-height:37px;border:0;padding:0 11px;background:transparent;color:#8f3d00;font-size:.95rem;font-weight:800;text-align:left;cursor:pointer}.inline-disclaimer-chevron{width:7px;height:7px;margin-left:auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .16s ease}.inline-disclaimer-open .inline-disclaimer-chevron{transform:rotate(225deg)}.inline-disclaimer-content{border-top:1px solid rgba(236,102,7,.22);padding:10px 13px 11px;color:var(--ink)}.inline-disclaimer-content p{margin:0;font-size:.88rem;line-height:1.5}.inline-disclaimer-content p+p{margin-top:6px}.workspace-card{min-height:720px;padding:14px}.analysis-stage{height:100%;overflow:auto;overscroll-behavior:contain;border:1px solid var(--bw-gray-200);border-radius:8px;background:linear-gradient(135deg,rgba(0,135,183,.08) 0%,transparent 28%),linear-gradient(315deg,rgba(0,191,182,.1) 0%,transparent 24%),var(--bw-gray-50);padding:14px}.image-frame{position:relative;width:min(100%,860px);margin:0 auto;transform-origin:center top;touch-action:none;user-select:none;-webkit-user-select:none}.analysis-image{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:8px;box-shadow:0 18px 38px #0000002e;pointer-events:none}.selection-square{position:absolute;border:2px solid rgba(236,102,7,.98);border-radius:8px;background:#f7b05838;box-shadow:0 0 0 1px #ffffffc2 inset;cursor:grab;touch-action:none}.anchor-point{position:absolute;width:18px;height:18px;margin-left:-9px;margin-top:-9px;border:2px solid #ffffff;border-radius:50%;background:var(--bw-green-dark);box-shadow:0 10px 20px #00000047;cursor:grab;touch-action:none}.measure-line{position:absolute;height:3px;margin-top:-1.5px;transform-origin:left center;background:linear-gradient(90deg,var(--bw-green-dark),var(--bw-orange));box-shadow:0 0 0 1px #ffffff8a}.empty-state{display:grid;place-items:center;height:100%;padding:26px;text-align:center;color:var(--muted)}.empty-state h2{color:var(--bw-blue-deep);font-size:2rem}.empty-state p{max-width:520px;margin:10px auto 0;line-height:1.55}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:19px;background:#000000b8}.modal-card{width:min(92vw,900px);border:1px solid rgba(255,255,255,.18);border-radius:8px;background:#101316;padding:14px;box-shadow:0 28px 70px #0000006b}.modal-stage{position:relative;overflow:hidden;border-radius:8px;background:#000}.disclaimer-icon{position:absolute;top:11px;right:11px;z-index:3;display:inline-flex;align-items:center;gap:6px;min-height:35px;border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:0 10px;background:#000000b8;color:#fff;box-shadow:0 10px 24px #00000052}.disclaimer-icon-mark{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;background:var(--bw-orange);color:#fff;font-size:1.05rem;font-weight:800;line-height:1}.disclaimer-icon-label{color:#fff;font-size:.92rem;font-weight:800}.disclaimer-panel{position:absolute;right:11px;bottom:11px;z-index:2;width:min(420px,calc(100% - 22px));padding:13px 14px;border-left:4px solid var(--bw-orange);border-radius:8px;background:#fffffff7;color:var(--ink);box-shadow:0 18px 40px #00000047}.disclaimer-panel h3{margin:0 0 8px;color:#8f3d00;font-size:1rem}.disclaimer-panel p{margin:0;font-size:.92rem;line-height:1.45}.disclaimer-panel p+p{margin-top:8px}.camera-stage{overflow:hidden;border-radius:8px;background:#000}.camera-video{display:block;width:100%;max-height:70vh;object-fit:cover}.modal-image{display:block;width:100%;max-height:70vh;object-fit:contain;margin:0 auto}.scan-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#0000005c}.scan-bar{position:absolute;left:10%;right:10%;height:3px;background:linear-gradient(90deg,transparent,var(--bw-green),transparent);box-shadow:0 0 28px var(--bw-green);animation:scan 1.8s linear infinite}.scan-copy{padding:8px 11px;border:1px solid rgba(255,255,255,.24);border-radius:8px;color:#fff;background:#007086bd;font-size:.78rem;font-weight:800;text-transform:uppercase}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:11px}@keyframes scan{0%{top:10%}50%{top:88%}to{top:10%}}@media (max-width: 1024px){.onepage-grid{grid-template-columns:1fr}.workspace-card{min-height:560px}}@media (max-width: 720px){.page{padding:13px}.hero{flex-direction:column;align-items:stretch}.hero h1{font-size:2.5rem}.product-logo{width:260px}.hero-actions{width:100%;justify-content:space-between;margin-left:0}.segmented{grid-template-columns:1fr}.modal-actions{flex-wrap:wrap}}@media (max-width: 480px){.hero h1{font-size:2.15rem}.product-logo{width:240px}.hero-actions{align-items:stretch;flex-direction:column}.language-toggle{justify-content:center}.button{width:100%}}
