:root{--bg: #0c0c0b;--bg-2: #121211;--panel: #181817;--panel-2: #1f1f1d;--border: #2c2b28;--text: #ecebe7;--muted: #98958c;--accent: #d2a758;--accent-dim: #8a6a2c;--accent-strong: #c69a48;--on-accent: #16130c;--muted-strong: #b3b0a7;--accent-text: #e2c07e;--info: #4c8dff;--info-text: #7eaaff;--green: #35c66b;--red: #ff5f56;--radius: 10px;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;height:100%}body{background:var(--bg);color:var(--text);font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}#app{height:100%}a{color:var(--accent);text-decoration:none}h1{font-size:22px;margin:0 0 2px;text-wrap:balance}h2{font-size:14px;margin:0 0 12px;letter-spacing:.02em}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}button{font:inherit;cursor:pointer;border-radius:8px;border:1px solid var(--border);background:var(--panel-2);color:var(--text);padding:8px 16px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:filter .15s,border-color .15s}button:focus-visible,a:focus-visible,.tab:focus-visible,.list-item:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:hover{filter:brightness(1.15)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--on-accent);font-weight:600}button.ghost{background:transparent}button.small{padding:5px 12px;min-height:32px;font-size:13px}input,select{font:inherit;background:var(--bg-2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:9px 12px;outline:none}input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px #d2a75840;outline:none}textarea{font:inherit}input,select,textarea{min-height:38px;max-width:100%}a,.tab,.list-item,.row-click{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.auth-wrap{display:grid;place-items:center;height:100%;padding:24px}.auth-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:32px;width:100%;max-width:380px}.auth-card h1{margin:14px 0 20px}.auth-card form{display:flex;flex-direction:column;gap:14px}.auth-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}.auth-err{color:var(--red);font-size:13px;min-height:0}.auth-err:empty{display:none}.auth-toggle{margin:18px 0 0;color:var(--muted);font-size:13px}.brand{display:flex;align-items:center;gap:9px;font-weight:600;letter-spacing:.01em}.brand-dot{width:12px;height:12px;border-radius:50%;background:linear-gradient(135deg,var(--accent-text),var(--accent-dim));box-shadow:0 0 12px var(--accent-dim)}.brand-icon{height:32px;width:auto;display:block}.brand-word{height:13px;width:auto;display:block}.brand-suffix{color:var(--muted);font-weight:500;font-size:12px;letter-spacing:.14em;text-transform:uppercase}.brand.stacked{flex-direction:column;gap:12px;margin-bottom:6px}.brand.stacked .brand-icon{height:96px}.brand.stacked .brand-word{height:26px}.brand.stacked .brand-tag{height:9px;width:auto;display:block;max-width:100%}.shell{display:flex;flex-direction:column;height:100%}.topbar{display:flex;align-items:center;gap:28px;padding:0 22px;height:56px;background:var(--panel);border-bottom:1px solid var(--border);flex-shrink:0}.nav{display:flex;align-items:center;gap:4px;flex:1;min-width:0;overflow:hidden}.nav-link{white-space:nowrap}.nav-more{position:relative;flex-shrink:0}button.nav-link{background:none;border:0;min-height:0;font:inherit;padding:8px 14px}.nav-more.open>button{color:var(--text);background:var(--panel-2)}.nav-more-menu{display:none;position:absolute;top:calc(100% + 8px);right:0;flex-direction:column;gap:2px;min-width:200px;padding:6px;background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 32px #00000073;z-index:30}.nav-more.open .nav-more-menu{display:flex}.nav-more-menu .nav-link{display:block;padding:10px 12px}.nav-toggle{display:none;width:40px;height:36px;padding:0;font-size:18px;line-height:1}.nav-link{color:var(--muted);padding:8px 14px;border-radius:8px}.nav-link:hover,.nav-link.active{color:var(--text);background:var(--panel-2)}.user{display:flex;align-items:center;gap:12px;margin-left:auto;flex-shrink:0}.topbar{position:relative;z-index:20}.content{flex:1;overflow:auto;padding:24px}.view{max-width:1100px;margin:0 auto}.view-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}.filters{display:flex;gap:10px;align-items:center}.filter-input{min-width:180px}.crumb{font-size:13px;color:var(--muted);margin-bottom:4px}.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:18px}.card-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:16px}.cards>*,.org-grid>*,.tiles>*{min-width:0}.stack{display:grid;gap:16px}@media(max-width:720px){.cards{grid-template-columns:1fr}}.empty{padding:40px 20px;text-align:center;color:var(--muted);line-height:1.6}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px;vertical-align:middle}.dot.on{background:var(--green);box-shadow:0 0 7px var(--green)}.dot.off{background:#4a515c}table.grid{width:100%;border-collapse:collapse}table.grid th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:8px 12px;border-bottom:1px solid var(--border)}table.grid td{padding:11px 12px;border-bottom:1px solid var(--border);vertical-align:top}table.grid tbody tr:last-child td{border-bottom:none}.row-click{cursor:pointer}.row-click:hover td{background:var(--panel-2)}.host{font-weight:500}.kv{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 16px;padding:6px 0;border-bottom:1px solid var(--border)}.kv:last-child{border-bottom:none}.kv .k{color:var(--muted)}.kv .v{text-align:right;word-break:break-word}.meter{height:8px;background:var(--bg-2);border-radius:5px;overflow:hidden;margin-top:10px}.meter-fill{height:100%;background:linear-gradient(90deg,var(--accent),#9b6dff)}table.mini{width:100%;border-collapse:collapse}table.mini td{padding:6px 8px;border-bottom:1px solid var(--border)}table.mini tr:last-child td{border-bottom:none}.cmd-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}.cmd-input{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.cmd-out{background:var(--bg-2);border:1px solid var(--border);border-radius:8px;padding:12px;margin:0;max-height:320px;overflow:auto;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;color:#c7d0dc}.cmd-out.fail{color:#ffb3ae}.org-grid{display:grid;grid-template-columns:280px 1fr;gap:16px;align-items:start}@media(max-width:720px){.org-grid{grid-template-columns:1fr}}.card.grow{min-height:200px}.inline-add{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}.inline-add>input,.inline-add>select{min-width:0}.inline-add>textarea{flex:1 1 100%}.inline-add>button{flex:0 0 auto}.inline-input{flex:1 1 160px}.list{display:flex;flex-direction:column;gap:2px}.list-item{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:8px;cursor:pointer}.list-item:hover{background:var(--panel-2)}.list-item.active{background:var(--panel-2);box-shadow:inset 2px 0 0 var(--accent)}.pad{padding:10px 2px}.site-row{padding:14px 0;border-bottom:1px solid var(--border)}.site-row:last-child{border-bottom:none}.site-head{margin-bottom:8px}.token-area{margin-top:4px}.token-row{display:flex;gap:8px;align-items:center;margin-top:6px}.token{flex:1;background:var(--bg-2);border:1px solid var(--border);border-radius:8px;padding:10px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;color:#c7d0dc;word-break:break-all}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:var(--panel-2);border:1px solid var(--border);border-radius:8px;padding:12px 18px;opacity:0;transition:opacity .25s,transform .25s;z-index:50;box-shadow:0 8px 24px #0006}.toast.show{opacity:1;transform:translate(-50%)}.toast.err{border-color:var(--red)}.toast.ok{border-color:var(--green)}.cards.stack{grid-template-columns:1fr}.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.badge.sev-warning{background:#f0b42829;color:#f0b428}.badge.sev-critical{background:#ff5f5629;color:var(--red)}.status-dot{display:inline-block;width:9px;height:9px;border-radius:50%;vertical-align:middle;background:var(--muted)}.status-dot.ok{background:var(--green)}.status-dot.warn{background:#f0b428}.status-dot.fail{background:var(--red)}.status-dot.error{background:#b07cff}.status-dot.none{background:var(--border)}.row-actions{display:flex;gap:6px;flex-wrap:wrap;white-space:nowrap}button.ghost.danger:hover{color:var(--red);border-color:var(--red)}.add-check{margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}.add-check h3{margin:0 0 12px;font-size:14px}.field-row{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px;align-items:flex-end}.field{display:flex;flex-direction:column;gap:4px}.field>span{font-size:12px;color:var(--muted)}.field.grow-field{justify-content:flex-end}.num-input{width:90px;padding:8px 10px;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text)}.small-input{max-width:160px}.badge.sev-offline{margin-left:6px;background:#8b94a32e;color:var(--muted)}.script-body{width:100%;min-width:420px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;padding:8px 10px;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);resize:vertical}.field.grow-wide{flex:1 1 100%}.scope-picker{display:inline-flex;gap:6px}.run-row{display:flex;gap:10px;align-items:center;padding:6px 0}tr.run-tr td{background:#d2a7580f}tr.clickable{cursor:pointer}tr.clickable:hover td{background:#ffffff08}.badge.st-ok{background:#35c66b29;color:var(--green);margin-right:4px}.badge.st-fail{background:#ff5f5629;color:var(--red);margin-right:4px}.badge.st-running,.badge.st-queued{background:#4c8dff29;color:var(--info-text);margin-right:4px}.job-script{margin:8px 0 14px}.job-script summary{cursor:pointer}.badge.sev-important{background:#f0b42829;color:#f0b428}.badge.sev-moderate{background:#4c8dff29;color:var(--info-text)}.badge.sev-low,.badge.sev-unspecified{background:#8b94a32e;color:var(--muted-strong)}.field.check-field{flex-direction:row;align-items:center;gap:8px}.field.check-field>span{font-size:13px;color:var(--text)}.badge.tk-open{background:#4c8dff29;color:var(--info-text)}.badge.tk-in_progress{background:#f0b42829;color:#f0b428}.badge.tk-waiting{background:#b07cff29;color:#b07cff}.badge.tk-resolved,.badge.tk-closed{background:#35c66b29;color:var(--green)}.badge.pr-urgent{background:#ff5f5629;color:var(--red)}.badge.pr-high{background:#f0b42829;color:#f0b428}.badge.pr-normal{background:#8b94a32e;color:var(--muted-strong)}.badge.pr-low{background:#8b94a31f;color:var(--muted-strong)}.button-link{display:inline-block;padding:6px 12px;border:1px solid var(--accent);border-radius:8px;color:var(--accent);text-decoration:none;font-size:13px}.timeline{display:flex;flex-direction:column;gap:10px;margin:8px 0 16px}.note{padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--bg)}.note.system{border-style:dashed;opacity:.8}.note-body{white-space:pre-wrap;margin-top:4px}.ticket-desc{margin:10px 0 14px}.tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.tag{font-size:11px;padding:1px 7px;border-radius:9px;background:#d2a75824;color:var(--accent);white-space:nowrap}.scroll-list{max-height:320px;overflow:auto;margin-top:8px}.inline-input.grow{flex:1;min-width:120px}.card .filter-input{width:100%;box-sizing:border-box}.install-cmds code.token{display:block;margin:4px 0;white-space:pre-wrap;word-break:break-all}.tabs{display:flex;gap:4px;flex-wrap:wrap}.tab{background:transparent;border:1px solid var(--border);color:var(--muted);padding:6px 14px;border-radius:8px;cursor:pointer}.tab.active{color:var(--text);background:var(--panel);border-color:var(--accent)}.field-col{display:flex;flex-direction:column;gap:8px}.field.check-field{flex-direction:row;align-items:center;gap:6px}.check-field{display:inline-flex;align-items:center;gap:6px}.script-body{width:100%;min-height:80px;font-family:var(--mono, monospace);font-size:12px;background:var(--bg-2);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:8px}select.ghost{background:var(--bg-2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:6px 10px}select,select option,select optgroup{color-scheme:dark}select option{background:var(--bg-2);color:var(--text)}select option:disabled{color:var(--muted)}.site-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.mfa-setup{display:flex;gap:16px;align-items:center;margin:12px 0;flex-wrap:wrap}.mfa-setup img{background:#fff;padding:6px;border-radius:8px}select.multi{min-height:64px;min-width:140px}.kv .v.grow{flex:1;text-align:left}.kv .v.grow textarea,.kv .v.grow input{width:100%;box-sizing:border-box}.user a.muted{text-decoration:none}.user a.muted:hover,.user a.active{color:var(--text)}.tools .tool-body{margin-top:8px}.tool-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.tool-head .filter-input,.tool-head .cmd-input{flex:1;min-width:160px}.scroll-list.tall{max-height:480px}.event-msg{white-space:pre-wrap;word-break:break-word;max-width:520px}.reg-val{word-break:break-all;max-width:420px}img.shot{max-width:100%;border:1px solid var(--border);border-radius:8px;margin-top:8px}.cards .card.tools{grid-column:1 / -1}.stats{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0 12px}.stat{background:var(--bg-2);border:1px solid var(--border);border-radius:8px;padding:10px 16px;min-width:110px}.stat-v{font-size:22px;font-weight:600}.stat.ok .stat-v{color:var(--green)}.stat.bad .stat-v{color:var(--red)}.stat.warn .stat-v{color:#f0b428}tr.row-bad td:first-child{border-left:3px solid var(--red)}.ring{border:1px solid var(--border);border-radius:8px;padding:10px 12px;margin-bottom:10px}.ring-list{margin-bottom:10px}.days{display:flex;gap:8px;flex-wrap:wrap}.stars{display:flex;gap:6px;margin:12px 0}.star{font-size:28px;background:none;border:none;color:var(--muted);cursor:pointer}.star.on{color:#f0b428}.sla-ok{color:var(--green)}.sla-due{color:#f0b428}.sla-breached{color:var(--red);font-weight:600}.note.public{border-left:3px solid var(--accent)}.psa-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:10px 0}.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 14px}.dash.loading{opacity:.5;transition:opacity .15s}.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}@media(max-width:1100px){.tiles{grid-template-columns:repeat(2,1fr)}}.tile{display:block;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;color:var(--text);text-decoration:none}a.tile:hover{border-color:var(--accent-dim);color:var(--text)}.tile-v{font-size:26px;font-weight:600;letter-spacing:-.01em;line-height:1.1}.tile-l{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-top:6px;display:flex;gap:6px;align-items:center}.tile-ic{font-size:10px}.chart{position:relative}.chart-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}.chart-title{font-weight:600;font-size:14px}.chart-tools{display:flex;gap:10px;align-items:center}.chart-legend{display:flex;gap:12px;font-size:12px;color:var(--muted)}.legend-item{display:inline-flex;gap:6px;align-items:center}.legend-key{display:inline-block;width:14px;height:3px;border-radius:2px}.legend-key.rect{width:10px;height:10px;border-radius:2px}.chart-plot{width:100%;min-height:40px}.chart-svg{display:block;overflow:visible}.chart-svg .grid-line{stroke:var(--border);stroke-width:1}.chart-svg .axis-text{fill:var(--muted);font-size:11px}.chart-svg .axis-text.label{fill:var(--text)}.chart-svg .axis-text.value{fill:var(--text);font-weight:600}.chart-svg .crosshair{stroke:var(--muted);stroke-width:1}.chart-svg .end-dot{stroke:var(--panel);stroke-width:2}.chart-svg .bar{transition:filter .1s;outline:none}.chart-svg .bar.lift,.chart-svg .bar:focus{filter:brightness(1.2)}.chart-tip{position:absolute;pointer-events:none;background:var(--bg-2);border:1px solid var(--border);border-radius:6px;padding:6px 10px;font-size:12px;min-width:120px;box-shadow:0 4px 16px #00000059;z-index:2}.chart-tip[hidden]{display:none}.tip-head{color:var(--muted);margin-bottom:4px}.tip-row{display:flex;gap:8px;align-items:center}.tip-row b{min-width:24px}.chart-table-wrap{max-height:220px;overflow:auto}.chart-table-wrap[hidden],.chart-plot[hidden]{display:none}table.grid td.num,table.grid th.num{text-align:right;font-variant-numeric:tabular-nums}.report-frame{width:100%;height:70vh;border:1px solid var(--border);border-radius:8px;background:#fff}.filters>select,.filters>input{flex:0 0 auto;width:auto;min-width:150px}.inline-add.sched{flex:0 0 auto;align-items:flex-start;flex-wrap:wrap;margin-top:12px}@media(max-width:1440px){.topbar{gap:12px;padding:0 14px}}@media(max-width:900px){.nav-toggle{display:inline-flex}.nav-more{display:none!important}.nav{display:none;overflow:visible;position:absolute;top:56px;left:0;right:0;flex-direction:column;gap:2px;padding:8px;background:var(--panel);border-bottom:1px solid var(--border);box-shadow:0 12px 32px #00000073;max-height:calc(100vh - 56px);overflow:auto}.topbar.open .nav{display:flex}.nav-link{padding:12px 14px}}@media(max-width:900px){.card{overflow-x:auto}.user a.muted{display:none}.view-head{align-items:flex-start}}@media(max-width:720px){.content{padding:12px}.card{padding:14px}h1{font-size:20px}.brand{font-size:14px}.topbar{height:52px}.nav{top:52px;max-height:calc(100vh - 52px)}.card-head{flex-wrap:wrap;gap:4px 12px}.script-body{min-width:0}.inline-add>.inline-input,.inline-add>input,.inline-add>select{flex:1 1 140px}.filters>select,.filters>input{flex:1 1 140px;min-width:0}.num-input{width:72px}.kv .v{text-align:left}.auth-card{padding:22px}.report-frame{height:60vh}.toast{left:12px;right:12px;transform:translateY(20px)}.toast.show{transform:translateY(0)}.mfa-setup{flex-direction:column;align-items:flex-start}}@media(max-width:520px){.tiles{grid-template-columns:1fr}.timer-mode{display:none}.timer-chip{font-size:12px;gap:4px;padding-left:8px}.timer-chip .timer-dot{display:none}.psa-grid{grid-template-columns:1fr 1fr}.stats{gap:8px}.stat{min-width:0;flex:1 1 40%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}.inline-add>input[type=date],.inline-add>input[type=datetime-local]{flex:0 1 190px}.inline-add>.num-input,.inline-add>input[type=number]{flex:0 1 130px;width:auto;min-width:96px}.field-row>.muted.small{align-self:center}table.grid td.muted.small,table.grid td.mono,table.mini td.muted.small{white-space:nowrap}.field>.inline-input,.field>input,.field>select,.field>textarea{flex:0 0 auto}code.token{display:block;margin:8px 0;white-space:pre-wrap;word-break:break-all}table.nics{table-layout:fixed}table.nics td{vertical-align:top;overflow-wrap:anywhere}table.nics td:first-child{width:44%}table.nics .nic-name{font-weight:500}table.nics .nic-ips div{line-height:1.6}.org-section{padding:18px 0;border-top:1px solid var(--border)}.org-section:first-child{padding-top:0;border-top:none}.org-section:last-child{padding-bottom:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;margin-bottom:12px}.section-head h2,.section-head h3{margin:0}.section-head h3{font-size:13px;font-weight:600;letter-spacing:.02em}.section-head .head-group{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.site-head .push-right{margin-left:auto}.site-row:first-of-type{padding-top:4px}input[type=checkbox]{min-height:0;padding:0;width:auto;vertical-align:middle;accent-color:var(--accent);margin:0 4px 0 0}.enrol-options{display:grid;gap:12px;margin-top:10px}.enrol-platform{padding:12px 14px;border:1px solid var(--border);border-radius:8px;background:var(--bg-2)}.enrol-platform-head{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin-bottom:4px}.enrol-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.cmd-block{margin-top:8px}.cmd-block .token-row{align-items:flex-start}.cmd-block code.token{flex:1;margin:0;white-space:pre-wrap;word-break:break-all}.enrol-steps{margin:8px 0 0;padding-left:20px}.enrol-steps li{margin:2px 0}.enrol-where{margin:14px 0 10px}.enrol-where .field{flex:1 1 200px}.enrol-foot{margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}.enrol-status:empty{display:none}.empty-stack{display:flex;flex-direction:column;align-items:center;gap:10px}.modal-backdrop{position:fixed;inset:0;background:#0000008c;display:flex;align-items:flex-start;justify-content:center;padding:48px 16px;overflow:auto;z-index:50}.modal{width:100%;max-width:640px;box-shadow:0 24px 64px #00000080}@media(max-width:720px){.modal-backdrop{padding:12px}}.auth-ok{color:var(--green);font-size:13px;min-height:1em}.auth-ok:empty{display:none}.auth-tabs{margin-bottom:14px}.badge.inv-open{background:#4c8dff29;color:var(--info-text)}.badge.inv-paid{background:#35c66b29;color:var(--green)}.badge.inv-overdue{background:#e048482e;color:var(--red)}.badge.inv-void{background:#8c96a529;color:var(--muted-strong)}.card.stat{padding:14px 16px}.card.stat.warn{border-color:#e0484880}.stat-value{font-size:24px;font-weight:600;margin:4px 0;font-variant-numeric:tabular-nums}table.mini td.num,table.mini th.num{text-align:right;font-variant-numeric:tabular-nums}.danger-text{color:var(--red)}.progress{height:8px;background:var(--bg-2);border:1px solid var(--border);border-radius:6px;overflow:hidden}.progress>span{display:block;height:100%;background:var(--accent)}.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}.stat-row>*{min-width:0}@media(max-width:720px){.stat-row{grid-template-columns:1fr}}td.nowrap,th.nowrap{white-space:nowrap}.chip{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;border:1px solid var(--border)}.chip:before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}.chip.h-on_track{color:var(--green);background:#35c66b1f}.chip.h-at_risk{color:#f0b428;background:#f0b4281f}.chip.h-off_track{color:var(--red);background:#e0484824}.badge.pj-not_started{background:#8c96a529;color:var(--muted-strong)}.badge.pj-in_progress{background:#4c8dff29;color:var(--info-text)}.badge.pj-on_hold{background:#f0b42829;color:#f0b428}.badge.pj-completed{background:#35c66b29;color:var(--green)}.badge.pj-cancelled,.badge.pj-archived{background:#8c96a529;color:var(--muted-strong);text-decoration:line-through}.badge.ms-not_started{background:#8c96a529;color:var(--muted-strong)}.badge.ms-in_progress{background:#4c8dff29;color:var(--info-text)}.badge.ms-waiting_customer{background:#b07cff29;color:#b07cff}.badge.ms-pending_equipment{background:#f0b42829;color:#f0b428}.badge.ms-blocked{background:#e0484829;color:var(--red)}.badge.ms-done{background:#35c66b29;color:var(--green)}.badge.stale{background:#e0484829;color:var(--red)}.progress-wrap{display:flex;align-items:center;gap:8px;min-width:120px}.progress-wrap .progress{flex:1}.progress-wrap .pct{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;width:34px;text-align:right}.ms-table td{vertical-align:middle}.ms-table input[type=text]{width:100%}.ms-table .ms-done td{opacity:.65}.ms-title.done{text-decoration:line-through}.callout{padding:10px 14px;border-radius:8px;border:1px solid rgba(176,124,255,.4);background:#b07cff14;margin:10px 0}.callout.warn{border-color:#f0b42880;background:#f0b42814}.ms-timeline{list-style:none;padding:0;margin:10px 0}.ms-timeline li{display:grid;grid-template-columns:18px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid var(--border)}.ms-timeline li:last-child{border-bottom:none}.ms-timeline .dot{width:12px;height:12px;border-radius:50%;margin-top:4px;background:var(--muted)}.ms-timeline .dot.done{background:var(--green)}.ms-timeline .dot.in_progress{background:var(--accent)}.ms-timeline .dot.waiting_customer{background:#b07cff}.ms-timeline .dot.blocked{background:var(--red)}.ms-timeline .dot.pending_equipment{background:#f0b428}.health-radios{display:flex;gap:10px;flex-wrap:wrap}.health-radios label{display:inline-flex;align-items:center;gap:6px;font-size:13px}.ms-table{table-layout:auto}.ms-table td:nth-child(2){width:30%;min-width:220px}.ms-table td.row-actions,.ms-table td:first-child{white-space:nowrap}.ms-table td:first-child button{padding:2px 6px}.ms-table .num-input{width:64px}.ms-table select{max-width:220px}.health-radios .chip:before{display:none}.health-radios input[type=radio]{margin:0}.ms-table td.row-actions{display:table-cell}.ms-table td.row-actions button{display:inline-block;margin:0 4px 0 0}.badge.doc-draft{background:#8c96a529;color:var(--muted-strong)}.badge.doc-sent{background:#4c8dff29;color:var(--info-text)}.badge.doc-signing{background:#b07cff29;color:#b07cff}.badge.doc-completed{background:#35c66b29;color:var(--green)}.badge.doc-voided{background:#e0484829;color:var(--red);text-decoration:line-through}.badge.sg-pending,.badge.sg-notified{background:#8c96a529;color:var(--muted-strong)}.badge.sg-viewed{background:#4c8dff29;color:var(--info-text)}.badge.sg-signed{background:#35c66b29;color:var(--green)}.badge.sg-declined{background:#e0484829;color:var(--red)}.doc-frame{width:100%;min-height:70vh;border:1px solid var(--border);border-radius:8px;background:#fff}.doc-frame.short{min-height:520px}.tpl-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.tpl-editor textarea.script-body{min-height:60vh;font-size:12.5px;line-height:1.5}@media(max-width:1200px){.tpl-editor{grid-template-columns:1fr}}.tpl-toolbar{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px;align-items:center}.sign-widget h3{margin:14px 0 6px}.sig-pad{width:100%;max-width:640px;height:auto;aspect-ratio:640 / 200;background:#fff;border:1px dashed #889;border-radius:8px;touch-action:none;cursor:crosshair;display:block}.sig-typed-input{width:100%;max-width:640px}.sig-typed-preview{font-family:Brush Script MT,Segoe Script,Snell Roundhand,cursive;font-size:40px;color:#111;background:#fff;border:1px dashed #889;border-radius:8px;padding:10px 18px;margin-top:8px;min-height:70px;max-width:640px}.sign-widget .consent{align-items:flex-start;margin-top:12px}.sign-widget .consent span{font-size:13px;line-height:1.4}.hash{font-family:var(--mono, monospace);font-size:11px;word-break:break-all;color:var(--muted)}.callout.ok{border-color:#35c66b80;background:#35c66b14}.doc-sign-banner{border:1px solid var(--accent);background:#d2a75814;border-radius:8px;padding:12px 14px;margin:12px 0}.nav-badge{display:inline-block;min-width:18px;padding:0 5px;margin-left:6px;border-radius:9px;background:var(--red);color:#fff;font-size:11px;line-height:18px;text-align:center;vertical-align:middle}.chat-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:16px;align-items:start}.chat-inbox{padding:12px}.chat-inbox .card-head{margin-bottom:8px}.chat-list{display:flex;flex-direction:column;gap:6px;max-height:70vh;overflow-y:auto;margin-top:8px}.chat-row{padding:10px 12px;border:1px solid var(--border);border-radius:8px;cursor:pointer;background:var(--bg)}.chat-row:hover{border-color:var(--accent)}.chat-row.active{border-color:var(--accent);background:var(--panel-2)}.chat-row.unread strong{color:var(--accent)}.chat-row-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.chat-row-last{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:2px 0}.chat-pane-card{min-height:60vh;display:flex;flex-direction:column}.chat-pane{display:flex;flex-direction:column;flex:1;min-height:60vh}.chat-msgs{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:12px 4px;max-height:55vh;min-height:300px}.msg{max-width:78%;padding:8px 12px;border-radius:12px;background:var(--bg-2);border:1px solid var(--border);align-self:flex-start;white-space:pre-wrap;word-wrap:break-word}.msg.mine{align-self:flex-end;background:#d2a7582e;border-color:#d2a75866}.msg.tech{align-self:flex-end}.msg.ai{border-style:dashed}.msg.system{align-self:center;background:none;border:none;color:var(--muted);font-size:12px;font-style:italic}.msg-meta{font-size:11px;color:var(--muted);margin-bottom:2px}.typing{min-height:18px;padding:2px 4px}.chat-compose{display:flex;gap:8px;align-items:flex-end;border-top:1px solid var(--border);padding-top:10px}.chat-input{flex:1;resize:vertical;min-height:44px;background:var(--bg-2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font:inherit}.chat-compose-actions{display:flex;gap:6px;align-items:center}.badge.st-waiting{background:#f0b42829;color:#f0b428}.badge.st-active{background:#35c66b29;color:var(--green)}.badge.st-ai{background:#b07cff29;color:#b07cff}.badge.st-closed{background:#8c96a529;color:var(--muted-strong)}@media(max-width:900px){.chat-layout{grid-template-columns:1fr}.chat-list{max-height:30vh}}.ok-text{color:var(--green)}.err-text{color:var(--red)}.scope-notify{display:flex;flex-direction:column;gap:8px}.scope-notify .inline-add{row-gap:6px}.scope-notify .check-field{margin-right:10px}.site-notify{margin-top:6px}.site-notify>summary{cursor:pointer;list-style:none}.site-notify>summary:before{content:"▸ "}.site-notify[open]>summary:before{content:"▾ "}.site-notify .scope-notify.compact{padding:8px 0 4px 14px;border-left:2px solid var(--border);margin-top:6px}.modal textarea{width:100%;min-height:60px;font:inherit;background:var(--bg-2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 10px}.modal textarea.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.modal .note p{margin:4px 0}.patch-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0}.patch-actions select{width:auto}.devices-card .table-scroll{overflow-x:auto}.devices-grid th.sortable{cursor:pointer;user-select:none;white-space:nowrap}.devices-grid th.sortable:hover,.devices-grid th.sorted{color:var(--text)}.devices-grid .sort-mark{font-size:11px;color:var(--accent-text, var(--accent))}.devices-grid th.num,.devices-grid td.num{text-align:right}.devices-grid td{white-space:nowrap}.sort-note{margin:-4px 0 8px}.modal-foot{display:flex;justify-content:space-between;gap:8px;margin-top:14px}.col-picker{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-height:60vh}.col-picker>div{overflow:auto;max-height:60vh}.col-avail{margin-top:8px}.col-group{font-weight:600;margin:10px 0 4px;font-size:13px}.col-check{display:flex;align-items:center;gap:6px;padding:2px 0;font-size:14px;cursor:pointer}.col-check input{width:auto}.col-row{display:flex;align-items:center;gap:4px;padding:3px 0;border-bottom:1px solid var(--border)}.col-row .col-name{flex:1;font-size:14px}.sort-levels{display:flex;flex-direction:column;gap:8px;margin-top:10px;align-items:flex-start}.sort-level{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.sort-level>span:first-child{width:52px}.sort-level select{width:auto;max-width:240px}.sort-level{flex-wrap:nowrap}@media(max-width:720px){.sort-level{flex-wrap:wrap}}.view.view-wide{max-width:1800px}@media(max-width:720px){.col-picker{grid-template-columns:1fr;max-height:none}}.timer-chip{display:flex;align-items:center;gap:6px;padding:2px 4px 2px 10px;border:1px solid var(--border);border-radius:999px;background:var(--bg-2);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:13px}.timer-chip a{color:var(--text);text-decoration:none}.timer-dot{width:8px;height:8px;border-radius:50%;background:#d03b3b;animation:timer-pulse 1.6s ease-in-out infinite}@keyframes timer-pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.timer-dot{animation:none}}.ticket-timer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;margin:8px 0;border:1px solid var(--border);border-radius:8px;background:var(--bg-2)}.ticket-timer .timer-clock{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;min-width:64px}.ticket-timer .timer-note{flex:1;min-width:160px}.card.notice{border-left:3px solid var(--green, #2ea043);padding:12px 16px;margin-bottom:16px}.pay-card,.pay-method-card{margin-bottom:16px}.pay-method-card .check-field{margin-top:12px}.pay-card{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between}.pay-card .pay-actions{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center}.pay-card>.muted{flex-basis:100%}.view>.card+.card{margin-top:16px}.plan-banner{background:#fab2191f;border-bottom:1px solid var(--border);padding:8px 16px;font-size:14px;text-align:center}.plan-banner.warn{background:#e0484829}.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:12px 0}.plan-card{border:1px solid var(--border);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:8px}.plan-card.featured{border-color:var(--accent, #3987e5)}.plan-card h3{margin:0}.plan-card ul{margin:4px 0;padding-left:18px;flex:1}.plan-card li{margin:3px 0}.plan-price{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums}.ai-box{border:1px solid var(--border);border-left:3px solid var(--accent, #3987e5);border-radius:var(--radius);padding:12px 14px;margin:12px 0;display:flex;flex-direction:column;gap:8px}.ai-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.ai-out p{margin:0 0 6px}.ai-out ul,.ai-out ol{margin:4px 0 6px;padding-left:20px}.ai-out:empty{display:none}.ai-card{margin-bottom:16px}.meter{height:8px;border-radius:4px;background:var(--panel-2, #1c212a);overflow:hidden;margin:8px 0}.meter-fill{height:100%;background:var(--accent, #3987e5)}.meter-fill.warn{background:#d03b3b}.ai-fix{border-top:1px solid var(--border);padding:10px 0 4px;display:flex;flex-direction:column;gap:4px}.ai-fix.dismissed{opacity:.6}.ai-fix pre.cmd-out{margin:4px 0;white-space:pre-wrap;word-break:break-word}.desk-card{border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;margin:12px 0;display:flex;flex-direction:column;gap:10px}.desk-card:empty{display:none}.desk-list{list-style:none;margin:4px 0;padding:0;display:flex;flex-direction:column;gap:2px}.desk-list li{display:flex;align-items:center;justify-content:space-between;gap:8px}.desk-list.checklist li.done label{text-decoration:line-through;opacity:.65}.kb-body{line-height:1.6;max-width:75ch;overflow-wrap:anywhere}.kb-body h1{font-size:22px}.kb-body h2{font-size:18px}.kb-body h3{font-size:16px}.kb-body pre,.kb-body code{background:var(--panel-2, #1c212a);border-radius:4px;padding:1px 5px}.kb-body pre{padding:10px;overflow-x:auto}.kb-body img{max-width:100%}.kb-body table{border-collapse:collapse}.kb-body td,.kb-body th{border:1px solid var(--border);padding:4px 8px}.help-list{list-style:none;margin:4px 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}.rule-rows{display:flex;flex-direction:column;gap:6px;margin:6px 0}.rule-row{align-items:flex-start;flex-wrap:wrap}.rule-row>select{flex:0 1 auto}.dispatch{display:flex;gap:14px;align-items:flex-start}.dispatch-side{flex:0 0 210px;display:flex;flex-direction:column;gap:6px;max-height:70vh;overflow-y:auto}.dispatch-ticket{border:1px solid var(--border);border-left:3px solid var(--border);border-radius:6px;padding:6px 8px;display:flex;flex-direction:column;gap:2px;cursor:grab;overflow-wrap:anywhere}.dispatch-ticket.prio-urgent{border-left-color:#e5484d}.dispatch-ticket.prio-high{border-left-color:#f5a524}.dispatch-ticket button{align-self:flex-start}.dispatch-grid-wrap{flex:1 1 0;min-width:0;overflow-x:auto}.dispatch-grid{border-collapse:collapse;width:100%;min-width:780px;table-layout:fixed}.dispatch-grid th,.dispatch-grid td{border:1px solid var(--border);padding:4px;vertical-align:top;text-align:left;font-weight:500}.dispatch-grid thead th{font-size:12px;color:var(--muted)}.dispatch-grid th.today,.dispatch-grid td.today{background:#5078ff12}.dispatch-grid thead th:first-child,.dispatch-grid tbody th{width:104px;overflow-wrap:anywhere}.dispatch-cell{height:84px}.dispatch-cell.drop{outline:2px dashed var(--accent, #4c7dff);outline-offset:-3px}.dispatch-appt{display:flex;flex-direction:column;gap:1px;width:100%;text-align:left;margin-bottom:4px;padding:4px 6px;border-radius:6px;border:1px solid var(--border);border-left:3px solid #4c7dff;background:var(--bg-2);color:var(--text);font-size:12px;cursor:pointer;overflow-wrap:anywhere}.dispatch-appt.kind-remote{border-left-color:#2bb673}.dispatch-appt.kind-phone{border-left-color:#b07cff}.dispatch-appt.st-done{opacity:.6}.dispatch-time{font-variant-numeric:tabular-nums;font-weight:600}.dispatch-appt{white-space:normal;align-items:stretch}.dispatch-appt>span{display:block;min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere}#bk-times button.active{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--on-accent)}#bk-times button{min-width:64px}.dispatch-add{opacity:.35;padding:0 8px}.dispatch-cell:hover .dispatch-add,.dispatch-add:focus{opacity:1}@media(max-width:720px){.dispatch{flex-direction:column}.dispatch-side{flex:none;width:100%;max-height:220px}.dispatch-grid-wrap{width:100%}}.dispatch-appt>span.dispatch-time{white-space:nowrap;font-size:11.5px}.recon-flags{margin:0;padding-left:16px}.quote-sums{margin:8px 0;font-size:13px;color:var(--muted-strong)}.quote-line .num-input{width:86px}.convert-step{padding:4px 0}a.button-link.primary{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--on-accent);font-weight:600}a.button-link.active{border-color:var(--accent);color:var(--text)}.pre-wrap{white-space:pre-wrap}.quote-total{font-size:18px;font-weight:600;color:var(--text);margin:4px 0}.plan-card{display:flex;flex-direction:column;gap:10px}.gantt{border:1px solid var(--border);border-radius:var(--radius);padding:8px 10px;overflow-x:auto}.gantt-row{display:flex;align-items:center;gap:10px;min-width:620px;height:26px}.gantt-label{flex:0 0 190px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted-strong)}.gantt-label.strong{color:var(--text);font-weight:600}.gantt-track,.gantt-scale{position:relative;flex:1 1 0;height:100%}.gantt-track{border-left:1px solid var(--border);background:linear-gradient(to right,transparent,transparent)}.gantt-tick{position:absolute;top:4px;font-size:11px;color:var(--muted);transform:translate(-50%);white-space:nowrap}.gantt-bar{position:absolute;top:6px;height:14px;border-radius:4px;background:var(--accent-dim);min-width:6px}.gantt-bar.gm{top:4px;height:18px;background:var(--accent)}.gantt-bar.st-done{background:var(--green);opacity:.75}.gantt-bar.st-blocked{background:var(--red)}.gantt-bar.st-in_progress{background:var(--accent-strong)}.gantt-bar.gt.st-todo{background:#56627a}.gantt-today{position:absolute;top:0;bottom:0;width:1px;background:#f5a524}.gantt-nodate{position:absolute;left:8px;top:4px}.plan-mdates{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:8px}.callout.warn{border-color:#6b5320;background:#f5a52414}.callout.warn ul{margin:4px 0 0;padding-left:18px}.plan-meter{margin:6px 0}.meter{height:8px;border-radius:4px;background:var(--panel-2);overflow:hidden}.meter-fill{display:block;height:100%;background:var(--accent)}.meter-fill.over{background:var(--red)}.load-grid th,.load-grid td{text-align:left}.load-cell{min-width:84px;font-variant-numeric:tabular-nums}.load-cell.some{background:#4c8dff1a}.load-cell.high{background:#f5a5242e}.load-cell.over{background:#ff5f5638}@media(max-width:720px){.gantt-label{flex-basis:120px}}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin:6px 0 14px}.catalog-item{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;white-space:normal;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-2);color:var(--text);cursor:pointer}.catalog-item:hover,.catalog-item:focus-visible{border-color:var(--accent)}.callout.approval{margin:8px 0}a.button-link.ms-signin{display:flex;justify-content:center;padding:10px 12px;font-weight:600;margin-bottom:4px}.auth-or{text-align:center;margin:4px 0}.hist-chart{width:100%;height:auto;display:block;margin-top:6px}.hist-grid{stroke:var(--border);stroke-width:1;vector-effect:non-scaling-stroke}.hist-axis{fill:var(--muted);font-size:11px}.hist-line{fill:none;stroke:var(--accent);stroke-width:1.6;vector-effect:non-scaling-stroke;stroke-linejoin:round}.hist-band{fill:var(--accent);opacity:.16}.hist-dot{fill:var(--accent)}.cards .card#history-card{grid-column:1 / -1}.hist-chart{max-height:300px}.lib-list{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}.lib-item{border:1px solid var(--border);border-radius:8px;padding:8px 12px}.lib-item>summary{cursor:pointer}.lib-name{font-weight:600}.lib-body{background:var(--bg-2);border-radius:6px;padding:10px;margin:8px 0;overflow-x:auto;font-size:12.5px;white-space:pre;max-height:320px}.wf-steps{display:flex;flex-direction:column;gap:10px;margin:12px 0}.wf-step{border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:8px;padding:10px 12px}.wf-step-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}.wf-num{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--accent);color:var(--on-accent);font-size:12px;font-weight:700;flex:0 0 auto}.wf-step-head .wf-label{flex:1 1 180px;min-width:0}.wf-step select{max-width:100%}.wf-log{display:flex;flex-direction:column;gap:8px;padding:6px 0}.wf-log-item strong{margin:0 4px}.wf-run{margin-top:12px;flex-wrap:wrap}
