*{box-sizing:border-box}html{background:#f4f6f8}body{margin:0;background:#f4f6f8;color:#17202a;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px}.topbar{height:66px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e6e9ed;position:sticky;top:0;z-index:10}.brand,.top-actions,.device-head,.device-meta,.order-head,.order-bottom,.actions{display:flex;align-items:center}.brand{gap:10px}.brand-mark{width:34px;height:34px;border-radius:10px;background:#17202a;color:#fff;display:grid;place-items:center;font-weight:800}.brand b{font-size:15px;letter-spacing:.04em}.brand small{display:block;color:#7c8793;font-size:11px;margin-top:1px}.top-actions{gap:12px}#clock{font-size:12px;color:#77818c}.icon-btn{width:38px;height:38px;border:1px solid #dce1e6;background:#fff;border-radius:10px;font-size:20px;color:#34404c;cursor:pointer}main{max-width:1120px;margin:auto;padding:24px 18px 70px}.summary{background:#fff;border:1px solid #e2e6ea;border-radius:18px;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px}.eyebrow{font-size:10px;letter-spacing:.14em;color:#77818c;font-weight:700}.summary h1{font-size:28px;margin:5px 0 4px}.summary p,.section-title p{margin:0;color:#7c8793;font-size:12px}.summary-stats{display:flex;border:1px solid #e4e8ec;border-radius:14px;overflow:hidden;background:#fafbfc}.summary-stats div{min-width:108px;padding:12px 16px;text-align:center}.summary-stats div+div{border-left:1px solid #e4e8ec}.summary-stats b{display:block;font-size:19px}.summary-stats span{font-size:10px;color:#7c8793}.section-title{display:flex;justify-content:space-between;align-items:end;margin:24px 2px 11px;gap:12px}.section-title h2{font-size:17px;margin:0 0 3px}.section-title>span{font-size:11px;color:#7c8793}.device-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.device{background:#fff;border:1px solid #e2e6ea;border-radius:15px;padding:14px;min-width:0}.device-head{justify-content:space-between;gap:8px}.device-name{font-weight:750;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.connection{font-size:10px;padding:4px 7px;border-radius:999px;background:#fff1f1;color:#c63b3b;white-space:nowrap}.connection.ok{background:#eaf8ef;color:#17783b}.device-store{font-size:11px;color:#7c8793;margin:5px 0 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.device-meta{justify-content:space-between;border-top:1px solid #edf0f2;padding-top:11px}.state-line{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700}.dot{width:8px;height:8px;border-radius:50%;background:#aab2ba}.dot.open{background:#20a45a}.dot.closed{background:#e34d4d}.dot.paused{background:#e59a16}.state-raw{font-size:10px;color:#8b949e;margin-top:3px}.age{font-size:10px;color:#8b949e}.actions{gap:7px;margin-top:12px}.actions button{flex:1}.primary,.secondary{min-height:40px;border-radius:10px;padding:0 13px;font-weight:700;cursor:pointer}.primary{border:0;background:#17202a;color:#fff}.secondary{border:1px solid #d8dde2;background:#fff;color:#26323d}.primary:disabled,.secondary:disabled{opacity:.4;cursor:not-allowed}.orders-section{margin-top:4px}.tabs{display:flex;gap:5px;background:#e9edf1;padding:4px;border-radius:12px;width:max-content;max-width:100%;margin-bottom:11px}.tab{border:0;background:transparent;color:#68737e;padding:9px 13px;border-radius:9px;font-weight:700;cursor:pointer}.tab.active{background:#fff;color:#17202a;box-shadow:0 1px 2px #0000000c}.tab span{margin-left:5px;font-size:10px;background:#edf0f2;border-radius:999px;padding:2px 6px}.orders{display:grid;gap:9px}.order{background:#fff;border:1px solid #e2e6ea;border-radius:15px;padding:14px 16px}.order.current{border-left:4px solid #17202a}.order-head{justify-content:space-between;gap:10px}.store-chip{font-size:11px;font-weight:750;background:#eef2f5;border-radius:7px;padding:5px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%}.platform{font-size:10px;color:#7b8691}.order-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;margin-top:10px}.code{font-size:17px;font-weight:800}.meta{font-size:11px;color:#818b95;margin-top:3px}.amount{font-size:17px;font-weight:800;text-align:right}.order-bottom{justify-content:space-between;gap:10px;margin-top:11px;padding-top:10px;border-top:1px solid #edf0f2}.pill{font-size:10px;border-radius:999px;padding:5px 8px;background:#eef2f5;color:#58636e}.pill.current{background:#fff4dc;color:#94620b}.empty{background:#fff;border:1px dashed #d8dde2;border-radius:15px;padding:30px;text-align:center;color:#7c8793}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#17202a;color:#fff;padding:11px 15px;border-radius:11px;font-size:12px;font-weight:700;opacity:0;pointer-events:none;transition:.2s;z-index:20;max-width:calc(100% - 28px)}.toast.show{opacity:1;transform:translate(-50%,0)}.login-wrap{max-width:420px;padding-top:70px}.login-card{border:1px solid #e2e6ea;background:#fff;border-radius:18px;padding:22px}.login-card h1{margin:5px 0}.login-card p{color:#7c8793}.login-card label{display:block;font-size:12px;color:#58636e;margin:14px 0}.login-card input{width:100%;height:46px;margin-top:6px;border:1px solid #d8dde2;background:#fff;color:#17202a;border-radius:10px;padding:0 12px;font-size:16px}.login-card .primary{width:100%}.error{background:#fff0f0;color:#bd3333;padding:10px;border-radius:10px;font-size:12px}@media(max-width:760px){main{padding:14px 12px 50px}.topbar{padding:0 13px}.summary{align-items:flex-start;flex-direction:column;padding:18px}.summary h1{font-size:24px}.summary-stats{width:100%}.summary-stats div{flex:1;min-width:0}.device-grid{grid-template-columns:1fr}.section-title{align-items:flex-start}.section-title>span{padding-top:4px}.tabs{width:100%}.tab{flex:1}.order{padding:13px}.store-chip{max-width:78%}}@media(max-width:360px){.summary-stats span{font-size:9px}.order-main{grid-template-columns:1fr}.amount{text-align:left}.top-actions #clock{display:none}}
