:root{--navy:#061f36;--navy-2:#0a416f;--blue:#1677c8;--orange:#f58220;--ink:#0f172a;--muted:#64748b;--line:#e2e8f0;--bg:#f8fafc;--green:#059669;--red:#dc2626;--shadow:0 12px 36px rgba(15,23,42,.08)}
*{box-sizing:border-box}html{font-family:Inter,"Plus Jakarta Sans","Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}.eyebrow{margin:0;font-size:10px;letter-spacing:.18em;font-weight:900;color:var(--blue)}.primary{border:0;border-radius:12px;padding:13px 20px;background:var(--orange);color:#fff;font-weight:850;box-shadow:0 10px 24px rgba(245,130,32,.2);transition:.2s}.primary:hover{background:#dc6810;transform:translateY(-1px)}.primary:disabled{opacity:.55;cursor:not-allowed;transform:none}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(320px,1fr) minmax(420px,560px);grid-template-rows:auto 1fr;background:linear-gradient(135deg,#03182b 0%,#082f51 48%,#f8fafc 48%);padding:40px 6vw}.auth-brand{grid-column:1/-1;display:flex;align-items:center;gap:18px;color:#cbd5e1;font-size:10px;font-weight:800;letter-spacing:.2em}.auth-brand img{width:180px}.auth-copy{align-self:center;max-width:620px;padding-right:8vw;color:white}.auth-copy .eyebrow{color:#fca65b}.auth-copy h1{font-size:clamp(38px,5vw,70px);line-height:1.02;letter-spacing:-.05em;margin:16px 0 24px}.auth-copy>p:last-of-type{color:#cbd5e1;font-size:18px;line-height:1.7}.trust-list{display:flex;gap:20px;flex-wrap:wrap;margin-top:32px;color:#dbeafe;font-size:13px;font-weight:700}.auth-card{align-self:center;background:#fff;border:1px solid rgba(226,232,240,.9);border-radius:24px;padding:42px;box-shadow:0 28px 80px rgba(2,12,27,.18)}.auth-card form{display:grid;gap:20px}.auth-card h2{margin:8px 0 5px;font-size:30px}.auth-card p{margin:0;color:var(--muted)}label{display:grid;gap:7px;color:#334155;font-size:12px;font-weight:800}input,select{width:100%;border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:12px 14px;color:var(--ink);outline:none;transition:.15s}input:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(22,119,200,.12)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.loading{padding:20px;text-align:center;color:var(--muted)}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;background:var(--navy);padding:28px 20px;display:flex;flex-direction:column;color:#fff;box-shadow:12px 0 35px rgba(2,12,27,.14)}.brand{padding:4px 8px 26px;border-bottom:1px solid rgba(255,255,255,.1);display:grid;gap:9px}.brand img{width:188px}.brand small{font-size:9px;color:#94a3b8;font-weight:800;letter-spacing:.22em}.sidebar nav{display:grid;gap:7px;margin-top:30px}.nav{border:0;background:transparent;border-radius:12px;color:#9fb2c5;display:flex;gap:13px;align-items:center;padding:14px 16px;font-weight:700;text-align:left}.nav .icon{width:23px;text-align:center;font-size:18px}.nav:hover{background:rgba(255,255,255,.06);color:#fff}.nav.active{position:relative;background:var(--navy-2);color:#fff}.nav.active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:4px;background:var(--orange);border-radius:0 6px 6px 0}.tenant-box{margin-top:auto;border:1px solid rgba(255,255,255,.11);border-radius:12px;background:rgba(255,255,255,.04);padding:14px;display:grid;gap:5px}.tenant-box small{font-size:9px;letter-spacing:.14em;color:#94a3b8}.tenant-box strong{font-size:14px}.tenant-box span{font-size:11px;color:#93c5fd}
main{margin-left:270px;min-height:100vh;padding:32px 44px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.topbar h1{font-size:31px;letter-spacing:-.035em;margin:8px 0 0}.user-menu{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:10px 12px;box-shadow:0 2px 8px rgba(15,23,42,.04)}.user-menu div{display:grid;min-width:120px}.user-menu strong{font-size:13px}.user-menu small{font-size:11px;color:var(--muted)}.user-menu button{border:0;background:#f1f5f9;border-radius:8px;padding:8px 11px;color:#475569;font-weight:700}.live-dot{width:9px;height:9px;background:#10b981;border-radius:50%;box-shadow:0 0 0 4px #d1fae5}.view{display:none}.view.active{display:block}.welcome-card{min-height:220px;border-radius:20px;padding:36px 38px;display:flex;align-items:center;justify-content:space-between;color:white;background:radial-gradient(circle at 82% 20%,rgba(22,119,200,.6),transparent 34%),linear-gradient(120deg,#061f36,#0a416f);box-shadow:var(--shadow);overflow:hidden}.welcome-card h2{font-size:34px;letter-spacing:-.04em;margin:16px 0 9px}.welcome-card p{color:#cbd5e1;max-width:680px;line-height:1.6}.pill{font-size:10px;font-weight:900;letter-spacing:.15em;color:#fed7aa}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:22px 0}.kpi{border:1px solid var(--line);border-radius:16px;background:#fff;padding:21px;display:flex;align-items:center;gap:15px;box-shadow:0 3px 14px rgba(15,23,42,.04)}.kpi>span{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#eff7ff;color:var(--blue);font-size:21px}.kpi div{display:grid}.kpi small{font-size:11px;color:var(--muted);font-weight:700}.kpi strong{font-size:25px}.split-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.panel{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 4px 18px rgba(15,23,42,.04);overflow:hidden}.panel-head{padding:20px 22px;border-bottom:1px solid var(--line)}.panel h3{margin:8px 0 0;font-size:18px}.readiness ol{list-style:none;padding:20px 22px;margin:0;display:grid;gap:17px}.readiness li{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:700;color:#334155}.readiness li span{width:27px;height:27px;border-radius:8px;background:#fff1e6;color:#c5540a;display:grid;place-items:center}.toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.toolbar h2{margin:0 0 5px;font-size:24px}.toolbar p{margin:0;color:var(--muted)}
.list{min-height:90px}.list-row{display:grid;grid-template-columns:minmax(260px,1fr) minmax(130px,.35fr) 130px auto;align-items:center;gap:18px;padding:17px 22px;border-bottom:1px solid #eef2f7;font-size:13px}.list-row:last-child{border-bottom:0}.list-row>div:first-child{display:grid;gap:4px}.list-row strong{color:#1e293b}.list-row small{color:var(--muted)}.list-row code{font-family:"JetBrains Mono",Consolas,monospace;font-size:11px;color:#64748b}.agent-name{display:flex!important;grid-template-columns:none!important;align-items:center;gap:12px}.agent-icon{width:38px;height:38px;border-radius:10px;background:#eff7ff;color:var(--blue);display:grid;place-items:center}.status{display:inline-flex;align-items:center;gap:7px;width:max-content;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:850;background:#f1f5f9;color:#475569}.status i{width:6px;height:6px;border-radius:50%;background:#94a3b8}.status.online,.status.success,.status.approved{background:#ecfdf5;color:#047857}.status.online i,.status.success i,.status.approved i{background:#10b981}.status.running{background:#eff6ff;color:#1d4ed8}.status.running i{background:#3b82f6;animation:pulse 1.5s infinite}.status.queued,.status.draft{background:#fffbeb;color:#b45309}.status.queued i,.status.draft i{background:#f59e0b}.status.failed,.status.revoked{background:#fef2f2;color:#b91c1c}.status.failed i,.status.revoked i{background:#ef4444}.danger-link{border:0;background:#fef2f2;color:#b91c1c;border-radius:8px;padding:8px 10px;font-weight:750}.empty{padding:34px;text-align:center;color:#94a3b8}.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.preset-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:21px;box-shadow:0 4px 18px rgba(15,23,42,.04)}.preset-top,.preset-card footer{display:flex;justify-content:space-between;align-items:center}.vendor{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.14em;color:var(--blue)}.preset-card h3{margin:23px 0 8px}.preset-card p{color:var(--muted);font-size:13px}.preset-card footer{margin-top:24px;padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:#64748b}.preset-card footer button{border:0;background:#eff7ff;color:#075c9e;border-radius:8px;padding:8px 11px;font-weight:800}
dialog{border:0;border-radius:19px;padding:0;width:min(570px,calc(100vw - 32px));box-shadow:0 30px 100px rgba(2,12,27,.26)}dialog::backdrop{background:rgba(2,12,27,.64);backdrop-filter:blur(4px)}dialog form{padding:28px;display:grid;gap:17px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start}.modal-head h2{margin:7px 0 0}.close{border:0;background:#f1f5f9;border-radius:9px;width:34px;height:34px;font-size:22px;color:#64748b}.checks{display:grid;gap:9px;background:#f8fafc;border:1px solid var(--line);border-radius:11px;padding:14px}.checks label{display:flex;align-items:center;gap:10px;font-weight:650}.checks input{width:auto}.warning{background:#fffbeb;border:1px solid #fde68a;color:#92400e;padding:12px;border-radius:10px;font-size:12px;line-height:1.5}.pairing-result{border:1px dashed #93c5fd;background:#eff6ff;border-radius:13px;padding:20px;text-align:center;display:grid;gap:8px}.pairing-result small{font-size:9px;letter-spacing:.15em;color:#1d4ed8;font-weight:900}.pairing-result strong{font-family:"JetBrains Mono",Consolas,monospace;font-size:34px;letter-spacing:.12em;color:#082f51}.pairing-result span{font-size:12px;color:#64748b}#toast{position:fixed;right:24px;bottom:24px;z-index:80;padding:14px 18px;border-radius:11px;color:#fff;font-size:13px;font-weight:750;box-shadow:var(--shadow)}#toast.success{background:#065f46}#toast.error{background:#991b1b}[hidden]{display:none!important}@keyframes pulse{50%{opacity:.35}}
@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.card-grid{grid-template-columns:repeat(2,1fr)}.split-grid{grid-template-columns:1fr}.list-row{grid-template-columns:1fr auto}.list-row>*:nth-child(2){display:none}}
@media(max-width:760px){.auth-shell{display:block;padding:24px;background:var(--navy)}.auth-brand{margin-bottom:45px}.auth-copy{display:none}.auth-card{padding:26px}.sidebar{position:relative;width:100%;padding:18px}.sidebar nav{display:flex;overflow:auto;margin-top:18px}.nav{min-width:max-content}.tenant-box{display:none}main{margin-left:0;padding:22px 16px}.topbar{align-items:flex-start}.user-menu div,.user-menu .live-dot{display:none}.welcome-card{padding:26px;display:grid;gap:20px}.welcome-card h2{font-size:27px}.kpi-grid,.card-grid{grid-template-columns:1fr}.toolbar{align-items:flex-start;gap:15px}.form-grid{grid-template-columns:1fr}}
.text-button{border:0;background:transparent;color:var(--blue);font-weight:800;padding:6px}.secondary-button{border:1px solid #bfdbfe;background:#eff6ff;color:#075c9e;border-radius:9px;padding:9px 12px;font-weight:800}.toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.download-button{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.agent-onboarding{display:flex;gap:8px;align-items:center;margin:-4px 0 18px;padding:13px 16px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff;color:#1e3a5f;font-size:.86rem}.agent-onboarding span{color:#526a86}.status.active{background:#ecfdf5;color:#047857}.status.active i{background:#10b981}.status.pending{background:#fffbeb;color:#b45309}.status.pending i{background:#f59e0b}.status.suspended{background:#fef2f2;color:#b91c1c}.status.suspended i{background:#ef4444}.license-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.license-summary article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;display:grid;gap:5px}.license-summary small{color:var(--muted);font-weight:750}.license-summary strong{font-size:26px}.customer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.customer-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:22px;box-shadow:0 4px 18px rgba(15,23,42,.04);display:grid;gap:16px}.customer-card header,.customer-card footer,.license-line,.machine-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.customer-card h3{margin:7px 0 4px;font-size:20px}.customer-card header span,.muted-copy{font-size:12px;color:var(--muted)}.license-line{padding:12px 14px;background:#f8fafc;border-radius:10px;font-size:12px;color:#475569}.module-tags{display:flex;gap:7px;flex-wrap:wrap}.module-tag{background:#eff6ff;color:#075c9e;border:1px solid #bfdbfe;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:850}.module-tag.muted{background:#f8fafc;color:#64748b;border-color:var(--line)}.machine-list{display:grid;gap:8px}.machine-row{border:1px solid var(--line);border-radius:10px;padding:10px 12px}.machine-row>div{display:grid;gap:3px}.machine-row code{font-size:10px;color:#64748b}.customer-card footer{border-top:1px solid var(--line);padding-top:14px;justify-content:flex-end}@media(max-width:760px){.customer-grid,.license-summary{grid-template-columns:1fr}.toolbar-actions{width:100%}.toolbar-actions>*{flex:1}.agent-onboarding{align-items:flex-start;flex-direction:column}}
