/* Der Exportbereich ist kein direktes Sidebar-Kind mehr und kann daher nicht sticky überlagern. */
.kst-page-verbraucher .kst-export-zone {
  position: relative !important;
  z-index: 0;
  display: block;
  clear: both;
  width: 100%;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--kst-line);
}

.kst-page-verbraucher .kst-export-zone .kst-export-consumers {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  transform: none !important;
}

.kst-page-verbraucher #detailsOutput {
  position: relative !important;
  z-index: 1;
  display: block !important;
  height: auto !important;
  min-height: max-content !important;
  contain: layout;
  isolation: isolate;
}

.kst-page-verbraucher .kst-consumer-detail,
.kst-page-verbraucher .kst-consumer-actions {
  position: relative;
  z-index: 1;
}

/* Rückverknüpfung: Verbraucher -> LS und übergeordneter FI */
.kst-page-verbraucher #grid.is-consumer-focus .kst-breaker {
  opacity: .13 !important;
  filter: grayscale(.8) saturate(.25);
  transform: scale(.97);
  transition: opacity .2s ease, filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.kst-page-verbraucher #grid.is-consumer-focus .kst-breaker.is-parent {
  opacity: .52 !important;
  filter: grayscale(.15) saturate(.8);
  transform: scale(.99);
}

.kst-page-verbraucher #grid.is-consumer-focus .kst-breaker.is-linked {
  z-index: 5;
  opacity: 1 !important;
  filter: none;
  transform: translateY(-3px) scale(1.04);
  border-color: var(--breaker-accent) !important;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--breaker-accent) 34%, transparent),
    0 0 28px color-mix(in srgb, var(--breaker-accent) 42%, transparent),
    0 12px 26px rgba(0,0,0,.48) !important;
}

.kst-consumer-circuit-focus {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid rgba(99,230,255,.26);
  border-radius: 11px;
  color: #dbe8f8;
  background: rgba(7,12,20,.82);
  font-size: 10px;
}

.kst-consumer-circuit-focus span {
  padding: 4px 6px;
  border-radius: 999px;
  color: var(--kst-cyan);
  background: rgba(99,230,255,.08);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kst-consumer-circuit-focus strong,
.kst-consumer-circuit-focus b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kst-consumer-circuit-focus i {
  color: var(--kst-cyan);
  font-size: 16px;
  font-style: normal;
}

.kst-consumer-circuit-focus b {
  color: #ffffff;
}

@media (pointer: coarse) and (max-width: 1180px) {
  .kst-page-verbraucher .kst-export-zone {
    margin-top: 20px;
    padding-bottom: calc(8px + var(--kst-safe-bottom));
  }

  .kst-consumer-circuit-focus {
    position: sticky;
    z-index: 8;
    top: 0;
    min-height: 46px;
    backdrop-filter: blur(16px);
  }
}
