.telemetry-section { min-width: 0; }
.telemetry-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 26px; }
.telemetry-heading h2 { margin: 7px 0 10px; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.04em; font-weight: 620; }
.telemetry-toolbar { position: relative; z-index: 3; padding: 20px 22px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.telemetry-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; }
.telemetry-filters label, .telemetry-custom label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 550; min-width: 140px; }
.telemetry-filters select, .telemetry-custom input { max-width: 290px; min-height: 40px; padding: 8px 30px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--canvas); color: var(--ink); font-size: 12px; }
.telemetry-filters select:disabled { opacity: .5; }
.telemetry-custom { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.telemetry-custom > span { align-self: center; color: var(--subtle); }
.telemetry-query { min-height: 40px; padding: 9px 17px; color: #fff; background: var(--blue); border: 0; border-radius: 10px; font-size: 12px; }
.telemetry-pools { position: relative; min-width: 174px; }
.telemetry-pools summary { padding: 12px; list-style: none; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; background: var(--canvas); cursor: pointer; }
.telemetry-pools summary::after { content: '⌄'; float: right; margin-left: 20px; }
.telemetry-pool-options { position: absolute; top: 50px; left: 0; z-index: 5; display: grid; gap: 5px; width: 280px; max-height: 350px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.telemetry-pool-options label { display: flex; align-items: center; gap: 9px; padding: 7px; color: var(--ink); font-size: 12px; }
.telemetry-pool-options input { width: 15px; min-height: 15px; padding: 0; margin: 0; accent-color: var(--blue); }
.telemetry-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 25px; margin: 0 2px 16px; color: var(--muted); font-size: 11px; }
.telemetry-feedback time { margin-left: auto; font-variant-numeric: tabular-nums; }
.telemetry-feedback [id$="Loading"] { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); }
.telemetry-spinner { display: inline-block; width: 12px; height: 12px; border: 1.5px solid rgba(0,113,227,.2); border-top-color: var(--blue); border-radius: 50%; animation: telemetry-spin .9s linear infinite; }
@keyframes telemetry-spin { to { transform: rotate(360deg); } }
.telemetry-notice { padding: 12px 16px; margin-bottom: 16px; border: 1px solid #e4d3ac; border-radius: 12px; color: #745015; background: #fff9ed; font-size: 12px; line-height: 1.7; white-space: pre-line; }
.telemetry-chart-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.telemetry-chart-card { --plot-bg: #191b20; --plot-grid: #34363d; --plot-text: #b9bdc9; min-width: 0; padding: 22px 24px 17px; border: 1px solid #2b2e35; border-radius: 20px; color: #f3f4f8; background: var(--plot-bg); }
.telemetry-chart-card > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.telemetry-chart-card h3 { margin: 0; font-size: 15px; font-weight: 550; letter-spacing: -.015em; }
.telemetry-chart-card header span { color: #9fa4b1; font-size: 10px; }
.telemetry-plot { position: relative; height: 275px; }
.telemetry-plot canvas { display: block; width: 100%; height: 100%; outline-offset: 4px; touch-action: pan-y; }
.telemetry-plot-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #aeb4c3; font-size: 12px; line-height: 1.8; pointer-events: none; }
.telemetry-tooltip { position: absolute; z-index: 2; max-width: min(440px, 90%); max-height: 260px; overflow-y: auto; padding: 12px 14px; border: 1px solid #4b505e; border-radius: 10px; color: #f5f6f9; background: rgba(28,31,38,.97); box-shadow: 0 9px 30px #0005; font-size: 11px; white-space: pre-line; pointer-events: none; font-variant-numeric: tabular-nums; }
.telemetry-legend { display: flex; flex-wrap: wrap; align-items: start; gap: 6px 18px; margin-top: 12px; }
.telemetry-legend button { display: flex; gap: 8px; align-items: center; min-height: 28px; max-width: 100%; padding: 2px 0; border: 0; background: none; color: #b9bdc9; font-size: 11px; text-align: left; }
.telemetry-legend i { width: 18px; height: 3px; flex: 0 0 18px; border-radius: 3px; background: var(--series-color); }
.telemetry-legend span { overflow-wrap: anywhere; }
.telemetry-legend strong { margin-left: 5px; white-space: nowrap; color: #eff1f7; font-size: 11px; font-weight: 550; font-variant-numeric: tabular-nums; }
.telemetry-legend button[aria-pressed="false"] { opacity: .4; text-decoration: line-through; }
.telemetry-definition { margin: 20px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.telemetry-timezone { margin-left: auto; align-self: center; color: var(--muted); font-size: 11px; }
.host-card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 14px; margin-bottom: 24px; }
.host-resource-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.host-resource-card header { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.host-resource-card h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.host-state { margin-left: auto; font-size: 10px; color: var(--green); }
.host-state.offline, .host-state.delayed { color: var(--amber); }
.host-resource-card > small { color: var(--subtle); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.host-meter { margin-top: 16px; }
.host-meter > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.host-meter span { color: var(--muted); font-size: 11px; }
.host-meter strong { font-size: 19px; font-weight: 550; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.host-meter progress { width: 100%; height: 4px; margin: 7px 0 0; border: 0; border-radius: 9px; overflow: hidden; background: var(--canvas); accent-color: var(--blue); }
.host-meter progress::-webkit-progress-bar { background: #e9ecf1; border-radius: 9px; }
.host-meter progress::-webkit-progress-value { background: var(--blue); border-radius: 9px; }
.host-meter progress.high::-webkit-progress-value { background: var(--red); }
.host-resource-card dl { display: grid; grid-template-columns: 1fr auto; gap: 7px 8px; margin: 17px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.host-resource-card dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.host-resource-card .host-meta { margin: 13px 0 0; color: var(--subtle); font-size: 10px; line-height: 1.6; white-space: pre-line; }
.host-charts { grid-template-columns: repeat(2,minmax(0,1fr)); }
.telemetry-section :is(button,select,input,summary):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.telemetry-chart-card :is(button,canvas):focus-visible { outline: 2px solid #62b5ff; outline-offset: 4px; }
@media(max-width: 1199px) { .host-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 699px) {
  .telemetry-heading { gap: 8px; align-items: start; }
  .telemetry-heading .quiet-button { white-space: nowrap; padding: 8px; }
  .telemetry-filters { gap: 12px; }
  .telemetry-filters label { flex: 1; min-width: 125px; }
  .telemetry-filters select { max-width: 100%; width: 100%; }
  .telemetry-pools { flex: 1; min-width: 140px; }
  .telemetry-toolbar { padding: 16px; }
  .telemetry-chart-card { padding: 18px 12px 12px; border-radius: 16px; }
  .telemetry-plot { height: 230px; }
  .telemetry-legend { gap: 5px 14px; }
  .host-resource-card { padding: 16px 12px; }
  .host-card-grid { gap: 10px; }
  .host-charts { grid-template-columns: 1fr; }
  .telemetry-timezone { margin-left: 0; }
  .telemetry-feedback time { margin-left: 0; width: 100%; }
}
@media(prefers-reduced-motion: reduce) { .telemetry-spinner { animation: none; } }
