/* Geheime Adressen und Schluessel im Dashboard (Overlay-Adressen, Begleit-App- und Academy-App-Schluessel): der Text
   ist unscharf, rechts daneben sitzt ein Kopier-Knopf (web/public/js/secretField.js). So landet beim Streamen oder
   Bildschirmteilen nichts Lesbares im Bild.
   Die Unschaerfe kommt allein aus diesem Stylesheet und gilt schon, bevor ein Skript laeuft - beim Laden blitzt
   nichts lesbar auf. Erfasst wird jedes Feld mit data-secret und zur Sicherheit jedes schreibgeschuetzte Feld, dessen
   Wert eine Overlay-Adresse ist. data-secret="nocopy" = nur unscharf (dort gibt es schon einen eigenen Kopier-Knopf). */

input[data-secret],
input[readonly][value*="/overlay/"] {
  color: transparent !important;
  text-shadow: 0 0 7px var(--text), 0 0 11px var(--text);
  caret-color: transparent;
}

input[data-secret]::selection,
input[readonly][value*="/overlay/"]::selection {
  color: transparent;
  text-shadow: 0 0 7px var(--text), 0 0 11px var(--text);
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

.secret-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.secret-wrap > input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
}

.secret-wrap .secret-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  color: var(--text-muted);
  box-shadow: none;
  transform: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.secret-wrap .secret-copy:hover,
.secret-wrap .secret-copy:focus-visible {
  background: var(--bg-panel);
  color: var(--text);
  border-color: var(--text-faint);
  box-shadow: none;
  transform: none;
}

.secret-wrap .secret-copy.is-done {
  color: #2fb574;
  border-color: #2fb574;
}

.secret-wrap .secret-copy.is-failed {
  color: #e5566b;
  border-color: #e5566b;
}

.secret-wrap .secret-copy svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}
