/* Cars4me 2.8.7 guest gateway only. No public theme or authenticated app selectors. */
.c4mg .c4mg-password-field>label{margin-bottom:7px}.c4mg-password-input{position:relative}.c4mg .c4mg-password-input input{padding-right:98px!important}.c4mg .c4mg-password-input button{position:absolute;right:4px;top:4px;min-height:43px;min-width:88px;border:0;border-radius:9px;background:#19392b;color:#caffdf;font-size:13px;font-weight:600}.c4mg .c4mg-login-notice{padding:12px;border:1px solid #e7b39d;border-radius:12px;color:#ffd6c6!important;font-size:14px;line-height:1.4;margin:0 0 12px}
.c4mg-body{margin:0!important;background:#06100c!important;color:#f2f9f5!important;font:16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color-scheme:dark}
.c4mg-body *{box-sizing:border-box}.c4mg-body [hidden]{display:none!important}.c4mg-body button,.c4mg-body input{font:inherit}.c4mg-body button,.c4mg-body a{-webkit-tap-highlight-color:transparent}.c4mg-body a{color:#baf8d4}.c4mg-body button{cursor:pointer}.c4mg-body :focus-visible{outline:2px solid #b5ffd6;outline-offset:3px}.c4mg-body button:disabled{opacity:.5;cursor:default}
.c4mg-body .c4mc-auth-page{padding:0;background:none;min-height:0}.c4mg-body .c4mc-alert{margin:8px 16px;padding:10px;border:1px solid #ffa6a6;border-radius:12px}
.c4mg{height:100vh;height:100dvh;max-width:520px;min-height:360px;margin:auto;display:flex;flex-direction:column;background:radial-gradient(ellipse at 85% 0,#103c2c,transparent 55%),#06100c;position:relative;isolation:isolate}
.c4mg-header{display:flex;align-items:center;justify-content:space-between;flex:none;padding:calc(8px + env(safe-area-inset-top,0px)) 20px 8px;min-height:64px}
.c4mg-logo{font-size:29px;font-weight:900;letter-spacing:-1.5px;line-height:1.02;color:#fff!important;text-decoration:none!important;box-shadow:0 5px 0 #12a84e;padding-bottom:0}
.c4mg-menu{position:relative;width:42px;height:42px;border:1px solid #9bbcaa;border-radius:9px;background:#07140e;color:#fff}.c4mg-menu span{position:absolute;left:11px;top:12px;width:18px;height:2px;background:#fff;border-radius:2px}.c4mg-menu span:nth-child(2),.c4mg-menu span:nth-child(3){top:19px}.c4mg-menu span:nth-child(4){top:26px}
.c4mg-main{min-height:0;flex:1;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#23573e transparent}
.c4mg-tabs{position:relative;z-index:1;display:flex;flex:none;margin:8px 18px 0;padding:3px;gap:2px;border:1px solid #295542;border-radius:24px;background:#04100c}
.c4mg-tabs a,.c4mg-tabs button{display:grid;place-items:center;flex:1;min-height:44px;min-width:0;padding:8px 6px;line-height:1.2;color:#dce8e1;text-decoration:none;border:1px solid transparent;border-radius:22px;background:none;font-size:13px}
.c4mg-tabs [aria-current="page"],.c4mg-tabs [aria-expanded="true"]{background:linear-gradient(145deg,#13bc70,#006d3e);box-shadow:inset 0 1px 4px #9affc697,0 0 14px #03cb7738;border-color:#50e7a5;color:#fff;font-weight:700}
.c4mg-hero{position:relative;flex:0 1 205px;min-height:120px;overflow:hidden;margin:0 0 -5px;pointer-events:none;mask-image:linear-gradient(#000 78%,transparent)}
.c4mg-hero img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 43%}.c4mg-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#06100c22,transparent 30%,#06100c22)}.c4mg-hero span{position:absolute;bottom:20%;left:18%;font-size:11px;letter-spacing:.1em;color:#d2fbe5;text-shadow:0 1px 4px #000;transform:rotate(8deg)}
.c4mg-content{padding:0 22px 14px;flex:1}.c4mg h1{font-size:clamp(26px,6.5vw,32px);line-height:1.1;letter-spacing:-.6px;margin:0 0 7px;font-weight:750;color:#f4faf7}.c4mg h2{font-size:23px;line-height:1.16;margin:0 0 12px;color:#f4faf7}.c4mg p{margin:0 0 12px}.c4mg-welcome>p:last-child,.c4mg-pane>p:not(.c4mg-eyebrow),.c4mg-muted{color:#b9ccc0}.c4mg-eyebrow{font-size:10px;letter-spacing:.15em;color:#83d3a7;font-weight:700;margin:0 0 7px!important}.c4mg-welcome{margin-bottom:16px}
.c4mg .c4mc-sms-tabs{display:flex;gap:10px;margin:0 0 10px}.c4mg .c4mc-sms-tabs button{font-size:14px;min-height:44px;min-width:76px;border:0;background:none;padding:10px 6px;color:#aec6b8;border-bottom:1px solid transparent}.c4mg .c4mc-sms-tabs button[aria-selected="true"]{color:#dcffe9;border-bottom-color:#5fde9a}
.c4mg .c4mc-auth-form{display:grid;gap:9px}.c4mg .c4mc-auth-form label{font-size:14px;color:#edf6f0;display:block}.c4mg .c4mc-auth-form label>span{display:block;margin-bottom:7px}.c4mg input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]){width:100%;min-width:0;background:#10241d;border:1px solid #54836c;border-radius:12px;padding:13px 14px;height:51px;color:#fff;box-shadow:inset 0 1px 4px #0004;font-size:17px}.c4mg input::placeholder{color:#a9bbb1;opacity:1}.c4mg input:focus{border-color:#7bf1b0}
.c4mg .c4mc-sms-phone,.c4mg .c4mr-phone{display:flex;align-items:center;border:1px solid #54836c;border-radius:12px;background:#10241d;overflow:hidden}.c4mg .c4mc-sms-phone>span,.c4mg .c4mr-phone>span{font-size:18px;font-weight:600;padding:0 13px;border-right:1px solid #4d7660}.c4mg .c4mc-sms-phone input,.c4mg .c4mr-phone input{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}.c4mg .c4mc-sms-phone:focus-within,.c4mg .c4mr-phone:focus-within{outline:1px solid #80efb3;outline-offset:2px}
.c4mg .c4mc-primary-button,.c4mg .c4mr-button,.c4mg .c4mg-primary{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:49px;padding:12px 16px;border:1px solid #52e4a0;border-radius:13px;background:linear-gradient(140deg,#0fbd71,#00643a);box-shadow:inset 0 1px 4px #baffd787,0 3px 14px #008a4540;color:#fff!important;text-decoration:none;font-size:16px;font-weight:700;line-height:1.3}
.c4mg .c4mg-primary span{margin-left:auto}.c4mg .c4mc-sms-hint,.c4mg .c4mr-muted,.c4mg .c4mc-auth-options{color:#aec4b6;font-size:13px;line-height:1.4;margin:0}.c4mg .c4mc-sms-status:empty{display:none}.c4mg .c4mc-sms-status{font-size:12px;margin:9px 0}.c4mg .c4mc-sms-status.is-error,.c4mg .c4mr-status.is-error{color:#ffb7ad}
.c4mg .c4mc-sms-secondary,.c4mg .c4mc-auth-options{display:flex;justify-content:space-between;gap:8px}.c4mg .c4mc-sms-secondary button,.c4mg .c4mc-sms-forgot,.c4mg .c4mg-text-button,.c4mg .c4mr-link{border:0;background:none;color:#c0e4d0;text-decoration:underline;text-underline-offset:4px;font-size:14px;min-height:44px;padding:8px 0}.c4mg .c4mc-sms-hint+noscript{font-size:12px}.c4mg .c4mg-new{font-size:14px;margin:12px 0 0;text-align:center;color:#aec4b6}.c4mg .c4mc-auth-form+[class="c4mc-sms-status"]+.c4mc-sms-hint{margin-top:10px}
.c4mg-bottom{flex:none;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;border-top:1px solid #284b39;background:#030907;padding:2px 12px calc(5px + env(safe-area-inset-bottom,0px));z-index:3}.c4mg-bottom a,.c4mg-bottom button{display:flex;align-items:center;flex-direction:column;justify-content:flex-end;min-height:70px;color:#d9e9df;border:0;background:none;text-decoration:none;font-size:12px;padding:0 2px 5px;gap:0}.c4mg-bottom a:last-child{color:#64e8a2}.c4mg-nav-icon{display:block;width:50px;height:48px;background-image:url('navigation-9ca46f48d6d4.webp');background-size:150px 50px;background-repeat:no-repeat}.c4mg-chat{background-position:0 0}.c4mg-car{background-position:-50px 0;transform:scale(1.12)}.c4mg-orders{background-position:-100px 0}
.c4mg-install-actions{display:grid;gap:10px;margin:20px 0 14px}.c4mg-app-panel>.c4mg-muted{font-size:13px}.c4mg-installed{padding:16px;border:1px solid #2d8d59;border-radius:12px;background:#113922}
.c4mg-dialog,.c4mg .c4mc-install-modal-card{position:fixed;inset:auto 0 0;max-width:520px;width:100%;margin:auto;max-height:88vh;max-height:88dvh;overflow:auto;border:1px solid #477d5d;border-radius:24px 24px 0 0;padding:28px 24px calc(24px + env(safe-area-inset-bottom,0px));background:#0c2117;color:#f2f9f5;box-shadow:0 -20px 80px #0008;z-index:15;font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.c4mg-dialog::backdrop{background:#000b}.c4mg-close{position:absolute;right:12px;top:8px;min-width:44px;min-height:44px;background:none;border:0;color:#fff;font-size:29px}.c4mg-contact-link{display:flex;justify-content:space-between;padding:16px 4px;border-bottom:1px solid #335d43;text-decoration:none}.c4mg .c4mc-install-modal{position:fixed;inset:0;z-index:20}.c4mg .c4mc-install-modal-overlay{position:absolute;inset:0;background:#000b;border:0;width:100%;height:100%}.c4mg .c4mc-install-modal-card h2{padding-right:30px}.c4mg .c4mc-install-steps{padding-left:24px}.c4mg .c4mc-install-steps li{margin-bottom:10px}.c4mg .c4mc-install-note{font-size:13px;color:#b8d2c0}.c4mg [data-c4mc-install-modal-qr]{text-align:center;margin:16px}.c4mg [data-c4mc-install-modal-qr] img{max-width:100%;height:auto}
/* Registration retains its backend selectors, legal text and explicit consent. */
.c4mg[data-gateway-screen="registration"] .c4mg-hero{display:none}.c4mg[data-gateway-screen="registration"] .c4mg-content{padding-top:14px}.c4mg[data-gateway-screen="registration"] .c4mg-hero img{object-position:50% 46%}.c4mg[data-gateway-screen="registration"] .c4mg-hero span{display:none}.c4mg [data-registration]>h1{font-size:25px}.c4mg .c4mr-intro{font-size:13px;color:#b9ccc0;margin-bottom:10px}.c4mg .c4mr-steps{display:flex;justify-content:space-between;gap:6px;margin:0 0 8px;padding:0;list-style:none;border:0}.c4mg .c4mr-steps li{display:flex;flex-direction:column;align-items:center;flex:1;color:#8eac9a;font-size:11px;border:0;padding:0;gap:2px}.c4mg .c4mr-steps li[aria-current]{color:#63ec9f}.c4mg .c4mr-steps span{font-size:12px}.c4mg .c4mr-card{background:transparent;border:0;box-shadow:none;padding:0;margin:0;border-radius:0}.c4mg .c4mr-card>p{font-size:13px;color:#b8cbbf;margin-bottom:10px}.c4mg .c4mr-eyebrow{display:none}.c4mg .c4mr-card h2{font-size:21px;margin-bottom:7px}.c4mg .c4mr-consent{border:1px solid #345341;border-radius:12px;background:#0c1d15;margin:7px 0;padding:8px 10px}.c4mg .c4mr-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.4;color:#e1eee6}.c4mg .c4mr-check input{flex:none;width:21px;height:21px;margin:0;accent-color:#12ba69}.c4mg .c4mr-consent .c4mr-link{display:block;padding:8px 0 6px 31px;min-height:44px;font-size:13px}.c4mg .c4mr-note{font-size:13px!important;background:none;border:0;border-left:2px solid #417c56;padding:3px 0 3px 10px;margin:10px 0;color:#b4cbbb}.c4mg .c4mr-card>form{display:grid;gap:9px}.c4mg .c4mr-card>form label{font-size:14px}.c4mg .c4mr-actions{display:flex;gap:14px}.c4mg .c4mr-status{font-size:12px;margin:6px 0;min-height:0}.c4mg .c4mr-status:empty{display:none}.c4mg .c4mr-footer{font-size:13px;line-height:1.4;padding:8px 0 0;border:0;color:#8faa98}.c4mg .c4mr-doc-grid{display:block}.c4mg .c4mr-doc{border:1px solid #43684f;border-radius:14px;padding:12px;background:#0c1f15}.c4mg .c4mr-doc strong{font-size:14px}.c4mg .c4mr-doc img{display:block;max-height:140px;width:100%;object-fit:contain;margin:8px 0;background:#07100b}.c4mg .c4mr-doc input[type="file"]{font-size:12px;width:100%;margin:12px 0;min-height:40px}.c4mg .c4mr-doc input::file-selector-button{border:1px solid #427557;border-radius:8px;background:#17432b;color:#eafff1;padding:10px 9px;margin-right:8px;font-size:12px}.c4mg .c4mg-files-nav{display:flex;align-items:center;justify-content:space-between;margin:8px 0}.c4mg-files-nav button{border:1px solid #426951;border-radius:9px;background:#153521;color:#fff;min-width:44px;min-height:44px}.c4mg-files-nav span{font-size:12px;color:#bde5cc}.c4mg [data-reg-count]{margin:9px 0}.c4mg [data-withdraw]{font-size:13px;min-height:44px;color:#c1b8b4}.c4mg .c4mr-dialog{background:#0d2217;color:#edf9f1;border:1px solid #4b785a;max-width:580px;width:calc(100% - 24px);max-height:85dvh;padding:22px;border-radius:18px}.c4mg .c4mr-dialog h2{font-size:20px;padding-right:30px}.c4mg .c4mr-legal-text{color:#d1e2d7;font-size:14px;white-space:pre-wrap}.c4mg .c4mr-close{background:none;color:#fff;border:0;font-size:28px}.c4mg .c4mr-dialog::backdrop{background:#000b}
.c4mg-compact .c4mg-hero,.c4mg-compact .c4mg-welcome>p,.c4mg-compact [data-registration]>h1,.c4mg-compact .c4mr-intro{display:none}.c4mg-compact .c4mg-content{padding-top:14px}.c4mg-compact .c4mg-welcome{margin-bottom:12px}.c4mg-keyboard .c4mg-bottom{display:none}.c4mg-keyboard .c4mg{height:var(--c4mg-viewport,100dvh);min-height:260px}.c4mg-keyboard .c4mg-header{padding-top:5px;min-height:52px}.c4mg-keyboard .c4mg-logo{font-size:25px}
@media(max-height:760px){.c4mg-hero{flex-basis:165px}.c4mg[data-gateway-screen="registration"] .c4mg-hero{display:none}.c4mg[data-gateway-screen="registration"] .c4mg-content{padding-top:14px}.c4mg-welcome{margin-bottom:12px}.c4mg-bottom a,.c4mg-bottom button{min-height:64px}}
@media(max-height:650px){.c4mg-hero{flex-basis:100px;min-height:64px}.c4mg h1{font-size:26px}.c4mg-header{min-height:56px}.c4mg-welcome{margin-bottom:8px}.c4mg-eyebrow{display:none}.c4mg-tabs{margin-top:3px}.c4mg .c4mc-auth-form{gap:7px}}
@media(min-width:760px){.c4mg-body{background:radial-gradient(ellipse at 50% 40%,#173d2a,#020a05 70%)!important}.c4mg{height:min(880px,calc(100dvh - 48px));margin:24px auto;border:1px solid #345641;border-radius:28px;overflow:hidden;box-shadow:0 24px 100px #0009}.c4mg-header{padding-top:16px}.c4mg-hero{flex-basis:200px}.c4mg-content{padding-left:32px;padding-right:32px}.c4mg-bottom{padding-bottom:10px}}
@media(prefers-reduced-motion:reduce){.c4mg *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.c4mg .c4mr-consent .c4mr-link{margin-left:0}.c4mg .c4mr-footer{margin:0}.c4mg .c4mr-doc-grid{margin:8px 0}.c4mg .c4mr-phone{margin:0}.c4mg .c4mr-card input:not([type="checkbox"]):not([type="file"]){margin:0}.c4mg .c4mr-doc input[type="file"]{background:#0c1f15;color:#dcf4e5;padding:0;border:0}

.c4mg .c4mg-step-hint{font-size:13px;line-height:1.4;color:#b8cbbf;margin:8px 0 0}.c4mg .c4mg-next-photo{margin-top:10px}.c4mg .c4mg-new a{display:inline-flex;align-items:center;min-height:44px}.c4mg .c4mr-close{min-width:44px;min-height:44px}

/* Guest login: use available height for the image, keep signup next to the bottom navigation.
   Content remains in normal flow and scrolls on short screens or enlarged text. */
.c4mg[data-gateway-screen="login"] .c4mg-content{display:flex;flex-direction:column;flex:1 0 auto;padding-bottom:4px}
.c4mg[data-gateway-screen="login"] [data-gateway-panel="login"]{display:flex;flex-direction:column;flex:1}
.c4mg[data-gateway-screen="login"] .c4mg-new{flex:none;margin:auto 0 0;padding-top:8px}
