/* Вход, регистрация, установка приложения.
   Раздел бывшего ui-fixes-20260926.css (порядок правил внутри раздела прежний; разложено tools/css-sections.py). */
body.design-787:not(.cabinet-mode){--entry-orange:#b94a00}
body.design-787 .auth-card form button[type="submit"]{background:#b94a00;color:#fff}
body.design-787 .auth-card form button[type="submit"]:hover{background:#963c00}
body.design-787:not(.cabinet-mode) .install-card figcaption{color:#596b78}
.portal-switch:not([hidden]),.design-787:not(.cabinet-mode) .portal-switch:not([hidden]){display:flex;align-items:center;justify-content:center;min-height:44px}
/* Вход с телефона целиком в окне: «Войти» и ссылка регистрации видны без прокрутки. Чем ниже окно, тем плотнее шапка:
   сначала сжимаются отступы, затем скрывается пояснение под заголовком, на самых низких — и надпись кабинета. */
@media (max-width:759px) and (max-height:760px){
  body.design-787:not(.cabinet-mode) .guest-hero{gap:8px;padding:14px 20px 18px}
  body.design-787:not(.cabinet-mode) .entry-brand{margin-bottom:12px}
  body.design-787:not(.cabinet-mode) .guest-hero>.eyebrow{margin:0}
  body.design-787:not(.cabinet-mode) .guest-hero h1,body.design-787:not(.cabinet-mode) .guest-hero>p:not(.eyebrow){margin:0}
}
@media (max-width:759px) and (max-height:647px){
  body.design-787:not(.cabinet-mode) .guest-hero>p:not(.eyebrow){display:none}
}
@media (max-width:759px) and (max-height:599px){
  body.design-787:not(.cabinet-mode) .guest-hero{padding:10px 20px 12px}
  body.design-787:not(.cabinet-mode) .guest-hero>.eyebrow{display:none}
  body.design-787:not(.cabinet-mode) .guest-hero h1{margin:0;font-size:20px;line-height:1.2}
  body.design-787:not(.cabinet-mode) .auth-card{padding-top:14px}
  body.design-787:not(.cabinet-mode) .auth-card>#auth-area{gap:10px}
}
body.design-787:not(.cabinet-mode) :is(#auth-tab-pin,#auth-tab-sms,#show-pin-login,#show-registration,.entry-qr){min-height:44px!important}
body.design-787:not(.cabinet-mode) .entry-qr{min-width:44px!important}

/* 163: упрощённый кабинет водителя на телефоне — одно дело на экран, крупнее текст и кнопки (решение владельца 14.10.2026). */
/* Вход: «Установить» — подписанная кнопка вверху, рядом с логотипом: видна без прокрутки и не сдвигает форму входа. */
body.design-787:not(.cabinet-mode) .entry-brand .entry-qr{display:inline-flex!important;align-items:center;gap:8px;flex:0 0 auto!important;width:auto!important;padding:0 14px!important;font-size:15px;font-weight:800;letter-spacing:0}
@media (display-mode:standalone){body.design-787:not(.cabinet-mode) .entry-brand .entry-qr .entry-qr-text{display:none}body.design-787:not(.cabinet-mode) .entry-brand .entry-qr{padding:0!important;width:44px!important;justify-content:center}}
/* Вход на телефоне в один экран (замечание владельца 23.10.2026: «вход выше экрана, QR и „Вы водитель?“ уходят под край»).
   Ничего не убрано: верхний блок ниже, поля плотнее, «Приложение на телефон» — одной низкой строкой с QR, «Вы водитель?» на экране. */
@media(max-width:759px){
 body.design-787:not(.cabinet-mode) .guest-main{display:flex;flex-direction:column;min-height:calc(var(--app-vh, 1vh) * 100);min-height:100dvh;margin:0!important;width:100%!important}
 /* Колонка flex: «align-self:end» карточки входа из сетки компьютера (design-entry) прижимал её вправо и сужал —
    форма входа была сдвинута вправо (замечание владельца 06.11.2026). На телефоне карточка во всю ширину. */
 body.design-787:not(.cabinet-mode) .guest-main>.auth-card{align-self:stretch!important;width:auto!important}
 body.design-787:not(.cabinet-mode) .guest-hero{padding:10px 16px 12px!important;gap:4px!important;min-height:0!important}
 body.design-787:not(.cabinet-mode) .guest-hero .entry-brand{min-height:40px!important;margin:0!important}
 body.design-787:not(.cabinet-mode) .guest-hero .eyebrow{margin:2px 0 0!important}
 body.design-787:not(.cabinet-mode) .guest-hero h1{margin:2px 0 0!important;font-size:20px!important;line-height:1.2!important}
 body.design-787:not(.cabinet-mode) .guest-hero h1+p{margin:2px 0 0!important;font-size:13px!important;line-height:1.3}
 body.design-787:not(.cabinet-mode) .auth-card{padding:10px 16px 8px!important;margin:0!important}
 body.design-787:not(.cabinet-mode) #auth-area>.eyebrow{display:none}
 body.design-787:not(.cabinet-mode) .auth-section-title{margin:0 0 6px!important;font-size:18px!important}
 body.design-787:not(.cabinet-mode) .auth-tabs{margin:0 0 6px!important}
 body.design-787:not(.cabinet-mode) .auth-tabs button{min-height:40px!important}
 body.design-787:not(.cabinet-mode) #auth-intro{margin:0 0 4px!important;font-size:13px}
 body.design-787:not(.cabinet-mode) #auth-area form label{margin:4px 0 2px!important;font-size:13px}
 body.design-787:not(.cabinet-mode) #auth-area form input:not([type=checkbox]){min-height:44px!important;height:44px!important}
 body.design-787:not(.cabinet-mode) #auth-area form button{min-height:46px!important;margin-top:8px!important}
 body.design-787:not(.cabinet-mode) .install-card{display:flex!important;align-items:center;gap:10px;margin:6px 16px!important;padding:6px 10px!important;min-height:0!important}
 body.design-787:not(.cabinet-mode) .install-card figure{flex:0 0 auto;margin:0!important;order:2}
 body.design-787:not(.cabinet-mode) .install-card figure img{width:56px!important;height:56px!important}
 body.design-787:not(.cabinet-mode) .install-card>div{flex:1;min-width:0}
 body.design-787:not(.cabinet-mode) .install-card :is(h2,h3,strong){font-size:14px!important;margin:0!important}
 body.design-787:not(.cabinet-mode) .install-card p{font-size:12px!important;margin:2px 0 0!important;line-height:1.3}
 body.design-787:not(.cabinet-mode) .portal-switch{min-height:40px!important;margin:0 auto 4px!important}
}
@media(max-width:759px){
 body.design-787:not(.cabinet-mode) .guest-hero{padding-top:6px!important;padding-bottom:8px!important}
 body.design-787:not(.cabinet-mode) .auth-section-title{margin:0 0 4px!important;line-height:1.2}
 body.design-787:not(.cabinet-mode) .auth-tabs{padding:2px!important;gap:2px!important}
 body.design-787:not(.cabinet-mode) #auth-area form{gap:0!important}
 body.design-787:not(.cabinet-mode) #auth-area form label{margin:6px 0 2px!important;line-height:1.2}
 body.design-787:not(.cabinet-mode) #auth-area form input:not([type=checkbox]){margin:0!important}
 body.design-787:not(.cabinet-mode) #show-registration{min-height:40px!important;margin-top:4px!important;border:0!important;background:none!important;box-shadow:none!important;color:var(--787-blue,#154f7f)!important;text-decoration:underline;text-underline-offset:3px}
 body.design-787:not(.cabinet-mode) .install-card figure img{width:48px!important;height:48px!important}
 body.design-787:not(.cabinet-mode) .install-card figcaption{font-size:10px!important;margin:0!important}
}
/* Невысокий экран: подробная карточка «Приложение на телефон» уступает место форме — установить можно кнопкой
   «Установить» в верхней строке, рядом со значком 787. */
@media(max-width:759px) and (max-height:700px){
 body.design-787:not(.cabinet-mode) .install-card{display:none!important}
}
/* 06.11.2026: значок QR у «Установить» — рисованный (символ «▦» на части Android не показывался — пустая рамка). */
body.design-787:not(.cabinet-mode) .entry-qr svg.qr-icon{width:22px;height:22px;flex:0 0 22px;display:block}
/* 06.11.2026 (снимок владельца, вход водителя): короткий заголовок «Заказы, линия и статистика» вставал по центру,
   а текст под ним — слева (блоки сжимались по содержимому в колонке с выравниванием по центру); у пассажира длинный
   заголовок — слева. На телефоне и планшете подпись кабинета, заголовок и текст — во всю ширину и слева у обеих ролей;
   по центру остаётся только строка знака 787 AIRCLUB. */
@media(max-width:1099px){body.design-787:not(.cabinet-mode) .guest-hero>:is(h1,p,.eyebrow):not(#_){align-self:stretch!important;text-align:left!important;margin-inline:0!important}}
/* 06.11.2026: подпись «Android и iPhone» под QR на входе — не мельче 11 px (была 9–10 px). */
body.design-787:not(.cabinet-mode) .install-card figcaption:not(#_){font-size:11px!important}
