:root{font-family:Inter,system-ui,-apple-system,sans-serif;color:#17263c;background:#f4f6fa;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:5px;background:#245ad0;color:white;padding:10px 15px;font-weight:600}button.secondary{background:#e9eef6;color:#253853}button.danger{background:#a32e38}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{padding:10px;border:1px solid #cdd5e2;border-radius:5px;background:white;color:#17263c;width:100%}textarea{min-height:80px}label{display:grid;gap:6px;font-size:12px;font-weight:600;color:#52627b}.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:#142338;color:#e4edf9;padding:24px 16px}.brand{font-size:18px;font-weight:800;letter-spacing:-.5px;margin-bottom:35px}.brand b{color:#72aaff}.nav{display:block;width:100%;text-align:left;background:transparent;color:#bfcee2;font-weight:500;margin:4px 0}.nav.active,.nav:hover{background:#294768;color:white}.top{display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid #e0e5ef;padding:16px 28px;gap:12px}.main{min-width:0}.content{padding:26px;max-width:1450px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}h1{font-size:26px;margin:0 0 6px}h2{font-size:17px;margin:0 0 14px}p{line-height:1.6}.muted{color:#64748b}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.card,.panel{background:white;border:1px solid #dfe5ee;border-radius:8px;padding:18px}.value{font-size:30px;font-weight:700;margin-top:10px}.panel{margin-bottom:16px;overflow:auto}.table{border-collapse:collapse;width:100%;white-space:nowrap}.table th{text-align:left;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.05em;background:#f7f9fc}.table td,.table th{padding:12px;border-bottom:1px solid #edf0f5}.pill{display:inline-block;padding:4px 8px;background:#e8eff9;color:#314a70;border-radius:20px;font-size:11px}.form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form button{align-self:end}.login{max-width:440px;margin:10vh auto;background:white;border:1px solid #dfe5ee;border-radius:12px;padding:30px}.login form{display:grid;gap:14px}.notice{padding:13px;border-left:3px solid #c68a26;background:#fff8e9;color:#674a18;margin:12px 0;line-height:1.5}.error{color:#b42318;margin-top:12px}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row input,.row select{width:auto;max-width:100%}.empty{padding:20px;color:#64748b;text-align:center}.secret{overflow-wrap:anywhere;font-family:monospace;background:#eef3fa;padding:12px}.form input[type=checkbox]{width:auto}.mobile{display:none}@media(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{padding:12px;display:flex;flex-wrap:wrap;gap:4px}.brand{width:100%;margin:5px}.nav{width:auto;padding:8px}.cards{grid-template-columns:repeat(2,1fr)}.content{padding:16px}.top{padding:12px}.form{grid-template-columns:1fr}.login{margin:25px 12px}.heading{align-items:flex-start}}

.qr{display:flex;justify-content:center;background:#fff;padding:12px;margin:12px 0}.qr img{max-width:100%;height:auto;image-rendering:pixelated}details summary{cursor:pointer;color:#52627b;font-size:12px;margin:8px 0 14px}.card{border-top:3px solid #245ad0}.panel{box-shadow:0 2px 8px #14233808}.nav.active{background:#245ad0}.login{box-shadow:0 8px 30px #14233812}
.page-actions{margin:0 0 18px;justify-content:flex-end}.page-actions button{white-space:nowrap}.editor-dialog{width:min(760px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid #dfe5ee;border-radius:12px;padding:24px;color:#17263c;box-shadow:0 24px 80px #14233840}.editor-dialog::backdrop{background:#14233888}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.dialog-head h2{margin:0;font-size:20px}.form-error{grid-column:1/-1}.form-error:empty,.success-message:empty{display:none}.success-message{background:#edf8f1;color:#166534;padding:12px;border:1px solid #bbdfc6;border-radius:6px;margin-bottom:15px}.table td{white-space:normal}.sidebar{position:sticky;top:0;height:100vh;overflow:auto}.nav{padding:11px 14px}.panel h2{margin-bottom:18px}@media(max-width:850px){.sidebar{position:static;height:auto}.editor-dialog{padding:18px}.page-actions{justify-content:flex-start}}
/* Operations workspace visual refresh */
:root{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#15243b;background:#f3f6fb;font-size:14px;--accent:#2159cf;--line:#e2e8f2}
.shell{grid-template-columns:236px minmax(0,1fr)}.sidebar{background:linear-gradient(160deg,#10233e,#152f50);padding:26px 14px}.sidebar .brand{display:flex;align-items:center;gap:10px;letter-spacing:-.65px;font-size:18px;margin:0 0 36px 8px}.sidebar .brand:before{content:'U';display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#3379ef;color:#fff;font-size:20px;box-shadow:0 5px 14px #0003}.nav{display:flex;align-items:center;gap:13px;font-size:13px;border-radius:8px;padding:12px 14px;margin:5px 0}.nav-icon{display:inline-grid;place-items:center;width:20px;font-size:18px;line-height:1;color:#a9c5f3}.nav.active{background:#2864d9;box-shadow:0 5px 16px #071c454d}.nav.active .nav-icon{color:#fff}.top{min-height:68px;padding:14px 30px}.content{padding:30px 34px;max-width:1600px}.heading{margin-bottom:24px}h1{font-size:29px;letter-spacing:-.7px}h2{letter-spacing:-.25px}.welcome{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:25px 28px;margin-bottom:22px;border-radius:14px;background:linear-gradient(112deg,#15365e,#205eb5);color:white}.welcome h2{font-size:25px;margin:9px 0 3px}.welcome p{margin:0;color:#dce9ff}.eyebrow{font-size:10px;letter-spacing:2px;color:#bcd4fb;font-weight:700}.secure-label{font-size:12px;color:#cce9ff;white-space:nowrap}.cards{gap:16px}.card{border:1px solid var(--line);border-radius:12px;padding:19px 20px;box-shadow:0 3px 12px #172a4610}.metric-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.metric-icon{width:34px;height:34px;border-radius:10px;background:#e9f0ff;color:#285dcb;display:grid;place-items:center;font-size:19px}.green .metric-icon{background:#e3f7ed;color:#16834c}.red .metric-icon{background:#ffeded;color:#c44141}.amber .metric-icon{background:#fff2dc;color:#a56511}.value{font-size:34px;letter-spacing:-1px;margin-top:8px;font-variant-numeric:tabular-nums}.panel{border-radius:12px;padding:22px;border-color:var(--line);box-shadow:0 4px 14px #1b365609}.table th{background:#f3f6fb;padding:13px 12px}.table td{padding:15px 12px}.table tbody tr:hover{background:#f8faff}.state{display:inline-flex;align-items:center;gap:7px;border-radius:20px;padding:5px 10px;font-size:11px;font-weight:650;background:#f0f3f8;color:#52647c;white-space:nowrap}.state i{width:7px;height:7px;border-radius:50%;background:currentColor}.state.online{background:#e6f7ed;color:#18764a}.state.offline{background:#fff0ee;color:#b33333}.state.unknown{background:#fff4df;color:#936119}.status-time{display:block;font-size:11px;color:#697c94;margin-top:5px}.notice{border-radius:8px;font-size:12px}.page-actions{margin-bottom:18px}button{border-radius:7px;transition:background .15s}button:hover:not(:disabled){filter:brightness(.96)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #90b7ff;outline-offset:2px}.login{border-radius:17px;padding:34px;box-shadow:0 12px 50px #132c5420}.empty{padding:38px 12px}.editor-dialog{border-radius:15px}.table button[data-action="remote"]{background:#2159cf;color:white}.table button{font-size:12px}.error:empty{display:none}@media(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{padding:12px}.sidebar .brand{width:100%;margin:0 0 5px}.nav{width:auto;margin:0;padding:8px}.content{padding:18px}.welcome{padding:20px;flex-direction:column;align-items:flex-start}.cards{gap:10px}.card{padding:14px}.value{font-size:27px}.top{padding:12px}.panel{padding:15px}}

.integration-status{padding:14px 16px;background:#f3f6fb;border:1px solid #dce6f3;border-radius:10px;margin-bottom:16px}.integration-status p{margin:8px 0 0}
/* Mobile workspace: no offline storage of customer information. */
.mobile-menu,.bottom-nav{display:none}
@media(max-width:850px){
 .shell{display:block;min-height:100dvh}.sidebar{display:none}.menu-open .sidebar{display:flex;position:fixed;inset:0 0 auto 0;z-index:30;max-height:72dvh;overflow:auto;padding:16px;box-shadow:0 10px 35px #10233e55;gap:5px}.menu-open .sidebar .nav{width:calc(50% - 5px);min-height:44px}.mobile-menu{display:block;min-width:44px}.top{position:sticky;top:0;z-index:10;min-height:62px;padding:10px 12px;gap:8px}.top .breadcrumb{flex:1;font-weight:650;font-size:12px;overflow-wrap:anywhere}.top .row .muted{display:none}.top button{min-height:44px;padding:8px 12px}.content{padding:16px 12px calc(94px + env(safe-area-inset-bottom));max-width:100%;overflow:hidden}.heading{gap:8px;margin-bottom:16px}.heading h1{font-size:24px}.heading .muted{font-size:12px}.heading button{flex-shrink:0}.welcome{padding:18px}.welcome h2{font-size:21px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.card{min-width:0;padding:12px}.metric-head{gap:4px}.metric-icon{flex-shrink:0;width:30px;height:30px}.value{font-size:26px}.panel{padding:12px;max-width:100%;overflow:auto}.row input,.row select{width:100%;min-width:0}.page-actions{display:flex;gap:8px}.page-actions button{flex:1;white-space:normal}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;background:#fff;border-top:1px solid #dce5f2;padding:6px 3px calc(6px + env(safe-area-inset-bottom));justify-content:space-around;box-shadow:0 -4px 18px #17263c10}.bottom-nav button{flex:1;min-width:0;min-height:52px;background:transparent;color:#52647c;padding:4px 2px;font-size:10px;display:grid;justify-items:center;gap:3px}.bottom-nav button span{font-size:21px}.bottom-nav button.active{color:#2159cf;background:#edf3ff}.login{margin:24px auto;width:calc(100% - 24px);padding:24px}.login input,.form input,.form select,.form textarea{font-size:16px;min-height:44px}.form input[type=checkbox]{min-height:0}.editor-dialog{width:calc(100% - 20px);max-height:85dvh;padding:16px}.editor-dialog button,.page-actions button{min-height:44px}.qr img{max-width:100%;object-fit:contain}.table[data-device-table]{white-space:normal;display:block}.table[data-device-table] thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.table[data-device-table] tbody,.table[data-device-table] tr,.table[data-device-table] td{display:block;width:100%}.table[data-device-table] tr{border:1px solid #dce5f2;border-radius:12px;margin:12px 0;padding:12px}.table[data-device-table] td{border:0;padding:6px 0;overflow-wrap:anywhere}.table[data-device-table] td:before{content:attr(data-label);display:block;color:#64748b;font-size:11px;font-weight:600;margin-bottom:4px}.table[data-device-table] td:first-child{font-size:17px;font-weight:700}.table[data-device-table] td:last-child{display:flex;gap:8px;flex-wrap:wrap}.table[data-device-table] td:last-child:before{width:100%}.table[data-device-table] button{min-height:44px;flex:1}.notice{overflow-wrap:anywhere}.secret{word-break:break-all}
}

.remote-actions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}.remote-actions button:first-child{background:#245ad0;color:white}.remote-actions button{min-height:40px;white-space:nowrap}@media(max-width:700px){.remote-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.remote-actions button{min-height:48px}.remote-actions button:first-child{grid-column:1/-1}}
