.app-shell{max-width:76rem;margin:auto;padding:2rem 1.25rem 5rem}.app-topline{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1.5rem}.app-topline h1{margin:0;font-size:clamp(2rem,5vw,3.5rem)}.app-user{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.app-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:1.25rem}.app-card{border:4px solid var(--true-black);border-top-color:var(--dv-yellow);background:var(--panel);box-shadow:.45rem .45rem 0 var(--true-black);padding:1.25rem;min-width:0}.app-card h2{font-size:1.2rem;margin-bottom:1rem}.app-card h3{font-size:.95rem;margin-bottom:.75rem}.app-card.full{grid-column:1/-1}.app-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem}.kpi{padding:1rem;border:2px solid rgba(174,184,194,.25);background:#16212a;min-width:0}.kpi span{display:block;color:var(--silver);font-size:.75rem;text-transform:uppercase;letter-spacing:.08em}.kpi strong{display:block;margin-top:.25rem;font:800 1.55rem/1.1 var(--heading-font);color:var(--warm-white)}.app-form{display:grid;gap:1rem;min-width:0}.app-form label{display:grid;gap:.35rem;min-width:0}.app-form input,.app-form select,.app-form textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;padding:.82rem .9rem;border:2px solid #68737d;border-radius:.25rem;color:#111820;background:#f7f3e8;font:inherit}.app-form input:focus,.app-form select:focus,.app-form textarea:focus{outline:3px solid var(--dv-yellow);outline-offset:2px}.app-form textarea{min-height:6rem;resize:vertical}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;min-width:0}.form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.app-status{min-height:1.5rem;color:var(--silver)}.app-status.error{color:#ff9b9b}.app-status.success{color:#a8e9bd}.vehicle-list,.drive-list,.quest-list{display:grid;gap:.6rem;margin:0;padding:0;list-style:none;min-width:0}.vehicle-item,.drive-item,.quest-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;align-items:center;padding:.8rem;border:1px solid rgba(174,184,194,.22);background:#17222b;min-width:0}.vehicle-item small,.drive-item small,.quest-item small{color:var(--silver)}.pill{display:inline-block;padding:.18rem .45rem;border:1px solid var(--dv-yellow);color:var(--dv-yellow);font:700 .65rem/1.2 var(--heading-font);letter-spacing:.05em}.quest-help-target{cursor:help;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:.18em}.quest-help-target:focus{outline:2px solid var(--dv-yellow);outline-offset:3px}.app-login{max-width:34rem;margin:4rem auto;padding:1.5rem}.app-login p{color:var(--silver)}.app-hidden{display:none!important}.button-small{padding:.55rem .7rem;font-size:.65rem;box-shadow:none}.subtle-button{border:1px solid #6b7781;background:transparent;color:var(--warm-white);box-shadow:none}.subtle-button:hover{color:var(--warm-white);background:#26323c;box-shadow:none}.driver-select{min-width:12rem;padding:.55rem .65rem;color:#111820;background:var(--warm-white);border:2px solid var(--dv-yellow)}.empty-state{padding:1rem;color:var(--silver);border:1px dashed rgba(174,184,194,.35)}.license-line{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.75rem 0;border-top:1px solid rgba(174,184,194,.2)}.license-line:first-of-type{border-top:0}.license-line strong{font-family:var(--heading-font);font-size:.78rem}
/* Post-request state: once the shared auth code marks login status success, the
   email request form is visually replaced by a clear next-step panel. */
#login-form:has(#login-status.success)>label,#login-form:has(#login-status.success)>button{display:none!important}#login-form:has(#login-status.success){gap:0}#login-status.success{min-height:0;margin-top:.35rem;padding:1.15rem 1.1rem 1.25rem;border:3px solid var(--dv-yellow);border-radius:.35rem;background:#17212a;color:var(--warm-white);font-size:1rem;line-height:1.55;box-shadow:.3rem .3rem 0 var(--true-black)}#login-status.success::before{content:"EMAIL SENT";display:block;margin-bottom:.65rem;color:var(--dv-yellow);font:800 .72rem/1.2 var(--heading-font);letter-spacing:.09em}#login-status.success::after{content:"Open the email and tap the secure sign-in link. It will bring you back to Drive Venture and open your dashboard. You can close this page; return to log.mydriveventure.com anytime to request a fresh link. If the message is missing, check Spam or Junk.";display:block;margin-top:.7rem;color:#dce3e8;font-size:.93rem;line-height:1.55}
@media(max-width:780px){html,body{max-width:100%;overflow-x:hidden}.app-grid{grid-template-columns:minmax(0,1fr)}.app-card.full{grid-column:auto}.app-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.form-row,.form-row.three{grid-template-columns:minmax(0,1fr)}.app-topline{align-items:flex-start;flex-direction:column}.app-user{width:100%;min-width:0}.driver-select{flex:1;min-width:0;max-width:100%}.app-shell{width:100%;box-sizing:border-box;padding:1.25rem .75rem 4rem}.app-card{width:100%;box-sizing:border-box;padding:1rem}.app-form input,.app-form select,.app-form textarea,.app-form input[type=date],.app-form input[type=time]{display:block;width:100%!important;max-width:100%!important;min-width:0!important;min-height:3.25rem;font-size:16px}.vehicle-item,.drive-item,.quest-item{grid-template-columns:minmax(0,1fr);align-items:start}.pill{justify-self:start}}
