/*
Theme Name: HSLG Executive Operations
Theme URI: https://hslg.uk/
Description: Premium director-grade rotating operations wallboard for HSLG Site Monitor Core.
Author: Matthew Yabsley
Author URI: mailto:mattyabs@yahoo.com
Version: 1.1.15
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: hslg-executive-operations
*/

:root{
  --bg:#080c12;
  --bg-deep:#06090e;
  --surface:#101722;
  --surface-2:#121b27;
  --surface-3:#162130;
  --surface-soft:rgba(20,30,43,.82);
  --line:rgba(255,255,255,.075);
  --line-strong:rgba(255,255,255,.12);
  --text:#f2f6fa;
  --text-soft:#d2d9e2;
  --muted:#8794a5;
  --muted-2:#657184;
  --accent:#73a7ff;
  --accent-soft:rgba(115,167,255,.14);
  --healthy:#56c98b;
  --healthy-soft:rgba(86,201,139,.12);
  --warning:#e7ad58;
  --warning-soft:rgba(231,173,88,.13);
  --critical:#ef6672;
  --critical-soft:rgba(239,102,114,.14);
  --unknown:#8f9aaa;
  --maintenance:#6fb5ed;
  --radius-lg:18px;
  --radius-md:13px;
  --radius-sm:9px;
  --shadow-lg:0 24px 70px rgba(0,0,0,.24);
  --shadow-sm:0 8px 28px rgba(0,0,0,.15);
}

*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--text)}
body{
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.005em;
  text-rendering:optimizeLegibility;
}
body.admin-bar{margin-top:0!important}#wpadminbar{display:none!important}
button{font:inherit}

.noc-shell{
  position:relative;
  width:100vw;height:100vh;
  display:grid;
  grid-template-rows:78px 64px minmax(0,1fr) 86px;
  gap:10px;
  padding:14px 16px 12px;
  background:
    radial-gradient(900px 460px at 78% -8%,rgba(79,128,208,.10),transparent 62%),
    radial-gradient(700px 420px at -8% 102%,rgba(63,114,89,.06),transparent 62%),
    linear-gradient(180deg,#0a0f16 0%,#080c12 58%,#070b10 100%);
}
.noc-shell:before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.45;
  background-image:linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.008) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.5),transparent 78%);
}
.noc-shell>*{position:relative;z-index:1}

.noc-header{
  display:grid;grid-template-columns:minmax(290px,.9fr) minmax(520px,1.55fr) minmax(255px,.75fr);
  align-items:center;gap:20px;
  padding:10px 18px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:linear-gradient(180deg,rgba(19,28,40,.94),rgba(13,20,29,.94));
  box-shadow:var(--shadow-sm),inset 0 1px rgba(255,255,255,.035);
  backdrop-filter:blur(18px);
}
.brand-lockup{display:flex;align-items:center;gap:13px;min-width:0}
.brand-mark{
  width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;
  border:1px solid rgba(115,167,255,.32);border-radius:11px;
  background:linear-gradient(145deg,rgba(115,167,255,.20),rgba(115,167,255,.05));
  color:#cfe0ff;font-weight:800;font-size:21px;letter-spacing:-.04em;
  box-shadow:inset 0 1px rgba(255,255,255,.08);
}
.brand-copy{min-width:0;line-height:1.05}
.brand-company{font-size:10px;font-weight:650;color:var(--muted);letter-spacing:.10em;text-transform:uppercase;white-space:nowrap}
.noc-brand{margin-top:5px;font-size:17px;font-weight:650;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.noc-current-venue{text-align:center;min-width:0;padding:0 10px}
.venue-eyebrow{font-size:9px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--muted-2);margin-bottom:3px}
.current-venue-name{font-size:clamp(26px,1.8vw,36px);line-height:1;font-weight:650;letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.current-venue-state{margin-top:5px;font-size:10px;line-height:1;color:var(--muted);font-weight:650;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}

.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px}
.rotation-toggle{
  height:42px;min-width:76px;padding:0 12px;border:1px solid var(--line-strong);border-radius:11px;
  display:flex;align-items:center;justify-content:center;gap:8px;
  background:rgba(255,255,255,.025);color:var(--text-soft);cursor:pointer;
  transition:background .18s,border-color .18s,transform .18s,box-shadow .18s;
}
.rotation-toggle:hover{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.18)}
.rotation-toggle:active{transform:translateY(1px)}
.rotation-toggle.is-paused{color:#dbe7fb;background:var(--accent-soft);border-color:rgba(115,167,255,.36);box-shadow:inset 0 0 0 1px rgba(115,167,255,.08)}
.rotation-toggle:focus-visible{outline:2px solid rgba(115,167,255,.55);outline-offset:2px}
.pause-glyph{font-size:15px;font-weight:750;line-height:1}.pause-caption{font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.08em}
.noc-clock{text-align:right;line-height:1;min-width:125px}
.noc-time{font-size:26px;font-weight:520;letter-spacing:-.04em}
.noc-date{font-size:9px;color:var(--muted);margin-top:6px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}

.noc-statusbar{
  display:grid;grid-template-columns:repeat(5,minmax(125px,158px)) 1fr auto auto;
  gap:8px;align-items:stretch;
}
.stat{
  min-width:0;padding:9px 13px 8px;
  display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;column-gap:8px;align-items:center;
  border:1px solid var(--line);border-radius:var(--radius-md);
  background:linear-gradient(180deg,rgba(18,27,39,.86),rgba(13,20,29,.86));
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
.stat span{font-size:9px;font-weight:700;color:var(--muted);letter-spacing:.09em;text-transform:uppercase}
.stat b{grid-row:1/3;grid-column:2;font-size:24px;line-height:1;font-weight:570;letter-spacing:-.04em;color:var(--text)}
.stat small{font-size:9px;line-height:1;color:var(--muted-2);font-weight:550}
.stat-healthy{border-color:rgba(86,201,139,.13);background:linear-gradient(180deg,rgba(20,39,34,.72),rgba(13,24,24,.82))}
.stat-healthy b{color:#7fe0aa}
.stat-warning{border-color:rgba(231,173,88,.13)}.stat-warning b{color:#edc17e}
.stat-critical{border-color:rgba(239,102,114,.12)}.stat-critical b{color:#f58d96}
.stat-verifying b{color:#b8c4d3}
.status-spacer{min-width:8px}
.slideshow-state,.live-state{
  align-self:center;white-space:nowrap;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.02);
  padding:8px 11px;font-size:9px;font-weight:700;letter-spacing:.065em;text-transform:uppercase;color:var(--muted);
}
.live-state:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:7px;vertical-align:1px;background:currentColor;box-shadow:0 0 0 3px currentColor;opacity:.78}
.live-state.live{color:var(--healthy)}
.live-state.reconnecting,.live-state.degraded{color:var(--warning)}
.live-state.stale,.live-state.offline{color:var(--critical)}

.monitor-health-panel{
  position:absolute;z-index:40;right:18px;top:88px;width:min(680px,calc(100vw - 36px));
  border:1px solid rgba(231,173,88,.35);border-radius:13px;
  background:rgba(42,34,21,.96);color:#f2c984;padding:10px 12px;
  display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;
  box-shadow:0 18px 55px rgba(0,0,0,.38);backdrop-filter:blur(14px);
}
.monitor-health-panel[hidden]{display:none}
.monitor-health-panel.critical{border-color:rgba(239,102,114,.42);background:rgba(49,23,28,.97);color:#f49aa2}
.monitor-health-icon{width:24px;height:24px;border-radius:7px;background:currentColor;color:#111923;display:grid;place-items:center;font-weight:900;font-size:12px}
.monitor-health-copy{display:flex;flex-direction:column;min-width:0}
.monitor-health-copy strong{font-size:10px;letter-spacing:.06em;text-transform:uppercase}
.monitor-health-copy span{font-size:10px;color:rgba(255,255,255,.66);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.monitor-health-recovery{font-size:9px;font-weight:750;white-space:nowrap;text-transform:uppercase;letter-spacing:.07em}

.noc-main{min-height:0;overflow:hidden;touch-action:pan-y;cursor:default}
.noc-main.dragging{cursor:default}
.noc-main .venue-slide{will-change:transform,opacity;transform:translate3d(0,0,0)}
.noc-main .venue-slide.is-dragging{transition:none}
.noc-main .venue-slide.snap-back{transition:transform 170ms cubic-bezier(.2,.8,.2,1),opacity 170ms ease-out}
.venue-slide{
  height:100%;min-height:0;padding:0;
  border:1px solid var(--line);border-radius:var(--radius-lg);
  background:linear-gradient(180deg,rgba(16,23,34,.92),rgba(11,17,25,.94));
  box-shadow:var(--shadow-lg),inset 0 1px rgba(255,255,255,.028);
  overflow:hidden;
}
.venue-slide.status-warning{border-color:rgba(231,173,88,.20)}
.venue-slide.status-critical{border-color:rgba(239,102,114,.30)}
.venue-slide.status-unknown{border-color:rgba(143,154,170,.18)}
.venue-slide.status-maintenance{border-color:rgba(111,181,237,.22)}
.venue-groups{height:100%;display:grid;grid-template-columns:.95fr 1.32fr 1.02fr 1.17fr;gap:9px;padding:10px;min-height:0}
.device-group{
  min-width:0;min-height:0;overflow:hidden;
  display:grid;grid-template-rows:42px minmax(0,1fr);
  border:1px solid var(--line);border-radius:14px;
  background:linear-gradient(180deg,rgba(22,32,46,.80),rgba(14,21,31,.77));
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
.device-group-head{
  display:flex;justify-content:space-between;align-items:center;padding:0 13px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.018);
  font-size:9px;font-weight:750;color:#9aa8b9;letter-spacing:.095em;text-transform:uppercase;
}
.device-group-head span:last-child{
  min-width:24px;height:22px;padding:0 7px;display:grid;place-items:center;border-radius:999px;
  background:rgba(255,255,255,.045);color:#cfd7e1;font-size:9px;letter-spacing:0;
}
.device-group-body{min-height:0;padding:3px 1px 8px 4px;overflow-y:auto;overflow-x:hidden}
.group-empty{height:100%;display:flex;align-items:center;justify-content:center;color:var(--muted-2);font-size:9px;font-weight:650;letter-spacing:.07em;text-transform:uppercase}

.asset-block{position:relative;margin:0;padding:8px 6px 9px;border-bottom:1px solid rgba(255,255,255,.055);border-radius:8px}
.asset-block:last-child{border-bottom:0}
.asset-block.warning{background:linear-gradient(90deg,var(--warning-soft),rgba(231,173,88,.015) 76%)}
.asset-block.critical{background:linear-gradient(90deg,var(--critical-soft),rgba(239,102,114,.02) 76%)}
.asset-row{display:grid;grid-template-columns:minmax(100px,1.02fr) minmax(110px,1.28fr) auto;gap:8px;align-items:center;min-height:29px;font-size:clamp(10px,.66vw,13px)}
.asset-name-wrap{display:flex;flex-direction:column;min-width:0}
.asset-name{font-size:clamp(11px,.74vw,14px);font-weight:650;line-height:1.08;color:#eff4f9;white-space:normal;overflow:visible;text-overflow:clip;letter-spacing:-.012em}
.asset-name-wrap small{margin-top:3px;font-size:8px;line-height:1.05;color:var(--muted-2);font-weight:650;letter-spacing:.07em;text-transform:uppercase;white-space:normal;overflow:visible;text-overflow:clip}
.asset-host{color:#77879a!important;font-weight:520!important;letter-spacing:0!important;text-transform:none!important;font-size:8.5px!important;line-height:1.08!important}
.asset-mode{color:#91a8c6!important}
.asset-summary{overflow:visible;text-overflow:clip;white-space:normal;color:#a2adbb;font-size:clamp(9px,.58vw,11px);line-height:1.14}
.asset-block.warning .asset-summary{color:#dbbc88}.asset-block.critical .asset-summary{color:#e9a6ac}
.asset-verification{min-width:0;max-width:none;text-align:right;font-size:8px;font-weight:750;letter-spacing:.04em;text-transform:uppercase;white-space:normal;overflow:visible;text-overflow:clip;color:var(--muted);line-height:1.08}
.asset-verification.verifying{color:var(--warning);animation:verifyPulse 1.55s ease-in-out infinite}.asset-verification.failed{color:var(--critical)}
@keyframes verifyPulse{50%{opacity:.5}}
.asset-fault-reason{margin:5px 0 0;padding:5px 8px;border-radius:7px;font-size:8.5px;font-weight:650;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.15}
.asset-fault-reason.warning{color:#ecc47e;background:rgba(231,173,88,.07)}
.asset-fault-reason.critical{color:#f199a1;background:rgba(239,102,114,.08)}

.check-strip{padding:5px 0 0;display:flex;flex-wrap:wrap;gap:5px 7px;overflow:visible;max-height:none}
.check-item{
  min-width:0;max-width:100%;display:inline-flex;align-items:center;gap:5px;padding:4px 7px;
  border:1px solid rgba(255,255,255,.055);border-radius:7px;background:rgba(255,255,255,.018);
  color:#aeb8c5;font-size:clamp(8px,.49vw,9.8px);line-height:1;white-space:nowrap;
}
.check-symbol{width:6px;height:6px;border-radius:50%;overflow:hidden;font-size:0;background:var(--unknown);flex:0 0 auto}
.check-item.healthy .check-symbol{background:var(--healthy)}.check-item.warning .check-symbol{background:var(--warning)}.check-item.critical .check-symbol{background:var(--critical)}.check-item.unknown .check-symbol{background:var(--unknown)}.check-item.maintenance .check-symbol{background:var(--maintenance)}
.check-label{font-weight:700;color:#8f9baa;letter-spacing:.035em}.check-value{color:#d7dee7;font-weight:600}.check-detail{display:none}





















.asset-major-infrastructure{padding:9px 2px 11px}
.asset-major-infrastructure .asset-name{font-size:clamp(13px,.84vw,17px)}
.asset-major-infrastructure .asset-summary{font-size:clamp(10px,.64vw,12px)}
.asset-major-infrastructure .check-strip{padding-top:7px;max-height:124px;gap:6px 8px}
.asset-major-infrastructure .check-item{font-size:clamp(8.5px,.52vw,10.5px)}
.asset-major-infrastructure .check-value{font-weight:650;color:#e2e8ef}









.noc-footer{display:grid;grid-template-rows:45px 31px;gap:8px;min-height:0}
.consensus{
  display:grid;grid-template-columns:170px minmax(0,1fr) minmax(280px,.68fr);align-items:center;
  min-width:0;border:1px solid var(--line);border-radius:var(--radius-md);
  background:linear-gradient(180deg,rgba(18,27,39,.80),rgba(12,19,28,.82));overflow:hidden;
}
.consensus-label{height:100%;padding:0 13px;display:flex;align-items:center;gap:8px;border-right:1px solid var(--line);font-size:9px;font-weight:750;color:#a5b0be;letter-spacing:.075em;text-transform:uppercase}
.consensus-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px rgba(115,167,255,.09)}
.consensus-copy{padding:0 13px;display:flex;flex-direction:row;align-items:baseline;gap:13px;min-width:0}
.consensus-copy strong{font-size:clamp(10px,.67vw,13px);font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.consensus-copy span{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.consensus-event{padding:0 13px;border-left:1px solid var(--line);font-size:8.5px;color:#748195;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}

.rotation-strip{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;
  padding:0 11px;border:1px solid var(--line);border-radius:11px;background:rgba(12,18,27,.78);overflow:hidden;
}
.venue-nav{display:flex;gap:6px;align-items:center;min-width:0;overflow:hidden}
.venue-nav-item{font-size:8.5px;color:#738094;white-space:nowrap;padding:4px 8px;border-radius:999px;border:1px solid transparent;transition:.2s}
.venue-nav-item.healthy{color:#75b795}.venue-nav-item.warning{color:#c6a06a}.venue-nav-item.critical{color:#d5848b}
.venue-nav-item.active{color:#e7edf4;background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.07);font-weight:700}
.rotation-meta{display:flex;gap:9px;align-items:center;font-size:8.5px;color:#7d8999;font-weight:650;white-space:nowrap}
.key-help{opacity:.6}
.rotation-meta .key-help:after{content:" · edge click · touch swipe · space pause";color:#647082}
.snapshot-export{width:25px;height:23px;padding:0;display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:7px;background:rgba(255,255,255,.025);color:#9aa6b4;font-size:11px;font-weight:750;cursor:pointer}
.snapshot-export:hover,.snapshot-export:focus{color:#e6edf6;background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.18);outline:none}
.ai-pack-export{width:29px;font-size:8px;letter-spacing:.02em}

.cache-refresh-export{width:25px;font-size:13px;line-height:1;letter-spacing:0}
.cache-refresh-export.is-working{opacity:.55;animation:hslgCacheSpin .75s linear infinite}
@keyframes hslgCacheSpin{to{transform:rotate(360deg)}}
.rotation-track{position:absolute;left:0;right:0;bottom:0;height:2px;background:rgba(255,255,255,.025)}
.rotation-progress{height:100%;width:0;background:linear-gradient(90deg,#5f8fdc,#85b4ff);transition:width .22s linear;border-radius:99px}

body.critical-lock .noc-shell{background:radial-gradient(700px 360px at 50% -10%,rgba(239,102,114,.08),transparent 70%),linear-gradient(180deg,#0b0e14 0%,#080c12 70%)}
body.critical-lock .noc-header,body.critical-lock .venue-slide,body.critical-lock .consensus{border-color:rgba(239,102,114,.28)}
body.critical-lock .current-venue-state,body.critical-lock .slideshow-state{color:#f08b95;border-color:rgba(239,102,114,.18)}
body.critical-lock .rotation-progress{background:linear-gradient(90deg,#d85663,#f1848d)}
body.critical-pulse .current-venue-state{animation:criticalText 1.8s ease-in-out infinite}
@keyframes criticalText{50%{opacity:.58}}
body.wallboard-offline .noc-shell{box-shadow:inset 0 0 0 2px rgba(239,102,114,.24)}

.empty-state{border:1px solid var(--line);border-radius:var(--radius-lg);height:100%;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);background:linear-gradient(180deg,rgba(16,23,34,.88),rgba(11,17,25,.92));padding:30px}
.empty-state>div{display:flex;flex-direction:column;align-items:center;gap:7px}.empty-state strong{font-size:18px;font-weight:620;color:var(--text);letter-spacing:-.02em}.empty-state span:last-child{font-size:10px}
.empty-orbit{width:28px;height:28px;border:2px solid rgba(115,167,255,.18);border-top-color:var(--accent);border-radius:50%;animation:orbit 1.1s linear infinite;margin-bottom:6px}@keyframes orbit{to{transform:rotate(360deg)}}
.noc-access{width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#080c12,#0e1622);padding:30px}.noc-access-box{width:min(500px,94vw);border:1px solid var(--line);border-radius:20px;padding:34px;background:var(--surface);box-shadow:var(--shadow-lg);text-align:center}.access-mark{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;margin:0 auto 18px;background:var(--accent-soft);border:1px solid rgba(115,167,255,.25);color:#d8e6ff;font-size:22px;font-weight:800}.noc-access h1{font-size:26px;margin:0 0 12px}.noc-access p{color:var(--muted)}.noc-access a{color:#9cc1ff;text-decoration:none}

@media(max-width:1500px){
  .noc-shell{grid-template-rows:70px 58px minmax(0,1fr) 78px;padding:10px 12px;gap:8px}
  .noc-header{grid-template-columns:minmax(250px,.9fr) minmax(400px,1.5fr) minmax(220px,.75fr);padding:8px 14px}
  .brand-mark{width:37px;height:37px}.current-venue-name{font-size:clamp(23px,1.75vw,30px)}.noc-time{font-size:23px}
  .noc-statusbar{grid-template-columns:repeat(5,minmax(105px,138px)) 1fr auto auto;gap:6px}.stat{padding:7px 10px}.stat b{font-size:21px}
  .venue-groups{gap:7px;padding:8px}.device-group{grid-template-rows:37px minmax(0,1fr)}.device-group-head{padding:0 10px}
  .noc-footer{grid-template-rows:41px 29px;gap:6px}.consensus{grid-template-columns:155px minmax(0,1fr) minmax(230px,.62fr)}
}

@media(max-width:980px){
  html,body{overflow:auto}.noc-shell{height:auto;min-height:100vh;grid-template-rows:auto auto auto auto;padding:10px}.noc-header{grid-template-columns:1fr auto}.brand-lockup{grid-column:1}.noc-current-venue{grid-column:1/-1;grid-row:2;padding:10px 0 5px;text-align:left}.header-actions{grid-column:2;grid-row:1}.noc-statusbar{grid-template-columns:repeat(3,minmax(100px,1fr))}.status-spacer{display:none}.slideshow-state,.live-state{justify-self:start}.venue-groups{grid-template-columns:1fr 1fr}.noc-main{min-height:900px}.consensus{grid-template-columns:150px 1fr}.consensus-event{display:none}.rotation-strip{grid-template-columns:1fr}.rotation-meta{justify-self:end}.key-help{display:none}
}

/* Executive venue navigation uses calm status dots rather than terminal glyphs. */
.venue-nav-item:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px;vertical-align:1px;background:var(--unknown)}
.venue-nav-item.healthy:before{background:var(--healthy)}
.venue-nav-item.warning:before{background:var(--warning)}
.venue-nav-item.critical:before{background:var(--critical)}
.venue-nav-item.maintenance:before{background:var(--maintenance)}
.venue-nav-item.active:after{content:"Current";margin-left:6px;font-size:7px;color:#718096;text-transform:uppercase;letter-spacing:.07em}

/* ========================================================================== */
/* 1.1.2 — information-first wallboard density                                  */
/* Author: Matthew Yabsley <mattyabs@yahoo.com>                                */
/* ========================================================================== */

/* The wallboard is not a marketing dashboard. Device information must win. */
.noc-shell{
  grid-template-rows:70px 54px minmax(0,1fr) 72px;
  gap:8px;
  padding:10px 12px 9px;
}
.noc-header{padding:8px 15px;border-radius:15px}
.noc-statusbar{gap:6px}
.stat{padding:7px 11px 6px}
.stat b{font-size:22px}
.noc-footer{grid-template-rows:39px 27px;gap:6px}

.venue-groups{
  grid-template-columns:.86fr 1.48fr .94fr 1.04fr;
  gap:7px;
  padding:7px;
}

.device-group{
  grid-template-rows:34px minmax(0,1fr);
  border-radius:12px;
}
.device-group-head{padding:0 10px;font-size:8.5px}
.device-group-head span:last-child{height:20px;min-width:22px}
.device-group-body{
  padding:3px 1px 7px 4px;
  overflow-y:auto;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.asset-block{
  flex:0 0 auto;
  margin:0;
  padding:7px 6px 8px;
  border-radius:8px;
  border-bottom:1px solid rgba(255,255,255,.055);
}
.asset-block:last-child{border-bottom:0}
.asset-block.warning,.asset-block.critical{margin:0;border-radius:8px;}

.asset-row{
  display:grid;
  grid-template-columns:minmax(105px,1.03fr) minmax(120px,1.12fr) auto;
  gap:7px;
  align-items:center;
  min-height:30px;
}
.asset-name-wrap{min-width:0}
.asset-name{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:normal;word-break:normal;hyphens:none;
  font-size:clamp(10.5px,.69vw,13.5px);
  line-height:1.08;
}
.asset-name-wrap small{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  line-height:1.05;
}
.asset-host{display:none!important}
.asset-summary{
  min-width:0;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:normal;word-break:normal;hyphens:none;
  line-height:1.14;
  font-size:clamp(8.7px,.53vw,10.5px);
}
.asset-verification{
  max-width:none;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  line-height:1.08;
}

/* Dedicated network identity strip: never bury SENT/RECEIVED/LOST in ellipsis. */
.asset-identity{
  margin:4px 0 0 20px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(92px,1fr));
  gap:4px;
}
.asset-identity-item{
  min-width:0;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:5px;
  padding:3px 5px;
  border-radius:5px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.045);
}
.asset-identity-label{
  flex:0 0 auto;
  color:#77869a;
  font-size:7px;
  font-weight:760;
  letter-spacing:.045em;
  white-space:nowrap;
}
.asset-identity-value{
  min-width:0;
  color:#e3eaf2;
  font-size:8.5px;
  font-weight:670;
  line-height:1;
  text-align:right;
  white-space:normal;
  overflow-wrap:normal;word-break:normal;hyphens:none;
}
.asset-identity-item.identity-warning{background:rgba(231,173,88,.07);border-color:rgba(231,173,88,.12)}
.asset-identity-item.identity-warning .asset-identity-value{color:#efc77f}
.asset-identity-item.identity-healthy .asset-identity-value{color:#bcdcc9}

.asset-fault-reason{
  margin:4px 0 0 20px;
  padding:4px 6px;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  line-height:1.15;
  overflow-wrap:normal;word-break:normal;hyphens:none;
}

/* Metrics use a dense table-like grid instead of space-hungry pills. */
.check-strip{
  padding:4px 0 0 20px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:3px 5px;
  overflow:visible;
  max-height:none;
}
.group-windows .check-strip{grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}
.group-windows.group-dense .check-strip{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}
.group-windows.group-very-dense .check-strip{grid-template-columns:repeat(auto-fit,minmax(96px,1fr))}
.group-core .asset-major-infrastructure .check-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
.group-core.group-dense .check-strip,.group-applications.group-dense .check-strip,.group-devices.group-dense .check-strip{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}

.check-item{
  min-width:0;
  max-width:none;
  display:grid;
  grid-template-columns:5px auto minmax(0,1fr);
  align-items:center;
  gap:4px;
  padding:3px 4px;
  border-radius:5px;
  background:rgba(255,255,255,.016);
  border:1px solid rgba(255,255,255,.04);
  font-size:8px;
  line-height:1.05;
  white-space:normal;
}
.check-symbol{width:5px;height:5px}
.check-label{
  font-size:7px;
  line-height:1;
  white-space:nowrap;
  letter-spacing:.025em;
}
.check-value{
  min-width:0;
  font-size:8.4px;
  line-height:1.06;
  text-align:right;
  white-space:normal;
  overflow-wrap:normal;word-break:normal;hyphens:none;
}
.check-detail{display:none}












































/* Router cards are allowed richer telemetry, but never through clipping. */
.asset-major-infrastructure{padding:6px 1px 7px}
.asset-major-infrastructure .asset-name{font-size:clamp(11px,.72vw,14px)}
.asset-major-infrastructure .check-strip{padding-top:4px;max-height:none;gap:3px 5px}
.asset-major-infrastructure .check-item{font-size:8px}







/* At laptop / narrow-preview widths, preserve information rather than hiding it. */
@media(max-width:1500px){
  .noc-shell{grid-template-rows:62px 48px minmax(0,1fr) 62px;padding:7px 8px;gap:6px}
  .noc-header{padding:6px 11px}
  .brand-mark{width:34px;height:34px}
  .current-venue-name{font-size:clamp(21px,1.7vw,28px)}
  .noc-time{font-size:21px}
  .noc-statusbar{grid-template-columns:repeat(5,minmax(92px,125px)) 1fr auto auto;gap:5px}
  .stat{padding:5px 8px}.stat b{font-size:19px}.stat span,.stat small{font-size:7.5px}
  .venue-groups{gap:5px;padding:5px}
  .device-group{grid-template-rows:30px minmax(0,1fr)}
  .device-group-head{padding:0 8px;font-size:7.5px}
  .device-group-body{padding:1px 6px 3px}
  .noc-footer{grid-template-rows:34px 23px;gap:5px}
  .consensus{grid-template-columns:140px minmax(0,1fr) minmax(200px,.58fr)}
  .rotation-strip{padding:0 8px}
}



















/* 1.1.2 readability guard: operational text must never become vertical letter stacks. */
.asset-name,.asset-summary,.asset-fault-reason,.asset-identity-value,.check-label,.check-value{
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
.asset-identity-value{white-space:nowrap!important;}
.check-value{white-space:nowrap;}
.check-item{min-width:84px;}





/* 1.1.2 — dedicated Printer-MIB presentation.
 * Printers can expose far richer/longer values than generic endpoints. Keep the
 * operational data readable instead of forcing it into the generic 3-column
 * telemetry grid. */
.asset-printer{
  padding-top:7px;
  padding-bottom:9px;
}
.asset-printer .asset-row{
  /* 1.1.7: printer headers use the same vertical scan contract as every other
   * asset. The retired 13px status-dot track was a regression after 1.1.6
   * removed the dot from markup and could crush the printer name into it. */
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:3px;
}
.asset-printer .asset-verification{
  text-align:left;
}
.asset-printer .asset-name{font-size:clamp(11px,.72vw,14px)}
.asset-printer .asset-summary{
  font-size:clamp(8.8px,.55vw,10.7px);
  line-height:1.18;
}
.asset-printer .asset-identity{
  grid-template-columns:minmax(0,1fr);
}
.asset-printer .asset-fault-reason{
  margin-top:5px;
  padding:5px 7px;
  font-size:8.6px;
  font-weight:750;
  letter-spacing:.015em;
}
.asset-printer .printer-checks{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px 6px;
  padding-top:5px;
}
.asset-printer .printer-check{
  min-width:0;
  min-height:22px;
  grid-template-columns:5px minmax(46px,auto) minmax(0,1fr);
  gap:4px;
  padding:4px 6px;
  border-radius:6px;
}
.asset-printer .printer-check .check-label{
  font-size:7.5px;
  line-height:1.05;
}
.asset-printer .printer-check .check-value{
  font-size:8.2px;
  line-height:1.12;
  text-align:right;
  white-space:normal;
}
/* Long identity/alert fields need the full card width. */
.asset-printer .check-key-model,
.asset-printer .check-key-observers,
.asset-printer .check-key-printer-fault{
  grid-column:1/-1;
}
.asset-printer .check-key-model .check-value,
.asset-printer .check-key-observers .check-value,
.asset-printer .check-key-printer-fault .check-value{
  text-align:left;
}
.asset-printer .check-key-model{
  grid-template-columns:5px 48px minmax(0,1fr);
}
.asset-printer .check-key-printer-fault{
  min-height:26px;
  border-color:rgba(231,173,88,.18);
  background:rgba(231,173,88,.055);
}
.asset-printer .check-key-printer-fault .check-value{
  font-weight:700;
  color:#f0c982;
}
.asset-printer .check-key-serial .check-value{
  font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  font-size:7.8px;
  letter-spacing:-.02em;
}
.asset-printer .printer-toner{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.asset-printer .printer-toner::before{
  content:"";
  position:absolute;
  z-index:-1;
  left:0;bottom:0;
  width:var(--printer-level,0%);
  height:2px;
  background:currentColor;
  opacity:.55;
}
.asset-printer .printer-toner.critical{
  background:rgba(239,102,114,.075);
  border-color:rgba(239,102,114,.16);
}
.asset-printer .printer-toner.warning{
  background:rgba(231,173,88,.065);
  border-color:rgba(231,173,88,.14);
}
/* Printer panels with one or two devices have room: never crush them into the
 * emergency micro-font modes used for very busy workstation groups. */
.group-devices.asset-count-1 .asset-printer .printer-checks,
.group-devices.asset-count-2 .asset-printer .printer-checks{
  grid-template-columns:repeat(2,minmax(0,1fr));
}










/* ========================================================================== */
/* HSLG UI DESIGN MANDATE — 1.1.7                                            */
/* Modern enterprise operations UI: scroll before shrink; content before chrome. */
/* ========================================================================== */

/* Stable columns. Content pressure is vertical, never solved by starving a sibling. */
.venue-groups,
.venue-groups.layout-focus-windows,
.venue-groups.layout-focus-core,
.venue-groups.layout-focus-applications,
.venue-groups.layout-focus-devices{grid-template-columns:1fr 1fr 1fr 1fr}

/* Each column owns a real vertical viewport. No meaningful row may vanish at its edge. */
.device-group{overflow:hidden}
.device-group-body{
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scroll-behavior:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(151,164,181,.34) transparent;
}
.device-group-body::-webkit-scrollbar{width:6px}
.device-group-body::-webkit-scrollbar-track{background:transparent}
.device-group-body::-webkit-scrollbar-thumb{background:rgba(151,164,181,.28);border-radius:999px}
.device-group:hover .device-group-body::-webkit-scrollbar-thumb{background:rgba(151,164,181,.46)}
.device-group.is-scrollable .device-group-head::after{content:'↓';margin-left:auto;color:#718095;font-size:10px;font-weight:650}
.device-group.is-motion-held .device-group-head::after{content:'Ⅱ';color:#aeb8c5}

/* Device status uses the title itself. A redundant status-light track wastes scan width. */
.asset-row{grid-template-columns:minmax(100px,1.02fr) minmax(110px,1.28fr) auto;gap:8px}
.asset-name.status-healthy{color:#dceee4}
.asset-name.status-warning{color:#efc77f}
.asset-name.status-critical{color:#f0a0a7}
.asset-name.status-unknown{color:#b4bfcc}
.asset-name.status-maintenance{color:#9fcdf0}

/* Data begins on the content edge now that the decorative dot gutter is gone. */
.asset-identity,.asset-fault-reason,.check-strip{margin-left:0;padding-left:0}

/* Responsive policy: preserve readable type and let columns scroll vertically. */
@media(max-width:1500px){
  .device-group-head{font-size:8.5px}
  .asset-row{grid-template-columns:minmax(92px,1fr) minmax(96px,1.08fr) auto;gap:6px}
  .asset-name{font-size:clamp(10.5px,.75vw,13px)}
  .asset-summary{font-size:clamp(8.8px,.62vw,10.5px)}
  .asset-verification{font-size:7.5px}
  .check-label{font-size:7px}
  .check-value{font-size:8px}
}

/* ========================================================================== */
/* HSLG UI RELEASE GATE — 1.1.7                                               */
/* Collision-proof card headers. Real exported wallboard HTML is the fixture. */
/* ========================================================================== */

/*
 * A four-column operations wall does not have enough reliable horizontal room
 * for title + prose summary + verification to compete on one line. The card
 * header is therefore a vertical scan unit. This is deliberate, not a mobile
 * fallback: name/type first, short state summary second, exceptional proof
 * state third. Vertical space is scrollable; horizontal collisions are not.
 */
.asset-row,
.asset-printer .asset-row{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:3px!important;
  min-width:0!important;
  min-height:0!important;
}
.asset-name-wrap,
.asset-summary,
.asset-verification{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
.asset-name{
  display:block;
  min-width:0;
  font-size:clamp(11px,.74vw,14px)!important;
  line-height:1.12!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
.asset-name-wrap small{
  margin-top:2px!important;
  font-size:8px!important;
  line-height:1.1!important;
}
.asset-summary{
  display:block;
  font-size:clamp(9px,.58vw,11px)!important;
  line-height:1.2!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
.asset-verification{
  display:block;
  text-align:left!important;
  font-size:8px!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.asset-verification:empty{display:none!important}
.asset-summary:empty{display:none!important}

/* Do not reintroduce micro typography to reclaim vertical space. */
.asset-identity-label{font-size:8px!important}
.asset-identity-value{font-size:8.5px!important}
.check-label{font-size:8px!important}
.check-value{font-size:8.5px!important}
.asset-fault-reason{font-size:8.5px!important;line-height:1.2!important}

/* The old printer rules pre-date status-in-title and must never manufacture a
 * phantom first grid track again. These declarations also protect against a
 * future legacy selector being copied back below the main rules. */
.asset-printer .asset-name-wrap,
.asset-printer .asset-summary,
.asset-printer .asset-verification{grid-column:auto!important}

/* Primary card content may grow vertically, never horizontally past its card. */
.asset-block,
.asset-row,
.asset-name-wrap,
.asset-summary,
.asset-verification,
.asset-identity,
.check-strip{max-width:100%;}
.asset-block{overflow-x:hidden;}


/* Stable metric grid: whole checks wrap as rows; values may wrap at natural
 * word/separator boundaries instead of extending beyond the card. This turns
 * vertical space into the relief valve and gives the eye a predictable scan. */
.check-strip{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:5px 7px!important;
  width:100%;
}
.check-item{
  display:grid!important;
  grid-template-columns:6px minmax(0,auto) minmax(0,1fr);
  align-items:center;
  gap:5px;
  min-width:0!important;
  width:100%;
  white-space:normal!important;
}
.check-label{white-space:nowrap!important;min-width:0}
.check-value{
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
  text-align:right;
  line-height:1.12!important;
}


/* ========================================================================== */
/* HSLG USABILITY RELEASE GATE — 1.1.9                                        */
/* The wall is a work tool: the operator owns the mouse and scroll position.  */
/* ========================================================================== */

/* Desktop mouse interaction is conventional. Venue swipe remains touch/pen
 * only in JS; never advertise the whole data surface as a draggable canvas. */
.noc-main,.noc-main.dragging{cursor:default!important;}
.device-group-body{cursor:default!important;touch-action:pan-y;}

/* One predictable content gutter. The scrollbar sits against the column edge
 * instead of behind an oversized empty right gutter. */
.device-group-body{
  padding:3px 1px 8px 4px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain;
  scrollbar-gutter:auto;
  scrollbar-width:auto;
}
.device-group-body::-webkit-scrollbar{width:9px!important;}
.device-group-body::-webkit-scrollbar-track{background:rgba(255,255,255,.012)!important;}
.device-group-body::-webkit-scrollbar-thumb{
  background:rgba(151,164,181,.34)!important;
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box!important;
}
.device-group:hover .device-group-body::-webkit-scrollbar-thumb{background:rgba(151,164,181,.52)!important;background-clip:padding-box!important;}

/* Warning/critical backgrounds may change colour, never geometry. Every asset
 * begins on the same left edge and uses the same usable width. */
.asset-block,
.asset-block.warning,
.asset-block.critical,
.asset-major-infrastructure,
.asset-printer{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:8px 6px 9px!important;
  border-radius:8px!important;
}
.asset-row,
.asset-name-wrap,
.asset-summary,
.asset-verification,
.asset-identity,
.asset-fault-reason,
.check-strip{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
}
.asset-identity,.asset-fault-reason,.check-strip{margin-top:5px!important;}

/* Auto-fit collapses unused metric tracks; a card with one compact check no
 * longer leaves a decorative half-row of dead space. */
.check-strip{
  grid-template-columns:repeat(auto-fit,minmax(108px,1fr))!important;
  align-items:stretch;
}
.check-item{max-width:none!important;}

@media(max-width:1500px){
  .device-group-body{padding:3px 1px 7px 4px!important;}
  .asset-block,.asset-block.warning,.asset-block.critical,.asset-major-infrastructure,.asset-printer{padding:7px 6px 8px!important;}
  .check-strip{grid-template-columns:repeat(auto-fit,minmax(96px,1fr))!important;}
}


/* ========================================================================== */
/* HSLG EXPLICIT DESKTOP VENUE NAVIGATION — 1.1.10                            */
/* Discoverable at the edge without turning the work surface into a drag pad. */
/* ========================================================================== */
.venue-edge-nav{
  position:fixed;z-index:80;top:50%;width:10px;height:118px;padding:0;display:grid;place-items:center;
  border:1px solid rgba(150,174,208,.28);background:linear-gradient(180deg,rgba(32,48,69,.80),rgba(18,29,43,.74));
  color:#dbe7f7;opacity:0;transform:translateY(-50%);cursor:pointer;
  transition:width .18s cubic-bezier(.2,.8,.2,1),opacity .16s ease,background .16s ease,border-color .16s ease;
  box-shadow:0 12px 32px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.04);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
.venue-edge-nav[hidden]{display:none!important}
.venue-edge-nav-prev{left:0;border-left:0;border-radius:0 70px 70px 0}
.venue-edge-nav-next{right:0;border-right:0;border-radius:70px 0 0 70px}
.venue-edge-nav span{font-size:38px;line-height:1;font-weight:300;opacity:0;transform:scale(.88);transition:opacity .14s ease,transform .18s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.venue-edge-nav:hover,.venue-edge-nav:focus-visible{width:58px;opacity:.92;background:linear-gradient(180deg,rgba(42,63,91,.90),rgba(21,34,50,.88));border-color:rgba(155,190,239,.48);outline:none}
.venue-edge-nav:hover span,.venue-edge-nav:focus-visible span{opacity:1;transform:scale(1)}
.venue-edge-nav:active{background:rgba(64,91,129,.92)}
@media (hover:none),(pointer:coarse){.venue-edge-nav{display:none!important}}
@media (max-width:980px){.venue-edge-nav{display:none!important}}
@media (prefers-reduced-motion:reduce){.venue-edge-nav,.venue-edge-nav span{transition:none!important}}


/* ========================================================================== */
/* WORDPRESS/BROWSER-NATIVE COLUMN SCROLLING — 1.1.14                         */
/* WordPress-bundled jQuery owns only inactivity + unattended animation.      */
/* The scrollbar itself is the browser's established native implementation.  */
/* ========================================================================== */
.device-group{position:relative!important;}
.device-group-body{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
  scrollbar-width:auto!important;
  scrollbar-color:rgba(151,164,181,.48) rgba(255,255,255,.015)!important;
  padding-right:3px!important;
}
.device-group-body::-webkit-scrollbar{display:block!important;width:10px!important;height:10px!important;}
.device-group-body::-webkit-scrollbar-track{background:rgba(255,255,255,.015)!important;}
.device-group-body::-webkit-scrollbar-thumb{
  background:rgba(151,164,181,.46)!important;
  border-radius:999px!important;
  border:2px solid transparent!important;
  background-clip:padding-box!important;
}
.device-group-body:hover::-webkit-scrollbar-thumb{background:rgba(173,188,207,.66)!important;background-clip:padding-box!important;}
@media(max-width:1500px){.device-group-body{padding-right:3px!important;}}

/* Long operational labels that cannot shrink safely may use the full metric row. */
.check-key-reachability{grid-column:1/-1!important;}


/* KEYBOARD COLUMN SCROLLING — 1.1.15
   The native scroll container is focusable. Clicking inside a column makes it
   the keyboard scroll target; browser-standard Up/Down/Page/Home/End controls
   are handled by wallboard.js without changing scrollbar implementation. */
.device-group-body:focus{outline:none;}
.device-group-body:focus-visible{
  box-shadow:inset 0 0 0 1px rgba(115,167,255,.34);
}
