*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{margin:0;padding:0;min-height:100%;height:100%}body{background:#101827;color:#e7ecf3;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif}button{font-family:inherit}.app{max-width:520px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:10px;padding:14px 16px;background:#182236;position:sticky;top:0;z-index:50;border-bottom:1px solid #263149;padding-top:calc(14px + env(safe-area-inset-top))}.topbar .back{color:#9fb0c9;text-decoration:none;font-size:22px;line-height:1;padding:6px 11px;border-radius:10px;background:#1f2b44;border:none}.topbar h1{font-size:17px;margin:0;font-weight:700;flex:1}.topbar-logo{height:26px;width:auto}.dir-badge{font-size:12px;font-weight:800;padding:4px 11px;border-radius:999px;letter-spacing:.5px}.dir-in{background:#143d24;color:#4cd07d}.dir-out{background:#432020;color:#ff8f6b}.dir-look{background:#1f2b44;color:#9fb0c9}.main{padding:16px;flex:1;padding-bottom:calc(108px + env(safe-area-inset-bottom))}.search{width:100%;font-size:17px;padding:14px 16px;border-radius:14px;border:1px solid #2c3a58;background:#182236;color:#fff;outline:none}.search:focus{border-color:#4cafef}.hint{color:#7e8ca6;font-size:13px;margin:12px 2px;line-height:1.4}.card,.doc,.line{display:block;width:100%;text-align:left;background:#182236;border:1px solid #263149;border-radius:14px;padding:15px;margin-bottom:11px;color:#e7ecf3;cursor:pointer}.doc:active,.line:active{background:#1f2b44}.doc-title{font-size:16px;font-weight:700}.doc-sub{font-size:13px;color:#8fa0bb;margin-top:3px}.row{display:flex;align-items:center;justify-content:space-between;gap:8px}.badge{font-size:11px;font-weight:800;padding:3px 10px;border-radius:999px;white-space:nowrap}.badge-pending{background:#26324c;color:#93a4c0}.badge-working{background:#4a3a12;color:#ffc94d}.badge-completed{background:#143d24;color:#4cd07d}.track{height:8px;border-radius:999px;background:#26324c;margin-top:10px;overflow:hidden}.fill{height:100%;border-radius:999px;background:#4cafef;transition:width .25s}.fill.done{background:#38c172}.doc-head{background:#182236;border:1px solid #263149;border-radius:14px;padding:15px;margin-bottom:14px}.scan-count{text-align:center;margin:12px 0 4px}.scan-count .big{font-size:46px;font-weight:800;letter-spacing:1px}.scan-count .of{font-size:20px;color:#8fa0bb;font-weight:600}.scan-product{text-align:center;color:#b9c6db;font-size:15px;margin-bottom:12px}.camera{width:100%;border-radius:16px;overflow:hidden;background:#000;min-height:260px}.camera video{border-radius:16px;width:100%!important}.camera-msg{padding:26px 20px;text-align:center;color:#8fa0bb;font-size:14px}.btn{display:block;width:100%;text-align:center;font-size:17px;font-weight:700;border:none;border-radius:14px;padding:15px;margin-top:10px;cursor:pointer;color:#fff}.btn-primary{background:#2f80ed}.btn-dark{background:#26324c;color:#c9d6ea}.btn-warn{background:#7a4a12;color:#ffd08a}.btn-danger{background:#7f1d1d}.btn:active{filter:brightness(1.15)}.btn:disabled{opacity:.5}.manual-row{display:flex;gap:8px;margin-top:10px}.manual-row input{flex:1;font-size:16px;padding:13px 14px;border-radius:12px;border:1px solid #2c3a58;background:#182236;color:#fff;outline:none}.manual-row button{width:92px;border:none;border-radius:12px;background:#2f80ed;color:#fff;font-weight:700}.complete-banner{background:#14532d;color:#b7f7cf;text-align:center;font-weight:700;border-radius:14px;padding:16px;margin-top:12px;font-size:17px}.section-title{font-size:13px;color:#8fa0bb;font-weight:800;text-transform:uppercase;letter-spacing:.6px;margin:18px 2px 8px}.toast{position:fixed;left:50%;bottom:calc(28px + env(safe-area-inset-bottom));transform:translate(-50%);max-width:92%;background:#223052;color:#fff;padding:12px 18px;border-radius:12px;font-size:15px;z-index:200;box-shadow:0 6px 24px #00000073;text-align:center;opacity:0;transition:opacity .2s;pointer-events:none}.toast.show{opacity:1}.toast.ok{background:#14532d}.toast.err{background:#7f1d1d}.toast.warn{background:#78350f}.flash{position:fixed;top:0;right:0;bottom:0;left:0;z-index:150;pointer-events:none;opacity:0;transition:opacity .12s}.flash.green{background:#38c17259}.flash.red{background:#e0525266}.flash.show{opacity:1}.login-wrap{flex:1;display:flex;flex-direction:column;justify-content:center;padding:24px}.logo{text-align:center;margin-bottom:26px}.logo .brand{width:78%;max-width:300px;height:auto;margin:0 auto 14px;display:block}.logo h2{margin:8px 0 2px;font-size:22px}.logo p{margin:0;color:#8fa0bb;font-size:14px}.field{margin-bottom:12px}.field label{display:block;font-size:13px;color:#8fa0bb;margin-bottom:6px}.field input{width:100%;font-size:17px;padding:14px 16px;border-radius:14px;border:1px solid #2c3a58;background:#182236;color:#fff;outline:none}.field input:focus{border-color:#4cafef}.error-box{background:#7f1d1d;color:#fff;border-radius:12px;padding:12px 14px;margin-bottom:14px;font-size:14px}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:8px}.tile{border:none;border-radius:18px;padding:26px 16px;color:#fff;font-weight:800;font-size:18px;display:flex;flex-direction:column;align-items:center;gap:10px;cursor:pointer}.tile .ico{font-size:34px}.tile.in{background:linear-gradient(160deg,#1f7a44,#14532d)}.tile.out{background:linear-gradient(160deg,#2f6fd0,#1b3f7a)}.tile.look{background:linear-gradient(160deg,#3d4a68,#26324c)}.tile.full{grid-column:1 / -1;flex-direction:row;justify-content:center;padding:18px;font-size:16px}.userbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.userbar .u{font-size:15px}.userbar .u b{display:block;font-size:17px}.link-btn{background:none;border:none;color:#8fa0bb;font-size:14px;text-decoration:underline;cursor:pointer}.spinner{text-align:center;color:#8fa0bb;padding:30px}.result-card{background:#182236;border:1px solid #263149;border-radius:14px;padding:15px;margin-bottom:11px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:520px;z-index:120;display:flex;align-items:flex-end;background:#182236f5;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid #263149;padding:8px 4px calc(10px + env(safe-area-inset-bottom))}.bn-item{flex:1;background:none;border:none;color:#7e8ca6;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:700;padding:4px 0}.bn-item .ic{line-height:1;display:flex}.bn-item.active{color:#4cafef}.bn-center{flex:1.15;background:none;border:none;color:#9fb0c9;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;font-weight:800;margin-top:-34px;padding:0}.bn-center .big{width:64px;height:64px;border-radius:50%;background:linear-gradient(160deg,#2f80ed,#1b4fa0);display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 6px 20px #2f80ed80;border:4px solid #101827}.bn-center.active{color:#4cafef}.bn-center:active .big{filter:brightness(1.2)}.install-banner{position:sticky;top:0;z-index:130;display:flex;align-items:center;gap:10px;background:linear-gradient(90deg,#1b4fa0,#2f80ed);color:#fff;padding:10px 14px;padding-top:calc(10px + env(safe-area-inset-top));max-width:520px;margin:0 auto;font-size:13px}.install-banner .ib-ico{font-size:20px}.install-banner .ib-text{flex:1;line-height:1.3}.ib-btn{background:#fff;color:#1b4fa0;border:none;border-radius:999px;font-weight:800;font-size:13px;padding:8px 16px;cursor:pointer;white-space:nowrap}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;z-index:300;display:flex;align-items:flex-end;justify-content:center}.sheet{background:#182236;border-radius:20px 20px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom));width:100%;max-width:520px;border:1px solid #263149;border-bottom:none}.sheet h3{margin:0 0 12px}.sheet ol{margin:0 0 16px;padding-left:20px;line-height:1.9;color:#c9d6ea}.greet{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.greet .g-text{font-size:15px;color:#8fa0bb}.greet .g-text b{display:block;font-size:21px;color:#fff;margin-top:2px}.avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(160deg,#2f80ed,#1b4fa0);color:#fff;font-weight:800;font-size:19px;display:flex;align-items:center;justify-content:center}.avatar.xl{width:72px;height:72px;font-size:30px;margin:0 auto 12px}.cam-primer{display:flex;align-items:center;gap:12px;justify-content:space-between;background:#1b3a5c;border:1px solid #2b578a;border-radius:14px;padding:13px 15px;margin-bottom:14px}.cam-primer.denied{background:#432020;border-color:#6a3030}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.stat{background:#182236;border:1px solid #263149;border-radius:14px;padding:14px 15px}.stat .num{font-size:26px;font-weight:800}.stat .num.green{color:#4cd07d}.stat .num.blue{color:#4cafef}.stat .lbl{color:#8fa0bb;font-size:12px;margin-top:3px}.chart-card{padding:16px 14px 10px}.bars{display:flex;align-items:flex-end;justify-content:space-between;gap:6px}.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px}.bar-stack{width:100%;max-width:34px;display:flex;flex-direction:column;justify-content:flex-end}.bar-seg{width:100%;border-radius:4px 4px 0 0;min-height:0}.bar-seg.in{background:#38c172;border-radius:0 0 4px 4px}.bar-seg.out{background:#4cafef}.bar-seg.in:only-child,.bar-seg.out:first-child:last-child{border-radius:4px}.bar-day{font-size:11px;color:#7e8ca6;font-weight:700}.legend{display:flex;gap:16px;justify-content:center;margin-top:10px;color:#8fa0bb;font-size:12px}.legend .dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}.legend .dot.in{background:#38c172}.legend .dot.out{background:#4cafef}.badge-reject{background:#43202066;background:#432020;color:#ff8f8f}.activity-row{display:flex;align-items:center;gap:11px;background:#182236;border:1px solid #263149;border-radius:13px;padding:11px 13px;margin-bottom:9px}.activity-row .a-mid{flex:1;min-width:0}.activity-row .a-code{font-weight:700;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-row .a-time{color:#7e8ca6;font-size:11px;white-space:nowrap}.account-card{text-align:center}.acc-name{font-size:19px;font-weight:800;margin-top:2px}
