:root{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;
  color:#f5f7fb;background:#080b10;font-synthesis:none;text-rendering:optimizeLegibility;
  --bg:#080b10;--panel:#0f1319;--panel2:#141a22;--line:rgba(255,255,255,.075);
  --muted:#8d97a7;--text:#f6f8fc;--blue:#4b8cff;--green:#62dc8b;--amber:#f3bd58;--red:#ff6d6d;
}
*{box-sizing:border-box}html,body,#app{min-height:100%}body{margin:0;background:radial-gradient(circle at 50% -18%,#162034 0,#080b10 33rem);color:var(--text)}
button{font:inherit;color:inherit}button:focus-visible{outline:2px solid #8ab8ff;outline-offset:2px}
svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.shell{min-height:100vh;width:min(100%,1500px);margin:0 auto;padding:env(safe-area-inset-top) 18px calc(96px + env(safe-area-inset-bottom))}
.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.topbar h1{margin:2px 0 0;font-size:clamp(30px,5vw,42px);letter-spacing:-.035em}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:.17em;color:var(--muted)}
.header-actions{display:flex;gap:8px}.icon-btn{width:44px;height:44px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.035);display:grid;place-items:center;cursor:pointer}.icon-btn svg{width:20px;height:20px}
.vehicle-grid{display:grid;grid-template-columns:1fr;gap:14px}
.vehicle-card{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));padding:0;text-align:left;cursor:pointer;box-shadow:0 16px 45px rgba(0,0,0,.14)}
.vehicle-photo{height:205px;position:relative;overflow:hidden;background:#090b0f}.vehicle-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(7,9,13,.82))}
.vehicle-photo img{width:100%;height:100%;object-fit:cover;display:block}
.vehicle-status{position:absolute;z-index:2;left:14px;bottom:13px;padding:6px 9px;border-radius:999px;background:rgba(31,105,59,.72);border:1px solid rgba(105,234,144,.13);font-size:10px;font-weight:800;color:#aaf2c0;backdrop-filter:blur(9px)}
.vehicle-body{padding:15px}.vehicle-heading{display:flex;align-items:center;justify-content:space-between}.vehicle-year{font-size:12px;color:#aab2bf}.vehicle-heading h2{margin:2px 0 0;font-size:25px;letter-spacing:-.025em}.chevron{font-size:26px;color:#596477}
.vehicle-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px}.vehicle-stats div{min-width:0}.vehicle-stats span,.vehicle-stats strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vehicle-stats span{font-size:10px;color:var(--muted);margin-bottom:5px}.vehicle-stats strong{font-size:12px}
.add-vehicle-card{min-height:150px;border:1px dashed rgba(130,153,189,.24);border-radius:22px;background:rgba(255,255,255,.015);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#c5cfde;cursor:pointer}.add-vehicle-card small{color:var(--muted)}.add-vehicle-icon{width:44px;height:44px;border-radius:15px;background:#14213a;color:#75a6ff;display:grid;place-items:center;margin-bottom:4px}.add-vehicle-icon svg{width:22px;height:22px}
.overview-panel,.activity-panel{margin-top:18px;border:1px solid var(--line);background:rgba(255,255,255,.025);border-radius:20px;overflow:hidden}.panel-title{padding:15px 17px;border-bottom:1px solid var(--line);font-size:11px;font-weight:800;letter-spacing:.08em}.overview-grid{display:grid;grid-template-columns:repeat(2,1fr)}.overview-metric{display:flex;align-items:center;gap:11px;padding:16px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.metric-icon{width:38px;height:38px;border-radius:13px;background:#101d31;color:#6fa5ff;display:grid;place-items:center}.metric-icon svg{width:20px;height:20px}.overview-metric small,.overview-metric strong{display:block}.overview-metric small{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.overview-metric strong{margin-top:3px;font-size:18px}
.section-row{display:flex;justify-content:space-between;align-items:end;gap:12px;padding:16px}.section-row h2{margin:2px 0 0;font-size:21px;letter-spacing:-.025em}.text-btn{border:0;background:transparent;color:#6fa5ff;cursor:pointer}.activity-list{border-top:1px solid var(--line)}.activity-row{width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;padding:12px 14px;display:grid;grid-template-columns:34px minmax(0,1fr) auto auto 14px;gap:10px;align-items:center;text-align:left;cursor:pointer}.activity-row:last-child{border-bottom:0}.activity-type{width:32px;height:32px;border-radius:11px;background:#18202b;display:grid;place-items:center;color:#7fa9f9}.activity-type svg{width:17px;height:17px}.type-modification{color:#f3bd58}.type-repair{color:#ff7777}.activity-main{min-width:0}.activity-main strong,.activity-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-main strong{font-size:12px}.activity-main small{font-size:10px;color:var(--muted);margin-top:3px}.activity-date,.activity-mileage{font-size:10px;color:#b4bdca;white-space:nowrap}.fab{position:fixed;right:max(20px,calc((100vw - 1500px)/2 + 20px));bottom:calc(20px + env(safe-area-inset-bottom));width:60px;height:60px;border:0;border-radius:50%;background:linear-gradient(145deg,#2877ff,#6657ff);display:grid;place-items:center;box-shadow:0 15px 42px rgba(55,102,255,.36);cursor:pointer;z-index:8}.fab svg{width:28px;height:28px}
.vehicle-topbar{height:78px}.center-title{text-align:center;display:flex;flex-direction:column}.center-title small{color:var(--muted);font-size:10px}.center-title strong{font-size:15px}
.vehicle-hero{height:245px;border:1px solid var(--line);border-radius:22px;position:relative;overflow:hidden}.vehicle-hero img{width:100%;height:100%;object-fit:cover}.hero-gradient{position:absolute;inset:0;background:linear-gradient(180deg,transparent 42%,rgba(4,6,9,.88))}.hero-copy{position:absolute;left:18px;bottom:17px}.hero-copy span{font-size:12px;color:#ccd2dc}.hero-copy h1{margin:2px 0 0;font-size:34px;letter-spacing:-.035em}
.metric-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.metric-strip>div{min-width:0;border:1px solid var(--line);background:#0e131a;border-radius:15px;padding:12px}.metric-strip svg{width:17px;height:17px;color:#6fa5ff;margin-bottom:7px}.metric-strip span,.metric-strip strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metric-strip span{font-size:9px;color:var(--muted)}.metric-strip strong{font-size:12px;margin-top:3px}
.tabs{display:flex;gap:4px;overflow-x:auto;padding:16px 0 7px;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs button{border:0;background:transparent;color:#7f8999;padding:9px 11px;border-radius:10px;white-space:nowrap;cursor:pointer}.tabs button.active{background:#151d29;color:white}
.tab-content{padding-top:7px}.callout{border:1px solid rgba(243,189,88,.18);background:rgba(243,189,88,.055);border-radius:17px;padding:16px;display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.callout h2{margin:3px 0 0;font-size:17px}.callout-count{width:39px;height:39px;border-radius:13px;background:rgba(243,189,88,.12);color:#ffd985;display:grid;place-items:center;font-weight:800}
.detail-grid{display:grid;gap:12px}.info-card{border:1px solid var(--line);background:#0e131a;border-radius:18px;padding:16px}.info-card dl{margin:13px 0 0}.info-card dl div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line)}.info-card dt{font-size:11px;color:var(--muted)}.info-card dd{margin:0;font-size:11px;text-align:right;word-break:break-word}.record-section{margin-top:13px}.record-section .section-row{padding-left:1px;padding-right:1px}.record-list{display:grid;gap:9px}.record-card{border:1px solid var(--line);background:#0e131a;border-radius:16px;padding:13px;display:flex;gap:11px}.record-icon{width:36px;height:36px;flex:none;border-radius:11px;background:#172131;color:#78a7ff;display:grid;place-items:center}.record-icon svg{width:18px;height:18px}.record-copy{min-width:0;flex:1}.record-title-line{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.record-title-line strong{font-size:12px;line-height:1.35}.status{flex:none;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:800}.status.complete{background:rgba(93,218,139,.1);color:#7ee6a3}.status.waiting{background:rgba(243,189,88,.1);color:#ffd680}.record-sub{font-size:10px;color:var(--muted);margin-top:4px}.record-copy p{font-size:10px;color:#b6bfcb;line-height:1.45;margin:8px 0}.record-footer{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#909bab;margin-top:8px}.record-footer strong{color:#e6ebf2;white-space:nowrap}.expense-summary{border:1px solid var(--line);background:linear-gradient(135deg,#111a29,#0d1117);border-radius:19px;padding:19px;display:flex;flex-direction:column}.expense-summary small{color:var(--muted);font-size:9px;letter-spacing:.12em}.expense-summary strong{font-size:31px;margin-top:4px}.expense-summary span{font-size:10px;color:#8f9aaa;margin-top:4px}.empty-state{min-height:180px;border:1px dashed rgba(255,255,255,.1);border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;color:#aab4c2;gap:8px}.empty-state svg{width:29px;height:29px;color:#6fa5ff}.empty-state span{font-size:11px;color:var(--muted);max-width:320px}
.sheet-backdrop{position:fixed;z-index:30;inset:0;background:rgba(0,0,0,.62);display:flex;align-items:flex-end;justify-content:center;backdrop-filter:blur(5px)}.sheet{width:min(100%,720px);border:1px solid var(--line);border-bottom:0;border-radius:26px 26px 0 0;background:#0e131a;padding:9px 17px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -22px 70px rgba(0,0,0,.4)}.sheet-handle{width:40px;height:5px;border-radius:999px;background:#343d49;margin:0 auto 4px}.sheet .section-row{padding-left:0;padding-right:0}.add-options{display:grid;gap:9px}.add-options button{border:1px solid var(--line);background:#141a22;border-radius:15px;padding:13px;display:flex;align-items:center;gap:11px;text-align:left;cursor:pointer}.option-icon{width:40px;height:40px;border-radius:12px;background:#172339;color:#7ca9ff;display:grid;place-items:center}.option-icon svg{width:20px;height:20px}.add-options button>span:nth-child(2){display:flex;flex:1;flex-direction:column}.add-options strong{font-size:12px}.add-options small{font-size:10px;color:var(--muted);margin-top:3px}.sheet-note{font-size:10px;line-height:1.5;color:#6e7888;margin:13px 1px 0}
@media(max-width:620px){.activity-date{display:none}.activity-row{grid-template-columns:34px minmax(0,1fr) auto 14px}.vehicle-stats strong{font-size:11px}}
@media(min-width:700px){.shell{padding-left:28px;padding-right:28px}.vehicle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vehicle-photo{height:215px}.overview-grid{grid-template-columns:repeat(4,1fr)}.overview-metric{border-bottom:0}.detail-grid{grid-template-columns:1fr 1fr}.vehicle-hero{height:320px}.metric-strip>div{padding:15px}.metric-strip strong{font-size:14px}}
@media(min-width:1100px){.shell{padding-left:32px;padding-right:32px}.vehicle-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.add-vehicle-card{grid-column:span 1}.vehicle-photo{height:220px}.vehicle-hero{height:390px}.tab-content{max-width:1120px;margin:0 auto}.record-card{padding:14px}.activity-main strong{font-size:13px}}


/* Sprint 2 */
.shell{padding-bottom:calc(150px + env(safe-area-inset-bottom))}
.bottom-nav{
  position:fixed;z-index:15;left:50%;transform:translateX(-50%);bottom:0;
  width:min(100%,1500px);display:grid;grid-template-columns:repeat(4,1fr);
  background:rgba(8,11,16,.94);backdrop-filter:blur(18px);border-top:1px solid var(--line);
  padding:8px 12px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav button{border:0;background:transparent;color:#7d8796;display:flex;flex-direction:column;align-items:center;gap:4px;padding:7px;border-radius:12px;cursor:pointer}
.bottom-nav button svg{width:20px;height:20px}.bottom-nav button span{font-size:9px}.bottom-nav button.active{color:#5f9cff;background:rgba(72,126,255,.08)}
.fab{bottom:calc(82px + env(safe-area-inset-bottom))}
.vehicle-stats strong{white-space:normal;line-height:1.15;min-height:27px}
.page-header{padding:24px 0 14px}.page-header h1{margin:3px 0 0;font-size:34px;letter-spacing:-.035em}
.search-row{height:48px;border:1px solid var(--line);border-radius:15px;background:#10151d;display:flex;align-items:center;gap:10px;padding:0 13px;margin-bottom:12px}.search-row svg{width:18px;height:18px;color:#768398}.search-row input{flex:1;border:0;outline:0;background:transparent;color:#f6f8fb;font:inherit;min-width:0}.search-row input::placeholder{color:#667181}.search-row.large{height:54px;margin-top:10px}
.filter-row{display:flex;gap:7px;overflow-x:auto;padding:1px 0 12px;scrollbar-width:none}.filter-row::-webkit-scrollbar{display:none}.filter-row button{border:1px solid var(--line);background:#10151d;color:#8d97a7;padding:8px 11px;border-radius:999px;font-size:10px;white-space:nowrap;cursor:pointer}.filter-row button.active{background:#17305d;color:#92b9ff;border-color:rgba(96,149,255,.24)}
.global-records{margin-top:0}.record-card.clickable{width:100%;text-align:left;cursor:pointer}.record-notes{display:block;font-size:10px;color:#b6bfcb;line-height:1.45;margin:8px 0}
.expense-hero{border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,#111a29,#0d1117);padding:22px;display:flex;flex-direction:column}.expense-hero small{color:var(--muted);font-size:9px;letter-spacing:.12em}.expense-hero strong{font-size:34px;margin-top:5px}.expense-hero span{font-size:10px;color:#8f9aaa;margin-top:4px}
.spend-grid{display:grid;grid-template-columns:1fr;gap:9px;margin-top:12px}.spend-grid button{border:1px solid var(--line);border-radius:16px;background:#0e131a;padding:14px;text-align:left;display:grid;grid-template-columns:1fr auto;gap:3px 12px;cursor:pointer}.spend-grid span{font-size:9px;color:var(--muted);grid-column:1}.spend-grid strong{font-size:14px;grid-column:1}.spend-grid em{grid-column:2;grid-row:1/3;align-self:center;font-style:normal;font-weight:800;color:#dfe6ef}
.record-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:8px 0 14px}.record-detail-head h2{margin:3px 0 0;font-size:22px;letter-spacing:-.025em}
.detail-vehicle-chip{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:15px;padding:9px;background:#121820}.detail-vehicle-chip img{width:58px;height:40px;object-fit:cover;border-radius:10px}.detail-vehicle-chip span{display:flex;flex-direction:column}.detail-vehicle-chip small{color:var(--muted);font-size:9px}.detail-vehicle-chip strong{font-size:12px}
.record-detail-list{margin:12px 0 0;border:1px solid var(--line);border-radius:16px;overflow:hidden}.record-detail-list>div{display:flex;justify-content:space-between;gap:14px;padding:12px;border-bottom:1px solid var(--line)}.record-detail-list>div:last-child{border-bottom:0}.record-detail-list dt{color:var(--muted);font-size:10px}.record-detail-list dd{margin:0;text-align:right;font-size:10px;max-width:70%;word-break:break-word}.record-detail-list .wide{display:block}.record-detail-list .wide dd{text-align:left;max-width:none;margin-top:7px;line-height:1.5}
.search-results{display:grid;gap:8px;max-height:52vh;overflow:auto}.search-hint{padding:24px 4px;color:#768292;font-size:11px;text-align:center}

@media(min-width:700px){
  .spend-grid{grid-template-columns:repeat(2,1fr)}
  .bottom-nav button{flex-direction:row;justify-content:center;gap:7px}
  .bottom-nav button span{font-size:10px}
}
@media(min-width:1100px){
  .bottom-nav{width:auto;left:50%;bottom:12px;border:1px solid var(--line);border-radius:18px;padding:6px 8px;background:rgba(12,16,23,.92)}
  .bottom-nav button{min-width:112px}
  .fab{bottom:92px}
  .spend-grid{grid-template-columns:repeat(4,1fr)}
}


/* Sprint 3 */
.manual-sheet{max-height:92vh;overflow:auto}
.manual-form{display:grid;grid-template-columns:1fr;gap:11px;padding-bottom:4px}
.manual-form label{display:flex;flex-direction:column;gap:6px}
.manual-form label>span{font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.manual-form input,.manual-form select,.manual-form textarea{
  width:100%;border:1px solid var(--line);background:#121820;color:#f6f8fb;border-radius:12px;padding:12px;outline:0;font:inherit;font-size:12px
}
.manual-form input:focus,.manual-form select:focus,.manual-form textarea:focus{border-color:rgba(91,145,255,.6);box-shadow:0 0 0 3px rgba(75,140,255,.08)}
.manual-form textarea{resize:vertical}
.primary-btn{border:0;border-radius:14px;background:linear-gradient(135deg,#2d76ff,#6056ff);color:white;padding:14px;font-weight:800;cursor:pointer;margin-top:3px}
.record-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.secondary-btn,.danger-btn{border:1px solid var(--line);border-radius:12px;padding:11px;background:#151b24;font-weight:700;cursor:pointer}
.danger-btn{color:#ff8a8a;border-color:rgba(255,90,90,.2);background:rgba(255,70,70,.05)}
.toast{position:fixed;z-index:80;left:50%;bottom:calc(108px + env(safe-area-inset-bottom));transform:translate(-50%,20px);opacity:0;background:#151c27;border:1px solid var(--line);box-shadow:0 14px 45px rgba(0,0,0,.4);padding:11px 15px;border-radius:12px;color:#eaf0f8;font-size:11px;transition:.22s ease;white-space:nowrap;max-width:90vw;overflow:hidden;text-overflow:ellipsis}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:700px){
  .manual-form{grid-template-columns:1fr 1fr}
  .manual-form .wide,.manual-form .primary-btn{grid-column:1/-1}
}


/* Sprint 4: smart-search polish */
.search-row input::placeholder{font-size:11px}
.smart-search-note{font-size:9px;color:#697587;margin:-3px 2px 11px}


/* Sprint 5: iPhone form stability, vendor autocomplete, vehicle menu */
html{-webkit-text-size-adjust:100%}
button,input,select,textarea{touch-action:manipulation}

/* iOS Safari zooms focused form controls below 16px. Keep controls at 16px on mobile. */
@media(max-width:699px){
  .manual-form input,
  .manual-form select,
  .manual-form textarea,
  .search-row input{
    font-size:16px;
  }
  .manual-sheet{
    max-height:calc(100dvh - env(safe-area-inset-top));
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .sheet-backdrop{
    overscroll-behavior:none;
  }
}

/* Vendor / performed-by suggestions */
.vendor-field{position:relative}
.vendor-suggestions{
  position:absolute;
  z-index:70;
  left:0;
  right:0;
  top:calc(100% + 4px);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:#121820;
  box-shadow:0 16px 40px rgba(0,0,0,.45);
}
.vendor-suggestions button{
  width:100%;
  border:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  color:#f6f8fb;
  padding:12px;
  text-align:left;
  font-size:14px;
}
.vendor-suggestions button:last-child{border-bottom:0}
.vendor-suggestions button:active{background:#1b2430}

/* Working top-right vehicle menu */
.vehicle-menu-list{
  display:grid;
  gap:8px;
  margin-bottom:12px;
}
.vehicle-menu-list button{
  width:100%;
  border:1px solid var(--line);
  background:#141a22;
  border-radius:13px;
  padding:13px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  text-align:left;
}
.vehicle-menu-list button span{color:#667489;font-size:22px}
.edit-vehicle-disabled{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#9aa5b5;
}
.edit-vehicle-disabled small{
  color:#667181;
  font-weight:500;
}


/* Sprint 5 hotfix: true modal background lock */
html.modal-open,
body.modal-open{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}

body.modal-open{
  position:fixed !important;
  left:0;
  right:0;
  width:100%;
}

.sheet-backdrop{
  position:fixed;
  inset:0;
  overflow:hidden;
  touch-action:none;
}

.sheet{
  max-height:calc(100dvh - max(env(safe-area-inset-top), 8px));
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}

.manual-sheet{
  max-height:calc(100dvh - max(env(safe-area-inset-top), 8px));
}

@media(max-width:699px){
  .sheet{
    padding-bottom:calc(24px + env(safe-area-inset-bottom));
  }
}


/* Sprint 6: interactive surfaces */
.overview-metric{
  position:relative;
  width:100%;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.overview-copy{display:flex;flex-direction:column}
.overview-metric .metric-chevron{
  margin-left:auto;
  font-size:22px;
  color:#566174;
}
.overview-metric:active,
.activity-row:active,
.vehicle-card:active,
.document-grid button:active,
.vehicle-picker button:active,
.spend-grid button:active{
  transform:scale(.992);
  background-color:rgba(255,255,255,.025);
}
.vehicle-picker,
.document-grid{display:grid;gap:9px}
.vehicle-picker button,
.document-grid button{
  width:100%;
  border:1px solid var(--line);
  background:#121820;
  border-radius:15px;
  padding:9px;
  display:grid;
  grid-template-columns:72px minmax(0,1fr) 18px;
  gap:10px;
  align-items:center;
  text-align:left;
  cursor:pointer;
}
.vehicle-picker img,
.document-grid img{
  width:72px;
  height:50px;
  border-radius:11px;
  object-fit:cover;
}
.vehicle-picker span:nth-child(2),
.document-grid span:nth-child(2){
  display:flex;
  flex-direction:column;
  min-width:0;
}
.vehicle-picker small,
.document-grid small{font-size:9px;color:var(--muted)}
.vehicle-picker strong,
.document-grid strong{font-size:12px;margin-top:2px}
.vehicle-picker em,
.document-grid em{font-style:normal;font-size:9px;color:#748092;margin-top:3px}
.inline-action{
  margin-top:8px;
  border:1px solid rgba(90,145,255,.24);
  background:rgba(70,120,255,.08);
  color:#83adff;
  border-radius:10px;
  padding:9px 12px;
  font-size:10px;
}
.edit-vehicle-info small{color:#758195}


/* Sprint 6 Fix: vehicle metric actions + future inputs disabled */
.metric-strip > button.vehicle-metric{
  position:relative;
  min-width:0;
  border:1px solid var(--line);
  background:#0e131a;
  border-radius:15px;
  padding:12px;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.metric-strip > button.vehicle-metric svg{
  width:17px;height:17px;color:#6fa5ff;margin-bottom:7px;
}
.metric-strip > button.vehicle-metric span,
.metric-strip > button.vehicle-metric strong{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.metric-strip > button.vehicle-metric span{font-size:9px;color:var(--muted)}
.metric-strip > button.vehicle-metric strong{font-size:12px;margin-top:3px}
.metric-strip > button.vehicle-metric em{
  position:absolute;right:9px;top:8px;font-style:normal;color:#526077;font-size:16px;
}
.metric-strip > button.vehicle-metric:active{transform:scale(.985);background:#121923}

.mileage-summary{
  border:1px solid var(--line);
  background:linear-gradient(135deg,#111a29,#0d1117);
  border-radius:17px;
  padding:16px;
  display:flex;
  flex-direction:column;
  margin-bottom:10px;
}
.mileage-summary small{font-size:9px;color:var(--muted);letter-spacing:.1em}
.mileage-summary strong{font-size:27px;margin-top:4px}
.mileage-summary span{font-size:9px;color:#778395;margin-top:3px}

.add-options button.disabled-option{
  opacity:.45;
  cursor:not-allowed;
  transform:none !important;
}
.add-options button.disabled-option .option-icon{color:#657184}
.soon-badge{
  margin-left:auto;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  color:#7a8696;
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 6px;
}


/* Sprint 7: classification, install completion, Excel export */
.clickable-callout{width:100%;text-align:left;cursor:pointer}
.export-excel-card{width:100%;margin-top:12px;border:1px solid rgba(91,145,255,.19);background:linear-gradient(135deg,rgba(57,104,193,.12),rgba(18,24,32,.92));border-radius:17px;padding:14px;display:grid;grid-template-columns:38px minmax(0,1fr) 18px;gap:11px;align-items:center;color:inherit;text-align:left;cursor:pointer}
.export-excel-card svg{width:22px;height:22px;color:#71a4ff}.export-excel-card span:nth-child(2){display:flex;flex-direction:column}.export-excel-card small{font-size:8px;color:#76a8ff;letter-spacing:.12em}.export-excel-card strong{font-size:12px;margin-top:2px}.export-excel-card em{font-size:9px;color:var(--muted);font-style:normal;margin-top:3px}
.type-pill{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:800}.type-pill-maintenance{background:rgba(86,151,255,.11);color:#8cb8ff}.type-pill-modification{background:rgba(243,189,88,.12);color:#ffd578}.type-pill-repair{background:rgba(255,102,102,.11);color:#ff9999}.type-pill-purchase{background:rgba(171,118,255,.11);color:#c7a6ff}
.mini-link{border:0;background:transparent;color:#71a4ff;font-size:9px;margin-left:5px;padding:2px;cursor:pointer}
.classification-suggestion{width:100%;margin-top:11px;border:1px solid rgba(243,189,88,.2);background:rgba(243,189,88,.055);border-radius:14px;padding:11px;display:flex;justify-content:space-between;align-items:center;text-align:left;color:inherit;cursor:pointer}.classification-suggestion span{display:flex;flex-direction:column}.classification-suggestion small{font-size:8px;color:#e5b553;letter-spacing:.1em}.classification-suggestion strong{font-size:12px;margin-top:2px}.classification-suggestion em{font-size:9px;color:#9aa5b4;font-style:normal;margin-top:2px}.classification-suggestion b{font-size:10px;color:#ffd477}
.type-choice-list{display:grid;gap:8px}.type-choice-list button{border:1px solid var(--line);background:#121820;border-radius:13px;padding:12px;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;text-align:left;color:inherit}.type-choice-list button.active{border-color:rgba(91,145,255,.35);background:rgba(67,113,198,.08)}.type-choice-list button>span{font-size:9px;color:var(--muted)}.type-choice-list button>b{font-size:9px;color:#6e7b8f}
.type-suggestion-text{font-size:9px!important;color:#6f9ce8!important;text-transform:none!important;letter-spacing:0!important}
.awaiting-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 2px 10px}.awaiting-toolbar span{font-size:9px;color:var(--muted)}.awaiting-select-list{display:grid;gap:8px;max-height:55vh;overflow:auto}.awaiting-select-row{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:stretch;border:1px solid var(--line);border-radius:14px;background:#10161e;overflow:hidden}.awaiting-select-row>label{display:grid;place-items:center;border-right:1px solid var(--line);cursor:pointer}.awaiting-select-row input{width:18px;height:18px;accent-color:#4b8cff}.awaiting-record-open{border:0;background:transparent;color:inherit;padding:11px;display:flex;justify-content:space-between;gap:10px;text-align:left}.awaiting-record-open>span:first-child{display:flex;flex-direction:column;min-width:0}.awaiting-record-open small{font-size:8px;color:var(--muted)}.awaiting-record-open strong{font-size:11px;margin-top:2px}.awaiting-record-open em{font-size:8px;color:#e4b658;font-style:normal;margin-top:3px}.complete-selected{width:100%;margin-top:12px}.complete-selected:disabled{opacity:.35;cursor:not-allowed}.install-type-list{display:grid;gap:9px}.install-type-list label{border:1px solid var(--line);border-radius:12px;padding:10px;background:#10161e}.install-type-list label>small{font-size:8px;color:#e0b453;text-transform:none;letter-spacing:0}.export-menu-item{color:#8db7ff!important}


/* Sprint 8: installation project component checklist */
.project-progress-card{width:100%;border:1px solid rgba(228,182,88,.34);background:rgba(228,182,88,.06);border-radius:15px;padding:13px 14px;color:inherit;display:flex;align-items:center;justify-content:space-between;text-align:left;margin:12px 0}.project-progress-card span{display:flex;flex-direction:column;gap:2px}.project-progress-card small{font-size:8px;letter-spacing:.14em;color:#e4b658}.project-progress-card strong{font-size:14px}.project-progress-card em{font-size:9px;color:var(--muted);font-style:normal}.project-progress-card>b{color:#e4b658;font-size:14px}.component-progress{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:14px;padding:13px 14px;background:#10161e;margin-bottom:12px}.component-progress span{display:flex;flex-direction:column}.component-progress strong{font-size:18px}.component-progress small{font-size:9px;color:var(--muted)}.component-progress>b{font-size:17px;color:#6ea4ff}.component-list{display:grid;gap:8px}.component-row{display:grid;grid-template-columns:48px minmax(0,1fr) 22px;align-items:center;border:1px solid var(--line);border-radius:14px;background:#10161e;min-height:62px;overflow:hidden}.component-row.installed{background:rgba(35,134,84,.09);border-color:rgba(59,183,111,.26)}.component-check{align-self:stretch;border:0;border-right:1px solid var(--line);background:transparent;display:grid;place-items:center}.component-check span{width:23px;height:23px;border:2px solid #536170;border-radius:7px;display:grid;place-items:center;color:white;font-size:14px}.component-row.installed .component-check span{background:#248858;border-color:#35a66e}.component-info{border:0;background:transparent;color:inherit;text-align:left;padding:10px 12px;display:flex;flex-direction:column;gap:3px}.component-info strong{font-size:11px}.component-info small{font-size:8px;color:var(--muted)}.component-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px}.component-actions .secondary-btn{flex:1}.component-multi-list{display:grid;gap:8px;margin-bottom:12px}.component-multi-list label{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;padding:13px;background:#10161e;font-size:11px}.component-multi-list input{width:20px;height:20px;accent-color:#4b8cff}.continue-components{width:100%}.continue-components:disabled{opacity:.35}.component-completion-form textarea{min-height:90px}


/* Sprint 12 Fix 2: awaiting-install vehicle pill only */
.vehicle-status.vehicle-status-awaiting{
  background:#f3bd58;
  border-color:#f3bd58;
  color:#17120a;
}


/* Sprint 13: Maintenance Due Intelligence */
.maintenance-intel-card{margin:12px 0;border:1px solid var(--line);background:#0d1219;border-radius:18px;padding:14px}
.maintenance-intel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.maintenance-intel-head h2{font-size:18px;margin:3px 0 0}
.maintenance-due-list{display:grid;gap:7px}
.maintenance-due-row{width:100%;border:1px solid var(--line);background:#10161e;border-radius:13px;padding:11px;display:grid;grid-template-columns:minmax(0,1fr) auto 12px;gap:9px;align-items:center;color:inherit;text-align:left}
.maintenance-due-row>span{display:flex;flex-direction:column;min-width:0}.maintenance-due-row strong{font-size:11px}.maintenance-due-row small{font-size:8px;color:var(--muted);margin-top:3px}
.maintenance-due-row b{font-size:7px;letter-spacing:.08em;padding:5px 7px;border-radius:999px;background:rgba(42,139,86,.14);color:#76d69c}
.maintenance-due-row em{font-style:normal;color:#647188}.maintenance-due-row.due{border-color:rgba(243,189,88,.28)}.maintenance-due-row.due b{background:rgba(243,189,88,.13);color:#f3bd58}
.maintenance-due-row.overdue{border-color:rgba(255,102,102,.28)}.maintenance-due-row.overdue b{background:rgba(255,102,102,.12);color:#ff8e8e}
.interval-list{display:grid;gap:9px;margin:12px 0}.interval-row{border:1px solid var(--line);background:#10161e;border-radius:14px;padding:12px;display:grid;grid-template-columns:1fr 90px 82px;gap:8px;align-items:end}
.interval-row>strong{font-size:10px;align-self:center}.interval-row label{display:flex;flex-direction:column;gap:5px}.interval-row label span{font-size:7px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}
.interval-row input{width:100%;border:1px solid var(--line);background:#0c1117;color:#f6f8fb;border-radius:9px;padding:8px;font-size:10px}
@media(max-width:420px){.interval-row{grid-template-columns:1fr 76px 68px}}


/* Sprint 13 Fix 1: brand-aware maintenance metadata */
.maintenance-product{color:#c1cad7!important}
.maintenance-basis{color:#667489!important;font-style:italic}
.interval-service-name{display:flex;flex-direction:column;gap:3px;align-self:center;min-width:0}
.interval-service-name strong{font-size:10px}
.interval-service-name small{font-size:7px;color:var(--muted);line-height:1.25}


/* Sprint 14: Garage-wide maintenance queue */
.maintenance-queue-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.maintenance-queue-summary>div{border:1px solid var(--line);background:#10161e;border-radius:13px;padding:10px;display:flex;flex-direction:column;gap:4px}
.maintenance-queue-summary span{font-size:7px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.maintenance-queue-summary strong{font-size:18px}
.maintenance-queue-summary .queue-overdue strong{color:#ff8e8e}
.maintenance-queue-summary .queue-due strong{color:#f3bd58}
.maintenance-queue-list{display:grid;gap:8px;margin-top:8px}
.maintenance-queue-row{width:100%;display:grid;grid-template-columns:86px minmax(0,1fr) auto 10px;gap:8px;align-items:center;border:1px solid var(--line);background:#10161e;color:inherit;border-radius:14px;padding:11px;text-align:left}
.maintenance-queue-row.overdue{border-color:rgba(255,102,102,.3)}
.maintenance-queue-row.due{border-color:rgba(243,189,88,.3)}
.maintenance-queue-vehicle{font-size:8px;color:#b8c1cf;line-height:1.25}
.maintenance-queue-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.maintenance-queue-main strong{font-size:10px}
.maintenance-queue-main small{font-size:7px;color:var(--muted);white-space:normal}
.maintenance-queue-main .queue-product{color:#c1cad7}
.maintenance-queue-main .queue-basis{color:#667489;font-style:italic}
.maintenance-queue-row b{font-size:7px;letter-spacing:.07em;padding:5px 7px;border-radius:999px;background:rgba(42,139,86,.14);color:#76d69c}
.maintenance-queue-row.due b{background:rgba(243,189,88,.13);color:#f3bd58}
.maintenance-queue-row.overdue b{background:rgba(255,102,102,.12);color:#ff8e8e}
.maintenance-queue-row em{font-style:normal;color:#647188}


/* Sprint 14 Fix 1: prevent iOS/PWA focus zoom on mobile form controls */
@media (max-width: 768px){
  input,
  select,
  textarea,
  .interval-row input,
  .sheet input,
  .sheet select,
  .sheet textarea{
    font-size:16px !important;
  }
}
@supports (-webkit-touch-callout: none){
  input,
  select,
  textarea{
    font-size:16px !important;
  }
  button,
  [role="button"],
  .clickable-callout,
  .overview-metric,
  .maintenance-due-row,
  .maintenance-queue-row{
    touch-action:manipulation;
  }
}


/* Sprint 15: Service Forecasting */
.overview-copy em{
  display:block;
  margin-top:3px;
  font-size:7px;
  line-height:1.2;
  font-style:normal;
  color:#768296;
  white-space:normal;
}
.overview-metric.metric-due{
  border-color:rgba(243,189,88,.34);
}
.overview-metric.metric-due .metric-icon,
.overview-metric.metric-due .overview-copy strong{
  color:#f3bd58;
}
.overview-metric.metric-overdue{
  border-color:rgba(255,102,102,.38);
}
.overview-metric.metric-overdue .metric-icon,
.overview-metric.metric-overdue .overview-copy strong{
  color:#ff8e8e;
}
.overview-metric.metric-good[data-overview-action="maintenance"] .metric-icon{
  color:#76d69c;
}
.maintenance-forecast,
.queue-forecast{
  color:#9fb5d3 !important;
  font-weight:600;
}
.maintenance-due-row.good b{
  background:rgba(42,139,86,.14);
  color:#76d69c;
}


/* Sprint 16: Live Odometer + Smart Service Completion */
.update-odometer-btn{
  margin-top:14px;
  width:100%;
}
.odometer-current{
  margin:8px 0 18px;
  padding:18px;
  border:1px solid #202938;
  border-radius:20px;
  background:#0d131c;
}
.odometer-current small{
  display:block;
  color:#7f8ba0;
  font-size:11px;
  letter-spacing:.16em;
  font-weight:800;
}
.odometer-current strong{
  display:block;
  margin-top:6px;
  font-size:30px;
  line-height:1;
}


/* Sprint 17: Missing Service Baselines */
.overview-metric.metric-baseline{
  border-color:rgba(105,156,255,.32);
}
.overview-metric.metric-baseline .metric-icon,
.overview-metric.metric-baseline .overview-copy strong{
  color:#8fb7ff;
}
.maintenance-due-row.baseline{
  border-color:rgba(105,156,255,.25);
}
.maintenance-due-row.baseline b{
  background:rgba(105,156,255,.12);
  color:#8fb7ff;
}
.maintenance-queue-row.baseline{
  border-color:rgba(105,156,255,.25);
}
.maintenance-queue-row.baseline b{
  background:rgba(105,156,255,.12);
  color:#8fb7ff;
}
.maintenance-queue-summary{
  grid-template-columns:repeat(4,1fr);
}
.maintenance-queue-summary .queue-baseline strong{
  color:#8fb7ff;
}
@media(max-width:430px){
  .maintenance-queue-summary{
    grid-template-columns:repeat(2,1fr);
  }
}


/* Sprint 17 Fix 1: Fluid-aware maintenance intelligence */
.maintenance-fluid,
.queue-fluid{
  color:#d6e4ff !important;
}
.maintenance-fluid strong{
  color:#f3f6fa;
}
.maintenance-fluid.required,
.queue-fluid{
  font-weight:600;
}
.maintenance-fluid-policy,
.queue-fluid-policy{
  color:#8fa4c3 !important;
  font-style:italic;
  line-height:1.3;
}

/* Sprint 18: Service History Intelligence */
.maintenance-history-summary{color:#7f8da3!important}.service-history-hero{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.service-history-hero>div{padding:11px;border:1px solid var(--line);border-radius:14px;background:#10161e}.service-history-hero small,.service-history-forecast small{display:block;color:var(--muted);font-size:7px;letter-spacing:.09em}.service-history-hero strong{display:block;margin-top:5px;font-size:11px}.service-history-hero.overdue>div:first-child strong{color:#ff8e8e}.service-history-hero.due>div:first-child strong{color:#f3bd58}.service-history-hero.good>div:first-child strong{color:#76d69c}.service-history-hero.baseline>div:first-child strong{color:#8fb7ff}.service-history-forecast{display:flex;flex-direction:column;gap:5px;padding:14px;margin:8px 0 16px;border:1px solid var(--line);border-radius:16px;background:#0d131c}.service-history-forecast strong{font-size:12px}.service-history-forecast span{font-size:8px;color:#8fa0b8;line-height:1.35}.service-history-list{display:grid;gap:8px}.service-history-record{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) 12px;gap:9px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:14px;background:#10161e;color:inherit;text-align:left}.history-index{font-size:7px;color:#8492a8;letter-spacing:.06em}.history-main{display:flex;flex-direction:column;gap:3px;min-width:0}.history-main strong{font-size:10px}.history-main small{font-size:8px;color:var(--muted)}.history-main .history-notes{color:#9cacbf;white-space:normal}.service-history-record em{font-style:normal;color:#647188}.service-history-add{width:100%;margin-top:14px}


/* Sprint 19: Maintenance Planner */
.planner-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin:12px 0 16px;
}
.planner-summary>div{
  padding:10px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#10161e;
}
.planner-summary small{
  display:block;
  min-height:18px;
  color:var(--muted);
  font-size:6px;
  line-height:1.2;
  letter-spacing:.06em;
}
.planner-summary strong{
  display:block;
  margin-top:4px;
  font-size:18px;
}
.planner-summary .now strong{color:#ff8e8e}
.planner-summary .soon strong{color:#f3bd58}
.planner-summary .baseline strong{color:#8fb7ff}
.planner-summary .later strong{color:#76d69c}

.planner-section{
  margin-top:18px;
}
.planner-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  margin-bottom:8px;
}
.planner-section-head small{
  color:var(--muted);
  font-size:7px;
  letter-spacing:.08em;
}
.planner-section-head h3{
  margin:3px 0 0;
  font-size:15px;
}
.planner-section-head>span{
  min-width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:10px;
  font-weight:800;
}
.planner-list{
  display:grid;
  gap:8px;
}
.planner-row{
  width:100%;
  display:grid;
  grid-template-columns:88px minmax(0,1fr) auto 10px;
  gap:8px;
  align-items:center;
  padding:11px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#10161e;
  color:inherit;
  text-align:left;
}
.planner-row.now{border-color:rgba(255,102,102,.30)}
.planner-row.soon{border-color:rgba(243,189,88,.30)}
.planner-row.baseline{border-color:rgba(105,156,255,.25)}
.planner-vehicle{
  font-size:8px;
  line-height:1.25;
  color:#b8c1cf;
}
.planner-main{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.planner-main strong{font-size:10px}
.planner-main small{font-size:7px;color:var(--muted);white-space:normal}
.planner-main .planner-fluid{color:#c1cad7}
.planner-row b{
  padding:5px 7px;
  border-radius:999px;
  font-size:7px;
  letter-spacing:.06em;
  background:rgba(42,139,86,.14);
  color:#76d69c;
}
.planner-row.now b{background:rgba(255,102,102,.12);color:#ff8e8e}
.planner-row.soon b{background:rgba(243,189,88,.13);color:#f3bd58}
.planner-row.baseline b{background:rgba(105,156,255,.12);color:#8fb7ff}
.planner-row em{font-style:normal;color:#647188}
.planner-empty{
  padding:12px;
  border:1px dashed var(--line);
  border-radius:13px;
  color:var(--muted);
  font-size:9px;
}
@media(max-width:430px){
  .planner-summary{grid-template-columns:repeat(2,1fr)}
  .planner-row{grid-template-columns:74px minmax(0,1fr) auto 10px}
}


/* Sprint 20: Planner Navigation + Vehicle Filters */
.planner-vehicle-filters{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:2px 0 10px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.planner-vehicle-filters::-webkit-scrollbar{display:none}
.planner-vehicle-filters button{
  flex:0 0 auto;
  min-height:36px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#10161e;
  color:#8c98aa;
  font-size:9px;
  font-weight:700;
}
.planner-vehicle-filters button.active{
  border-color:#397cff;
  background:rgba(57,124,255,.14);
  color:#8fb7ff;
}

.planner-summary-card{
  width:100%;
  min-height:114px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#10161e;
  color:inherit;
  text-align:left;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  touch-action:manipulation;
}
.planner-summary-card:active{
  transform:scale(.985);
  background:#131b26;
}
.planner-summary-card small{
  display:block;
  min-height:18px;
  color:var(--muted);
  font-size:6px;
  line-height:1.2;
  letter-spacing:.06em;
}
.planner-summary-card strong{
  display:block;
  margin-top:4px;
  font-size:18px;
}
.planner-summary-card span{
  display:block;
  margin-top:4px;
  color:#708096;
  font-size:7px;
}
.planner-summary-card.now strong{color:#ff8e8e}
.planner-summary-card.soon strong{color:#f3bd58}
.planner-summary-card.baseline strong{color:#8fb7ff}
.planner-summary-card.later strong{color:#76d69c}

.planner-section-count{
  min-width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:999px;
  background:#10161e;
  color:inherit;
  font-size:10px;
  font-weight:800;
  touch-action:manipulation;
}
.planner-section-count:active{transform:scale(.94)}

.planner-section{
  scroll-margin-top:16px;
  transition:border-color .25s ease,background .25s ease;
  border-radius:16px;
}
.planner-section-pulse{
  background:rgba(57,124,255,.055);
  outline:1px solid rgba(90,143,255,.24);
  outline-offset:7px;
}


/* Sprint 20 Fix 1: force planner summary controls interactive */
.planner-summary-card,
.planner-summary-card *,
.planner-section-count,
.planner-section-count *{
  pointer-events:auto !important;
}
.planner-summary-card{
  cursor:pointer;
  -webkit-tap-highlight-color:rgba(255,255,255,.06);
}
.planner-summary-card:focus-visible,
.planner-section-count:focus-visible{
  outline:2px solid #5d91ff;
  outline-offset:2px;
}

/* Sprint 21: Perform Service */
.s21-perform-btn{
  margin:10px 0 0 auto; display:block; border:1px solid rgba(93,145,255,.38);
  background:rgba(93,145,255,.12); color:#8bb5ff; border-radius:999px;
  padding:8px 12px; font:inherit; font-size:13px; font-weight:700;
}
.sprint21-service-sheet{padding-bottom:calc(28px + env(safe-area-inset-bottom));}
.s21-service-vehicle{
  margin:4px 0 18px; padding:14px 16px; border:1px solid var(--line,#242a35);
  border-radius:18px; color:#aeb7c8; background:#111720;
}
.s21-service-form{display:grid;gap:14px;}
.s21-service-form label{display:grid;gap:7px;color:#929cad;font-size:12px;letter-spacing:.08em;text-transform:uppercase;}
.s21-service-form input,.s21-service-form textarea{
  width:100%; box-sizing:border-box; border:1px solid #252c38; border-radius:16px;
  background:#0d121a; color:#f5f7fb; padding:14px 15px; font:inherit; font-size:16px;
  text-transform:none; letter-spacing:normal; outline:none;
}
.s21-service-form textarea{resize:vertical;min-height:100px;}
.s21-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.s21-save-service{width:100%;margin-top:4px;}
@media(max-width:520px){.s21-grid{grid-template-columns:1fr;}}


/* Sprint 21 Fix 1: reliable Perform Service workflow */
.planner-entry{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:stretch;
}
.planner-entry .planner-row{
  min-width:0;
}
.s21-perform-inline{
  width:92px;
  border:1px solid rgba(93,145,255,.34);
  border-radius:14px;
  background:rgba(73,128,255,.11);
  color:#8db7ff;
  font-size:8px;
  font-weight:800;
  line-height:1.15;
  padding:8px;
  touch-action:manipulation;
}
.s21-perform-inline:active{
  transform:scale(.97);
  background:rgba(73,128,255,.18);
}
.fluid-product-field input{
  font-size:16px !important;
}
@media(max-width:430px){
  .planner-entry{grid-template-columns:minmax(0,1fr) 78px}
  .s21-perform-inline{width:78px;font-size:7px;padding:6px}
}


/* Sprint 22: Recommendation Transparency */
.maintenance-source,
.interval-source,
.queue-source,
.history-source{
  display:inline-flex!important;
  width:max-content;
  align-items:center;
  border-radius:999px;
  padding:4px 7px;
  font-size:7px!important;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.source-manufacturer{background:rgba(93,145,255,.12);color:#8fb7ff!important}
.source-product{background:rgba(161,103,255,.12);color:#c4a0ff!important}
.source-custom{background:rgba(243,189,88,.13);color:#f3bd58!important}
.source-garage{background:rgba(122,135,153,.12);color:#9ba7b8!important}

.maintenance-why{
  width:max-content;
  border:0;
  background:transparent;
  color:#78a7ff;
  padding:3px 0;
  font-size:8px;
  font-weight:700;
  text-align:left;
  touch-action:manipulation;
}
.history-why{margin-top:4px}
.recommendation-source-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:12px 0;
  padding:15px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#0f151e;
}
.recommendation-source-card small,
.recommendation-detail small,
.recommendation-grid small{
  color:var(--muted);
  font-size:7px;
  letter-spacing:.08em;
}
.recommendation-source-card strong{font-size:18px}
.recommendation-source-card span{font-size:9px;color:#a8b3c4;line-height:1.4}
.recommendation-source-card.source-manufacturer{border-color:rgba(93,145,255,.28)}
.recommendation-source-card.source-product{border-color:rgba(161,103,255,.28)}
.recommendation-source-card.source-custom{border-color:rgba(243,189,88,.28)}
.recommendation-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin:10px 0;
}
.recommendation-grid>div,
.recommendation-detail{
  padding:13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#10161e;
}
.recommendation-grid strong,
.recommendation-detail strong{
  display:block;
  margin-top:5px;
  font-size:11px;
}
.recommendation-detail{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.recommendation-detail span{
  font-size:8px;
  color:#9ba8ba;
  line-height:1.4;
}
.reset-recommendation{
  width:100%;
  margin-top:12px;
}
.interval-reset-one{
  width:max-content;
  margin-top:4px;
  border:0;
  background:transparent;
  color:#f3bd58;
  padding:0;
  font-size:7px;
  font-weight:800;
}
@media(max-width:430px){
  .recommendation-grid{grid-template-columns:1fr}
}


/* Sprint 23: Maintenance Alerts + Snooze */
.maintenance-alert-banner{
  width:100%;
  margin:14px 0;
  padding:14px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 12px;
  gap:11px;
  align-items:center;
  border:1px solid rgba(243,189,88,.30);
  border-radius:18px;
  background:rgba(243,189,88,.06);
  color:inherit;
  text-align:left;
}
.maintenance-alert-banner.overdue{
  border-color:rgba(255,102,102,.34);
  background:rgba(255,102,102,.055);
}
.maintenance-alert-banner>span{
  width:38px;height:38px;display:grid;place-items:center;
  border-radius:12px;background:#121923;color:#f3bd58;
}
.maintenance-alert-banner.overdue>span{color:#ff8e8e}
.maintenance-alert-banner div{display:flex;flex-direction:column;gap:2px}
.maintenance-alert-banner small{font-size:7px;letter-spacing:.10em;color:var(--muted)}
.maintenance-alert-banner strong{font-size:11px}
.maintenance-alert-banner em{font-size:8px;font-style:normal;color:#8e9aae}
.maintenance-alert-banner>b{font-size:18px;color:#66758b}

.maintenance-alert-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin:12px 0;
}
.maintenance-alert-summary>div{
  padding:10px;border:1px solid var(--line);border-radius:13px;background:#10161e;
}
.maintenance-alert-summary small{
  display:block;font-size:6px;letter-spacing:.08em;color:var(--muted)
}
.maintenance-alert-summary strong{
  display:block;margin-top:5px;font-size:18px
}
.maintenance-alert-summary>div:nth-child(2) strong{color:#ff8e8e}
.maintenance-alert-summary>div:nth-child(3) strong{color:#f3bd58}
.maintenance-alert-summary>div:nth-child(4) strong{color:#8fb7ff}

.alert-explainer{
  margin:8px 0 18px;padding:11px 12px;border:1px solid #202938;border-radius:13px;
  background:#0d131c;color:#8996a9;font-size:8px;line-height:1.45
}
.alert-section{margin-top:18px}
.maintenance-alert-list{display:grid;gap:9px}
.maintenance-alert-row{
  border:1px solid var(--line);border-radius:15px;background:#10161e;overflow:hidden
}
.maintenance-alert-row.overdue{border-color:rgba(255,102,102,.30)}
.maintenance-alert-row.due{border-color:rgba(243,189,88,.30)}
.maintenance-alert-row.snoozed{opacity:.72;border-color:rgba(93,145,255,.20)}
.maintenance-alert-main{
  width:100%;display:grid;grid-template-columns:86px minmax(0,1fr) auto 10px;
  gap:8px;align-items:center;padding:11px;border:0;background:transparent;color:inherit;text-align:left
}
.alert-vehicle{font-size:8px;color:#b8c1cf;line-height:1.25}
.alert-service{display:flex;flex-direction:column;gap:3px;min-width:0}
.alert-service strong{font-size:10px}
.alert-service small{font-size:7px;color:var(--muted)}
.alert-snoozed-text{color:#8fb7ff!important;font-weight:700}
.maintenance-alert-main>b{
  font-size:7px;letter-spacing:.06em;padding:5px 7px;border-radius:999px;
  background:rgba(243,189,88,.13);color:#f3bd58
}
.maintenance-alert-row.overdue .maintenance-alert-main>b{
  background:rgba(255,102,102,.12);color:#ff8e8e
}
.maintenance-alert-main>em{font-style:normal;color:#647188}
.maintenance-alert-actions{
  display:flex;gap:6px;padding:0 10px 10px;justify-content:flex-end;flex-wrap:wrap
}
.maintenance-alert-actions button{
  min-height:32px;padding:0 10px;border:1px solid var(--line);border-radius:999px;
  background:#0d131c;color:#9cacbf;font-size:8px;font-weight:700;touch-action:manipulation
}
.maintenance-alert-actions .alert-perform{
  border-color:rgba(93,145,255,.34);background:rgba(93,145,255,.10);color:#8fb7ff
}
@media(max-width:430px){
  .maintenance-alert-summary{grid-template-columns:repeat(2,1fr)}
  .maintenance-alert-main{grid-template-columns:74px minmax(0,1fr) auto 10px}
}

/* Sprint 24: iOS manual-record date field containment */
.manual-form,
.manual-form label{
  min-width:0;
}
.manual-form input,
.manual-form select,
.manual-form textarea{
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
}
.manual-form input[type="date"]{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
  -webkit-appearance:none;
  appearance:none;
}
@media(max-width:699px){
  .manual-form input[type="date"]{
    inline-size:100%;
    min-inline-size:0;
    max-inline-size:100%;
  }
}


/* Sprint 25: Perform Service data integrity */
.manual-form fieldset{min-width:0}
.locked-field input{
  color:#f6f8fb;
  opacity:1;
  background:#10161d;
}
.maintenance-context{
  color:#6fa4ff!important;
  font-size:8px!important;
}
.currency-input{
  position:relative;
  display:flex;
  align-items:center;
  min-width:0;
}
.currency-input>span{
  position:absolute;
  left:12px;
  z-index:1;
  color:#8e99aa;
  font-size:16px;
}
.currency-input input{padding-left:27px!important}
.field-helper{
  color:#7d899b!important;
  font-size:8px!important;
  line-height:1.3;
}
.mileage-preview{min-height:10px}
.product-suggestion{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 10px;
  border:1px solid rgba(93,145,255,.20);
  border-radius:10px;
  background:rgba(93,145,255,.055);
  color:#8fa0b7;
  font-size:8px;
  line-height:1.35;
}
.product-suggestion strong{color:#c4d5ee}
.product-suggestion button{
  flex:0 0 auto;
  border:1px solid rgba(93,145,255,.30);
  border-radius:999px;
  background:rgba(93,145,255,.10);
  color:#8fb7ff;
  padding:5px 8px;
  font-size:8px;
  font-weight:800;
}
.service-details-field{
  margin:0;
  padding:11px;
  border:1px solid var(--line);
  border-radius:12px;
}
.service-details-field legend{
  padding:0 5px;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.service-detail-options{display:grid;gap:8px}
.service-detail-option{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr);
  align-items:center;
  gap:8px!important;
  color:#c6cfdb;
  font-size:10px;
}
.service-detail-option input{
  width:18px!important;
  height:18px;
  margin:0;
  padding:0;
}
.service-detail-option span{
  font-size:10px!important;
  text-transform:none!important;
  letter-spacing:0!important;
  color:#c6cfdb!important;
}


/* Sprint 26: Product-aware maintenance intelligence */
.product-intelligence-note{
  margin-top:5px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.06);
  color:#aebbd0!important;
}
.product-intelligence-note b{color:#8fb7ff}
.history-product-intelligence{
  margin-top:5px;
  color:#8fa0b7!important;
  line-height:1.45;
}


/* Sprint 27: Maintenance Cost Forecasting */
.budget-filter-row{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:2px 0 12px;
  scrollbar-width:none;
}
.budget-filter-row::-webkit-scrollbar{display:none}
.budget-filter-row button{
  flex:0 0 auto;
  min-height:36px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#10161e;
  color:#8c98aa;
  font-size:9px;
  font-weight:700;
}
.budget-filter-row button.active{
  border-color:#397cff;
  background:rgba(57,124,255,.14);
  color:#8fb7ff;
}
.budget-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:8px 0 12px;
}
.budget-summary-card{
  min-width:0;
  padding:11px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#10161e;
}
.budget-summary-card small{
  display:block;
  min-height:18px;
  color:var(--muted);
  font-size:6px;
  letter-spacing:.07em;
}
.budget-summary-card strong{
  display:block;
  margin-top:5px;
  font-size:16px;
}
.budget-summary-card span{
  display:block;
  margin-top:4px;
  color:#77859a;
  font-size:7px;
  line-height:1.3;
}
.budget-summary-card.urgent strong{color:#ff8e8e}
.budget-summary-card.soon strong{color:#f3bd58}
.budget-summary-card.total strong{color:#8fb7ff}
.budget-note{
  padding:10px 12px;
  border:1px solid #202938;
  border-radius:13px;
  background:#0d131c;
  color:#8794a7;
  font-size:8px;
  line-height:1.45;
  margin-bottom:14px;
}
.maintenance-budget-list{
  display:grid;
  gap:8px;
}
.maintenance-budget-row{
  width:100%;
  display:grid;
  grid-template-columns:86px minmax(0,1fr) auto 10px;
  gap:8px;
  align-items:center;
  padding:11px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#10161e;
  color:inherit;
  text-align:left;
}
.maintenance-budget-row.now{border-color:rgba(255,102,102,.28)}
.maintenance-budget-row.soon{border-color:rgba(243,189,88,.28)}
.budget-vehicle{
  font-size:8px;
  color:#b8c1cf;
  line-height:1.25;
}
.budget-main{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.budget-main strong{font-size:10px}
.budget-main small{
  font-size:7px;
  color:var(--muted);
  white-space:normal;
}
.budget-main .budget-cost{
  color:#b9c8dd;
  font-weight:700;
}
.maintenance-budget-row>b{
  font-size:9px;
  color:#dfe7f2;
}
.maintenance-budget-row>em{
  font-style:normal;
  color:#647188;
}
.history-cost-estimate{
  margin-top:5px;
  color:#b9c8dd!important;
  font-weight:700;
}
@media(max-width:430px){
  .budget-summary-grid{grid-template-columns:1fr}
  .maintenance-budget-row{grid-template-columns:74px minmax(0,1fr) auto 10px}
}


/* Sprint 28: Document Vault */
.document-total-badge{
  min-width:34px;height:34px;padding:0 9px;display:grid;place-items:center;
  border:1px solid var(--line);border-radius:999px;background:#10161e;
  color:#aebbd0;font-size:11px;font-weight:800
}
.document-vault-note{
  margin:10px 0 14px;padding:10px 12px;border:1px solid #202938;border-radius:13px;
  background:#0d131c;color:#8794a7;font-size:8px;line-height:1.45
}
.vehicle-document-list,.record-document-links,.tab-document-list{display:grid;gap:8px;margin-top:12px}
.vehicle-document-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;
  border:1px solid var(--line);border-radius:14px;background:#10161e;overflow:hidden
}
.document-open{
  min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr) 10px;gap:9px;
  align-items:center;padding:11px;border:0;background:transparent;color:inherit;text-align:left
}
.document-file-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#141c27;color:#8fb7ff}
.document-file-icon svg,.attach-document svg,.record-document-links svg,.tab-document-list svg{width:17px;height:17px}
.document-open>span:nth-child(2){display:flex;min-width:0;flex-direction:column;gap:2px}
.document-open small,.document-open em{font-size:7px;color:var(--muted);font-style:normal}
.document-open strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.document-open>b{color:#657389}
.document-delete{border:0;border-left:1px solid var(--line);background:transparent;color:#e18282;padding:0 10px;font-size:8px}
.linked-record-chip{
  padding:10px 12px;border:1px solid rgba(93,145,255,.20);border-radius:12px;background:rgba(93,145,255,.055)
}
.linked-record-chip small{display:block;color:#7fa8e8;font-size:7px}
.linked-record-chip strong{display:block;margin-top:3px;font-size:10px}
.linked-record-chip span{display:block;margin-top:2px;color:var(--muted);font-size:8px}
.attach-document{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin-top:10px}
.record-document-links button,.tab-document-list button{
  width:100%;display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;gap:8px;align-items:center;
  padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:#10161e;color:inherit;text-align:left
}
.record-document-links button>span,.tab-document-list button>span:first-child{color:#8fb7ff}
.record-document-links strong,.tab-document-list strong{font-size:9px}
.record-document-links em{font-size:7px;color:var(--muted);font-style:normal}
.record-document-links b,.tab-document-list b{font-size:7px;color:#8fb7ff}
.tab-document-list button{grid-template-columns:28px minmax(0,1fr) auto}
.tab-document-list button>span:nth-child(2){display:flex;flex-direction:column;gap:2px}
.tab-document-list small{font-size:7px;color:var(--muted)}


/* Sprint 29: Maintenance Timeline */
.timeline-filter-row{
  display:flex;gap:7px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:none
}
.timeline-filter-row::-webkit-scrollbar{display:none}
.timeline-filter-row button{
  flex:0 0 auto;min-height:36px;padding:0 13px;border:1px solid var(--line);border-radius:999px;
  background:#10161e;color:#8c98aa;font-size:9px;font-weight:700
}
.timeline-filter-row button.active{
  border-color:#397cff;background:rgba(57,124,255,.14);color:#8fb7ff
}
.timeline-summary{
  display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:8px 0 12px
}
.timeline-summary button{
  min-height:76px;padding:10px;border:1px solid var(--line);border-radius:13px;
  background:#10161e;color:inherit;text-align:left
}
.timeline-summary small{display:block;color:var(--muted);font-size:6px;letter-spacing:.07em}
.timeline-summary strong{display:block;margin-top:5px;font-size:18px}
.timeline-summary button:nth-child(1) strong{color:#ff8e8e}
.timeline-summary button:nth-child(2) strong{color:#f3bd58}
.timeline-summary button:nth-child(3) strong{color:#8fb7ff}
.timeline-summary button:nth-child(4) strong{color:#76d69c}
.timeline-note{
  padding:10px 12px;border:1px solid #202938;border-radius:13px;background:#0d131c;
  color:#8794a7;font-size:8px;line-height:1.45;margin-bottom:14px
}
.timeline-groups{display:grid;gap:20px}
.timeline-group{scroll-margin-top:16px}
.timeline-group-head{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:8px
}
.timeline-group-head h3{margin:0;font-size:14px}
.timeline-group-head span{
  min-width:26px;height:26px;display:grid;place-items:center;border:1px solid var(--line);
  border-radius:999px;font-size:9px;color:#9aa6b8
}
.timeline-list{display:grid;gap:8px}
.timeline-row{
  width:100%;display:grid;grid-template-columns:12px 86px minmax(0,1fr) auto 10px;gap:8px;
  align-items:center;padding:11px;border:1px solid var(--line);border-radius:14px;
  background:#10161e;color:inherit;text-align:left
}
.timeline-row.overdue{border-color:rgba(255,102,102,.30)}
.timeline-row.due{border-color:rgba(243,189,88,.28)}
.timeline-dot{
  width:8px;height:8px;border-radius:50%;background:#76d69c;box-shadow:0 0 0 3px rgba(118,214,156,.08)
}
.timeline-row.overdue .timeline-dot{background:#ff8e8e;box-shadow:0 0 0 3px rgba(255,142,142,.08)}
.timeline-row.due .timeline-dot{background:#f3bd58;box-shadow:0 0 0 3px rgba(243,189,88,.08)}
.timeline-vehicle{font-size:8px;color:#b8c1cf;line-height:1.25}
.timeline-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.timeline-main strong{font-size:10px}
.timeline-main small{font-size:7px;color:var(--muted);white-space:normal}
.timeline-row>b{
  font-size:7px;letter-spacing:.06em;padding:5px 7px;border-radius:999px;
  background:rgba(42,139,86,.14);color:#76d69c
}
.timeline-row.overdue>b{background:rgba(255,102,102,.12);color:#ff8e8e}
.timeline-row.due>b{background:rgba(243,189,88,.13);color:#f3bd58}
.timeline-row>em{font-style:normal;color:#647188}
@media(max-width:430px){
  .timeline-summary{grid-template-columns:repeat(2,1fr)}
  .timeline-row{grid-template-columns:10px 74px minmax(0,1fr) auto 10px}
}


/* Sprint 30: Ownership Intelligence Suite */
.ownership-intelligence-card{margin:0 0 12px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#10161e}
.ownership-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ownership-action-grid button{display:grid;grid-template-columns:28px minmax(0,1fr) 10px;gap:8px;align-items:center;min-width:0;padding:11px;border:1px solid #202938;border-radius:13px;background:#0d131c;color:inherit;text-align:left}
.ownership-action-grid button svg{width:18px;height:18px;color:#8fb7ff}.ownership-action-grid button>span{display:flex;min-width:0;flex-direction:column;gap:2px}.ownership-action-grid strong{font-size:9px}.ownership-action-grid small{font-size:7px;color:var(--muted);line-height:1.3}.ownership-action-grid b{color:#647188}
.ownership-note{padding:10px 12px;margin:8px 0 14px;border:1px solid #202938;border-radius:13px;background:#0d131c;color:#8794a7;font-size:8px;line-height:1.45}
.consumable-list,.forecast-list,.intel-record-list{display:grid;gap:8px}.consumable-list button,.forecast-list button,.intel-record-list button{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:14px;background:#10161e;color:inherit;text-align:left}.consumable-list button>span,.forecast-list button>span,.intel-record-list button>span{display:flex;min-width:0;flex-direction:column;gap:3px}.consumable-list small,.forecast-list small,.intel-record-list small{font-size:7px;color:var(--muted)}.consumable-list strong,.forecast-list strong,.intel-record-list strong{font-size:10px}.consumable-list em,.forecast-list em,.intel-record-list em{font-size:7px;color:#8b99ac;font-style:normal;line-height:1.35}.consumable-list b,.forecast-list b{color:#647188}.intel-record-list{grid-template-columns:1fr}.intel-record-list button{grid-template-columns:minmax(0,1fr) auto 10px}.intel-record-list button>b{font-size:8px;color:#b9c8dd}.intel-record-list i{font-style:normal;color:#647188}
.spec-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.spec-list>div{padding:11px;border:1px solid var(--line);border-radius:13px;background:#10161e;min-width:0}.spec-list small{display:block;font-size:7px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.spec-list strong{display:block;margin-top:4px;font-size:9px;overflow-wrap:anywhere}
.usage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 14px}.usage-grid>div{padding:11px;border:1px solid var(--line);border-radius:13px;background:#10161e}.usage-grid small{display:block;font-size:6px;color:var(--muted);letter-spacing:.06em}.usage-grid strong{display:block;margin-top:5px;font-size:13px}.usage-grid em{display:block;margin-top:3px;font-size:7px;color:#8290a4;font-style:normal}
@media(max-width:430px){.ownership-action-grid,.spec-list{grid-template-columns:1fr}.usage-grid{grid-template-columns:1fr}}

/* Sprint 31: Tire Intelligence */
.tire-pressure-card{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) 12px;gap:10px;align-items:center;margin:0 0 12px;padding:13px;border:1px solid rgba(143,183,255,.24);border-radius:16px;background:#10161e;color:inherit;text-align:left}.tire-pressure-card>span:first-child svg{width:22px;height:22px;color:#8fb7ff}.tire-pressure-card>span:nth-child(2){display:flex;flex-direction:column;gap:2px}.tire-pressure-card small{font-size:7px;letter-spacing:.08em;color:var(--muted)}.tire-pressure-card strong{font-size:14px}.tire-pressure-card em{font-size:7px;color:#8996a8;font-style:normal}.tire-pressure-card>b{color:#647188}
.tire-pressure-hero{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.tire-pressure-hero>div{padding:15px;border:1px solid var(--line);border-radius:16px;background:#10161e}.tire-pressure-hero small{display:block;font-size:7px;letter-spacing:.08em;color:var(--muted)}.tire-pressure-hero strong{display:block;margin-top:4px;font-size:27px}.tire-pressure-hero strong em{font-size:9px;font-style:normal;color:#8d9aad}.tire-pressure-hero span{display:block;margin-top:5px;font-size:8px;color:#8fb7ff}.tire-installed-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.tire-installed-grid article,.tire-basis{padding:12px;border:1px solid var(--line);border-radius:14px;background:#0d131c}.tire-installed-grid small,.tire-basis small{display:block;font-size:7px;letter-spacing:.08em;color:var(--muted)}.tire-installed-grid strong{display:block;margin-top:5px;font-size:10px;line-height:1.35}.tire-installed-grid span{display:block;margin-top:4px;font-size:7px;color:#8c9aad}.tire-basis p{margin:6px 0 0;font-size:8px;line-height:1.5;color:#909db0}.vehicle-detect-demo{display:grid;gap:10px}.vehicle-detect-demo label{display:flex;flex-direction:column;gap:5px}.vehicle-detect-demo label span{font-size:8px;color:var(--muted)}.vehicle-detect-demo input{min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:#0d131c;color:inherit;font-size:16px}.vehicle-detect-demo>div{padding:13px;border:1px solid rgba(143,183,255,.24);border-radius:14px;background:#10161e}.vehicle-detect-demo small,.vehicle-detect-demo em{display:block;font-size:7px;color:var(--muted);font-style:normal}.vehicle-detect-demo strong{display:block;margin:4px 0;font-size:15px;color:#8fb7ff}
@media(max-width:430px){.tire-installed-grid{grid-template-columns:1fr}}


/* Sprint 32 Fix 1: PSI is always visible immediately on vehicle open */
.vehicle-psi-strip{
  width:100%;
  min-height:48px;
  margin:0 0 10px;
  padding:10px 14px;
  border:1px solid rgba(143,183,255,.30);
  border-radius:15px;
  background:#10161e;
  color:#f6f8fb;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) 12px;
  gap:10px;
  align-items:center;
  text-align:left;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.vehicle-psi-strip:active{
  transform:scale(.995);
  background:#121a24;
}
.vehicle-psi-strip .psi-label{
  font-size:8px;
  font-weight:800;
  letter-spacing:.10em;
  color:#8fb7ff;
  white-space:nowrap;
}
.vehicle-psi-strip>strong{
  justify-self:end;
  font-size:13px;
  line-height:1.2;
  white-space:nowrap;
}
.vehicle-psi-strip>em{
  justify-self:end;
  color:#647188;
  font-style:normal;
  font-size:18px;
  line-height:1;
}
.vehicle-psi-moto{
  min-height:58px;
}
.vehicle-psi-moto .psi-moto-values{
  min-width:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.vehicle-psi-moto .psi-moto-values>span{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.vehicle-psi-moto .psi-moto-values b{
  font-size:7px;
  letter-spacing:.08em;
  color:#8997aa;
}
.vehicle-psi-moto .psi-moto-values strong{
  font-size:11px;
  line-height:1.15;
  white-space:nowrap;
}
.vehicle-psi-empty>strong{
  justify-self:end;
  font-size:11px;
  color:#8fb7ff;
}
@media(max-width:430px){
  .vehicle-psi-strip{
    min-height:44px;
    margin-bottom:9px;
    padding:8px 11px;
    gap:8px;
  }
  .vehicle-psi-strip .psi-label{
    font-size:7px;
  }
  .vehicle-psi-strip>strong{
    font-size:11px;
  }
  .vehicle-psi-moto{
    min-height:54px;
    grid-template-columns:auto minmax(0,1fr) 9px;
  }
  .vehicle-psi-moto .psi-moto-values{
    gap:7px;
  }
  .vehicle-psi-moto .psi-moto-values strong{
    font-size:9px;
  }
}


/* Sprint 33: combined Garage Intelligence */
.sprint33-sheet{max-height:92vh;overflow:auto}
.s33-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.s33-grid article{border:1px solid rgba(143,183,255,.16);background:#0e141c;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:5px;min-width:0}
.s33-grid article.wide{grid-column:1/-1}
.s33-grid small{font-size:8px;letter-spacing:.12em;font-weight:800;color:#8fb7ff}
.s33-grid strong{font-size:14px;color:#f5f7fb}
.s33-grid span{font-size:11px;line-height:1.45;color:#98a3b3}
@media(max-width:430px){.s33-grid{grid-template-columns:1fr}.s33-grid article.wide{grid-column:auto}}


/* Sprint 33 Fix 1: interactive Garage Intelligence + accessible Done button */
.sprint33-sheet{
  max-height:calc(100dvh - env(safe-area-inset-top) - 8px);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding-top:0;
}

.s33-sticky-top{
  position:sticky;
  top:0;
  z-index:6;
  margin:0 -17px 10px;
  padding:9px 17px 7px;
  background:rgba(14,19,26,.97);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,.055);
}

.s33-sticky-top .sheet-handle{
  margin-bottom:5px;
}

.s33-sticky-top .record-detail-head{
  margin:0;
}

.s33-sticky-top .close-sheet{
  min-width:58px;
  min-height:44px;
  display:grid;
  place-items:center;
  position:relative;
  z-index:8;
}

.s33-grid{
  display:grid;
  gap:10px;
  padding-bottom:8px;
}

.s33-card{
  width:100%;
  min-width:0;
  padding:14px;
  border:1px solid #273446;
  border-radius:17px;
  background:#10161e;
  color:#f6f8fb;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  text-align:left;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

.s33-card:active{
  transform:scale(.992);
  border-color:#4a78b8;
  background:#121a24;
}

.s33-card small{
  color:#8fb7ff;
  font-size:8px;
  font-weight:800;
  letter-spacing:.12em;
}

.s33-card strong{
  font-size:14px;
  line-height:1.25;
}

.s33-card span{
  color:#8f9bad;
  font-size:10px;
  line-height:1.45;
}

.s33-card em{
  width:100%;
  margin-top:5px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.055);
  color:#73a7ff;
  font-size:8px;
  font-style:normal;
  font-weight:700;
}

.s33-card.wide{
  grid-column:1 / -1;
}

@media(min-width:700px){
  .s33-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:430px){
  .sprint33-sheet{
    max-height:calc(100dvh - env(safe-area-inset-top) - 4px);
  }
  .s33-card{
    padding:13px;
  }
  .s33-card strong{
    font-size:13px;
  }
}


/* Sprint 34: OEM + actual-configuration intelligence */
.service-buy-card{margin:18px 0 26px;border:1px solid rgba(91,145,255,.28);border-radius:24px;background:linear-gradient(180deg,rgba(37,73,126,.16),rgba(12,18,27,.65));overflow:hidden}
.service-buy-title{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 12px;border-bottom:1px solid rgba(255,255,255,.07)}
.service-buy-title span{font-size:12px;letter-spacing:.19em;font-weight:800;color:#8fb8ff}.service-buy-title b{font-size:10px;letter-spacing:.12em;color:#dce9ff;background:rgba(66,125,255,.14);padding:7px 9px;border-radius:999px}
.buy-row{padding:15px 20px;border-bottom:1px solid rgba(255,255,255,.055);display:grid;gap:5px}.buy-row small{font-size:10px;letter-spacing:.16em;color:#7f8ca0;font-weight:800}.buy-row strong{font-size:16px;line-height:1.35;color:#f3f6fb}.buy-row span{font-size:12px;line-height:1.4;color:#8fa0b8}.buy-row.active{background:rgba(55,116,255,.08)}.buy-row.active strong{color:#8fb8ff}.buy-row.compact{grid-template-columns:100px 1fr;align-items:center}.buy-source{padding:13px 20px 17px;color:#718198;font-size:11px;line-height:1.45}
.spec-list div:nth-child(n+4){background:rgba(255,255,255,.018)}


/* Sprint 35: service reference intelligence */
.s35-reference{margin:18px 0 26px;border:1px solid rgba(103,157,255,.34);border-radius:24px;background:rgba(12,18,27,.78);overflow:hidden}.s35-ref-block{padding:15px 20px;border-bottom:1px solid rgba(255,255,255,.055);display:grid;gap:7px}.s35-ref-block small{font-size:10px;letter-spacing:.16em;color:#8fb8ff;font-weight:800}.s35-ref-block strong,.s35-ref-block li{font-size:14px;line-height:1.45;color:#eef4ff}.s35-ref-block ul{margin:0;padding-left:18px;display:grid;gap:6px}


/* Sprint 36: searchable Torque Specifications */
.torque-sheet{
  max-height:calc(100dvh - env(safe-area-inset-top) - 6px);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding-top:0;
}
.torque-sticky-head{
  position:sticky;
  top:0;
  z-index:8;
  margin:0 -17px;
  padding:9px 17px 12px;
  background:rgba(14,19,26,.98);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.torque-sticky-head .record-detail-head{margin:0 0 10px}
.torque-sticky-head .close-sheet{
  min-width:58px;
  min-height:44px;
  position:relative;
  z-index:10;
}
.torque-search-row{margin:0}
.torque-safety-note{
  margin:14px 0 18px;
  padding:13px 15px;
  border:1px solid rgba(91,145,255,.22);
  border-radius:16px;
  background:rgba(61,108,188,.08);
  color:#93a2b7;
  font-size:11px;
  line-height:1.45;
}
.torque-safety-note strong{color:#edf3ff}
.torque-category{display:grid;gap:9px;margin:0 0 20px}
.torque-category>.eyebrow{margin:0 3px 2px;color:#8fb8ff}
.torque-spec-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px 12px;
  padding:14px 15px;
  border:1px solid #273446;
  border-radius:17px;
  background:#10161e;
}
.torque-spec-main{min-width:0;display:flex;flex-direction:column;gap:3px}
.torque-spec-main small{
  color:#748399;
  font-size:8px;
  font-weight:800;
  letter-spacing:.12em;
}
.torque-spec-main strong{font-size:14px;line-height:1.25;color:#f6f8fb}
.torque-spec-main span{font-size:10px;line-height:1.4;color:#8998ac}
.torque-values{
  min-width:92px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:3px;
  text-align:right;
}
.torque-values strong{font-size:15px;line-height:1.15;color:#f6f8fb;white-space:nowrap}
.torque-values strong small{font-size:9px;color:#8fb8ff}
.torque-values span{font-size:10px;color:#8e9db0;white-space:nowrap}
.torque-source{
  grid-column:1 / -1;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.055);
  color:#68778b;
  font-size:8px;
  line-height:1.35;
}
.global-search-section{display:grid;gap:8px;margin:8px 0 18px}
.global-search-section>.eyebrow{padding:0 4px;color:#8fb8ff}
.global-torque-result{
  width:100%;
  display:grid;
  grid-template-columns:30px minmax(0,1fr) 12px;
  gap:10px;
  align-items:center;
  padding:12px;
  border:1px solid #263345;
  border-radius:15px;
  background:#10161e;
  color:#f4f7fb;
  text-align:left;
}
.global-torque-icon{color:#7facff;display:grid;place-items:center}
.global-torque-icon svg{width:20px;height:20px}
.global-torque-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.global-torque-copy small{font-size:7px;font-weight:800;letter-spacing:.09em;color:#74859b}
.global-torque-copy strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.global-torque-copy em{font-size:10px;color:#8fb8ff;font-style:normal}
.global-torque-result>b{color:#647188;font-size:18px}
@media(max-width:430px){
  .torque-spec-row{padding:12px 13px}
  .torque-spec-main strong{font-size:13px}
  .torque-values{min-width:86px}
  .torque-values strong{font-size:14px}
}

/* =========================================================
   GARAGE SPRINT 69
   Intelligence UI cleanup: remove decorative category icons
   while preserving navigation chevrons and all functionality.
   ========================================================= */

.s66-system > .s66-icon {
  display: none !important;
}

.s67-sym > span:first-child {
  display: none !important;
}

.s66-teach-btn > span:first-child,
.s67-btn > span:first-child {
  display: none !important;
}

.s66-system b,
.s67-sym b {
  margin-top: 0 !important;
}

.s66-system,
.s67-sym {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.s66-teach-btn,
.s67-btn {
  grid-template-columns: minmax(0, 1fr) auto !important;
}
