/* Native root dashboard: no charting CDN or synthetic weather fixtures. */
:root {
  color-scheme: dark;
}
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #05070b;
  color: #f2f3f6;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
a,
button {
  font: inherit;
}
:focus-visible {
  outline: 2px solid #9dcbff;
  outline-offset: 3px;
}
.op-root {
  max-width: 1220px;
  margin: auto;
  padding: 24px 22px 48px;
  color: #f2f3f6;
  font-family:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.op-root [hidden] {
  display: none !important;
}
.op-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0 22px;
}
.op-heading {
  max-width: 690px;
}
.op-heading h1 {
  font-size: clamp(29px, 4vw, 47px);
  line-height: 1.12;
  font-weight: 740;
  letter-spacing: -0.045em;
  margin: 8px 0 14px;
}
.op-eyebrow,
.op-section-kicker {
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #8bc4ff;
  font-weight: 650;
}
.op-eyebrow span {
  color: #646c78;
  margin: 0 5px;
}
.op-subtitle {
  color: #a3a8b3;
  font-size: 15px;
  line-height: 1.65;
}
.op-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.op-link,
.op-button {
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid #2b303b;
  border-radius: 7px;
  padding: 9px 12px;
  text-decoration: none;
  white-space: nowrap;
  color: #dce4ee;
  background: #12151c;
}
.op-link:hover,
.op-button:hover {
  border-color: #54719c;
  background: #1d2633;
  color: white;
}
.op-link-subtle {
  color: #8d96a4;
}
.op-button {
  background: #dae7ff;
  color: #111827;
  border-color: #dae7ff;
  font-weight: 650;
  cursor: pointer;
}
.op-button:hover {
  background: white;
  color: #10151d;
}
.op-button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.op-strip {
  border: 1px solid #29313c;
  border-radius: 8px;
  padding: 12px 15px;
  color: #c8ced9;
  background: #111720;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  flex-wrap: wrap;
}
.op-strip-right {
  margin-left: auto;
  color: #96a2b4;
  font-variant-numeric: tabular-nums;
}
.op-retry-status {
  font-size: 11px;
  color: #90a7c5;
  white-space: nowrap;
}
.op-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #89919f;
  box-shadow: 0 0 0 3px #ffffff12;
}
.op-led[data-state="ok"] {
  background: #4bd5a0;
}
.op-led[data-state="warn"] {
  background: #f5bb6c;
}
.op-section {
  margin-top: 36px;
}
.op-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.op-section-heading h2 {
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin: 7px 0 0;
}
.op-provenance {
  color: #7f8b9f;
  font-size: 11px;
  text-align: right;
}
.op-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.op-stat-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.op-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 133px;
  background: #11151c;
  border: 1px solid #292f39;
  border-radius: 10px;
  padding: 17px;
}
.op-stat > span {
  font-size: 12px;
  font-weight: 620;
  color: #afb9c8;
}
.op-stat > strong {
  font-size: clamp(22px, 3.8vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 710;
  font-variant-numeric: tabular-nums;
}
.op-stat > small {
  font-size: 11px;
  line-height: 1.5;
  color: #8490a0;
}
.op-stat-ok > strong {
  color: #75e0b2;
}
.op-stat-warn > strong {
  color: #f1c078;
}
.op-stat-fail > strong {
  color: #f49897;
}
.op-stat-unknown > strong {
  color: #afbad0;
}
.op-panel {
  border: 1px solid #292f39;
  border-radius: 10px;
  background: #10141b;
  padding: 19px;
  min-width: 0;
}
.op-distribution {
  margin-top: 12px;
}
.op-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.op-panel-heading h3 {
  font-size: 13px;
  font-weight: 680;
}
.op-panel-heading p {
  font-size: 11px;
  color: #8190a2;
}
.op-meter {
  min-height: 23px;
  border: 1px solid #49566b;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  background: #202a36;
  align-items: stretch;
}
.op-meter-segment {
  flex: 0 0 auto;
  min-width: 0;
  display: block;
  min-height: 21px;
  /* Probe updates resize segments smoothly (disabled by reduced motion). */
  transition:
    flex-basis 0.6s ease,
    background-color 0.3s ease;
}
.op-meter-segment + .op-meter-segment {
  border-left: 1px solid #111927;
}
.op-meter-description {
  margin: 10px 0 0;
  color: #a7b6c8;
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.op-meter-segment-ok {
  background: #50c89c;
}
.op-meter-segment-warn {
  background: #e1b362;
}
.op-meter-segment-fail {
  background: #df8189;
}
.op-meter-segment-unknown {
  background: #626e81;
}
.op-meter-segment-scheduled {
  background: #a78bfa;
}
.op-meter-pending {
  font-size: 10px;
  color: #8c98ab;
  margin: auto;
}
.op-meter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 13px;
  color: #9aa5b6;
  font-size: 11px;
}
.op-meter-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.op-meter-legend strong {
  color: #e1e9f4;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.op-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.op-dot-ok {
  background: #50c89c;
}
.op-dot-warn {
  background: #e1b362;
}
.op-dot-fail {
  background: #df8189;
}
.op-dot-unknown {
  background: #626e81;
}
.op-dot-scheduled {
  background: #a78bfa;
}
.op-locked {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.op-locked strong {
  font-size: 14px;
}
.op-locked p {
  font-size: 12px;
  line-height: 1.65;
  color: #9fa9b8;
  max-width: 790px;
  margin-top: 7px;
}
.op-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.op-chart {
  height: 150px;
  border-radius: 6px;
  background: #0c1017;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.op-mini-chart {
  margin-top: auto;
  height: 58px;
  padding-top: 9px;
}
.op-chart svg,
.op-mini-chart svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.op-spark-grid {
  stroke: #26303c;
  stroke-width: 1.2;
  fill: none;
}
.op-spark-line {
  stroke: #86bcfc;
  stroke-width: 2.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  fill: none;
}
.op-mini-chart .op-spark-line {
  stroke: #a7dcc9;
}
.op-chart-empty {
  color: #7e8a9c;
  font-size: 12px;
  text-align: center;
}
.op-secondary-heading {
  margin-top: 34px;
}
.op-history-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0 17px;
  font-size: 12px;
  color: #aab6c5;
}
.op-history-toolbar select {
  color: #f4f7fc;
  background: #151e28;
  border: 1px solid #435269;
  border-radius: 7px;
  padding: 7px 10px;
}
.op-history-toolbar span {
  color: #8594a7;
  font-variant-numeric: tabular-nums;
}
.op-history-secondary {
  margin-top: 12px;
}
.op-correlation {
  margin-top: 12px;
}
.op-correlation-footnote {
  color: #8390a0;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 10px;
}
.op-scatter-dot {
  fill: #8ac7ff;
  opacity: 0.85;
}
.op-scatter-axis {
  stroke: #536171;
  stroke-width: 1;
  fill: none;
}
.op-scatter-label {
  font-size: 11px;
  fill: #8799af;
}
.op-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.op-check {
  border: 1px solid #252d39;
  background: #0b1017;
  padding: 12px 14px;
  border-radius: 8px;
}
.op-check-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.op-check-heading strong {
  font-size: 12px;
  color: #dde4ef;
}
.op-check p {
  font-size: 11px;
  color: #8896a9;
  margin-top: 8px;
  line-height: 1.5;
}
.op-check-state {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid #414b59;
  padding: 3px 7px;
  border-radius: 4px;
  color: #a9b4c3;
}
.op-check-state-ok {
  border-color: #246247;
  color: #77e5b3;
}
.op-check-state-warn {
  border-color: #74541c;
  color: #f0c477;
}
.op-check-state-fail {
  border-color: #693b43;
  color: #f09a9d;
}
.op-footer {
  border-top: 1px solid #222936;
  margin-top: 34px;
  padding-top: 17px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #778497;
  font-size: 11px;
}
/* Evidence mosaic: compact, textual legends and no synthetic rows. */
.op-probe-mosaic {
  margin-top: 14px;
}
.op-probe-mosaic-grid {
  list-style: none;
  margin: 4px 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24px, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow: auto;
}
.op-probe-tile {
  height: 24px;
  min-width: 24px;
  border-radius: 4px;
  border: 1px solid #5b6472;
  background: #414a58;
}
.op-probe-tile-ok {
  background: #2c9d74;
  border-color: #52d5a0;
}
.op-probe-tile-warn {
  background: #9d712d;
  border-color: #e8b85a;
}
.op-probe-tile-fail {
  background: #a33c4b;
  border-color: #ec8e99;
}
.op-probe-tile-unknown {
  background: #414a58;
  border-color: #7d8797;
}
.op-probe-tile-scheduled {
  background: #4c3a78;
  border-color: #a78bfa;
}
.op-probe-tile-stale {
  background: repeating-linear-gradient(
    135deg,
    #424b58,
    #424b58 5px,
    #202734 5px,
    #202734 10px
  );
}

/* Relative resource bars: measured values only, with text labels for a11y. */
.op-field-label {
  font-size: 11px;
  color: #97a8be;
}
.op-select {
  width: 100%;
  max-width: 390px;
  color: #f4f7fc;
  background: #151e28;
  border: 1px solid #435269;
  border-radius: 7px;
  padding: 9px 11px;
  font: inherit;
  font-size: 12px;
}
.op-resource-bars {
  list-style: none;
  padding: 0;
  margin: 17px 0 7px;
  display: grid;
  gap: 14px;
}
.op-resource-item {
  min-width: 0;
}
.op-resource-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 12px;
}
.op-resource-label strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #e1e8f3;
  font-weight: 610;
}
.op-resource-label data {
  color: #b8d1f0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.op-resource-track {
  height: 10px;
  border: 1px solid #344354;
  border-radius: 4px;
  background: #1a2431;
  overflow: hidden;
}
.op-resource-fill {
  height: 100%;
  display: block;
  background: #70afed;
  border-radius: 3px;
  max-width: 100%;
}
.op-resource-empty {
  color: #94a3b6;
  font-size: 12px;
  line-height: 1.6;
}
.op-flow-stat {
  margin: 20px 0 9px;
  border: 1px solid #283a4b;
  border-radius: 8px;
  padding: 15px;
  background: #101c28;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.op-flow-stat span {
  font-size: 12px;
  color: #abb8ca;
}
.op-flow-stat strong {
  font-size: 24px;
  color: #e1ebf8;
  font-variant-numeric: tabular-nums;
}
.op-flow-link {
  display: inline-flex;
  margin-top: 16px;
}

@media (max-width: 960px) {
  .op-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .op-head {
    flex-direction: column;
  }
  .op-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 650px) {
  .op-root {
    padding: 18px 14px 30px;
  }
  .op-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .op-stat-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .op-dashboard-grid,
  .op-check-list {
    grid-template-columns: 1fr;
  }
  .op-stat {
    min-height: 119px;
    padding: 13px;
  }
  .op-locked {
    align-items: flex-start;
    flex-direction: column;
  }
  .op-section-heading {
    align-items: start;
    flex-direction: column;
  }
  .op-provenance {
    text-align: left;
  }
  .op-strip-right {
    width: 100%;
    margin-left: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .op-root * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* OWNER-only comparison: column intensity is relative to measured maxima. */
.op-heatmap-heading {
  margin-top: 26px;
}
.op-heatmap-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.op-heatmap {
  min-width: 660px;
  display: grid;
  gap: 5px;
}
.op-heatmap-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.5fr) repeat(5, minmax(83px, 1fr));
  align-items: stretch;
  gap: 5px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.op-heatmap-head {
  color: #a9b4c4;
  font-weight: 650;
}
.op-heatmap-head > span {
  padding: 5px;
}
.op-heatmap-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-self: center;
  padding: 7px 5px;
  color: #dbe5f3;
}
.op-heatmap-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px;
  border: 1px solid #354356;
  border-radius: 4px;
  background: rgba(76, 145, 218, var(--heat-alpha, 0.1));
  color: #f5f8ff;
  white-space: nowrap;
}
.op-heatmap-missing {
  border-style: dashed;
  background: repeating-linear-gradient(
    135deg,
    #19212d,
    #19212d 5px,
    #222d3b 5px,
    #222d3b 10px
  );
  color: #b4bfce;
}

/* Public historical counts must never look like currently green probes. */
#home-fleet-meter[data-historical="true"] .op-meter-segment {
  background: #758295;
}
.op-stat-scheduled {
  border-color: #51416f;
}
