*{box-sizing:border-box}
html,body{margin:0;background:#F3F4F6;color:#1B2A41;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;-webkit-text-size-adjust:100%}
body{min-height:100vh}
button,input,select,textarea{font-family:inherit;font-size:16px}
button{cursor:pointer}
a{color:inherit}
.wrap{max-width:520px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}
.top{background:#1B2A41;color:#fff;padding:calc(14px + env(safe-area-inset-top)) 18px 16px;display:flex;flex-direction:column;gap:10px}
.toprow{display:flex;justify-content:space-between;align-items:center;gap:8px}
.back{background:none;border:0;color:#C9D3E3;font-size:16px;padding:8px 0}
.brand{font-size:13px;font-weight:700;letter-spacing:.08em}
.pill{font-size:13px;background:#2E4263;padding:4px 10px;border-radius:999px;color:#fff}
.lang{display:flex;background:#2E4263;border-radius:999px;padding:2px}
.lang button{height:30px;padding:0 11px;border:0;border-radius:999px;background:transparent;color:#fff;font-size:13px;font-weight:600}
.lang button.on{background:#fff;color:#1B2A41}
h1{margin:0;font-size:25px;font-weight:700}
.sub{font-size:15px;color:#C9D3E3}
.body{padding:16px 18px;display:flex;flex-direction:column;gap:12px;flex:1}
.card{background:#fff;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.tile{background:#fff;border:0;border-radius:16px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:118px;text-align:left;color:#1B2A41;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.tile b{font-size:17px}.tile span{font-size:13px;color:#4B5563}
.btn{height:54px;border:0;border-radius:12px;background:#1B2A41;color:#fff;font-size:17px;font-weight:600;width:100%}
.btn:disabled{opacity:.5}
.btn.light{background:#fff;color:#1B2A41;border:1.5px solid #1B2A41;height:48px;font-size:15px}
.btn.dash{background:transparent;color:#1B2A41;border:1.5px dashed #1B2A41;height:48px;font-size:14px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{height:42px;padding:0 14px;border-radius:999px;border:1.5px solid #CBD2DC;background:#fff;color:#1B2A41;font-size:15px}
.chip.on{background:#1B2A41;border-color:#1B2A41;color:#fff;font-weight:600}
.lbl{font-size:13px;font-weight:600;color:#4B5563}
select,input[type=text],input[type=number],input[type=password],input[type=date],input[inputmode]{height:50px;border:1.5px solid #CBD2DC;border-radius:10px;padding:0 12px;background:#fff;color:#1B2A41;width:100%}
.step{display:flex;align-items:center;gap:6px}
.step button{width:46px;height:46px;border-radius:10px;border:1.5px solid #CBD2DC;background:#fff;color:#1B2A41;font-size:24px}
.step output{min-width:58px;text-align:center;font-size:23px;font-weight:700}
.datebar{display:flex;align-items:center;justify-content:space-between;background:#2E4263;border-radius:12px;padding:4px}
.datebar button{width:46px;height:42px;border:0;background:transparent;color:#fff;font-size:22px}
.datebar button:disabled{color:#6B7E9C}
.datebar span{font-size:15px;font-weight:600}
.badge{font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px}
.b-wait{background:#FCE7CF;color:#7A3E00}.b-ok{background:#DCFCE7;color:#14532D}.b-bad{background:#FEE2E2;color:#991B1B}
.muted{font-size:13px;color:#4B5563}
.foot{position:sticky;bottom:0;background:#fff;border-top:1px solid #E5E7EB;padding:12px 18px calc(14px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px}
.total{display:flex;justify-content:space-between;align-items:baseline}.total b{font-size:24px}
.list{background:#fff;border-radius:14px;overflow:hidden}
.li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #EEF0F3}
.li:last-child{border-bottom:0}
.li .l{display:flex;flex-direction:column;gap:2px;min-width:0}.li .r{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex-shrink:0}
.tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#2E4263;border-radius:12px;padding:4px}
.tabs button{height:40px;border:0;border-radius:9px;background:transparent;color:#fff;font-size:15px}
.tabs button.on{background:#fff;color:#1B2A41;font-weight:600}
.stat{background:#fff;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:2px}.stat b{font-size:20px}
.done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:26px 6px}
.check{width:72px;height:72px;border-radius:999px;background:#DCFCE7;display:flex;align-items:center;justify-content:center}
.photo{width:100%;max-height:300px;object-fit:contain;border-radius:12px;background:#E5E7EB}
.err{color:#B91C1C;font-size:14px;font-weight:600}
.login{background:#1B2A41;color:#fff;min-height:100vh;padding:calc(40px + env(safe-area-inset-top)) 22px 28px;display:flex;flex-direction:column;gap:20px}
.login .card{color:#1B2A41}
.langbig{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.langbig button{height:50px;border-radius:12px;border:2px solid #4A5F80;background:transparent;color:#fff;font-size:17px}
.langbig button.on{background:#fff;color:#1B2A41;border-color:#fff;font-weight:700}
.queue{background:#FCE7CF;color:#7A3E00;border-radius:12px;padding:10px 14px;font-size:14px;font-weight:600}
#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#1B2A41;color:#fff;padding:12px 18px;border-radius:12px;font-size:15px;max-width:90vw;opacity:0;transition:opacity .2s;pointer-events:none;z-index:9}
#toast.show{opacity:1}
.hidden{display:none!important}
