/* AutoPilot V26.81 — final visual system pass for Profile and Calculator. */
:root{
  --ap81-bg:#090d10;
  --ap81-surface:#0e1519;
  --ap81-surface-raised:#11191e;
  --ap81-field:#090f12;
  --ap81-border:#29353c;
  --ap81-border-strong:#3a474e;
  --ap81-text:#f1f5f6;
  --ap81-muted:#929da3;
  --ap81-lime:#dfff2f;
  --ap81-radius:14px;
  --ap81-shadow:0 18px 48px rgba(0,0,0,.16);
}

body.page-profile-v2659,
body.page-calculator-v2586{background:var(--ap81-bg);color:var(--ap81-text)}

/* Shared hierarchy and controls. */
.profile-hero-v2659 h1,
body.page-calculator-v2586 #calculator h2{
  font:800 clamp(38px,4.2vw,46px)/1.08 Manrope,Inter,Arial,sans-serif!important;
  letter-spacing:-1.5px!important;
}
.profile-section-head-v2659 h2{
  font:800 clamp(26px,3vw,30px)/1.12 Manrope,Inter,Arial,sans-serif!important;
  letter-spacing:-.65px!important;
}
.profile-hero-v2659 p,
.profile-section-head-v2659 p,
body.page-calculator-v2586 #calculator .section-lead{color:var(--ap81-muted)!important}

.garage-selector-v2659 :where(input,select,textarea),
.garage-service-form-v2665 :where(input,select),
.profile-settings-card-v2659 input,
body.page-calculator-v2586 #calculator .calculator :where(input,select){
  min-height:46px!important;
  border:1px solid var(--ap81-border-strong)!important;
  border-radius:9px!important;
  background:var(--ap81-field)!important;
  color:var(--ap81-text)!important;
  box-shadow:none!important;
}
.garage-selector-v2659 :where(input,select,textarea):focus,
.garage-service-form-v2665 :where(input,select):focus,
.profile-settings-card-v2659 input:focus,
body.page-calculator-v2586 #calculator .calculator :where(input,select):focus{
  border-color:#9fb721!important;
  box-shadow:0 0 0 3px rgba(223,255,47,.07)!important;
}

/* Profile: compact page header and a consistent card language. */
.profile-page-v2659{padding-top:18px!important;padding-bottom:48px!important}
.profile-hero-v2659{
  min-height:132px;
  align-items:center!important;
  padding:18px 0 20px!important;
}
.profile-hero-v2659>div:first-child>span{margin-bottom:7px!important}
.profile-hero-v2659 p{max-width:620px;margin-top:8px!important}
.profile-local-note-v2659{
  flex-basis:300px!important;
  padding:14px 16px 14px 18px!important;
  border:1px solid var(--ap81-border)!important;
  border-left:3px solid var(--ap81-lime)!important;
  border-radius:11px!important;
  background:linear-gradient(135deg,rgba(223,255,47,.055),rgba(14,21,25,.96))!important;
}
.profile-tabs-v2659{
  gap:6px!important;
  margin-bottom:22px!important;
  padding:9px 0!important;
  border-color:#202a30!important;
}
.profile-tabs-v2659 button{
  min-height:42px!important;
  padding-inline:15px!important;
  border-color:var(--ap81-border)!important;
  border-radius:9px!important;
  background:#0c1317!important;
  color:#aab4b9!important;
}
.profile-tabs-v2659 button:hover{border-color:#65731c!important;color:var(--ap81-text)!important}
.profile-tabs-v2659 button.active{border-color:var(--ap81-lime)!important;background:var(--ap81-lime)!important;color:#090d10!important}
.profile-section-head-v2659{align-items:center!important;margin-bottom:14px!important}
.profile-section-head-v2659 p{margin-top:5px!important}

.profile-stats-v2659>a,
.profile-stats-v2659>button,
.profile-callout-v2659,
.garage-card-v2659,
.profile-saved-card-v2659,
.profile-settings-card-v2659,
.garage-form-v2659,
.garage-service-v2665{
  border-color:var(--ap81-border)!important;
  border-radius:var(--ap81-radius)!important;
  background:var(--ap81-surface)!important;
  box-shadow:none!important;
}
.profile-stats-v2659>a,
.profile-stats-v2659>button{
  position:relative;
  min-height:88px!important;
  gap:8px!important;
  padding:14px 15px!important;
  overflow:hidden;
}
.profile-stats-v2659>a::before,
.profile-stats-v2659>button::before{content:"";position:absolute;inset:0 auto 0 0;width:2px;background:#445119;opacity:.8}
.profile-stats-v2659>a:hover,
.profile-stats-v2659>button:hover{border-color:#59691b!important;transform:none!important;background:var(--ap81-surface-raised)!important}
.profile-stats-v2659 span{color:#9aa5aa!important}.profile-stats-v2659 b{font-size:27px!important}

.profile-overview-grid-v2659,
.garage-grid-v2659,
.profile-saved-grid-v2659,
.profile-settings-grid-v2659{gap:12px!important;align-items:stretch}
.profile-callout-v2659,
.profile-saved-card-v2659,
.profile-settings-card-v2659{padding:17px!important}
.profile-callout-v2659 h3,
.profile-saved-card-v2659 h3,
.profile-settings-card-v2659 h3{color:var(--ap81-text)!important}
.profile-callout-v2659 p,
.profile-saved-card-v2659 p,
.profile-settings-card-v2659 p{color:var(--ap81-muted)!important}
.profile-callout-v2659 button,
.profile-section-head-v2659>button,
.garage-card-actions-v2659 :where(a,button),
.garage-form-actions-v2659 button,
.garage-service-actions-v2665 button,
.profile-settings-card-v2659 button,
.profile-import-button-v2668{
  min-height:42px!important;
  border-radius:9px!important;
  font-size:12px!important;
}
.profile-callout-v2659:first-child button,
.profile-section-head-v2659 .profile-primary-v2659,
.garage-form-actions-v2659 button[type="submit"],
.garage-service-actions-v2665 button[type="submit"]{
  border-color:var(--ap81-lime)!important;
  background:var(--ap81-lime)!important;
  color:#090d10!important;
}
.profile-callout-v2659:not(:first-child) button,
.profile-section-head-v2659>button:not(.profile-primary-v2659){background:#0a1114!important}
.garage-card-media-v2659{border-bottom:1px solid #222d32}
.garage-card-body-v2659{padding:15px!important}
.garage-card-actions-v2659{gap:7px!important;margin-top:8px!important}
.garage-card-actions-v2659 :where(a,button){background:#0a1114!important}
.garage-card-actions-v2659 .garage-service-open-v2665{background:rgba(223,255,47,.035)!important}
.garage-card-actions-v2659 .garage-delete-v2659{background:transparent!important}
.garage-form-v2659,.garage-service-v2665{padding:18px!important}
.garage-form-head-v2659{margin-bottom:15px!important}
.profile-settings-card-v2659{height:100%}
.profile-future-card-v2659{border-left:3px solid #56651a!important}

/* Calculator: same page rhythm and visual density as the profile. */
body.page-calculator-v2586 #calculator.section{padding-top:42px!important;padding-bottom:54px!important}
body.page-calculator-v2586 #calculator .calc-grid{
  grid-template-columns:minmax(0,.78fr) minmax(520px,1.22fr)!important;
  gap:46px!important;
  align-items:start!important;
  min-height:0!important;
}
body.page-calculator-v2586 #calculator .calc-grid>div:first-child{max-width:500px!important;padding-top:15px!important}
body.page-calculator-v2586 #calculator .eyebrow{margin-bottom:9px!important;color:var(--ap81-lime)!important;opacity:.82}
body.page-calculator-v2586 #calculator .section-lead{max-width:470px!important;margin-top:11px!important;line-height:1.65!important}
body.page-calculator-v2586 #calculator .calculator{
  position:relative;
  width:100%;
  max-width:none!important;
  padding:20px!important;
  gap:12px!important;
  border:1px solid var(--ap81-border)!important;
  border-radius:var(--ap81-radius)!important;
  background:linear-gradient(145deg,var(--ap81-surface-raised),#0b1216)!important;
  box-shadow:var(--ap81-shadow)!important;
  overflow:hidden;
}
body.page-calculator-v2586 #calculator .calculator::before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,var(--ap81-lime),rgba(223,255,47,0));opacity:.78}
body.page-calculator-v2586 #calculator .calculator label{color:#b2bcc1!important}
body.page-calculator-v2586 #calculator #calcBtn{
  min-height:46px!important;
  border-radius:9px!important;
  background:var(--ap81-lime)!important;
  color:#090d10!important;
  box-shadow:none!important;
}
body.page-calculator-v2586 #calculator .calc-result{
  min-height:68px!important;
  padding:13px 15px!important;
  border:1px solid #263239!important;
  border-radius:10px!important;
  background:#080d10!important;
}
body.page-calculator-v2586 #calculator .calc-result strong{font-size:26px!important}
body.page-calculator-v2586 #calculator .fuel-live-status{
  min-height:34px;
  padding:7px 9px;
  border:1px solid #222d33;
  border-radius:8px;
  background:rgba(7,12,15,.54);
  color:#87949b!important;
}
body.page-calculator-v2586 #calculator .fuel-live-status a{color:#b8c48a!important}

@media(max-width:1000px){
  body.page-calculator-v2586 #calculator .calc-grid{grid-template-columns:1fr!important;gap:20px!important}
  body.page-calculator-v2586 #calculator .calc-grid>div:first-child{max-width:720px!important;padding-top:0!important}
  body.page-calculator-v2586 #calculator .calculator{max-width:720px!important}
}

@media(max-width:760px){
  .profile-page-v2659{padding-top:10px!important;padding-bottom:38px!important}
  .profile-hero-v2659{min-height:0;grid-template-columns:1fr!important;gap:13px!important;padding:13px 0 16px!important}
  .profile-hero-v2659 h1,
  body.page-calculator-v2586 #calculator h2{font-size:34px!important;letter-spacing:-1px!important}
  .profile-local-note-v2659{width:100%;box-sizing:border-box;flex-basis:auto!important}
  .profile-tabs-v2659{top:65px!important;margin-inline:-12px;padding-inline:12px!important}
  .profile-section-head-v2659{align-items:flex-start!important}
  .profile-section-head-v2659>button{width:100%}
  body.page-calculator-v2586 #calculator.section{padding-top:28px!important;padding-bottom:40px!important}
  body.page-calculator-v2586 #calculator .calculator{padding:16px!important;box-shadow:none!important}
  body.page-calculator-v2586 #calculator .calculator{grid-template-columns:1fr 1fr!important}
}

@media(max-width:560px){
  .profile-stats-v2659{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .profile-stats-v2659>a,.profile-stats-v2659>button{min-height:80px!important}
  .profile-overview-grid-v2659,.profile-settings-grid-v2659,.garage-grid-v2659,.profile-saved-grid-v2659{grid-template-columns:1fr!important}
  .garage-form-v2659,.garage-service-v2665{padding:14px!important}
  .garage-card-actions-v2659{grid-template-columns:1fr 1fr!important}
  .garage-card-actions-v2659 .garage-service-open-v2665,.garage-card-actions-v2659 .garage-delete-v2659{grid-column:1/-1!important;width:100%!important}
  body.page-calculator-v2586 #calculator .calculator{grid-template-columns:1fr!important}
  body.page-calculator-v2586 #calculator .calculator :where(label,#calcBtn,.calc-result,.fuel-live-status){grid-column:1!important}
  body.page-calculator-v2586 #calculator .fuel-live-status{align-items:flex-start!important}
}

@media(prefers-reduced-motion:reduce){
  .profile-stats-v2659>a,.profile-stats-v2659>button{transition:none!important}
}
