*{box-sizing:border-box} [hidden]{display:none!important}
:root{font-family:Inter,system-ui,sans-serif;color:#172842;background:#f3f6fb;font-size:16px;--blue:#335fec;--muted:#62728b;--line:#e3eaf3;--navy:#162842}
body{margin:0} button,input,select,textarea{font:inherit} button{cursor:pointer} button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #91a9ff;outline-offset:2px} i{font-size:1.2em;vertical-align:middle}
#shell{min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr)} aside{background:var(--navy);color:white;padding:26px 18px;display:flex;flex-direction:column;min-height:100vh} .brand{display:flex;gap:12px;align-items:center;text-align:left;color:inherit;font-size:22px;font-weight:780;line-height:1.05}.brand small{display:block;color:#a7b9d7;font-size:9px;letter-spacing:.15em;margin-top:6px}.brand-icon{width:42px;height:42px;display:grid;place-items:center;background:#4169f4;color:white;border-radius:11px;flex:none}.side-label{font-size:10px;color:#a7b9d7;letter-spacing:.14em;margin:43px 12px 12px;font-weight:700}nav{display:grid;gap:5px}nav button,#side-bottom button{display:flex;align-items:center;gap:12px;text-align:left;color:#c0cde1;padding:11px 13px;border-radius:9px;font-size:14px;width:100%}nav button:hover,nav .active,#side-bottom button:hover{background:#294162;color:white}#side-bottom{margin-top:auto;padding-top:28px}header{background:white;border-bottom:1px solid var(--line);min-height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;color:#51627b}.crumb{font-size:14px;font-weight:650}.top-actions{display:flex;gap:12px;align-items:center}.mobile-brand{display:none}.avatar{border-radius:50%;width:38px;height:38px;background:#e9efff;color:#3157ce;font-size:13px;font-weight:750}.online,.offline{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:650;color:#176b51;background:#eaf8f1;border-radius:99px;padding:5px 9px}.offline{background:#fff3d9;color:#855200}.dot{width:7px;height:7px;border-radius:50%;background:currentColor}
main{max-width:1420px;margin:auto;padding:34px;display:grid;gap:24px}.hero{border-radius:16px;background:radial-gradient(ellipse at 97% 5%,#304c82,transparent 56%),linear-gradient(105deg,#192d4d,#213a62);color:white;padding:31px 34px;position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;min-height:175px}.hero time{color:#b6c6e3;font-size:13px;font-weight:650}.hero h1{font-size:clamp(27px,4vw,39px);margin:10px 0 6px;letter-spacing:-.04em}.hero p{margin:0;color:#cbd8ed}.hero-art{color:#abc2f5;opacity:.42;font-size:86px;margin:0 35px}.modules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.module,.panel{background:white;border:1px solid var(--line);border-radius:13px}.module{text-align:left;min-height:135px;padding:17px;display:grid;gap:7px;box-shadow:0 3px 9px #17284208}.module:hover{border-color:#9eb3f6}.module strong{font-size:16px}.module small,.muted{color:var(--muted);font-size:13px}.tile-icon{width:41px;height:41px;border-radius:10px;display:grid;place-items:center;background:#eaf0ff;color:#345dec}.tone-1{background:#e7f8f1;color:#18805f}.tone-2{background:#f0ebff;color:#7652cd}.tone-3{background:#fff1dd;color:#ab680d}.section-head,.page-head,.toolbar,.row,.form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.page-head h1,.section-head h2,h2{margin:0;font-weight:760;letter-spacing:-.025em}.page-head h1{font-size:32px}.section-head h2,h2{font-size:21px}.page-head p{margin:5px 0 0;color:var(--muted);font-size:14px}.panel{padding:18px}.panel .section-head{margin-bottom:12px}.row{padding:12px 0;border-bottom:1px solid var(--line);min-width:0}.row:last-child{border:0}.row strong,.row small{display:block;overflow-wrap:anywhere}.row small{color:var(--muted);font-size:13px;margin-top:4px}.row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:end}.minor,.primary,.link,.tabs button{padding:8px 12px;border-radius:8px;font-weight:650;font-size:14px}.minor{border:1px solid var(--line);background:white;color:#233a5d}.primary{background:var(--blue);color:white;border:1px solid var(--blue)}.minor:hover{background:#edf3ff}.primary:hover{background:#244ed5}.link{color:#2e57d8}.toolbar{justify-content:flex-start;flex-wrap:wrap;margin-bottom:10px}.toolbar input[type=search]{flex:1;min-width:160px}.tabs{display:flex;gap:5px;margin-bottom:15px}.tabs .active{background:#eaf0ff;color:#294dc6}label{display:grid;gap:5px;font-weight:650;font-size:13px;color:#304460}input,select,textarea{min-height:41px;border:1px solid #d9e2f0;border-radius:8px;background:white;padding:8px 10px;color:#172842;width:100%;font-size:16px}input[type=checkbox]{width:auto;min-height:auto}textarea{resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stack{display:grid;gap:14px}.form-actions{justify-content:flex-end;flex-wrap:wrap}.empty{padding:30px 12px;text-align:center;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:16px;padding:0;width:min(680px,calc(100% - 22px));max-height:calc(100dvh - 28px);overflow:auto;color:inherit;background:white}dialog::backdrop{background:#0d1c36a0}#dialog-body{padding:20px}.picker{display:grid;gap:5px}.matches{max-height:155px;overflow:auto;display:grid;gap:3px}.matches:empty{display:none}.matches button{text-align:left} .line-item{display:grid;grid-template-columns:minmax(80px,1fr) 74px 96px 34px;align-items:center;gap:7px;padding:7px 0;border-bottom:1px solid var(--line)}.line-item input{padding:6px}.login{min-height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at top,#dbe7ff,#f3f6fb 65%)}.login form{width:min(100%,390px);padding:29px;display:grid;gap:15px;box-shadow:0 18px 65px #17284220}.login h1{font-size:30px;margin:0;font-weight:800}.login p{color:var(--muted);margin:0}#toast{position:fixed;bottom:20px;right:20px;background:#172842;color:white;padding:12px 16px;border-radius:9px;z-index:10;max-width:calc(100% - 40px)}#toast:empty,#receipt{display:none}.receipt-table{width:100%;border-collapse:collapse}.receipt-table td,.receipt-table th{padding:4px;text-align:left}.status{font-size:12px;color:#946011}.settings-check{display:flex;align-items:center;gap:8px}video{width:100%;border-radius:8px}
@media(max-width:850px){#shell{grid-template-columns:1fr}aside{display:none}header{padding:0 16px;min-height:61px}.mobile-brand{display:flex;font-size:19px}.mobile-brand .brand-icon{width:34px;height:34px}.crumb{display:none}main{padding:16px;gap:16px}.hero{min-height:137px;padding:22px}.hero-art{font-size:48px;margin:0 0 0 8px}.modules{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.module{padding:13px;min-height:106px}.module small{display:none}.panel{padding:13px}.page-head h1{font-size:25px}.page-head{align-items:flex-start}.top-actions{gap:6px}.page-head p{font-size:13px}}
@media(max-width:420px){.sync span{display:none}.hero-art{display:none}}
@media print{body>*{display:none!important}#receipt{display:block!important;width:70mm;padding:2mm;color:#000;font:11px monospace}#receipt h2{font-size:16px}@page{margin:0}}
