/* Reference UI shell based on the June 2026 Novaris audit. */
html, body { width: 100%; height: 100%; overflow: hidden; }
body { background: #030812; color: var(--text-1); font-family: var(--font); }
button, select { font: inherit; }

.ref-app-shell {
  width: 100vw;
  height: 100dvh;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  background:
    radial-gradient(circle at 70% -20%, rgba(73, 142, 210, .13), transparent 38%),
    linear-gradient(145deg, #020710 0%, #06101d 55%, #030812 100%);
  overflow: hidden;
}

.ref-sidebar {
  min-width: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(110, 185, 242, .19);
  background: linear-gradient(180deg, rgba(5, 14, 26, .99), rgba(3, 9, 18, .99));
  box-shadow: 12px 0 42px rgba(0, 0, 0, .28);
  overflow: hidden;
  z-index: 20;
}

.ref-brand {
  height: 76px;
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(110, 185, 242, .13);
}
.ref-brand-mark { position: relative; width: 34px; height: 34px; filter: drop-shadow(0 0 14px rgba(94, 203, 255, .28)); }
.ref-brand-mark span, .ref-brand-mark i, .ref-brand-mark b { position: absolute; display: block; border-radius: 50%; background: var(--cyan); }
.ref-brand-mark span { width: 7px; height: 7px; left: 4px; top: 19px; }
.ref-brand-mark i { width: 6px; height: 6px; right: 4px; top: 5px; }
.ref-brand-mark b { width: 5px; height: 5px; right: 2px; bottom: 3px; }
.ref-brand-mark::before, .ref-brand-mark::after { content: ""; position: absolute; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); transform-origin: left center; left: 8px; top: 21px; width: 24px; }
.ref-brand-mark::before { transform: rotate(-36deg); }
.ref-brand-mark::after { transform: rotate(17deg); }
.ref-brand strong { display: block; font-size: 17px; letter-spacing: .16em; }
.ref-brand small { display: block; margin-top: 4px; color: var(--text-3); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

.ref-navigation { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 10px 9px 18px; scrollbar-width: thin; scrollbar-color: rgba(94, 203, 255, .22) transparent; }
.ref-nav-group { padding: 6px 0 8px; }
.ref-nav-group-title { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 9px; color: #9eafc0; }
.ref-nav-group-title > span { width: 19px; height: 19px; display: grid; place-items: center; }
.ref-nav-group-title .nv-icon { width: 15px; height: 15px; stroke: currentColor; }
.ref-nav-group-title strong { flex: 1; font-size: 13px; font-weight: 630; }
.ref-nav-group-title i { color: var(--text-3); font-style: normal; }
.ref-nav-group-title em { padding: 2px 6px; border: 1px solid rgba(126, 154, 183, .15); border-radius: 999px; color: #607488; font-size: 9px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.ref-nav-entries { margin-left: 22px; padding-left: 9px; border-left: 1px solid rgba(98, 172, 230, .15); display: grid; gap: 5px; }
.ref-nav-entry { width: 100%; min-height: 36px; border: 1px solid transparent; border-radius: 9px; background: rgba(12, 25, 41, .58); color: #8fa1b5; display: flex; align-items: center; gap: 9px; padding: 7px 9px; cursor: pointer; text-align: left; transition: border-color var(--fast), background var(--fast), color var(--fast), transform var(--fast); }
.ref-nav-entry .nv-icon { width: 14px; height: 14px; stroke: currentColor; opacity: .78; }
.ref-nav-entry span { flex: 1; font-size: 11px; }
.ref-nav-entry small { font-size: 8px; color: #5f7285; text-transform: uppercase; letter-spacing: .08em; }
.ref-nav-entry:hover:not(.disabled) { color: #d9efff; border-color: rgba(94, 203, 255, .24); background: rgba(15, 36, 57, .84); transform: translateX(2px); }
.ref-nav-entry.active { color: #f2f8ff; border-color: rgba(94, 203, 255, .5); background: linear-gradient(90deg, rgba(22, 80, 116, .72), rgba(12, 34, 55, .86)); box-shadow: inset 3px 0 0 var(--cyan), 0 0 22px rgba(36, 139, 195, .1); }
.ref-nav-entry.disabled { opacity: .48; cursor: default; }

.ref-sidebar-status { flex: 0 0 auto; margin: 0 10px 10px; padding: 12px; border: 1px solid rgba(102, 177, 235, .16); border-radius: 12px; background: rgba(8, 20, 34, .82); display: grid; gap: 8px; }
.ref-sidebar-status-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(102, 177, 235, .1); }
.ref-sidebar-status-head strong { font-size: 11px; color: var(--text-2); }
.ref-sidebar-status > div:not(.ref-sidebar-status-head) { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--text-3); }
.ref-sidebar-status > div strong { color: var(--text-2); }
.ref-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px currentColor; }
.ref-status-dot.warning { background: var(--amber); }
.ref-status-dot.danger { background: var(--red); }
.ref-reset-link { justify-self: start; border: 0; background: transparent; color: #587289; padding: 0; font-size: 10px; cursor: pointer; }
.ref-reset-link:hover { color: var(--cyan); }

.ref-app-main { min-width: 0; height: 100dvh; display: grid; grid-template-rows: 60px minmax(0, 1fr); overflow: hidden; }
.ref-commandbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 18px 0 22px; border-bottom: 1px solid rgba(105, 183, 240, .14); background: rgba(4, 12, 22, .88); backdrop-filter: blur(18px); z-index: 15; }
.ref-breadcrumb { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.ref-breadcrumb small { color: var(--cyan); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.ref-breadcrumb strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-commandbar-status { display: flex; align-items: center; gap: 8px; }
.ref-commandbar-status .nv-chip { min-height: 28px; }
.ref-commander { min-height: 32px; display: flex; align-items: center; gap: 8px; padding: 4px 9px 4px 5px; border: 1px solid rgba(117, 187, 238, .18); border-radius: 999px; background: rgba(10, 23, 38, .74); }
.ref-commander > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--cyan); background: rgba(94, 203, 255, .12); border: 1px solid rgba(94, 203, 255, .2); font-size: 10px; }
.ref-commander small, .ref-commander strong { display: block; line-height: 1.1; }
.ref-commander small { color: var(--text-3); font-size: 7px; letter-spacing: .12em; }
.ref-commander strong { margin-top: 2px; font-size: 10px; }

.ref-content-scroll { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(94, 203, 255, .24) transparent; }
.view-stage { min-height: 100%; padding: 12px; }
.ref-flash { margin-bottom: 10px; padding: 9px 12px; border: 1px solid rgba(94, 203, 255, .22); border-left: 3px solid var(--cyan); border-radius: 8px; background: rgba(13, 34, 54, .72); color: #cdeeff; font-size: 11px; animation: refFlashIn .25s ease; }
@keyframes refFlashIn { from { opacity: 0; transform: translateY(-4px); } }

.ref-page { width: 100%; min-width: 0; }
.ref-eyebrow { display: block; color: #85b9e4; font-size: 10px; line-height: 1.2; letter-spacing: .18em; text-transform: uppercase; font-weight: 760; }
.ref-status-pill, .ref-count-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 3px 9px; border: 1px solid rgba(118, 188, 239, .2); border-radius: 999px; color: #9bb0c4; background: rgba(11, 25, 41, .78); font-size: 9px; white-space: nowrap; }
.ref-status-pill.good { color: var(--green); border-color: rgba(77, 224, 170, .28); }
.ref-status-pill.warn { color: var(--amber); border-color: rgba(244, 189, 88, .28); }
.ref-level-label { display: block; margin-top: 4px; color: var(--amber); font-size: 13px; }
.good-text { color: var(--green) !important; }
.warning-text { color: var(--amber) !important; }
.cyan-text { color: var(--cyan) !important; }
.muted-text { color: var(--text-3) !important; }

.ref-primary-button, .ref-secondary-button, .ref-quick-action, .ref-empty-compact button {
  border: 1px solid rgba(94, 203, 255, .36);
  border-radius: 9px;
  min-height: 36px;
  padding: 8px 13px;
  color: #eff8ff;
  background: linear-gradient(180deg, rgba(21, 83, 119, .96), rgba(12, 49, 76, .96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 8px 24px rgba(0,0,0,.15);
  cursor: pointer;
  transition: transform var(--fast), border-color var(--fast), filter var(--fast);
}
.ref-primary-button:hover:not(:disabled), .ref-secondary-button:hover:not(:disabled), .ref-quick-action:hover { transform: translateY(-1px); border-color: rgba(118, 219, 255, .7); filter: brightness(1.08); }
.ref-primary-button:disabled, .ref-secondary-button:disabled { cursor: not-allowed; color: #6f7f8f; background: rgba(36, 47, 62, .75); border-color: rgba(123, 145, 166, .14); box-shadow: none; }
.ref-primary-button.wide { width: 100%; }
.ref-primary-button .nv-icon, .ref-quick-action .nv-icon { width: 14px; height: 14px; margin-left: 6px; vertical-align: middle; }
.ref-secondary-button { background: rgba(17, 36, 57, .88); }

@media (max-width: 1180px) {
  .ref-app-shell { grid-template-columns: 206px minmax(0, 1fr); }
  .ref-commandbar-status .nv-chip:nth-child(2), .ref-commandbar-status .nv-chip:nth-child(3) { display: none; }
  .ref-nav-entry span { font-size: 10px; }
}
@media (max-width: 820px) {
  .ref-app-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .ref-brand { justify-content: center; padding: 0; }
  .ref-brand > div:last-child, .ref-nav-group-title strong, .ref-nav-group-title i, .ref-nav-group-title em, .ref-nav-entry span, .ref-nav-entry small, .ref-sidebar-status > div:not(.ref-sidebar-status-head), .ref-sidebar-status-head strong, .ref-reset-link { display: none; }
  .ref-nav-group-title { justify-content: center; padding: 0; }
  .ref-nav-entries { margin-left: 0; padding-left: 0; border-left: 0; }
  .ref-nav-entry { justify-content: center; padding: 7px; }
  .ref-sidebar-status { padding: 10px; justify-items: center; }
  .ref-sidebar-status-head { border: 0; padding: 0; }
  .ref-commandbar { padding: 0 10px; }
  .ref-breadcrumb small { display: none; }
  .ref-commander div { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
