/* Shared DSS forms and navigation, desktop and mobile. */
:root{--ink:#15354c;--muted:#607b8c;--teal:#008f94;--orange:#ed7010;--line:#d6e3e2;--bg:#fff9f0;--pale:#e4f4f2}
body{color:var(--ink);background:var(--bg)}
.system-header{background:#173d50}.system-footer{background:#fffdf8;border-top:1px solid var(--line)}
.card,.workspace-card,.trip-card{border-radius:12px;border:1px solid var(--line);box-shadow:none}
#content h1{font-size:clamp(24px,2.2vw,32px);line-height:1.25;overflow-wrap:anywhere}
#content input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),#content select,#content textarea{border:1px solid #b9ced3;border-radius:8px;background:#fff;color:var(--ink);max-width:100%;min-height:44px;padding:10px 12px}
#content input:focus-visible,#content select:focus-visible,#content textarea:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
#content .errorlist{border:1px solid #e9c7bd;border-radius:8px;padding:12px 16px;list-style:none;background:#fff3ed;color:#9c3020;font-size:14px}
#content form .helptext{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
#content .password-control input{min-width:0}.side nav a{min-height:44px}.side nav a:last-child{border-top:0}
.auth-page .app-layout{display:block;max-width:560px}.auth-page .side,.auth-page .mobile-page-nav{display:none}
.auth-page #content{min-height:0;padding:40px 20px 48px}.auth-card{margin:0;padding:28px}.auth-card h1{margin-bottom:12px}.auth-card>p{font-size:15px;margin-bottom:24px}
.auth-field{margin:0 0 18px}.auth-field label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}.auth-field>input{width:100%;margin:0}.auth-card form>button{width:100%;margin-top:4px;min-height:46px;background:var(--teal)}
.auth-links{display:flex;flex-direction:column;gap:16px;margin-top:22px;font-size:14px}.auth-links span{color:var(--muted)}
.auth-page .system-footer{padding:18px 24px}.auth-page .footer-connect{display:none}
@media(max-width:700px){.auth-page #content{padding:24px 16px 32px}.auth-card{padding:22px 18px}.auth-page .brand small{display:none}#content input,#content select,#content textarea{font-size:16px}.card{padding:18px}.system-footer nav{gap:10px 18px}.system-footer nav a{display:inline-flex;align-items:center;min-height:40px}}

.auth-page.auth-wide .app-layout{max-width:900px}.auth-page .card.narrow{max-width:100%;margin:0}.auth-page form>p>label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}.auth-page form>p>input:not([type=checkbox]):not([type=radio]){width:100%}.auth-page .registration-role input{min-height:20px}.auth-page .helptext{display:block}


/* Shared footer follows the content grid and stays below short pages. */
html{min-height:100%}body{min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
body>.system-header,body>.system-footer{flex-shrink:0}
body>.app-layout{width:100%;flex:1 0 auto;margin:0 auto;box-sizing:border-box}
body:not(.map-home)>.app-layout>main{min-height:0}
body>.system-footer{padding:0;margin-top:0}
.system-footer .footer-inner{width:100%;max-width:1800px;margin:0 auto;padding:16px 17px;box-sizing:border-box}
.system-footer .footer-connect{gap:8px 10px;margin:0 0 8px;flex-wrap:wrap}
.system-footer .footer-connect>a,.system-footer .footer-connect>button{min-height:40px;padding:8px 14px}
.system-footer nav{display:flex;flex-wrap:wrap;gap:4px 20px;margin:0}
.system-footer nav a{min-height:32px;padding:3px 0;font-size:13px}
.system-footer small{margin-top:6px;font-size:12px;line-height:1.5}
.map-home .system-footer .footer-inner{max-width:none;padding-inline:14px}
.telegram-connect-page{max-width:1040px}.telegram-connect-page .tg-actions{display:flex;flex-wrap:wrap;gap:10px 18px;margin:12px 0 18px}
.telegram-connect-page .helptext{display:block;margin-top:8px;color:var(--muted);font-size:13px}
@media(max-width:800px){.system-footer .footer-inner{padding:14px 18px}.system-footer .footer-connect{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.system-footer .footer-connect>*{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}.system-footer .footer-connect>button{grid-column:1/-1}.system-footer .footer-connect>a{min-height:44px;padding:8px;font-size:13px}.system-footer nav{display:flex;flex-wrap:wrap;gap:0 16px}.system-footer nav a{min-height:40px;font-size:12px}.system-footer small{font-size:11px}.telegram-connect-page .card{padding:16px}.telegram-connect-page form>button{max-width:100%;white-space:normal}}
.auth-page .system-footer .footer-connect{display:none}


.telegram-confirm-account{font-size:18px;font-weight:600;overflow-wrap:anywhere;margin:18px 0}.telegram-connect-feedback{padding:14px 16px;border:1px solid #efc59f;border-radius:9px;background:#fff2e7;color:#914300;line-height:1.5;margin:16px 0}.telegram-connect-page .telegram-alternative{display:inline-flex;align-items:center;min-height:44px;margin:8px 16px 8px 0}.telegram-connect-page button:disabled{opacity:.7;cursor:wait}.telegram-connect-page .telegram-confirm-form>button{min-height:48px}.telegram-connect-page .saved-departure{font-size:14px;color:var(--muted);margin:12px 0 0}
