:root {
  --level-0:#11233b;
  --level-1:#274268;
  --level-2:#476794;
  --level-3:#c6d3e4;
  --level-4:#e2e7ee;
  --level-5:#eef1f5;
  --text-primary:#1e3764;
  --text-secondary:#687d9d;
  --border-primary:#dfe6f1;
  --border-secondary:#edf1f7;
  --banner-bg:var(--bg-secondary);
  --row-hover:#527db40b;
  --sidebar-bg:var(--level-0);
  --vm-running:#22865c;
  --vm-error:#c74754;
  --vm-stopped:#8290a4;
  --vm-transition:#b98128;
}

body {
  font-size:13px;
  overflow:hidden;
}

a {
  color:inherit;
}

button,input,select,textarea {
  font:inherit;
}

button,a,input,textarea,select {
  outline-offset:3px;
}

button:focus-visible,a:focus-visible {
  outline:2px solid currentColor;
}

button:disabled {
  opacity:.4;
  cursor:not-allowed;
}

[hidden] {
  display:none!important;
}

.sidebar {
  width:128px;
  align-items:stretch;
  padding:23px 0 12px;
  gap:0;
  border:0;
  background:var(--level-0);
  color:#ccd8ee;
}

.fleet-brand {
  text-decoration:none;
  padding:0 16px 32px;
  color:#fff;
}

.fleet-brand>span {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:27px;
  font-weight:750;
  letter-spacing:-1.3px;
}

.brand-mark {
  width:19px;
  height:19px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3px;
  transform:rotate(-10deg);
}

/* The two ends of the NodeWeaver slide gradient: orange above blue. */
.brand-mark i {
  background:#f58938;
}

.brand-mark i:nth-child(n+3) {
  background:#377dbe;
}

.fleet-brand small {
  display:block;
  font-size:8px;
  letter-spacing:1.1px;
  color:#a8bcd9;
  margin-top:8px;
}

.sidebar-section-label {
  padding:13px 20px;
  margin:0 0 5px;
  color:#a5b9d8;
  font-size:8px;
  letter-spacing:1.2px;
}

.side-icon {
  width:calc(100% - 9px);
  margin-left:9px;
  height:46px;
  border-radius:6px 0 0 6px;
  display:flex;
  justify-content:flex-start;
  gap:10px;
  padding:0 12px;
  font-size:12px;
  color:#d1dcee;
  white-space:nowrap;
}

.side-icon i {
  width:16px;
  text-align:center;
  font-size:14px;
}

.side-icon:hover {
  background:#ffffff0b;
}

.side-icon.active {
  background:var(--bg-primary);
  color:var(--text-primary);
  box-shadow:none;
}

.side-icon.active.branch {
  background:var(--level-1);
  color:#f2f6fd;
}

.sidebar form {
  margin:0;
}

.sidebar button.side-icon {
  padding:0 12px;
  width:calc(100% - 9px);
}

.side-icon.disabled {
  opacity:.4;
}

.signed-in-user {
  margin:17px 14px 0;
  padding-top:18px;
  border-top:1px solid #ffffff20;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:10px;
}

.signed-in-user>span {
  width:27px;
  height:27px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#d9e9fb;
  color:#243f6d;
  flex-shrink:0;
}

.signed-in-user strong {
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:500;
}

.fleet-shell {
  margin-left:128px;
  height:100vh;
  display:flex;
  min-width:0;
  overflow-x:auto;
}

.main {
  margin:0;
  padding:24px 30px;
  flex:1;
  min-width:420px;
  overflow:auto;
  scrollbar-gutter:stable;
  background:var(--bg-primary);
}

.signed-out .fleet-shell {
  margin-left:0;
}

.signed-out .main {
  padding:0;
  min-width:0;
  width:100%;
}

body.dark-theme {
  --sidebar-bg:var(--level-0);
  --banner-bg:var(--bg-secondary);
}

.nav-column {
  position:relative;
  flex-shrink:0;
  width:var(--column-width);
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:hidden;
  --column-ink:#1e3764;
  --column-muted:#4b6283;
  --column-rule:#1e37641f;
  color:var(--column-ink);
}

.level-1 {
  --column-width:180px;
  background:var(--level-1);
  --child:var(--level-2);
}

.level-2 {
  --column-width:152px;
  background:var(--level-2);
  --child:var(--level-3);
}

.level-3 {
  --column-width:176px;
  background:var(--level-3);
  --child:var(--level-4);
  --column-muted:#30486b;
}

.level-4 {
  --column-width:184px;
  background:var(--level-4);
  --child:var(--bg-primary);
}

/* the fifth column: the k3s items of a view (k3s.js fills it) */
.level-5 {
  --column-width:224px;
  background:var(--level-5);
  --child:var(--bg-primary);
}

.level-1,.level-2 {
  --column-ink:#f2f6fd;
  --column-muted:#e2ebf7;
  --column-rule:#ffffff24;
}

/* A column the current view does not use folds to a strip with its title, as columns.js decides
   (before it runs, the rule after these shows the same fold); its content keeps
   its full width (and its scroll positions) behind the strip, and the strip opens it again. */
.nav-column>:not(.column-strip) {
  min-width:var(--column-width);
}

.nav-column.collapsed {
  width:36px;
}

/* the fold animates only when a strip opens or closes its column, not as each page loads */
.columns-ready>.nav-column {
  transition:width .18s ease;
}

.nav-column.collapsed>:not(.column-strip) {
  visibility:hidden;
}

/* Until columns.js folds them, every column but the deepest is folded already: the browser paints a page that is
   still arriving, and a column painted open would close when the script runs and move the workspace. Then
   columns.js marks the shell columns-folded and decides alone (a strip opens its column). A separate rule: a
   browser without :has() drops only this one. */
.fleet-shell:not(.columns-folded)>.nav-column:has(~.nav-column) {
  width:36px;
}

.fleet-shell:not(.columns-folded)>.nav-column:has(~.nav-column)>* {
  visibility:hidden;
}

.column-strip {
  display:none;
}

.nav-column.collapsed>.column-strip {
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  align-items:center;
  gap:10px;
  padding:16px 0;
  border:0;
  border-right:1px solid var(--column-rule);
  background:transparent;
  color:inherit;
  font:inherit;
  writing-mode:vertical-rl;
  cursor:pointer;
  overflow:hidden;
}

.column-strip:hover,.column-strip:focus-visible {
  background:#ffffff14;
  outline:none;
}

.column-strip i {
  font-size:10px;
  color:var(--column-muted);
}

.column-strip small {
  font-size:8px;
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--column-muted);
}

.column-strip strong {
  font-size:13px;
  font-weight:650;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.column-head {
  height:106px;
  padding:16px 14px 13px;
  display:flex;
  flex-direction:column;
  flex-shrink:0;
  text-decoration:none;
  gap:9px;
  color:inherit;
  overflow:hidden;
}

.column-head:hover {
  background:#ffffff0c;
}

.column-eyebrow {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:8px;
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--column-muted);
}

.column-eyebrow i {
  font-size:9px;
  border:1px solid var(--column-rule);
  border-radius:4px;
  padding:4px;
  flex-shrink:0;
}

.column-head>strong {
  font-size:21px;
  font-weight:750;
  line-height:1.15;
  letter-spacing:-.7px;
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-thickness:1px;
  white-space:nowrap;
  overflow:hidden;
}

.column-subtitle {
  font-size:9px;
  color:var(--column-muted);
  white-space:nowrap;
  overflow:hidden;
}

.column-search {
  margin:14px 11px 12px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:7px 8px;
  border:1px solid var(--column-rule);
  border-radius:5px;
  color:var(--column-muted);
  flex-shrink:0;
}

.column-search i {
  font-size:9px;
}

.column-search input {
  border:0;
  background:none;
  color:var(--column-ink);
  font-size:10px;
  min-width:0;
  width:100%;
  outline:0;
  padding:0;
}

.column-search input::placeholder {
  color:var(--column-muted);
}

.column-group {
  padding:5px 14px 10px;
  display:flex;
  justify-content:space-between;
  text-transform:uppercase;
  font-size:8px;
  letter-spacing:1px;
  color:var(--column-muted);
  flex-shrink:0;
}

.column-list {
  overflow-y:auto;
  overflow-x:hidden;
  flex:1;
  min-height:0;
  scrollbar-width:thin;
  scrollbar-color:#a2b7d1 #ffffff0c;
  padding-top:5px;
}

.column-items {
  width:max-content;
  min-width:100%;
}

.column-items .column-choice {
  white-space:nowrap;
}

.column-pan {
  height:12px;
  flex-shrink:0;
  overflow-x:scroll;
  overflow-y:hidden;
  scrollbar-width:thin;
  scrollbar-color:#95abc6 #ffffff0c;
}

.column-pan>div { height:1px; }
.column-pan::-webkit-scrollbar { height:8px; }
.column-pan::-webkit-scrollbar-track { background:#ffffff0c; }
.column-pan::-webkit-scrollbar-thumb { background:#95abc6; border-radius:6px; }

.btn[aria-disabled="true"] { opacity:.4; cursor:not-allowed; }

.column-list[data-scroll-list="clusters"],.column-list[data-scroll-list="vms"] {
  overflow-y:scroll;
}

/* columns.js restores each list's position itself: the browser's scroll anchoring moved a list by a pixel when the
   web fonts changed its rows' heights, and that shift was saved as the user's position, one pixel per navigation */
.column-list {
  overflow-anchor:none;
}

.level-3 .column-list,.level-4 .column-list,.level-5 .column-list {
  scrollbar-color:#667f9f #1e37640c;
}

.column-list::-webkit-scrollbar {
  width:8px;
  height:8px;
}

.column-list::-webkit-scrollbar-track {
  background:#ffffff0c;
}

.column-list::-webkit-scrollbar-thumb {
  background:#95abc6;
  border:2px solid transparent;
  background-clip:padding-box;
  border-radius:6px;
}

.level-3 .column-list::-webkit-scrollbar-thumb,.level-4 .column-list::-webkit-scrollbar-thumb,.level-5 .column-list::-webkit-scrollbar-thumb {
  background-color:#667f9f;
}

.column-choice {
  margin-left:8px;
  width:calc(100% - 8px);
  min-height:39px;
  padding:9px 10px;
  display:flex;
  align-items:center;
  gap:7px;
  border-radius:6px 0 0 6px;
  text-decoration:none;
  border:0;
  background:none;
  color:inherit;
  font-size:11px;
  text-align:left;
  line-height:1.4;
  cursor:pointer;
}

.column-choice>i:first-child {
  width:15px;
  font-size:12px;
  text-align:center;
  flex-shrink:0;
}

.column-choice>span:not(.entity-label):not(.health-dot):not(.column-marks):not(.rt-pill) {
  flex:1;
}

.column-choice>i:last-child:not(:first-child) {
  font-size:9px;
  margin-left:auto;
  opacity:.75;
}

.column-choice:hover {
  background:#ffffff18;
}

.column-choice.selected {
  background:var(--child);
  font-weight:650;
}

.level-2 .column-choice.selected {
  color:#1e3764;
}

.level-2 .column-choice.selected:not(.branch),.level-3 .column-choice.leaf {
  background:var(--bg-primary);
  color:var(--text-primary);
}

.level-4 .column-choice.selected,.level-5 .column-choice.selected {
  color:var(--text-primary);
}

.level-4 .column-choice.branch.selected {
  background:var(--level-5);
}

.column-choice.disabled {
  opacity:.4;
  cursor:not-allowed;
}

.column-choice.danger {
  color:#86393f;
}

.column-list form {
  margin:0;
}

.entity-choice {
  padding:8px 10px;
  min-height:47px;
}

.entity-label {
  min-width:max-content;
  flex:1;
}

.entity-label strong {
  display:block;
  white-space:nowrap;
  font-weight:550;
  font-size:11px;
}

.entity-label small {
  display:block;
  white-space:nowrap;
  font-size:9px;
  margin-top:3px;
  color:var(--column-muted);
}

.entity-choice.selected strong {
  font-weight:700;
}

.health-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  flex-shrink:0;
  align-self:flex-start;
  margin-top:7px;
  background:#7e8fa6;
}

.health-dot.healthy {
  background:#348461;
}

.health-dot.warning {
  background:#bc8c35;
}

.health-dot.unlicensed,.health-dot.critical {
  background:var(--status-bad);
}

.level-1 .health-dot.healthy {
  background:#91d5ba;
}

.level-1 .health-dot.warning {
  background:#dfbf7e;
}

.vm-state-running { --vm-color:var(--vm-running); }
.vm-state-error { --vm-color:var(--vm-error); }
.vm-state-stopped { --vm-color:var(--vm-stopped); }
.vm-state-transition { --vm-color:var(--vm-transition); }

.entity-label strong[class*="vm-state-"] {
  color:var(--vm-color);
}

.health-dot[class*="vm-state-"] {
  width:7px;
  height:7px;
  background:var(--vm-color);
}

.status-pill[class*="vm-state-"] {
  color:var(--vm-color);
  background:color-mix(in srgb,var(--vm-color) 12%,var(--bg-primary));
}

.column-marks {
  display:flex;
  gap:2px;
  align-items:center;
  max-width:30px;
}

.column-marks>i {
  font-size:9px;
  margin:0;
}

.column-marks .rt-pill {
  font-size:7px;
  padding:1px 3px;
}

.column-marks+.fa-angle-right {
  display:none;
}

.list-range {
  height:31px;
  flex-shrink:0;
  padding:8px 13px;
  font-size:8px;
  color:var(--column-muted);
  display:flex;
  gap:6px;
  align-items:center;
  border-top:1px solid var(--column-rule);
}

.list-range>span {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  flex:1;
}

.list-range>span:last-child {
  text-align:right;
}

.list-range i {
  font-size:8px;
}

.column-footer {
  margin-top:auto;
  padding:15px 14px;
  font-size:9px;
  line-height:1.8;
  color:var(--column-muted);
  border-top:1px solid var(--column-rule);
  flex-shrink:0;
}

.column-empty,.filter-empty {
  font-size:11px;
  padding:18px 14px;
  color:var(--column-muted);
  line-height:1.6;
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

.page-heading h1 {
  font-size:27px;
  letter-spacing:-1.2px;
  font-weight:600;
  margin:6px 0;
  line-height:1.25;
  overflow-wrap:anywhere;
}

.page-heading p {
  color:var(--text-secondary);
  font-size:11px;
  line-height:1.7;
  margin:0;
}

.eyebrow {
  font-size:9px;
  letter-spacing:1.4px;
  text-transform:uppercase;
  font-weight:600;
  color:var(--text-secondary);
  overflow-wrap:anywhere;
}

.heading-actions {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.heading-actions form {
  margin:0;
}

.card {
  box-shadow:none;
  border:0;
  border-radius:0;
  background:transparent;
  margin-bottom:18px;
}

.card-header {
  padding:10px 0;
  font-size:13px;
  font-weight:600;
  background:transparent;
  gap:15px;
}

.card-body {
  padding:12px 0;
}

.card-body>p:first-child {
  margin-top:0;
}

.card-body>p {
  line-height:1.8;
  font-size:12px;
}

.btn {
  padding:9px 12px;
  border-radius:5px;
  font-size:11px;
  display:inline-flex;
  gap:7px;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

.btn-primary {
  background:#274268;
  border-color:#274268;
}

.btn-primary:hover {
  box-shadow:none;
  color:#fff;
}

.btn-sm {
  font-size:10px;
  padding:7px 9px;
}

.input {
  font-size:12px;
  border-radius:5px;
  padding:9px 10px;
}

.metrics-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-bottom:1px solid var(--border-primary);
  margin-bottom:16px;
  overflow:hidden;
}

.metric {
  padding:12px 16px 14px 0;
  background:transparent;
  min-width:0;
}

.metric:last-child {
  border:0;
}

.metric-label {
  font-size:11px;
  color:var(--text-secondary);
  margin-bottom:7px;
}

.metric-value {
  font-size:26px;
  letter-spacing:-1px;
  font-weight:500;
  line-height:1.2;
  overflow-wrap:anywhere;
}

.metric .small {
  font-size:10px;
  margin-top:6px;
  line-height:1.6;
}

.vm-facts th {
  width:190px;
  color:var(--text-secondary);
  font-weight:500;
  text-align:left;
}

.two-panels {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:22px;
}

.details-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 24px;
  margin:0;
}

.details-grid>div {
  padding:9px 0;
  border-bottom:1px solid var(--border-secondary);
  min-width:0;
}

.details-grid dt {
  font-size:11px;
  color:var(--text-secondary);
  font-weight:500;
  margin-bottom:4px;
}

.details-grid dd {
  margin:0;
  font-size:12px;
  overflow-wrap:anywhere;
  line-height:1.5;
}

.history-legend {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:8px;
  font-size:11px;
}

.history-legend>span:not(.small)::before {
  content:'';
  display:inline-block;
  width:14px;
  height:3px;
  background:currentColor;
  margin-right:6px;
  vertical-align:middle;
}

.resource-history svg {
  display:block;
  width:100%;
}

.history-cpu { color:var(--text-primary); }
.history-mem { color:#65a4cf; }
body.dark-theme .history-mem { color:#84c6f0; }
.history-line { fill:none; stroke:currentColor; stroke-width:2; vector-effect:non-scaling-stroke; }
.history-point { fill:currentColor; stroke:var(--bg-primary); stroke-width:1; }
.history-point:hover { r:5; }
.history-grid { stroke:var(--border-secondary); stroke-width:1; vector-effect:non-scaling-stroke; }
.history-axis { fill:var(--text-secondary); font:10px var(--font-sans); }

.history-legend .small {
  margin-left:auto;
  font-size:10px;
}

/* Probe history: small charts in a grid, one line per host; the legend carries the latest reading */
.probe-charts {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px 24px;
}

.probe-chart {
  margin:0;
  min-width:0;
}

.probe-chart figcaption {
  margin-bottom:4px;
  font-size:12px;
  font-weight:600;
}

.probe-chart svg {
  display:block;
  width:100%;
}

.history-controls { display:flex; flex-wrap:wrap; gap:12px; }
.current-monitoring { margin-bottom:22px; }
.interface-details { margin-bottom:22px; }
.interface-counters { margin:8px 0; }
.interface-counters summary { cursor:pointer; font-size:12px; font-weight:600; }
.interface-select { border:0; padding:0; background:none; color:inherit; font:inherit; text-decoration:underline; cursor:pointer; }
.interface-lookup { display:flex; flex-wrap:wrap; align-items:end; gap:8px; margin:8px 0; }
.interface-lookup label { display:grid; gap:4px; color:var(--text-secondary); font-size:12px; }
.history-controls label { display:grid; gap:4px; color:var(--text-secondary); font-size:12px; }
.history-controls [hidden] { display:none; }
.history-controls fieldset { border:0; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px 14px; }
.history-controls legend { color:var(--text-secondary); font-size:12px; margin-bottom:6px; }
.history-controls fieldset label { display:flex; align-items:center; gap:5px; }
.history-graphs { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,480px),1fr)); gap:22px 28px; }
.history-graph { position:relative; min-width:0; border-top:1px solid var(--border-secondary); padding-top:10px; }
.history-graph h3 { margin:0 0 8px; font-size:14px; }
.history-graph p { margin:4px 0; }
.history-graph [data-history-hover] { position:absolute; z-index:2; box-sizing:border-box; max-width:min(100%,360px); margin:0; padding:6px 8px; border:1px solid var(--border-primary); border-radius:4px; background:var(--bg-primary); color:var(--text-primary); overflow-wrap:anywhere; pointer-events:none; }
[data-history-svg] { display:block; width:100%; max-width:960px; }
[data-history-svg][hidden] { display:none; }

.probe-line { fill:none; stroke:currentColor; stroke-width:1.6; vector-effect:non-scaling-stroke; }
.probe-event { fill:var(--status-bad); stroke:var(--bg-primary); stroke-width:1; }

.probe-legend {
  display:flex;
  flex-wrap:wrap;
  gap:4px 12px;
  margin:4px 0 0;
  padding:0;
  list-style:none;
  font-size:11px;
}

.probe-legend li::before {
  content:'';
  display:inline-block;
  width:12px;
  height:3px;
  background:currentColor;
  margin-right:5px;
  vertical-align:middle;
}

.probe-legend strong { color:var(--text-primary); font-weight:600; }
.probe-series-0 { color:var(--text-primary); }
.probe-series-1 { color:#65a4cf; }
.probe-series-2 { color:#d08a2c; }
.probe-series-3 { color:#4f9d69; }
.probe-series-4 { color:#a15fb8; }
.probe-series-5 { color:#c4505a; }
.probe-series-0.probe-alert,.probe-legend .probe-alert strong { color:var(--status-bad); }
body.dark-theme .probe-series-1 { color:#84c6f0; }

.mcp-state {
  font-size:10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:16px 0 0;
  line-height:1.7;
}

.mcp-off {
  color:var(--text-secondary);
}

.mcp-ro {
  color:#3d9971;
}

.mcp-rw {
  color:#26744c;
}

.mcp-refused {
  color:#b9822e;
}

.rt-pill {
  display:inline-block;
  padding:1px 5px;
  font-size:9px;
  line-height:1.5;
  font-weight:750;
  border-radius:4px;
  vertical-align:middle;
}

.rt-ok {
  background:#d9eee9;
  color:#21735d;
}

.rt-warning {
  background:#fff0bb;
  color:#795d14;
}

.rt-critical {
  background:#f7dbdb;
  color:#a72d3c;
}

.status-pill {
  font-size:9px;
  text-transform:none;
  letter-spacing:0;
  padding:5px 8px;
  border-radius:4px;
  text-decoration:none;
  white-space:nowrap;
}

.status-neutral {
  background:var(--bg-tertiary);
  color:var(--text-secondary);
}

.status-warn {
  color:#967027;
}

body.dark-theme .rt-ok {
  background:#175449;
  color:#a6dfce;
}

body.dark-theme .rt-warning {
  background:#594d20;
  color:#ffe18b;
}

body.dark-theme .rt-critical {
  background:#612b36;
  color:#ffb8c2;
}

.table-wrap {
  overflow-x:auto;
}

th,td {
  font-size:11px;
  padding:15px 17px;
}

thead th {
  font-size:9px;
  font-weight:500;
  text-transform:none;
  letter-spacing:0;
  background:var(--bg-secondary);
}

th button {
  border:0;
  background:none;
  color:inherit;
  padding:0;
  cursor:pointer;
  font:inherit;
  white-space:nowrap;
}

th[aria-sort=ascending],th[aria-sort=descending] {
  color:var(--accent-primary);
}

td a {
  color:inherit;
}

td pre {
  margin:0;
  max-width:100%;
  font-size:11px;
  line-height:1.7;
}

.attribute-table {
  table-layout:fixed;
}

.attribute-table th:first-child {
  width:30%;
}

.attribute-table th,.attribute-table td {
  padding:9px 12px;
}

.attribute-table td {
  vertical-align:top;
  white-space:normal;
  overflow-wrap:anywhere;
}

.attribute-table code,.attribute-table pre {
  font-family:var(--font-sans);
  font-size:12px;
  line-height:1.5;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.spark-container {
  gap:5px;
  max-width:130px;
}

.spark-text {
  font-size:10px;
}

.cluster-toggle {
  text-decoration:none;
}

.label-pill {
  background:transparent;
  padding:0;
  font-size:11px;
  white-space:nowrap;
  /* a long label is cut, not allowed to widen the comparison past the page; the title gives it in full */
  display:inline-block;
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:bottom;
}

.col-uuid {
  font-size:10px;
}

.empty-state {
  padding:35px 25px;
  color:var(--text-secondary);
  font-size:12px;
  line-height:1.8;
  border:1px solid var(--border-primary);
  border-radius:7px;
}

.empty-state p {
  font-size:11px;
}

.flash {
  font-size:12px;
  line-height:1.6;
}

.flash pre {
  white-space:pre-wrap;
  font:inherit;
}

.flash.warning {
  background:#f8f1dd;
  border-color:#e8d9a9;
  color:#896a26;
}

body.dark-theme .flash.warning {
  background:#3d3421;
  border-color:#6e5b2d;
  color:#e9cf8d;
}

.cache-note {
  font-size:10px;
  margin-top:22px;
}

.code-output,.log-output {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:11px/1.9 var(--font-mono);
  max-height:65vh;
  overflow:auto;
  margin:0;
}

.code-output {
  color:var(--text-primary);
}

.vm-log-output {
  background:#172d4a;
  color:#dce7f7;
  padding:21px;
  border-radius:5px;
  min-height:260px;
}

.power-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:20px;
}

.power-actions form {
  margin:0;
}

.vm-data .table-wrap {
  max-width:100%;
}

.log-controls {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-end;
}

.log-controls label {
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:10px;
  color:var(--text-secondary);
}

.log-search {
  flex:1;
  min-width:130px;
}

.log-controls .input {
  width:auto;
  min-width:70px;
}

.log-search .input {
  width:100%;
}

.vm-console {
  border:1px solid var(--border-primary);
  width:100%;
  height:calc(100vh - 210px);
  min-height:400px;
  border-radius:6px;
  background:#111;
}

.console-actions {
  margin:0 0 16px;
}

.error-text {
  color:var(--status-bad)!important;
}

.is-busy {
  opacity:.6;
  pointer-events:none;
}

#fleet-notice {
  position:fixed;
  bottom:20px;
  right:20px;
  max-width:420px;
  background:var(--bg-secondary);
  color:var(--text-primary);
  border:1px solid var(--border-primary);
  border-radius:6px;
  padding:14px 18px;
  font-size:12px;
  z-index:200;
  box-shadow:0 5px 25px #11233b16;
}

.overview-metrics {
  grid-template-columns:repeat(3,minmax(0,1fr));
}

@media(max-width:1100px) {
  .main {
    padding:25px;
    min-width:420px;
  }
  .metrics-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .metric:nth-child(2) {
    border-right:0;
  }
  .metric:nth-child(-n+2) {
    border-bottom:1px solid var(--border-primary);
  }
  .two-panels {
    grid-template-columns:1fr;
  }
  .overview-metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-height:700px) {
  .sidebar {
    padding-top:15px;
  }
  .fleet-brand {
    padding-bottom:17px;
  }
  .side-icon {
    height:38px;
  }
  .column-head {
    height:90px;
  }
  .column-footer {
    padding:10px 14px;
  }
}

.level-1 .column-choice.leaf.selected {
  background:var(--bg-primary);
  color:var(--text-primary);
}

.overview-metrics .metric:nth-child(3n) {
  border-right:0;
}

.overview-metrics .metric:nth-child(-n+3) {
  border-bottom:1px solid var(--border-primary);
}

.overview-attention,.overview-activity {
  max-height:490px;
  overflow:auto;
}

.overview-attention thead,.overview-activity thead {
  position:sticky;
  top:0;
  z-index:1;
}

/* the overview's lists and the cluster and VM views' tables: dense rows, no lines between them */
.compact-table th,.compact-table td {
  padding:5px 10px;
  border:0;
  font-size:12px;
  line-height:1.35;
}

.compact-table th {
  font-size:11px;
}

.compact-table tbody tr:nth-child(even) {
  background:var(--border-secondary);
}

.compact-mono {
  font-family:var(--font-mono);
  font-size:11px !important;
  white-space:nowrap;
}

.compact-table tbody tr {
  height:28px;
}

.compact-table td {
  vertical-align:middle;
}

.compact-table .spark-container svg {
  height:16px;
}

.compact-table .status-pill {
  padding:1px 7px;
  font-size:10px;
  line-height:1.5;
}

.attention-problem {
  overflow-wrap:anywhere;
}

@media(max-width:1100px) {
  .overview-metrics .metric {
    border-right:1px solid var(--border-primary);
  }
  .overview-metrics .metric:nth-child(2n) {
    border-right:0;
  }
  .overview-metrics .metric:nth-child(-n+4) {
    border-bottom:1px solid var(--border-primary);
  }
}

/* A node's ethernet ports: a green dot for a link, gray for none, a ring when the link is not known */
.nic-list {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:3px 14px;
}

.nic-list li {
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

/* every port the same width (a name up to eth99, a whole MAC address), so ethN takes the same place on every node */
.nic-list strong {
  min-width:2.9em;
}

.nic-list code {
  font-family:var(--font-mono);
  font-size:11px;
  min-width:17ch;
}

.link-dot {
  display:inline-block;
  vertical-align:middle;
  width:8px;
  height:8px;
  border-radius:50%;
  flex-shrink:0;
  background:var(--text-tertiary);
}

.link-dot.link-up {
  background:var(--status-ok);
}

.link-dot.link-unknown {
  background:transparent;
  border:1px solid var(--text-tertiary);
  box-sizing:border-box;
}

/* Stored data that is not current (columns.js): the page's banner, and the data grayed. A status pill keeps its
   color, so a disconnected cluster still reads red; live views (terminal, logs, data read on demand) stay as they are. */
.snapshot-banner {
  font-weight:600;
}

#page-content.is-snapshot > :not(.page-heading):not(.snapshot-banner):not(.flash):not(.console-actions):not(.console-shell):not([data-node-data]):not([data-vm-data]):not([data-logs]),
.stale > :not(:has(.status-pill)) {
  opacity:.45;
  filter:grayscale(1);
}

#page-content.is-snapshot .stale > * {   /* already grayed with the page */
  opacity:1;
  filter:none;
}
