/* Support-Zugang (js/support.js, docs/support-zugang.md): nicht wegklickbarer Balken oben, gesperrte Menuepunkte ausgeblendet */
#support-bar {
  position: fixed; z-index: 100000; top: 0; left: 0; right: 0; box-sizing: border-box; min-height: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .15rem .4rem;
  padding: calc(.3rem + env(safe-area-inset-top)) .75rem .3rem; background: #b45309; color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.3; text-align: center; border-bottom: 2px solid #78350f;
}
#support-bar .sb-end { min-height: 2rem; padding: 0 .8rem; background: #fff; color: #78350f; border: 0; border-radius: 999px; font-weight: 700; }
#support-bar .sb-end:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Platz fuer den Balken: die App beginnt darunter (Hoehe ueber --support-h, vom Skript nicht noetig: feste Mindesthoehe, Balken umbrechen auf Handys) */
body.support-bar-on { --support-h: 3rem; }
body.support-bar-on #app { margin-top: var(--support-h); height: calc(100dvh - var(--support-h)); padding-top: 0; }
@media (max-width: 520px) { body.support-bar-on { --support-h: 4.6rem; } }
.support-ended { max-width: 32rem; margin: 3rem auto; padding: 0 1.2rem; }
/* Support-Zugang: Verwaltung, Tasten, Handy-App und Konto sind wie beim Benutzer bedienbar; nur die Push-Einstellung entfaellt (kein Service Worker in diesem Fenster) */
html.support-mode #set-push { display: none !important; }
/* Zweiter Faktor fuer die eingebettete Verwaltung (js/ui-stepup.js) */
dialog.stepup-dlg { width: min(26rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 1.1rem 1.2rem; background: var(--surface, var(--bg)); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 44px rgb(0 0 0 / .35); }
dialog.stepup-dlg::backdrop { background: rgb(0 0 0 / .5); }
dialog.stepup-dlg h2 { margin: 0 0 .4rem; font-size: 1.2rem; }
dialog.stepup-dlg label { display: block; margin: .6rem 0 .25rem; font-weight: 600; }
dialog.stepup-dlg input { width: 100%; }
dialog.stepup-dlg .stepup-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: .8rem; }
/* Seiten des Menues (Konto, Tasten, Einstellungen ...) beginnen unter dem Balken, sonst verdeckt er ihre Kopfzeile mit «Zurueck» */
body.support-bar-on .sheet { top: var(--support-h); }
