/* Compact entry controls; keep the welcome illustration inside Telegram. */
.journey-ui .journey-switch{min-width:0;height:40px;padding:8px 11px;gap:7px;border-radius:12px}
.journey-ui .journey-switch>.entry-link-copy small,.journey-ui .identity-copy>small{display:none}
.journey-ui .journey-switch>.entry-link-copy strong{font-size:12px}
.journey-ui .journey-switch>svg:first-child{width:18px;height:18px}
.journey-ui .signed-user{height:40px;border-radius:12px;max-width:250px}
.journey-ui .signed-user .identity-profile{padding:5px 9px;gap:7px;border-radius:11px}
.journey-ui .identity-avatar{width:26px;height:26px;flex-basis:26px;font-size:12px;border-radius:8px}
.journey-ui #signedUserName{font-size:12px;max-width:130px}
.journey-ui #browserSignOut{min-width:36px;padding:8px;border-radius:0 11px 11px 0}
.journey-ui .hero-panel.home-welcome-mini{display:flex;flex-direction:column-reverse;align-items:center;gap:16px;padding:24px 20px;min-height:0;text-align:center}
.journey-ui .home-welcome-mini .hero-orbit{display:grid!important;width:132px;height:132px;flex:0 0 132px}
.journey-ui .home-welcome-mini .hero-orbit img{width:140px;height:140px}
.journey-ui .home-welcome-mini .home-overview-title{display:block}
.journey-ui .home-welcome-mini h2{max-width:none;margin:0 0 10px;font-size:26px}
.journey-ui .home-welcome-mini .hero-tagline{display:block;max-width:320px;margin:auto;font-size:13px;line-height:1.5}
@media(max-width:780px){.journey-ui .topbar-actions{display:flex;flex-basis:auto;width:auto;gap:6px;margin-left:auto;justify-content:flex-end;flex-wrap:wrap}.journey-ui .topbar>div:first-of-type{flex:1;min-width:0}.journey-ui .topbar{gap:8px}.journey-ui .topbar h1{font-size:20px}.journey-ui .journey-switch{height:36px;padding:7px 9px}.journey-ui .journey-switch>svg:last-child{display:none}.journey-ui .journey-switch>.entry-link-copy strong{font-size:11px}.journey-ui .signed-user{height:36px;width:auto;max-width:140px}.journey-ui .signed-user .identity-profile{padding:5px 8px}.journey-ui #signedUserName{max-width:72px;font-size:11px}.journey-ui #browserSignOut{min-width:32px;padding:6px}.journey-ui .theme-toggle{width:36px;height:36px}.journey-ui.journey-guest .topbar-actions{display:flex}.telegram-mini-app .topbar-actions{flex-basis:100%;justify-content:flex-end}.telegram-mini-app .journey-switch>.entry-link-copy strong{font-size:0}.telegram-mini-app .journey-switch>.entry-link-copy strong::after{content:'На сайт';font-size:11px}}

/* Mobile header: one controls row, a separate page heading, dock flush to viewport. */
@media(max-width:780px){
 .journey-ui .topbar{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:12px;row-gap:16px;align-items:center;padding-bottom:18px;margin-bottom:20px}
 .journey-ui #menuButton{grid-column:1;grid-row:1;order:0;width:44px;min-width:44px;height:40px;min-height:40px;padding:10px;gap:0}
 .journey-ui #menuButton span{display:none}
 .journey-ui .topbar>div:first-of-type{grid-column:1/-1;grid-row:2;order:0;min-width:0}
 .journey-ui .topbar h1{margin:0;font-size:24px;line-height:1.25}
 .journey-ui .topbar-actions,.telegram-mini-app .topbar-actions{grid-column:2;grid-row:1;order:0;display:flex;flex-basis:auto;flex-wrap:nowrap;align-items:center;justify-content:flex-end;width:100%;min-width:0;gap:7px;margin:0}
 .journey-ui .journey-switch,.journey-ui .signed-user,.journey-ui .theme-toggle{height:40px}
 .journey-ui .journey-switch{flex:0 0 auto;gap:6px;padding:8px}
 .journey-ui .journey-switch>svg:first-child{display:block;width:16px;height:16px}
 .journey-ui .signed-user{flex:0 1 auto;min-width:0;max-width:144px}
 .journey-ui .signed-user .identity-profile{min-width:0;padding:5px 7px;gap:6px}
 .journey-ui .identity-avatar{display:grid;width:24px;height:24px;flex-basis:24px}
 .journey-ui #signedUserName{max-width:74px}
 .journey-ui .theme-toggle{width:36px;flex:0 0 36px}
 .journey-ui .mobile-dock{left:0;right:0;bottom:0;margin:0;border-radius:18px 18px 0 0;border-bottom:0;background:var(--card);padding:6px 8px max(6px,env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px));min-height:68px}
 .journey-ui .main-content{padding-bottom:calc(92px + max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px)))}
}
@media(max-width:360px){.journey-ui .topbar{column-gap:8px}.journey-ui .topbar-actions{gap:5px}.journey-ui #signedUserName{max-width:44px}.journey-ui .identity-avatar{display:none}.journey-ui .journey-switch>.entry-link-copy strong{font-size:10px}}

@media(max-width:780px){
 .telegram-mini-app.journey-ui .topbar{background:var(--paper);transition:box-shadow .18s ease}
 .telegram-mini-app.journey-ui.mini-header-compact .topbar{min-height:0;row-gap:0;padding-top:max(5px,env(safe-area-inset-top,0px));padding-bottom:5px;box-shadow:0 5px 18px #00000012}
 .telegram-mini-app.journey-ui.mini-header-compact .topbar>div:first-of-type{display:none}
 .telegram-mini-app.journey-ui.mini-header-compact #menuButton{height:36px;min-height:36px}
 .telegram-mini-app.journey-ui.mini-header-compact :is(.journey-switch,.signed-user,.theme-toggle){height:36px}
}
@media(prefers-reduced-motion:reduce){.telegram-mini-app.journey-ui .topbar{transition:none}}
