*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:#f3f5f9;color:#17243b;font:14px/1.5 'Segoe UI',system-ui,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:0;border-radius:10px;padding:10px 16px;background:#4f46e5;color:white;font-weight:600;transition:background .15s,transform .15s}button:hover{background:#4338ca}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:not-allowed}button.secondary,.secondary{background:#eef2ff;color:#4f46e5}button.secondary:hover{background:#e0e7ff}a{color:#4f46e5;text-decoration:none}.app{display:flex;min-height:100vh}.sidebar{width:224px;flex-shrink:0;background:#111b2e;color:#f8fbff;padding:26px 12px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:flex-start;flex-direction:column;color:white;padding:0 14px;gap:5px}.brand img{object-fit:contain;margin:0 0 12px 62px}.brand strong{font-size:20px}.brand small{font-size:10px;color:#91a4b7}.nav-label{font-size:10px;color:#8292ac;letter-spacing:.08em;margin:34px 14px 10px}nav{display:grid;gap:6px}nav a{color:#d9e2f1;border-radius:10px;padding:13px 14px;display:flex;align-items:center;gap:12px;font-weight:600}nav a:hover{background:#202d46}nav a[aria-current=page]{background:#4f46e5;color:#fff;box-shadow:inset 3px 0 #a5b4fc}nav svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.sidebar-bottom{margin-top:auto;padding:22px 10px 0;border-top:1px solid #23314a;font-size:11px;display:grid;gap:6px}.sidebar-bottom small{color:#91a4b7}.sidebar-bottom a{color:#a5b4fc}.workspace{min-width:0;flex:1}.topbar{height:76px;background:white;border-bottom:1px solid #e9edf4;display:flex;align-items:center;gap:12px;padding:16px 28px}.topbar>div{flex:1}.topbar strong{font-size:19px}.topbar small{display:block;font-size:11px;color:#64748b}.demo-badge{font-size:10px;letter-spacing:.05em;padding:8px 10px;color:#4f46e5;background:#eef2ff;border-radius:6px;white-space:nowrap}.demo-note{font-size:11px;padding:8px 28px;color:#64748b;border-bottom:1px solid #e2e7ef;background:#f8fafc}main{padding:24px 28px;min-height:calc(100vh - 155px)}.page-in{animation:page-in .32s ease both}@keyframes page-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}h1{font-size:29px;letter-spacing:-.03em;margin:0 0 5px}h2{font-size:17px;letter-spacing:-.01em;margin:0}h3{margin:0 0 10px;font-size:15px}p{margin:0;color:#64748b}.page-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.page-head p{font-size:12px}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.filters label{font-size:10px;font-weight:700;color:#8292ac;letter-spacing:.06em}input,select,textarea{border:1px solid #dfe5ef;border-radius:9px;background:#f8fafc;color:#17243b;padding:10px 12px;min-width:0}input:focus,select:focus,textarea:focus{border-color:#6366f1}select{cursor:pointer}.filters select{min-width:160px;background:white}.filters .units{margin-left:auto}.units{display:flex;background:#e9edf5;border-radius:10px;padding:3px}.units button{padding:6px 12px;font-size:11px;background:transparent;color:#64748b}.units button.active{background:#4f46e5;color:white}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.card{background:white;border-radius:16px;border:1px solid #e5e9f1;padding:20px;min-width:0}.metric small{font-size:12px;color:#64748b}.metric b{display:block;font-size:32px;color:#4f46e5;margin:8px 0 2px;font-variant-numeric:tabular-nums}.metric:nth-child(2) b{color:#d97706}.metric:nth-child(3) b{color:#059669}.metric:nth-child(4) b{color:#2563eb}.metric p{font-size:10px;color:#91a4b7}.middle{display:grid;grid-template-columns:3fr 2fr;gap:16px;margin-bottom:16px}.live{background:#17243b;color:white;min-height:235px;border:0;display:flex;flex-direction:column}.live-header{display:flex;justify-content:space-between;color:#a5b4fc;font-size:11px;font-weight:700}.live-header span{color:#34d399}.weight{font-size:clamp(32px,4vw,54px);color:#ff4d5e;line-height:1.2;font-weight:750;margin:22px 0;min-height:65px;white-space:nowrap;font-variant-numeric:tabular-nums}.live button{align-self:flex-start;margin-top:auto}.chart-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.chart-head p{font-size:11px;margin-top:5px}.chart{height:156px;display:flex;align-items:flex-end;gap:8px;padding:10px 8px 0;margin-top:16px;border-bottom:1px solid #e5e9f1}.bar-slot{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}.bar{width:min(40px,65%);border-radius:5px 5px 0 0;background:#6366f1;min-height:2px}.bar-value{font-size:10px;margin-bottom:4px}.bar-label{font-size:10px;text-align:center;position:absolute;top:calc(100% + 7px);width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;color:#64748b}.graph-card{padding-bottom:55px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}th{background:#f8fafc;color:#8292ac;text-align:left;font-size:10px;text-transform:uppercase;font-weight:600;padding:12px}td{padding:15px 12px;border-bottom:1px solid #edf1f6}tbody tr:hover{background:#f8fafc}td:first-child{color:#4f46e5;font-weight:600}.status{font-size:10px;padding:5px 10px;border-radius:20px;background:#ecfdf5;color:#059669}.status.pending{background:#fff7ed;color:#d97706}.row-button{padding:5px 10px;font-size:11px}.empty{text-align:center;padding:40px;color:#8292ac}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:12px;font-weight:600;color:#64748b}.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.weight-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.weight-card{background:#f8fafc;border-radius:12px;padding:16px}.weight-card small{color:#64748b}.weight-card b{display:block;font-size:25px;margin:8px 0}.green{background:#059669}.amber{background:#d97706}.green:hover{background:#047857}.amber:hover{background:#b45309}.settings-layout{display:grid;grid-template-columns:220px 1fr;gap:18px}.settings-nav{display:grid;align-content:start;gap:6px}.settings-nav button{text-align:left;background:#f8fafc;color:#64748b}.settings-nav button.active{background:#eef2ff;color:#4f46e5}.switch-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;gap:20px;border-bottom:1px solid #edf1f6}.switch-row small{display:block;color:#8292ac;font-size:11px}.switch-row input{accent-color:#4f46e5;width:19px;height:19px}.template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.template{border:1px solid #e2e7ef;border-radius:12px;padding:12px;background:#f8fafc;text-align:left;color:#17243b}.template:hover,.template.selected{border-color:#6366f1;background:#eef2ff;color:#17243b}.template img{width:100%;height:140px;object-fit:contain;background:white;border-radius:6px;display:block;margin-bottom:10px}.camera-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.camera{aspect-ratio:16/9;background:linear-gradient(145deg,#17243b,#253c53);border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#91a4b7;gap:8px}.camera strong{color:white}.ticket{background:white;max-width:700px;margin:auto;border:1px solid #dfe5ef;padding:30px}.ticket-header{text-align:center;border-bottom:2px solid #17243b;padding-bottom:15px;margin-bottom:20px}.ticket-header h2{font-size:24px}.ticket-data{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px}.ticket-data small{display:block;color:#8292ac}.ticket-data strong{font-size:16px}dialog{border:1px solid #e2e7ef;border-radius:18px;padding:24px;width:min(780px,94vw);max-height:90vh;overflow:auto;box-shadow:0 30px 100px #111b2e44}dialog::backdrop{background:#111b2e88;backdrop-filter:blur(3px)}dialog>button{margin-top:20px}#toast{position:fixed;right:24px;bottom:24px;max-width:420px;background:#17243b;color:white;border-radius:12px;padding:14px 20px;box-shadow:0 8px 30px #111b2e33;opacity:0;transform:translateY(20px);transition:.2s;pointer-events:none;z-index:100}#toast.show{opacity:1;transform:none}footer{font-size:10px;color:#8292ac;padding:8px 28px 16px;display:flex;justify-content:space-between}.mobile-menu{display:none}.help{background:#eef2ff;border-radius:10px;padding:12px 16px;color:#4f46e5;font-size:12px;margin:16px 0}.inline-dates{display:flex;gap:8px}.notice{font-size:12px;color:#64748b;margin:12px 0}.view-link{color:#4f46e5;font-weight:600}.danger{color:#e11d48!important}.sim-controls{display:flex;gap:8px;margin-top:16px}.sim-controls button{font-size:11px;padding:8px 12px}.shortcuts{font-size:11px;color:#8292ac}.ticket-preview{text-align:center}.ticket-preview img{max-width:100%;max-height:55vh;object-fit:contain}@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,1fr)}.sidebar{width:195px}.topbar{padding:16px 20px}.topbar strong{font-size:16px}.topbar .demo-badge{display:none}.middle{grid-template-columns:1fr}.form-grid{grid-template-columns:repeat(2,1fr)}.live{min-height:200px}.weight{margin:16px 0}}@media(max-width:700px){.sidebar{display:none;position:fixed;z-index:50;left:0;top:0;width:224px}.app.menu-open .sidebar{display:flex;box-shadow:0 0 0 100vw #111b2e66}.mobile-menu{display:block}.topbar{padding:10px 14px;height:auto;min-height:74px;gap:8px}.topbar strong{font-size:14px}.topbar button:not(.mobile-menu){padding:7px;font-size:10px}.topbar small{font-size:9px}.demo-note{padding:8px 16px}main{padding:20px 16px}.metrics{gap:8px}.card{padding:15px}.metric b{font-size:27px}.metric small{font-size:11px}.filters .units{margin-left:0}.filters{gap:8px}.filters select{min-width:0;max-width:100%;flex:1}.page-head{align-items:flex-start}h1{font-size:25px}.form-grid,.settings-layout{grid-template-columns:1fr}.settings-nav{grid-template-columns:repeat(2,1fr)}.template-grid{grid-template-columns:repeat(2,1fr)}.camera-grid{grid-template-columns:1fr}.weight-cards{gap:7px}.weight-card{padding:10px}.weight-card b{font-size:20px}.chart-head{align-items:flex-start;flex-direction:column}.chart{gap:4px}.ticket{padding:15px}.ticket-data{gap:8px}footer{padding:8px 16px;gap:10px}.demo-badge{display:none}}@media print{body{background:white}.sidebar,.topbar,.demo-note,footer,#toast,.form-actions,dialog>button{display:none!important}.workspace,main{padding:0!important}.ticket{border:0;max-width:none}dialog:not([open]){display:none}dialog[open]{position:static;display:block;max-height:none;width:100%;border:0;box-shadow:none}body:has(dialog[open]) .app{display:none}.card{break-inside:avoid}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.app[hidden],.entry-gate[hidden]{display:none!important}.entry-gate{min-height:100vh;display:grid;place-items:center;padding:32px 20px;background:#f3f5f9}.entry-card{width:min(100%,440px);padding:30px;background:white;border:1px solid #e2e7ef;border-radius:18px}.entry-card>img{object-fit:contain;display:block;margin-bottom:18px}.entry-card>small{font-size:10px;letter-spacing:.08em;color:#4f46e5;font-weight:700}.entry-card h1{font-size:29px;line-height:1.2;margin:14px 0}.entry-card p{font-size:13px;color:#64748b}.entry-card form{display:grid;gap:8px;margin-top:24px}.entry-card form>label{font-size:12px;font-weight:600;color:#64748b}.entry-card form>input{width:100%;margin-bottom:10px}.entry-consent{display:flex;gap:10px;align-items:flex-start;margin-top:8px}.entry-consent input{flex:none;width:17px;height:17px;accent-color:#4f46e5;margin:2px 0}.entry-consent span{font-size:11px;font-weight:400;line-height:1.6}.entry-note{font-size:10px!important;margin:16px 0 0}.honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important}#entry-error{color:#be123c;margin:0;font-size:12px}.entry-card button{margin-top:10px;min-height:44px}.engineering-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}.engineering-grid button{background:#f8fafc;border:1px solid #e2e7ef;color:#17243b;text-align:left;padding:18px;font-size:13px}.engineering-grid button:hover{background:#eef2ff;border-color:#a5b4fc}.engineering-section{margin-bottom:24px}.engineering-section>h3{font-size:11px;color:#8292ac;text-transform:uppercase}.settings-layout{display:block}.weight-cards{margin:16px 0}.form-grid{gap:12px}.weighing-live{min-height:165px}.weighing-live .weight{margin:10px 0;min-height:60px}.weighing-live .sim-controls{margin-top:0}.ticket-page .ticket{max-width:none;border:0;padding:8px}.ticket-page{min-height:0}.page-in{animation:page-in .18s ease both}.page-in{transform:none!important}main{min-height:0}@media(max-width:700px){.engineering-grid{grid-template-columns:1fr 1fr}.entry-card{padding:24px}.entry-card h1{font-size:26px}}

.top-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:9px;font-size:11px;font-weight:600;white-space:nowrap}.buy-link{background:#4f46e5;color:white}.topbar .demo-badge{display:none}.tour-hole{position:fixed;border:2px solid #a5b4fc;border-radius:14px;box-shadow:0 0 0 9999px #0f172ab8;z-index:200;pointer-events:none}.tour-panel{position:fixed;z-index:201;padding:22px;background:white;border:1px solid #e2e7ef;border-radius:16px;box-shadow:0 20px 60px #0f172a44}.tour-panel h2{margin:16px 0 8px;font-size:21px;line-height:1.25}.tour-panel p{font-size:13px;color:#64748b;line-height:1.7;margin:0}.tour-progress{display:flex;justify-content:space-between;gap:10px;align-items:center}.tour-progress span{font-size:9px;letter-spacing:.06em;color:#4f46e5;font-weight:700}.tour-skip{background:transparent;color:#64748b;font-size:10px;padding:4px}.tour-controls{display:flex;justify-content:space-between;margin-top:20px;gap:10px}@media(max-width:900px){.topbar{flex-wrap:wrap;height:auto}.topbar>div{min-width:180px}.top-link{font-size:10px;padding:8px}.topbar #reset{display:none}}
