*{box-sizing:border-box}html,body{margin:0;background:#f3f5f8;color:#131923;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:12px;padding:14px;background:#fff;font-weight:700;color:#18202c}.hidden{display:none!important}.app{max-width:540px;margin:auto;padding:22px 14px 190px}.screen>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.screen>header h1{margin:0;font-size:25px}.screen>header p,.brand p{margin:2px 0;color:#7b8494;font-size:12px}.icon{width:46px;height:46px;border-radius:50%;box-shadow:0 5px 18px #0001}.brand{display:flex;gap:14px;align-items:center;margin:40px 0 24px}.brand>b{background:#202631;color:#fff;border-radius:13px;padding:13px 17px;font-size:25px}.brand h1{margin:0}.card{background:#fff;border-radius:17px;padding:18px;margin:12px 0;box-shadow:0 4px 16px #2026310b}.form label{display:block;font-size:12px;font-weight:700;margin-bottom:14px}.form input,.form select,.form textarea{width:100%;margin-top:7px;padding:14px;border:1px solid #dce1e8;border-radius:10px;background:#fff}.check{display:flex!important;align-items:center;gap:8px}.check input{width:auto;margin:0}.primary{width:100%;background:#202631;color:#fff;margin:8px 0}.danger{width:100%;color:#b42318;background:#fff1f0;margin:8px 0}.screen-head{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;text-align:center;margin-bottom:12px}.screen-head h2{font-size:20px}.screen-head button{font-size:26px;padding:6px}.vehicle-switch{width:100%;display:flex;justify-content:space-between;text-align:left;background:#202631;color:#fff;padding:20px;border-radius:18px 18px 0 0}.vehicle-switch small,.vehicle-switch strong,.vehicle-switch span{display:block}.vehicle-switch strong{font-size:26px;margin:7px 0}.vehicle-switch div span{opacity:.8}.hero-km{display:flex;justify-content:space-between;align-items:center;background:#202631;color:#fff;padding:17px 20px;border-top:1px solid #ffffff24;border-radius:0 0 18px 18px;margin-bottom:18px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.metric span,.annual span,.total span{display:block;color:#7b8494;font-size:12px;margin-bottom:8px}.metric b{font-size:18px}.annual>div{padding:10px}.row{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf0f4}.row:last-child{border:0}.row div{text-align:right}.row small{display:block;color:#7b8494;margin-top:3px}.card-head{display:flex;justify-content:space-between;align-items:center}.card-head h3{margin:0}.link{padding:6px;color:#667085}.recent-row,.history-item,.vehicle-item,.same-item{display:flex;justify-content:space-between;gap:10px;padding:13px 0;border-top:1px solid #edf0f4}.recent-row small,.history-item small,.vehicle-item small{display:block;color:#7b8494;margin-top:4px}.privacy,.help{color:#737d8d;font-size:11px;line-height:1.6}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:10px}.tabs button{padding:10px 5px;font-size:12px}.yearpick{display:flex;justify-content:space-between;align-items:center}.total b{font-size:28px}.bars{display:flex;align-items:end;height:190px;gap:5px}.barcol{flex:1;text-align:center;font-size:10px;color:#7b8494}.bar{background:#202631;min-height:2px;border-radius:4px 4px 0 0}.menu{width:100%;display:flex;justify-content:space-between}.about{text-align:center;color:#7b8494;font-size:11px;margin:25px}.about b,.about span{display:block}.version{position:fixed;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));z-index:900;background:#202631;color:#fff;border-radius:99px;padding:6px 10px;font-size:10px;font-weight:800}.bottom{position:fixed;left:50%;transform:translateX(-50%);bottom:max(8px,env(safe-area-inset-bottom));width:min(520px,calc(100% - 16px));height:72px;background:#fff;border-radius:20px;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;box-shadow:0 7px 28px #0002;z-index:700}.bottom button{padding:8px 2px;background:transparent;font-size:18px}.bottom button span{display:block;font-size:10px;margin-top:4px}.bottom .plus{width:58px;height:58px;border-radius:50%;background:#202631;color:#fff;font-size:32px;justify-self:center;transform:translateY(-13px)}@media(min-width:700px){.app{padding-top:30px}}
.vehicle-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.vehicle-select{display:flex;justify-content:space-between;align-items:center;text-align:left;padding:5px;background:transparent}
.vehicle-select small{display:block;color:#7b8494;margin-top:4px}
.vehicle-edit-btn{padding:9px 12px;background:#f1f3f6;font-size:12px}

/* Ver.0.33 */
.vehicle-switch{align-items:center;gap:12px}.vehicle-switch .car-main{flex:1}.car-thumb{width:72px;height:58px;border-radius:12px;background:#fff1;display:grid;place-items:center;font-size:30px;overflow:hidden}.car-thumb img{width:100%;height:100%;object-fit:cover}.metric-btn{width:100%;text-align:left}.cost-switch{width:100%;text-align:left;border:2px solid transparent;transition:.15s}.cost-switch.active{border-color:#202631;box-shadow:0 5px 18px #20263118}.bars .barcol small{display:block;height:17px;font-size:8px;overflow:hidden}.vehicle-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.vehicle-select{display:flex;justify-content:space-between;align-items:center;text-align:left;padding:5px;background:transparent}.vehicle-select small{display:block;color:#7b8494;margin-top:4px}.vehicle-edit-btn{padding:9px 12px;background:#f1f3f6;font-size:12px}.photo-editor{border-top:1px solid #edf0f4;padding-top:14px}.vehicle-photo-preview{height:180px;background:#f3f5f8;border-radius:14px;margin:10px 0;display:grid;place-items:center;font-size:50px;overflow:hidden}.vehicle-photo-preview img{width:100%;height:100%;object-fit:contain}.memo-edit{background:#f7f8fa;border-radius:14px;padding:14px;margin:12px 0}.memo-edit label{display:block;font-size:12px;font-weight:700;margin:8px 0}.memo-edit textarea{width:100%;resize:none;overflow:auto;max-height:180px;margin-top:6px;padding:11px;border:1px solid #dce1e8;border-radius:10px;background:#fff}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.photo-tile{position:relative;aspect-ratio:1;background:#ddd;border-radius:9px;overflow:hidden}.photo-tile img{width:100%;height:100%;object-fit:cover}.photo-tile button{position:absolute;right:3px;top:3px;width:28px;height:28px;padding:0;border-radius:50%;background:#111b;color:#fff}.photo-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.photo-actions select{padding:9px;border:1px solid #ddd;border-radius:9px}.file-btn{background:#202631;color:#fff;border-radius:9px;padding:10px 12px!important;margin:0!important}.file-btn input{display:none}.danger-mini{color:#b42318;background:#fff1f0;padding:10px}.storage{background:#f5f7fa;border-radius:12px;padding:14px;margin:10px 0}.storage span,.storage small{display:block;color:#667085;font-size:11px}.storage b{display:block;font-size:25px;margin:5px 0}.helpdoc p{line-height:1.75;color:#596273}.driving-grid{margin-bottom:12px}

/* Ver.0.34 */
.car-thumb svg,.vehicle-photo-preview svg{width:100%;height:100%;padding:5px}.store-input{margin-top:7px!important}.photo-source{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.memo-section>.memo-add{margin:12px 0 18px}.memo-number{font-weight:800;font-size:13px;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #e3e7ed}.empty-memo{padding:20px 10px;text-align:center;color:#7b8494;background:#f7f8fa;border-radius:12px}.memo-home-row{width:100%;text-align:left;padding:13px 0;border-top:1px solid #edf0f4;border-radius:0}.memo-home-row b,.memo-home-row span{display:block}.memo-home-row span{font-size:11px;color:#7b8494;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.note-view .note-content{line-height:1.65;max-height:240px;overflow:auto}.note-photo{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px;cursor:pointer}#vehicleNotes .screen-head button:last-child{font-size:12px;padding:9px}


/* Ver.0.37 AdMax: issued tags are embedded unchanged */
.ad-area{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:calc(88px + env(safe-area-inset-bottom));
  z-index:650;
  background:#fff;
  text-align:center;
  box-shadow:0 2px 10px #0001;
  overflow:hidden;
}
.ad-area.hidden-ad{display:block!important}
.ad-label{height:14px;font-size:9px;color:#98a2b3;line-height:14px}
.ad-mobile-slot{
  display:block;
  width:320px;
  height:50px;
  overflow:hidden;
}
.ad-desktop-slot{display:none}
.ad-area{width:320px;height:64px}
.app{padding-bottom:190px!important}

@media (min-width:760px){
  .ad-area{
    width:728px;
    height:104px;
    bottom:calc(92px + env(safe-area-inset-bottom));
  }
  .ad-mobile-slot{display:none}
  .ad-desktop-slot{
    display:block;
    width:728px;
    height:90px;
    overflow:hidden;
  }
  .app{padding-bottom:235px!important}
  .bottom{width:min(620px,calc(100% - 24px))}
}

/* Ver.0.38: always show the AdMax banner */
#adDock,#adDock.hidden-ad{display:block!important;visibility:visible!important;opacity:1!important}

/* Ver.0.39 refined, easy-to-read UI */
:root{--ink:#17324d;--muted:#6e7f90;--blue:#1677e8;--orange:#ff982f;--green:#28bd78;--violet:#7568ee;--bg:#f4f7fb;--line:#e4ebf3;--shadow:0 8px 24px rgba(34,68,104,.09)}
html{background:var(--bg)}
body{background:radial-gradient(circle at 15% -5%,rgba(255,194,158,.22),transparent 24rem),radial-gradient(circle at 90% 0,rgba(116,184,255,.16),transparent 26rem),var(--bg)!important;color:var(--ink)!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif!important;font-size:16px}
.app{max-width:560px!important}
header,.topbar{background:rgba(255,255,255,.95)!important;backdrop-filter:blur(12px);border-bottom:1px solid var(--line)!important}
h1,h2,h3,strong{color:var(--ink)}
.card{background:#fff!important;border:1px solid rgba(224,233,243,.9)!important;border-radius:20px!important;box-shadow:var(--shadow)!important}
button,.btn,input,select,textarea{font-size:16px!important}
button,.btn{min-height:48px;border-radius:14px!important;font-weight:700!important}
input,select,textarea{min-height:48px;border:1.5px solid #dce5ef!important;border-radius:13px!important;background:#fff!important;color:var(--ink)!important;padding:11px 13px!important}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(22,119,232,.14)!important;border-color:var(--blue)!important}
label{font-weight:700;color:#50677e}.muted,.sub,.hint,small{color:var(--muted)!important}
.primary,.btn-primary{background:linear-gradient(135deg,var(--blue),#0864d7)!important;color:#fff!important;border:0!important;box-shadow:0 6px 16px rgba(22,119,232,.22)!important}
.bottom{background:rgba(255,255,255,.98)!important;border:1px solid #e1e9f2!important;box-shadow:0 -4px 24px rgba(30,61,94,.11)!important;border-radius:22px 22px 0 0!important}
.bottom button{color:#5d7084!important;font-size:13px!important;min-width:56px}
.bottom .plus{width:58px!important;height:58px!important;min-height:58px!important;border-radius:50%!important;background:linear-gradient(145deg,#2587f0,#0967d8)!important;color:#fff!important;font-size:34px!important;box-shadow:0 7px 18px rgba(16,107,216,.30)!important}
.quick button{min-height:78px!important;font-size:17px!important}.sheet{border-radius:26px 26px 0 0!important}
.badge,.pill,.chip{border-radius:999px!important}.bar{border-radius:8px 8px 3px 3px!important;background:linear-gradient(180deg,#3ca5ff,var(--blue))!important}
.vehicle-card,.vehicleHero{border-radius:24px!important;overflow:hidden}.vehicle-card img,.vehicleHero img{border-radius:18px!important}
td,th{padding:12px 8px!important}.helpdoc p{line-height:1.85!important}textarea{line-height:1.65!important}
#adDock,#adDock.hidden-ad{visibility:visible!important;opacity:1!important}
@media(max-width:420px){body{font-size:16px}.card{border-radius:18px!important}button,.btn{min-height:50px}}
button,a,[onclick],select{touch-action:manipulation}

/* =========================================================
   Ver.0.40 Full visual redesign
   Warm, polished, accessible. No data/behavior changes.
   ========================================================= */
:root{
 --cl-navy:#183b5b; --cl-navy2:#234f73; --cl-blue:#3e8bd7; --cl-sky:#eaf5ff;
 --cl-cream:#fff9f2; --cl-peach:#fff0e5; --cl-orange:#f29a54; --cl-green:#4fa77a;
 --cl-text:#20364a; --cl-sub:#708194; --cl-border:#dfe8f0; --cl-card:#fff;
 --cl-shadow:0 10px 30px rgba(38,72,103,.10); --cl-shadow2:0 4px 14px rgba(38,72,103,.08)
}
html,body{min-height:100%;background:#f6f8fb!important;color:var(--cl-text)!important}
body{background:linear-gradient(180deg,#fff9f4 0,#f6f8fb 260px,#f6f8fb 100%)!important}
.app{max-width:1180px!important;padding:28px 22px 250px!important}
.screen{animation:clFade .18s ease-out}@keyframes clFade{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
.screen>header{max-width:100%;padding:12px 4px 18px!important;margin:0!important;background:transparent!important;border:0!important}
.screen>header h1{font-size:32px!important;letter-spacing:-.6px}.screen>header p{font-size:14px!important;color:var(--cl-sub)!important}
.icon{background:#fff!important;border:1px solid var(--cl-border)!important;color:var(--cl-navy)!important;box-shadow:var(--cl-shadow2)!important}
.version{background:rgba(24,59,91,.92)!important;padding:7px 11px!important;box-shadow:0 4px 14px #17324d22}
.card{border:1px solid #e5ecf2!important;border-radius:22px!important;box-shadow:var(--cl-shadow2)!important;padding:20px!important;margin:14px 0!important}
h3{font-size:18px;margin-top:4px}.card h3{letter-spacing:-.2px}

/* Home hero */
#home .vehicle-switch{position:relative;overflow:hidden;border:0!important;border-radius:26px 26px 0 0!important;padding:25px 28px!important;background:linear-gradient(125deg,#173c5d 0%,#285f85 57%,#ee9a62 145%)!important;box-shadow:0 14px 32px rgba(24,59,91,.18)!important}
#home .vehicle-switch:after{content:"";position:absolute;width:210px;height:210px;border-radius:50%;right:-60px;top:-95px;background:rgba(255,190,135,.18);pointer-events:none}
#home .vehicle-switch .car-thumb{width:112px;height:78px;border-radius:18px;background:linear-gradient(180deg,#fff8,#fff2)!important;border:1px solid #ffffff44;box-shadow:inset 0 1px #fff7;font-size:42px}
#home .vehicle-switch .car-main small{font-size:11px!important;letter-spacing:1.5px;color:#d9e9f5!important}
#home .vehicle-switch .car-main strong{font-size:30px!important;color:#fff!important;margin:5px 0!important}
#home .vehicle-switch .car-main span,#home .vehicle-switch>span,#home .vehicle-switch .car-main small:last-child{color:#eef7ff!important}
#home .hero-km{background:#fff!important;color:var(--cl-text)!important;padding:19px 28px!important;border:1px solid #e5ecf2!important;border-top:0!important;border-radius:0 0 26px 26px!important;box-shadow:0 12px 28px rgba(38,72,103,.10)!important;margin-bottom:27px!important}
#home .hero-km span{font-size:14px;color:var(--cl-sub)}#home .hero-km strong{font-size:26px;color:var(--cl-navy)!important}
#home>h3{font-size:20px;margin:0 0 8px 4px}
#home>.grid{gap:13px!important}
#home>.grid .metric{min-height:112px;padding:19px!important;border-left:5px solid #82b9e9!important;transition:.15s}
#home>.grid .metric:nth-child(2){border-left-color:#79b79a!important}#home>.grid .metric:nth-child(3){border-left-color:#f1aa6e!important}#home>.grid .metric:nth-child(4){border-left-color:#958bd9!important}
#home>.grid .metric:active{transform:scale(.985)}
#home .metric span{font-size:14px!important;color:var(--cl-sub)!important}#home .metric b{font-size:24px!important;color:var(--cl-navy)!important}
#home .annual{gap:0!important;background:#f8fbfd;border-radius:16px;padding:4px}
#home .annual>div{padding:14px!important;border-right:1px solid #e6edf3}#home .annual>div:nth-child(2n){border-right:0}
#home .annual b{font-size:18px;color:var(--cl-navy)}
#home .row{padding:16px 3px!important}.privacy{text-align:center;font-size:12px!important;padding:10px;color:#7b8b99!important}

/* Inputs and secondary screens */
.screen-head{position:sticky;top:0;z-index:20;margin:-8px -6px 18px!important;padding:12px 6px!important;background:rgba(246,248,251,.91);backdrop-filter:blur(12px);border-bottom:1px solid #e6edf3}
.screen-head h2{font-size:23px!important;color:var(--cl-navy)!important}.screen-head button{background:#fff!important;border:1px solid #e2e9ef!important;color:var(--cl-navy)!important;box-shadow:0 3px 10px #294f7010}
.form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px!important;padding:24px!important}
.form label{font-size:14px!important;color:#49647b!important;margin:0 0 14px!important}.form textarea,.form label:has(textarea),.form .check,.photo-editor{grid-column:1/-1}
.form input,.form select,.form textarea,.memo-edit textarea{border:1.5px solid #dbe5ed!important;border-radius:13px!important;background:#fbfdff!important;min-height:51px!important}
.form input:focus,.form select:focus,.form textarea:focus{background:#fff!important;border-color:#5e9ed7!important;box-shadow:0 0 0 4px #5e9ed71b!important;outline:0!important}
.primary{max-width:520px;display:block;margin:12px auto!important;background:linear-gradient(135deg,#1d5f91,#347fb8)!important;min-height:54px!important;font-size:17px!important;border-radius:15px!important;box-shadow:0 7px 18px #276c9f30!important}
.danger{max-width:520px;display:block;margin:10px auto!important}.screen>button:not(.primary):not(.danger){max-width:520px;width:100%;display:block;margin:8px auto}
.tabs{background:#eaf0f5;border-radius:15px;padding:5px;gap:3px!important}.tabs button{background:transparent!important;min-height:42px!important}.tabs button:focus{background:#fff!important;color:var(--cl-navy)!important}
.history-item,.recent-row,.vehicle-item,.same-item{padding:16px 2px!important}.recent-row:first-child,.history-item:first-child{border-top:0}
.menu{min-height:66px!important;text-align:left;font-size:16px!important;color:var(--cl-navy)!important}.storage{background:#eef6fc!important;border:1px solid #dceaf5}

/* Analytics */
#costs>.grid,#driving>.grid{gap:13px!important}.cost-switch{min-height:104px!important}.cost-switch.active{border-color:#6ea8d7!important;background:#f5fbff!important;box-shadow:0 7px 18px #2d77ac18!important}.total{background:linear-gradient(135deg,#183d5e,#285f85)!important;color:#fff!important}.total span,.total b{color:#fff!important}.bars{height:230px!important;padding-top:18px;border-bottom:1px solid #dfe8ef}.bar{background:linear-gradient(180deg,#75b4e5,#397eb5)!important}
.yearpick{max-width:420px;margin:14px auto!important;background:#fff!important}.yearpick button{color:var(--cl-navy)!important}

/* Vehicle and memo */
.vehicle-row{background:#fff;border:1px solid #e5ecf2;border-radius:19px;padding:12px 14px;margin:10px 0;box-shadow:var(--cl-shadow2)}.vehicle-edit-btn{background:#eef5fa!important;color:#315e7d!important}.vehicle-photo-preview{background:linear-gradient(160deg,#eef7fd,#fff5ec)!important;border:1px dashed #bed2e1!important}.memo-edit{background:#f8fafc!important;border:1px solid #e3eaf0!important}.file-btn{background:#e9f3fa!important;color:#245a7d!important;border:1px solid #d4e5f0}.photo-tile{border-radius:13px!important}

/* Bottom navigation and quick sheet */
.bottom{width:min(720px,calc(100% - 24px))!important;height:78px!important;border-radius:24px!important;border:1px solid #e0e8ef!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(14px);box-shadow:0 10px 34px rgba(25,57,85,.17)!important}.bottom button{color:#61788c!important}.bottom .plus{width:62px!important;height:62px!important;min-height:62px!important;background:linear-gradient(145deg,#1f6598,#3d8bc3)!important;box-shadow:0 8px 18px #286e9e45!important}.sheet{max-width:540px;margin:auto;background:#fff!important;padding:25px!important}.quick{gap:10px}.quick button{background:#f3f8fc!important;color:#315e7d!important;border:1px solid #dce9f2!important}

/* Ad stays fixed and unchanged */
#adDock{border-radius:10px 10px 0 0;box-shadow:0 4px 18px #183b5b16!important}

/* Desktop layout */
@media(min-width:900px){
 body{background:linear-gradient(180deg,#fff8f2 0,#f5f8fb 330px)!important}
 .app{padding-top:34px!important}
 #home{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);column-gap:24px;align-items:start}
 #home>header{grid-column:1/-1}#home>.vehicle-switch,#home>.hero-km,#home>h3,#home>.grid,#home>.privacy{grid-column:1}
 #home>.card{grid-column:2;margin-top:0!important;margin-bottom:18px!important}
 #home>.card:nth-of-type(1){grid-row:2/span 2} /* graceful if browser ignores */
 #home>.grid{grid-template-columns:repeat(2,1fr)}
 #home .vehicle-switch{min-height:154px}#home .vehicle-switch .car-thumb{width:150px;height:102px}
 #home .hero-km{min-height:72px}
 .screen:not(#home):not(#setup){max-width:900px;margin:auto}
 .form{grid-template-columns:repeat(2,minmax(0,1fr))}
 #costs>.grid,#driving>.grid{grid-template-columns:repeat(3,1fr)!important}
 .bottom{width:720px!important}
}
@media(min-width:1200px){#home{grid-template-columns:minmax(0,1.35fr) minmax(380px,.65fr)}}

/* Mobile accessibility */
@media(max-width:899px){.app{max-width:600px!important;padding:18px 14px 205px!important}.screen>header h1{font-size:27px!important}.form{grid-template-columns:1fr!important;padding:18px!important}.form>*{grid-column:1!important}#home .vehicle-switch{padding:20px!important}#home .vehicle-switch .car-thumb{width:82px;height:64px}#home .vehicle-switch .car-main strong{font-size:25px!important}#home .hero-km{padding:17px 20px!important}#home>.grid .metric{min-height:105px}.bottom{height:74px!important}}
@media(max-width:390px){#home>.grid{grid-template-columns:1fr 1fr!important;gap:9px!important}#home>.grid .metric{padding:15px!important}#home .metric b{font-size:20px!important}.vehicle-switch>span{font-size:12px}.app{padding-left:10px!important;padding-right:10px!important}}

/* =========================================================
   CarLog Ver.0.41 - responsive desktop + mobile refinement
   ========================================================= */
@media (min-width: 900px){
  body{padding:24px 24px 150px!important}
  .app{max-width:1280px!important;margin:0 auto!important;padding-left:224px!important;position:relative}
  header,.topbar{border-radius:20px!important;margin-bottom:16px!important;min-height:68px}
  main,.screen{width:100%}
  .bottom{
    position:fixed!important;left:max(24px,calc(50% - 640px));top:24px!important;bottom:auto!important;
    width:200px!important;height:calc(100vh - 48px)!important;display:flex!important;flex-direction:column!important;
    align-items:stretch!important;justify-content:flex-start!important;padding:88px 12px 16px!important;
    border-radius:24px!important;background:linear-gradient(180deg,#102f4a,#08233a)!important;
    border:0!important;box-shadow:0 16px 40px rgba(15,42,66,.20)!important;z-index:30
  }
  .bottom button{width:100%!important;min-height:52px!important;margin:4px 0!important;color:#dbe8f4!important;
    justify-content:flex-start!important;padding:0 14px!important;border-radius:12px!important;background:transparent!important}
  .bottom button:hover{background:rgba(255,255,255,.09)!important}
  .bottom .plus{width:56px!important;height:56px!important;min-height:56px!important;margin:18px auto!important;
    align-self:center!important;justify-content:center!important}
  .card{padding:20px!important}
  .quick{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
  .quick button{min-height:82px!important}
  .grid,.stats,.summary-grid{gap:16px!important}
  .stats,.summary-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
  .form-grid .full{grid-column:1/-1!important}
  canvas{max-height:430px}
  #adDock{left:50%!important;transform:translateX(-50%)!important;max-width:728px!important}
}
@media (min-width:1200px){
  .content-grid,.dashboard-grid{display:grid!important;grid-template-columns:1.05fr 1fr!important;gap:18px!important}
}
@media (max-width:899px){
  .app{max-width:560px!important;margin:auto!important}
}
/* Accessibility: keep controls generous on both layouts */
button,input,select,textarea{min-height:48px}

/* =========================================================
   CarLog Ver.0.42
   Dedicated PC layout. Mobile and PC intentionally use
   different navigation/layout while sharing the same functions.
   ========================================================= */
.pc-sidebar,.pc-home-actions{display:none}

/* Smartphone/tablet route */
@media (max-width:899px){
  body{padding:0 0 138px!important}
  .pc-sidebar{display:none!important}
  .app{max-width:560px!important;margin:0 auto!important;padding:14px!important}
  .bottom{display:flex!important;position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:0!important;
    transform:translateX(-50%)!important;width:min(100%,560px)!important;height:auto!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;
    flex-direction:row!important;align-items:center!important;justify-content:space-around!important;border-radius:22px 22px 0 0!important}
  .bottom.hidden{display:none!important}
  .bottom button{width:auto!important;margin:0!important;justify-content:center!important}
  .bottom .plus{margin:-25px 0 0!important}
}

/* True desktop route */
@media (min-width:900px){
  html{min-width:900px}
  body{padding:24px 24px 150px 264px!important;background:#eef3f8!important}
  .pc-sidebar{
    display:flex!important;position:fixed;z-index:100;left:24px;top:24px;bottom:24px;width:216px;
    padding:18px 12px;box-sizing:border-box;flex-direction:column;gap:5px;
    background:linear-gradient(180deg,#123652 0%,#08263d 100%);border-radius:24px;
    box-shadow:0 18px 45px rgba(18,52,82,.22);color:#fff
  }
  .pc-brand{display:flex;align-items:center;gap:11px;padding:4px 8px 20px;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.16)}
  .pc-brand img{width:48px;height:48px;border-radius:13px;object-fit:cover}
  .pc-brand strong{display:block;color:#fff;font-size:21px}.pc-brand small{display:block;color:#bdd0df!important;margin-top:2px}
  .pc-sidebar button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:0 14px!important;margin:0!important;
    color:#e7f0f7!important;background:transparent!important;border:0!important;border-radius:12px!important;font-size:15px!important;text-align:left}
  .pc-sidebar button:hover{background:rgba(255,255,255,.11)!important;color:#fff!important}
  .pc-sidebar button:first-of-type{background:#247ce4!important;color:#fff!important}
  .pc-sep{height:1px;background:rgba(255,255,255,.14);margin:9px 8px}

  .app{max-width:1260px!important;width:100%!important;margin:0 auto!important;padding:0!important}
  .version{position:fixed!important;right:34px!important;top:30px!important;z-index:80}
  .screen{width:100%!important}
  #home header{min-height:70px!important;padding:0 22px!important;margin:0 0 16px!important;border-radius:20px!important}
  #home header h1{font-size:26px!important;margin-bottom:1px!important}
  #home header p{margin:0!important}
  .screen-head{min-height:70px!important;padding:0 20px!important;margin-bottom:16px!important;background:#fff!important;border-radius:20px!important;
    box-shadow:0 8px 24px rgba(34,68,104,.07)!important}
  .screen-head h2{font-size:24px!important}

  #home .vehicle-switch{width:100%!important;min-height:150px!important;padding:24px!important;border-radius:22px!important;
    background:linear-gradient(115deg,#244d73 0%,#55799a 45%,#ef9f75 100%)!important;color:#fff!important;
    box-shadow:0 12px 28px rgba(37,70,101,.16)!important}
  #home .vehicle-switch .car-thumb{width:112px!important;height:92px!important;border-radius:18px!important;background:rgba(255,255,255,.9)!important}
  #home .vehicle-switch .car-main{align-items:flex-start!important}
  #home .vehicle-switch strong{font-size:30px!important;color:#fff!important}
  #home .vehicle-switch span,#home .vehicle-switch small{color:#f4f8fb!important}
  #home .hero-km{position:absolute!important;right:48px!important;margin-top:-110px!important;z-index:2!important;color:#fff!important;text-align:right!important;
    background:rgba(6,35,59,.30)!important;padding:13px 18px!important;border-radius:16px!important}
  #home .hero-km span,#home .hero-km strong{color:#fff!important}

  .pc-home-actions{display:grid!important;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0}
  .pc-home-actions button{min-height:58px!important;color:#fff!important;border:0!important;font-size:16px!important;box-shadow:0 7px 18px rgba(40,70,100,.10)}
  .pc-fuel{background:linear-gradient(135deg,#ff706d,#ff5b5f)!important}
  .pc-maint{background:linear-gradient(135deg,#36bd8a,#24a977)!important}
  .pc-expense{background:linear-gradient(135deg,#8b67e8,#7653d9)!important}

  #home>h3{margin:18px 2px 10px!important;font-size:18px!important}
  #home>.grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
  #home>.grid .metric{min-height:112px!important;text-align:left!important;padding:20px!important}
  #home>.grid .metric span{font-size:14px!important}#home>.grid .metric b{font-size:23px!important;margin-top:8px!important}
  #home>.card{padding:22px!important}
  #home>.card:nth-of-type(n+1){margin-top:16px!important}
  #home .annual{grid-template-columns:repeat(4,minmax(0,1fr))!important}

  /* Form pages become wide two-column workspaces */
  #fuel .form,#maintenance .form,#expense .form,#vehicleEdit .form{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 22px!important;padding:26px!important
  }
  #fuel .form>div,#maintenance .form>div,#expense .form>div,.photo-editor{grid-column:1/-1}
  #fuel>.primary,#maintenance>.primary,#expense>.primary,#vehicleEdit>.primary{width:260px!important;margin-right:10px!important}
  textarea{min-height:112px!important}

  /* History / settings / vehicle pages use the available width */
  #historyList,#vehicleList,#vehicleNotesList{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
  #settings>.card,#help>.card{max-width:none!important}
  #settings{display:block!important}
  #settings .menu{width:calc(50% - 8px)!important;display:inline-flex!important;margin-right:8px!important;vertical-align:top!important}
  #help{column-count:2;column-gap:18px}
  #help .screen-head{column-span:all}
  #help .card{break-inside:avoid;margin-top:0!important;margin-bottom:18px!important}

  /* Charts: broad cards, no phone-like narrow column */
  #costs>.grid,#driving>.grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
  #driving>.grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .bars{min-height:300px!important}
  #costs>.card:last-child,#driving>.card:last-child{padding:26px!important}

  /* Mobile bottom nav is not reused as a desktop sidebar */
  .bottom{display:none!important}
  .bottom.hidden{display:none!important}
  .sheet{max-width:520px!important;left:50%!important;transform:translateX(-50%)!important}
  #adDock{left:calc(50% + 120px)!important;transform:translateX(-50%)!important}
}

/* =========================================================
   Ver.0.43 - mobile + menu repair / richer visual background
   ========================================================= */
body{
  background:
    radial-gradient(circle at 8% 4%,rgba(255,196,151,.32) 0,rgba(255,196,151,0) 26rem),
    radial-gradient(circle at 94% 10%,rgba(100,184,224,.25) 0,rgba(100,184,224,0) 28rem),
    linear-gradient(155deg,#f9f4ee 0%,#eef6fa 42%,#f4f7fb 72%,#edf3f7 100%)!important;
  background-attachment:fixed!important;
}
.card{
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(250,253,255,.93))!important;
  border:1px solid rgba(255,255,255,.92)!important;
  box-shadow:0 10px 30px rgba(31,72,101,.09),0 1px 0 rgba(255,255,255,.9) inset!important;
}
.vehicle-switch{
  background:
    radial-gradient(circle at 80% 20%,rgba(255,190,132,.34),transparent 30%),
    linear-gradient(135deg,#173d5b,#2d668c 58%,#db8c70)!important;
}
.primary,.btn-primary{
  background:linear-gradient(135deg,#286f9f,#1e587e)!important;
  box-shadow:0 8px 18px rgba(33,94,135,.22)!important;
}

/* Quick-add sheet: missing positioning in the old stylesheet caused + to appear unresponsive */
#quickBackdrop.backdrop{
  position:fixed!important;inset:0!important;z-index:1200!important;
  display:flex!important;align-items:flex-end!important;justify-content:center!important;
  padding:16px!important;background:rgba(9,28,43,.48)!important;
  backdrop-filter:blur(5px)!important;
}
#quickBackdrop.backdrop.hidden{display:none!important}
#quickBackdrop .sheet{
  position:relative!important;left:auto!important;bottom:auto!important;transform:none!important;
  width:min(100%,540px)!important;margin:0!important;padding:24px!important;
  border-radius:28px!important;background:rgba(255,255,255,.98)!important;
  box-shadow:0 24px 60px rgba(8,34,52,.28)!important;
}
#quickBackdrop .sheet h2{margin:0 0 4px!important;font-size:23px!important}
#quickBackdrop .sheet p{margin:0 0 18px!important;color:#6b7f8f!important}
#quickBackdrop .quick{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important}
#quickBackdrop .quick button{min-height:88px!important;border-radius:18px!important}

/* Mobile receives its own polished background/card treatment */
@media(max-width:899px){
  body{background:
    radial-gradient(circle at 15% 0,rgba(255,194,145,.30),transparent 20rem),
    radial-gradient(circle at 90% 15%,rgba(92,176,220,.22),transparent 22rem),
    linear-gradient(160deg,#faf4ed,#eff7fa 48%,#f3f6f9)!important}
  .app{padding-top:18px!important}
  .screen>header{padding:12px 14px!important;border-radius:20px!important;background:rgba(255,255,255,.70)!important;
    box-shadow:0 8px 26px rgba(36,70,95,.07)!important;backdrop-filter:blur(12px)}
  .vehicle-switch{box-shadow:0 12px 30px rgba(29,70,100,.18)!important}
  .metric{min-height:105px!important}
  .bottom{background:rgba(255,255,255,.92)!important;backdrop-filter:blur(18px)!important}
  .bottom .plus{position:relative!important;z-index:2!important}
}

/* ============================================================
   CarLog Ver.0.44 - Full visual rebuild
   Functional DOM IDs / handlers / storage remain compatible.
   ============================================================ */
:root{
 --cl-navy:#12334d;--cl-navy2:#0b2539;--cl-blue:#2587ee;--cl-sky:#62b8e9;
 --cl-coral:#ff6d68;--cl-green:#2fba87;--cl-violet:#8063df;--cl-amber:#ffab42;
 --cl-paper:rgba(255,255,255,.91);--cl-line:rgba(216,229,238,.9);
 --cl-text:#18354e;--cl-muted:#6b8192;--cl-shadow:0 14px 38px rgba(29,62,86,.12);
}
*{box-sizing:border-box}
html{background:#edf4f7}
body{
 color:var(--cl-text)!important;
 background:linear-gradient(180deg,#d8e9f4 0,#f8e8dc 34%,#edf4f6 68%,#e8f0f4 100%)!important;
 min-height:100vh;position:relative;overflow-x:hidden;
}
.ambient-scene{position:fixed;inset:0 0 auto 0;height:360px;z-index:-2;overflow:hidden;
 background:linear-gradient(180deg,#b8d9ed 0%,#f8c5a4 58%,#f8dfca 100%)}
.ambient-sun{position:absolute;width:94px;height:94px;border-radius:50%;right:15%;top:74px;
 background:radial-gradient(circle,#fff8c8 0,#ffd176 38%,rgba(255,180,92,.15) 70%);box-shadow:0 0 70px rgba(255,188,91,.65)}
.ambient-mountain{position:absolute;bottom:-60px;width:70%;height:210px;background:#59758a;opacity:.62;clip-path:polygon(0 100%,18% 54%,31% 70%,47% 22%,63% 64%,76% 39%,100% 100%)}
.ambient-mountain.m1{left:-8%}.ambient-mountain.m2{right:-15%;transform:scaleX(-1);opacity:.36;bottom:-80px}
.app{position:relative}
.card{background:var(--cl-paper)!important;border:1px solid rgba(255,255,255,.88)!important;
 box-shadow:var(--cl-shadow)!important;backdrop-filter:blur(15px);border-radius:22px!important}
header,.topbar,.screen-head{background:rgba(255,255,255,.82)!important;backdrop-filter:blur(18px);
 border:1px solid rgba(255,255,255,.8)!important;box-shadow:0 9px 28px rgba(28,61,85,.08)!important}
.vehicle-switch{background:linear-gradient(115deg,rgba(17,54,82,.96),rgba(44,104,142,.92) 54%,rgba(235,142,107,.93))!important;
 border:1px solid rgba(255,255,255,.3)!important;box-shadow:0 16px 38px rgba(20,54,80,.22)!important}
.vehicle-switch strong,.vehicle-switch span,.vehicle-switch small{color:#fff!important}
.metric{background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(246,251,253,.91))!important;
 border:1px solid rgba(255,255,255,.92)!important;box-shadow:0 8px 24px rgba(31,70,97,.09)!important;border-radius:20px!important}
.metric b{color:#123a58!important}
.primary,.btn-primary{background:linear-gradient(135deg,#288be9,#1769c8)!important;border:0!important;color:#fff!important;
 box-shadow:0 9px 22px rgba(29,113,201,.24)!important}
input,select,textarea{background:rgba(255,255,255,.94)!important;border:1.5px solid #d9e5ed!important;border-radius:14px!important}
input:focus,select:focus,textarea:focus{border-color:#3b8dd1!important;box-shadow:0 0 0 4px rgba(59,141,209,.12)!important}
.chips button,.tabs button{border-radius:999px!important}
.bar{background:linear-gradient(180deg,#58b6ed,#267ed7)!important}
.ad-area{background:rgba(255,255,255,.86)!important;backdrop-filter:blur(10px)}
#quickBackdrop .sheet{background:rgba(252,254,255,.98)!important}
#quickBackdrop .quick button:nth-child(1){background:linear-gradient(135deg,#ff7b72,#ff5d60)!important;color:white!important}
#quickBackdrop .quick button:nth-child(2){background:linear-gradient(135deg,#42c493,#26aa7a)!important;color:white!important}
#quickBackdrop .quick button:nth-child(3){background:linear-gradient(135deg,#9276ea,#7456d7)!important;color:white!important}

/* Smartphone: compact scenic dashboard */
@media(max-width:899px){
 body{padding-bottom:138px!important}
 .ambient-scene{height:310px}
 .app{max-width:570px!important;padding:14px!important}
 #home header{background:transparent!important;border:0!important;box-shadow:none!important;padding:6px 4px 12px!important}
 #home header h1{font-size:29px!important;color:#12324b!important;letter-spacing:-.5px}
 #home header p{color:#35566e!important}
 .vehicle-switch{min-height:166px!important;border-radius:25px!important;padding:20px!important;position:relative;overflow:hidden}
 .vehicle-switch:after{content:"";position:absolute;inset:auto -15% -55% 22%;height:145px;background:rgba(255,255,255,.08);transform:rotate(-8deg);border-radius:50%}
 .vehicle-switch .car-thumb{width:112px!important;height:92px!important;border-radius:18px!important;background:rgba(255,255,255,.93)!important;z-index:1}
 .vehicle-switch strong{font-size:23px!important}
 #home>.grid{grid-template-columns:repeat(2,1fr)!important;gap:11px!important}
 #home>.grid .metric{min-height:112px!important;padding:16px!important;text-align:left!important}
 #home>.grid .metric span{font-size:13px!important}#home>.grid .metric b{font-size:21px!important;margin-top:7px!important}
 .quick{gap:10px!important}.quick button{border-radius:18px!important}
 .bottom{background:rgba(250,253,255,.91)!important;border-top:1px solid rgba(255,255,255,.95)!important;
  backdrop-filter:blur(20px)!important;box-shadow:0 -10px 30px rgba(27,58,80,.13)!important}
 .bottom .plus{background:linear-gradient(145deg,#328ff0,#176bd0)!important;box-shadow:0 8px 22px rgba(27,107,202,.34)!important}
 .screen-head{border-radius:20px!important}
}

/* Desktop: dedicated scenic workspace */
@media(min-width:900px){
 body{padding:26px 28px 150px 270px!important}
 .ambient-scene{height:100vh;background:
   linear-gradient(90deg,rgba(232,241,246,.28),rgba(246,224,207,.2)),
   linear-gradient(180deg,#b7d7e9 0,#efc2a5 36%,#dce9ed 74%,#d4e1e7 100%)}
 .pc-sidebar{left:26px!important;top:26px!important;bottom:26px!important;width:218px!important;
   background:linear-gradient(180deg,rgba(15,50,76,.97),rgba(6,31,49,.98))!important;
   border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 22px 52px rgba(12,39,58,.25)!important}
 .pc-brand img{box-shadow:0 5px 16px rgba(0,0,0,.18)}
 .app{max-width:1320px!important}
 #home header{background:rgba(255,255,255,.83)!important}
 #home .vehicle-switch{min-height:190px!important;padding:30px!important;border-radius:25px!important}
 #home .vehicle-switch .car-thumb{width:150px!important;height:116px!important}
 #home .vehicle-switch strong{font-size:34px!important}
 #home>.grid{grid-template-columns:repeat(4,1fr)!important}
 #home>.grid .metric{min-height:120px!important;padding:20px!important}
 .pc-home-actions{gap:16px!important}
 .pc-home-actions button{min-height:62px!important;border-radius:16px!important;font-size:16px!important}
 .pc-fuel{background:linear-gradient(135deg,#ff766f,#f9535c)!important}
 .pc-maint{background:linear-gradient(135deg,#3cc18f,#22a777)!important}
 .pc-expense{background:linear-gradient(135deg,#9174e7,#7353d3)!important}
 #historyList,#vehicleList,#vehicleNotesList{gap:16px!important}
 .screen-head{padding:0 24px!important}
 #costs>.card:last-child,#driving>.card:last-child{min-height:410px}
 .bottom{display:none!important}
 #adDock{left:calc(50% + 120px)!important}
}

/* ============================================================
   Ver.0.45 - reference faithful visual pass
   ============================================================ */
:root{--glass:rgba(255,255,255,.88);--nav:#173b59;--blue:#1683f3;--red:#ff5c61;--green:#18aa7b;--purple:#7957d9}
body{
 background:
 linear-gradient(rgba(13,39,59,.08),rgba(255,236,221,.08)),
 linear-gradient(180deg,#8fc2df 0%,#efb18c 28%,#dfc7b6 48%,#8296a2 100%)!important;
}
.ambient-scene{height:100vh!important;background:
 radial-gradient(circle at 69% 13%,#ffe3a1 0 2.5%,rgba(255,184,101,.52) 7%,transparent 18%),
 linear-gradient(180deg,#75b5dc 0%,#f2aa80 29%,#dfad91 45%,#8295a0 75%,#5f7380 100%)!important}
.ambient-mountain{background:#304c60!important;opacity:.72!important}
.card,.metric{background:rgba(255,255,255,.88)!important;backdrop-filter:blur(12px)!important;border:1px solid rgba(255,255,255,.72)!important}
.vehicle-switch{background:
 linear-gradient(0deg,rgba(9,37,58,.12),rgba(9,37,58,.08)),
 linear-gradient(120deg,#17405f,#427a99 48%,#e48f67)!important}
.pc-sidebar{background:linear-gradient(180deg,rgba(18,55,83,.98),rgba(11,36,56,.96))!important}
.pc-sidebar button:first-of-type{background:#1683f3!important}
.pc-home-actions .pc-fuel{background:linear-gradient(135deg,#ff6967,#ff4054)!important}
.pc-home-actions .pc-maint{background:linear-gradient(135deg,#2bc493,#0f9e73)!important}
.pc-home-actions .pc-expense{background:linear-gradient(135deg,#8a69e7,#6d4bcf)!important}
#home>.grid .metric:nth-child(1){border-top:4px solid #ff6d62!important}
#home>.grid .metric:nth-child(2){border-top:4px solid #27b99a!important}
#home>.grid .metric:nth-child(3){border-top:4px solid #ffad39!important}
#home>.grid .metric:nth-child(4){border-top:4px solid #8061dc!important}
@media(max-width:899px){
 body{background:linear-gradient(180deg,#8bbdde 0,#f1b28f 31%,#eee2d8 58%,#edf3f6 100%)!important}
 .ambient-scene{height:420px!important}
 #home header{color:#fff!important;text-shadow:0 1px 8px rgba(13,41,61,.25)}
 #home header h1,#home header p{color:#fff!important}
 #home .vehicle-switch{min-height:190px!important;margin-top:0!important}
 #home>.grid{margin-top:12px!important}
 .bottom{border-radius:0!important}
}
@media(min-width:900px){
 body{padding-top:18px!important;padding-right:18px!important}
 .pc-sidebar{top:18px!important;bottom:18px!important;left:18px!important}
 .app{max-width:1380px!important}
 #home .vehicle-switch{min-height:205px!important}
 #home>.grid .metric{min-height:112px!important}
}

/* ============================================================
   CarLog Ver.0.50 NEW UI
   Reference mockup is now the layout blueprint, not just a palette.
   ============================================================ */
:root{--ink:#123653;--muted:#72869a;--blue:#1683f3;--red:#ff5662;--green:#18b286;--purple:#7858db;--orange:#ffad39}
.compat-values{display:none!important}
body{background:#eef4f7!important;color:var(--ink)!important}
.ambient-scene{height:100vh!important;background:
 radial-gradient(circle at 67% 10%,rgba(255,225,151,.98) 0 2.4%,rgba(255,177,91,.44) 7%,transparent 18%),
 linear-gradient(180deg,#6eaad0 0%,#eaa47f 27%,#d9a789 45%,#778b96 76%,#536c79 100%)!important}
.ambient-scene:after{content:"";position:absolute;inset:46% 0 0;background:linear-gradient(180deg,rgba(47,73,86,.16),rgba(24,52,67,.46));clip-path:polygon(0 25%,12% 10%,22% 27%,34% 4%,45% 24%,56% 8%,67% 30%,79% 9%,89% 24%,100% 4%,100% 100%,0 100%)}
.ref-topbar{display:flex!important;align-items:center;justify-content:space-between}
.ref-hero{position:relative;overflow:hidden;background:
 radial-gradient(circle at 73% 23%,rgba(255,215,145,.7),transparent 17%),
 linear-gradient(120deg,rgba(14,54,82,.97),rgba(50,101,135,.88) 52%,rgba(232,140,102,.9));
 color:#fff;border:1px solid rgba(255,255,255,.3);box-shadow:0 15px 38px rgba(17,49,71,.24)}
.ref-hero:after{content:"";position:absolute;left:-5%;right:-5%;bottom:-36%;height:62%;background:rgba(13,46,67,.35);clip-path:polygon(0 65%,18% 28%,35% 57%,52% 18%,67% 50%,84% 22%,100% 55%,100% 100%,0 100%)}
.ref-hero-copy,.ref-car-visual,.hero-km{position:relative;z-index:2}
.ref-hero-copy .eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:800;opacity:.85}
.ref-hero-copy h2{color:#fff!important;margin:4px 0;font-weight:900}
.ref-hero-copy div{display:flex;gap:10px;align-items:center}.ref-hero-copy b,.ref-hero-copy span{color:#fff!important}
.ref-change{background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.24)!important;min-height:34px!important;margin-top:8px}
.ref-car-visual{background:transparent!important;display:flex;align-items:center;justify-content:center}
.ref-car-visual svg{width:100%!important;height:100%!important;filter:drop-shadow(0 13px 12px rgba(0,0,0,.25))}
.ref-car-visual img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 13px 12px rgba(0,0,0,.25))}
.ref-stats{display:grid;gap:10px}
.ref-stat{display:flex;align-items:center;text-align:left;gap:12px;background:rgba(255,255,255,.92)!important;border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 9px 26px rgba(30,65,89,.12)!important}
.ref-stat .stat-icon{flex:0 0 auto;display:grid;place-items:center;border-radius:50%;color:#fff}
.ref-stat small,.ref-stat em{display:block;color:var(--muted);font-style:normal}.ref-stat b{display:block;color:var(--ink);white-space:nowrap}
.ref-stat.fuel .stat-icon{background:var(--red)}.ref-stat.road .stat-icon{background:var(--green)}.ref-stat.cost .stat-icon{background:var(--orange)}.ref-stat.maint .stat-icon{background:var(--purple)}
.ref-actions{display:grid;gap:12px}.ref-action{color:#fff!important;border:0!important;font-weight:800!important;box-shadow:0 8px 20px rgba(31,61,84,.18)!important}
.ref-action.fuel{background:linear-gradient(135deg,#ff6668,#ff4057)!important}.ref-action.maintenance{background:linear-gradient(135deg,#2cc695,#0ca878)!important}.ref-action.expense{background:linear-gradient(135deg,#8c6ae8,#6f4fd2)!important}
.ref-dashboard{display:grid;gap:12px}.ref-panel{margin:0!important}.ref-panel h3{margin:0}.recent-row{border-bottom:1px solid #e7eef3!important;padding:9px 2px!important}
.ref-line-chart{height:205px;position:relative;padding:10px 4px 22px;background:linear-gradient(180deg,rgba(22,131,243,.03),rgba(22,131,243,.08));border-radius:14px}
.ref-line-chart svg{width:100%;height:165px;overflow:visible}.chart-months{display:flex;justify-content:space-between;font-size:11px;color:#75899b}
.ref-cost-body{display:flex;align-items:center;justify-content:space-around;gap:18px;padding:10px}
.ref-donut{width:138px;height:138px;border-radius:50%;display:grid;place-items:center;position:relative}
.ref-donut:after{content:"";position:absolute;width:82px;height:82px;border-radius:50%;background:#fff}
.ref-donut span{z-index:1;text-align:center;font-size:11px;color:#77899a}.ref-donut b{display:block;color:var(--ink);font-size:18px}
.ref-legend{flex:1}.ref-legend div{display:grid;grid-template-columns:14px 1fr auto;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #edf1f4;font-size:13px}.ref-legend i{width:9px;height:9px;border-radius:50%}.lg-fuel{background:var(--red)}.lg-maint{background:var(--green)}.lg-other{background:var(--purple)}
.ref-year-bars{height:190px;display:flex;align-items:flex-end;gap:7px;padding:10px 4px 0;border-bottom:1px solid #dce6ed}.yb{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.yb-stack{height:155px;width:min(20px,80%);display:flex;flex-direction:column-reverse;justify-content:flex-start}.yb-stack i{display:block;width:100%}.yb .f{background:var(--red)}.yb .m{background:var(--green)}.yb .o{background:var(--purple)}.yb small{font-size:9px;color:#7a8d9d;margin-top:5px}
.privacy{color:#536f82!important;text-align:center}
@media(min-width:900px){
 body{padding:20px 20px 130px 262px!important}
 .pc-sidebar{left:18px!important;top:18px!important;bottom:18px!important;width:220px!important;border-radius:0 0 22px 0!important}
 .app{max-width:1360px!important}
 .ref-topbar{height:72px!important;border-radius:18px!important;padding:0 22px!important;margin-bottom:16px!important}
 .ref-topbar h1{font-size:27px!important}.ref-topbar p{margin:0}
 .ref-hero{height:205px;border-radius:20px;padding:28px 32px;display:grid;grid-template-columns:1fr 1.35fr .7fr;align-items:center}
 .ref-hero-copy h2{font-size:31px!important}.ref-car-visual{height:175px!important;width:100%!important}.hero-km{justify-self:end;text-align:right;background:rgba(10,39,60,.35)!important;padding:12px 16px!important;border-radius:13px!important;color:#fff!important}.hero-km span,.hero-km strong{color:#fff!important;display:block}
 .ref-stats{grid-template-columns:repeat(4,1fr);margin-top:12px}.ref-stat{min-height:88px;border-radius:15px!important;padding:14px!important}.ref-stat .stat-icon{width:43px;height:43px}.ref-stat b{font-size:19px}.ref-stat em{font-size:10px}
 .ref-actions{grid-template-columns:repeat(3,1fr);margin:12px 0}.ref-action{height:58px;border-radius:12px!important;font-size:15px!important}
 .ref-dashboard{grid-template-columns:1fr 1fr}.ref-panel{min-height:245px;padding:18px!important}
 #home{display:block}.version{top:27px!important}
}
@media(max-width:899px){
 body{padding:0 0 92px!important;background:linear-gradient(180deg,#79b2d4 0,#eda47d 25%,#eef4f7 55%)!important}
 .ambient-scene{height:310px!important}
 .app{padding:0 12px 20px!important}
 .ref-topbar{background:transparent!important;border:0!important;box-shadow:none!important;padding:18px 8px 10px!important}.ref-topbar h1,.ref-topbar p{color:#fff!important;text-shadow:0 2px 8px rgba(17,51,75,.28)}.ref-topbar h1{font-size:31px!important}.ref-topbar p{margin:0;font-size:13px}
 .ref-topbar .icon{background:rgba(255,255,255,.88)!important}
 .ref-hero{height:205px;border-radius:21px;padding:18px;display:grid;grid-template-columns:1fr 1.15fr;grid-template-rows:1fr auto}
 .ref-hero-copy h2{font-size:24px!important}.ref-car-visual{height:128px!important}.hero-km{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;color:#fff!important;border-top:1px solid rgba(255,255,255,.2);padding-top:8px}.hero-km span,.hero-km strong{color:#fff!important}
 .ref-stats{grid-template-columns:1fr 1fr;margin-top:10px}.ref-stat{min-height:93px;border-radius:14px!important;padding:10px!important;gap:8px}.ref-stat .stat-icon{width:34px;height:34px}.ref-stat b{font-size:16px}.ref-stat small{font-size:10px}.ref-stat em{font-size:9px}
 .ref-actions{grid-template-columns:repeat(3,1fr);margin:11px 0}.ref-action{height:67px;border-radius:13px!important;padding:5px!important;font-size:20px!important}.ref-action span{display:block;font-size:11px;margin-top:3px}
 .ref-dashboard{grid-template-columns:1fr}.ref-panel{padding:15px!important}.ref-line-chart{height:190px}.ref-line-chart svg{height:150px}
 .ref-cost-body{padding:4px}.ref-donut{width:116px;height:116px}.ref-donut:after{width:70px;height:70px}
 .bottom{height:70px!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important}.bottom .plus{width:54px!important;height:54px!important;min-height:54px!important;margin:-22px 0 0!important}
 .version{display:none!important}
}

/* Ver.0.51 vehicle image selector + recent record icons */
.vehicle-image-setting{grid-column:1/-1;padding:8px 0}
.body-type-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:10px}
.body-choice{background:#fff!important;border:1px solid #dbe6ee!important;border-radius:14px!important;padding:8px!important;min-height:104px!important;color:#173750!important}
.body-choice.selected{border:2px solid #1683f3!important;box-shadow:0 0 0 3px rgba(22,131,243,.11)!important}
.body-choice span{display:block;height:58px}.body-choice svg{width:100%;height:58px}.body-choice b{font-size:11px}
.vehicle-photo-preview .generated-car,.ref-car-visual .generated-car{filter:drop-shadow(0 13px 11px rgba(0,0,0,.24))}
#recent .recent-row,#recent>button,#recent>div{position:relative;display:grid!important;grid-template-columns:46px 1fr auto 16px!important;align-items:center!important;column-gap:10px!important}
.record-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:18px;grid-row:1/3}
.record-icon.fuel{background:linear-gradient(135deg,#ff7a70,#ff4f59)}.record-icon.maint{background:linear-gradient(135deg,#2ac79a,#12a77b)}
.record-icon.wash{background:linear-gradient(135deg,#54a8ff,#287fe6)}.record-icon.tire{background:linear-gradient(135deg,#9b78ef,#744ed9)}.record-icon.other{background:linear-gradient(135deg,#ffb24d,#f28b24)}
.record-chevron{font-size:24px;color:#8aa0b2}
@media(max-width:899px){.body-type-choices{grid-template-columns:repeat(2,1fr)}.body-choice{min-height:112px}}

/* Ver.0.52 stable recent-record layout */
#recent .recent-item{
 width:100%;border:0;border-bottom:1px solid #e1e9ef;background:transparent;
 display:grid!important;grid-template-columns:42px minmax(0,1fr) auto 12px!important;
 gap:10px;align-items:center;text-align:left;padding:11px 0!important;color:#173750;
}
#recent .recent-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
#recent .recent-copy b{font-size:15px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#recent .recent-copy b small{font-size:11px;font-weight:500;color:#728ca0;margin-left:7px}
#recent .recent-copy>span{font-size:12px;color:#728ca0;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#recent .recent-price{font-size:14px;white-space:nowrap;text-align:right;align-self:center}
#recent .record-chevron{width:12px;text-align:right}
@media(max-width:599px){
 #recent .recent-item{grid-template-columns:38px minmax(0,1fr) auto 8px!important;gap:7px;padding:10px 0!important}
 #recent .record-icon{width:34px;height:34px;font-size:15px}
 #recent .recent-copy b{font-size:14px}
 #recent .recent-copy b small{display:inline;font-size:10px;margin-left:5px}
 #recent .recent-copy>span{font-size:11px}
 #recent .recent-price{font-size:13px;min-width:max-content}
 #recent .record-chevron{font-size:18px}
}
