.obs-panel {
  color: #0f172a;
  font-family: Arial, sans-serif;
  max-width: 1500px;
  margin: auto;
}
.obs-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
}
.obs-subtitle,
.obs-muted {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}
.obs-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  background: white;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin: 20px 0 12px;
}
.obs-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.obs-field input,
.obs-field select {
  font:
    14px Arial,
    sans-serif;
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  max-width: 100%;
  min-width: 120px;
}
.obs-field input[type="number"] {
  width: 150px;
}
.obs-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.obs-button {
  background: #2563eb;
  color: white;
  border: 1px solid #2563eb;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
}
.obs-secondary {
  background: white;
  color: #2563eb;
  border-color: #bfdbfe;
}
.obs-button:hover {
  filter: brightness(0.95);
}
.obs-status {
  font-size: 12px;
  color: #64748b;
  margin: 16px 0;
}
.obs-error {
  color: #b91c1c;
}
.obs-body {
  display: grid;
  gap: 16px;
}
.obs-notice {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #334155;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.obs-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 3px 12px #0f172a05;
  min-width: 0;
}
.obs-user-list {
  display: grid;
  gap: 16px;
}
.obs-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.obs-card h3 {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}
.obs-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.obs-avatar {
  background: #eff6ff;
  color: #2563eb;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-weight: 700;
  flex-shrink: 0;
}
.obs-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
}
.obs-stat {
  background: #f1f5f9;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 125px;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 12px;
}
.obs-stat strong {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.obs-active-stat {
  background: #dcfce7;
  color: #166534;
  border-left: 4px solid #16a34a;
}
.obs-idle-stat {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #dc2626;
}
.obs-call-stat {
  background: #eff6ff;
  color: #1d4ed8;
  border-left: 4px solid #2563eb;
}
.obs-small-title {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
}
.obs-track {
  position: relative;
  height: 28px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}
.obs-segment {
  position: absolute;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  min-width: 0.4px;
}
.obs-segment:hover,
.obs-segment:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: -2px;
  z-index: 2;
}
.obs-active,
.obs-healthy {
  background: #22c55e;
}
.obs-idle,
.obs-unavailable {
  background: #ef4444;
}
.obs-locked {
  background: #a78bfa;
}
.obs-suspended {
  background: #64748b;
}
.obs-unknown {
  background: #fbbf24;
}
.obs-future {
  background: #f1f5f9;
  border-left: 1px dashed #94a3b8;
}
.obs-mixed {
  background: repeating-linear-gradient(
    45deg,
    #fbbf24,
    #fbbf24 4px,
    #dcfce7 4px,
    #dcfce7 8px
  );
}
.obs-missing {
  background: repeating-linear-gradient(
    45deg,
    #e2e8f0,
    #e2e8f0 4px,
    #cbd5e1 4px,
    #cbd5e1 8px
  );
}
.obs-call-overlay {
  border-bottom: 4px solid #2563eb;
}
.obs-call-overlay span {
  color: #172554;
  font-size: 11px;
}
.obs-ticks {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  color: #64748b;
  font-size: 10px;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.obs-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0;
  font-size: 12px;
  color: #475569;
}
.obs-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.obs-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.obs-segment-info {
  font-size: 12px;
  min-height: 20px;
  color: #475569;
}
.obs-details {
  margin-top: 12px;
  font-size: 13px;
}
.obs-details summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 600;
}
.obs-details .obs-stat strong {
  font-size: 17px;
}
.obs-empty {
  padding: 40px;
  text-align: center;
  background: white;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
}
.obs-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.obs-chart svg {
  width: 100%;
  height: auto;
  margin-top: 12px;
}
.obs-chart-reading {
  font-size: 18px;
  color: #2563eb;
  margin-top: 10px;
}
.obs-table-wrap {
  overflow: auto;
  margin-top: 15px;
}
.obs-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.obs-table th,
.obs-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
}
.obs-table th {
  color: #64748b;
  background: #f8fafc;
}
.obs-status-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 20px;
  color: #0f172a;
}
.obs-panel button:focus-visible,
.obs-panel input:focus-visible,
.obs-panel select:focus-visible,
.obs-panel summary:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}
@media (max-width: 1000px) {
  .obs-chart-grid {
    grid-template-columns: 1fr;
  }
  .obs-filters {
    padding: 14px;
  }
}
@media (max-width: 600px) {
  .obs-card {
    padding: 15px;
  }
  .obs-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .obs-field input,
  .obs-field select {
    min-width: 0;
    width: 100%;
  }
  .obs-filters .obs-button {
    grid-column: 1/-1;
  }
  .obs-stat {
    min-width: 0;
    flex: 1;
    padding: 12px;
  }
  .obs-stat strong {
    font-size: 18px;
  }
  .obs-ticks span:nth-child(even) {
    display: none;
  }
  .obs-identity h3 {
    overflow-wrap: anywhere;
  }
  .obs-title {
    font-size: 23px;
  }
}
.obs-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.obs-service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 16px;
  background: white;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.obs-selected {
  border: 2px solid #2563eb;
  background: #eff6ff;
}
.obs-actions {
  margin-top: 18px;
}
.obs-actions details {
  margin-top: 18px;
}
.obs-chart .obs-ticks {
  flex-wrap: wrap;
}
.obs-details .obs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.obs-details .obs-stat {
  min-width: 0;
}
.obs-stat span {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .obs-stats > .obs-stat {
    min-width: 90px;
    padding: 10px 8px;
  }
  .obs-stats > .obs-stat strong {
    font-size: 16px;
  }
  .obs-details .obs-stats > .obs-stat {
    min-width: 0;
  }
  .obs-details .obs-stat strong {
    font-size: 17px;
  }
}
.obs-resource-level {
  display: inline-block;
  padding: 5px 9px;
  background: #dcfce7;
  color: #166534;
  border-radius: 6px;
  font-size: 12px;
}
.obs-resource-high {
  background: #fee2e2;
  color: #991b1b;
}
.obs-resource-watch {
  background: #fef3c7;
  color: #92400e;
}
.obs-partial {
  background: repeating-linear-gradient(
    45deg,
    #fde68a,
    #fde68a 4px,
    #cbd5e1 4px,
    #cbd5e1 8px
  );
}
