/* All personal surfaces are self-contained: no trackers, external fonts or images. */
body.mycar-app{background:var(--bg);min-height:100vh;padding-bottom:92px}.app-shell{max-width:980px;margin:auto;padding:0 17px}.app-header{display:flex;align-items:center;justify-content:space-between;padding:17px 0 12px;gap:9px}.app-header-left{display:flex;align-items:center;gap:10px;min-width:0}.app-mark{width:41px;height:41px;border-radius:13px;background:var(--navy);display:grid;place-items:center;color:white;font-size:22px}.app-header h1{font-size:18px;margin:0;letter-spacing:.03em}.app-header small{color:var(--muted);font-size:11px}.app-header-actions{display:flex;align-items:center;gap:7px}.round-btn{border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:12px;min-width:39px;height:39px;padding:0 9px;font-weight:750;display:grid;place-items:center}.app-kicker{font-size:11px;font-weight:800;letter-spacing:.09em;color:var(--muted);text-transform:uppercase}.app-page-title{font-size:25px;margin:5px 0 13px}.app-top-bar{display:flex;justify-content:space-between;align-items:flex-end;gap:8px;margin-bottom:13px;flex-wrap:wrap}.app-top-actions{display:flex;gap:8px;flex-wrap:wrap}.mini-btn{background:var(--white);border:1px solid var(--line);border-radius:11px;padding:10px 13px;color:var(--navy);font-size:12px;font-weight:750}.mini-btn.primary{background:var(--accent);color:white;border-color:var(--accent)}.mini-btn.danger{color:#af432e;border-color:#edd2cc}.surface{border:1px solid var(--line);border-radius:19px;background:var(--white);padding:19px;box-shadow:0 4px 16px rgba(25,50,65,.025)}.surface+.surface{margin-top:13px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:22px 0 11px}.section-title h2{font-size:18px;margin:0}.section-title button{font-size:12px;color:var(--teal);font-weight:750;border:0;background:none}.hero-car{border-radius:23px;background:linear-gradient(145deg,#263d4e,#152b3c);padding:22px;color:white;position:relative;overflow:hidden;margin-bottom:14px}.hero-car:before{content:'';position:absolute;width:220px;height:220px;border:45px solid #ffffff08;border-radius:50%;top:-140px;right:-92px}.hero-car-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.car-picker{background:#ffffff12;color:white;border:1px solid #ffffff36;border-radius:10px;padding:9px 30px 9px 10px;font-weight:750;max-width:250px;font-size:14px;min-width:0}.car-picker option{color:#1f3647}.hero-car .car-eyebrow{font-size:11px;color:#afc4ce;text-transform:uppercase;font-weight:700;letter-spacing:.1em}.hero-car b.car-title{font-size:23px;display:block;margin-top:6px;color:#fff}.hero-car .odometer{font-size:34px;font-weight:800;letter-spacing:-.05em;margin:16px 0}.hero-car .odometer small{font-size:13px;letter-spacing:0;font-weight:500;color:#c5d1d7}.hero-car-actions{display:flex;gap:7px;flex-wrap:wrap}.hero-car-actions button{border:1px solid #ffffff44;color:#fff;border-radius:10px;background:#ffffff12;padding:9px 11px;font-size:12px;font-weight:750}.hero-car-photo{position:absolute;right:17px;bottom:55px;width:110px;height:78px;object-fit:cover;border:2px solid #ffffff44;border-radius:11px;opacity:.9;pointer-events:none}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stat-card{border-radius:17px;border:1px solid var(--line);background:var(--white);padding:17px;min-width:0}.stat-card small{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.stat-card strong{font-size:20px;font-weight:800;color:var(--navy);line-height:1.18;display:block;overflow-wrap:anywhere}.stat-card span{display:block;font-size:10px;color:var(--muted);margin-top:7px}.quick-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.quick-action{background:var(--white);border:1px solid var(--line);border-radius:15px;padding:15px 7px;display:flex;align-items:center;flex-direction:column;gap:8px;color:var(--ink);text-align:center;font-weight:700;font-size:11px}.quick-action .glyph{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:#eef5f3;color:var(--teal);font-size:21px}.quick-action:hover{border-color:var(--teal)}.bottom-nav{position:fixed;z-index:45;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:var(--white);border-top:1px solid var(--line);padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom));box-shadow:0 -6px 25px #20384b0a}.bottom-nav button{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px;align-items:center;border:0;background:none;color:var(--muted);padding:6px 2px;border-radius:10px;font-size:10px;font-weight:650}.bottom-nav button.active{color:var(--accent);background:rgba(185,84,53,.07)}.nav-ico{font-size:23px;line-height:1.2}.empty-state{text-align:center;padding:32px 18px;background:var(--white);border:1px dashed #cbd9df;border-radius:18px}.empty-state .empty-icon{font-size:38px;margin:0 0 12px}.empty-state h3{margin-bottom:8px;font-size:18px}.empty-state p{font-size:13px;max-width:420px;margin:0 auto 17px}.record-list{display:flex;flex-direction:column;gap:8px}.record-item{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);background:var(--white);border-radius:14px;min-width:0}.record-glyph{flex:none;display:grid;place-items:center;width:40px;height:40px;background:#f0f5f5;color:var(--teal);border-radius:12px;font-size:21px}.record-body{flex:1;min-width:0}.record-body b{display:block;font-size:13px;color:var(--navy);overflow-wrap:anywhere}.record-body small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.record-right{text-align:right;display:flex;align-items:center;gap:7px;flex-shrink:0}.record-right strong{font-size:13px;display:block;color:var(--navy);white-space:nowrap}.record-right small{color:var(--muted);font-size:10px}.icon-button{width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:var(--white);font-size:15px;color:var(--muted)}.status-chip{display:inline-flex;align-items:center;padding:4px 9px;border-radius:10px;font-size:10px;font-weight:800;background:#e4f2ed;color:#14745f;white-space:nowrap}.status-chip.warning{background:#fff1df;color:#98600e}.status-chip.danger{background:#ffebea;color:#b43c2c}.compact-note{font-size:12px;color:var(--muted);margin:9px 0}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:14px}.bar-chart{height:150px;display:flex;align-items:end;gap:7px;padding-top:16px}.bar-group{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;min-width:0;height:100%}.bar-rail{height:112px;width:100%;display:flex;align-items:end;justify-content:center;background:#f2f6f6;border-radius:7px}.bar-fill{width:75%;min-height:3px;border-radius:7px 7px 3px 3px;background:var(--teal);max-width:28px}.bar-group small{font-size:10px;color:var(--muted)}.filter-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.filter-row input,.filter-row select{border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--white);color:var(--ink);font-size:12px;max-width:100%;min-width:0}.filter-row select{flex:1}.link-list{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.link-list button,.link-list a{display:flex;align-items:center;gap:10px;text-align:left;padding:15px;border:1px solid var(--line);background:var(--white);border-radius:14px;color:var(--navy);font-size:13px;font-weight:750}.link-list button span,.link-list a span{font-size:20px}.link-list button:hover,.link-list a:hover{border-color:var(--teal)}.info-card{padding:15px;border:1px solid var(--line);background:var(--white);border-radius:15px;margin:10px 0}.info-card h3{font-size:16px;margin:0 0 7px}.info-card p{font-size:12px;margin:0 0 8px}.info-card .actions{display:flex;gap:8px;margin-top:11px;flex-wrap:wrap}.surface-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.surface-head h2{font-size:17px;margin:0}.due-list{display:grid;gap:7px}.due-item{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.due-item:last-child{border-bottom:0}.due-item b{font-size:12px;color:var(--navy)}.due-item small{display:block;font-size:11px;color:var(--muted)}.more-footnote{font-size:11px;color:var(--muted);margin-top:20px}.notice{padding:13px;border-radius:13px;background:#e9f5f1;color:#146f5e;font-size:12px;margin:12px 0}.notice.warn{background:#fff0e3;color:#865111}.backup-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.backup-actions .button{flex:1;min-width:160px}.app-dialog{width:min(540px,calc(100% - 24px));max-height:calc(100dvh - 20px);border:1px solid var(--line);border-radius:22px;padding:0;box-shadow:0 25px 90px #10263b55;background:var(--white);color:var(--ink);overscroll-behavior:contain}.app-dialog::backdrop{background:#152b3c9e;backdrop-filter:blur(3px)}.dialog-head{position:sticky;top:0;background:var(--white);z-index:2;padding:19px 19px 14px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}.dialog-head h2{font-size:20px;margin:0}.dialog-body{padding:18px;overflow:auto;max-height:calc(100dvh - 160px)}.dialog-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dialog-grid .span2{grid-column:span 2}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:0;background:var(--white);padding:12px 18px;border-top:1px solid var(--line)}.field-help{font-size:10px;color:var(--muted);margin-top:4px}.dialog-error{font-size:12px;color:#b43c2c;margin:8px 0}.toast{position:fixed;z-index:100;left:50%;bottom:calc(83px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--navy);color:white;border-radius:12px;padding:12px 17px;box-shadow:0 10px 35px #182f3e40;font-size:13px;max-width:90vw;min-width:200px;text-align:center}.toast[hidden]{display:none}.danger-text{color:#b43c2c!important}.tiny-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.data-count{font-size:30px;color:var(--navy);font-weight:800}.no-car-welcome{margin-top:18px;padding:37px 20px}.app-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:13px;font-size:11px}.app-links a{text-decoration:underline;color:var(--teal)}.secondary-text{color:var(--muted)}.trend-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}.trend-line:last-child{border-bottom:none}.trend-line b{color:var(--navy)}.mini-badge{display:inline-block;padding:3px 8px;border-radius:8px;background:#f0f5f4;color:var(--teal);font-size:10px;font-weight:800}
body[data-theme=dark]{--navy:#edf5f7;--ink:#dde9ed;--muted:#a4b3bc;--accent:#ec9779;--teal:#6ad2b6;--bg:#10202c;--white:#1b3040;--line:#38505d;--warm:#2a353c;--shadow:0 14px 45px rgba(0,0,0,.12);color-scheme:dark}body[data-theme=dark] .hero-car{background:#263d4e}body[data-theme=dark] .stat-card,body[data-theme=dark] .surface{box-shadow:none}body[data-theme=dark] .bar-rail,body[data-theme=dark] .record-glyph,body[data-theme=dark] .quick-action .glyph{background:#254354}body[data-theme=dark] .status-chip{background:#244e45;color:#84dbbb}body[data-theme=dark] .status-chip.warning{background:#59462d;color:#f9c778}body[data-theme=dark] .status-chip.danger{background:#593a39;color:#ffaaa1}body[data-theme=dark] .app-dialog::backdrop{background:#050e16aa}body[data-theme=dark] .notice{background:#214639;color:#95d9bc}body[data-theme=dark] .notice.warn{background:#523a20;color:#ffd195}body[data-theme=dark] .form-field input,body[data-theme=dark] .form-field select,body[data-theme=dark] .form-field textarea{background:#142937;color:var(--ink);border-color:var(--line)}
@media(max-width:760px){.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.quick-action{padding:12px 4px;font-size:10px}.quick-action .glyph{width:35px;height:35px}.two-column{grid-template-columns:1fr}}@media(max-width:470px){.app-shell{padding:0 12px}.app-page-title{font-size:22px}.stat-card{padding:13px}.stat-card strong{font-size:18px}.hero-car{padding:19px}.hero-car .odometer{font-size:30px}.hero-car-photo{width:75px;height:58px}.quick-grid{gap:5px}.quick-action{gap:6px;font-size:9px;padding:10px 2px}.quick-action .glyph{width:30px;height:30px;font-size:18px}.dialog-grid{gap:9px}.dialog-body{padding:12px}.form-field>span{font-size:11px}.form-field input,.form-field select,.form-field textarea{padding:10px 8px}.record-right{gap:4px}.record-item{padding:11px 9px;gap:8px}.record-glyph{width:35px;height:35px}.record-right strong{font-size:11px}.link-list{gap:6px}.link-list button,.link-list a{padding:12px 10px;font-size:12px}}@media(max-width:350px){.dialog-grid{grid-template-columns:1fr}.dialog-grid .span2{grid-column:span 1}.app-header h1{font-size:15px}.quick-action{font-size:8px}}@media(min-width:980px){body.mycar-app{padding-bottom:0}.app-shell{padding-bottom:45px}.bottom-nav{position:sticky;bottom:0;max-width:950px;margin:auto;border:1px solid var(--line);border-radius:17px;box-shadow:0 6px 40px #142c3c11}.bottom-nav button{font-size:12px}}
