/* Coding Agent environment profiles panel styles */

.coding-environment-profiles-panel,
.coding-environment-profile-current {
  display: grid !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.coding-environment-profile-metrics,
.coding-environment-profile-list,
.coding-environment-profile-current-grid {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.coding-environment-profile-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.coding-environment-profile-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.coding-environment-profile-current-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.coding-environment-profile-card,
.coding-environment-profile-current,
.coding-environment-profile-metrics span,
.coding-environment-profile-current-grid span {
  min-width: 0 !important;
  border: 1px solid rgba(255,255,255,.74) !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.60) !important;
}

.coding-environment-profile-card {
  display: grid !important;
  gap: 8px !important;
  padding: 10px !important;
  border-left: 4px solid rgba(0,113,227,.48) !important;
}

.coding-environment-profile-card[data-state="current"] {
  border-left-color: rgba(52,199,89,.72) !important;
}

.coding-environment-profile-card[data-state="read"] {
  border-left-color: rgba(255,149,0,.62) !important;
}

.coding-environment-profile-current {
  padding: 12px !important;
}

.coding-environment-profile-card-head,
.coding-environment-profile-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
}

.coding-environment-profile-card-head span,
.coding-environment-profile-head span {
  max-width: 150px !important;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.70) !important;
  text-align: right !important;
}

.coding-environment-profile-capabilities {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.coding-environment-profile-metrics span,
.coding-environment-profile-capabilities span,
.coding-environment-profile-current-grid span {
  display: grid !important;
  gap: 3px !important;
  min-height: 50px !important;
  align-content: center !important;
  padding: 7px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.58) !important;
  text-align: center !important;
}

.coding-environment-profile-capabilities span[data-state="blocked"] strong {
  color: #b45309 !important;
}

.coding-environment-profile-card strong,
.coding-environment-profile-current strong,
.coding-environment-profile-metrics strong,
.coding-environment-profile-current-grid strong {
  min-width: 0 !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}

.coding-environment-profile-metrics strong {
  font-size: 15px !important;
  line-height: 1.1 !important;
}

.coding-environment-profile-card p,
.coding-environment-profile-card span,
.coding-environment-profile-card small,
.coding-environment-profile-head span,
.coding-environment-profile-metrics small,
.coding-environment-profile-current-grid small {
  min-width: 0 !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

.coding-environment-profile-card p {
  margin: 0 !important;
}

@media (max-width: 680px) {
  .coding-environment-profile-metrics,
  .coding-environment-profile-list,
  .coding-environment-profile-current-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 420px) {
  .coding-environment-profile-card-head,
  .coding-environment-profile-head,
  .coding-environment-profile-capabilities {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .coding-environment-profile-card-head span,
  .coding-environment-profile-head span {
    max-width: none !important;
    text-align: left !important;
  }
}
