/* Stage 1: shared mobile navigation and the existing profile picker only. */
.bottom-navigation{display:none}
.cabinet-flow .cabinet-card{display:flex;align-items:center;gap:12px}
.profile-choice-avatar{position:relative;display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;overflow:hidden;border-radius:50%;background:var(--light);color:var(--ink);font-size:17px;font-weight:650}
.profile-choice-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.profile-choice-copy{min-width:0;text-align:left}
.cabinet-flow .profile-choice-type{color:var(--ink);font-weight:600}
.cabinet-flow .profile-choice-copy .profile-active-badge{display:inline-flex;align-items:center;gap:4px;margin-top:7px;padding:4px 8px;border-radius:12px;background:var(--ink);color:white;font-size:11px;line-height:1.4;font-weight:650}
.profile-add-block{border-top:1px solid var(--line);padding-top:18px}
.profile-add-block h3{font-size:17px;margin:0 0 6px}
.profile-add-block .cabinet-picker-actions{border-top:0;padding-top:8px}
@media(max-width:800px){
 body{--bottom-nav-height:calc(68px + env(safe-area-inset-bottom,0px));padding-bottom:calc(var(--bottom-nav-height) + 8px)}
 html{scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
 .bottom-navigation{position:fixed;z-index:25;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(88px,1.2fr);gap:2px;min-height:var(--bottom-nav-height);padding:5px max(8px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -3px 18px #173b360d}
 .bottom-navigation button{border:0;background:none;border-radius:9px;color:var(--muted);min-height:54px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 2px;font-size:11px;line-height:1.2;cursor:pointer}
 .bottom-navigation button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .bottom-navigation button[aria-current="page"]{background:var(--light);color:var(--ink);font-weight:700}
 .bottom-navigation button:focus-visible{outline:2px solid var(--orange);outline-offset:-2px}
 .bottom-profile-group{display:flex;align-items:stretch;min-width:0}
 .bottom-profile-group>[data-bottom-action="profile"]{flex:1;touch-action:manipulation;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
 .bottom-profile-group>[data-bottom-action="profiles"]{flex:0 0 44px;padding-inline:0}
 .bottom-profile-group>[data-bottom-action="profiles"] svg{width:16px;height:16px}
 .bottom-navigation.keyboard-open{display:none}
 #toast{bottom:calc(var(--bottom-nav-height) + 12px)}
 .header #mobileNavigation :is([data-view="events"],[data-mobile-map],[data-mobile-cabinet],[data-mobile-cabinets]){display:none}
 #modal.form-panel.profile-sheet[open]{inset:auto 0 0;height:min(78dvh,680px);max-height:calc(var(--form-screen-height,100dvh) - 16px);border-radius:22px 22px 0 0;box-shadow:0 -12px 50px #10282140}
 #modal.form-panel.profile-sheet>.close{margin-top:12px}
 #modal.form-panel.profile-sheet>#modalBody{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
 #modal.profile-sheet::before{content:"";position:absolute;top:12px;left:calc(50% - 20px);width:40px;height:4px;border-radius:5px;background:var(--line)}
 #modal.profile-sheet::backdrop{background:#08231ba6;backdrop-filter:blur(2px)}
 #modal.profile-sheet .cabinet-picker{margin:16px 0}
 #modal.profile-sheet .cabinet-card{min-height:80px;padding:12px}
 #modal.profile-sheet .cabinet-card b{margin-bottom:3px}
 body:has(#modal.profile-sheet[open]){overflow:hidden}
}
