:root{--bg:#071019;--panel:rgba(16,26,38,var(--alpha,.96));--panel2:#142232;--text:#f4f7fb;--muted:#9eb0c4;--border:#26384b;--accent:#39c978;--blur:0px;--overlay:.45}:root[data-theme=light]{--bg:#edf2f7;--panel:rgba(255,255,255,var(--alpha,.96));--panel2:#fff;--text:#14202d;--muted:#5e6d7d;--border:#d5dee8}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:system-ui,sans-serif;background:var(--bg);color:var(--text)}button,input,select{font:inherit}#background-layer{position:fixed;inset:-30px;z-index:-2;background-size:cover;filter:blur(var(--blur))}#background-layer:after{content:"";position:absolute;inset:0;background:rgba(4,9,15,var(--overlay))}.hidden{display:none!important}.center{min-height:100vh;display:grid;place-items:center;padding:20px}.card,.status-card,.group,.hero,.technical,.terminal-shell{background:var(--panel);border:1px solid var(--border);border-radius:18px}.login{width:min(430px,100%);padding:28px}.brand{display:flex;gap:12px;align-items:center}.brand>b{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--accent);color:#07120b}.brand small{display:block;color:var(--muted)}label{display:grid;gap:7px;margin:16px 0;font-weight:650}input,select{padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--panel2);color:var(--text)}button{border:1px solid var(--border);border-radius:10px;padding:10px 14px;background:var(--panel2);color:var(--text);cursor:pointer}.primary{background:var(--accent);color:#07120b;font-weight:750}.app{display:grid;grid-template-columns:250px 1fr;min-height:100vh}aside{padding:22px;border-right:1px solid var(--border);background:rgba(7,16,25,.92);display:flex;flex-direction:column;gap:25px;position:sticky;top:0;height:100vh;overflow-y:auto;align-self:start}aside nav{display:grid;gap:8px}aside a,.mobile a{padding:11px 12px;border-radius:10px;color:var(--muted);text-decoration:none}a.active{background:rgba(57,201,120,.15);color:var(--text)}#logout{margin-top:auto}.main{padding:0 28px 40px;min-width:0}.main>header{display:flex;justify-content:space-between;align-items:center;padding:24px 0}.main header small{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.status-card,.field-card{padding:18px}.status-card h3,.field-card h3{margin:0 0 10px;font-size:14px;color:var(--muted)}.status{display:inline-flex;padding:8px 12px;border-radius:999px;background:var(--panel2);border:1px solid var(--border);font-weight:750;overflow-wrap:anywhere}.good{border-color:#2b9e5c}.warn{border-color:#c89b3b}.bad{border-color:#b84f55}.unknown{border-color:#8b5f7e;background:rgba(139,95,126,.14)}.comment{margin:10px 0 0;color:var(--muted)}.hero,.group,.technical{padding:20px;margin-bottom:16px}.field-card{background:rgba(20,34,50,.72);border:1px solid var(--border);border-radius:14px}.actions{display:flex;gap:8px;margin-top:13px}.technical summary{cursor:pointer;font-weight:750}.terminal-shell{overflow:hidden}.terminal-head{padding:14px 16px;display:flex;gap:15px;align-items:center}.terminal-head p{margin:0}.terminal-head button{margin-left:auto}.terminal-frame{display:block;width:100%;height:calc(100vh - 210px);min-height:520px;border:0;background:#000}.mobile{display:none}dialog{border:0;background:transparent;color:var(--text);width:min(560px,calc(100% - 24px))}dialog::backdrop{background:rgba(0,0,0,.68)}.dialog{padding:22px}.dialog header{display:flex;justify-content:space-between}.dialog header button{font-size:24px;background:transparent}.dialog .actions{justify-content:flex-end}@media(max-width:850px){.app{display:block}aside{display:none}.main{padding:0 14px 88px}.grid{grid-template-columns:1fr}.mobile{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);padding:8px;background:rgba(7,16,25,.96);border-top:1px solid var(--border)}.mobile a,.mobile button{font-size:12px;text-align:center}.terminal-frame{height:calc(100vh - 190px);min-height:420px}.terminal-head{flex-wrap:wrap}.terminal-head button{margin-left:0}}

.native-terminal-shell{overflow:hidden;border:1px solid var(--border);border-radius:16px;background:#05080c}
.terminal-toolbar{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--panel)}
.terminal-toolbar>div:first-child{margin-right:auto}
.terminal-toolbar p{margin:4px 0 0}
.native-terminal{min-height:520px;height:calc(100vh - 230px);padding:10px;background:#05080c}
.native-terminal .xterm{height:100%}
.native-terminal .xterm-viewport{overflow-y:auto}
@media(max-width:850px){.terminal-toolbar{align-items:flex-start;flex-wrap:wrap}.native-terminal{min-height:420px;height:calc(100vh - 220px)}}

/* HomeGeo Console v0.3: visible server background and interactive navigation */
html,
body {
  position: relative;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
  pointer-events: none;
}

#background-layer {
  z-index: -1;
  pointer-events: none;
}

#background-layer::after {
  pointer-events: none;
}

.app,
.center {
  position: relative;
  z-index: 0;
}

aside a,
.mobile a,
aside button,
.mobile button,
[data-route] {
  cursor: pointer;
  user-select: none;
}


/* HGC CONSOLE READ-ONLY OVERVIEW v0.1 */
.overview-hero,.overview-card,.overview-loading,.overview-error{background:var(--panel);border:1px solid var(--border);border-radius:18px;backdrop-filter:saturate(120%) blur(8px)}
.overview-hero{padding:22px;margin-bottom:16px}.overview-hero-main{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:20px;align-items:start}.overview-hero h2{margin:5px 0 12px;font-size:clamp(24px,3vw,38px)}.eyebrow{color:var(--muted);text-transform:uppercase;letter-spacing:.12em;font-weight:750}.overview-main-status{font-size:18px;padding:10px 16px}.overview-hero-facts{display:grid;gap:10px}
.overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.overview-card{padding:0;min-width:0;overflow:hidden}.overview-card-collapse>summary{list-style:none;cursor:pointer}.overview-card-collapse>summary::-webkit-details-marker{display:none}.overview-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:16px 18px}.overview-card h2{font-size:18px;margin:0}.overview-card-state{padding:7px 11px;border-radius:999px;font-size:13px;font-weight:800}.overview-card-state.good{background:rgba(22,163,74,.35)}.overview-card-state.warn{background:rgba(202,138,4,.35)}.overview-card-state.bad{background:rgba(220,38,38,.4)}.overview-card-body{display:grid;gap:10px;padding:0 18px 12px}.overview-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}.overview-row:last-child{border-bottom:0}.overview-label{color:var(--muted);font-size:14px;min-width:0}.overview-row .status{max-width:100%;text-align:right;justify-self:end;padding:6px 10px;font-size:13px}.overview-note{grid-column:1/-1;color:var(--muted)}
.overview-technical{margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}.overview-technical summary{cursor:pointer;font-weight:700;color:var(--muted)}.overview-tech-grid{display:grid;gap:8px;margin-top:12px}.overview-tech-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:10px;font-size:12px}.overview-tech-item span{color:var(--muted)}.overview-tech-item code{overflow-wrap:anywhere;text-align:right;color:var(--text)}
.overview-loading,.overview-error{padding:30px;text-align:center}.spinner{width:34px;height:34px;margin:0 auto 14px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:overview-spin .8s linear infinite}@keyframes overview-spin{to{transform:rotate(360deg)}}.overview-error{border-color:#b84f55;text-align:left;margin-bottom:16px}.overview-error h2{margin-top:0}.overview-error-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.overview-warning-note{margin:16px 0 0;color:var(--muted)}
@media(max-width:1180px){.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:850px){.overview-hero-main{grid-template-columns:1fr}.overview-grid{grid-template-columns:1fr}.overview-error-grid{grid-template-columns:1fr}}@media(max-width:520px){.main>header{align-items:flex-start;gap:12px}.main>header>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.overview-card,.overview-hero{padding:15px}.overview-row{grid-template-columns:1fr}.overview-row .status{justify-self:start;text-align:left}.overview-tech-item{grid-template-columns:1fr}.overview-tech-item code{text-align:left}body{overflow-x:hidden}}

/* HGC Package A action-state contract v0.1 */
button.action-running,
button.action-error{
  background:#d92d20;
  border-color:#ff6b61;
  color:#fff;
  font-weight:800;
}
button.action-success{
  background:#16a34a;
  border-color:#54d27d;
  color:#fff;
  font-weight:800;
}
button:disabled{cursor:not-allowed;opacity:.82}
.action-result{transition:border-color .16s ease,background-color .16s ease}
.action-result-running,
.action-result-error{
  border-color:#d92d20;
  box-shadow:0 0 0 1px rgba(217,45,32,.28);
}
.action-result-success{
  border-color:#16a34a;
  box-shadow:0 0 0 1px rgba(22,163,74,.28);
}

/* HGC_PROVIDER_DRIVEN_CONSOLE_V01_BEGIN */
:root{
  --hgc-state-unknown:#8a607c;
}
.hgc-pd-hero,/* HGC_SPLIT_POLICY_EDITOR_V08_CSS */
.hgc-policy-form,.hgc-policy-group,.hgc-policy-field{display:grid;gap:.65rem}.hgc-policy-lines{min-height:6rem}.hgc-policy-confirm{display:flex;gap:.75rem}.hgc-policy-yes{background:#b42318;color:#fff}.hgc-policy-no{background:#067647;color:#fff}

.hgc-pd-section{
  margin:0 0 18px;
}
.hgc-pd-section-head{
  margin-bottom:10px;
}
.hgc-pd-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:12px;
}
.hgc-pd-card{
  border:1px solid var(--border,rgba(255,255,255,.14));
  border-radius:14px;
  background:var(--card,rgba(20,24,32,.72));
  padding:14px;
  min-width:0;
}
.hgc-pd-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.hgc-pd-card h3,.hgc-pd-section h2,.hgc-pd-hero h2{
  margin:0;
}
.hgc-pd-subtitle,.hgc-pd-current{
  opacity:.72;
  font-size:.86rem;
  margin-top:3px;
}
.hgc-pd-row{
  display:grid;
  grid-template-columns:minmax(120px,.85fr) minmax(0,1.15fr);
  gap:10px;
  padding:5px 0;
  border-bottom:1px solid rgba(127,127,127,.12);
}
.hgc-pd-label{
  opacity:.72;
}
.hgc-pd-value{
  overflow-wrap:anywhere;
}
.hgc-pd-value.good{color:var(--good,#23b26d)}
.hgc-pd-value.warn{color:var(--warn,#d6a62f)}
.hgc-pd-value.bad{color:var(--bad,#e25353)}
.hgc-pd-value.unknown{color:var(--hgc-state-unknown)}
.hgc-pd-status{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  border:1px solid currentColor;
  border-radius:999px;
  padding:2px 8px;
  font-size:.82rem;
  overflow-wrap:anywhere;
}
.hgc-pd-status.good{color:var(--good,#23b26d)}
.hgc-pd-status.warn{color:var(--warn,#d6a62f)}
.hgc-pd-status.bad{color:var(--bad,#e25353)}
.hgc-pd-status.unknown{color:var(--hgc-state-unknown)}
.hgc-pd-status.neutral{opacity:.75}
.hgc-pd-consumers{
  display:grid;
  gap:8px;
  margin:10px 0;
}
.hgc-pd-mini{
  border:1px solid rgba(127,127,127,.18);
  border-radius:10px;
  padding:10px;
}
.hgc-pd-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.hgc-pd-actions button.running{
  opacity:.72;
  cursor:wait;
}
.hgc-pd-purge{
  border-color:#9b2020!important;
  color:#ff6b6b!important;
}
.hgc-pd-form{
  margin-top:12px;
}
.hgc-pd-form-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:10px;
}
.hgc-pd-field{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.hgc-pd-field-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  font-weight:600;
}
.hgc-pd-field-title small{
  opacity:.58;
  font-weight:400;
  font-size:.72rem;
}
.hgc-pd-field input,.hgc-pd-field select,.hgc-pd-field textarea,
.hgc-pd-inline-edit input,.hgc-pd-provision-value{
  width:100%;
  box-sizing:border-box;
}
.hgc-pd-secret-input{
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.hgc-pd-inline-edit{
  display:flex;
  gap:8px;
  margin-top:12px;
}
.hgc-pd-inline-edit input{
  flex:1 1 auto;
}
.hgc-pd-result,.hgc-pd-provisioning{
  margin-top:10px;
  border:1px solid rgba(127,127,127,.18);
  border-radius:10px;
  padding:10px;
  overflow-wrap:anywhere;
}
.hgc-pd-result.bad{
  border-color:rgba(226,83,83,.55);
}
.hgc-pd-notice{
  margin:8px 0;
  padding:8px 10px;
  border-radius:9px;
  border:1px solid currentColor;
}
.hgc-pd-notice.good{color:var(--good,#23b26d)}
.hgc-pd-notice.warn{color:var(--warn,#d6a62f)}
.hgc-pd-notice.bad{color:var(--bad,#e25353)}
.hgc-pd-notice.unknown{color:var(--hgc-state-unknown)}
.hgc-pd-details{
  margin-top:8px;
}
.hgc-pd-kv{
  margin-top:8px;
  max-height:360px;
  overflow:auto;
}
.hgc-pd-op-list{
  display:grid;
  gap:7px;
  margin-top:10px;
}
.hgc-pd-op-item{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  border-bottom:1px solid rgba(127,127,127,.12);
  padding:6px 0;
}
.hgc-pd-op-item code{
  opacity:.72;
}
.hgc-pd-modal-overlay{
  position:fixed;
  inset:0;
  z-index:100000;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(0,0,0,.58);
}
.hgc-pd-modal{
  width:min(520px,100%);
  border-radius:16px;
  padding:18px;
  background:var(--card,#171b23);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 22px 60px rgba(0,0,0,.45);
}
.hgc-pd-yes{
  background:#d92d20!important;
  border-color:#d92d20!important;
  color:#fff!important;
}
.hgc-pd-no{
  background:#16a34a!important;
  border-color:#16a34a!important;
  color:#fff!important;
}
.hgc-pd-provision-value{
  margin-top:8px;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  resize:vertical;
  color:var(--text);
}
@media(max-width:700px){
  .hgc-pd-grid{grid-template-columns:1fr}
  .hgc-pd-row{grid-template-columns:1fr;gap:2px}
  .hgc-pd-inline-edit{flex-direction:column}
}
/* HGC_PROVIDER_DRIVEN_CONSOLE_V01_END */



/* HGC_CONSOLE_REMEDIATION_V02 */
.hgc-pd-card.hgc-pd-collapsible{padding:0;overflow:hidden}
.hgc-pd-collapse>summary{list-style:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;cursor:pointer}
.hgc-pd-collapse>summary::-webkit-details-marker{display:none}
.hgc-pd-collapse[open]>.hgc-pd-summary{border-bottom:1px solid rgba(127,127,127,.16)}
.hgc-pd-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:rgba(57,201,120,.14);border:1px solid rgba(57,201,120,.36);font-weight:850}
.hgc-pd-summary-main{display:grid;gap:2px;min-width:0}.hgc-pd-summary-main strong{font-size:1rem}.hgc-pd-summary-main small{opacity:.66;overflow-wrap:anywhere}
.hgc-pd-summary-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.hgc-pd-collapse-body{padding:12px 14px 14px}
.hgc-pd-provision-modal{width:min(780px,100%)}
.hgc-pd-provision-view{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start;margin-top:12px}
.hgc-pd-qr{display:block;max-width:288px;width:100%;height:auto;background:#fff;border:10px solid #fff;border-radius:10px;image-rendering:pixelated}
.hgc-pd-provision-side{display:grid;gap:10px;min-width:0}.hgc-pd-provision-side .hgc-pd-provision-value{margin:0}
.hgc-pd-open-app{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 12px;border:1px solid var(--border);border-radius:10px;color:var(--text);text-decoration:none;background:var(--panel2)}
@media(max-width:700px){.hgc-pd-collapse>summary{grid-template-columns:auto minmax(0,1fr)}.hgc-pd-summary-badges{grid-column:1/-1;justify-content:flex-start}.hgc-pd-provision-view{grid-template-columns:1fr}.hgc-pd-qr{margin:auto}}

/* HGC_SPLIT_POLICY_EDITOR_V09_FLAT_CSS */
.hgc-policy-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) repeat(4,auto);gap:8px;margin-bottom:10px}
.hgc-policy-search{width:100%}.hgc-policy-table-wrap{overflow:auto;max-height:235px;border:1px solid var(--border);border-radius:12px}
.hgc-policy-table{width:100%;border-collapse:collapse;min-width:620px}.hgc-policy-table th,.hgc-policy-table td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--border)}
.hgc-policy-table th{position:sticky;top:0;background:var(--panel2);z-index:1}.hgc-policy-row{cursor:pointer}.hgc-policy-row:hover,.hgc-policy-row.selected{background:rgba(57,201,120,.12)}
.hgc-policy-savebar{position:sticky;bottom:10px;display:flex;align-items:center;gap:8px;margin-top:10px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--panel)}
.hgc-policy-savebar strong{margin-right:auto}@media(max-width:850px){.hgc-policy-toolbar{grid-template-columns:1fr 1fr}.hgc-policy-search{grid-column:1/-1}.hgc-policy-savebar{flex-wrap:wrap}.hgc-policy-savebar strong{width:100%}}

.overview-resources{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.overview-resource{min-width:0}.overview-resource-head{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin-bottom:6px}.overview-resource-track{height:9px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden}.overview-resource-fill{height:100%;background:currentColor;border-radius:inherit}.overview-card-collapse[open] .overview-card-head{border-bottom:1px solid var(--border)}
@media(max-width:1100px){.overview-resources{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.overview-resources{grid-template-columns:1fr}}

.overview-resource-fill.good{background:var(--good,#23b26d)}.overview-resource-fill.warn{background:var(--warn,#d6a62f)}.overview-resource-fill.bad{background:var(--bad,#e25353)}.overview-resource-fill.unknown{background:rgba(255,255,255,.2)}.overview-resource-value.good{color:var(--good,#23b26d)}.overview-resource-value.warn{color:var(--warn,#d6a62f)}.overview-resource-value.bad{color:var(--bad,#e25353)}.overview-attention{margin-top:14px;border:1px solid color-mix(in srgb,var(--warn,#d6a62f) 55%,transparent);border-radius:12px;background:color-mix(in srgb,var(--warn,#d6a62f) 10%,transparent);padding:10px 12px}.overview-attention summary{cursor:pointer;font-weight:700}.overview-attention-list{margin:10px 0 0;padding-left:20px;display:grid;gap:6px}


/* HGC CONSOLE FINAL UI PASS V01 */
.main>header{display:grid;grid-template-columns:1fr auto 1fr;position:relative}
.main>header>div:first-child{grid-column:2;text-align:center;min-width:0}
.main>header>div:last-child{grid-column:3;justify-self:end;display:flex;gap:8px}
.main>header .page-title-hidden{visibility:hidden}
#title{margin:.2rem 0 0;text-align:center}
.control-hero{text-align:center}
.control-result-section{margin-top:18px}
.overview-resource{min-width:0;border:1px solid transparent;border-radius:12px;padding:8px 10px;transition:border-color .15s ease,background .15s ease}
.overview-resource:hover,.overview-resource[open]{border-color:var(--border);background:rgba(127,127,127,.06)}
.overview-resource>summary{list-style:none;cursor:pointer}.overview-resource>summary::-webkit-details-marker{display:none}
.overview-resource-detail{display:grid;gap:4px;margin-top:10px;padding-top:8px;border-top:1px solid var(--border)}
.overview-resource-detail .overview-row{padding:6px 0}.overview-resource-detail .status{font-size:12px;padding:4px 7px}
.overview-technical{margin:8px 14px 14px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:rgba(127,127,127,.05)}
.overview-technical summary,.hgc-pd-details>summary{cursor:pointer;font-weight:700;color:var(--text);opacity:.92}
.hgc-pd-details{margin-top:10px;padding:8px 10px;border:1px solid rgba(127,127,127,.18);border-radius:10px;background:rgba(127,127,127,.04)}
.hgc-pd-hero-centered{text-align:center}
.hgc-pd-client-top{margin-bottom:14px}.hgc-pd-client-list{margin-top:14px}
.hgc-pd-op-tech{width:100%}.hgc-pd-op-tech summary{cursor:pointer;color:var(--muted)}
@media(max-width:850px){.main>header{grid-template-columns:1fr auto}.main>header>div:first-child{grid-column:1;text-align:left}.main>header>div:last-child{grid-column:2}.main>header .page-title-hidden{display:none}#title{text-align:left}}

/* HGC CONSOLE FINAL CONTROL TECHNICAL COMPACTION v01 */
.control-result-technical{grid-column:1/-1;margin-top:4px;border-top:1px solid var(--border);padding-top:10px}
.control-result-technical>summary{cursor:pointer;color:var(--muted);font-weight:750}
.control-result-technical-grid{margin-top:10px}
.control-result-technical .status{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}


/* HGC unified translucent surfaces v01 */
:root{--hgc-surface:rgba(16,26,38,.72);--hgc-surface2:rgba(20,34,50,.72)}
:root[data-theme=light]{--hgc-surface:rgba(255,255,255,.72);--hgc-surface2:rgba(255,255,255,.72)}
.card,.status-card,.group,.hero,.technical,.terminal-shell,.field-card,
.overview-hero,.overview-card,.overview-loading,.overview-error,
.hgc-pd-card,.hgc-pd-section,.hgc-pd-hero,.hgc-pd-details,
.overview-technical,.native-terminal-shell,.terminal-toolbar,.native-terminal,
.hgc-policy-savebar{background:var(--hgc-surface)!important;backdrop-filter:saturate(120%) blur(8px)}
.status,input,select,button,.hgc-pd-open-app,.hgc-policy-table th{background-color:var(--hgc-surface2)}
.terminal-frame{background:transparent}
button.action-running,button.action-error{background:#d92d20!important}
button.action-success{background:#16a34a!important}

/* HGC CONSOLE UI POLISH V02 */
:root{--hgc-surface:rgba(16,26,38,var(--alpha,.96));--hgc-surface2:rgba(20,34,50,var(--alpha,.96))}
:root[data-theme=light]{--hgc-surface:rgba(255,255,255,var(--alpha,.96));--hgc-surface2:rgba(255,255,255,var(--alpha,.96))}
.card,.status-card,.group,.hero,.technical,.field-card,.terminal-shell,.overview-hero,.overview-card,.overview-loading,.overview-error,.overview-resource,.overview-technical,.hgc-pd-card,.hgc-pd-section,.hgc-pd-hero,.hgc-pd-details,.hgc-pd-mini,.hgc-pd-result,.hgc-pd-notice,.hgc-policy-table-wrap,.hgc-policy-savebar,.hgc-pd-modal{background:var(--hgc-surface)!important;backdrop-filter:saturate(120%) blur(8px)}
input,select,textarea,.status,.hgc-pd-open-app,.hgc-policy-table th,.hgc-policy-table td{background-color:var(--hgc-surface2)!important}
.terminal-frame{background:transparent!important;opacity:var(--alpha,.96)}
.overview-resource-detail .overview-row{grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr);align-items:start}
.overview-resource-detail .overview-row .status{display:block;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.hgc-policy-table-wrap{max-height:322px!important}
.hgc-policy-table th,.hgc-policy-table td{height:40px;line-height:20px;padding:9px 12px;white-space:nowrap}
.main>header>div:last-child:empty{display:none}
@media(max-width:850px){.mobile{grid-template-columns:repeat(5,1fr)}}
@media(max-width:520px){.overview-resource-detail .overview-row{grid-template-columns:1fr}}

/* HGC CONSOLE APPEARANCE UX V03 */
#background-layer{z-index:0!important;pointer-events:none}
#bootstrap-view,#login-view,#app-view{position:relative;z-index:1}
#appearance-dialog{z-index:1000}
#appearance-dialog label:has(input[type="range"]){grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px}
#appearance-dialog label:has(input[type="range"]) input[type="range"]{grid-column:1/-1;width:100%}
.range-value{justify-self:end;min-width:58px;text-align:right;font-variant-numeric:tabular-nums;color:var(--text);font-weight:750}

/* HGC TERMINAL TRANSPARENCY V04 */
.terminal-frame{background:transparent!important;opacity:1!important}

/* HGC RESPONSIVE RESOURCE ROWS V01 */
.overview-resource-detail .overview-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.overview-resource-detail .overview-row .overview-label{min-width:0}
.overview-resource-detail .overview-row .status{min-width:0;max-width:100%;white-space:normal;overflow-wrap:normal;word-break:normal;text-align:right;justify-self:end}
.overview-resource-detail .overview-row.overview-row-stacked{grid-template-columns:1fr;row-gap:6px;align-items:start}
.overview-resource-detail .overview-row.overview-row-stacked .status{grid-column:1;justify-self:stretch;text-align:left;width:100%;white-space:normal;overflow-wrap:break-word;word-break:normal}


/* HGC CONSOLE ADAPTIVE OVERVIEW ROWS V05A */
.overview-row:not(.overview-row-stacked)>.status{white-space:nowrap;overflow-wrap:normal;word-break:normal;max-width:none}
.overview-resource-detail .overview-row:not(.overview-row-stacked){grid-template-columns:minmax(0,1fr) max-content;align-items:center}
.overview-row.overview-row-stacked{grid-template-columns:1fr!important;align-items:start}
.overview-row.overview-row-stacked>.status{grid-column:1/-1;justify-self:start;text-align:left;white-space:normal;max-width:100%;overflow-wrap:anywhere;word-break:normal}
.overview-row.overview-row-stacked>.overview-note{grid-column:1/-1}


/* HGC CONSOLE APPEARANCE COLORS V05B */
.appearance-color-control{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px}
.appearance-color-control input[type="color"]{width:64px;height:38px;padding:3px;border-radius:10px;cursor:pointer;background:var(--hgc-surface2)!important}


/* HGC8 LIVE CPU + MOBILE TERMINAL UX v01 */
.cpu-core-block,.cpu-temp-block{margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}
.cpu-core-title,.cpu-temp-title{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px;font-size:13px}
.cpu-temp-title small{color:var(--muted)}
.cpu-core-grid,.cpu-temp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.cpu-core-chip,.cpu-temp-chip{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:8px 9px;border:1px solid var(--border);border-radius:9px;background:var(--hgc-surface2);font-size:12px;min-width:0}
.cpu-core-chip span,.cpu-temp-chip b{white-space:nowrap;font-variant-numeric:tabular-nums}
.cpu-core-chip b{color:var(--muted)}
.cpu-temp-chip{display:grid;gap:2px}.cpu-temp-chip span{color:var(--muted)}
.cpu-temp-reset{margin-top:8px;padding:8px 10px;font-size:12px}
.terminal-info{min-width:220px;flex:1 1 auto}.terminal-info .comment{margin-top:4px}
.terminal-tools,.terminal-aux{display:flex;gap:8px;align-items:center}.terminal-head .terminal-tools button,.terminal-head .terminal-aux button{margin-left:0}
.terminal-touch{min-height:44px;touch-action:manipulation;font-weight:700}
.terminal-copy-helper{position:fixed!important;left:-9999px!important;top:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
@media(max-width:850px){.terminal-head{align-items:stretch;gap:10px}.terminal-info{width:100%;flex-basis:100%}.terminal-tools{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.terminal-aux{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.terminal-tools button,.terminal-aux button{width:100%;padding:11px 8px}.terminal-frame{height:calc(100vh - 285px);min-height:360px}.cpu-core-grid,.cpu-temp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.cpu-core-chip,.cpu-temp-chip{padding:7px;font-size:11px}}

/* HGC8 CPU TELEMETRY READABILITY v02 */
.cpu-core-chip{display:grid!important;grid-template-columns:1fr!important;justify-items:start!important;align-content:center!important;gap:2px!important;padding:7px 8px!important;overflow:hidden}
.cpu-core-chip b{font-size:10px;line-height:1.1;letter-spacing:.02em}
.cpu-core-chip span{font-size:11px;line-height:1.2;max-width:100%;white-space:nowrap!important;font-variant-numeric:tabular-nums}
.cpu-temp-title small{white-space:nowrap}
@media(max-width:850px){.cpu-core-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* HGC8 PIN HELPER + NATIVE TERMINAL MOBILE UX v01 */
.terminal-touch-tools,.terminal-aux-tools{display:flex;gap:8px;align-items:center}
.native-terminal-shell .terminal-touch{min-height:44px;touch-action:manipulation;font-weight:700}
.native-terminal-shell .terminal-copy-helper{position:fixed!important;left:-9999px!important;top:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
@media(max-width:850px){
  .mobile{grid-template-columns:repeat(3,minmax(0,1fr))!important;row-gap:4px}
  .main{padding-bottom:132px!important}
  .terminal-toolbar{align-items:stretch!important}
  .terminal-toolbar>div:first-child{width:100%;margin-right:0}
  .terminal-touch-tools{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .terminal-aux-tools{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .terminal-touch-tools button,.terminal-aux-tools button{width:100%}
}

.service-mode-dialog-box{padding:22px}.service-mode-row{display:flex;gap:10px;align-items:center;margin-top:16px}.service-mode-choice.service-mode-selected{border-color:#39c978;box-shadow:0 0 0 2px rgba(57,201,120,.18) inset}.service-mode-unknown{color:#f2c94c;font-size:28px;font-weight:900;line-height:1}.service-mode-error{color:#ff8d8d}.service-mode-row button{min-width:96px}

.owner-attention-nav{border:1px solid rgba(158,176,196,.42);border-radius:999px;background:transparent;text-align:center;color:var(--text)!important;margin-bottom:4px}
@keyframes ownerAttentionBlink{0%,49%{background:rgba(242,201,76,.26);border-color:#f2c94c;box-shadow:0 0 0 1px rgba(242,201,76,.25) inset}50%,100%{background:transparent;border-color:rgba(242,201,76,.45);box-shadow:none}}
.owner-attention-nav.owner-attention-active{animation:ownerAttentionBlink 1s steps(1,end) infinite;color:#ffe58a!important}
.owner-attention-list{display:grid;gap:10px}.owner-attention-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.owner-attention-item:last-child{border-bottom:0}.owner-attention-author{font-weight:750}.owner-attention-actions .actions{flex-wrap:wrap}


/* HGC SERVICE MODE TOGGLE + ISSUE JOURNAL v01 */
.service-mode-page{position:relative;overflow:visible}
.service-mode-toggle-wrap{display:grid;justify-items:start;gap:10px;margin-top:16px}
.service-mode-toggle{display:grid;grid-template-columns:auto 150px auto;align-items:center;gap:11px;border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;cursor:pointer;min-width:0!important}
.service-mode-toggle:disabled{cursor:not-allowed;opacity:.92}
.service-mode-toggle-label{font-size:13px;font-weight:800;letter-spacing:.02em;color:var(--muted);transition:color .18s ease}
.service-mode-toggle.position-off .service-mode-toggle-label.off,.service-mode-toggle.position-on .service-mode-toggle-label.on{color:var(--text)}
.service-mode-toggle-track{position:relative;display:block;width:150px;height:58px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:#a33b43;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),0 8px 22px rgba(0,0,0,.16);transition:background .22s ease,box-shadow .22s ease}
.service-mode-toggle-thumb{position:absolute;top:6px;left:6px;width:44px;height:44px;border-radius:50%;background:#f6f8fb;border:1px solid rgba(0,0,0,.22);box-shadow:0 4px 12px rgba(0,0,0,.32);transition:left .24s cubic-bezier(.2,.8,.2,1)}
.service-mode-toggle.position-on .service-mode-toggle-thumb{left:98px}
.service-mode-toggle.state-enabled .service-mode-toggle-track{background:#249b57;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 0 18px rgba(57,201,120,.18)}
.service-mode-toggle.state-disabled .service-mode-toggle-track{background:#a83e47;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),0 0 18px rgba(184,79,85,.14)}
.service-mode-toggle.state-busy .service-mode-toggle-track{background:#c89b3b;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 0 18px rgba(242,201,76,.18)}
@keyframes serviceModeErrorBlink{0%,46%{background:#d0a43e;box-shadow:0 0 0 2px rgba(242,201,76,.28),0 0 22px rgba(242,201,76,.35)}47%,100%{background:#8b6a22;box-shadow:0 0 0 1px rgba(242,201,76,.12),0 0 4px rgba(242,201,76,.1)}}
.service-mode-toggle.state-error .service-mode-toggle-track{animation:serviceModeErrorBlink .9s steps(1,end) infinite}
.service-mode-state-caption{font-weight:800;font-size:13px;color:var(--muted);padding-left:48px}
.service-mode-error{color:#f2c94c!important;font-weight:700}
.service-mode-journal-fab{position:fixed;right:26px;bottom:26px;z-index:90;display:flex;align-items:center;gap:10px;padding:11px 14px!important;border-radius:14px!important;background:var(--hgc-surface,var(--panel))!important;border:1px solid var(--border)!important;color:var(--text)!important;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.28)}
.service-mode-journal-icon{position:relative;width:22px;height:26px;border:2px solid currentColor;border-radius:3px;display:inline-block;background:rgba(158,176,196,.08)}
.service-mode-journal-icon:before{content:"";position:absolute;left:-5px;top:3px;width:5px;height:2px;background:currentColor;box-shadow:0 6px 0 currentColor,0 12px 0 currentColor,0 18px 0 currentColor}
.service-mode-journal-icon:after{content:"";position:absolute;left:5px;right:4px;top:6px;height:2px;background:currentColor;box-shadow:0 5px 0 currentColor,0 10px 0 currentColor}
@keyframes serviceModeJournalBlink{0%,46%{border-color:#f2c94c;box-shadow:0 0 0 2px rgba(242,201,76,.22),0 10px 30px rgba(242,201,76,.24);color:#ffe58a}47%,100%{border-color:var(--border);box-shadow:0 10px 30px rgba(0,0,0,.28);color:var(--text)}}
.service-mode-journal-fab.service-mode-journal-alert{animation:serviceModeJournalBlink .9s steps(1,end) infinite}
.service-mode-journal-fab[data-count]:after{content:attr(data-count);display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#c89b3b;color:#071019;font-size:11px;font-weight:900}
.service-mode-journal-fab[data-count="0"]:after{display:none}
#service-mode-issue-dialog{width:min(680px,calc(100% - 24px));z-index:1200}
.service-mode-journal-dialog{padding:22px;max-height:min(80vh,760px);overflow:auto}
.service-mode-journal-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.service-mode-journal-dialog header h2{margin:3px 0 0}.service-mode-journal-dialog header small{color:var(--muted)}
.service-mode-journal-close{font-size:26px!important;line-height:1;background:transparent!important;border:0!important;padding:2px 6px!important}
.service-mode-journal-body{display:grid;gap:10px}
.service-mode-journal-entry{padding:14px;border:1px solid var(--border);border-radius:14px;background:rgba(20,34,50,.58)}
.service-mode-journal-entry.active{border-color:rgba(242,201,76,.55)}.service-mode-journal-entry.resolved{opacity:.68}
.service-mode-journal-entry-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.service-mode-journal-entry p{margin:9px 0 4px}.service-mode-journal-status{font-size:10px;font-weight:900;letter-spacing:.06em;padding:5px 8px;border-radius:999px;border:1px solid var(--border)}
.service-mode-journal-status.active{border-color:#c89b3b;color:#ffe58a}.service-mode-journal-status.resolved{border-color:#2b9e5c;color:#8de0ad}
@media(max-width:850px){.service-mode-toggle{grid-template-columns:auto 132px auto}.service-mode-toggle-track{width:132px}.service-mode-toggle.position-on .service-mode-toggle-thumb{left:80px}.service-mode-journal-fab{right:14px;bottom:142px}.service-mode-state-caption{padding-left:42px}}

/* HGC active VPN mode indicator */
button.mode-active,button.mode-active:disabled{
  background:#16a34a;
  border-color:#54d27d;
  color:#fff;
  font-weight:800;
  opacity:1;
}

/* HGC unified status visual contract */
.status.good,.good.status{
  background:#16a34a;
  border-color:#54d27d;
  color:#fff;
}
.status.warn,.warn.status{
  background:#ca8a04;
  border-color:#facc15;
  color:#fff;
}
.status.bad,.bad.status{
  background:#dc2626;
  border-color:#ff6b61;
  color:#fff;
}
.status.unknown,.unknown.status{
  background:#7c3f6f;
  border-color:#b57aa6;
  color:#fff;
}
.overview-card-state.good{background:#16a34a;border:1px solid #54d27d;color:#fff}
.overview-card-state.warn{background:#ca8a04;border:1px solid #facc15;color:#fff}
.overview-card-state.bad{background:#dc2626;border:1px solid #ff6b61;color:#fff}
.overview-card-state.unknown{background:#7c3f6f;border:1px solid #b57aa6;color:#fff}

/* HGC final unified status fill contract */
.status.good,.good.status{background:#16a34a!important;border-color:#54d27d!important;color:#fff!important}
.status.warn,.warn.status{background:#ca8a04!important;border-color:#facc15!important;color:#fff!important}
.status.bad,.bad.status{background:#dc2626!important;border-color:#ff6b61!important;color:#fff!important}
.status.unknown,.unknown.status{background:#7c3f6f!important;border-color:#b57aa6!important;color:#fff!important}
.overview-card-state.good{background:#16a34a!important;border-color:#54d27d!important;color:#fff!important}
.overview-card-state.warn{background:#ca8a04!important;border-color:#facc15!important;color:#fff!important}
.overview-card-state.bad{background:#dc2626!important;border-color:#ff6b61!important;color:#fff!important}
.overview-card-state.unknown{background:#7c3f6f!important;border-color:#b57aa6!important;color:#fff!important}
