.identity-access-map-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.identity-access-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.identity-access-kpi-card {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(1, 208, 255, 0.18);
  background: rgba(1, 208, 255, 0.04);
}

html[data-theme="light"] .identity-access-kpi-card {
  border-color: rgba(3, 105, 161, 0.18);
  background: rgba(3, 105, 161, 0.04);
}

.identity-access-kpi-value {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.identity-access-kpi-label {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 4px;
}

.identity-access-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.identity-access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
}

@media (max-width: 1200px) {
  .identity-access-layout {
    grid-template-columns: 1fr;
  }
}

.identity-access-surface {
  position: relative;
  min-height: 520px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(1, 208, 255, 0.16);
  background:
    radial-gradient(circle at 20% 20%, rgba(1, 208, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(3, 105, 161, 0.12), transparent 40%),
    rgba(8, 14, 24, 0.92);
}

.identity-access-surface:has(.identity-access-cy-large) {
  min-height: calc(100vh - 280px);
}

html[data-theme="light"] .identity-access-surface {
  border-color: rgba(3, 105, 161, 0.16);
  background:
    radial-gradient(circle at 20% 20%, rgba(1, 208, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(3, 105, 161, 0.06), transparent 40%),
    #f8fbff;
}

.identity-access-cy {
  width: 100%;
  height: 520px;
}

.identity-access-cy-large {
  height: calc(100vh - 280px);
  min-height: 560px;
}

.identity-access-cy-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 24, 0.35);
  z-index: 2;
}

html[data-theme="light"] .identity-access-cy-loading {
  background: rgba(248, 251, 255, 0.55);
}

.identity-access-drawer {
  border-radius: 12px;
  padding: 14px;
  min-height: 520px;
}

.identity-access-map-shell:has(.identity-access-cy-large) .identity-access-drawer {
  min-height: calc(100vh - 280px);
}

.identity-access-dialog-content {
  width: 100%;
  padding: 0 !important;
}

.identity-access-graph-dialog .mud-dialog-content {
  padding-top: 0;
}

.identity-access-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.identity-access-tree-panel {
  margin-top: 12px;
  min-height: 220px;
  border-radius: 10px;
  border: 1px solid rgba(1, 208, 255, 0.12);
  padding: 8px;
}

.identity-access-fullscreen {
  position: fixed;
  inset: 12px;
  z-index: 1400;
  background: var(--mud-palette-background);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.identity-access-fullscreen .identity-access-cy {
  height: calc(100vh - 220px);
}

.identity-access-fullscreen .identity-access-surface {
  min-height: calc(100vh - 220px);
}
