/* Shared mobile navigation and safe content space. */
.phone-dock-bar { position:fixed; bottom:calc(12px + env(safe-area-inset-bottom,0px)); left:0; right:0; z-index:80; display:flex; justify-content:center; pointer-events:none; padding:0 10px; }
.phone-dock-bar .dock-inner { display:flex; width:max-content; max-width:100%; gap:4px; padding:6px; border-radius:26px; background:rgba(15,23,42,.96); box-shadow:0 8px 24px #0003; pointer-events:auto; }
.phone-dock-bar .dock-item { display:flex; flex:1 1 0; min-width:44px; min-height:54px; padding:6px 10px; flex-direction:column; justify-content:center; align-items:center; gap:3px; border-radius:18px; text-decoration:none; color:#dbe3ef; }
.phone-dock-bar .dock-item.active, .phone-dock-bar .dock-item:hover { background:#ffffff26; color:#fff; }
.phone-dock-bar .dock-label { font:700 .68rem system-ui,sans-serif; }
.phone-dock-bar .dock-icon-squircle { display:grid; place-items:center; width:26px; height:26px; }
.phone-dock-bar a:focus-visible { outline:3px solid #fde047; outline-offset:2px; }
body { padding-bottom:calc(110px + env(safe-area-inset-bottom,0px)); }
.app-main, .audio-main, .launcher-main-container { min-width:0; }
.menu-drawer { z-index:1200; overflow-y:auto; padding-bottom:calc(20px + env(safe-area-inset-bottom,0px)); }
.menu-drawer-backdrop { z-index:1190; }
@media(max-width:380px) { .phone-dock-bar .dock-item { padding:5px 6px; } }
@media print { .phone-dock-bar { display:none; } body { padding-bottom:0; } }

/* The sixth tool uses the same dock; hidden tools never occupy space. */
/* Anchor to the viewport bottom directly: same 12px plus safe area on every App page. */
body .phone-dock-bar{position:fixed;width:100vw;box-sizing:border-box;right:auto;top:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));transform:none}
[data-evangelist-only][hidden]{display:none!important}
.phone-dock-bar .dock-inner.has-six{width:min(100%,420px);gap:2px}
.phone-dock-bar .dock-inner.has-six .dock-item{padding-left:2px;padding-right:2px;box-sizing:border-box}
@media(max-width:380px){.phone-dock-bar .dock-inner.has-six .dock-label{font-size:.6rem;letter-spacing:-.02em}}
/* Horizontal wischbares Dock (ab >5 sichtbaren Apps): Home links fix + kleines '+' rechts. */
.phone-dock-bar .dock-inner.is-scrollable{width:min(100%,420px);align-items:center;gap:2px;padding:6px}
.phone-dock-bar .dock-inner.is-scrollable .dock-home-fixed{flex:0 0 auto;min-width:54px;padding:6px 8px;position:relative;margin-right:2px}
.phone-dock-bar .dock-inner.is-scrollable .dock-home-fixed::after{content:"";position:absolute;right:-2px;top:12px;bottom:12px;width:1px;background:rgba(255,255,255,.16)}
.phone-dock-bar .dock-scroll-strip{display:flex;flex:1 1 auto;min-width:0;gap:2px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.phone-dock-bar .dock-scroll-strip::-webkit-scrollbar{display:none}
.phone-dock-bar .dock-scroll-strip .dock-item{flex:0 0 auto;min-width:62px;padding:6px 6px;box-sizing:border-box}
.phone-dock-bar .dock-more-plus{flex:0 0 auto;width:24px;height:24px;min-width:24px;margin-left:2px;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.14);color:#fff;font:800 .9rem/1 system-ui,sans-serif;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.phone-dock-bar .dock-more-plus:hover{background:rgba(255,255,255,.26)}
.phone-dock-bar .dock-more-plus[hidden]{display:none!important}
