/* Compact instance summary; existing live values, IDs and controls stay in place. */
#customer-page #detail-summary .detail-welcome > div { min-width: 0; }
#customer-page #detail-summary .detail-welcome h2 { overflow-wrap: anywhere; }

#customer-page #detail-summary .detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
#customer-page #detail-summary .detail-facts > article {
  display: grid;
  align-content: start;
  justify-items: start;
  min-width: 0;
  min-height: 0;
  height: auto;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--admin-border, #dfe5ed);
  border-radius: 6px;
  background: var(--admin-subtle, #f7f9fc);
  text-align: left;
}
#customer-page #detail-summary .detail-facts > article > span { display: none; }
#customer-page #detail-summary .detail-facts small {
  color: var(--admin-muted, #53637a);
  font-size: 11px;
  line-height: 1.4;
}
#customer-page #detail-summary .detail-facts strong {
  min-width: 0;
  max-width: 100%;
  color: var(--admin-text, #29374b);
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

#customer-page #detail-summary .detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
}
#customer-page #detail-summary .detail-metrics > article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  justify-items: start;
  gap: 4px 10px;
  min-width: 0;
  min-height: 84px;
  padding: 10px;
  border: 1px solid var(--admin-border, #dfe5ed);
  border-radius: 6px;
  background: var(--admin-surface, #fff);
}
#customer-page #detail-summary .detail-metrics h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  min-width: 0;
  margin: 0;
  color: var(--admin-text, #29374b);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#customer-page #detail-summary .detail-metrics small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-width: 0;
  margin: 0;
  color: var(--admin-muted, #53637a);
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
#customer-page #detail-summary .detail-metrics .usage-gauge {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: conic-gradient(var(--admin-accent, #285dde) var(--value), var(--admin-border, #dfe5ed) 0);
}
#customer-page #detail-summary .detail-metrics .usage-gauge::before {
  inset: 8px;
  background: var(--admin-surface, #fff);
}
#customer-page #detail-summary .detail-metrics .usage-gauge span {
  color: var(--admin-text, #29374b);
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  #customer-page #detail-summary .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #customer-page #detail-summary .detail-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #customer-page #detail-summary .detail-facts > article {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 0;
    border-bottom: 0;
  }
  #customer-page #detail-summary .detail-facts > article:first-child { border-radius: 6px 6px 0 0; }
  #customer-page #detail-summary .detail-facts > article:last-child { border-bottom: 1px solid var(--admin-border, #dfe5ed); border-radius: 0 0 6px 6px; }
  #customer-page #detail-summary .detail-metrics { grid-template-columns: minmax(0, 1fr); }
}
