:root{--bg:#f4f6fb;--ink:#13223b;--muted:#74829a;--accent:#6559e8;--accent2:#8376ff;--border:#e6eaf2;--danger:#ef536b;--green:#13a685}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif}button,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.app{max-width:1160px;margin:0 auto;padding:0 24px}.topbar{display:flex;align-items:center;gap:11px;border-bottom:1px solid #e7ebf2;padding:22px 0}.brandmark{width:42px;height:42px;background:#6559e8;color:#fff;border-radius:13px;display:grid;place-items:center;font-size:27px;box-shadow:0 5px 18px #6659e83d}.brandtext strong{font-size:21px;letter-spacing:-.7px}.brandtext strong span{color:var(--accent)}.brandtext small{display:block;font-size:9px;letter-spacing:1.5px;color:#9ca8ba;margin-top:3px;font-weight:700}.lang{margin-left:auto;padding:9px 13px;background:white;border:1px solid var(--border);border-radius:8px;font-size:11px;letter-spacing:1px;font-weight:800;color:#596581}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#1aba94;margin-left:5px}.intro{padding:48px 0 28px}.eyebrow{font-size:11px;letter-spacing:1.65px;color:var(--accent);font-weight:800}.pulse{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--accent);margin-right:7px;box-shadow:0 0 0 4px #6559e819}h1{max-width:730px;font-size:clamp(35px,5.5vw,58px);line-height:1.09;letter-spacing:-2.5px;margin:15px 0 14px;font-weight:830}h1 em{font-style:normal;color:var(--accent)}.intro p{max-width:625px;color:#76839a;line-height:1.65;font-size:15px}.viewer-card,.results,.test-panel{background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 8px 30px #293e6710;overflow:hidden}.viewer-bar{display:flex;align-items:center;justify-content:space-between;padding:16px 20px}.viewertitle{font-size:11px;color:#67748c;font-weight:800;letter-spacing:1.35px}.cameraicon{font-size:16px;color:var(--accent);margin-right:6px}.status{display:flex;gap:7px;align-items:center;padding:6px 10px;border-radius:100px;background:#f0f2f7;color:#6e7990;font-size:11px;font-weight:750}.status-dot{width:7px;height:7px;background:#9aa5b8;border-radius:50%}.status.active{color:#078e70;background:#e6fbf4}.status.active .status-dot{background:#11bb89;box-shadow:0 0 0 3px #11bb8924}.status.error{color:#bf4156;background:#fff0f3}.status.error .status-dot{background:#e95067}.stage{position:relative;width:100%;aspect-ratio:16/9;background:#111d32;overflow:hidden;min-height:270px;max-height:590px}video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}#overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:auto}.empty{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;color:#fff;padding:20px;background:radial-gradient(ellipse at center,#243653,#111d32)}.empty-icon{width:76px;height:76px;border:1px solid #526785;border-radius:18px;display:grid;place-items:center;color:#a5b8ff;font-size:42px;margin-bottom:16px}.empty h2{font-size:22px;letter-spacing:-.5px;margin:4px 0}.empty p{max-width:300px;color:#97a8be;font-size:13px;line-height:1.6}.empty-tip{font-size:10px;color:#bac6ff;background:#ffffff10;padding:11px 14px;border-radius:9px;margin-top:9px}.frame-guides{position:absolute;inset:12% 9%;pointer-events:none}.frame-guides i{position:absolute;width:25px;height:25px;border-color:#a1a5ff;border-style:solid}.frame-guides i:nth-child(1){top:0;left:0;border-width:2px 0 0 2px}.frame-guides i:nth-child(2){top:0;right:0;border-width:2px 2px 0 0}.frame-guides i:nth-child(3){bottom:0;left:0;border-width:0 0 2px 2px}.frame-guides i:nth-child(4){bottom:0;right:0;border-width:0 2px 2px 0}.scan-indicator{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);padding:9px 15px;background:#17253ce0;color:#fff;border:1px solid #ffffff2a;border-radius:30px;font-size:11px;white-space:nowrap}.viewer-actions{display:flex;gap:10px;padding:18px 20px 12px}.primary,.secondary{border-radius:10px;border:1px solid var(--border);padding:13px 18px;font-size:13px;font-weight:800}.primary{background:var(--accent);color:white;border-color:var(--accent);box-shadow:0 4px 10px #6659e82a;flex:1}.primary.stop{background:#253149;border-color:#253149}.secondary{color:#53617b;background:#fff}.secondary:hover:not(:disabled){background:#f6f6fd;border-color:#cac8f7}.viewer-bottom{display:flex;justify-content:space-between;gap:12px;padding:0 20px 15px;font-size:11px;color:#96a1b3}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:18px 0}.stat{background:#fff;border:1px solid var(--border);border-radius:15px;padding:19px 21px;min-height:133px}.stat-label{display:block;color:#8b97aa;font-size:10px;letter-spacing:1px;font-weight:800}.stat strong{display:block;font-size:34px;letter-spacing:-1px;margin:10px 0 0}.stat strong.mode{color:var(--green);font-size:24px;margin-top:15px}.stat small{color:#9aa5b8;font-size:11px}.results,.test-panel{padding:25px;margin:20px 0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.section-head h2{font-size:22px;letter-spacing:-.7px;margin:7px 0 0}.pill{background:#f1f2f7;border-radius:24px;padding:8px 11px;font-size:11px;color:#657187;font-weight:800;white-space:nowrap}.no-results{text-align:center;padding:30px 10px 25px}.checkicon{width:55px;height:55px;margin:0 auto 14px;border-radius:100%;background:#e6f9f1;color:#13ae84;font-size:29px;display:grid;place-items:center}.no-results strong{font-size:15px}.no-results p{font-size:12px;line-height:1.7;color:#8b98aa;max-width:400px;margin:10px auto}.error-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid #f4e4e8;border-radius:12px;padding:15px;margin:9px 0;background:#fffafb}.error-row .word{color:#d9415b;font-size:17px;font-weight:800;text-decoration:underline wavy #f2657a;text-underline-offset:5px}.error-row .meta{color:#96a0b1;font-size:11px;margin-top:6px}.error-row .fixes{font-size:12px;color:#53617b;text-align:right}.suggestion{display:inline-block;color:#078d6e;background:#e6f7f0;padding:6px 9px;border-radius:7px;font-weight:700;margin:3px 0 3px 5px}.hint{color:#8b98aa;font-size:12px;line-height:1.5}.test-panel textarea{width:100%;resize:vertical;border:1px solid #dbe1ec;background:#f9faff;padding:13px 14px;border-radius:9px;color:var(--ink);outline:none;line-height:1.5;margin:7px 0}.test-panel textarea:focus{border-color:var(--accent)}.test-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.test-button{background:#f0eefe;color:var(--accent);border-color:#e7e2ff}.test-actions span{font-size:12px;color:#738199}.test-output{margin-top:14px;line-height:2.3;padding:12px;border:1px solid var(--border);border-radius:10px}.test-output mark{background:#ffe6e9;color:#bd2c48;padding:3px;border-bottom:2px solid #ef536b;border-radius:4px;cursor:help}.tips{background:#eaeafd;padding:20px 23px;border-radius:15px;margin:20px 0 34px}.tips strong{display:block;font-size:13px}.tip-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-top:12px;color:#6469a0;font-size:12px}footer{border-top:1px solid #e0e5ee;text-align:center;padding:24px 0 36px;color:#a1acba;font-size:11px;line-height:1.9}@media(max-width:650px){.app{padding:0 13px}.topbar{padding:15px 0}.brandtext strong{font-size:18px}.brandtext small{font-size:8px}.lang{font-size:9px;padding:7px}.intro{padding:32px 5px 19px}h1{letter-spacing:-1.5px}.intro p{font-size:13px}.viewer-bar{padding:13px}.stage{aspect-ratio:3/4;min-height:350px}.viewer-actions{padding:13px;gap:6px}.primary,.secondary{padding:12px 10px;font-size:11px}.secondary span{display:none}.viewer-bottom{padding:0 13px 13px}.stats{gap:7px;margin:10px 0}.stat{padding:14px 10px;min-height:120px}.stat-label{font-size:8px;letter-spacing:.35px}.stat strong{font-size:28px}.stat strong.mode{font-size:21px}.stat small{font-size:10px}.results,.test-panel{padding:17px;margin:12px 0}.section-head h2{font-size:19px}.tip-grid{grid-template-columns:repeat(2,1fr)}.error-row{align-items:start;flex-direction:column}.error-row .fixes{text-align:left}.suggestion{margin-left:0;margin-right:5px}}
