:root {
  color-scheme: dark;
  --bg: #030b18;
  --panel: #071629;
  --border: #1b4262;
  --text: #edf7ff;
  --muted: #98b2ca;
  --cyan: #55e4ff;
  --green: #4defb5;
  --amber: #ffc56b;
  --red: #ff748d;
  --purple: #b39aff;
  --blue: #65a8ff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(ellipse at 50% 0%, #103b5f66, transparent 65%),
    linear-gradient(#1f567b12 1px, transparent 1px),
    linear-gradient(90deg, #1f567b12 1px, transparent 1px), var(--bg);
  background-size:
    auto,
    48px 48px,
    48px 48px,
    auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
}
svg {
  display: block;
}
[hidden] {
  display: none !important;
}
.shell {
  min-height: 100dvh;
}
main {
  width: 100%;
  padding: 14px 24px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.masthead {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  min-height: 94px;
  position: relative;
  gap: 20px;
  padding-bottom: 14px;
}
.masthead::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #3199ce,
    #72eaff,
    #3199ce,
    transparent
  );
  box-shadow: 0 0 15px #55e4ff40;
}
.host-identity {
  min-width: 0;
}
.host-identity strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.host-identity p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.separator {
  color: #458bb0;
  padding: 0 8px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--green);
  letter-spacing: 2px;
}
.live-pill .dot {
  animation: live-pulse 3s ease-in-out infinite;
}
.screen-title {
  text-align: center;
  position: relative;
  padding: 5px 12px 10px;
}
.screen-title::before,
.screen-title::after {
  content: "";
  position: absolute;
  bottom: 17px;
  height: 12px;
  width: 60px;
  border-top: 2px solid #318ec2;
  border-bottom: 1px solid #318ec255;
  transform: skewX(-40deg);
}
.screen-title::before {
  left: -40px;
}
.screen-title::after {
  right: -40px;
  transform: skewX(40deg);
}
.title-kicker {
  color: #73afd0;
  font-size: 10px;
  letter-spacing: 5px;
}
h1 {
  font-size: clamp(26px, 1.85vw, 42px);
  font-weight: 650;
  letter-spacing: 5px;
  color: #e5f9ff;
  text-shadow: 0 0 24px #55e4ff3b;
  line-height: 1.35;
  margin-top: 4px;
  white-space: nowrap;
}
.title-decoration {
  display: block;
  height: 3px;
  width: 140px;
  margin: 11px auto 0;
  background: linear-gradient(90deg, transparent, #55e4ff, transparent);
  box-shadow: 0 0 12px #55e4ff66;
}
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}
.clock-block {
  display: grid;
  text-align: right;
  gap: 4px;
}
.timezone-label {
  color: #79a6c4;
  font-size: 12px;
}
.clock {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  color: #d3f4ff;
  white-space: nowrap;
}
.icon-button {
  display: grid;
  gap: 3px;
  justify-items: center;
  min-width: 44px;
  border: 1px solid #276185;
  border-radius: 4px;
  background: #092138;
  color: #92c8e2;
  padding: 8px;
  font-size: 11px;
}
.icon-button:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.signal-strip {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 1.1fr;
  gap: 18px;
  align-items: center;
  min-height: 62px;
  padding: 8px 20px;
  border: 1px solid #1b4161;
  border-left: 3px solid var(--green);
  background: linear-gradient(90deg, #0c323955, #09203766);
}
.overall-block {
  display: grid;
  gap: 2px;
}
.signal-label,
.signal-card > span {
  font-size: 12px;
  color: var(--muted);
}
.signal-card {
  border-left: 1px solid #234660;
  padding-left: 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.signal-card strong {
  color: var(--cyan);
  font-size: 23px;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.signal-card strong.error {
  color: var(--red);
}
.signal-card strong.warn {
  color: var(--amber);
}
.status-pill {
  font-size: 22px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.4;
}
.status-pill.warn {
  color: var(--amber);
}
.status-pill.error {
  color: var(--red);
}
.status-pill.neutral {
  color: var(--muted);
}
.update-block {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  font-size: 12px;
  color: #a2c4dc;
}
.update-pulse {
  width: 8px;
  height: 8px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 9px #55e4ff99;
  animation: live-pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}
.data-warning {
  padding: 10px 18px;
  background: #3d2a14;
  border: 1px solid #ad7a39;
  border-left: 3px solid var(--amber);
  color: #ffe0ac;
  font-size: 14px;
}
.dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 9px #4defb54d;
}
.dot.amber {
  background: var(--amber);
  box-shadow: 0 0 8px #ffc56b44;
}
.dot.red {
  background: var(--red);
  box-shadow: 0 0 8px #ff748d44;
}
.dot.muted {
  background: var(--muted);
  box-shadow: none;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric-card,
.panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  background: linear-gradient(130deg, #0c2340b3, #071527ed 75%);
  box-shadow:
    inset 0 1px #73cbff0a,
    0 6px 24px #00000020;
}
.metric-card::before,
.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid #51b2dd;
  border-left: 2px solid #51b2dd;
  pointer-events: none;
}
.metric-card::after,
.panel::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid #51b2dd;
  border-right: 2px solid #51b2dd;
  pointer-events: none;
}
.metric-card {
  padding: 12px 22px;
  min-height: 170px;
  overflow: hidden;
}
.metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #b6d5eb;
  font-size: 15px;
}
.metric-label small {
  color: var(--muted);
}
.source-label {
  font-size: 11px;
  color: #769cba;
  letter-spacing: 0.5px;
}
.big-value {
  display: flex;
  align-items: baseline;
  gap: 9px;
  line-height: 1.1;
  margin: 5px 0 3px;
}
.big-value > span {
  font-size: clamp(42px, 2.5vw, 66px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: #b3f2ff;
  letter-spacing: -1px;
  text-shadow: 0 0 24px #55e4ff20;
}
.big-value small {
  font-size: 18px;
  color: #90bed6;
}
.metric-detail {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.metric-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ring {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring svg {
  position: absolute;
  inset: 0;
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 4;
}
.ring-track {
  stroke: #214160;
}
.ring-progress {
  stroke: var(--cyan);
  stroke-dasharray: 219.912;
  stroke-dashoffset: 219.912;
  transition: stroke-dashoffset 0.7s ease-out;
}
.ring span {
  color: #ceefff;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.ring small {
  color: var(--muted);
  font-size: 10px;
}
.sparkline {
  height: 25px;
  margin-top: 2px;
}
.sparkline svg {
  height: 100%;
  width: 100%;
}
.meter {
  height: 3px;
  background: #17364e;
  margin-top: 9px;
}
.meter > span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #446fda, var(--purple));
  box-shadow: 0 0 10px #aa9bff44;
  transition: width 0.7s;
}
.disk-meter > span {
  background: linear-gradient(90deg, #218c88, var(--green));
  box-shadow: 0 0 10px #4defb533;
}
.metric-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.metric-footer strong {
  color: #c7f2ff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.container-split {
  display: flex;
  gap: 26px;
  margin-top: 8px;
  border-top: 1px solid #244663;
  padding-top: 8px;
}
.container-split > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.container-split strong {
  color: #d7f3ff;
  font-size: 18px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.85fr 1fr;
  grid-template-areas: "services network alerts" "performance containers tools";
  grid-template-rows: 358px 284px;
  gap: 16px;
}
.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 10px;
  flex-shrink: 0;
}
.section-kicker {
  color: #77a5c4;
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 3px;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.2;
}
h3 {
  font-size: 13px;
  color: #bdd7ea;
  font-weight: 500;
}
.tabs {
  display: flex;
  gap: 3px;
  border: 1px solid #234b6a;
  padding: 3px;
  background: #081a2b;
  flex-shrink: 0;
}
.tabs button {
  border: none;
  color: #9dbbd2;
  background: transparent;
  padding: 4px 9px;
  font-size: 12px;
  white-space: nowrap;
}
.tabs button.selected {
  color: var(--cyan);
  background: #153e57;
}
.tabs button:hover {
  color: #e4f7ff;
}
.network-panel {
  grid-area: network;
  border-color: #28688a;
  background:
    radial-gradient(ellipse at 50% 0, #13507930, transparent 80%), #07172aeb;
}
.network-panel::before,
.network-panel::after {
  width: 24px;
  height: 24px;
  border-color: var(--cyan);
}
.bandwidth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 24px 12px;
  flex-shrink: 0;
}
.bandwidth-stat {
  position: relative;
  min-width: 0;
}
.bandwidth-stat + .bandwidth-stat {
  padding-left: 24px;
  border-left: 1px solid #24506c;
}
.bandwidth-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #bce7de;
  font-size: 14px;
}
.bandwidth-label > span {
  font-size: 21px;
  line-height: 1;
  color: var(--green);
}
.outgoing .bandwidth-label {
  color: #bdd8ff;
}
.outgoing .bandwidth-label > span {
  color: var(--blue);
}
.bandwidth-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 6px;
}
.bandwidth-number strong {
  font-size: clamp(44px, 3.35vw, 82px);
  line-height: 1;
  font-weight: 650;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px #4defb526;
  letter-spacing: -2px;
}
.outgoing .bandwidth-number strong {
  color: #85bdff;
  text-shadow: 0 0 22px #65a8ff44;
}
.bandwidth-number > span {
  font-size: 17px;
  color: #91b4cc;
}
.bandwidth-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.bandwidth-secondary b {
  color: #d1e4f2;
  font-weight: 500;
}
.network-plot {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #adc4d6;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.legend i {
  width: 14px;
  height: 3px;
  display: inline-block;
  background: var(--cyan);
}
.legend .purple {
  background: var(--purple);
}
.legend .green {
  background: var(--green);
}
.legend .blue {
  background: var(--blue);
}
.chart {
  width: 100%;
  flex: 1;
  min-height: 0;
  position: relative;
}
.chart svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.chart .chart-tooltip {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 1px solid #4185a9;
  background: #061a2ded;
  color: #dcf0fc;
  font-size: 12px;
  line-height: 1.7;
  padding: 8px 12px;
  white-space: pre-line;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 6px 24px #0006;
}
.chart-point {
  filter: drop-shadow(0 0 4px currentColor);
}
.network-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 10px;
  color: #91afc6;
  font-size: 11px;
  flex-shrink: 0;
}
.network-note > span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}
.network-note .dot {
  width: 5px;
  height: 5px;
}
.performance {
  grid-area: performance;
}
.chart-grid {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 0 16px;
}
.chart-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}
.chart-caption {
  display: flex;
  justify-content: space-between;
  color: #7c9cb7;
  font-size: 10px;
  padding-top: 2px;
}
.performance-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 15px;
  border-top: 1px solid #214462;
  padding: 8px 0 10px;
  margin: 8px 16px 0;
  flex-shrink: 0;
}
.performance-footer > div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}
.performance-footer span {
  color: var(--muted);
  font-size: 10px;
}
.performance-footer strong {
  font-size: 12px;
  font-weight: 500;
  color: #d6eafa;
  font-variant-numeric: tabular-nums;
}
.performance-footer > div:nth-child(3),
.performance-footer > div:nth-child(4) {
  grid-column: 1 / -1;
}
.service-panel {
  grid-area: services;
}
.service-list {
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  padding: 0 18px;
  flex: 1;
  min-height: 0;
}
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #21415c;
  padding: 3px 0;
  min-height: 0;
}
.service-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #91c9e5;
  border: 1px solid #305b7a;
  background: #0b2944;
  font-size: 10px;
  flex-shrink: 0;
}
.service-name strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #d9eefc;
}
.service-name small {
  display: none;
}
.service-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 13px;
  white-space: nowrap;
}
.service-status.warn {
  color: var(--amber);
}
.service-status.error {
  color: var(--red);
}
.service-status.neutral {
  color: var(--muted);
}
.nezha-summary {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #a4c5da;
  font-size: 11px;
  padding: 10px 18px 0;
  flex-shrink: 0;
}
.panel-note {
  font-size: 10px;
  color: #80a2bc;
  padding: 6px 18px 10px;
  flex-shrink: 0;
}
.tiny-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0c332d;
  border: 1px solid #276450;
  padding: 3px 7px;
  font-size: 11px;
  color: #80edbb;
  white-space: nowrap;
}
.tiny-badge.warn {
  color: var(--amber);
  border-color: #86603a;
  background: #382817;
}
.tiny-badge.error {
  color: var(--red);
  border-color: #8d3c52;
  background: #3b162a;
}
.tiny-badge.neutral {
  color: var(--muted);
  border-color: #35546f;
  background: #142b40;
}
.containers-panel {
  grid-area: containers;
}
.heading-count {
  color: #7dbad6;
  font-size: 14px;
  padding-left: 8px;
}
.text-link {
  font-size: 11px;
  color: #82c9e8;
  white-space: nowrap;
}
a.text-link:hover {
  color: var(--cyan);
}
.table-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 10px;
  flex-shrink: 0;
}
.table-filters {
  display: flex;
  gap: 8px;
  min-width: 0;
}
select {
  min-width: 0;
  width: 115px;
  background: #0c2034;
  border: 1px solid #284e6c;
  color: #b7d3e6;
  padding: 5px 6px;
  font-size: 11px;
}
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0c2034;
  border: 1px solid #284e6c;
  padding: 4px 8px;
  min-width: 0;
  width: 162px;
}
.search svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #739bb6;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.search input {
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
  background: transparent;
  color: #d8eaf9;
  font-size: 11px;
}
.search input::placeholder {
  color: #7c9db8;
}
.table-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #2e5774 #07172a;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}
th {
  text-align: left;
  padding: 8px 10px;
  color: #98bdd9;
  background: #0f2a42;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1;
}
th:first-child {
  width: 43%;
  padding-left: 18px;
}
th:nth-child(2) {
  width: 18%;
}
th:nth-child(3) {
  width: 15%;
}
th.number {
  width: 12%;
  text-align: right;
}
td {
  padding: 9px 10px;
  border-bottom: 1px solid #193d58;
  color: #a4c5dc;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
td:first-child {
  padding-left: 18px;
  color: #d4e7f7;
}
td.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
tbody tr:hover {
  background: #12334c;
}
.table-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 11px;
}
.table-status.warn {
  color: var(--amber);
}
.table-status.error {
  color: var(--red);
}
.table-status.neutral {
  color: var(--muted);
}
.table-status .dot {
  width: 5px;
  height: 5px;
}
.empty-row {
  height: 84px;
  color: var(--muted) !important;
  text-align: center !important;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px;
  color: #8eafc8;
  border-top: 1px solid #234b68;
  font-size: 10px;
  flex-shrink: 0;
}
.table-footer > span:last-child {
  text-align: right;
}
.alerts-panel {
  grid-area: alerts;
}
.alarm-list {
  margin: 0 18px;
  min-height: 75px;
  max-height: 96px;
  overflow: auto;
  scrollbar-width: thin;
  flex: 1;
}
.no-alarms {
  color: var(--green);
  font-size: 21px;
  padding: 10px 12px;
  background: #0e40322b;
  border-left: 2px solid var(--green);
}
.no-alarms small {
  display: block;
  color: #87b9ad;
  font-size: 10px;
  margin-top: 5px;
}
.alarm-item {
  border-left: 2px solid var(--amber);
  background: #3a2b214d;
  padding: 8px 10px;
  margin-bottom: 6px;
}
.alarm-item.error {
  border-color: var(--red);
  background: #43213166;
}
.alarm-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.alarm-heading strong {
  color: var(--amber);
  font-size: 12px;
  font-weight: 500;
}
.alarm-item.error strong {
  color: var(--red);
}
.alarm-heading small {
  font-size: 10px;
  color: var(--muted);
}
.alarm-item p {
  color: #aec6d9;
  font-size: 10px;
  margin-top: 4px;
}
.safeguards {
  padding: 8px 18px 0;
  flex-shrink: 0;
}
.safeguard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #1e425d;
}
.safeguard-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  background: #102c45;
  border: 1px solid #2e5572;
  color: #8ec5df;
  flex-shrink: 0;
}
.safeguard > div {
  flex: 1;
  min-width: 0;
}
.safeguard strong {
  font-size: 12px;
  color: #c7e0f3;
  font-weight: 500;
}
.safeguard p {
  color: #8aacc6;
  font-size: 10px;
  margin-top: 2px;
}
.safeguard .tiny-badge {
  font-size: 10px;
}
.loading-note {
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}
.tools-section {
  grid-area: tools;
}
.tools-grid {
  display: grid;
  gap: 8px;
  padding: 0 18px 16px;
  flex: 1;
  min-height: 0;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #204663;
  padding: 3px 12px;
  line-height: 1.3;
  background: linear-gradient(90deg, #14324a77, #0a1b2a44);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.tool-card:hover {
  border-color: #56b5dd;
  background: #123b57;
}
.tool-symbol {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid #386986;
  background: #17405a55;
  font-size: 11px;
  flex-shrink: 0;
}
.tool-card strong {
  font-size: 13px;
  color: #cce7f9;
  font-weight: 500;
}
.tool-card small {
  display: block;
  color: #91b1c9;
  font-size: 10px;
}
.tool-arrow {
  margin-left: auto;
  color: #66bbdf;
  font-size: 18px;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  color: #8aaac2;
  border-top: 1px solid #1d4560;
  padding-top: 8px;
}
.source-states {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.source-state {
  display: flex;
  align-items: center;
  gap: 6px;
}
.source-state .dot {
  width: 5px;
  height: 5px;
}
.source-state.bad {
  color: var(--amber);
}
.stale-number {
  opacity: 0.45;
}
.source-unavailable .chart,
.source-unavailable .bandwidth-secondary {
  opacity: 0.45;
}
@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@media (min-width: 1400px) and (min-height: 900px) {
  main {
    height: 100dvh;
    grid-template-rows: 94px 62px 170px minmax(0, 1fr) 27px;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  main:has(.data-warning:not([hidden])) {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: 94px 62px auto 170px minmax(590px, 1fr) 27px;
  }
  .dashboard-grid {
    grid-template-rows: minmax(330px, 1.2fr) minmax(260px, 0.95fr);
  }
}
@media (min-width: 2300px) and (min-height: 1200px) {
  main {
    grid-template-rows: 110px 80px 210px minmax(0, 1fr) 32px;
    gap: 24px;
    padding: 20px 36px;
  }
  .metric-card {
    padding: 22px 30px;
  }
  .metric-label {
    font-size: 20px;
  }
  .metric-detail,
  .metric-footer,
  .network-note,
  .signal-label,
  .signal-card > span {
    font-size: 15px;
  }
  .service-name strong,
  .service-status,
  .safeguard strong,
  .tool-card strong {
    font-size: 18px;
  }
  .service-name small {
    display: block;
    color: var(--muted);
    font-size: 12px;
  }
  .service-row {
    padding: 15px 0;
  }
  .panel-head {
    padding: 22px 24px 18px;
  }
  h2 {
    font-size: 24px;
  }
  h3,
  .bandwidth-label {
    font-size: 18px;
  }
  .no-alarms {
    font-size: 26px;
  }
  .no-alarms small,
  .safeguard p,
  .panel-note {
    font-size: 13px;
  }
  .safeguard {
    padding: 18px 0;
  }
  .alarm-list {
    max-height: 180px;
  }
  .bandwidth-secondary,
  .legend,
  .tabs button,
  table {
    font-size: 15px;
  }
  .bandwidth-number strong {
    font-size: 92px;
  }
  .bandwidth-grid {
    padding-bottom: 22px;
  }
  .performance-footer {
    padding: 12px 0 16px;
    gap: 10px;
  }
  .performance-footer span,
  .performance-footer strong {
    font-size: 14px;
  }
  .tool-card {
    padding: 12px 18px;
  }
  .tool-card small {
    font-size: 13px;
  }
}
@media (max-width: 1399px) {
  main {
    padding: 12px 18px;
  }
  .masthead {
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 10px;
  }
  .screen-title::before,
  .screen-title::after {
    width: 30px;
  }
  .screen-title::before {
    left: -10px;
  }
  .screen-title::after {
    right: -10px;
  }
  h1 {
    font-size: 25px;
    letter-spacing: 2px;
  }
  .clock {
    font-size: 16px;
  }
  .topbar-actions {
    gap: 12px;
  }
  .signal-strip {
    grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
    gap: 12px;
  }
  .update-block {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: -4px;
  }
  .signal-card {
    padding-left: 16px;
  }
  .signal-card strong {
    font-size: 21px;
  }
  .status-pill {
    font-size: 19px;
  }
  .metric-card {
    padding: 14px 16px;
  }
  .metric-label {
    font-size: 13px;
  }
  .metric-detail {
    font-size: 11px;
  }
  .ring {
    width: 65px;
    height: 65px;
    flex-basis: 65px;
  }
  .ring svg {
    width: 65px;
    height: 65px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1.65fr;
    grid-template-areas: "services network" "performance containers" "alerts tools";
    grid-template-rows: 350px 290px 350px;
  }
  .bandwidth-number strong {
    font-size: 54px;
  }
}
@media (max-width: 1000px) {
  .masthead {
    grid-template-columns: 1fr 1fr;
  }
  .screen-title {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-bottom: 8px;
  }
  .screen-title::before,
  .screen-title::after {
    display: none;
  }
  .host-identity {
    grid-row: 2;
  }
  .topbar-actions {
    grid-row: 2;
  }
  .signal-strip {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .overall-block {
    grid-column: 1 / -1;
  }
  .signal-card {
    border-left: 0;
    padding-left: 0;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "network network" "services alerts" "performance performance" "containers containers" "tools tools";
    grid-template-rows: 390px 370px 290px 360px auto;
  }
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tool-card {
    min-height: 54px;
  }
}
@media (max-width: 640px) {
  main {
    padding: 12px;
    gap: 12px;
  }
  .masthead {
    gap: 12px;
    padding-bottom: 16px;
  }
  h1 {
    font-size: 25px;
    letter-spacing: 2px;
  }
  .title-kicker {
    font-size: 9px;
  }
  .host-identity strong {
    font-size: 13px;
  }
  .host-identity p {
    font-size: 10px;
  }
  #host-os {
    display: none;
  }
  .host-identity .separator {
    display: none;
  }
  .clock {
    font-size: 13px;
  }
  .timezone-label {
    font-size: 10px;
  }
  .icon-button {
    min-width: 32px;
    padding: 6px;
  }
  .icon-button > span {
    display: none;
  }
  .topbar-actions {
    gap: 8px;
  }
  .signal-strip {
    padding: 12px;
    gap: 10px;
  }
  .signal-card {
    display: grid;
    gap: 3px;
  }
  .signal-card > span {
    font-size: 11px;
  }
  .signal-card strong {
    font-size: 18px;
  }
  .update-block {
    font-size: 10px;
  }
  .metric-grid {
    gap: 12px;
  }
  .metric-card {
    padding: 12px;
    min-height: 163px;
  }
  .metric-label {
    font-size: 12px;
  }
  .source-label {
    display: none;
  }
  .big-value > span {
    font-size: 36px;
  }
  .big-value small {
    font-size: 14px;
  }
  .metric-detail {
    font-size: 10px;
    white-space: normal;
  }
  .ring {
    display: none;
  }
  .metric-footer {
    font-size: 10px;
  }
  .metric-footer strong {
    font-size: 12px;
  }
  .container-split {
    gap: 14px;
  }
  .container-split > div {
    font-size: 10px;
    gap: 5px;
  }
  .container-split strong {
    font-size: 14px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "network" "services" "alerts" "performance" "containers" "tools";
    grid-template-rows: 355px 350px 355px 285px 360px auto;
    gap: 12px;
  }
  .panel-head {
    padding: 12px 14px;
    gap: 8px;
  }
  h2 {
    font-size: 17px;
    letter-spacing: 0.5px;
  }
  .section-kicker {
    font-size: 8px;
  }
  .tabs button {
    font-size: 10px;
    padding: 4px 7px;
  }
  .bandwidth-grid {
    gap: 12px;
    padding: 0 14px 12px;
  }
  .bandwidth-stat + .bandwidth-stat {
    padding-left: 12px;
  }
  .bandwidth-label {
    font-size: 12px;
  }
  .bandwidth-number {
    gap: 5px;
  }
  .bandwidth-number strong {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .bandwidth-number > span {
    font-size: 12px;
  }
  .bandwidth-secondary {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 10px;
  }
  .network-plot {
    padding: 0 12px;
  }
  .network-note {
    padding: 6px 12px 10px;
    font-size: 9px;
  }
  .chart-title h3 {
    font-size: 11px;
  }
  .legend {
    font-size: 10px;
    gap: 8px;
  }
  .table-toolbar {
    flex-wrap: wrap;
    padding: 0 14px 10px;
  }
  .table-filters {
    flex: 1;
  }
  .search {
    flex: 1;
  }
  table {
    min-width: 590px;
  }
  .table-footer {
    font-size: 9px;
    padding: 8px 12px;
  }
  .table-footer > span:last-child {
    display: none;
  }
  .tools-grid {
    gap: 8px;
    padding: 0 14px 14px;
  }
  .tool-card {
    padding: 8px;
    gap: 8px;
  }
  .tool-symbol {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }
  .tool-card strong {
    font-size: 11px;
  }
  .tool-card small {
    font-size: 9px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 9px;
  }
  .source-states {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
