/* МАЯК · Telemetry tab styles */

.tele-tab { display: flex; flex-direction: column; gap: 14px; }

/* TOOLBAR */
.tele-toolbar {
  display: flex; align-items: center; gap: 6px;
}

/* KPIs row */
.tele-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tele-kpi {
  background: var(--bg-sub);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.tele-kpi-value {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.tele-kpi-value.ok { color: var(--ok); }
.tele-kpi-value.warn { color: var(--warn); }
.tele-kpi-value.danger { color: var(--danger); }
.tele-kpi-bar {
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.tele-kpi-bar-fill {
  display: block;
  height: 100%;
  background: var(--muted);
  border-radius: 999px;
  transition: width var(--t-med);
}
.tele-kpi-bar-fill.ok { background: var(--ok); }
.tele-kpi-bar-fill.warn { background: var(--warn); }
.tele-kpi-bar-fill.danger { background: var(--danger); }

/* CHART GRID */
.tele-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tele-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 8px 10px 4px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.tele-card-empty { justify-content: flex-start; min-height: 84px; }
.tele-empty-note {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 11px; text-align: center;
}
.tele-card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 2px;
}
.tele-card-title {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.tele-card-value {
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
}
.tele-svg {
  width: 100%; height: auto;
  display: block;
}

/* SESSION STRIP */
.tele-strip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.tele-strip-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.tele-strip-stats {
  font-size: 11px;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 4px;
}
.tele-strip-stats b { color: var(--fg); font-weight: 600; }
.tele-strip-stats .sep { color: var(--muted-2); }
.tele-strip-stats .ok-text { color: var(--ok); }
.tele-strip-stats .ok-text b { color: var(--ok); }
.tele-strip-stats .alert-text { color: var(--danger); }
.tele-strip-stats .alert-text b { color: var(--danger); }
.tele-strip-svg {
  width: 100%;
  height: 28px;
  display: block;
}
.tele-strip-ticks {
  position: relative;
  height: 14px;
  font-size: 10px;
  color: var(--muted-2);
}
.tele-strip-ticks span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.tele-strip-ticks span:first-child { transform: translateX(0); }
.tele-strip-ticks span:last-child  { transform: translateX(-100%); }

/* responsive */
@media (max-width: 540px) {
  .tele-kpis { grid-template-columns: repeat(2, 1fr); }
  .tele-grid { grid-template-columns: 1fr; }
}
