:root{--bg:#edf4f9;--surface:#fff;--text:#213d4c;--muted:#5f7684;--line:#d8e4ed;--primary:#248b9c;--primary-dark:#1b6f7d;--header:#1d3049;--danger:#b42318;--danger-bg:#fde8e8;--notice-bg:#fff6e0;--radius:16px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--bg);-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{background:var(--bg);overscroll-behavior-y:none;min-height:100vh;margin:0}h1,h2{margin:0}h1{font-size:22px}h2{margin-bottom:8px;font-size:16px}a{color:var(--primary-dark);text-decoration:none}button{font:inherit;cursor:pointer}button.primary,button.secondary,button.danger{border:0;border-radius:12px;width:100%;min-height:48px;padding:0 16px;font-weight:600}button.primary{background:var(--primary);color:#fff}button.primary:active{background:var(--primary-dark)}button.secondary{background:var(--surface);color:var(--text);border:1px solid var(--line)}button.danger{background:var(--danger-bg);color:var(--danger)}button:disabled{opacity:.55}button.link{color:var(--primary-dark);background:0 0;border:0;padding:8px}input{font:inherit;border:1px solid var(--line);background:var(--surface);width:100%;min-height:46px;color:var(--text);border-radius:12px;padding:0 14px}input:focus{outline:2px solid var(--primary);outline-offset:-1px}.muted{color:var(--muted)}.small{font-size:13px}.error{color:var(--danger);background:var(--danger-bg);white-space:pre-line;border-radius:12px;margin:8px 0;padding:10px 12px}.notice{background:var(--notice-bg);white-space:pre-line;border-radius:12px;padding:10px 12px}.splash{color:#fff;background:var(--header);place-items:center;min-height:100vh;font-size:28px;font-weight:700;display:grid}.auth{min-height:100vh;padding:calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));background:radial-gradient(circle at 10% 0%, #bce7df, transparent 55%), radial-gradient(circle at 100% 100%, #d1e1ef, transparent 55%), var(--bg);place-items:center;display:grid}.auth-card{background:var(--surface);border-radius:var(--radius);gap:14px;width:100%;max-width:400px;padding:24px;display:grid;box-shadow:0 10px 30px #1d30491f}.auth-card form{gap:14px;display:grid}.logo{align-items:center;gap:12px;display:flex}.logo p{margin:2px 0 0}.logo-mark{background:var(--header);color:#fff;border-radius:14px;place-items:center;width:48px;height:48px;font-size:24px;font-weight:800;display:grid}.field{gap:6px;font-weight:600;display:grid}.field small{font-weight:400}.code-display{border:1px solid var(--line);background:var(--bg);letter-spacing:4px;font-variant-numeric:tabular-nums;border-radius:12px;place-items:center;min-height:52px;font-size:26px;font-weight:600;display:grid}.code-display.muted{font-weight:400}.pin-dots{letter-spacing:8px;place-items:center;min-height:40px;font-size:30px;display:grid}.keypad{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.key{border:1px solid var(--line);background:var(--bg);min-height:58px;color:var(--text);border-radius:14px;font-size:24px}.key:active{background:var(--line)}.key-fn{color:var(--muted);font-size:20px}.screen{flex-direction:column;min-height:100vh;display:flex}.topbar{z-index:5;padding:calc(10px + var(--safe-top)) 12px 10px;background:var(--header);color:#fff;align-items:center;gap:10px;display:flex;position:sticky;top:0}.topbar .muted{color:#b8c7d6}.topbar-title{flex:1;min-width:0;display:grid}.topbar-title strong,.topbar-title span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.icon-btn{color:#fff;background:#ffffff1f;border:0;border-radius:12px;flex:none;width:42px;height:42px;font-size:20px}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.tabs{background:var(--header);padding:0 8px;display:flex}.tab{color:#b8c7d6;background:0 0;border:0;border-bottom:3px solid #0000;flex:1;padding:10px 0 12px;font-weight:600}.tab.active{color:#fff;border-bottom-color:#5fd0c0}.count{min-width:20px;color:var(--header);background:#5fd0c0;border-radius:10px;margin-left:6px;padding:0 6px;font-size:12px;line-height:20px;display:inline-block}.filters{gap:10px;padding:12px 12px 4px;display:grid}.chips{gap:8px;display:flex;overflow-x:auto}.chip{border:1px solid var(--line);background:var(--surface);color:var(--text);white-space:nowrap;border-radius:20px;padding:7px 14px}.chip.active{background:var(--text);border-color:var(--text);color:#fff}.list,.details{padding:8px 12px calc(16px + var(--safe-bottom));flex:1;align-content:start;gap:10px;display:grid}.empty{text-align:center;color:var(--muted);padding:40px 16px}.card{background:var(--surface);border-radius:var(--radius);gap:6px;padding:14px;display:grid;box-shadow:0 1px 3px #1d304914}.order-card{border-left:5px solid var(--line)}.order-card:active{background:#f6f9fb}.card-row{justify-content:space-between;align-items:center;gap:10px;display:flex}.badge{white-space:nowrap;border-radius:10px;padding:3px 10px;font-size:13px;font-weight:600}.time{font-weight:600}.address{font-weight:500}.note{background:var(--bg);white-space:pre-line;border-radius:10px;padding:8px 10px;font-size:14px}.flag{font-weight:600}.row{border-bottom:1px solid var(--line);grid-template-columns:96px 1fr;gap:8px;padding:6px 0;display:grid}.row:last-of-type{border-bottom:0}.row-label{color:var(--muted)}.row-value{word-break:break-word;gap:4px;display:grid}.phone{font-weight:600}.line{border-bottom:1px solid var(--line);grid-template-columns:1fr auto auto;align-items:start;gap:10px;padding:6px 0;display:grid}.line-qty{color:var(--muted);white-space:nowrap}.line-sum{white-space:nowrap;text-align:right}.total{justify-content:space-between;padding-top:6px;font-size:17px;display:flex}.actions{padding:12px 12px calc(12px + var(--safe-bottom));background:var(--surface);gap:8px;display:grid;position:sticky;bottom:0;box-shadow:0 -2px 10px #1d30491a}.actions p{text-align:center;margin:0}.install-banner{left:12px;right:12px;bottom:calc(12px + var(--safe-bottom));z-index:15;background:var(--header);color:#fff;border-radius:16px;align-items:center;gap:10px;max-width:480px;margin:0 auto;padding:8px 6px 8px 8px;display:flex;position:fixed;box-shadow:0 8px 24px #14233759}.install-banner-icon{width:36px;height:36px;color:var(--header);background:#5fd0c0;border-radius:10px;flex:none;place-items:center;font-weight:800;display:grid}.install-banner-text{opacity:.9;flex:1;font-size:13px;line-height:1.3}.install-banner-go{color:var(--header);background:#5fd0c0;border:0;border-radius:10px;flex:none;padding:9px 12px;font-weight:700}.install-banner-close{color:#fff;background:0 0;border:0;border-radius:50%;flex:none;width:32px;height:32px;font-size:22px;line-height:1}:is(body:has(.install-banner) .list,body:has(.install-banner) .auth){padding-bottom:calc(84px + var(--safe-bottom))}.steps{gap:8px;margin:0;padding-left:22px;line-height:1.4;display:grid}.sheet-backdrop{z-index:20;background:#0f192673;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-height:85vh;padding:20px 16px calc(16px + var(--safe-bottom));border-radius:20px 20px 0 0;gap:10px;display:grid;overflow-y:auto}.sheet p{margin:0}.sheet-list{gap:8px;display:grid}
