#mailBestaetigenLeiste {
  --mb-gold: #f5c451;
  --mb-gold-rgb: 245, 196, 81;
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8600;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  box-sizing: border-box;
  width: min(600px, calc(100vw - 24px));
  padding: 9px 12px 9px 14px;
  border-radius: 14px;
  border: 1px solid rgba(var(--mb-gold-rgb), 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), rgba(14, 16, 22, 0.95);
  box-shadow: inset 3px 0 0 var(--mb-gold), 0 20px 50px -20px rgba(0, 0, 0, 0.95);
  color: #eceef3;
  font: 500 12.5px/1.45 "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, system-ui, sans-serif;
}

html.el-pro #mailBestaetigenLeiste.el-hinweisleiste {
  --el-ton: #f5c451;
  order: -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px !important;
  padding: 8px 10px 8px 14px !important;
  border-color: rgba(245, 196, 81, 0.26) !important;
}

#mailBestaetigenLeiste.dringend { --mb-gold: #ff8a3d; --mb-gold-rgb: 255, 138, 61; }
html.el-pro #mailBestaetigenLeiste.el-hinweisleiste.dringend { --el-ton: #ff8a3d; border-color: rgba(255, 138, 61, 0.35) !important; }

#mailBestaetigenLeiste .mbl-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--mb-gold);
  background: rgba(var(--mb-gold-rgb), 0.13);
  box-shadow: inset 0 0 0 1px rgba(var(--mb-gold-rgb), 0.3);
}
#mailBestaetigenLeiste .mbl-ico svg { width: 17px; height: 17px; }

#mailBestaetigenLeiste .mbl-text { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
#mailBestaetigenLeiste .mbl-text strong { color: #fff; font-weight: 700; }
#mailBestaetigenLeiste .mbl-rest { color: var(--mb-gold); font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }

#mailBestaetigenLeiste .mbl-knoepfe { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; }

.mbl-btn, .msd-btn, .mbp-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  color: #e6e8ee;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.mbl-btn:hover:not(:disabled), .msd-btn:hover:not(:disabled), .mbp-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.08); }

.mbl-btn.gold, .msd-btn.gold, .mbp-btn.gold {
  border-color: rgba(255, 224, 140, 0.55);
  background: linear-gradient(135deg, #ffe08a 0%, #f5c451 45%, #d99a1e 100%);
  color: #2a1c02;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 24px -12px rgba(245, 196, 81, 0.95);
}
.mbl-btn.gold:hover:not(:disabled), .msd-btn.gold:hover:not(:disabled), .mbp-btn.gold:hover:not(:disabled) {
  filter: brightness(1.06);
  background: linear-gradient(135deg, #ffe08a 0%, #f5c451 45%, #d99a1e 100%);
  border-color: rgba(255, 224, 140, 0.8);
}
.mbl-btn:disabled, .msd-btn:disabled, .mbp-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.mbl-zu {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: #8a90a0;
  font: 400 18px/1 system-ui, sans-serif;
  cursor: pointer;
}
.mbl-zu:hover { color: #fff; border-color: rgba(255, 255, 255, 0.14); }

dialog.msd {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  color: #eceef3;
  max-width: min(440px, calc(100vw - 24px));
  width: 100%;
  overflow: visible;
}
dialog.msd::backdrop { background: rgba(3, 4, 7, 0.78); }
.msd.msd-ersatz {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(3, 4, 7, 0.78);
}
.msd.msd-ersatz .msd-karte { max-width: 440px; width: 100%; }

.msd-karte {
  position: relative;
  box-sizing: border-box;
  padding: 20px 20px 14px 22px;
  border-radius: 18px;
  border: 1px solid rgba(245, 196, 81, 0.28);
  background: radial-gradient(120% 90% at 0% 0%, rgba(245, 196, 81, 0.12), transparent 55%), linear-gradient(180deg, #151821, #0e1016);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  font: 500 13.5px/1.5 "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, system-ui, sans-serif;
  overflow: hidden;
}
.msd-karte::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ffe08a, #f5c451 50%, #d99a1e);
  box-shadow: 0 0 18px rgba(245, 196, 81, 0.55);
}
.msd-zu {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #a6abb8;
  font: 400 19px/1 system-ui, sans-serif;
  cursor: pointer;
}
.msd-zu:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.msd-kopf { display: flex; align-items: center; gap: 12px; padding-right: 30px; margin-bottom: 10px; }
.msd-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #f5c451;
  background: rgba(245, 196, 81, 0.14);
  box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.35), 0 0 24px -6px rgba(245, 196, 81, 0.6);
}
.msd-ico svg { width: 24px; height: 24px; }
.msd-titel { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 0.01em; }
.msd-pille, .mbp-pille {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5c451;
  background: rgba(245, 196, 81, 0.14);
  box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.3);
}
.msd-text { margin: 0 0 10px; color: #c9cdd8; }
.msd-adresse {
  margin: 0 0 14px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #a6abb8;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.msd-adresse strong { color: #fff; }
.msd-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.msd-knoepfe .msd-btn { flex: 1 1 160px; padding: 11px 14px; font-size: 13px; }
.msd-fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; min-height: 26px; }
.msd-status { font-size: 12px; color: #a6abb8; }
.msd-status.gut, .mbp-status.gut { color: #2fd47a; }
.msd-status.schlecht, .mbp-status.schlecht { color: #ff7083; }
.msd-hilfe {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #5b8cff;
  background: rgba(91, 140, 255, 0.12);
  color: #8fb0ff;
  font: 900 13px/1 system-ui, sans-serif;
  cursor: pointer;
}

.mbp { display: flex; flex-direction: column; gap: 12px; }
.mbp-karte {
  --mbp-ton: #f5c451;
  --mbp-rgb: 245, 196, 81;
  position: relative;
  padding: 14px 14px 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(var(--mbp-rgb), 0.22);
  background: linear-gradient(180deg, rgba(var(--mbp-rgb), 0.07), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}
.mbp-karte::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--mbp-ton); box-shadow: 0 0 14px rgba(var(--mbp-rgb), 0.5); }
.mbp-karte.blau { --mbp-ton: #5b8cff; --mbp-rgb: 91, 140, 255; }
.mbp-karte.grau { --mbp-ton: #8a90a0; --mbp-rgb: 138, 144, 160; }
.mbp-karte.gruen { --mbp-ton: #2fd47a; --mbp-rgb: 47, 212, 122; }
.mbp-label { font-size: 10.5px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: #8a90a0; margin-bottom: 6px; }
.mbp-adresse { font-size: 17px; font-weight: 750; color: #fff; overflow-wrap: anywhere; }
.mbp-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 12px; }
.mbp-zeile .mbp-pille { margin-top: 0; }
.mbp-frist { font-size: 12px; color: #c9cdd8; font-variant-numeric: tabular-nums; }
.mbp-satz { margin: 0 0 10px; font-size: 12.5px; color: #c9cdd8; }
.mbp-feld { display: block; margin-bottom: 9px; }
.mbp-feld > span { display: block; font-size: 11px; font-weight: 650; color: #8a90a0; margin-bottom: 4px; }
.mbp-feld input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #151821;
  color: #eceef3;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mbp-feld input:focus { border-color: rgba(91, 140, 255, 0.7); box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18); }
.mbp-btn { padding: 11px 16px; font-size: 13px; width: 100%; }
.mbp-status { min-height: 18px; margin-top: 7px; font-size: 12px; color: #a6abb8; }
.mbp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mbp-chips span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: #c9cdd8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mbp-profil {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 11px;
  border: 1px solid rgba(245, 196, 81, 0.28);
  background: rgba(245, 196, 81, 0.07);
  box-shadow: inset 3px 0 0 #f5c451;
  font-size: 12.5px;
  color: #c9cdd8;
}
.mbp-profil > span { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.mbp-profil strong { color: #fff; }
.mbp-profil .mbp-btn { width: auto; padding: 8px 14px; font-size: 12px; }

@media (max-width: 600px) {
  #mailBestaetigenLeiste { top: 72px; width: calc(100vw - 16px); }
  html.el-pro #mailBestaetigenLeiste.el-hinweisleiste { gap: 7px 8px !important; padding: 8px 9px 8px 12px !important; }
  #mailBestaetigenLeiste .mbl-ico { width: 28px; height: 28px; }
  #mailBestaetigenLeiste .mbl-text { flex: 1 1 calc(100% - 44px); }
  #mailBestaetigenLeiste .mbl-knoepfe { width: 100%; margin-left: 0; }
  #mailBestaetigenLeiste .mbl-btn { flex: 1 1 0; padding: 8px 8px; }
  .msd-karte { padding: 18px 16px 12px 18px; }
  .msd-knoepfe .msd-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mbl-btn, .msd-btn, .mbp-btn, .mbp-feld input { transition: none; }
  .mbl-btn:hover:not(:disabled), .msd-btn:hover:not(:disabled), .mbp-btn:hover:not(:disabled) { transform: none; }
}
