@font-face{font-family:Poppins;src:url(/assets/fonts/Poppins.ttf);font-weight:400;font-display:swap}@font-face{font-family:Poppins;src:url(/assets/fonts/PoppinsMedium.ttf);font-weight:500;font-display:swap}@font-face{font-family:Poppins;src:url(/assets/fonts/PoppinsSemiBold.ttf);font-weight:600;font-display:swap}@font-face{font-family:Poppins;src:url(/assets/fonts/PoppinsBold.ttf);font-weight:700 800;font-display:swap}:root{--primary: #362FD9;--light: #E0E4F5;--login: #133AB2;--dark: #1E1D2E;--muted: #8F9098;--border: #D6D6D6;--bg: #FFFFFF;--danger: #FC0212;--green: #219653;--orange: #F29746;--red: #ED6F6E;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;height:100%}body{font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:14px;color:var(--dark);background:var(--bg);overscroll-behavior-y:none}#app{max-width:560px;margin:0 auto;min-height:100%;position:relative;background:var(--bg)}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none;padding:0}input,select,textarea{width:100%;border:1px solid #E6EAEE;border-radius:8px;padding:12px;background:#fff;font-size:16px}textarea{min-height:88px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid var(--primary);outline-offset:-1px}h1,h2,h3,p{margin:0}.login{min-height:100vh;min-height:100dvh;background:var(--login) url(/assets/bg.svg) left top / auto 100% no-repeat;color:#fff;padding:calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));display:flex;flex-direction:column}.login .logo{height:60px;align-self:flex-start}.login h1{font-size:24px;line-height:1.5;font-weight:600;width:80%;margin:auto 0 32px;padding-top:48px}.login form{display:flex;flex-direction:column;gap:20px;margin-bottom:auto}.login input{border:0;height:56px;color:var(--dark);caret-color:var(--dark)}.login .pw{position:relative}.login .pw button{position:absolute;right:6px;top:6px;height:44px;padding:0 12px;color:var(--muted);font-size:13px}.login .link{color:#fff;font-weight:500;text-align:left;padding:0 10px}.login .submit{height:58px;border-radius:8px;background:#fff;color:#000;font-size:16px;font-weight:500;margin-top:20px}.login .version{text-align:center;margin-top:40px}.login .install{display:block;margin-top:16px;font-size:13px;font-weight:500;text-align:center;color:#fff;text-decoration:underline;padding:8px}.install-guide{display:grid;gap:12px}.seg{display:flex;gap:6px;background:var(--light);border-radius:10px;padding:4px}.seg button{flex:1;padding:9px 4px;border-radius:7px;font-size:12px;font-weight:500;color:var(--dark)}.seg button.on{background:#fff;color:var(--primary);box-shadow:0 1px 3px #0000001f}.install-steps{list-style:none;margin:0;padding:0;display:grid;gap:12px}.install-steps li{display:grid;grid-template-columns:132px 1fr;gap:14px;align-items:center}.install-steps p{margin:6px 0 0;line-height:1.5;font-size:13px}.install-steps b{color:var(--primary)}.phone-art{width:132px;height:auto;display:block}.page{min-height:100vh;min-height:100dvh;padding-bottom:calc(24px + var(--safe-bottom))}.page.with-nav{padding-bottom:calc(76px + var(--safe-bottom))}.bar{position:sticky;top:0;z-index:5;background:var(--primary);color:#fff;display:flex;align-items:center;gap:8px;padding:calc(12px + var(--safe-top)) 12px 12px}.bar h2{font-size:16px;font-weight:600;flex:1;text-align:center;margin-right:40px}.bar .back{width:40px;height:40px;display:grid;place-items:center}.content{padding:20px;display:flex;flex-direction:column;gap:12px}.section-title{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600;margin-top:10px}.section-title button{font-size:12px;font-weight:600;color:#458af2;padding:8px 0 8px 12px}.empty{text-align:center;color:var(--muted);padding:32px 12px}.hero{background:var(--primary);color:#fff;padding:calc(20px + var(--safe-top)) 15px 60px;display:flex;justify-content:space-between;align-items:center}.hero .me{display:flex;align-items:center;gap:7px;min-width:0}.hero img{width:40px;height:40px;border-radius:50%;background:#fff;object-fit:cover;flex:none}.hero .name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hero .code{font-size:12px;margin-top:8px}.hero .icon-btn{width:40px;height:40px;display:grid;place-items:center;color:#fff;flex:none}.quick{margin:-44px 20px 0;position:relative;background:#fff;border-radius:16px;box-shadow:0 6px 8px #ededed80,0 0 0 1px #f1f1f1;padding:16px 10px;display:flex;justify-content:space-around}.quick button{display:flex;flex-direction:column;align-items:center;gap:12px;font-size:12px;font-weight:600;color:#0000008a;min-width:80px}.quick .ic{background:var(--light);color:var(--primary);border-radius:8px;padding:8px;display:grid}.card{border:1px solid var(--border);border-radius:12px;padding:12px;background:#fff;display:block;width:100%;text-align:left}.card .row{display:flex;justify-content:space-between;align-items:center;gap:8px}.card .title{font-weight:500;line-height:1.5;margin-top:8px}.card .sub{color:var(--muted);font-size:12px;margin-top:4px}.badge{color:#fff;font-size:11px;border-radius:10px;padding:3px 8px;white-space:nowrap}.badge.wait{background:var(--orange)}.badge.rejected{background:var(--red)}.badge.approved{background:var(--green)}.badge.info{background:var(--primary)}.badge.gray{background:var(--muted)}.store{display:flex;gap:12px;align-items:flex-start}.store .ic{color:var(--primary);flex:none}.dot-line{display:flex;align-items:center;gap:12px;padding-left:30px;margin-top:6px}.dot-line:before{content:"";width:10px;height:10px;border-radius:50%;background:var(--primary);flex:none}.btn{display:block;width:100%;height:50px;border-radius:8px;background:var(--primary);color:#fff;font-weight:500;font-size:15px}.btn.outline{background:#fff;color:#000;border:1px solid rgba(0,0,0,.54);border-radius:12px;height:44px}.btn:disabled{opacity:.5}.tenant{width:100%;height:72px;padding:16px;border-radius:12px;background:var(--primary);color:#fff;font-size:20px;font-weight:800;display:flex;align-items:center;justify-content:space-between;text-align:left}.field label,.q-name{display:block;font-weight:600;margin-bottom:8px}.q{border:1px solid var(--border);border-radius:12px;padding:12px}.q-desc{color:var(--muted);font-size:12px;margin:-4px 0 8px}.req{color:var(--danger)}.q.invalid{border-color:var(--danger)}.sec-title{font-weight:700;font-size:15px;color:var(--primary);margin-top:8px}.choice{display:flex;align-items:center;gap:10px;padding:8px 0}.choice input{width:22px;height:22px;flex:none;padding:0;accent-color:var(--primary)}.range{display:flex;flex-wrap:wrap;gap:8px}.range label{border:1px solid var(--border);border-radius:8px;min-width:44px;height:44px;display:grid;place-items:center}.range input{position:absolute;opacity:0;width:0;height:0}.range input:checked+span{color:var(--primary);font-weight:700}.range label:has(input:checked){border-color:var(--primary);background:var(--light)}.grid{overflow-x:auto}.grid table{border-collapse:collapse;width:100%}.grid th,.grid td{border:1px solid #E6EAEE;padding:8px;text-align:center;font-size:12px}.grid td:first-child{text-align:left}.grid input{width:22px;height:22px;padding:0}.photos{display:flex;flex-wrap:wrap;gap:8px}.photos .ph{position:relative;width:84px;height:84px;border-radius:8px;overflow:hidden;background:#f3f3f3}.photos img{width:100%;height:100%;object-fit:cover}.photos .rm{position:absolute;top:2px;right:2px;width:24px;height:24px;border-radius:50%;background:#0009;color:#fff;line-height:24px}.photos .add{width:84px;height:84px;border:1px dashed var(--primary);border-radius:8px;color:var(--primary);display:grid;place-items:center;font-size:12px;text-align:center}.note{background:#fff7e6;border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.5}.kv{display:flex;justify-content:space-between;gap:12px;padding:6px 0}.kv span:first-child{color:var(--muted)}.kv span:last-child{text-align:right;font-weight:500}.filters{display:flex;gap:8px;align-items:end}.filters .field{flex:1}.filters label{font-size:12px;font-weight:500}.nav{position:fixed;left:0;right:0;bottom:0;max-width:560px;margin:0 auto;background:#fff;border-top:1px solid #eee;display:flex;padding-bottom:var(--safe-bottom);z-index:6}.nav button{flex:1;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;color:var(--muted)}.nav button.on{color:var(--primary)}#toast{position:fixed;left:16px;right:16px;bottom:calc(76px + var(--safe-bottom));max-width:528px;margin:0 auto;z-index:30;display:none;padding:12px 14px;border-radius:10px;color:#fff;font-weight:500;box-shadow:0 6px 18px #0000002e}#toast.show{display:block}#toast.ok{background:#198754}#toast.err{background:#e4070c}#toast.warn{background:#f29746}#loading{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#00000073;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}#loading[hidden]{display:none}.spinner{width:36px;height:36px;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation-duration:2.4s}}.grp{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}.grp>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:14px 12px;font-weight:600;cursor:pointer}.grp>summary::-webkit-details-marker{display:none}.grp>summary:before{content:"›";margin-right:10px;color:var(--muted);transition:transform .15s;display:inline-block}.grp[open]>summary:before{transform:rotate(90deg)}.grp>summary span:first-child{flex:1}.grp .cnt{font-size:12px;font-weight:500;color:var(--muted);background:#f1f2f6;border-radius:10px;padding:2px 8px}.grp.has .cnt{background:var(--light);color:var(--primary)}.rowq{display:flex;align-items:center;gap:10px;padding:8px 12px;border-top:1px solid #EEF0F4}.rowq>span{flex:1;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.rowq input{width:84px;flex:none;text-align:right;padding:9px 10px}.rowq.invalid input{border-color:var(--danger)}.rowq[hidden],.grp[hidden]{display:none}.sticky{position:sticky;bottom:0;background:#fff;padding:10px 0 calc(10px + var(--safe-bottom));display:grid;gap:8px;border-top:1px solid #EEF0F4;margin-top:4px}a{color:inherit;text-decoration:none}.nav{background:#eee;border-top:0}.nav button{color:#9e9e9e;background:none}.nav .gap{flex:0 0 84px}.fab{position:fixed;left:50%;bottom:calc(26px + var(--safe-bottom));transform:translate(-50%);width:56px;height:56px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;z-index:7;box-shadow:0 0 0 8px #fff,0 6px 14px #362fd959}.sheet-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:15;display:flex;align-items:flex-end;justify-content:center}.sheet{background:#fff;width:100%;max-width:560px;border-radius:20px 20px 0 0;padding:10px 0 calc(24px + var(--safe-bottom));max-height:86vh;overflow-y:auto}.sheet .grab{width:44px;height:4px;border-radius:2px;background:#d6d6d6;margin:4px auto 6px}.sheet h3{font-size:14px;font-weight:600;padding:14px 24px 10px}.features{display:flex;flex-wrap:wrap;gap:10px;padding:0 20px}.feature{width:calc(50% - 5px);border:1px solid #EDEDED;border-radius:12px;padding:12px;display:flex;align-items:flex-start;gap:8px;background:#fff;text-align:left}.feature .ic{width:26px;height:26px;border-radius:6px;display:grid;place-items:center;flex:none}.feature span:last-child{font-size:12px;font-weight:500;color:#252525;padding-top:4px}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:16;display:grid;place-items:center;padding:20px}.modal{background:#fff;border-radius:16px;width:100%;max-width:480px;max-height:90vh;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:12px}.modal h3{font-size:16px;font-weight:600;text-align:center}.modal .acts{display:flex;gap:10px;margin-top:4px}.modal .acts .btn{height:46px}.btn.ghost{background:#fff;color:var(--primary);border:1px solid var(--primary)}.btn.danger{background:#fff;color:var(--red);border:1px solid var(--red)}.btn.small{height:36px;font-size:13px;width:auto;padding:0 14px;border-radius:8px}.days{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none}.days::-webkit-scrollbar{display:none}.day{flex:none;width:56px;border:1px solid var(--border);border-radius:12px;padding:8px 0;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;color:var(--muted)}.day b{font-size:18px;font-weight:600;color:var(--dark)}.day.on{background:var(--primary);border-color:var(--primary);color:#fff}.day.on b{color:#fff}.profile-top{background:var(--primary);color:#fff;padding:calc(28px + var(--safe-top)) 20px 28px;display:flex;flex-direction:column;align-items:center;gap:8px}.profile-top img{width:84px;height:84px;border-radius:50%;background:#fff;object-fit:cover}.profile-top .n{font-size:16px;font-weight:600}.menu-item{display:flex;align-items:center;gap:12px;width:100%;padding:14px 4px;border-bottom:1px solid #F1F1F1;font-weight:500;text-align:left}.menu-item .ic{width:34px;height:34px;border-radius:10px;background:var(--light);color:var(--primary);display:grid;place-items:center;flex:none}.menu-item .arrow{margin-left:auto;color:var(--muted);display:grid}.card .acts{display:flex;gap:8px;margin-top:12px}.card .acts .btn{flex:1}.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.filters .field,.row2 .field{min-width:0}.filters input,.row2 input{min-width:0;padding-left:8px;padding-right:8px}.cam{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#000;display:flex;flex-direction:column}.cam video{flex:1;min-height:0;width:100%;object-fit:contain;background:#000}.cam-error{flex:1;display:grid;place-items:center;color:#fff;text-align:center;padding:32px;line-height:1.6}.cam-bar{display:flex;align-items:center;justify-content:space-between;padding:16px 24px calc(20px + var(--safe-bottom));background:#000}.cam-side{color:#fff;font-size:15px;min-width:96px;height:44px}.cam-side:disabled{opacity:.4}.cam .shoot{width:72px;height:72px;border-radius:50%;background:#fff;border:5px solid #000;box-shadow:0 0 0 4px #fff}.cam .shoot:disabled{opacity:.4}button.add{background:none}
