:root{--bg:#f3f5f4;--surface:#fff;--ink:#151a1d;--muted:#697177;--line:#dde1df;--dark:#11161a;--side:#0e1316;--lime:#d7ff58;--green:#17745c;--green-soft:#e4f6ef;--orange:#f0a647;--red:#d96b65;--blue:#5d8fe5;--purple:#8b78d7;--shadow:0 12px 35px rgba(18,25,23,.06)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:"DM Sans",sans-serif;font-size:16px}button,input,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:grid;grid-template-columns:244px 1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:var(--side);color:#fff;padding:24px 18px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;font:800 18px "Manrope",sans-serif;padding:0 8px 28px}.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;background:var(--lime);color:#101619;font-size:12px;letter-spacing:-.04em}.main-nav{display:grid;gap:6px}.nav-item{height:44px;border:0;background:transparent;color:#8e989e;border-radius:9px;text-align:left;padding:0 12px;display:grid;grid-template-columns:25px 1fr auto;align-items:center;font-weight:600;font-size:14px}.nav-item:hover{color:#fff;background:#171e22}.nav-item.active{background:#20282d;color:#fff}.nav-item.active>span{color:var(--lime)}.nav-item b{font-size:11px;background:#30393e;padding:3px 7px;border-radius:999px;color:#ccd3d5}.sidebar-card{margin-top:auto;background:#182024;border:1px solid #283238;border-radius:12px;padding:16px}.mini-label,.overline{font-size:11px;font-weight:800;letter-spacing:.13em;color:#7e898e}.sidebar-card strong{display:block;font-size:14px;margin:7px 0 11px}.goal-track{height:5px;border-radius:99px;background:#30393e;overflow:hidden}.goal-track i{display:block;height:100%;width:0;background:var(--lime);border-radius:inherit}.sidebar-card small{display:block;margin-top:8px;color:#8f999d;font-size:11px}.sidebar-action{border:0;background:transparent;color:var(--lime);font-size:11px;font-weight:700;padding:10px 0 0}.profile{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:18px 5px 0}.profile>span{width:34px;height:34px;border-radius:50%;background:#2b353a;display:grid;place-items:center;font-size:11px;font-weight:700}.profile div{display:grid}.profile strong{font-size:13px}.profile small{color:#7f898e;font-size:11px}.workspace{grid-column:2;min-width:0;padding:0 34px 55px}.workspace-header{height:94px;display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);margin-bottom:25px}.workspace-header>div:first-of-type{margin-right:auto}.workspace-header p{margin:0 0 3px;color:var(--muted);font-size:12px}.workspace-header h1{font:700 23px "Manrope",sans-serif;margin:0}.header-actions{display:flex;align-items:center;gap:10px}.sample-pill{font-size:12px;font-weight:700;color:#326958;background:#e5f4ee;border:1px solid #cce5db;border-radius:999px;padding:7px 10px}.month-select select,.table-filters select{height:39px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:0 32px 0 11px;font-weight:600;color:#394046;font-size:13px}.primary-button{border:0;background:var(--dark);color:#fff;border-radius:8px;min-height:40px;padding:0 15px;font-size:13px;font-weight:700;box-shadow:0 4px 12px rgba(0,0,0,.09)}.primary-button:hover{background:#293238;transform:translateY(-1px)}.primary-button.wide{width:100%;height:45px;margin-top:6px}.menu-button{display:none;border:0;background:#fff;border-radius:8px;width:40px;height:40px}.view{display:none}.view.active{display:block}.formula-note{background:#e8eee9;border:1px solid #d6dfd9;border-radius:9px;padding:10px 14px;color:#65706a;font-size:12px;margin-bottom:16px}.formula-note span{color:#1d5d4c;font-weight:800;margin-right:8px;letter-spacing:.08em}.metric-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:16px}.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:17px 18px;box-shadow:var(--shadow);min-width:0}.metric-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:600}.metric-icon{width:27px;height:27px;border-radius:7px;display:grid;place-items:center;background:#f0f3f1;color:#34413d}.metric-card strong{display:block;font:750 clamp(20px,2vw,29px) "Manrope",sans-serif;margin:12px 0 4px;white-space:nowrap;letter-spacing:-.04em}.metric-card small{font-size:11px;color:#8c9497}.metric-card.profit{background:var(--dark);color:#fff;border-color:var(--dark)}.metric-card.profit .metric-top,.metric-card.profit small{color:#9da7aa}.metric-card.profit .metric-icon{background:var(--lime);color:var(--dark)}.positive{color:var(--green)!important}.negative{color:var(--red)!important}.dashboard-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:16px;margin-bottom:16px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:20px;box-shadow:var(--shadow);min-width:0}.panel-head,.section-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.panel-head h2,.section-toolbar h2,.calculator-panel h2{font:700 17px "Manrope",sans-serif;margin:4px 0 0}.legend{display:flex;gap:16px;color:var(--muted);font-size:11px}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:8px;height:8px;border-radius:2px}.legend-gross{background:#ced5d1}.legend-profit{background:var(--green)}.chart{height:232px;display:flex;gap:15px;align-items:end;padding:26px 8px 0;border-bottom:1px solid var(--line);position:relative}.chart:before,.chart:after{content:"";position:absolute;left:0;right:0;border-top:1px dashed #e4e8e6}.chart:before{top:33%}.chart:after{top:66%}.chart-group{height:100%;flex:1;display:grid;grid-template-columns:1fr 1fr;gap:4px;align-items:end;position:relative;z-index:1}.bar{border-radius:4px 4px 0 0;min-height:2px}.bar.gross{background:#d8ddda}.bar.profit{background:var(--green)}.chart-label{position:absolute;bottom:-24px;left:50%;transform:translateX(-50%);font-size:11px;color:#7b8589;white-space:nowrap}.donut-layout{display:grid;grid-template-columns:146px 1fr;align-items:center;gap:20px;margin-top:30px}.donut{width:146px;height:146px;border-radius:50%;display:grid;place-items:center;background:#edf0ee;position:relative}.donut:after{content:"";position:absolute;inset:22px;border-radius:50%;background:#fff}.donut>div{position:relative;z-index:1;text-align:center;display:grid}.donut strong{font:750 19px "Manrope"}.donut span{font-size:10px;color:var(--muted)}.cost-legend{display:grid;gap:11px}.cost-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.cost-row i{width:8px;height:8px;border-radius:2px}.cost-row strong{font-size:12px;color:var(--ink)}.fleet-panel{margin-bottom:16px}.text-link{border:0;background:transparent;color:#276956;font-weight:700;font-size:12px}.fleet-table-wrap{overflow:auto;margin-top:13px}.data-table{width:100%;border-collapse:collapse;font-size:12px;min-width:720px}.data-table th{text-align:left;color:#7c8589;font-weight:600;padding:10px;border-bottom:1px solid var(--line)}.data-table td{padding:12px 10px;border-bottom:1px solid #edf0ee;white-space:nowrap}.data-table tbody tr:last-child td{border:0}.vehicle-cell{display:flex;align-items:center;gap:10px}.vehicle-badge{width:33px;height:33px;border-radius:8px;display:grid;place-items:center;background:#edf3f0;color:#316251;font-size:10px;font-weight:800}.vehicle-cell div{display:grid}.vehicle-cell strong{font-size:12px}.vehicle-cell small{font-size:10px;color:#8a9295}.profit-value{font-weight:800;color:var(--green)}.margin-pill,.status-pill{padding:4px 7px;border-radius:99px;font-weight:700;font-size:10px}.margin-pill{background:var(--green-soft);color:var(--green)}.status-pill.upcoming{background:#eaf0ff;color:#3e68b0}.status-pill.completed{background:#edf0ef;color:#5d6864}.status-pill.active{background:#e4f7ef;color:#17745c}.lower-grid{grid-template-columns:1.35fr 1fr}.booking-list{margin-top:10px}.booking-row{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid #edf0ee}.booking-row:first-child{border-top:0}.date-box{width:38px;height:42px;border-radius:8px;background:#f1f4f2;display:grid;place-items:center;font-size:10px;color:#7b8581}.date-box strong{font-size:16px;color:var(--ink);line-height:1}.booking-row div:nth-child(2){display:grid}.booking-row strong{font-size:12px}.booking-row small{font-size:10px;color:var(--muted);margin-top:2px}.booking-row>span{font-weight:800;font-size:12px}.insight-card{background:#eef3f0;display:flex;align-items:center;gap:20px}.insight-mark{width:51px;height:51px;flex:0 0 auto;border-radius:50%;background:var(--dark);color:var(--lime);display:grid;place-items:center;font-size:22px}.insight-card p{color:#5d6965;font-size:13px;line-height:1.5;margin:9px 0 0}.empty-state{min-height:170px;display:grid;place-items:center;text-align:center;padding:24px;color:var(--muted)}.empty-state.small{min-height:110px}.empty-state strong{display:block;color:var(--ink);font:700 15px "Manrope";margin-bottom:5px}.empty-state p{font-size:12px;margin:0 0 13px;max-width:290px;line-height:1.5}.empty-state button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 11px;font-size:11px;font-weight:700}.section-toolbar{align-items:center;margin:5px 0 19px}.section-toolbar h2{font-size:25px}.section-toolbar p{color:var(--muted);font-size:13px;margin:5px 0 0}.mini-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.mini-metric{background:#fff;border:1px solid var(--line);border-radius:11px;padding:16px}.mini-metric span{display:block;font-size:11px;color:var(--muted);font-weight:600}.mini-metric strong{font:750 22px "Manrope";display:block;margin-top:7px}.table-filters{display:flex;justify-content:flex-end;gap:10px}.table-filters label{font-size:11px;color:var(--muted);display:grid;gap:5px}.table-filters input{height:39px;border:1px solid var(--line);border-radius:8px;padding:0 11px;min-width:190px}.data-table.roomy td{padding-top:16px;padding-bottom:16px}.more-button,.delete-button{border:0;background:transparent;color:#8a9295}.delete-button:hover{color:var(--red)}.expense-grid{grid-template-columns:.8fr 1.2fr}.expense-bars{display:grid;gap:15px;margin-top:25px}.expense-bar-row{display:grid;grid-template-columns:85px 1fr 60px;gap:10px;align-items:center;font-size:12px}.expense-bar-row span{color:var(--muted)}.expense-track{height:9px;border-radius:99px;background:#edf0ee;overflow:hidden}.expense-track i{display:block;height:100%;background:var(--green);border-radius:inherit}.expense-bar-row strong{text-align:right}.expense-list{margin-top:10px}.expense-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;border-top:1px solid #edf0ee;padding:13px 0}.expense-row:first-child{border-top:0}.expense-icon{width:35px;height:35px;background:#f1f4f2;border-radius:8px;display:grid;place-items:center;color:#56605c}.expense-row div:nth-child(2){display:grid}.expense-row strong{font-size:12px}.expense-row small{color:var(--muted);font-size:10px;margin-top:2px}.expense-row>span{font-weight:800;font-size:12px}.vehicle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}.vehicle-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;box-shadow:var(--shadow)}.vehicle-card-head{display:flex;align-items:center;gap:11px;border-bottom:1px solid #edf0ee;padding-bottom:16px}.large-badge{width:46px;height:46px;border-radius:11px;background:#17201e;color:var(--lime);display:grid;place-items:center;font-weight:800;font-size:11px}.vehicle-card-head div{display:grid}.vehicle-card-head strong{font:700 14px "Manrope"}.vehicle-card-head small{color:var(--muted);font-size:11px;margin-top:2px}.vehicle-profit{padding:18px 0}.vehicle-profit span{font-size:11px;color:var(--muted)}.vehicle-profit strong{font:750 27px "Manrope";display:block;color:var(--green);margin-top:4px}.stat-pairs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat-pairs div{background:#f5f7f6;border-radius:8px;padding:10px}.stat-pairs span{display:block;font-size:10px;color:var(--muted)}.stat-pairs strong{font-size:12px;display:block;margin-top:3px}.util-row{display:flex;justify-content:space-between;margin:18px 0 7px;font-size:11px}.util-row span{color:var(--muted)}.util-track{height:6px;border-radius:99px;background:#e9edeb}.util-track i{display:block;height:100%;background:var(--green);border-radius:99px}.mileage-line{font-size:11px;color:var(--muted);margin-top:13px}.mileage-line b{color:var(--ink)}.overage{color:var(--red)!important}.calculator-panel{display:grid;grid-template-columns:.8fr 1.5fr .55fr;gap:30px;align-items:center}.calculator-panel>div:first-child p{color:var(--muted);font-size:12px;line-height:1.5}.calculator-form{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.calculator-form label,.entry-form label{font-size:11px;color:var(--muted);font-weight:600;display:grid;gap:5px;position:relative}.calculator-form input,.calculator-form select,.entry-form input,.entry-form select{height:40px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 10px;color:var(--ink);font-size:13px;outline:0}.calculator-form input{padding-left:24px}.calculator-form input:focus,.entry-form input:focus,.entry-form select:focus{border-color:#52927e;box-shadow:0 0 0 3px rgba(35,119,92,.1)}.input-prefix{position:absolute;left:9px;bottom:12px;color:#89918f}.input-suffix{position:absolute;right:9px;bottom:12px;color:#89918f}.loan-result{background:var(--dark);color:#fff;border-radius:11px;padding:17px}.loan-result span,.loan-result small{display:block;color:#9ca6a9;font-size:10px}.loan-result strong{display:block;font:750 25px "Manrope";margin:6px 0}.modal-backdrop{position:fixed;inset:0;background:rgba(4,9,11,.66);backdrop-filter:blur(5px);display:grid;place-items:center;padding:20px;z-index:20}.modal-backdrop[hidden]{display:none}.modal{width:min(520px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:27px;position:relative;box-shadow:0 30px 80px rgba(0,0,0,.22)}.modal h2{font:750 24px "Manrope";margin:5px 0 20px}.close-button{position:absolute;right:18px;top:14px;border:0;background:transparent;font-size:26px;color:#70787c}.entry-form{display:grid;gap:13px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}.modal-note{text-align:center;font-size:10px;color:#8b9396;margin:12px 0 0}.toast{position:fixed;right:24px;bottom:24px;background:#151b1e;color:#fff;border-radius:9px;padding:12px 16px;font-size:12px;font-weight:600;opacity:0;transform:translateY(10px);pointer-events:none;transition:.25s;z-index:30}.toast.show{opacity:1;transform:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr}.vehicle-grid{grid-template-columns:1fr 1fr}.calculator-panel{grid-template-columns:1fr}.calculator-form{grid-template-columns:repeat(4,1fr)}}
@media(max-height:860px) and (min-width:781px){.sidebar{overflow-y:auto;overscroll-behavior:contain}}
@media(max-width:780px){.app-shell{display:block}.sidebar{transform:translateX(-100%);transition:.25s;width:230px;box-shadow:15px 0 35px rgba(0,0,0,.2)}.sidebar.open{transform:none}.workspace{padding:0 16px 40px}.workspace-header{height:auto;min-height:82px;flex-wrap:wrap;padding:13px 0;margin-bottom:18px}.menu-button{display:block}.header-actions{width:100%;display:grid;grid-template-columns:auto 1fr}.sample-pill{display:none}.header-actions .primary-button{grid-column:2}.metric-grid,.mini-metrics{grid-template-columns:1fr 1fr}.vehicle-grid{grid-template-columns:1fr}.calculator-form{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.metric-grid{grid-template-columns:1fr 1fr}.metric-card{padding:14px}.metric-card strong{font-size:20px}.metric-card:nth-child(5){grid-column:1/-1}.panel{padding:16px}.donut-layout{grid-template-columns:120px 1fr;gap:12px}.donut{width:120px;height:120px}.chart{gap:7px}.section-toolbar{align-items:flex-start}.section-toolbar .primary-button{white-space:nowrap}.mini-metrics{grid-template-columns:1fr 1fr}.calculator-form,.form-row{grid-template-columns:1fr}.table-filters{justify-content:stretch}.table-filters label{flex:1}.table-filters input{min-width:0;width:100%}.expense-row{grid-template-columns:auto 1fr auto}.expense-row .delete-button{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.chart .empty-state{width:100%;align-self:stretch}.vehicle-delete{margin-left:auto}.data-table td>.empty-state{min-width:640px}.entry-form[hidden]{display:none}
.decision-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.decision-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px;display:grid;grid-template-columns:auto 1fr;gap:12px;box-shadow:var(--shadow)}.decision-card>span{width:34px;height:34px;border-radius:9px;background:#eef3f0;color:#246650;display:grid;place-items:center;font-weight:800}.decision-card div{display:grid;min-width:0}.decision-card small{font-size:11px;color:var(--muted)}.decision-card strong{font:700 14px "Manrope";margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.decision-card p{font-size:10px;color:#858e91;margin:3px 0 0}.performance-grid{grid-template-columns:1fr 1fr}.weekday-bars{display:grid;gap:12px;margin-top:23px}.weekday-row{display:grid;grid-template-columns:34px 1fr 54px;align-items:center;gap:10px;font-size:11px}.weekday-row>span{color:var(--muted)}.weekday-row>div{height:9px;background:#edf0ee;border-radius:99px;overflow:hidden}.weekday-row i{display:block;height:100%;background:var(--green);border-radius:99px}.weekday-row strong{text-align:right;font-size:10px}.pricing-list{display:grid;margin-top:10px}.pricing-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:11px 0;border-top:1px solid #edf0ee}.pricing-row:first-child{border-top:0}.pricing-row>div{display:grid}.pricing-row strong{font-size:12px}.pricing-row small{font-size:10px;color:var(--muted)}.pricing-row>small{grid-column:2/4;margin-top:-6px}.signal{border-radius:99px;padding:5px 8px;font-size:10px;font-weight:800;white-space:nowrap}.signal.down{background:#ffebe8;color:#a4453e}.signal.up{background:#e2f5ed;color:#176b54}.signal.hold{background:#fff3d8;color:#8b651d}.signal.neutral{background:#edf0ef;color:#63706c}.author-footer{margin-left:244px;text-align:center;padding:0 20px 28px;color:#7d8689;font-size:11px}.author-footer strong{color:#3e484b}
@media(max-width:1100px){.decision-grid{grid-template-columns:1fr 1fr}}
@media(max-width:780px){.decision-grid{grid-template-columns:1fr 1fr}.performance-grid{grid-template-columns:1fr}.author-footer{margin-left:0}}
@media(max-width:520px){.decision-grid{grid-template-columns:1fr}}
[data-view="mileage"]>span{font-size:17px}.vehicle-expense-panel{margin-bottom:16px}.panel-caption{font-size:11px;color:var(--muted);padding-top:4px}.expense-vehicle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px}.expense-vehicle-card,.mileage-card{background:#f7f9f8;border:1px solid #e5ebe7;border-radius:11px;padding:15px;min-width:0}.expense-vehicle-head{display:flex;align-items:center;gap:10px;min-height:46px}.expense-vehicle-head>div{display:grid;min-width:0;flex:1}.expense-vehicle-head strong{font:700 13px "Manrope";white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.expense-vehicle-head small{font-size:10px;color:var(--muted);margin-top:3px}.expense-vehicle-head .secondary-button{min-height:31px;padding:0 9px;font-size:11px}.expense-vehicle-total{display:flex;justify-content:space-between;align-items:baseline;margin:15px 0 10px;padding-top:11px;border-top:1px solid #e5ebe7}.expense-vehicle-total span{font-size:11px;color:var(--muted)}.expense-vehicle-total strong{font:750 19px "Manrope"}.expense-category-list{display:grid;gap:7px}.expense-category-list>div{display:flex;justify-content:space-between;gap:8px;font-size:11px}.expense-category-list span{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.expense-category-list strong{font-size:11px}.muted-note{font-size:11px;color:var(--muted)}.mileage-card{background:#fff;box-shadow:var(--shadow)}.mileage-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0 12px}.mileage-stats>div{background:#f5f7f6;border-radius:8px;padding:10px}.mileage-stats span,.mileage-booking-ref span{display:block;color:var(--muted);font-size:10px}.mileage-stats strong{display:block;font:750 17px "Manrope";margin-top:4px}.mileage-booking-ref{border-top:1px solid #edf0ee;padding-top:11px;margin-bottom:13px}.mileage-booking-ref strong{display:block;font-size:11px;margin-top:4px}.mileage-booking-ref small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.mileage-card>.secondary-button{width:100%;min-height:35px}.mileage-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;border-top:1px solid #edf0ee;padding:13px 0}.mileage-row:first-child{border-top:0}.mileage-row>div{display:grid;min-width:0}.mileage-row strong{font-size:12px}.mileage-row small{font-size:10px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mileage-row>span{font-size:12px;font-weight:800}.mileage-row .delete-button{justify-self:end}
@media(max-width:1100px){.expense-vehicle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.expense-vehicle-grid{grid-template-columns:1fr 1fr}.mileage-row{grid-template-columns:auto 1fr auto}.mileage-row .delete-button{grid-column:3;grid-row:1;display:block}.mileage-row>span{grid-column:3;grid-row:2}}
@media(max-width:520px){.expense-vehicle-grid{grid-template-columns:1fr}.mileage-stats{grid-template-columns:1fr 1fr}.mileage-stats>div:last-child{grid-column:1/-1}.mileage-row{gap:9px}.mileage-row small{white-space:normal}}
[hidden]{display:none!important}.auth-shell{min-height:100vh;background:radial-gradient(circle at 15% 10%,#26332d 0,transparent 28%),var(--side);color:#fff;display:grid;place-items:center;padding:82px 20px;position:relative}.auth-brand{position:absolute;left:30px;top:26px;display:flex;align-items:center;gap:11px;font:800 18px "Manrope",sans-serif}.auth-card{width:min(440px,100%);background:#fff;color:var(--ink);border-radius:18px;padding:34px;box-shadow:0 35px 90px rgba(0,0,0,.3)}.auth-card h1{font:800 30px "Manrope";letter-spacing:-.04em;margin:7px 0}.auth-card>p{color:var(--muted);font-size:14px;line-height:1.5;margin:0 0 22px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f0f3f1;border-radius:9px;padding:4px;margin-bottom:20px}.auth-tabs button{border:0;background:transparent;border-radius:7px;padding:9px;color:var(--muted);font-size:13px;font-weight:700}.auth-tabs button.active{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(0,0,0,.08)}.auth-form{display:grid;gap:14px}.auth-form label{display:grid;gap:6px;color:#68716e;font-size:12px;font-weight:700}.auth-form input{height:46px;border:1px solid var(--line);border-radius:9px;padding:0 12px;font-size:15px;outline:0}.auth-form input:focus{border-color:#52927e;box-shadow:0 0 0 3px rgba(35,119,92,.1)}.auth-form small{color:var(--muted);font-size:11px;line-height:1.5;text-align:center}.auth-link{border:0;background:transparent;color:var(--green);font-size:12px;font-weight:700}.auth-status{min-height:20px!important;margin:15px 0 0!important;color:var(--green)!important;text-align:center}.auth-status.error{color:var(--red)!important}.auth-footer{position:absolute;bottom:24px!important;margin:0!important;color:#8d9793!important;font-size:11px!important}.auth-footer strong{color:#dbe3df}.account-button{border:1px solid var(--line);background:#fff;border-radius:8px;height:40px;padding:0 12px;font-size:12px;font-weight:700;color:#58615e}.password-field{position:relative}.password-field input{width:100%;padding-right:64px}.password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:var(--green);font-size:12px;font-weight:800;padding:7px;border-radius:6px}.password-toggle:hover,.password-toggle:focus-visible{background:#eef5f2;outline:0}.password-requirements{list-style:none;margin:-3px 0 1px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;color:#7b8581;font-size:11px}.password-requirements li{display:flex;align-items:center;gap:6px}.password-requirements li:before{content:'○';color:#aab2af;font-weight:800}.password-requirements li.valid{color:#24725a}.password-requirements li.valid:before{content:'✓';color:#24725a}.password-requirements li.invalid{color:#a44949}.password-requirements li.invalid:before{content:'×';color:#a44949}
@media(max-width:520px){.auth-shell{padding:74px 15px}.auth-brand{left:20px;top:18px}.auth-card{padding:26px 20px}.auth-card h1{font-size:25px}.password-requirements{grid-template-columns:1fr}.account-button{grid-column:1/-1}}
.toolbar-actions{display:flex;gap:9px;align-items:center}.secondary-button{border:1px solid var(--line);background:#fff;color:#33403b;border-radius:8px;min-height:40px;padding:0 14px;font-size:13px;font-weight:700}.secondary-button:hover{border-color:#9cb5ac;background:#f8faf9}.import-modal{width:min(820px,100%)}.import-drop{border:1px dashed #aebbb5;background:#f6f9f7;border-radius:12px;text-align:center;padding:38px 20px}.import-drop strong{display:block;font:700 16px "Manrope"}.import-drop p{color:var(--muted);font-size:12px;margin:7px 0 18px}.file-button{display:inline-grid;place-items:center}.file-button input{position:absolute;width:1px;height:1px;opacity:0}.import-summary{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:7px 10px;background:#f2f6f4;border-radius:10px;padding:13px 15px;align-items:baseline}.import-summary strong{font:800 17px "Manrope"}.import-summary span{font-size:11px;color:var(--muted)}.mapping-help{font-size:12px;color:var(--muted);margin:17px 0 10px}.mapping-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mapping-grid label{display:grid;gap:5px;font-size:11px;color:var(--muted);font-weight:700}.mapping-grid select{height:39px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 8px;font-size:12px;min-width:0}.import-preview{margin:20px 0}.import-preview>strong{font:700 14px "Manrope"}.status-pill.problem{background:#ffebe8;color:#a4453e}.primary-button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:780px){.toolbar-actions{width:100%;justify-content:flex-end}.mapping-grid{grid-template-columns:1fr 1fr}.import-summary{grid-template-columns:auto 1fr}}
@media(max-width:520px){.toolbar-actions{display:grid;grid-template-columns:1fr 1fr}.toolbar-actions button{padding:0 8px}.mapping-grid{grid-template-columns:1fr}.import-modal{padding:22px 16px}}
.metric-grid{grid-template-columns:repeat(6,1fr)}
@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:780px){.metric-grid{grid-template-columns:1fr 1fr}}
.breakeven-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.breakeven-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--shadow)}.breakeven-card .vehicle-card-head>.signal{margin-left:auto}.breakeven-hero{padding:22px 0 14px}.breakeven-hero span{display:block;color:var(--muted);font-size:12px}.breakeven-hero strong{display:block;font:800 32px "Manrope";margin-top:5px}.break-track{height:8px;background:#e9edeb;border-radius:99px;overflow:hidden}.break-track i{display:block;height:100%;background:var(--green);border-radius:inherit}.break-progress{display:block;color:var(--muted);font-size:10px;margin:7px 0 18px}.break-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.break-stats>div{background:#f5f7f6;border-radius:9px;padding:11px}.break-stats span{display:block;color:var(--muted);font-size:10px}.break-stats strong{display:block;font-size:13px;margin-top:4px}.break-stats .break-total{grid-column:1/-1;background:#16201d;color:#fff}.break-stats .break-total span{color:#9ca8a4}.break-stats .break-total strong{font-size:18px}
@media(max-width:900px){.breakeven-grid{grid-template-columns:1fr}}
.expense-row{grid-template-columns:auto 1fr auto auto auto}
.loan-card-action{width:100%;margin-top:16px}.loan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.loan-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--shadow);min-width:0}.loan-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:16px;border-bottom:1px solid #edf0ee}.loan-actions{display:flex;align-items:center;gap:8px}.loan-balance{padding:20px 0 12px}.loan-balance>span{display:block;color:var(--muted);font-size:11px}.loan-balance>strong{display:block;font:800 30px "Manrope";margin:4px 0}.loan-balance>small{color:var(--muted);font-size:10px}.loan-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:17px 0}.loan-facts>div{background:#f5f7f6;border-radius:8px;padding:10px}.loan-facts span{display:block;color:var(--muted);font-size:10px}.loan-facts strong{display:block;font-size:12px;margin-top:4px}.loan-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf0ee;padding-top:16px}.loan-history-head>div{display:grid;gap:3px}.loan-history-head>div>strong{font-size:13px}.loan-payment-list{margin-top:9px}.loan-payment-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid #edf0ee}.loan-payment-row>div{display:grid}.loan-payment-row strong{font-size:12px}.loan-payment-row small{font-size:10px;color:var(--muted);margin-top:2px}.loan-payment-row>span{font-size:12px;font-weight:800}.entry-form label small{font-size:10px;font-weight:500;line-height:1.35;color:#8b9396}
@media(max-width:1000px){.loan-grid{grid-template-columns:1fr}}
@media(max-width:600px){.loan-facts{grid-template-columns:1fr 1fr}.loan-card{padding:16px}.loan-card-head{align-items:flex-start}.loan-payment-row{grid-template-columns:1fr auto}.loan-payment-row .delete-button{display:none}}
.report-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.report-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px;box-shadow:var(--shadow)}.report-card span{display:block;color:var(--muted);font-size:11px;font-weight:600}.report-card strong{display:block;font:750 23px "Manrope";margin-top:7px}.report-card small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.report-columns{grid-template-columns:1fr 1fr}.document-list,.calendar-list,.maintenance-grid{display:grid;gap:10px}.document-row,.calendar-row,.maintenance-row{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;border-top:1px solid #edf0ee;padding:12px 0}.document-row:first-child,.calendar-row:first-child,.maintenance-row:first-child{border-top:0}.document-row>div,.calendar-row>div,.maintenance-row>div{display:grid}.document-row strong,.calendar-row strong,.maintenance-row strong{font-size:12px}.document-row small,.calendar-row small,.maintenance-row small{font-size:10px;color:var(--muted);margin-top:3px}.document-row a{font-size:11px;color:var(--green);font-weight:700}.maintenance-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.maintenance-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;box-shadow:var(--shadow)}.maintenance-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid #edf0ee}.maintenance-card-head strong{font:700 15px "Manrope"}.maintenance-card-head small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.reserve-note{background:#f5f7f6;border-radius:9px;padding:11px;margin:14px 0;font-size:11px;color:var(--muted)}.maintenance-row .status-pill{justify-self:end}.calendar-row{grid-template-columns:90px 1fr auto;background:#fff;border:1px solid #edf0ee;border-radius:10px;padding:13px}.calendar-row+.calendar-row{border-top:1px solid #edf0ee}.calendar-date{font-weight:800;color:var(--green);font-size:12px}.calendar-row .status-pill{justify-self:end}.document-row .delete-button{justify-self:end}
@media(max-width:1050px){.report-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.report-columns{grid-template-columns:1fr}.maintenance-grid{grid-template-columns:1fr}.calendar-row{grid-template-columns:75px 1fr}.calendar-row .status-pill{grid-column:2;justify-self:start}.report-card strong{font-size:20px}}
.sidebar{overflow-y:auto}
.report-grid{grid-template-columns:repeat(5,1fr)}
@media(max-width:1100px){.report-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:780px){.report-grid{grid-template-columns:1fr 1fr}}
.expense-payment-history{display:grid;gap:8px;margin-top:11px;padding-top:11px;border-top:1px solid #e5ebe7}.expense-payment-history-head{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px;font-weight:700}.expense-payment-history-head small{font-size:10px;color:var(--muted)}.expense-payment-history>div:not(.expense-payment-history-head){display:flex;justify-content:space-between;align-items:start;gap:8px}.expense-payment-history>div:not(.expense-payment-history-head)>span{display:grid;min-width:0}.expense-payment-history strong{font-size:10px;color:var(--ink)}.expense-payment-history small{font-size:9px;line-height:1.3;color:var(--muted)}
.profit-detail-list{display:grid;gap:14px}.profit-month-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--shadow)}.profit-month-card.negative{border-color:#f0d2cd}.profit-month-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding-bottom:15px;border-bottom:1px solid #edf0ee}.profit-month-head h3{font:750 20px "Manrope";margin:5px 0 3px}.profit-month-head small{font-size:11px;color:var(--muted)}.profit-month-result{text-align:right;display:grid;gap:3px}.profit-month-result span{font-size:11px;color:var(--muted)}.profit-month-result strong{font:800 25px "Manrope"}.profit-month-result strong.negative,.profit-equation b.negative{color:var(--red)}.profit-month-result strong.positive,.profit-equation b.positive{color:var(--green)}.profit-formula-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0 10px}.profit-formula-grid>div{background:#f5f7f6;border-radius:9px;padding:11px}.profit-formula-grid span{display:block;color:var(--muted);font-size:10px}.profit-formula-grid strong{display:block;font-size:14px;margin-top:5px}.profit-equation{margin:0;padding:10px 12px;background:#16201d;color:#fff;border-radius:8px;font-size:12px}.profit-equation b{font-size:14px}.profit-detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:17px}.profit-detail-section{display:grid;gap:7px}.profit-detail-section>.overline{font-size:10px}.profit-detail-row{display:flex;justify-content:space-between;gap:10px;font-size:11px}.profit-detail-row span{color:var(--muted)}.profit-detail-row strong{font-size:11px}.profit-capital-note{color:var(--muted);font-size:10px;margin:14px 0 0;padding-top:10px;border-top:1px solid #edf0ee}
@media(max-width:650px){.profit-month-head{display:grid}.profit-month-result{text-align:left}.profit-formula-grid,.profit-detail-columns{grid-template-columns:1fr}}
#profitDetailMetrics{grid-template-columns:repeat(5,1fr)}
@media(max-width:1100px){#profitDetailMetrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:780px){#profitDetailMetrics{grid-template-columns:1fr 1fr}}
.expense-transactions-head{align-items:flex-end}.expense-filter{display:grid;gap:4px;color:var(--muted);font-size:10px;font-weight:700}.expense-filter select{height:35px;min-width:165px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 28px 0 9px;color:var(--ink);font-size:11px;font-weight:700}
@media(max-width:520px){.expense-transactions-head{display:grid}.expense-filter select{width:100%}}
.profit-month-card.loss{border-color:#f0d2cd}
.profit-detail-note{display:block;color:var(--muted);font-size:10px;line-height:1.4;margin:2px 0 3px}
.profit-vehicle-filter{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:700}.profit-vehicle-filter select{height:40px;min-width:210px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 32px 0 11px;color:var(--ink);font-size:12px;font-weight:700}.pricing-detail-row{align-items:start}.pricing-numbers{grid-column:1/-1;display:grid!important;grid-template-columns:1fr 1fr;gap:7px 12px;background:#f5f7f6;border-radius:8px;padding:10px;margin-top:3px}.pricing-numbers span{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px}.pricing-numbers b{color:var(--ink);font-size:10px}.pricing-numbers b.negative{color:var(--red)}.pricing-numbers b.positive{color:var(--green)}.loan-facts.loan-intelligence{grid-template-columns:repeat(4,1fr)}
@media(max-width:780px){.profit-vehicle-filter{width:100%}.profit-vehicle-filter select{width:100%}.loan-facts.loan-intelligence{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.pricing-numbers{grid-template-columns:1fr}.loan-facts.loan-intelligence{grid-template-columns:1fr 1fr}}
.turo-plan-panel{margin-top:16px}.plan-list{display:grid}.plan-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;padding:13px 0;border-top:1px solid #edf0ee}.plan-row:first-child{border-top:0}.plan-row>div{display:grid;gap:3px}.plan-row>div strong{font-size:12px}.plan-row small{font-size:10px;color:var(--muted)}.plan-row>strong{font-size:12px}.input-wrap{position:relative}.input-wrap input{width:100%;padding-right:34px}.input-wrap .input-suffix{position:absolute;right:13px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:12px}.turo-plan-panel .panel-head p{margin:4px 0 0;color:var(--muted);font-size:11px}
.setup-launchpad{display:grid;grid-template-columns:minmax(210px,.75fr) minmax(0,1.8fr);gap:18px;align-items:center;background:var(--dark);color:#fff;border-radius:13px;padding:18px 20px;margin-bottom:16px;box-shadow:var(--shadow)}.setup-intro .overline{color:var(--lime)}.setup-intro h2{font:750 18px "Manrope",sans-serif;margin:5px 0}.setup-intro p{color:#aeb8b4;font-size:12px;line-height:1.45;margin:0;max-width:340px}.setup-steps{display:grid;grid-template-columns:1fr;gap:10px}.setup-step{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;background:#202a27;border:1px solid #34413d;border-radius:10px;padding:11px}.setup-number{width:28px;height:28px;border-radius:8px;background:var(--lime);color:var(--dark);display:grid;place-items:center;font-size:12px;font-weight:800}.setup-step>div{display:grid;min-width:0}.setup-step strong{font-size:12px}.setup-step small{color:#9faaa6;font-size:10px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.setup-step .secondary-button{min-height:34px;padding:0 10px;font-size:11px;border-color:#52605b;background:transparent;color:#fff}.setup-step .secondary-button:hover{background:#2b3733;border-color:#72827c}
@media(max-width:1050px){.setup-launchpad{grid-template-columns:1fr}.setup-intro p{max-width:none}}
@media(max-width:700px){.setup-steps{grid-template-columns:1fr}}
@media(max-width:520px){.setup-launchpad{padding:16px}.setup-step{grid-template-columns:auto 1fr}.setup-step .secondary-button{grid-column:1/-1;width:100%}}
@media(max-width:600px){.plan-row{grid-template-columns:auto 1fr auto}.plan-row>.delete-button{grid-column:3;grid-row:1}.plan-row>strong{grid-column:2;grid-row:2}}
.main-nav{gap:3px}.nav-item{height:40px}.brand{padding-bottom:18px}.sidebar-card{margin-top:18px}
.trip-action-grid,.reconciliation-list,.decision-vehicle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.trip-action-card,.reconciliation-card,.vehicle-decision-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--shadow);min-width:0}.trip-action-head,.reconciliation-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:15px;border-bottom:1px solid #edf0ee}.trip-handoff{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}.trip-handoff>div,.decision-facts>div,.reconciliation-numbers>div{background:#f5f7f6;border-radius:8px;padding:10px;min-width:0}.trip-handoff span,.decision-facts span,.reconciliation-numbers span,.scenario-results span,.decision-hero span{display:block;color:var(--muted);font-size:10px}.trip-handoff strong,.decision-facts strong,.reconciliation-numbers strong{display:block;font-size:11px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.trip-progress{margin:14px 0}.trip-progress>div:first-child{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:7px}.trip-checklists{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px}.trip-checklists>div{display:grid;gap:8px;align-content:start}.task-check{display:flex;align-items:center;gap:8px;font-size:11px;color:#4d5854}.task-check input{accent-color:var(--green);width:16px;height:16px}.card-actions{display:flex;gap:8px;margin-top:17px}.card-actions button{flex:1}
.checkbox-label{display:flex!important;grid-template-columns:auto 1fr;align-items:center;gap:9px!important;background:#f5f7f6;border-radius:8px;padding:11px;color:#4f5b57!important}.checkbox-label input{width:16px!important;height:16px!important;accent-color:var(--green)}
.reimbursement-list{display:grid}.reimbursement-row{display:grid;grid-template-columns:auto minmax(180px,1fr) auto auto auto auto auto;gap:12px;align-items:center;padding:14px 0;border-top:1px solid #edf0ee}.reimbursement-row:first-child{border-top:0}.reimbursement-row>div{display:grid;min-width:0}.reimbursement-row strong{font-size:12px}.reimbursement-row small{font-size:10px;color:var(--muted);margin-top:3px}.reimbursement-row p{font-size:10px;color:var(--muted);margin:5px 0 0}.reimbursement-row a{font-size:10px;color:var(--green);font-weight:800}
.reconciliation-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:15px 0}.reconciliation-detail{display:flex;gap:7px;flex-wrap:wrap}.reconciliation-detail span{background:#eef3f0;border-radius:999px;padding:5px 8px;font-size:10px;color:#5c6964}
.alert-list{display:grid}.alert-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;padding:14px 0;border-top:1px solid #edf0ee}.alert-row:first-child{border-top:0}.alert-row>span{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-weight:900}.alert-row.high>span{background:#ffebe8;color:#a4453e}.alert-row.medium>span{background:#fff3d8;color:#8b651d}.alert-row.low>span{background:#edf0ef;color:#63706c}.alert-row>div{display:grid}.alert-row strong{font-size:12px}.alert-row small{font-size:10px;color:var(--muted);margin-top:3px}
.decision-vehicle-grid{margin-bottom:16px}.vehicle-decision-card .vehicle-card-head>.signal{margin-left:auto}.decision-hero{padding:20px 0 14px}.decision-hero strong{display:block;font:800 29px "Manrope";margin:4px 0}.decision-hero small{color:var(--muted);font-size:10px}.decision-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:15px}.vehicle-decision-card>.wide{width:100%}.purchase-simulator .panel-head p{color:var(--muted);font-size:11px;margin:4px 0 0}.scenario-form{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.scenario-form label{display:grid;gap:5px;color:var(--muted);font-size:10px;font-weight:700}.scenario-form input{height:40px;border:1px solid var(--line);border-radius:8px;padding:0 10px;font-size:12px}.scenario-form button{align-self:end}.scenario-results{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.scenario-results article{background:#16201d;color:#fff;border-radius:10px;padding:14px}.scenario-results span{color:#9ca8a4}.scenario-results strong{display:block;font:750 18px "Manrope";margin-top:5px}
.safety-grid{display:grid;grid-template-columns:1.25fr .9fr .95fr;gap:16px}.safety-list{display:grid;margin-top:10px}.safety-row,.duplicate-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid #edf0ee}.safety-row:first-child,.duplicate-row:first-child{border-top:0}.safety-row>div,.duplicate-row>div:first-child{display:grid;min-width:0}.safety-row strong,.duplicate-row strong{font-size:11px}.safety-row small,.duplicate-row small{font-size:9px;color:var(--muted);margin-top:3px}.safety-row button,.duplicate-actions button{min-height:32px;padding:0 9px;font-size:10px}.safety-actions{display:grid;gap:10px;margin-top:15px}.safety-actions .secondary-button{display:grid;place-items:center;text-align:center}.safety-actions small{font-size:10px;line-height:1.45;color:var(--muted)}.duplicate-row{display:grid;align-items:start}.duplicate-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
@media(max-width:1100px){.safety-grid{grid-template-columns:1fr 1fr}.safety-grid>.panel:last-child{grid-column:1/-1}.scenario-form{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.trip-action-grid,.reconciliation-list,.decision-vehicle-grid{grid-template-columns:1fr}.reimbursement-row{grid-template-columns:auto 1fr auto auto}.reimbursement-row>a,.reimbursement-row>.more-button,.reimbursement-row>.delete-button{grid-row:2}.reimbursement-row>a{grid-column:2}.reimbursement-row>.more-button{grid-column:3}.reimbursement-row>.delete-button{grid-column:4}}
@media(max-width:700px){.trip-handoff,.decision-facts{grid-template-columns:1fr 1fr}.trip-checklists{grid-template-columns:1fr}.reconciliation-numbers,.scenario-results{grid-template-columns:1fr 1fr}.safety-grid{grid-template-columns:1fr}.safety-grid>.panel:last-child{grid-column:auto}}
@media(max-width:520px){.trip-action-head,.reconciliation-head{align-items:flex-start}.trip-handoff{grid-template-columns:1fr}.card-actions{display:grid}.reimbursement-row{grid-template-columns:auto 1fr auto}.reimbursement-row>.status-pill{grid-column:2;justify-self:start}.reimbursement-row>a{grid-column:2}.reimbursement-row>.more-button{grid-column:3;grid-row:2}.reimbursement-row>.delete-button{display:block;grid-column:3;grid-row:1}.reconciliation-numbers,.scenario-results,.scenario-form{grid-template-columns:1fr}.decision-facts{grid-template-columns:1fr 1fr}}
.table-filters{flex-wrap:wrap}.table-filters label:first-child{flex:1 1 190px;max-width:340px}.table-filters input{width:100%}
@media(max-width:520px){.table-filters label{flex:1 1 140px}.table-filters label:first-child{max-width:none;flex-basis:100%}}
.calendar-toolbar{align-items:end}.calendar-filter{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:700}.calendar-filter select{height:40px;min-width:230px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 32px 0 11px;color:var(--ink);font-size:12px;font-weight:700}.calendar-legend{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:-6px 0 14px;color:var(--muted);font-size:11px}.calendar-legend span{display:flex;align-items:center;gap:6px}.calendar-legend i{width:10px;height:10px;border-radius:3px;border:1px solid transparent}.legend-booked{background:#d9efe7;border-color:#9dccba!important}.legend-partial{background:#e8edf8;border-color:#aab9d7!important}.legend-open{background:#fff;border-color:#cfd8d4!important}.legend-service{background:#fff1d5;border-color:#e0b85f!important}.calendar-board{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:auto}.calendar-board-head{min-width:770px;display:flex;align-items:end;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid var(--line)}.calendar-board-head h3{font:750 21px "Manrope";margin:4px 0 0}.calendar-board-head>span{color:var(--muted);font-size:11px;font-weight:700}.calendar-weekdays,.calendar-grid{min-width:770px;display:grid;grid-template-columns:repeat(7,minmax(110px,1fr))}.calendar-weekdays{background:#f5f7f6;border-bottom:1px solid var(--line)}.calendar-weekdays span{text-align:center;padding:10px;color:#727d79;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.calendar-day{min-height:132px;padding:10px;border-right:1px solid #e8ecea;border-bottom:1px solid #e8ecea;display:flex;flex-direction:column;gap:7px;background:#fff;position:relative}.calendar-day:nth-child(7n){border-right:0}.calendar-day.outside{background:#f7f8f8;color:#abb2af}.calendar-day.open-day{background:#fff}.calendar-day.partially-booked{background:#fbfcff}.calendar-day.fully-booked{background:#fbfdfc}.calendar-day.today{box-shadow:inset 0 0 0 2px var(--green);z-index:1}.calendar-day-head{display:flex;align-items:center;justify-content:space-between;min-height:21px}.calendar-day-head small{background:var(--dark);color:#fff;border-radius:999px;padding:3px 6px;font-size:8px;font-weight:800}.calendar-day-number{font-size:12px;font-weight:800;color:#48524e}.outside .calendar-day-number{color:#aeb5b2}.calendar-day-events{display:grid;gap:5px;align-content:start;flex:1}.calendar-event{width:100%;min-width:0;border:0;border-radius:6px;padding:6px 7px;display:flex;align-items:center;gap:6px;text-align:left;font-size:10px;font-weight:700;color:#275e4d;background:#e7f4ef}.calendar-event b{flex:0 0 auto;font-size:8px;background:rgba(255,255,255,.72);padding:2px 4px;border-radius:4px}.calendar-event span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event:hover{filter:brightness(.97)}.booking-event.tone-1{background:#e9effb;color:#405f96}.booking-event.tone-2{background:#f0eafb;color:#6b4d91}.booking-event.tone-3{background:#fff0df;color:#8a5b27}.maintenance-event{background:#fff1d5;color:#805d1d}.calendar-more{color:var(--muted);font-size:9px;font-weight:700;padding-left:4px}.calendar-availability{font-size:9px;color:#77827e;font-weight:700}.fully-booked>.calendar-availability{color:#27715a}.not-in-fleet>.calendar-availability{color:#a4aaa8}.calendar-day.has-maintenance:after{content:"";position:absolute;right:8px;bottom:8px;width:6px;height:6px;border-radius:50%;background:#d59b2d}.calendar-year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.calendar-mini-month{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px;box-shadow:var(--shadow)}.calendar-month-open{width:100%;border:0;background:transparent;padding:0 0 12px;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;text-align:left}.calendar-month-open span{font:750 15px "Manrope"}.calendar-month-open small{color:var(--muted);font-size:9px}.calendar-month-open b{color:var(--green)}.calendar-mini-weekdays,.calendar-mini-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.calendar-mini-weekdays{margin-bottom:5px}.calendar-mini-weekdays span{text-align:center;color:#929a97;font-size:8px;font-weight:800}.calendar-mini-grid>span,.calendar-mini-grid>i{aspect-ratio:1;display:grid;place-items:center;border-radius:5px;font-size:9px;font-style:normal;color:#65706c}.calendar-mini-grid>span.open-day{background:#f4f7f5}.calendar-mini-grid>span.partially-booked{background:#e8edf8;color:#405f96;font-weight:800}.calendar-mini-grid>span.fully-booked{background:#d9efe7;color:#276a55;font-weight:800}.calendar-mini-grid>span.not-in-fleet{color:#c1c6c4}.calendar-mini-grid>span.has-maintenance{outline:2px solid #e0b85f;outline-offset:-1px}
@media(max-width:1100px){.calendar-year-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.calendar-toolbar{display:grid}.calendar-filter,.calendar-filter select{width:100%}.calendar-year-grid{grid-template-columns:1fr}.calendar-board-head{align-items:start}.calendar-metrics{grid-template-columns:1fr 1fr}}
.feature-hidden{display:none!important}.feature-panel{padding:24px}.feature-panel>p{color:#647078;margin:16px 0}.feature-row{display:grid;grid-template-columns:1.3fr 1fr 1.2fr auto;gap:20px;align-items:center;padding:20px 0;border-top:1px solid #e0e5e3}.feature-row small,.feature-row label span{display:block;font-size:14px;color:#647078;margin:5px 0}.feature-row select,.feature-row input{max-width:100%;padding:10px;border:1px solid #cdd6d2;border-radius:8px;background:white;font:inherit}.feature-panel>label{font-weight:600}#featurePreview{width:18px;height:18px;vertical-align:middle;margin-right:8px}@media(max-width:760px){.feature-row{grid-template-columns:1fr 1fr;gap:12px}.feature-row>div{grid-column:1/-1}.feature-row input{width:100%}}
.checkout-button{min-height:40px;border:1px solid #b9eb38;border-radius:8px;background:var(--lime);color:var(--dark);padding:6px 13px;display:grid;place-items:center;gap:1px;font:800 11px "Manrope",sans-serif;line-height:1.1;white-space:nowrap;cursor:pointer;box-shadow:0 7px 18px rgba(166,216,42,.17)}.checkout-button small{font:700 8px "DM Sans",sans-serif;color:#415215}.checkout-button:hover{filter:brightness(.97)}.checkout-button:disabled{cursor:wait;opacity:.72}
.checkout-button[hidden],.subscription-badge[hidden]{display:none!important}.subscription-badge{min-height:40px;border:1px solid #b9eb38;border-radius:8px;background:#effbd1;color:#21370e;padding:6px 13px;display:grid;place-items:center;gap:2px;white-space:nowrap}.subscription-badge strong{font:800 11px "Manrope",sans-serif}.subscription-badge small{font:700 9px "DM Sans",sans-serif;color:#567022}.subscription-badge.active{background:var(--dark);border-color:#34413d;color:var(--lime)}.subscription-badge.loading,.subscription-badge.unavailable{background:#f4f6f5;border-color:var(--line);color:var(--muted)}.subscription-badge.unavailable small{color:var(--muted)}
@media(max-width:760px){.checkout-button{order:-1;width:100%}}
@media(max-width:760px){.subscription-badge{order:-1;width:100%}}
.profile-button{color:var(--green);border-color:#b7c9c2;background:#f8fbfa}.profile-button:hover{background:#eef5f2}.account-panel-open{overflow:hidden}.account-panel-shell[hidden]{display:none!important}.account-panel-shell{position:fixed;inset:0;z-index:180;display:flex;justify-content:flex-end}.account-panel-backdrop{position:absolute;inset:0;border:0;background:rgba(12,20,17,.58);backdrop-filter:blur(2px);cursor:pointer}.account-panel{position:relative;z-index:1;width:min(470px,100%);height:100%;overflow-y:auto;background:#f7f9f8;color:var(--ink);box-shadow:-22px 0 70px rgba(5,12,9,.28);animation:account-panel-enter .2s ease-out}.account-panel-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:27px 28px 22px;border-bottom:1px solid var(--line);background:rgba(247,249,248,.96);backdrop-filter:blur(12px)}.account-panel-head h2{margin:5px 0 0;font:800 25px "Manrope",sans-serif;letter-spacing:-.04em}.account-panel-close{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:24px;line-height:1;cursor:pointer}.account-panel-close:hover,.account-panel-close:focus-visible{color:var(--ink);border-color:#aab8b2;outline:0}.account-panel-body{display:grid;gap:18px;padding:24px 28px 32px}.account-identity{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:13px;background:#fff}.account-avatar{width:52px;height:52px;display:grid;place-items:center;border-radius:13px;background:var(--dark);color:var(--lime);font:800 15px "Manrope",sans-serif}.account-identity div{min-width:0;display:grid;gap:4px}.account-identity small{color:var(--muted);font-size:12px;font-weight:700}.account-identity strong{overflow:hidden;text-overflow:ellipsis;color:var(--ink);font:750 15px "Manrope",sans-serif}.account-plan-card{padding:22px;border-radius:15px;background:var(--dark);color:#fff;box-shadow:0 18px 38px rgba(12,25,20,.15)}.account-plan-head{display:grid;grid-template-columns:1fr auto;gap:7px 14px;align-items:start}.account-plan-head h3{margin:0;font:800 24px "Manrope",sans-serif;letter-spacing:-.035em}.account-plan-head p{grid-column:1;margin:0;color:#aebbb6;font-size:14px}.account-status{grid-column:2;grid-row:1/3;max-width:175px;border:1px solid #475750;border-radius:999px;padding:7px 10px;background:#25322d;color:#d8e1dd;font-size:11px;font-weight:800;text-align:center}.account-status.active{border-color:#8ead41;background:#26361c;color:var(--lime)}.account-status.inactive{background:#2a322f;color:#c3cdc9}.account-status.checking{color:#c3cdc9}.account-plan-details{margin-top:22px;padding-top:18px;border-top:1px solid #34423d}.account-detail-row{display:flex;align-items:center;justify-content:space-between;gap:20px;color:#aebbb6;font-size:13px}.account-detail-row strong{color:#fff;text-align:right}.account-cancel-notice{margin:17px 0 0;padding:12px 13px;border:1px solid #6d5d31;border-radius:9px;background:#302a1c;color:#f6d97e;font-size:12px;line-height:1.5}.account-billing-action{width:100%;min-height:48px}.account-billing-note{margin:0;color:var(--muted);font-size:12px;line-height:1.55;text-align:center}@keyframes account-panel-enter{from{transform:translateX(24px);opacity:.5}to{transform:translateX(0);opacity:1}}
@media(max-width:600px){.account-panel{width:100%}.account-panel-head{padding:22px 20px 18px}.account-panel-head h2{font-size:23px}.account-panel-body{padding:20px 18px 28px}.account-plan-card{padding:19px}.account-plan-head{grid-template-columns:1fr}.account-status{grid-column:1;grid-row:auto;justify-self:start;max-width:100%;margin-top:5px}.account-detail-row{align-items:flex-start;flex-direction:column;gap:5px}.account-detail-row strong{text-align:left}}
.pro-upgrade-backdrop{z-index:210}.pro-upgrade-modal{width:min(440px,100%);padding:36px 34px 30px;text-align:center;border:1px solid rgba(255,255,255,.48)}.pro-upgrade-modal .close-button{right:16px;top:13px}.pro-upgrade-mark{width:62px;height:62px;margin:0 auto 18px;display:grid;place-items:center;border-radius:17px;background:var(--dark);color:var(--lime);font:800 18px "Manrope",sans-serif;box-shadow:0 14px 28px rgba(16,25,22,.18)}.pro-upgrade-modal .overline{display:block;color:var(--green)}.pro-upgrade-modal h2{margin:8px 0 10px;font-size:27px}.pro-upgrade-modal>p{max-width:340px;margin:0 auto 22px;color:var(--muted);font-size:15px;line-height:1.55}.pro-upgrade-action{min-height:50px;margin-top:0!important}.pro-upgrade-later{margin:11px auto 4px;padding:8px 12px;border:0;background:transparent;color:var(--green);font-size:13px;font-weight:800}.pro-upgrade-modal>small{display:block;margin:12px auto 0;color:#7e8985;font-size:12px;line-height:1.5}.subscription-badge.active small{color:#b9d765}
@media(max-width:520px){.pro-upgrade-backdrop{padding:14px}.pro-upgrade-modal{padding:32px 22px 26px}.pro-upgrade-modal h2{font-size:24px}.pro-upgrade-modal>p{font-size:14px}}

/* Auth hydration and premium sign-in */
.app-loading-shell{position:fixed;inset:0;z-index:300;display:grid;place-items:center;background:var(--side);color:#fff;padding:24px}.app-loading-shell[hidden]{display:none!important}.loading-brand{position:absolute;left:30px;top:26px;display:flex;align-items:center;gap:11px;font:800 18px "Manrope",sans-serif}.loading-card{display:grid;justify-items:center;gap:9px;text-align:center}.loading-card strong{font:750 18px "Manrope",sans-serif}.loading-card small{max-width:330px;color:#99a49f;font-size:13px;line-height:1.55}.loading-orbit{width:45px;height:45px;margin-bottom:9px;border:2px solid #34413c;border-top-color:var(--lime);border-radius:50%;animation:fleetledger-spin .8s linear infinite}@keyframes fleetledger-spin{to{transform:rotate(360deg)}}
.auth-shell{display:block;padding:0;place-items:initial;background:var(--side)}.auth-layout{width:100%;min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(460px,.92fr)}.auth-story{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;padding:92px clamp(42px,7vw,110px) 72px;background:radial-gradient(circle at 12% 12%,rgba(61,94,80,.52),transparent 32%),radial-gradient(circle at 88% 86%,rgba(215,255,88,.12),transparent 30%),#0e1517}.auth-story:after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to bottom,transparent,#000 22%,#000 80%,transparent);pointer-events:none}.auth-brand{position:absolute;left:clamp(42px,7vw,110px);top:34px;z-index:1}.auth-story-copy,.auth-fleet-visual,.auth-footer{position:relative;z-index:1}.auth-story-copy{max-width:620px}.auth-story-copy .overline{color:var(--lime)}.auth-story-copy h2{max-width:590px;margin:13px 0 15px;font:800 clamp(38px,5.1vw,66px)/1.02 "Manrope",sans-serif;letter-spacing:-.055em}.auth-story-copy p{max-width:560px;margin:0;color:#aab6b1;font-size:clamp(16px,1.5vw,19px);line-height:1.65}.auth-fleet-visual{width:min(610px,100%);margin-top:38px;padding:21px;border:1px solid #34413c;border-radius:18px;background:rgba(21,31,28,.82);box-shadow:0 28px 80px rgba(0,0,0,.28);backdrop-filter:blur(12px)}.auth-visual-top,.auth-visual-footer{display:flex;align-items:center;justify-content:space-between}.auth-visual-top{padding-bottom:15px;border-bottom:1px solid #33403b;color:#aab6b1;font-size:13px}.auth-visual-top strong{color:var(--lime);font-size:12px}.auth-visual-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.auth-visual-metrics>div{padding:14px;border:1px solid #303c37;border-radius:11px;background:#17211e}.auth-visual-metrics small,.auth-visual-metrics strong{display:block}.auth-visual-metrics small{color:#8f9b96;font-size:11px}.auth-visual-metrics strong{margin:5px 0 3px;font:750 22px "Manrope",sans-serif}.visual-trend{color:#9ba7a2;font-size:10px;font-style:normal}.visual-trend.up{color:var(--lime)}.auth-vehicle-line{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:12px;padding:11px 4px;border-top:1px solid #2c3733}.auth-vehicle-line>span{width:31px;height:31px;display:grid;place-items:center;border-radius:8px;background:#25322d;color:var(--lime);font-size:10px;font-weight:800}.auth-vehicle-line>div{display:grid;gap:7px}.auth-vehicle-line strong{font-size:12px}.auth-vehicle-line i{height:4px;overflow:hidden;border-radius:99px;background:#33403b}.auth-vehicle-line i b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#49a487,var(--lime))}.auth-vehicle-line>small{color:#aab6b1;font-size:11px}.auth-visual-footer{padding-top:14px;border-top:1px solid #33403b;color:#899690;font-size:10px}.auth-visual-footer span:first-child{display:flex;align-items:center;gap:6px}.auth-visual-footer b{width:7px;height:7px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 4px rgba(215,255,88,.1)}.auth-story .auth-footer{position:static;margin:34px 0 0!important;color:#78857f!important}.auth-form-pane{display:grid;place-items:center;padding:60px clamp(28px,5vw,76px);background:#f4f6f5}.auth-card{width:min(470px,100%);padding:39px 40px;border:1px solid #e2e6e4;border-radius:22px;box-shadow:0 24px 70px rgba(19,32,27,.12)}.auth-card h1{font-size:34px}.auth-card .overline{color:var(--green)}
.account-support-card,.account-danger-card{padding:19px;border:1px solid var(--line);border-radius:13px;background:#fff}.account-support-card h3,.account-danger-card h3{margin:6px 0 6px;font:750 17px "Manrope",sans-serif}.account-support-card p,.account-danger-card p{margin:0 0 14px;color:var(--muted);font-size:12px;line-height:1.55}.account-support-link{min-height:42px;display:flex;align-items:center;justify-content:center;text-decoration:none}.account-danger-card{border-color:#edd1ce;background:#fffafa}.account-danger-card .mini-label{color:#a95751}.danger-outline-button,.danger-button{border-radius:8px;font-size:13px;font-weight:800}.danger-outline-button{min-height:42px;padding:0 14px;border:1px solid #d8928d;background:#fff;color:#a63f39}.danger-outline-button:hover{background:#fff0ef}.danger-button{border:0;background:#a63f39;color:#fff;min-height:48px}.danger-button:hover:not(:disabled){background:#8f302b}.danger-button:disabled{cursor:not-allowed;opacity:.45}.reset-data-backdrop{z-index:1000}.reset-data-modal{width:min(500px,100%)}.reset-data-modal>p{margin:-5px 0 17px;color:var(--muted);font-size:14px;line-height:1.6}.reset-data-safe-note{display:grid;gap:4px;margin-bottom:18px;padding:13px 14px;border:1px solid #cfe0d8;border-radius:10px;background:#f0f7f4}.reset-data-safe-note strong{font-size:13px;color:#245f4e}.reset-data-safe-note span{color:#61706a;font-size:12px;line-height:1.5}.reset-confirm-label{display:grid;gap:7px;color:#59645f;font-size:12px;font-weight:700}.reset-confirm-label input{height:44px;border:1px solid var(--line);border-radius:8px;padding:0 12px;font-weight:800;letter-spacing:.08em;outline:0}.reset-confirm-label input:focus{border-color:#b76560;box-shadow:0 0 0 3px rgba(166,63,57,.09)}.reset-data-modal .danger-button{width:100%;margin-top:14px}
@media(max-width:980px){.auth-layout{grid-template-columns:1fr}.auth-story{min-height:auto;padding:90px 32px 34px}.auth-brand{left:32px;top:28px}.auth-story-copy{max-width:740px}.auth-story-copy h2{max-width:720px;font-size:42px}.auth-story-copy p{max-width:700px}.auth-fleet-visual{display:none}.auth-story .auth-footer{margin-top:22px!important}.auth-form-pane{padding:42px 22px 58px}}
@media(max-width:780px){.header-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.header-actions .subscription-badge,.header-actions .checkout-button{grid-column:1/-1}.header-actions .month-select select,.header-actions .account-button{width:100%}}
.subscription-badge.free{background:#f4f6f5;border-color:var(--line);color:#34413d}.subscription-badge.free small{color:#68736f}.account-plan-benefits{margin:14px 0 0;color:#aebbb6;font-size:13px;line-height:1.5}.free-vehicle-locked{background:linear-gradient(145deg,#fff,#f4f6f5);border-style:dashed}.free-lock-badge{display:inline-flex;margin-left:8px;padding:3px 7px;border-radius:999px;background:#eef0ef;color:#68716e;font-size:10px;font-weight:800;vertical-align:middle}.feature-tier-note{color:var(--muted);font-size:12px;line-height:1.4}
@media(max-width:520px){.loading-brand{left:20px;top:20px}.auth-story{padding:80px 22px 28px}.auth-brand{left:22px;top:22px}.auth-story-copy h2{font-size:34px}.auth-story-copy p{font-size:15px}.auth-form-pane{padding:28px 14px 46px}.auth-card{padding:28px 20px;border-radius:17px}.auth-card h1{font-size:28px}.reset-data-backdrop{padding:14px}.reset-data-modal{padding:27px 20px}.header-actions{gap:8px}}

/* FleetDV v69 product showcase and secure admin */
.auth-story-copy,.auth-fleet-showcase,.auth-footer{position:relative;z-index:1}.auth-fleet-showcase{width:min(650px,100%);min-height:310px;margin-top:32px;overflow:hidden;border:1px solid #3a4842;border-radius:20px;background:#17211e;box-shadow:0 30px 80px rgba(0,0,0,.34)}.auth-fleet-showcase>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.auth-showcase-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,14,12,.08) 25%,rgba(8,14,12,.78) 100%)}.sample-dashboard-label{position:absolute;left:18px;top:17px;padding:6px 9px;border:1px solid rgba(255,255,255,.26);border-radius:99px;background:rgba(8,14,12,.7);color:#fff;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;backdrop-filter:blur(9px)}.sample-dashboard-grid{position:absolute;left:18px;right:18px;bottom:18px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.sample-dashboard-grid article{min-width:0;padding:11px 12px;border:1px solid rgba(255,255,255,.18);border-radius:11px;background:rgba(13,22,19,.84);backdrop-filter:blur(12px)}.sample-dashboard-grid small,.sample-dashboard-grid strong,.sample-dashboard-grid span{display:block}.sample-dashboard-grid small{overflow:hidden;color:#aeb9b4;font-size:9px;white-space:nowrap;text-overflow:ellipsis}.sample-dashboard-grid strong{margin-top:4px;color:#fff;font:750 18px "Manrope",sans-serif}.sample-dashboard-grid span{margin-top:2px;color:#aeb9b4;font-size:8px}.sample-dashboard-grid .sample-up,.sample-dashboard-grid article:nth-child(2) strong{color:var(--lime)}.sample-trend{position:absolute;right:22px;top:18px;display:flex;align-items:end;gap:3px;height:34px}.sample-trend span{width:4px;border-radius:3px;background:linear-gradient(var(--lime),#368c70)}.signup-offer{display:grid;gap:3px;padding:13px 14px;border:1px solid #d3e4dc;border-radius:10px;background:#f0f7f4}.signup-offer strong{color:#1e5e4b;font-size:14px}.signup-offer span{color:var(--ink);font-size:12px;font-weight:800}.signup-offer small{text-align:left;color:#6f7d77;font-size:10px}
.admin-nav-item{color:var(--lime)!important}.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.admin-stat,.admin-loading-card{padding:19px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:var(--shadow)}.admin-stat{display:grid;gap:8px}.admin-stat small{color:var(--muted);font-size:11px;font-weight:700}.admin-stat strong{font:800 25px "Manrope",sans-serif}.admin-loading-card{grid-column:1/-1;color:var(--muted)}.admin-loading-card.error{color:#9d403a;background:#fff8f7}.admin-security-note{padding:6px 9px;border-radius:99px;background:#e9f5ef;color:#26705a;font-size:10px;font-weight:800}.admin-users-table td:first-child{display:grid;min-width:210px;gap:3px}.admin-users-table td:first-child small{max-width:240px;overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis}.admin-status{display:inline-flex;padding:5px 8px;border-radius:99px;background:#edf0ef;color:#64706c;font-size:10px;font-weight:800;text-transform:capitalize}.admin-status.active,.admin-status.trialing{background:#e2f5ed;color:#176b54}.admin-status.past_due,.admin-status.unpaid{background:#fff0dd;color:#8a5a14}.admin-status.canceled,.admin-status.incomplete_expired{background:#ffebe8;color:#a4453e}.admin-roadmap{margin-top:18px;padding:21px;border:1px solid #314039;border-radius:14px;background:var(--dark);color:#fff}.admin-roadmap .overline{color:var(--lime)}.admin-roadmap strong{display:block;margin:8px 0 5px;font:750 18px "Manrope",sans-serif}.admin-roadmap p{margin:0;color:#aeb8b4;font-size:12px;line-height:1.55}
@media(max-width:1100px){.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.auth-fleet-showcase{display:block;max-width:720px;min-height:240px;margin-top:25px}.sample-dashboard-grid{grid-template-columns:repeat(4,1fr)}.auth-story .auth-footer{margin-top:18px!important}}
@media(max-width:620px){.admin-metrics{grid-template-columns:1fr 1fr}.admin-stat{padding:15px}.admin-stat strong{font-size:21px}.auth-fleet-showcase{min-height:205px;border-radius:15px}.sample-dashboard-grid{left:10px;right:10px;bottom:10px;grid-template-columns:1fr 1fr;gap:6px}.sample-dashboard-grid article{padding:7px 9px}.sample-dashboard-grid strong{font-size:15px}.sample-dashboard-label{left:10px;top:10px}.sample-trend{display:none}}

.auth-footer a{color:#aeb9b4;text-decoration:none}.auth-footer a:hover,.auth-footer a:focus-visible{color:var(--lime);text-decoration:underline}.author-footer a{color:#596762;text-decoration:none}.author-footer a:hover,.author-footer a:focus-visible{color:var(--green);text-decoration:underline}.signup-legal-consent{margin:-3px 0 0;color:#6c7873;font-size:11px;line-height:1.55;text-align:center}.signup-legal-consent a{color:var(--green);font-weight:800}.account-legal-links{display:flex;justify-content:center;gap:18px;margin-top:14px}.account-legal-links a{color:var(--green);font-size:12px;font-weight:800;text-decoration:none}.account-legal-links a:hover,.account-legal-links a:focus-visible{text-decoration:underline}

/* Vehicle profiles and VIN enrichment */
.vehicle-card[data-open-vehicle]{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.vehicle-card[data-open-vehicle]:hover,.vehicle-card[data-open-vehicle]:focus-visible{transform:translateY(-2px);border-color:#aec6bc;box-shadow:0 19px 44px rgba(23,54,43,.13);outline:0}.vehicle-profile-shell[hidden]{display:none!important}.vehicle-profile-shell{position:fixed;inset:0;z-index:205;display:flex;justify-content:flex-end}.vehicle-profile-backdrop{position:absolute;inset:0;border:0;background:rgba(10,18,15,.62);backdrop-filter:blur(3px)}.vehicle-profile{position:relative;z-index:1;width:min(760px,100%);height:100%;overflow-y:auto;background:#f4f7f5;color:var(--ink);box-shadow:-25px 0 80px rgba(4,13,9,.3)}.vehicle-profile-close{position:sticky;z-index:4;float:right;top:20px;margin:20px 22px 0 0}.vehicle-profile-hero{position:relative;min-height:270px;display:flex;align-items:flex-end;padding:32px;background:linear-gradient(140deg,#12201b,#24382f);color:#fff}.vehicle-profile-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.vehicle-profile-hero:has(.vehicle-profile-image):after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,14,11,.12),rgba(8,14,11,.86))}.vehicle-profile-copy{position:relative;z-index:2;max-width:600px}.vehicle-profile-copy .overline{color:var(--lime)}.vehicle-profile-copy h2{margin:8px 0 8px;font:800 clamp(28px,5vw,43px)/1.06 "Manrope",sans-serif;letter-spacing:-.045em}.vehicle-profile-copy p{margin:4px 0;color:#c5d0cb;font-size:14px}.vehicle-profile-image-label{display:inline-flex;margin-top:14px;padding:6px 9px;border:1px solid rgba(255,255,255,.24);border-radius:99px;background:rgba(10,18,15,.66);color:#fff!important;font-size:10px!important;font-weight:800}.vehicle-profile-body{display:grid;gap:16px;padding:24px 28px 40px}.vehicle-profile-section{padding:21px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 9px 25px rgba(18,44,35,.05)}.vehicle-profile-section h3{margin:0 0 16px;font:800 17px "Manrope",sans-serif}.vehicle-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px}.vehicle-profile-facts div{display:grid;gap:4px;min-width:0}.vehicle-profile-facts span{color:var(--muted);font-size:11px;font-weight:700}.vehicle-profile-facts strong{overflow-wrap:anywhere;font-size:14px}.vehicle-profile-actions{display:flex;gap:10px;flex-wrap:wrap}.vehicle-profile-empty{display:grid;place-items:center;min-height:140px;color:#aebbb6;font-weight:800}.vin-status{display:inline-flex;margin-left:8px;padding:4px 7px;border-radius:99px;background:#eaf5f0;color:#246d58;font-size:9px;font-weight:800;vertical-align:middle}.vin-status.pending{background:#fff3d9;color:#835f18}.vin-status.invalid{background:#ffeae7;color:#a3463f}@media(max-width:620px){.vehicle-profile{width:100%}.vehicle-profile-hero{min-height:235px;padding:25px 20px}.vehicle-profile-body{padding:18px 15px 30px}.vehicle-profile-section{padding:17px}.vehicle-profile-facts{grid-template-columns:1fr 1fr;gap:13px}.vehicle-profile-close{top:10px;margin:10px 12px 0 0}}

/* Native dialog occupies the browser top layer above the Account & Billing drawer. */
dialog.reset-data-backdrop{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:20px;color:var(--ink);background:var(--overlay);overflow:auto}
dialog.reset-data-backdrop::backdrop{background:var(--overlay)}
@media(max-width:520px){dialog.reset-data-backdrop{padding:14px}}

.experience-command-trigger,.experience-mobile-nav,.experience-command-palette,.experience-profile-control,.experience-drawer-backdrop,.experience-drawer-head,.experience-drawer-settings{display:none}
.experience-control{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:16px}.experience-control h2{margin:5px 0}.experience-control p{max-width:680px;margin:0;color:var(--muted);font-size:12px}.experience-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;min-width:510px}.experience-options button{display:grid;gap:2px;padding:13px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);text-align:left}.experience-options button.active{border-color:var(--green);background:#edf7f3;box-shadow:0 0 0 2px rgba(35,119,92,.1)}.experience-options small{color:var(--muted)}
body.experience-modern{--new-bg:#eef2f0;--new-panel:#fff;--new-navy:#0b1216;--new-lime:#d8ff58;background:var(--new-bg)}
.experience-modern .app-shell{grid-template-columns:224px 1fr;background:var(--new-bg)}.experience-modern .sidebar{width:224px;background:var(--new-navy);padding:22px 14px}.experience-modern .brand{font-size:18px;padding:0 9px 23px}.experience-modern .brand-mark{background:var(--new-lime);color:#111b18}.experience-modern .main-nav{gap:3px}.experience-modern .nav-item{height:38px;border-radius:9px;color:#9ca9a4;font-size:11px}.experience-modern .nav-item:hover{background:#17211f;color:#fff}.experience-modern .nav-item.active{background:var(--new-lime);color:#111b18}.experience-modern .sidebar-card{border:1px solid #283530;background:#111c19}.experience-modern .profile{border-top-color:#26322e}
.experience-modern .workspace{max-width:none;padding:0 34px 48px}.experience-modern .workspace-header{height:96px;border-bottom:0;gap:18px}.experience-modern .workspace-header>div:first-of-type p{font-size:10px;text-transform:uppercase;letter-spacing:.12em}.experience-modern #pageTitle{font-size:25px}.experience-modern .header-actions{gap:7px}.experience-modern .sample-pill{display:none}.experience-modern .experience-command-trigger{display:flex;align-items:center;gap:9px;width:min(310px,25vw);height:42px;margin-left:auto;padding:0 12px;border:1px solid #d5dcda;border-radius:11px;background:#fff;color:#7d8985;text-align:left}.experience-modern .experience-command-trigger strong{flex:1;font-size:11px}.experience-modern kbd{border:1px solid #d9dfdd;border-radius:5px;background:#f3f5f4;padding:3px 6px;color:#68736f;font:700 9px "DM Sans"}
.experience-modern .formula-note{border:0;border-radius:12px;background:linear-gradient(110deg,#0b1216,#182720);color:#c5d0cc}.experience-modern .metric-grid{gap:14px}.experience-modern .metric-card{min-height:150px;border:0;border-radius:18px;box-shadow:0 12px 35px rgba(22,39,32,.08)}.experience-modern .metric-card:first-child{background:var(--new-navy);color:#fff}.experience-modern .metric-card:first-child span,.experience-modern .metric-card:first-child small{color:#99a6a1}.experience-modern .panel{border:0;border-radius:18px;box-shadow:0 12px 35px rgba(22,39,32,.07)}.experience-modern .dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(300px,.75fr);gap:16px}.experience-modern .lower-grid{grid-template-columns:1.2fr .8fr}.experience-modern .fleet-panel{margin-top:16px}.experience-modern .vehicle-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.experience-modern .vehicle-card{min-height:350px;border:0;border-radius:18px;box-shadow:0 12px 35px rgba(22,39,32,.08);transition:.2s}.experience-modern .vehicle-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(22,39,32,.12)}.experience-modern .large-badge{width:58px;height:58px;border-radius:16px;background:var(--new-navy)}.experience-modern .vehicle-profit{padding:24px 0}.experience-modern .vehicle-profit strong{font-size:34px}.experience-modern .author-footer{margin-left:224px;background:var(--new-bg)}
.experience-modern .experience-command-palette{display:grid;position:fixed;inset:0;z-index:90;place-items:start center;padding-top:12vh;background:rgba(5,11,13,.6);backdrop-filter:blur(8px)}.experience-modern .experience-command-palette[hidden]{display:none}.experience-command-palette section{width:min(620px,calc(100% - 28px));overflow:hidden;border:1px solid #dce1df;border-radius:16px;background:#fff;box-shadow:0 30px 100px rgba(0,0,0,.3)}.experience-command-input{display:flex;align-items:center;gap:11px;padding:15px;border-bottom:1px solid #e8ecea}.experience-command-input input{flex:1;border:0;outline:0;font-size:15px}.experience-command-results{display:grid;max-height:420px;overflow:auto;padding:8px}.experience-command-results button{display:flex;align-items:center;justify-content:space-between;border:0;border-radius:9px;background:transparent;padding:11px;text-align:left}.experience-command-results button:hover,.experience-command-results button:focus{background:#eff5f2;outline:0}.experience-command-results button span{display:grid;gap:2px}.experience-command-results small,.experience-command-results p{color:#7c8883}.experience-command-results b{color:var(--green)}
@media(max-width:1050px){.experience-modern .experience-command-trigger{width:44px}.experience-modern .experience-command-trigger strong,.experience-modern .experience-command-trigger kbd{display:none}.experience-modern .header-actions{flex-wrap:wrap}.experience-control{align-items:stretch;flex-direction:column}.experience-options{min-width:0}}
@media(max-width:780px){.experience-modern .app-shell{display:block}.experience-modern .sidebar{width:250px}.experience-modern .workspace{padding:0 16px 100px}.experience-modern .workspace-header{min-height:86px}.experience-modern .experience-command-trigger{display:flex;order:2;margin-left:auto}.experience-modern .header-actions{order:3}.experience-modern .dashboard-grid,.experience-modern .lower-grid{grid-template-columns:1fr}.experience-modern .metric-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:7px}.experience-modern .metric-card{min-width:78vw;scroll-snap-align:start}.experience-modern .experience-mobile-nav{display:grid;position:fixed;z-index:40;left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));grid-template-columns:repeat(5,1fr);padding:7px;border:1px solid rgba(255,255,255,.1);border-radius:19px;background:rgba(11,18,22,.96);box-shadow:0 15px 45px rgba(0,0,0,.28);backdrop-filter:blur(16px)}.experience-mobile-nav button{display:grid;place-items:center;gap:2px;border:0;border-radius:12px;background:transparent;color:#8f9b96;padding:7px 2px}.experience-mobile-nav button.active{background:var(--new-lime);color:#101815}.experience-mobile-nav span{font-size:16px}.experience-mobile-nav small{font-size:8px;font-weight:800}.experience-modern .author-footer{margin-left:0;padding-bottom:96px}.experience-modern .vehicle-card{min-height:320px}}

/* Modern — Version B */
.modern-overview-extension{display:none}.experience-modern .modern-overview-extension{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.7fr);gap:16px;margin:16px 0}.modern-vehicle-panel,.modern-revenue-panel,.modern-expense-panel{border:0;border-radius:18px;background:#fff;padding:22px;box-shadow:0 12px 35px rgba(22,39,32,.07)}.experience-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.experience-section-head h2{margin:4px 0 0;font:750 20px "Manrope"}.modern-vehicle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.modern-vehicle-grid .vehicle-card{min-height:0;padding:16px;box-shadow:none;border:1px solid #e6ebf0}.modern-vehicle-grid .vehicle-card-head{padding-bottom:12px}.modern-vehicle-grid .vehicle-profit{padding:14px 0}.modern-vehicle-grid .vehicle-profit strong{font-size:24px}.modern-vehicle-grid .large-badge{width:43px;height:43px;border-radius:12px}.modern-side-stack{display:grid;gap:16px}.modern-revenue-list{display:grid;gap:14px}.modern-revenue-list>div{display:grid;grid-template-columns:minmax(0,1fr) 72px auto;gap:10px;align-items:center}.modern-revenue-list span{display:grid}.modern-revenue-list strong{font-size:12px}.modern-revenue-list small{color:var(--muted);font-size:10px}.modern-revenue-list i{height:7px;border-radius:99px;background:linear-gradient(90deg,#2f78ff var(--bar),#e8eef7 var(--bar))}.modern-revenue-list b{font-size:11px}.modern-expense-list .expense-row{grid-template-columns:auto 1fr auto}.modern-expense-list .expense-row button{display:none}.experience-empty{color:var(--muted);font-size:13px;line-height:1.5}.experience-modern .fleet-panel{display:none}.experience-modern .workspace{background:#f3f7fb}.experience-modern .metric-card:first-child{background:#fff;color:var(--ink)}.experience-modern .metric-card:nth-child(3){background:linear-gradient(140deg,#0d1b2a,#153150);color:#fff}.experience-modern .metric-card:nth-child(3) span,.experience-modern .metric-card:nth-child(3) small{color:#a9bbca}.experience-modern .nav-item.active{background:#3182f6;color:#fff}.experience-modern .brand-mark{background:#3b82f6;color:#fff}.experience-modern .formula-note{background:linear-gradient(110deg,#10243a,#193d61)}

/* Premium — Version E */
body.experience-premium{--premium-blue:#1459d9;--premium-navy:#081527;--premium-bg:#f2f5fa;background:var(--premium-bg)}.experience-premium .app-shell{grid-template-columns:236px 1fr;background:var(--premium-bg)}.experience-premium .sidebar{width:236px;padding:24px 15px;background:linear-gradient(180deg,#07111f,#0a1c33 72%,#0d2848)}.experience-premium .brand{padding:0 10px 24px}.experience-premium .brand-mark{background:#2b73ff;color:#fff;box-shadow:0 8px 22px rgba(43,115,255,.35)}.experience-premium .nav-item{height:40px;border-radius:10px;color:#9bacc0}.experience-premium .nav-item:hover{background:rgba(255,255,255,.07);color:#fff}.experience-premium .nav-item.active{background:#1f63e4;color:#fff;box-shadow:0 8px 20px rgba(15,83,211,.25)}.experience-premium .sidebar-card{border-color:#28415f;background:rgba(255,255,255,.055)}.experience-premium .profile{border-top-color:#29415c}.experience-premium .workspace{max-width:none;padding:0 38px 54px;background:var(--premium-bg)}.experience-premium .workspace-header{height:100px;border:0}.experience-premium .sample-pill{display:none}.experience-premium .experience-command-trigger{display:flex;align-items:center;gap:9px;width:min(330px,26vw);height:43px;margin-left:auto;padding:0 13px;border:1px solid #d7deea;border-radius:11px;background:#fff;color:#738096;text-align:left;box-shadow:0 5px 16px rgba(20,40,70,.04)}.experience-premium .experience-command-trigger strong{flex:1;font-size:11px}.experience-premium kbd{border:1px solid #d9e0eb;border-radius:5px;background:#f3f6fa;padding:3px 6px;color:#68758b;font:700 9px "DM Sans"}.experience-premium #overviewView{display:flex;flex-direction:column}.experience-premium #overviewView:not(.active){display:none}.experience-premium .setup-launchpad{order:0}.experience-premium .formula-note{order:1;border:0;border-radius:12px;background:linear-gradient(105deg,#071a32,#104b9b);color:#d6e5fa}.experience-premium .metric-grid{order:2;gap:15px}.experience-premium .metric-card{min-height:152px;border:0;border-radius:16px;background:#fff;box-shadow:0 12px 32px rgba(20,45,80,.07)}.experience-premium .metric-card:nth-child(3){background:linear-gradient(145deg,#0a2040,#1459d9);color:#fff}.experience-premium .metric-card:nth-child(3) span,.experience-premium .metric-card:nth-child(3) small{color:#bdd2f1}.experience-premium .metric-card strong{letter-spacing:-.04em}.experience-premium .modern-overview-extension{order:3}.experience-premium .lower-grid{order:3;grid-template-columns:.75fr 1.25fr;gap:16px;margin:16px 0}.experience-premium .lower-grid .insight-card{order:-1;min-height:210px;border:0;background:linear-gradient(125deg,#0b1f3c,#175fda);color:#fff;box-shadow:0 16px 40px rgba(20,89,217,.22)}.experience-premium .lower-grid .insight-card .overline,.experience-premium .lower-grid .insight-card p{color:#c7d9f3}.experience-premium .insight-mark{background:#fff;color:#1459d9}.experience-premium .dashboard-grid{order:4;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);gap:16px}.experience-premium .fleet-panel{order:5;margin-top:16px}.experience-premium .panel{border:0;border-radius:16px;box-shadow:0 12px 32px rgba(20,45,80,.07)}.experience-premium .revenue-panel{border-top:4px solid #246fe8}.experience-premium .breakdown-panel{border-top:4px solid #0e2a4c}.experience-premium .author-footer{margin-left:236px;background:var(--premium-bg)}.experience-premium .experience-command-palette{display:grid;position:fixed;inset:0;z-index:90;place-items:start center;padding-top:12vh;background:rgba(5,15,30,.64);backdrop-filter:blur(9px)}.experience-premium .experience-command-palette[hidden]{display:none}

@media(max-width:1050px){.experience-premium .experience-command-trigger{width:44px}.experience-premium .experience-command-trigger strong,.experience-premium .experience-command-trigger kbd{display:none}.experience-premium .header-actions{flex-wrap:wrap}}
@media(max-width:900px){.experience-modern .modern-overview-extension{grid-template-columns:1fr}.modern-vehicle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.experience-options{grid-template-columns:1fr;min-width:0}.experience-premium .app-shell{display:block}.experience-premium .sidebar{width:252px}.experience-premium .workspace{padding:0 16px 100px}.experience-premium .workspace-header{min-height:88px}.experience-premium .experience-command-trigger{display:flex;order:2;margin-left:auto}.experience-premium .header-actions{order:3}.experience-premium .metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.experience-premium .metric-card{min-height:132px}.experience-premium .dashboard-grid,.experience-premium .lower-grid{grid-template-columns:1fr}.experience-premium .lower-grid .insight-card{min-height:180px}.experience-premium .experience-mobile-nav{display:grid;position:fixed;z-index:40;left:10px;right:10px;bottom:max(9px,env(safe-area-inset-bottom));grid-template-columns:repeat(5,1fr);padding:8px;border:1px solid rgba(255,255,255,.12);border-radius:15px;background:linear-gradient(100deg,#07172b,#0d3157);box-shadow:0 16px 46px rgba(3,16,34,.36)}.experience-premium .experience-mobile-nav button.active{background:#2b73ff;color:#fff}.experience-premium .author-footer{margin-left:0;padding-bottom:96px}.experience-modern .modern-overview-extension{grid-template-columns:1fr}.modern-vehicle-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.modern-vehicle-grid .vehicle-card{min-width:78vw;scroll-snap-align:start}}

/* Version 104: the Turo connection setup is the first Overview module in every experience. */
.experience-premium #overviewView>.setup-launchpad{order:-2}

/* Modern and Premium mobile structure — Classic intentionally excluded */
@media(max-width:780px){
  body:is(.experience-modern,.experience-premium){overflow-x:clip}
  body.experience-drawer-open{overflow:hidden;overscroll-behavior:none}
  :is(.experience-modern,.experience-premium) .experience-drawer-backdrop{position:fixed;z-index:120;inset:0;display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:rgba(4,11,20,.68);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
  :is(.experience-modern,.experience-premium) .experience-drawer-backdrop[hidden]{display:none}
  :is(.experience-modern,.experience-premium) .sidebar{z-index:130;inset:0 auto 0 0;width:min(86vw,348px);max-width:calc(100vw - 46px);height:100vh;height:100dvh;padding:calc(12px + env(safe-area-inset-top)) 13px calc(12px + env(safe-area-inset-bottom));overflow:hidden;box-shadow:22px 0 56px rgba(0,0,0,.38);transform:translate3d(-105%,0,0);transition:transform .24s ease;will-change:transform}
  :is(.experience-modern,.experience-premium) .sidebar.open{transform:translate3d(0,0,0)}
  :is(.experience-modern,.experience-premium) .sidebar>.brand{padding:0 5px 10px}
  :is(.experience-modern,.experience-premium) .experience-drawer-head{display:flex;align-items:center;justify-content:space-between;min-height:42px;margin-bottom:7px;padding:0 5px 8px;border-bottom:1px solid rgba(255,255,255,.1);color:#aab8c2;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
  :is(.experience-modern,.experience-premium) #experienceDrawerClose{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(255,255,255,.13);border-radius:11px;background:rgba(255,255,255,.07);color:#fff;font-size:25px;line-height:1}
  :is(.experience-modern,.experience-premium) .main-nav{display:grid;flex:1 1 auto;align-content:start;gap:3px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 0 8px;-webkit-overflow-scrolling:touch}
  :is(.experience-modern,.experience-premium) .main-nav .nav-item{min-height:43px;height:43px;font-size:14px}
  :is(.experience-modern,.experience-premium) .main-nav [data-view="overview"],:is(.experience-modern,.experience-premium) .main-nav [data-view="bookings"],:is(.experience-modern,.experience-premium) .main-nav [data-view="vehicles"],:is(.experience-modern,.experience-premium) .main-nav [data-view="expenses"],:is(.experience-modern,.experience-premium) .main-nav [data-view="reports"],:is(.experience-modern,.experience-premium) .main-nav [data-view="reconciliation"],:is(.experience-modern,.experience-premium) .main-nav [data-view="yearly"],:is(.experience-modern,.experience-premium) .main-nav [data-view="profit"],:is(.experience-modern,.experience-premium) .main-nav [data-view="performance"],:is(.experience-modern,.experience-premium) .main-nav [data-view="decisions"],:is(.experience-modern,.experience-premium) .main-nav [data-view="safety"]{display:none}
  :is(.experience-modern,.experience-premium) .sidebar-card,:is(.experience-modern,.experience-premium) .sidebar>.profile{display:none}
  :is(.experience-modern,.experience-premium) .experience-drawer-settings{display:grid;gap:3px;margin-top:auto;padding-top:9px;border-top:1px solid rgba(255,255,255,.1)}
  :is(.experience-modern,.experience-premium) .experience-drawer-settings>*{display:flex;align-items:center;justify-content:space-between;min-height:41px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:#aab8c2;text-decoration:none;font:700 13px "DM Sans";text-align:left}
  :is(.experience-modern,.experience-premium) .experience-drawer-settings>*:hover,:is(.experience-modern,.experience-premium) .experience-drawer-settings>*:focus{background:rgba(255,255,255,.07);color:#fff;outline:0}
  :is(.experience-modern,.experience-premium) .experience-drawer-settings>[hidden]{display:none}
  :is(.experience-modern,.experience-premium) .experience-drawer-settings b{font-size:19px;font-weight:500}
  :is(.experience-modern,.experience-premium) .app-shell,:is(.experience-modern,.experience-premium) .workspace,:is(.experience-modern,.experience-premium) .view,:is(.experience-modern,.experience-premium) .panel{min-width:0;max-width:100%}
  :is(.experience-modern,.experience-premium) .workspace{width:100%;padding:0 14px calc(132px + env(safe-area-inset-bottom))}
  :is(.experience-modern,.experience-premium) .workspace-header{position:sticky;top:0;z-index:35;display:grid;grid-template-columns:42px minmax(0,1fr) 40px 40px;grid-template-rows:auto auto;align-items:center;gap:8px;width:100%;height:auto;min-height:0;margin:0 0 16px;padding:10px 0 11px;border-bottom:1px solid rgba(122,139,156,.18);background:rgba(243,247,251,.96);backdrop-filter:blur(16px)}
  .experience-premium .workspace-header{background:rgba(242,245,250,.96)}
  :is(.experience-modern,.experience-premium) .menu-button{grid-column:1;grid-row:1;width:42px;height:42px;margin:0}
  :is(.experience-modern,.experience-premium) .workspace-header>div:nth-of-type(1){grid-column:2;grid-row:1;min-width:0}
  :is(.experience-modern,.experience-premium) .workspace-header>div:nth-of-type(1)>p{display:none}
  :is(.experience-modern,.experience-premium) #pageTitle{overflow:hidden;margin:0;font-size:20px;line-height:1.15;white-space:nowrap;text-overflow:ellipsis}
  :is(.experience-modern,.experience-premium) .experience-command-trigger{grid-column:3;grid-row:1;display:grid;place-items:center;order:initial;width:40px;height:40px;margin:0;padding:0;border-radius:10px}
  :is(.experience-modern,.experience-premium) .experience-command-trigger strong,:is(.experience-modern,.experience-premium) .experience-command-trigger kbd{display:none}
  :is(.experience-modern,.experience-premium) .experience-profile-control{position:relative;grid-column:4;grid-row:1;display:block}
  :is(.experience-modern,.experience-premium) #experienceProfileButton{position:relative;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:11px;background:#10243a;color:#fff;font:800 11px "Manrope"}
  .experience-premium #experienceProfileButton{background:#1459d9}
  :is(.experience-modern,.experience-premium) #experienceProfileButton:after{content:"";position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;border:2px solid #f3f7fb;border-radius:50%;background:#50b995}
  :is(.experience-modern,.experience-premium) .experience-profile-menu{position:absolute;z-index:80;right:0;top:48px;width:min(248px,calc(100vw - 28px));display:grid;gap:4px;padding:12px;border:1px solid #dbe3ea;border-radius:13px;background:#fff;box-shadow:0 20px 55px rgba(12,31,52,.22)}
  :is(.experience-modern,.experience-premium) .experience-profile-menu[hidden]{display:none}
  :is(.experience-modern,.experience-premium) .experience-profile-menu>strong,:is(.experience-modern,.experience-premium) .experience-profile-menu>small{padding:0 8px}
  :is(.experience-modern,.experience-premium) .experience-profile-menu>small{margin-bottom:7px;color:#597085;font-size:12px;font-weight:700}
  :is(.experience-modern,.experience-premium) .experience-profile-menu>button{min-height:42px;border:0;border-radius:9px;background:#f2f6f9;color:#183047;text-align:left;padding:0 11px;font-weight:750}
  :is(.experience-modern,.experience-premium) .header-actions{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%;min-width:0;margin:0;padding:0}
  :is(.experience-modern,.experience-premium) .header-actions .sample-pill,:is(.experience-modern,.experience-premium) .header-actions .subscription-badge,:is(.experience-modern,.experience-premium) .header-actions .account-button{display:none!important}
  :is(.experience-modern,.experience-premium) .header-actions .month-select,:is(.experience-modern,.experience-premium) .header-actions .month-select select{width:100%;min-width:0;max-width:100%}
  :is(.experience-modern,.experience-premium) .header-actions .checkout-button{grid-column:1/-1;width:100%;max-width:100%}
  :is(.experience-modern,.experience-premium) .view.active>.section-toolbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:10px;width:100%;margin:0 0 14px}
  :is(.experience-modern,.experience-premium) .view.active>.section-toolbar>div:first-child>h2{display:none}
  :is(.experience-modern,.experience-premium) .view.active>.section-toolbar>div:first-child>p{margin:0;font-size:13px;line-height:1.45}
  :is(.experience-modern,.experience-premium) .view.active>.section-toolbar>.primary-button,:is(.experience-modern,.experience-premium) .view.active>.section-toolbar>.secondary-button{width:100%;max-width:100%;min-height:44px}
  :is(.experience-modern,.experience-premium) .toolbar-actions{display:grid;grid-template-columns:1fr;width:100%;gap:8px}
  :is(.experience-modern,.experience-premium) .toolbar-actions>*{width:100%;max-width:100%;min-width:0}
  :is(.experience-modern,.experience-premium) #vehiclesView .vehicle-grid{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:12px;overflow:visible}
  :is(.experience-modern,.experience-premium) #vehiclesView .vehicle-card{width:100%;min-width:0;max-width:100%;min-height:0;margin:0;padding:17px;overflow:hidden}
  :is(.experience-modern,.experience-premium) .vehicle-card-head{min-width:0}
  :is(.experience-modern,.experience-premium) .vehicle-card-head>div{min-width:0}
  :is(.experience-modern,.experience-premium) .vehicle-card-head strong,:is(.experience-modern,.experience-premium) .vehicle-card-head small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  :is(.experience-modern,.experience-premium) .modern-vehicle-grid{display:grid;grid-template-columns:minmax(0,1fr);width:100%;overflow:visible}
  :is(.experience-modern,.experience-premium) .modern-vehicle-grid .vehicle-card{width:100%;min-width:0;max-width:100%}
  :is(.experience-modern,.experience-premium) .fleet-table-wrap,:is(.experience-modern,.experience-premium) .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  :is(.experience-modern,.experience-premium) .calculator-panel,:is(.experience-modern,.experience-premium) .report-columns,:is(.experience-modern,.experience-premium) .expense-grid{grid-template-columns:minmax(0,1fr)}
  :is(.experience-modern,.experience-premium) .experience-mobile-nav{left:10px;right:10px;bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-width:calc(100vw - 20px);padding:7px}
  :is(.experience-modern,.experience-premium) .experience-mobile-nav button{min-width:0;padding:7px 1px}
  :is(.experience-modern,.experience-premium) .experience-mobile-nav small{font-size:10px;line-height:1.1}
  :is(.experience-modern,.experience-premium) .account-panel-body{padding-bottom:calc(34px + env(safe-area-inset-bottom))}
  :is(.experience-modern,.experience-premium) .author-footer{padding-bottom:calc(116px + env(safe-area-inset-bottom))}
}

@media(max-width:400px){
  :is(.experience-modern,.experience-premium) .workspace{padding-left:11px;padding-right:11px}
  :is(.experience-modern,.experience-premium) .workspace-header{grid-template-columns:40px minmax(0,1fr) 38px 38px;gap:6px}
  :is(.experience-modern,.experience-premium) #pageTitle{font-size:19px}
  :is(.experience-modern,.experience-premium) .metric-grid{grid-template-columns:minmax(0,1fr)}
  :is(.experience-modern,.experience-premium) .metric-card{min-width:0;width:100%}
}

.setup-launchpad{align-items:center}.setup-step{grid-template-columns:auto minmax(0,1fr) auto auto}.setup-state{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:99px;background:#303b37;color:#b8c3bf;font-size:9px;font-weight:800;white-space:nowrap}.setup-step[data-status="complete"] .setup-state{background:#183f32;color:#96e5c6}.setup-step[data-status="complete"] .setup-number{font-size:0}.setup-step[data-status="complete"] .setup-number:after{content:"✓";font-size:12px}.setup-step[data-status="attention"] .setup-state{background:#4a391c;color:#ffd889}
.vehicle-page-header{align-items:end}.vehicle-page-header h2{font-size:clamp(25px,3vw,36px);margin:4px 0}.vehicle-header-actions{display:flex;align-items:center;gap:10px}.vehicle-search input{width:min(270px,30vw);height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 14px;font-size:12px;font-weight:600;color:var(--ink)}.vehicle-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:18px}.premium-vehicle-card{padding:0!important;overflow:hidden;border-radius:16px;background:#fff}.vehicle-card-media{position:relative;aspect-ratio:16/8.7;overflow:hidden;background:#17221e}.vehicle-card-image{width:100%;height:100%;display:block;object-fit:cover}.vehicle-image-fallback{width:100%;height:100%;display:grid;place-content:center;justify-items:center;gap:8px;background:linear-gradient(145deg,#13201b,#263b32);color:#fff}.vehicle-image-fallback[hidden]{display:none}.vehicle-image-fallback span{display:grid;place-items:center;width:62px;height:62px;border:1px solid rgba(255,255,255,.22);border-radius:18px;background:rgba(255,255,255,.09);font:800 20px "Manrope",sans-serif}.vehicle-image-fallback small{color:#bfcac5;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.vehicle-media-badges{position:absolute;top:12px;left:12px;display:flex;gap:6px;flex-wrap:wrap}.vehicle-media-badges .vin-status,.vehicle-media-badges .free-lock-badge{margin:0;box-shadow:0 5px 15px rgba(0,0,0,.12)}.vehicle-manage-button{position:absolute;top:11px;right:11px;min-width:38px;height:36px;padding:0 11px;border:1px solid rgba(255,255,255,.25);border-radius:10px;background:rgba(10,18,15,.78);color:#fff;font-weight:800;backdrop-filter:blur(8px)}.vehicle-card-content{padding:17px}.vehicle-identity{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.vehicle-identity h3{margin:0;font:800 18px/1.22 "Manrope",sans-serif;letter-spacing:-.025em}.vehicle-identity p{margin:4px 0 0;color:var(--muted);font-size:10px}.vehicle-activity{flex:0 0 auto;padding:5px 8px;border-radius:99px;background:#f0f3f2;color:#68736f;font-size:9px;font-weight:800}.vehicle-activity.booked{background:#e7f5ef;color:#187458}.vehicle-card-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:15px 0;background:var(--line);border:1px solid var(--line);border-radius:11px;overflow:hidden}.vehicle-card-facts>div{display:grid;gap:4px;padding:11px;background:#f8faf9}.vehicle-card-facts span{color:var(--muted);font-size:9px;font-weight:700}.vehicle-card-facts strong{font-size:12px;overflow-wrap:anywhere}.vehicle-card-facts .positive{color:#16795a}.vehicle-card-facts .negative{color:#c1554d}.vehicle-utilization{display:grid;gap:8px}.vehicle-utilization>span{display:flex;justify-content:space-between;gap:10px;font-size:10px}.vehicle-utilization small{color:var(--muted)}.vehicle-utilization>i{height:6px;border-radius:99px;background:#e9edeb;overflow:hidden}.vehicle-utilization>i>b{display:block;height:100%;border-radius:inherit;background:var(--green)}.vehicle-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.vehicle-card-footer>span{color:var(--muted);font-size:9px}.vehicle-card-footer .text-link{font-size:10px}
.vehicle-photo-field{display:grid;grid-template-columns:118px 1fr;gap:15px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:12px;background:#f7f9f8}.vehicle-photo-preview{aspect-ratio:4/3;overflow:hidden;border-radius:10px;background:#18241f;color:#fff;display:grid;place-content:center;justify-items:center;gap:5px}.vehicle-photo-preview>img{width:100%;height:100%;object-fit:cover}.vehicle-photo-preview>span{font:800 18px "Manrope"}.vehicle-photo-preview>small{color:#b5c0bc;font-size:8px}.vehicle-photo-copy{display:grid;gap:7px}.vehicle-photo-copy>small,.vehicle-photo-status{color:var(--muted);font-size:9px;line-height:1.45}.vehicle-photo-actions{display:flex;align-items:center;gap:10px}.vehicle-photo-button{display:inline-flex!important;align-items:center;justify-content:center;width:max-content}.text-button{border:0;background:transparent;color:#b14942;font-size:10px;font-weight:800}
.experience-modern .premium-vehicle-card{border:0;border-radius:19px;box-shadow:0 13px 34px rgba(18,38,54,.1)}.experience-modern .vehicle-image-fallback{background:linear-gradient(145deg,#10243a,#1b4b70)}.experience-modern .vehicle-utilization>i>b{background:#3182f6}.experience-modern .vehicle-card-facts>div{background:#f5f8fc}.experience-premium .premium-vehicle-card{border:1px solid #e0e7f1;border-radius:17px;box-shadow:0 16px 38px rgba(10,37,72,.11)}.experience-premium .vehicle-image-fallback{background:linear-gradient(145deg,#07172b,#123b69)}.experience-premium .vehicle-utilization>i>b{background:#246fe8}.experience-premium .vehicle-card-facts>div{background:#f4f7fb}.experience-premium .vehicle-manage-button{background:rgba(8,21,39,.86)}
@media(max-width:700px){.setup-step{grid-template-columns:auto minmax(0,1fr) auto}.setup-step .secondary-button{grid-column:1/-1}.vehicle-page-header{display:grid!important;gap:14px}.vehicle-header-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%}.vehicle-search input{width:100%}.vehicle-header-actions .primary-button{width:auto!important;white-space:nowrap}.vehicle-grid{grid-template-columns:1fr;gap:13px}.vehicle-card-media{aspect-ratio:16/8.4}.vehicle-card-content{padding:15px}.vehicle-identity{display:grid}.vehicle-activity{width:max-content}.vehicle-photo-field{grid-template-columns:92px 1fr}.vehicle-photo-actions{align-items:flex-start;flex-direction:column}.vehicle-photo-button{width:100%}.premium-vehicle-card{min-height:0!important}.experience-modern .premium-vehicle-card,.experience-premium .premium-vehicle-card{width:100%;max-width:100%}}
@media(max-width:430px){.setup-state{display:none}.vehicle-header-actions{grid-template-columns:1fr}.vehicle-header-actions .primary-button{width:100%!important}.vehicle-card-facts>div{padding:10px}.vehicle-photo-field{grid-template-columns:1fr}.vehicle-photo-preview{max-width:180px;width:100%;justify-self:center}}

/* Wave 12: restore the existing confirmed owned deletion action on current cards. */
#vehicleGrid .vehicle-delete-action{display:block;width:100%;min-height:44px;margin-top:12px}
@media(max-width:780px){#vehicleGrid .vehicle-delete-action{scroll-margin-bottom:calc(112px + env(safe-area-inset-bottom,0px))}}

/* Scoped to Billing & Account only. Existing app typography and layout are preserved. */
.your-data-backup-row,.your-data-dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.your-data-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.your-data-card{border:1px solid var(--line,#d7dfdc);border-radius:12px;padding:14px;display:flex;flex-direction:column;min-width:0}.your-data-card h4{margin:0 0 8px}.your-data-card p{flex:1;margin:0 0 14px;overflow-wrap:anywhere}.your-data-section .your-data-privacy{font-size:13px;line-height:1.5}.your-data-outline{border:1px solid #ba3535!important;background:transparent!important;color:#ba3535!important}.your-data-danger{border:1px solid #b62e2e!important;background:#b62e2e!important;color:#fff!important}.your-data-dialog{max-width:min(520px,calc(100vw - 32px));border:1px solid var(--line,#d7dfdc);border-radius:16px;background:var(--surface,#fff);color:var(--ink,#172c25);padding:24px}.your-data-dialog::backdrop{background:rgba(0,0,0,.5)}.your-data-dialog input{display:block;width:100%;box-sizing:border-box;margin-top:8px}.your-data-dialog button:disabled{opacity:.45;cursor:not-allowed}.your-data-dialog-actions{justify-content:flex-end}.your-data-section .error,#yourDataDialogError{color:#ba3535}@media(max-width:760px){.your-data-cards{grid-template-columns:1fr}}

.your-data-section button,.your-data-dialog button{border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-size:14px;font-weight:700;border-radius:9px;padding:10px 14px;cursor:pointer}.your-data-section button:disabled{opacity:.45;cursor:not-allowed}

:root[data-appearance=dark] .your-data-outline,:root[data-appearance=dark] #yourDataDialogError,:root[data-appearance=dark] .your-data-section .error{color:#ff9c95!important}:root[data-appearance=dark] .your-data-outline{border-color:#ff9c95!important}

.view[aria-busy="true"]:not([data-scoped-refreshing="true"]) > :not([data-scoped-notice]),
.view[data-scoped-unavailable="true"] > :not([data-scoped-notice]) { display: none !important; }
[data-scoped-notice][hidden] { display: none; }
.scoped-refresh-indicator { display: inline-flex; align-items: center; min-height: 32px; margin: 8px 0 12px; padding: 4px 12px; border: 1px solid var(--line, #405853); border-radius: 999px; font-size: 13px; }
.scoped-pagination { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.scoped-pagination span { font-size: 14px; }
#importModal .import-summary{background:var(--metric-bg);color:var(--text-primary);border:1px solid var(--border-default)}
#importModal .import-summary strong{color:var(--text-primary)}
#importModal .import-summary span,#importModal .import-summary small{color:var(--text-secondary)}
#importModal .import-summary small{grid-column:1/-1;line-height:1.45}

/* Wave 6 bounded odometer-history panel; existing page/toolbar rules unchanged. */
.odometer-history-panel{min-width:0;margin:16px 0;padding:16px;border:1px solid var(--line,#dce3ea);border-radius:12px}
.odometer-history-panel h3,.odometer-history-panel p{overflow-wrap:anywhere}
.odometer-history-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;min-width:0}
.odometer-history-panel .scoped-pagination{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.odometer-history-panel button{min-height:44px;white-space:normal}

/* Wave 6: the card history action follows the same minimum as panel actions. */
#mileageVehicleGrid [data-odometer-history]{min-height:44px}

/* Wave 8: scoped mobile targets; desktop and mutation semantics unchanged. */
@media (max-width:780px) {
  :is(#workflowControls-tripcenter,#workflowControls-reconciliation) {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    width:100%;
    min-width:0;
    margin-bottom:16px;
  }
  :is(#workflowControls-tripcenter,#workflowControls-reconciliation) > label {
    display:grid;
    gap:6px;
    min-width:0;
    font-size:12px;
  }
  :is(#workflowControls-tripcenter,#workflowControls-reconciliation) > label:has([data-workflow-filter="search"]),
  #workflowControls-tripcenter > label:has([data-workflow-filter="scope"]) { grid-column:1/-1; }
  :is(#workflowControls-tripcenter,#workflowControls-reconciliation) :is(input,select),
  #calendarVehicleFilter {
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:44px;
    min-height:44px;
    height:44px;
    padding:0 12px;
  }
  :is(#tripcenterView,#reconciliationView) :is(.scoped-pagination button,[data-scoped-retry],[data-toggle-reconciled]),
  #calendarView [data-scoped-retry],
  #calendarBookingDetail :is([data-calendar-day-page],[data-calendar-day-retry],.calendar-day-detail-booking),
  #calendarContent :is([data-calendar-date],[data-calendar-booking]) {
    min-width:44px;
    min-height:44px;
    max-width:100%;
  }
  #calendarContent :is([data-calendar-date],[data-calendar-booking]) {
    display:flex;
    align-items:center;
    width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  #tripcenterView .trip-checklist-details > summary {
    box-sizing:border-box;
    min-height:44px;
    min-width:44px;
    align-items:center;
  }
  #tripcenterView label.task-check {
    box-sizing:border-box;
    min-height:44px;
    min-width:44px;
    width:100%;
    padding:8px;
    cursor:pointer;
  }
  #tripcenterView label.task-check input[data-trip-task] { flex:0 0 16px; }
  :is(#tripcenterView,#calendarView,#reconciliationView) :is(button,input,select,summary,label.task-check),
  #calendarBookingDetail :is(button,input,select) {
    scroll-margin-top:132px;
    scroll-margin-bottom:112px;
  }
  :is(#tripcenterView,#calendarView,#reconciliationView) :is(button,input,select,summary):focus-visible,
  #calendarBookingDetail button:focus-visible,
  #tripcenterView label.task-check:focus-within {
    outline:2px solid var(--text-primary);
    outline-offset:2px;
  }
}

/* Wave 9: trailing recovery content must scroll above fixed mobile navigation.
   The success profile body and desktop layout retain their existing spacing. */
@media (max-width:780px) {
  #vehicleProfileContent > [role="alert"]:has([data-profile-retry]) {
    box-sizing:border-box;
    min-width:0;
    padding:16px 16px calc(112px + env(safe-area-inset-bottom));
    overflow-wrap:anywhere;
  }
  #vehicleProfileContent [data-profile-retry] {
    box-sizing:border-box;
    min-height:44px;
    max-width:100%;
    scroll-margin-bottom:calc(112px + env(safe-area-inset-bottom));
  }
  #vehicleProfilePanel .vehicle-profile-close {
    min-width:44px;
    min-height:44px;
  }
  #vehicleProfileContent :is(button,a.vehicle-profile-link),
  #vehicleDecisionGrid .sold-vehicle-card a.vehicle-profile-link {
    min-width:44px;
    min-height:44px;
  }
}

/* Wave 9 V7: normal profile actions need the same mobile navigation clearance. */
@media (max-width:780px) {
  #vehicleProfileContent > .vehicle-profile-body {
    padding-bottom:calc(112px + env(safe-area-inset-bottom));
  }
  #vehicleProfileContent .vehicle-profile-actions :is(button,a) {
    scroll-margin-bottom:calc(112px + env(safe-area-inset-bottom));
  }
}

/* Wave 9 V8: preserve shared effective mobile target contract. */
@media (max-width:780px) {
  #appShell .workspace-header { grid-template-columns:44px minmax(0,1fr) 44px 48px!important; }
  #appShell .workspace-header > #experienceCommand {
    width:44px!important;min-width:44px!important;max-width:44px!important;
    height:44px!important;min-height:44px!important;padding:0!important;
  }
  #experienceCommandInput,
  :is(#performanceView,#decisionsView) [data-scoped-retry],
  #analyticalPager-decisions button { min-width:44px;min-height:44px; }
}
@media (max-width:430px) {
  #appShell .workspace-header { grid-template-columns:42px minmax(0,1fr) 44px 44px!important; }
}
@media (max-width:360px) {
  #appShell .workspace-header { grid-template-columns:40px minmax(0,1fr) 44px 42px!important; }
}

/* Wave 11: Import dialog owns pointer input above workspace chrome.
   Match the existing calendar-dialog layer; retain its own scrolling/layout. */
#importModal { z-index:10050; }

#healthView { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
#healthView .health-actions { display: flex; flex-wrap: wrap; gap: 12px; }
#healthView button { min-width: 44px; min-height: 44px; }
#healthResult { min-width: 0; max-width: 100%; }
@media (max-width: 700px) {
 #healthView { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
 #healthView button { scroll-margin-block: 80px 112px; }
}

/* Start Here only: reuse FleetDV typography, controls and semantic theme tokens. */
#csv_importView [hidden]{display:none!important}
#csv_importView .start-intro{margin:0 0 16px;color:var(--text-secondary)}
#csv_importView .start-last{margin:0 0 16px;color:var(--text-secondary)}
#csv_importView :is(.start-intro,.start-last,.start-upload>p){font-weight:400}
#csv_importView>.panel,#csv_importView>div>.panel{max-width:880px}
#csv_importView .panel h2{margin:0 0 8px}
#csv_importView .panel>p{color:var(--text-secondary);margin:0 0 16px}
#csv_importView .start-progress{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px;color:var(--text-secondary)}
#csv_importView .start-progress button{padding:8px 0}
#csv_importView .start-progress [aria-current=step]{color:var(--accent);font-weight:700}
#csv_importView .start-drop{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:16px;border:1px dashed var(--border-default);border-radius:12px;padding:24px;background:var(--card-elevated-bg);color:var(--text-secondary)}
#csv_importView .start-upload-icon{font-size:26px;line-height:1;padding-right:18px;border-right:1px solid var(--border-default);color:var(--accent)}
#csv_importView .start-drop-copy{flex:1 1 220px;min-width:0;color:var(--text-primary)}
#csv_importView .start-drop .start-choose{margin-left:auto;background:#145c48;color:#fff;border-color:#145c48;min-height:44px}
#csv_importView .start-drop .start-choose:hover{background:#0d4838}
#csv_importView .start-drop:focus-within,#csv_importView .start-drop[data-drag]{outline:2px solid var(--accent);outline-offset:3px}
#csv_importView .start-file{flex-basis:100%;text-align:center;overflow-wrap:anywhere}
#csv_importView .start-file:empty{display:none}
#csv_importView .start-muted,#csv_importView .start-note{color:var(--text-secondary)}
#csv_importView .start-note{margin-top:12px!important;font-size:14px}
#csv_importView .start-secondary{display:flex;gap:0;flex-wrap:wrap;margin:16px 0;padding-top:16px;border-top:1px solid var(--border-subtle)}
#csv_importView .start-secondary .text-link+.text-link::before{content:"|";color:var(--text-secondary);margin:0 16px}
#csv_importView .start-secondary .text-link{padding:4px 0}
#csv_importView .start-section{margin-top:16px}
#csv_importView .start-table{width:100%;border-collapse:collapse}
#csv_importView .start-table td,#csv_importView .start-table th{text-align:left;padding:12px;border-bottom:1px solid var(--border-subtle);overflow-wrap:anywhere}
#csv_importView .start-table-wrap{overflow-x:auto;max-width:100%}
#csv_importView .start-review{padding:16px;border:1px solid var(--border-default);border-radius:12px;background:var(--card-elevated-bg);margin-top:16px}
#csv_importView .start-fee-options{display:flex;gap:24px;flex-wrap:wrap;margin-bottom:16px;border-bottom:1px solid var(--border-subtle)}
#csv_importView .start-fee-options>div,#csv_importView .start-fee-options>details{flex:1 1 220px;min-width:0}
#csv_importView .start-fee-options h3{margin:0}
#csv_importView summary{cursor:pointer;font-weight:600;padding:8px 0}
#csv_importView details>p{color:var(--text-secondary)}
#csv_importView .start-advanced{margin:0 0 12px}
#csv_importView .start-finish{max-width:880px;margin:20px 0}
#csv_importView .start-finish p{color:var(--text-secondary)}
#csv_importView button:disabled{cursor:not-allowed;opacity:.6}
#startFeeForm>button{margin:8px 8px 0 0}
.start-guide{max-width:640px;width:min(640px,calc(100vw - 32px))}
.start-guide .start-video{padding:12px;border:1px dashed var(--border-default);border-radius:12px;color:var(--text-secondary);background:var(--card-elevated-bg);text-align:center;margin-top:16px}
.start-guide .start-guide-actions{display:flex;gap:12px;justify-content:space-between;margin-top:20px;flex-wrap:wrap}
.start-guide p{line-height:1.65;color:var(--text-secondary)}
#startGuideDialog{z-index:10050}
body.start-guide-open{overflow:hidden}
.start-guide .entry-form{display:grid;gap:12px}
.start-guide .entry-form label{min-width:0}
.start-guide .entry-form input,.start-guide .entry-form select{max-width:100%;width:100%}
.start-guide .entry-form input[type=checkbox]{width:auto}
@media(max-width:600px){#csv_importView .form-row{grid-template-columns:1fr}#csv_importView .start-table td,#csv_importView .start-table th{padding:9px}.start-guide{padding:20px!important}#csv_importView .start-drop{padding:20px}#csv_importView .start-progress{gap:8px}#csv_importView .start-progress button{font-size:13px}}

.analytics-selection-banner,.analytics-locked{border:1px solid var(--border,#d4e0dd);border-radius:14px;padding:18px;margin:12px 0;background:var(--surface,#fff);color:var(--text,#142b30);overflow-wrap:anywhere}.analytics-selection-banner p,.analytics-locked p{line-height:1.5}.analytics-selection-banner small{display:block;margin:8px 0}.analytics-locked{min-height:0!important}.analytics-dialog{box-sizing:border-box;width:min(540px,calc(100% - 32px));max-height:90dvh;overflow:auto;background:var(--surface,#fff);color:var(--text,#142b30);border:1px solid var(--border,#d4e0dd);border-radius:16px;padding:20px}.analytics-dialog::backdrop{background:#061c2bb3}.analytics-dialog label{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 0}.analytics-dialog input{flex-shrink:0}.analytics-dialog fieldset{min-width:0}.analytics-dialog button{min-height:44px;margin:8px 4px;padding:8px 12px}.analytics-dialog p{line-height:1.5}.analytics-dialog [role=alert]{color:#a12b2b}html[data-appearance=dark] .analytics-dialog,html[data-appearance=dark] .analytics-selection-banner,html[data-appearance=dark] .analytics-locked{--surface:#16242e;--text:#edf4f4;--border:#3e545e}html[data-appearance=dark] .analytics-dialog [role=alert]{color:#ffb5b5}.analytics-dialog :focus-visible{outline:3px solid #108c79;outline-offset:3px}

.page-heading{min-width:0}.global-period-indicator{display:inline-flex;margin-top:5px;color:#6b7470;font-size:.78rem;font-weight:750}.global-period-selectors{display:flex;align-items:center;gap:8px}.period-control-label{display:none}.mobile-period-button{display:none;border:1px solid #d7deda;background:#fff;color:#26302c;border-radius:12px;min-height:44px;padding:9px 13px;font:inherit;font-weight:800}.period-basis-note{display:inline-flex;align-items:center;gap:6px;color:#69736e;font-size:.78rem}.expense-basis-label{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:#eef2f0;color:#5e6964;font-size:.68rem;font-weight:800}.expense-basis-label.acquisition{background:#fff1dc;color:#8b5b12}.expense-basis-label.allocated{background:#e6f4f0;color:#146653}
@media(max-width:760px){.workspace-header{align-items:flex-start}.page-heading{flex:1}.global-period-indicator{font-size:.74rem}.header-actions{position:relative}.mobile-period-button{display:inline-flex;align-items:center;max-width:150px;white-space:nowrap}.global-period-selectors{display:none;position:absolute;z-index:120;top:calc(100% + 8px);right:0;width:min(290px,calc(100vw - 32px));padding:12px;background:#fff;border:1px solid #d7deda;border-radius:16px;box-shadow:0 18px 45px rgba(13,28,23,.2)}.header-actions.period-open .global-period-selectors{display:grid;grid-template-columns:1fr 1fr}.global-period-selectors .month-select{display:grid;gap:5px;min-width:0}.period-control-label{display:block;color:#66706b;font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.global-period-selectors select{width:100%;min-width:0}.sample-pill{display:none}body.experience-modern .global-period-selectors,body.experience-premium .global-period-selectors{position:fixed;top:calc(66px + env(safe-area-inset-top));left:16px;right:16px;width:auto}body.experience-modern .mobile-period-button,body.experience-premium .mobile-period-button{max-width:145px}.section-toolbar h2{overflow-wrap:anywhere}}
@media(max-width:390px){.mobile-period-button{max-width:132px;padding-inline:10px}.global-period-selectors{grid-template-columns:1fr!important}.global-period-indicator{max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:760px){.workspace-header,.page-heading,.header-actions{max-width:100%}}

.annual-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.annual-kpi-card{min-width:0;padding:18px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:var(--shadow)}.annual-kpi-card span,.annual-kpi-card small{display:block;color:var(--muted)}.annual-kpi-card span{font-size:12px;font-weight:700}.annual-kpi-card strong{display:block;margin:10px 0 4px;font:750 clamp(20px,2vw,28px) "Manrope";letter-spacing:-.04em}.annual-kpi-card small{font-size:11px}.annual-profit-kpi{background:var(--dark);color:#fff;border-color:var(--dark)}.annual-profit-kpi span,.annual-profit-kpi small{color:#aab3b0}.annual-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);gap:16px;margin-bottom:16px}.annual-chart-legend{display:flex;gap:14px;color:var(--muted);font-size:11px}.annual-chart-legend span{display:flex;align-items:center;gap:6px}.annual-chart-legend i{width:9px;height:9px;border-radius:3px;background:#d8ddda}.annual-chart-legend span:last-child i{background:var(--green)}.annual-trend-chart{height:280px;display:grid;grid-template-columns:repeat(12,minmax(28px,1fr));gap:8px;align-items:end;margin-top:20px;padding:20px 4px 0;border-bottom:1px solid var(--line);overflow-x:auto}.annual-trend-month{height:100%;min-width:28px;display:grid;grid-template-rows:1fr 24px;align-items:end;text-align:center}.annual-trend-bars{height:100%;display:flex;align-items:end;justify-content:center;gap:3px}.annual-trend-bars i{display:block;width:min(12px,42%);min-height:2px;border-radius:4px 4px 0 0}.annual-revenue-bar{background:#d6ddda}.annual-profit-bar{background:var(--green)}.annual-profit-bar.loss{background:var(--red)}.annual-trend-month>span{padding-top:7px;color:var(--muted);font-size:10px}.annual-highlights{display:grid;gap:9px;margin-top:18px}.annual-highlights article{padding:13px;border-radius:10px;background:#f4f7f5}.annual-highlights span,.annual-highlights small{display:block;color:var(--muted);font-size:11px}.annual-highlights strong{display:block;margin:4px 0;font:750 17px "Manrope"}.annual-month-panel,.annual-vehicle-panel{margin-bottom:16px}.annual-month-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.annual-month-card{min-width:0;padding:14px;border:1px solid var(--line);border-radius:11px;background:#fff;text-align:left}.annual-month-card:hover{border-color:#9fb8ae;transform:translateY(-1px)}.annual-month-card.loss{background:#fffafa}.annual-month-card span,.annual-month-card small,.annual-month-card i{display:block}.annual-month-card span{color:var(--muted);font-size:11px;font-weight:750}.annual-month-card strong{display:block;margin:8px 0 5px;font:750 19px "Manrope"}.annual-month-card small{color:var(--muted);font-size:10px;line-height:1.4}.annual-month-card i{margin-top:9px;color:#596560;font-size:10px;font-style:normal;font-weight:700}.annual-vehicle-grid{display:grid;gap:0;margin-top:12px}.annual-vehicle-row{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(110px,.35fr) minmax(110px,.35fr);gap:12px;align-items:center;padding:14px 0;border-top:1px solid #edf0ee}.annual-vehicle-row:first-child{border-top:0}.annual-vehicle-row>div{display:grid}.annual-vehicle-row>div strong{font-size:13px}.annual-vehicle-row small{color:var(--muted);font-size:10px}.annual-vehicle-row>span:not(.vehicle-badge){display:grid;gap:4px}.annual-vehicle-row>span:not(.vehicle-badge)>strong{font-size:13px}.annual-detail-table{padding:0;overflow:hidden}.annual-detail-table summary{padding:17px 20px;cursor:pointer;font-weight:800;list-style:none}.annual-detail-table summary:after{content:'＋';float:right;color:var(--muted)}.annual-detail-table[open] summary:after{content:'−'}.annual-detail-table .fleet-table-wrap{padding:0 20px 20px}
.experience-modern #earningsView .annual-kpi-card{border-color:#d9e5ef;border-radius:15px;box-shadow:0 10px 28px rgba(19,51,79,.07)}.experience-modern #earningsView .annual-profit-kpi{background:#102a43;border-color:#102a43}.experience-modern #earningsView .annual-trend-panel{border-top:4px solid #2c7be5}.experience-modern #earningsView .annual-profit-bar{background:#2c7be5}.experience-modern #earningsView .annual-month-card{border-color:#dce7ef;background:#f9fbfd}.experience-modern #earningsView .annual-month-card:hover{border-color:#2c7be5;box-shadow:0 9px 22px rgba(44,123,229,.1)}
.experience-premium #earningsView .annual-kpi-grid{gap:15px}.experience-premium #earningsView .annual-kpi-card{padding:20px;border:0;border-radius:17px;box-shadow:0 14px 35px rgba(16,46,85,.08)}.experience-premium #earningsView .annual-profit-kpi{background:linear-gradient(145deg,#0a2040,#1459d9)}.experience-premium #earningsView .annual-dashboard-grid{grid-template-columns:minmax(0,1.65fr) minmax(300px,.7fr)}.experience-premium #earningsView .annual-trend-panel{border-top:4px solid #246fe8}.experience-premium #earningsView .annual-profit-bar{background:#246fe8}.experience-premium #earningsView .annual-highlights article{background:#f2f6fb}.experience-premium #earningsView .annual-month-card{border:0;border-left:3px solid #d7e1ef;border-radius:13px;background:#fff;box-shadow:0 8px 24px rgba(20,45,80,.06)}.experience-premium #earningsView .annual-month-card:hover{border-left-color:#246fe8;box-shadow:0 13px 30px rgba(20,89,217,.12)}.experience-premium #earningsView .annual-month-card.loss{border-left-color:#d96b65}
@media(max-width:1150px){.annual-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.annual-month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.annual-dashboard-grid,.experience-premium #earningsView .annual-dashboard-grid{grid-template-columns:1fr}}
@media(max-width:780px){.annual-kpi-grid{grid-template-columns:1fr 1fr;gap:9px}.annual-kpi-card{padding:14px}.annual-kpi-card strong{font-size:20px}.annual-kpi-card:last-child{grid-column:1/-1}.annual-dashboard-grid{gap:12px}.annual-trend-panel{padding:16px 12px}.annual-trend-chart{height:230px;grid-template-columns:repeat(12,36px);gap:5px;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:0}.annual-month-grid{grid-template-columns:1fr 1fr;gap:8px}.annual-month-card{padding:12px}.annual-vehicle-row{grid-template-columns:auto minmax(0,1fr) auto}.annual-vehicle-row>span:nth-last-child(2){display:none}.annual-vehicle-row>span:last-child{text-align:right}.annual-detail-table .fleet-table-wrap{padding:0 12px 14px}.profit-month-card{padding:16px}.profit-vehicle-filter{width:100%}.profit-vehicle-filter select{width:100%;min-height:44px}}

.annual-vehicle-panel{padding:22px}.annual-vehicle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.annual-vehicle-card{min-width:0;display:grid;grid-template-columns:150px minmax(0,1fr);overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(26,45,38,.05)}.annual-vehicle-card.loss{border-color:#efd9d6}.annual-vehicle-media{min-height:220px;background:#edf1ef;overflow:hidden}.annual-vehicle-media>.vehicle-card-image,.annual-vehicle-media>.vehicle-image-fallback{width:100%;height:100%;min-height:220px;object-fit:cover;border-radius:0}.annual-vehicle-fallback{height:100%;min-height:220px;display:grid;place-items:center;background:linear-gradient(145deg,#14221e,#32453e);color:#fff;font:800 24px "Manrope"}.annual-vehicle-body{min-width:0;padding:17px}.annual-vehicle-identity{display:flex;justify-content:space-between;gap:14px}.annual-vehicle-identity h3{margin:4px 0;font:750 17px "Manrope"}.annual-vehicle-identity small,.annual-vehicle-profit span,.annual-vehicle-profit small{color:var(--muted);font-size:10px}.annual-vehicle-profit{text-align:right;white-space:nowrap}.annual-vehicle-profit strong{display:block;margin:3px 0;font:800 20px "Manrope"}.annual-vehicle-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.annual-vehicle-metrics>div{padding:10px;border-radius:9px;background:#f5f7f6}.annual-vehicle-metrics span,.annual-vehicle-metrics strong{display:block}.annual-vehicle-metrics span{color:var(--muted);font-size:9px}.annual-vehicle-metrics strong{margin-top:4px;font-size:12px}.annual-contribution>span{display:flex;justify-content:space-between;gap:12px;font-size:9px;color:var(--muted)}.annual-contribution>span b{color:var(--text)}.annual-contribution>i{display:block;height:6px;margin-top:7px;overflow:hidden;border-radius:999px;background:#e7ece9}.annual-contribution>i b{display:block;height:100%;border-radius:inherit;background:var(--green)}.annual-contribution>i b.loss{background:var(--red)}
.annual-detail-table{border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 10px 28px rgba(26,45,38,.06)}.annual-detail-table summary{background:#f7f9f8}.annual-financial-table{width:100%;font-variant-numeric:tabular-nums}.annual-financial-table th{position:sticky;top:0;z-index:1;background:#f2f5f3;color:#52605b;font-size:10px;letter-spacing:.02em;white-space:nowrap}.annual-financial-table th:not(:first-child),.annual-financial-table td:not(:first-child){text-align:right}.annual-financial-table tbody tr{transition:background .15s ease}.annual-financial-table tbody tr:hover{background:#f8faf9}.annual-table-month{color:var(--text);font:750 12px "Manrope"}.annual-zero{color:#9aa49f}.annual-mobile-breakdown{display:none;padding:0 12px 14px}.annual-mobile-month{border-top:1px solid var(--line)}.annual-mobile-month summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 2px;list-style:none}.annual-mobile-month summary:after{display:none}.annual-mobile-month summary>span{display:grid;gap:3px}.annual-mobile-month summary>span:last-child{text-align:right}.annual-mobile-month summary small{color:var(--muted);font-size:10px}.annual-mobile-month>div{display:grid;grid-template-columns:1fr 1fr;gap:1px;padding:0 0 14px;overflow:hidden;border-radius:10px;background:var(--line)}.annual-mobile-month>div>span{display:flex;justify-content:space-between;gap:8px;padding:10px;background:#fff;color:var(--muted);font-size:10px}.annual-mobile-month>div strong{color:var(--text);white-space:nowrap}
.experience-modern #earningsView .annual-vehicle-panel,.experience-modern #earningsView .annual-detail-table{border-color:#d9e5ef}.experience-modern #earningsView .annual-vehicle-card{border-color:#dce7ef;box-shadow:0 10px 26px rgba(19,51,79,.07)}.experience-modern #earningsView .annual-contribution>i b{background:#2c7be5}.experience-premium #earningsView .annual-vehicle-panel,.experience-premium #earningsView .annual-detail-table{border:0;border-radius:18px;box-shadow:0 16px 38px rgba(16,46,85,.08)}.experience-premium #earningsView .annual-vehicle-card{border:0;border-radius:17px;box-shadow:0 13px 32px rgba(20,45,80,.09)}.experience-premium #earningsView .annual-vehicle-metrics>div{background:#f2f6fb}.experience-premium #earningsView .annual-contribution>i b{background:#246fe8}.experience-premium #earningsView .annual-detail-table summary{background:#f2f6fb}
@media(max-width:1180px){.annual-vehicle-grid{grid-template-columns:1fr}}
@media(max-width:780px){.annual-vehicle-panel{padding:16px}.annual-vehicle-grid{gap:10px}.annual-vehicle-card{grid-template-columns:104px minmax(0,1fr)}.annual-vehicle-media,.annual-vehicle-fallback,.annual-vehicle-media>.vehicle-card-image,.annual-vehicle-media>.vehicle-image-fallback{min-height:238px}.annual-vehicle-body{padding:13px}.annual-vehicle-identity{display:grid}.annual-vehicle-profit{text-align:left}.annual-vehicle-profit strong{font-size:18px}.annual-vehicle-metrics{grid-template-columns:1fr;margin:12px 0}.annual-vehicle-metrics>div{display:flex;justify-content:space-between;gap:8px;padding:7px 9px}.annual-vehicle-metrics strong{margin:0}.annual-table-wrap{display:none}.annual-mobile-breakdown{display:block}.annual-detail-table summary{padding:15px 16px}.annual-mobile-month>div{grid-template-columns:1fr}.annual-month-grid{grid-template-columns:1fr 1fr}}
@media(max-width:430px){.annual-kpi-grid,.annual-month-grid{grid-template-columns:1fr}.annual-kpi-card:last-child{grid-column:auto}.annual-vehicle-card{grid-template-columns:1fr}.annual-vehicle-media,.annual-vehicle-fallback,.annual-vehicle-media>.vehicle-card-image,.annual-vehicle-media>.vehicle-image-fallback{min-height:180px;max-height:210px}.annual-vehicle-metrics{grid-template-columns:1fr 1fr}.annual-vehicle-metrics>div{display:grid}}
@media(max-width:390px){.annual-kpi-grid{grid-template-columns:1fr}.annual-kpi-card:last-child{grid-column:auto}.annual-month-grid{grid-template-columns:1fr}.annual-highlights-panel{padding:16px}.annual-vehicle-row{grid-template-columns:auto minmax(0,1fr)}.annual-vehicle-row>span:not(.vehicle-badge){grid-column:2;text-align:left}}

.maintenance-fleet-metrics{margin-bottom:16px}.maintenance-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.maintenance-card{padding:0;overflow:hidden;border-radius:16px}.maintenance-card-hero{display:grid;grid-template-columns:132px minmax(0,1fr);min-height:148px;border-bottom:1px solid var(--line)}.maintenance-card-media{position:relative;min-height:148px;overflow:hidden;background:#e9eeeb}.maintenance-card-media>.vehicle-card-image,.maintenance-card-media>.vehicle-image-fallback{width:100%;height:100%;min-height:148px;object-fit:cover;border-radius:0}.maintenance-card-summary{min-width:0;padding:17px}.maintenance-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.maintenance-card-title h3{margin:0;font:750 17px "Manrope"}.maintenance-card-title small{display:block;margin-top:4px;color:var(--muted);font-size:12px}.maintenance-add-button{min-height:38px;white-space:nowrap}.maintenance-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:15px}.maintenance-summary-grid>div{padding:9px;border-radius:9px;background:#f4f7f5}.maintenance-summary-grid span,.maintenance-summary-grid strong{display:block}.maintenance-summary-grid span{color:var(--muted);font-size:11px}.maintenance-summary-grid strong{margin-top:4px;font-size:13px}.maintenance-reserve{margin-top:11px;color:var(--muted);font-size:12px}.maintenance-reserve b{color:var(--text)}.maintenance-upcoming{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 16px 0;padding:12px;border-radius:10px;background:#f3f7f5}.maintenance-upcoming>div{display:grid;gap:3px}.maintenance-upcoming span{font-size:12px;font-weight:750}.maintenance-upcoming small{color:var(--muted);font-size:11px}.maintenance-status{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#e7f1ec;color:#1d6b51;font-size:11px;font-weight:800}.maintenance-status.due{background:#fff0cf;color:#8a5d00}.maintenance-status.overdue{background:#ffe2df;color:#a33b32}.maintenance-status.scheduled{background:#e8eef7;color:#315f96}.maintenance-timeline{padding:15px 18px 18px}.maintenance-timeline-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}.maintenance-timeline-head strong{font:750 14px "Manrope"}.maintenance-timeline-head span{color:var(--muted);font-size:11px}.service-event{position:relative;display:grid;grid-template-columns:11px minmax(0,1fr) auto;gap:11px;padding:13px 0;border-top:1px solid #edf0ee}.service-event:first-of-type{border-top:0}.service-event-dot{width:10px;height:10px;margin-top:5px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px #e8f3ee}.service-event-main{min-width:0}.service-event-main strong{display:block;font-size:13px;overflow-wrap:anywhere}.service-event-meta{display:flex;flex-wrap:wrap;gap:5px 9px;margin-top:5px;color:var(--muted);font-size:11px}.service-event-source{display:inline-flex;margin-top:7px;padding:3px 7px;border-radius:999px;background:#f0f3f1;color:#596660;font-size:10px;font-weight:700}.service-event-source.expense{background:#eaf1f8;color:#315f96}.service-event-actions{display:grid;justify-items:end;align-content:start;gap:5px}.service-event-cost{font:750 14px "Manrope";white-space:nowrap}.service-event-buttons{display:flex;gap:4px}.service-event-buttons button,.service-event-buttons a{min-width:34px;padding:5px 7px;border:0;background:transparent;color:var(--green);font-size:11px;font-weight:750;text-decoration:none;cursor:pointer}.maintenance-empty{padding:18px 0;color:var(--muted);font-size:12px}.maintenance-delete-modal{max-width:480px}.maintenance-delete-actions{display:grid;gap:9px;margin-top:18px}
.experience-modern #maintenanceView .maintenance-card{border-color:#d9e5ef;box-shadow:0 11px 30px rgba(19,51,79,.08)}.experience-modern #maintenanceView .maintenance-summary-grid>div{background:#f4f8fc}.experience-modern #maintenanceView .service-event-dot{background:#2c7be5;box-shadow:0 0 0 4px #e7f0fc}.experience-premium #maintenanceView .maintenance-card{border:0;border-radius:18px;box-shadow:0 16px 38px rgba(16,46,85,.1)}.experience-premium #maintenanceView .maintenance-card-hero{background:#fbfcfe}.experience-premium #maintenanceView .maintenance-summary-grid>div{background:#f1f5fb}.experience-premium #maintenanceView .service-event-dot{background:#246fe8;box-shadow:0 0 0 4px #e5eefc}.experience-premium #maintenanceView .maintenance-upcoming{background:#eef4fb}
@media(max-width:1120px){.maintenance-grid{grid-template-columns:1fr}}
@media(max-width:780px){.maintenance-toolbar{align-items:stretch}.maintenance-toolbar .primary-button{width:100%;min-height:46px}.maintenance-fleet-metrics{grid-template-columns:1fr 1fr}.maintenance-card-hero{grid-template-columns:94px minmax(0,1fr)}.maintenance-card-media,.maintenance-card-media>.vehicle-card-image,.maintenance-card-media>.vehicle-image-fallback{min-height:190px}.maintenance-card-summary{padding:14px 12px}.maintenance-card-title{display:grid}.maintenance-add-button{width:100%}.maintenance-summary-grid{grid-template-columns:1fr;gap:5px}.maintenance-summary-grid>div{display:flex;justify-content:space-between;gap:8px;padding:7px 9px}.maintenance-summary-grid strong{margin:0}.maintenance-timeline{padding:12px}.service-event{grid-template-columns:9px minmax(0,1fr)}.service-event-actions{grid-column:2;grid-template-columns:auto auto;justify-content:space-between;align-items:center;width:100%}.service-event-buttons{justify-self:end}.service-event-meta{line-height:1.45}}
@media(max-width:430px){.maintenance-fleet-metrics{grid-template-columns:1fr}.maintenance-card-hero{grid-template-columns:1fr}.maintenance-card-media,.maintenance-card-media>.vehicle-card-image,.maintenance-card-media>.vehicle-image-fallback{min-height:175px;max-height:205px}.maintenance-card-title{grid-template-columns:minmax(0,1fr) auto}.maintenance-add-button{width:auto}.maintenance-summary-grid{grid-template-columns:1fr 1fr}.maintenance-summary-grid>div{display:grid}.maintenance-summary-grid strong{margin-top:3px}}
/* Keep the Maintenance lifecycle filter and primary action in separate mobile rows. */
@media(max-width:520px){
  #maintenanceView .maintenance-toolbar{flex-direction:column;align-items:stretch;gap:12px}
  #maintenanceView .maintenance-toolbar>.toolbar-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;gap:10px;align-items:stretch}
  #maintenanceView .maintenance-toolbar .intelligence-filter{display:grid;grid-template-columns:auto minmax(0,1fr);width:100%;min-width:0;gap:8px;align-items:center}
  #maintenanceView .maintenance-toolbar #maintenanceLifecycleFilter{width:100%;min-width:0;min-height:44px;box-sizing:border-box}
  #maintenanceView .maintenance-toolbar>.toolbar-actions>.primary-button{width:100%;min-width:0;min-height:46px;box-sizing:border-box}
}
/* Batch 1 (2026-11-20, H4): on tablets the filter toolbar wraps inside the page instead of running 415px past the right edge */
@media (min-width:781px) and (max-width:1024px){
  #maintenanceView .maintenance-toolbar,#maintenanceView .maintenance-toolbar>.toolbar-actions{flex-wrap:wrap!important;max-width:100%;min-width:0}
  #maintenanceView .maintenance-toolbar>.toolbar-actions>*{min-width:0;max-width:100%}
}

#expensesView{--expense-surface:#fff;--expense-soft:#f5f8f7;--expense-line:#dfe7e3;--expense-accent:#187b67}
#expensesView .vehicle-expense-panel{padding:22px;margin-bottom:18px;background:linear-gradient(180deg,#fff 0%,#fbfcfc 100%)}
#expensesView .expense-vehicle-grid{grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:16px;margin-top:18px}
#expensesView .expense-vehicle-card{padding:0;overflow:hidden;background:var(--expense-surface);border:1px solid var(--expense-line);border-radius:18px;box-shadow:0 10px 30px rgba(20,38,32,.06)}
.expense-vehicle-media{height:142px;position:relative;overflow:hidden;background:#e9efec}
.expense-vehicle-image,.expense-vehicle-media>.vehicle-image-fallback{width:100%;height:100%;object-fit:cover}
.expense-vehicle-media>.vehicle-image-fallback{display:grid;place-items:center;background:linear-gradient(145deg,#dce8e3,#f3f7f5)}
.expense-vehicle-media>.vehicle-image-fallback span{font:800 32px "Manrope";color:#1e4f43}
.expense-vehicle-media>.vehicle-image-fallback small{display:block;margin-top:-42px;color:#547067}
.expense-card-add{position:absolute;right:12px;bottom:12px;min-height:34px;padding:0 12px;background:rgba(255,255,255,.94);backdrop-filter:blur(8px)}
.expense-vehicle-content{padding:17px}
.expense-vehicle-identity{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.expense-vehicle-identity h3{margin:3px 0 0;font:750 17px "Manrope";line-height:1.3}
.expense-vehicle-identity>span{font-size:12px;color:var(--muted);white-space:nowrap}
.expense-vehicle-primary{display:flex;justify-content:space-between;align-items:end;margin:16px 0 13px;padding:14px;background:var(--expense-soft);border-radius:12px}
.expense-vehicle-primary span,.expense-vehicle-facts span{font-size:12px;color:var(--muted)}
.expense-vehicle-primary strong{font:800 22px "Manrope"}
.expense-vehicle-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.expense-vehicle-facts>div{min-width:0;padding-top:9px;border-top:1px solid var(--expense-line)}
.expense-vehicle-facts strong{display:block;margin-top:3px;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.expense-vehicle-empty{display:grid;gap:4px;margin-top:18px;padding:18px;border:1px dashed var(--expense-line);border-radius:12px;color:var(--muted)}
.expense-vehicle-empty strong{font-size:14px;color:var(--ink)}.expense-vehicle-empty span{font-size:12px}
.expense-financial-workspace{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.55fr);gap:18px;align-items:start}
.expense-category-panel,.expense-transactions-panel{min-width:0}.expense-transactions-panel{padding:0;overflow:hidden}
.expense-transactions-panel>.panel-head{padding:22px 22px 16px;margin:0;border-bottom:1px solid var(--expense-line)}
.expense-transactions-head{align-items:end}.expense-filter{min-width:190px}.expense-filter span{font-size:12px;color:var(--muted)}.expense-filter select{margin-top:5px;width:100%}
.expense-vehicle-groups{display:grid;gap:0}
.expense-transaction-group{border-bottom:1px solid var(--expense-line)}.expense-transaction-group:last-child{border-bottom:0}
.expense-transaction-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 20px;background:#fff}
.expense-transaction-group>summary::-webkit-details-marker{display:none}.expense-transaction-group[open]>summary{background:var(--expense-soft)}
.expense-group-vehicle{display:flex;align-items:center;gap:12px;min-width:0}.expense-group-vehicle>.expense-vehicle-image,.expense-group-vehicle>.vehicle-image-fallback{width:54px;height:42px;border-radius:9px;object-fit:cover;flex:0 0 auto}
.expense-group-vehicle>.vehicle-image-fallback{display:grid;place-items:center;background:#dde8e4}.expense-group-vehicle>.vehicle-image-fallback small{display:none}.expense-group-vehicle>.vehicle-image-fallback span{font-weight:800;color:#235548}
.expense-group-vehicle>span{display:grid;min-width:0}.expense-group-vehicle strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.expense-group-vehicle small{font-size:12px;color:var(--muted);margin-top:3px;white-space:normal}
.expense-group-toggle{font-size:12px;font-weight:750;color:var(--expense-accent)}.expense-transaction-group[open] .expense-group-toggle{font-size:0}.expense-transaction-group[open] .expense-group-toggle:after{content:'Hide';font-size:12px}
.expense-group-rows{padding:0 20px}
.expense-transaction-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:15px 0;border-top:1px solid var(--expense-line)}
.expense-transaction-copy{min-width:0}.expense-transaction-copy>strong{font-size:14px}.expense-transaction-meta,.expense-allocation-context{display:flex;gap:7px;flex-wrap:wrap;margin-top:4px;font-size:12px;color:var(--muted)}
.expense-transaction-meta span+span:before{content:'·';margin-right:7px}.expense-allocation-context span{padding:3px 7px;background:#edf5f2;border-radius:999px;color:#316859}
.expense-transaction-amount{display:grid;justify-items:end;gap:5px}.expense-transaction-amount strong{font:750 14px "Manrope";white-space:nowrap}.expense-transaction-amount .expense-basis-label{margin:0}
.expense-transaction-actions{display:flex;align-items:center;gap:4px}
.expense-shared-fallback{background:linear-gradient(145deg,#16231f,#304b42)!important}.expense-shared-fallback span,.expense-shared-fallback small{color:#d7ff5d!important}
.decision-vehicle-photo{width:58px;height:46px;border-radius:10px;overflow:hidden;flex:0 0 auto;background:#e7eeeb}.decision-vehicle-photo .expense-vehicle-image,.decision-vehicle-photo .vehicle-image-fallback{width:100%;height:100%;object-fit:cover}.decision-vehicle-photo .vehicle-image-fallback{display:grid;place-items:center}.decision-vehicle-photo .vehicle-image-fallback small{display:none}
[data-ui-experience="modern"] #expensesView{--expense-accent:#1269e6;--expense-soft:#f1f6fd;--expense-line:#d9e4f2}
[data-ui-experience="modern"] #expensesView .expense-vehicle-card{border-radius:20px;box-shadow:0 12px 34px rgba(25,56,92,.09)}
[data-ui-experience="modern"] #expensesView .expense-vehicle-primary{background:#edf5ff}
[data-ui-experience="modern"] #expensesView .expense-allocation-context span{background:#eaf3ff;color:#17599f}
[data-ui-experience="premium"] #expensesView{--expense-accent:#1c5fef;--expense-soft:#f3f6fb;--expense-line:#dce3ed}
[data-ui-experience="premium"] #expensesView .vehicle-expense-panel,[data-ui-experience="premium"] #expensesView .expense-transactions-panel,[data-ui-experience="premium"] #expensesView .expense-category-panel{border-color:#d7dfeb;box-shadow:0 16px 44px rgba(21,36,63,.08)}
[data-ui-experience="premium"] #expensesView .expense-vehicle-card{border-radius:22px;box-shadow:0 16px 38px rgba(21,36,63,.1)}
[data-ui-experience="premium"] #expensesView .expense-vehicle-primary{background:linear-gradient(135deg,#f0f4fb,#f8faff)}
@media(max-width:980px){.expense-financial-workspace{grid-template-columns:1fr}.expense-category-panel{order:1}.expense-transactions-panel{order:2}}
@media(max-width:700px){#expensesView .section-toolbar{align-items:stretch}#expensesView .toolbar-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}#expensesView .vehicle-expense-panel{padding:16px}#expensesView .expense-vehicle-grid{grid-template-columns:1fr;gap:12px}.expense-vehicle-card{display:grid;grid-template-columns:112px minmax(0,1fr)}.expense-vehicle-media{height:100%;min-height:184px}.expense-card-add{left:8px;right:8px;bottom:8px;padding:0 6px}.expense-vehicle-content{padding:14px}.expense-vehicle-identity{display:block}.expense-vehicle-identity>span{display:block;margin-top:4px}.expense-vehicle-primary{display:grid;gap:3px;padding:10px;margin:12px 0}.expense-vehicle-primary strong{font-size:18px}.expense-vehicle-facts{grid-template-columns:1fr;gap:6px}.expense-vehicle-facts>div{padding-top:6px}.expense-transactions-head{display:grid;gap:12px;align-items:stretch}.expense-filter{min-width:0;width:100%}.expense-transaction-group>summary{padding:13px 14px}.expense-group-vehicle>.expense-vehicle-image,.expense-group-vehicle>.vehicle-image-fallback{width:48px;height:40px}.expense-group-vehicle small{line-height:1.4}.expense-group-toggle{display:none}.expense-group-rows{padding:0 14px}.expense-transaction-row{grid-template-columns:30px minmax(0,1fr) auto;padding:14px 0}.expense-transaction-amount{grid-column:2;justify-items:start}.expense-transaction-actions{grid-column:3;grid-row:1/3;align-self:center}.expense-transaction-meta{line-height:1.45}.expense-transaction-meta span:nth-child(3){display:none}}
@media(max-width:430px){#expensesView .toolbar-actions{grid-template-columns:1fr}#expensesView .panel-caption{display:none}.expense-vehicle-card{grid-template-columns:96px minmax(0,1fr)}.expense-vehicle-media{min-height:200px}.expense-vehicle-identity h3{font-size:15px}.expense-vehicle-facts strong{font-size:12px}.expense-transaction-row>.expense-icon{display:none}.expense-transaction-row{grid-template-columns:minmax(0,1fr) auto}.expense-transaction-actions{grid-column:2}.expense-transaction-amount{grid-column:1}.expense-group-vehicle small{font-size:11px}}
/* Recurring rows retain their native destructive action on short mobile screens. */
@media(max-width:520px){
  #recurringList .expense-row{grid-template-columns:24px minmax(0,1fr) 44px;column-gap:10px;row-gap:6px}
  #recurringList .expense-row>.expense-icon{grid-column:1;grid-row:1}
  #recurringList .expense-row>div{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere}
  #recurringList .expense-row>span:not(.expense-icon){grid-column:2;grid-row:2;min-width:0;overflow-wrap:anywhere}
  #recurringList .expense-row>.delete-button{display:inline-flex;grid-column:3;grid-row:1 / span 2;align-items:center;justify-content:center;justify-self:end;width:44px;min-height:44px;padding:0;border:1px solid var(--fl-line,#d9e4f2);border-radius:10px;color:var(--red,#b42318)}
  #recurringList .expense-row>.delete-button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
}
/* turo-split (2026-12-02): "Covered by Turo" on a Fuel, Tolls or Cleaning expense that money Turo passed through paid for, with its undo */
.expense-turo-cover{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;font-size:12px;line-height:1.4}
.expense-turo-cover .turo-cover-tag{padding:2px 8px;border-radius:999px;border:1px solid var(--expense-line);color:var(--ink);background:var(--expense-soft);cursor:help}
.expense-turo-cover .turo-cover-tag.off{color:var(--muted);background:transparent}
.expense-turo-cover .link-button{font:inherit;font-weight:600;padding:0;border:0;background:none;color:inherit;text-decoration:underline;cursor:pointer}

/* Shared FleetDV vehicle-photo presentation. Original files and storage references stay untouched. */
.fleet-vehicle-image{position:relative;width:100%;height:100%;min-width:0;overflow:hidden;background:linear-gradient(145deg,#e4eae7 0%,#f4f7f5 55%,#dce5e1 100%)}
.fleet-vehicle-image>img{display:block;width:100%;height:100%;padding:5px;box-sizing:border-box;object-fit:contain;object-position:var(--vehicle-image-position,50% 50%);background:transparent}
.fleet-vehicle-image>.vehicle-image-fallback{width:100%;height:100%;min-height:0!important;border-radius:0}
.fleet-vehicle-image--hero,.fleet-vehicle-image--card{aspect-ratio:16/9}
.fleet-vehicle-image--thumbnail{aspect-ratio:4/3}

/* Vehicles */
.vehicle-card-media{aspect-ratio:16/9;height:auto;background:#e4eae7}
.vehicle-card-media>.fleet-vehicle-image{position:absolute;inset:0;aspect-ratio:auto}

/* Expenses */
.expense-vehicle-media{height:auto;aspect-ratio:16/9;background:#e4eae7}
.expense-vehicle-media>.fleet-vehicle-image{position:absolute;inset:0;aspect-ratio:auto}
.expense-group-vehicle>.fleet-vehicle-image{width:62px;height:46px;aspect-ratio:4/3;flex:0 0 auto;border-radius:9px}
.expense-group-vehicle>.fleet-vehicle-image>img{padding:2px}
.expense-group-vehicle>.fleet-vehicle-image .vehicle-image-fallback{display:grid;place-items:center}
.expense-group-vehicle>.fleet-vehicle-image .vehicle-image-fallback small{display:none}
.expense-card-add{z-index:2}

/* Maintenance: landscape photo above the summary on every viewport. */
.maintenance-card-hero{display:block;min-height:0}
.maintenance-card-media{width:100%;min-height:0;aspect-ratio:16/9;background:#e4eae7}
.maintenance-card-media>.fleet-vehicle-image{width:100%;height:100%;aspect-ratio:auto}
.maintenance-card-summary{padding:17px 18px}
.maintenance-card-empty .maintenance-summary-grid{margin-top:12px}
.maintenance-card-empty .maintenance-timeline{padding:0 18px 16px}
.maintenance-card-empty .maintenance-timeline-head{display:none}
.maintenance-card-empty .maintenance-empty{margin:0;padding:12px 0 0;border-top:1px solid var(--line)}

/* Profit & Earnings */
.annual-vehicle-media>.fleet-vehicle-image{height:100%;min-height:220px;aspect-ratio:auto}
.annual-vehicle-media>.fleet-vehicle-image>img{padding:4px}

/* Decisions */
.decision-vehicle-photo>.fleet-vehicle-image{width:100%;height:100%;aspect-ratio:auto}
.decision-vehicle-photo>.fleet-vehicle-image>img{padding:2px}

.experience-modern .fleet-vehicle-image{background:linear-gradient(145deg,#e7eef6,#f7faff 58%,#dde8f4)}
.experience-premium .fleet-vehicle-image{background:linear-gradient(145deg,#dfe6ef,#f8faff 58%,#d8e1ed)}

@media(max-width:780px){
  .expense-vehicle-card{display:block}
  .expense-vehicle-media{width:100%;min-height:0;aspect-ratio:16/9}
  .expense-vehicle-content{padding:15px}
  .expense-card-add{left:auto;right:10px;bottom:10px;width:auto;padding:0 11px}
  .maintenance-card-hero{display:block}
  .maintenance-card-media{min-height:0;max-height:none;aspect-ratio:16/9}
  .maintenance-card-summary{padding:15px}
  .annual-vehicle-card{grid-template-columns:1fr}
  .annual-vehicle-media{min-height:0;aspect-ratio:16/9}
  .annual-vehicle-media>.fleet-vehicle-image{min-height:0;max-height:none;aspect-ratio:auto}
}

@media(max-width:430px){
  .vehicle-card-media,.expense-vehicle-media,.maintenance-card-media,.annual-vehicle-media{aspect-ratio:16/9;min-height:0;max-height:none}
  .expense-vehicle-card{grid-template-columns:1fr}
  .expense-vehicle-media{min-height:0}
  .maintenance-summary-grid{grid-template-columns:1fr 1fr}
  .maintenance-card-empty .maintenance-summary-grid{grid-template-columns:1fr 1fr}
}

/* ===== Car placeholders (feature key car_placeholders, features/photos/car-placeholder.js). Only drawn when the feature is on,
   so these rules match nothing for customers. Three layers share one box and are each centred with contain, so they line up in any
   frame: the car, the paint (multiply, alpha mask), and for darker paint the car's own highlights (screen). The frame width picks the
   image size: up to 160 px the 320 images, else the 720 images; a frame over 420 px on a high-density screen gets the 1120 car. */
.vehicle-image-fallback.fdv-car{position:relative;display:block;width:100%;height:100%;min-height:0;padding:0;margin:0;background:transparent!important;border:0!important;box-shadow:none!important;isolation:isolate;container:fdvcar/size;overflow:hidden}
.fdv-car>i{position:absolute;inset:6% 5%;background-repeat:no-repeat;background-position:center;background-size:contain;pointer-events:none}
.fdv-car>.fdv-car-body{background-image:var(--car-s2)}
.fdv-car>.fdv-car-tint,.fdv-car>.fdv-car-shine{-webkit-mask:var(--car-m2) center/contain no-repeat;mask:var(--car-m2) center/contain no-repeat}
.fdv-car>.fdv-car-tint{background-color:var(--car-paint);mix-blend-mode:multiply}
.fdv-car>.fdv-car-shine{background-image:var(--car-s2);filter:grayscale(1) brightness(.54) contrast(12.3);mix-blend-mode:screen;opacity:var(--car-shine)}
@container fdvcar (max-width:160px){
  .fdv-car>i{inset:4%}
  .fdv-car>.fdv-car-body,.fdv-car>.fdv-car-shine{background-image:var(--car-s1)}
  .fdv-car>.fdv-car-tint,.fdv-car>.fdv-car-shine{-webkit-mask-image:var(--car-m1);mask-image:var(--car-m1)}
}
@media (min-resolution:1.5dppx){@container fdvcar (min-width:421px){
  .fdv-car>.fdv-car-body,.fdv-car>.fdv-car-shine{background-image:var(--car-s3)}
}}
/* small frames that hid the fallback's text keep the car visible */
.fleet-vehicle-image>.vehicle-image-fallback.fdv-car{display:block}

/* vehicle profile: the car on the right of the hero, the text stays on the left */
.vehicle-profile-hero.fdv-car-has-hero>.fdv-car-hero{position:absolute;top:0;right:0;bottom:0;width:min(56%,560px);height:auto;z-index:0}
.vehicle-profile-hero.fdv-car-has-hero>.fdv-car-hero>i{inset:8% 4% 10% 0}
.vehicle-profile-hero.fdv-car-has-hero>:not(.fdv-car-hero){position:relative;z-index:1}
@media (min-width:701px){.vehicle-profile-hero.fdv-car-has-hero>.vehicle-profile-copy{max-width:48%}}
@media (max-width:700px){
  .vehicle-profile-hero.fdv-car-has-hero{padding-top:min(52vw,210px)}
  .vehicle-profile-hero.fdv-car-has-hero>.fdv-car-hero{left:0;width:auto;bottom:auto;height:min(54vw,220px)}
  .vehicle-profile-hero.fdv-car-has-hero>.fdv-car-hero>i{inset:6% 8% 0}
}

/* vehicle form: placeholder type and colour */
.fdv-car-field{display:grid;grid-template-columns:minmax(0,200px) minmax(0,1fr);gap:16px;align-items:start;margin:4px 0 6px;padding:14px;border:1px solid var(--line,#d5e1e4);border-radius:14px}
.fdv-car-field[hidden]{display:none}
.fdv-car-field-preview{aspect-ratio:16/10;border-radius:10px;overflow:hidden;background:linear-gradient(145deg,#e4eae7 0%,#f4f7f5 55%,#dce5e1 100%)}
.fdv-car-field-controls{display:grid;gap:8px;min-width:0}
.fdv-car-field-controls>small{color:var(--muted,#5a6870);font-size:12px;line-height:1.35}
.fdv-car-swatches{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;border:0;min-width:0}
.fdv-car-swatches>legend{padding:0;margin-bottom:6px;font-size:12px;font-weight:700}
.fdv-car-swatch{position:relative;display:inline-flex!important;align-items:center;gap:6px;margin:0!important;padding:5px 9px 5px 6px;border:1px solid var(--line,#d5e1e4);border-radius:999px;font-size:12px!important;font-weight:600;cursor:pointer;line-height:1.2}
.fdv-car-swatch>input[type="radio"]{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.fdv-car-swatch>i{width:16px;height:16px;border-radius:50%;background:var(--sw);box-shadow:inset 0 0 0 1px rgba(0,0,0,.35)}
.fdv-car-swatch>input[type="color"]{width:20px;height:20px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;flex:none}
.fdv-car-swatch:has(input[type="radio"]:checked){border-color:var(--text,#13232c);box-shadow:inset 0 0 0 1px var(--text,#13232c)}
.fdv-car-swatch:has(input[type="radio"]:focus-visible){outline:2px solid var(--green,#00786e);outline-offset:2px}
.fdv-car-swatch--auto{padding-left:9px}
@media (max-width:560px){.fdv-car-field{grid-template-columns:1fr}.fdv-car-field-preview{max-width:260px}}
html[data-appearance="dark"] .fdv-car-field-preview{background:linear-gradient(145deg,#1b2b33 0%,#24363f 55%,#16252c 100%)}
html[data-appearance="dark"] .fdv-car-swatch>i{box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}

/* FleetDV visual system v89 — presentation only; no financial or data behavior. */
:root {
  --fl-page: #f4f7f7;
  --fl-surface: #ffffff;
  --fl-surface-soft: #f7f9f9;
  --fl-surface-strong: #eef3f2;
  --fl-text: #141a1d;
  --fl-muted: #667177;
  --fl-line: #dce4e2;
  --fl-line-strong: #cbd7d4;
  --fl-accent: #167861;
  --fl-accent-soft: #e4f3ee;
  --fl-positive: #167861;
  --fl-warning: #9a6513;
  --fl-negative: #b64a43;
  --fl-radius-sm: 10px;
  --fl-radius: 16px;
  --fl-radius-lg: 24px;
  --fl-shadow: 0 10px 30px rgba(20, 35, 39, .06);
  --fl-shadow-raised: 0 18px 48px rgba(20, 35, 39, .09);
}

body[data-experience="modern"] {
  --fl-page: #f3f7fc;
  --fl-surface-soft: #f7faff;
  --fl-surface-strong: #eaf1fb;
  --fl-text: #102238;
  --fl-muted: #627188;
  --fl-line: #dbe5f0;
  --fl-line-strong: #c7d6e6;
  --fl-accent: #1769d2;
  --fl-accent-soft: #e7f0fd;
  --fl-shadow: 0 10px 30px rgba(25, 55, 92, .07);
  --fl-shadow-raised: 0 20px 54px rgba(25, 55, 92, .12);
}

body[data-experience="premium"] {
  --fl-page: #eef2f6;
  --fl-surface: #fbfcfe;
  --fl-surface-soft: #f3f6fa;
  --fl-surface-strong: #e7edf5;
  --fl-text: #101b2d;
  --fl-muted: #637086;
  --fl-line: #d7e0eb;
  --fl-line-strong: #c2cfde;
  --fl-accent: #2459b8;
  --fl-accent-soft: #e5edfb;
  --fl-radius: 18px;
  --fl-radius-lg: 26px;
  --fl-shadow: 0 12px 34px rgba(12, 30, 58, .08);
  --fl-shadow-raised: 0 22px 62px rgba(12, 30, 58, .14);
}

body { background: var(--fl-page); color: var(--fl-text); }
.main-content, .view { min-width: 0; }
.view { animation: fl-view-in .22s ease both; }
@keyframes fl-view-in { from { opacity: .55; transform: translateY(4px); } }

/* Page and section hierarchy */
.section-toolbar {
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--fl-line);
}
.section-toolbar h1, .section-toolbar h2 { color: var(--fl-text); letter-spacing: -.035em; }
.section-toolbar p { color: var(--fl-muted); max-width: 68ch; }
.overline, .mini-label { color: var(--fl-accent); letter-spacing: .14em; font-weight: 800; }
.panel {
  background: var(--fl-surface);
  border: 1px solid var(--fl-line);
  border-radius: var(--fl-radius-lg);
  box-shadow: var(--fl-shadow);
  overflow: clip;
}
.panel-head { gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--fl-line); }
.panel-head h2 { color: var(--fl-text); letter-spacing: -.025em; }
.panel-head p, .panel-caption { color: var(--fl-muted); }

/* KPI and analytical surfaces */
.mini-metrics { gap: 14px; }
.mini-metric {
  position: relative;
  min-width: 0;
  background: var(--fl-surface);
  border: 1px solid var(--fl-line);
  border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow);
  padding: 19px 20px;
  overflow: hidden;
}
.mini-metric::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--fl-accent); opacity: .82; }
.mini-metric span { color: var(--fl-muted); font-size: .82rem; font-weight: 700; letter-spacing: .025em; }
.mini-metric strong { color: var(--fl-text); font-family: Manrope, sans-serif; letter-spacing: -.035em; }
body[data-experience="premium"] .mini-metric:first-child,
body[data-experience="premium"] .insight-card { background: linear-gradient(145deg, #12233f, #1d3b69); color: #fff; border-color: transparent; }
body[data-experience="premium"] .mini-metric:first-child span,
body[data-experience="premium"] .mini-metric:first-child strong,
body[data-experience="premium"] .insight-card :is(h2,p,.overline) { color: #fff; }

/* Controls */
.table-filters, .filter-bar {
  background: var(--fl-surface-soft);
  border: 1px solid var(--fl-line);
  border-radius: var(--fl-radius);
  padding: 12px;
  gap: 10px;
}
.table-filters label, .filter-bar label { color: var(--fl-muted); font-weight: 700; }
:is(input, select, textarea) {
  background: var(--fl-surface);
  color: var(--fl-text);
  border-color: var(--fl-line-strong);
  border-radius: var(--fl-radius-sm);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
:is(input, select, textarea):focus { border-color: var(--fl-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fl-accent) 16%, transparent); outline: 0; }
:is(button, a, input, select, textarea):focus-visible { outline: 3px solid color-mix(in srgb, var(--fl-accent) 28%, transparent); outline-offset: 2px; }
.primary-button, .checkout-button { box-shadow: 0 8px 20px color-mix(in srgb, var(--fl-accent) 18%, transparent); }
.primary-button:hover, .checkout-button:hover { transform: translateY(-1px); }
.secondary-button, .account-button, .more-button { background: var(--fl-surface); border-color: var(--fl-line-strong); color: var(--fl-text); }
.secondary-button:hover, .account-button:hover, .more-button:hover { background: var(--fl-accent-soft); border-color: color-mix(in srgb, var(--fl-accent) 34%, var(--fl-line)); }
.status-pill, .signal, .account-status, .admin-status { font-weight: 800; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent); }

/* Intentional financial tables */
.fleet-table-wrap, .table-wrap { border: 1px solid var(--fl-line); border-radius: var(--fl-radius); background: var(--fl-surface); overflow: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table thead th {
  position: relative;
  background: var(--fl-surface-strong);
  color: var(--fl-muted);
  border-bottom: 1px solid var(--fl-line-strong);
  font-size: .75rem;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table tbody td { border-bottom: 1px solid var(--fl-line); color: var(--fl-text); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .14s ease; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--fl-accent-soft) 48%, var(--fl-surface)); }
.data-table td:not(:first-child), .data-table th:not(:first-child) { font-variant-numeric: tabular-nums; }
.profit-value { color: var(--fl-positive) !important; font-weight: 800; }
.data-table small { color: var(--fl-muted); }

/* Shared content patterns */
.vehicle-card, .expense-vehicle-card, .maintenance-vehicle-card, .annual-vehicle-card, .vehicle-decision-card, .loan-card, .mileage-card {
  border-color: var(--fl-line);
  box-shadow: var(--fl-shadow);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.vehicle-card:hover, .expense-vehicle-card:hover, .annual-vehicle-card:hover, .vehicle-decision-card:hover { border-color: var(--fl-line-strong); box-shadow: var(--fl-shadow-raised); transform: translateY(-2px); }
.vehicle-photo-frame { background: linear-gradient(145deg, var(--fl-surface-strong), var(--fl-surface-soft)); }
.vehicle-photo-frame img { transition: transform .3s ease; }
.vehicle-card:hover .vehicle-photo-frame img, .expense-vehicle-card:hover .vehicle-photo-frame img { transform: scale(1.015); }
.expense-row, .mileage-row, .loan-payment-row, .pricing-row, .booking-row, .service-timeline-item, .reimbursement-row, .alert-row {
  border-color: var(--fl-line);
  background: var(--fl-surface);
}
.expense-row:hover, .mileage-row:hover, .loan-payment-row:hover, .pricing-row:hover { background: var(--fl-surface-soft); }
.expense-bars i, .weekday-bars i, .break-track i { background: var(--fl-accent); }
.empty-state {
  min-height: 128px;
  border: 1px dashed var(--fl-line-strong);
  border-radius: var(--fl-radius);
  background: var(--fl-surface-soft);
  color: var(--fl-muted);
}
.empty-state strong { color: var(--fl-text); }
.empty-state.small { min-height: 92px; }

/* Bookings: desktop financial surface + purpose-built phone cards */
.bookings-data-surface { padding: 18px; }
.bookings-data-surface .table-filters { margin-bottom: 16px; }
.bookings-desktop-table .data-table td:nth-child(n+4):nth-child(-n+9),
.bookings-desktop-table .data-table th:nth-child(n+4):nth-child(-n+9) { text-align: right; }
.bookings-desktop-table .data-table td:last-child { white-space: nowrap; }
.bookings-mobile-cards { display: none; }
.booking-mobile-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-line);
  border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow);
  padding: 14px;
}
.booking-mobile-head { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 12px; align-items: center; }
.booking-vehicle-image { width: 64px; aspect-ratio: 4/3; border-radius: 11px; }
.booking-mobile-identity { min-width: 0; display: grid; gap: 2px; }
.booking-mobile-identity strong, .booking-mobile-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-mobile-identity small { color: var(--fl-muted); }
.booking-mobile-guest { color: var(--fl-text); font-weight: 800; font-size: 1rem; }
.booking-mobile-result { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 10px; padding: 12px 0; border-block: 1px solid var(--fl-line); }
.booking-mobile-result span { color: var(--fl-muted); font-weight: 700; }
.booking-mobile-result strong { color: var(--fl-positive); font: 800 1.28rem Manrope, sans-serif; }
.booking-mobile-card details summary { cursor: pointer; color: var(--fl-accent); font-weight: 800; padding: 4px 0; }
.booking-mobile-card dl { display: grid; gap: 0; margin: 10px 0 0; }
.booking-mobile-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--fl-line); }
.booking-mobile-card dt { color: var(--fl-muted); }
.booking-mobile-card dd { margin: 0; color: var(--fl-text); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.booking-mobile-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 14px; }

/* Shared vehicle recognition */
.fleet-vehicle-image--compact { width: 48px; aspect-ratio: 4 / 3; flex: 0 0 48px; border-radius: 10px; }
.fleet-vehicle-image--thumbnail { width: clamp(100px, 12vw, 150px); aspect-ratio: 16 / 9; flex: 0 0 auto; border-radius: 13px; }
.fleet-vehicle-image :is(img,.vehicle-image-fallback) { width: 100%; height: 100%; }
.fleet-vehicle-image img { object-fit: contain; object-position: var(--vehicle-image-position,50% 50%); }
.vehicle-cell-photo { min-width: 210px; gap: 12px; }
.vehicle-summary-image { max-width: 100%; }
.booking-row-photo { grid-template-columns: 48px auto minmax(0,1fr) auto; align-items: center; }
.booking-row-photo .fleet-vehicle-image { width: 48px; }

/* Fleet Pulse is one shared data component with three visual expressions. */
.fleet-pulse { margin: 20px 0; padding: 20px; }
.fleet-pulse-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); gap: 14px; padding-top: 18px; }
.fleet-pulse-card { min-width: 0; overflow: hidden; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: var(--fl-radius); cursor: pointer; transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.fleet-pulse-card:hover { transform: translateY(-2px); border-color: var(--fl-line-strong); box-shadow: var(--fl-shadow-raised); }
.fleet-pulse-media { position: relative; background: var(--fl-surface-strong); }
.fleet-pulse-media .fleet-vehicle-image { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
.fleet-pulse-media .vin-status { position: absolute; left: 12px; bottom: 12px; }
.fleet-pulse-body { padding: 16px; }
.fleet-pulse-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fleet-pulse-title h3 { margin: 0; color: var(--fl-text); font: 800 1.05rem Manrope,sans-serif; letter-spacing: -.025em; }
.fleet-pulse-title small { color: var(--fl-muted); }
.fleet-pulse-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.fleet-pulse-metrics div { min-width: 0; padding: 11px; border-radius: 11px; background: var(--fl-surface-soft); }
.fleet-pulse-metrics span { display: block; color: var(--fl-muted); font-size: .75rem; font-weight: 700; }
.fleet-pulse-metrics strong { display: block; margin-top: 4px; color: var(--fl-text); font-variant-numeric: tabular-nums; }
body[data-experience="classic"] .fleet-pulse-card { display: grid; grid-template-columns: 118px minmax(0,1fr); }
body[data-experience="classic"] .fleet-pulse-media .fleet-vehicle-image { height: 100%; aspect-ratio: auto; border-radius: 0; }
body[data-experience="classic"] .fleet-pulse-media .vin-status { display: none; }
body[data-experience="classic"] .fleet-pulse-metrics { grid-template-columns: repeat(2,1fr); }
body[data-experience="modern"] .fleet-pulse-card { box-shadow: 0 10px 28px rgba(25,55,92,.08); }
body[data-experience="premium"] .fleet-pulse-card { border-color: #cfdae8; box-shadow: 0 16px 38px rgba(12,30,58,.1); }
body[data-experience="premium"] .fleet-pulse-title h3 { font-size: 1.12rem; }
.modern-side-stack-wide { grid-template-columns: repeat(2,minmax(0,1fr)); }

/* Goal presentation uses the selected global reporting period. */
.goal-card { overflow: hidden; }
.goal-card .goal-track { height: 8px; background: color-mix(in srgb,#fff 16%,transparent); border-radius: 999px; overflow: hidden; }
.goal-card .goal-track i { display: block; height: 100%; border-radius: inherit; transition: width .3s ease; }
.goal-context { display: block; margin-top: 7px; opacity: .78; line-height: 1.35; }
.goal-remaining { display: block; margin-top: 7px; font-size: .82rem; }
.goal-card.goal-achieved .goal-track i { background: #57db9e; }
body[data-experience="modern"] .goal-card { border-color: rgba(126,169,224,.35); }
body[data-experience="premium"] .goal-card { background: linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.035)); border-color: rgba(255,255,255,.16); }

/* Operational trip thumbnails */
.trip-vehicle-identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
.trip-vehicle-identity > div:last-child { min-width: 0; }
.trip-vehicle-identity strong,.trip-vehicle-identity small { display: block; }
.trip-vehicle-image { max-width: 100%; }

/* Charts, dashboards and page-specific cohesion */
.revenue-panel, .breakdown-panel, .annual-trend-panel, .expense-category-panel { background: var(--fl-surface); }
.insight-card { border-color: color-mix(in srgb, var(--fl-accent) 28%, var(--fl-line)); background: var(--fl-accent-soft); }
.annual-trend-chart, .chart-area, .calendar-content { background: var(--fl-surface-soft); border-radius: var(--fl-radius); }
.annual-month-grid, .annual-vehicle-grid, .expense-vehicle-grid, .maintenance-grid { gap: 16px; }
.annual-detail-table > summary { color: var(--fl-text); font-weight: 800; }
.calendar-day { border-color: var(--fl-line); background: var(--fl-surface); }
.calendar-day:hover { border-color: var(--fl-accent); background: var(--fl-accent-soft); }
.goal-card progress, .progress-track { accent-color: var(--fl-accent); }
.decision-card, .annual-highlight-card, .goal-card { background: var(--fl-surface); border: 1px solid var(--fl-line); box-shadow: var(--fl-shadow); }
.account-panel, .modal { background: var(--fl-surface); border-color: var(--fl-line); box-shadow: var(--fl-shadow-raised); }
.account-identity, .account-plan-card, .account-support-card, .account-danger-card { background: var(--fl-surface-soft); border-color: var(--fl-line); }
.auth-card { box-shadow: var(--fl-shadow-raised); border: 1px solid var(--fl-line); }
.loading-card { border: 1px solid rgba(255,255,255,.12); box-shadow: var(--fl-shadow-raised); }
.toast { box-shadow: var(--fl-shadow-raised); }

body[data-experience="modern"] .panel,
body[data-experience="modern"] .mini-metric { border-radius: 18px; }
body[data-experience="modern"] .panel-head { border-bottom-color: #dce7f3; }
body[data-experience="premium"] .panel { box-shadow: 0 14px 38px rgba(12,30,58,.075), inset 0 1px rgba(255,255,255,.75); }
body[data-experience="premium"] .data-table thead th { background: #e9eef6; color: #45546b; }
body[data-experience="classic"] .panel,
body:not([data-experience]) .panel { box-shadow: 0 5px 18px rgba(20,35,39,.045); }

/* Loading and motion preferences */
.skeleton, [data-loading="true"] { position: relative; overflow: hidden; background: var(--fl-surface-strong); }
.skeleton::after, [data-loading="true"]::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: fl-shimmer 1.25s infinite; }
@keyframes fl-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 760px) {
  .view { max-width: 100%; overflow-x: clip; }
  .section-toolbar { align-items: stretch; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; }
  .section-toolbar > :is(button, .primary-button, .secondary-button) { width: 100%; }
  .panel { border-radius: 18px; }
  .panel-head { align-items: flex-start; gap: 10px; }
  .mini-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .mini-metric { padding: 15px 14px; min-height: 104px; }
  .mini-metric span { font-size: .76rem; line-height: 1.25; }
  .mini-metric strong { font-size: clamp(1.18rem,6vw,1.62rem); }
  .table-filters, .filter-bar { display: grid; grid-template-columns: 1fr; }
  .table-filters label, .table-filters input, .table-filters select { width: 100%; min-width: 0; }
  .bookings-data-surface { padding: 12px; background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .bookings-desktop-table { display: none; }
  .bookings-mobile-cards { display: grid; gap: 12px; }
  .booking-mobile-head { grid-template-columns: 58px minmax(0,1fr); }
  .booking-mobile-head > .status-pill { grid-column: 2; justify-self: start; }
  .booking-vehicle-image { width: 58px; grid-row: 1 / span 2; }
  .booking-mobile-actions { grid-template-columns: 1fr; }
  .booking-mobile-actions > * { width: 100%; min-height: 44px; }
  .fleet-pulse { padding: 14px; }
  .fleet-pulse-grid { grid-template-columns: 1fr; }
  body[data-experience="classic"] .fleet-pulse-card { display: block; }
  body[data-experience="classic"] .fleet-pulse-media .fleet-vehicle-image { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .fleet-pulse-card:hover { transform: none; }
  .fleet-pulse-metrics { grid-template-columns: 1fr 1fr; }
  .modern-side-stack-wide { grid-template-columns: 1fr; }
  .trip-action-head { align-items: flex-start; }
  .trip-vehicle-identity { align-items: flex-start; }
  .trip-vehicle-identity .fleet-vehicle-image--thumbnail { width: 88px; flex-basis: 88px; }
  .booking-row-photo { grid-template-columns: 44px auto minmax(0,1fr); }
  .booking-row-photo > span:last-child { grid-column: 3; }
  .data-table { font-size: .9rem; }
  .empty-state { min-height: 112px; padding: 18px; }
  .vehicle-card:hover, .expense-vehicle-card:hover, .annual-vehicle-card:hover, .vehicle-decision-card:hover { transform: none; }
}

@media (max-width: 390px) {
  .mini-metrics { grid-template-columns: 1fr 1fr; }
  .booking-mobile-card { padding: 12px; }
  .booking-mobile-result strong { font-size: 1.15rem; }
}
/* Version 91: operational calendar, compact setup, profile, and vehicle lifecycle */
.setup-launchpad{overflow:hidden}.setup-launchpad>summary{display:flex;align-items:center;justify-content:space-between;gap:24px;cursor:pointer;list-style:none}.setup-launchpad>summary::-webkit-details-marker{display:none}.setup-launchpad:not([open]){padding-block:18px}.setup-launchpad:not([open]) .setup-intro h2{font-size:20px;margin:2px 0}.setup-launchpad:not([open]) .setup-intro p{margin:0}.setup-toggle{white-space:nowrap;font-weight:800;color:var(--accent,#177e66)}
.profile{width:100%;border:0;text-align:left;cursor:pointer}.profile-avatar,.account-avatar,.profile-photo-preview{background-size:cover!important;background-position:center!important}.profile b{margin-left:auto}.account-identity span#accountEmail{display:block;color:#718078;font-size:13px}.account-profile-card{padding:18px;border:1px solid rgba(21,47,39,.12);border-radius:18px;background:rgba(247,250,248,.88)}.profile-photo-editor{display:grid;grid-template-columns:64px 1fr;gap:14px;align-items:start;margin:12px 0}.profile-photo-preview{width:64px;height:64px}.profile-photo-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
.vehicle-lifecycle-filter select{min-height:44px;border:1px solid rgba(20,45,38,.16);border-radius:12px;padding:0 36px 0 12px;background:#fff}.sold-vehicle-card{opacity:.84}.vehicle-sold-badge{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eef0f0;color:#47514e;font-weight:800;font-size:11px}.vehicle-activity.sold{background:#eef0f0;color:#47514e}.vehicle-card-footer>div{display:flex;gap:12px;align-items:center}
.calendar-booking-modal{max-width:560px}.calendar-booking-identity{display:grid;grid-template-columns:minmax(160px,42%) 1fr;gap:18px;align-items:center;margin:18px 0}.calendar-booking-identity .fl-vehicle-image{aspect-ratio:16/9;border-radius:16px;overflow:hidden}.calendar-booking-identity h2{margin:0 0 4px}.calendar-booking-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.calendar-booking-facts>div{padding:13px;border-radius:13px;background:#f3f6f4}.calendar-booking-facts span{display:block;color:#6b7671;font-size:12px}.calendar-booking-facts strong{display:block;margin-top:4px}.calendar-event.booking-event{cursor:pointer}
.goal-card{flex:none!important;overflow:visible!important;min-height:max-content}.goal-card small,.goal-card strong{white-space:normal}.goal-track{flex:none}
@media(max-width:680px){.vehicle-header-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%}.vehicle-search{grid-column:1/-1}.vehicle-header-actions .primary-button{width:100%}.calendar-booking-identity{grid-template-columns:1fr}.calendar-booking-identity .fl-vehicle-image{width:100%}.calendar-booking-facts{grid-template-columns:1fr}.setup-launchpad>summary{align-items:flex-start}.setup-toggle{font-size:13px}.profile-photo-editor{grid-template-columns:56px 1fr}.profile-photo-preview{width:56px;height:56px}}

/* Version 92: calmer account surfaces and compact Turo onboarding */
.setup-launchpad{
  display:block;
  padding:0;
  overflow:hidden;
  border:1px solid #d9e3df;
  border-radius:20px;
  background:#fff;
  color:#15201d;
  box-shadow:0 14px 40px rgba(18,39,32,.07);
}
.setup-launchpad>summary{
  min-height:92px;
  padding:22px 26px;
  border-bottom:1px solid #e4ebe8;
  background:linear-gradient(110deg,#f7faf9 0%,#f0f7f4 62%,#eef5ff 100%);
}
.setup-launchpad:not([open])>summary{border-bottom:0}
.setup-launchpad .setup-intro .overline{color:#16725c}
.setup-launchpad .setup-intro h2{color:#14201d;font-size:20px}
.setup-launchpad .setup-intro p{max-width:none;color:#64726d;font-size:13px}
.setup-launchpad .setup-toggle{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 16px;
  border:1px solid #bed2ca;
  border-radius:999px;
  background:#fff;
  color:#176a57;
  font-size:12px;
}
.setup-launchpad .setup-toggle:after{content:"  ↓";margin-left:7px}
.setup-launchpad[open] .setup-toggle:after{content:"  ↑"}
.setup-launchpad .setup-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px 20px 20px}
.setup-launchpad .setup-step{
  grid-template-columns:auto minmax(0,1fr) auto;
  min-height:88px;
  padding:15px;
  border:1px solid #dce6e2;
  border-radius:15px;
  background:#f8faf9;
  color:#17211e;
}
.setup-launchpad .setup-number{width:36px;height:36px;border-radius:11px;background:#dff7ed;color:#12644f;font-size:14px}
.setup-launchpad .setup-step strong{font-size:14px;color:#17211e}
.setup-launchpad .setup-step small{color:#6f7c77;font-size:11px}
.setup-launchpad .setup-step .secondary-button{min-height:40px;border-color:#bdccc6;background:#fff;color:#18231f}
.setup-launchpad .setup-step .secondary-button:hover{border-color:#16725c;background:#eef7f3}
.setup-launchpad .setup-state{background:#edf1ef;color:#5f6d68;font-size:10px}
.setup-launchpad .setup-step[data-status="complete"]{border-color:#b9dfd0;background:#f1faf6}
.setup-launchpad .setup-step[data-status="complete"] .setup-state{background:#d9f4e8;color:#12644f}
.setup-launchpad .setup-step[data-status="attention"]{border-color:#ead7a5;background:#fffaf0}
.setup-launchpad .setup-step[data-status="attention"] .setup-state{background:#fff0c7;color:#7b5710}

.account-panel{background:#f3f6f8;color:#142033}
.account-panel-head{border-bottom-color:#dce3ea;background:rgba(248,250,252,.97)}
.account-panel-body{gap:16px;padding-top:20px}
.account-identity{
  grid-template-columns:64px minmax(0,1fr);
  padding:18px;
  border-color:#d8e1ea;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 25px rgba(26,48,79,.05);
}
.account-identity .account-avatar{width:64px;height:64px;border-radius:18px;background:#10243f;color:#caff4a;font-size:20px}
.account-identity small{color:#708096}
.account-identity strong{font-size:17px;color:#152238}
.account-identity span#accountEmail{color:#68788e;font-size:13px}
.account-profile-card{
  padding:20px;
  border-color:#d8e1ea;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 25px rgba(26,48,79,.05);
}
.account-profile-card>.mini-label{color:#2763ba}
.profile-photo-editor{grid-template-columns:72px minmax(0,1fr);gap:16px;margin:14px 0 18px}
.profile-photo-preview{width:72px;height:72px;border-radius:18px;background:#10243f;color:#caff4a;font-size:20px}
.profile-photo-editor>div{display:grid;gap:9px;min-width:0}
.profile-photo-editor label{display:grid;gap:7px;color:#566579;font-size:12px;font-weight:800}
.profile-photo-editor input:not([type="file"]){width:100%;min-width:0;height:44px;padding:0 13px;border:1px solid #cad5e1;border-radius:11px;background:#f9fbfc;color:#142033;font-size:15px}
.profile-photo-editor input:focus{border-color:#3978d6;outline:3px solid rgba(57,120,214,.14)}
.profile-photo-actions{margin-top:0}
.account-profile-card #saveProfileButton{min-height:44px;border-color:#1f5fae;background:#1f5fae;color:#fff}
.account-profile-card #saveProfileButton:hover{background:#184d8e}
.account-plan-card,
[data-experience="classic"] .account-plan-card,
[data-experience="modern"] .account-plan-card,
[data-experience="premium"] .account-plan-card{
  border:1px solid #19375e;
  background:linear-gradient(135deg,#0c1d33 0%,#12345b 100%);
  color:#fff;
  box-shadow:0 16px 36px rgba(12,35,65,.2);
}
.account-plan-card .mini-label{color:#8fb8f5}
.account-plan-card .account-plan-head h3{color:#fff}
.account-plan-card .account-plan-head p,.account-plan-card .account-plan-benefits{color:#c2d1e4}
.account-plan-card .account-status.active{border-color:#92bf35;background:#1e351d;color:#d5ff62}
.account-support-card,.account-danger-card{border-color:#d8e1ea!important;background:#fff!important;color:#142033;box-shadow:0 8px 25px rgba(26,48,79,.04)}

[data-experience="modern"] .setup-launchpad{border-color:#d5e1ec}
[data-experience="modern"] .setup-launchpad>summary{background:linear-gradient(110deg,#f6f9fc,#edf5ff)}
[data-experience="premium"] .setup-launchpad{border-color:#cddaea;box-shadow:0 18px 45px rgba(24,64,118,.1)}
[data-experience="premium"] .setup-launchpad>summary{background:linear-gradient(110deg,#f6f9fd 0%,#eaf2ff 100%)}
[data-experience="premium"] .setup-launchpad .setup-intro .overline,[data-experience="premium"] .setup-launchpad .setup-toggle{color:#205fb8}
[data-experience="premium"] .setup-launchpad .setup-number{background:#e0ebff;color:#1958ae}

/* FleetDV appearance system v93 — semantic color modes shared by every experience. */
:root,
html[data-appearance="light"] {
  --background: var(--fl-page);
  --surface: var(--fl-surface);
  --surface-elevated: #ffffff;
  --surface-soft: var(--fl-surface-soft);
  --surface-strong: var(--fl-surface-strong);
  --text-primary: var(--fl-text);
  --text-secondary: var(--fl-muted);
  --text-muted: #7a858a;
  --border: var(--fl-line);
  --border-strong: var(--fl-line-strong);
  --accent: var(--fl-accent);
  --accent-soft: var(--fl-accent-soft);
  --positive: var(--fl-positive);
  --negative: var(--fl-negative);
  --warning: var(--fl-warning);
  --information: #2469bd;
  --selected: var(--fl-accent-soft);
  --hover: #f0f5f4;
  --focus: color-mix(in srgb, var(--fl-accent) 30%, transparent);
  --disabled: #e7eceb;
  --chart-grid: #dfe6e5;
  --chart-axis: #778287;
  --overlay: rgba(7,16,20,.58);
  --skeleton-base: var(--fl-surface-strong);
  --skeleton-shine: rgba(255,255,255,.62);
}

html[data-appearance="dark"] {
  color-scheme: dark;
  --background: #0d141d;
  --surface: #141d28;
  --surface-elevated: #192432;
  --surface-soft: #111a24;
  --surface-strong: #202d3b;
  --text-primary: #f1f5f8;
  --text-secondary: #b2bec9;
  --text-muted: #8997a4;
  --border: #293746;
  --border-strong: #3a4a5c;
  --accent: #68a8ff;
  --accent-soft: #182f4c;
  --positive: #55d5ac;
  --negative: #ff8c91;
  --warning: #f4c56b;
  --information: #7db8ff;
  --selected: #1c3655;
  --hover: #1b2835;
  --focus: rgba(104,168,255,.36);
  --disabled: #25313d;
  --chart-grid: #2b3a49;
  --chart-axis: #a3b0bc;
  --overlay: rgba(2,7,12,.76);
  --skeleton-base: #202d3b;
  --skeleton-shine: rgba(255,255,255,.075);
  --fl-page: var(--background);
  --fl-surface: var(--surface);
  --fl-surface-soft: var(--surface-soft);
  --fl-surface-strong: var(--surface-strong);
  --fl-text: var(--text-primary);
  --fl-muted: var(--text-secondary);
  --fl-line: var(--border);
  --fl-line-strong: var(--border-strong);
  --fl-accent: var(--accent);
  --fl-accent-soft: var(--accent-soft);
  --fl-positive: var(--positive);
  --fl-warning: var(--warning);
  --fl-negative: var(--negative);
  --fl-shadow: 0 12px 32px rgba(0,0,0,.22);
  --fl-shadow-raised: 0 24px 64px rgba(0,0,0,.32);
}
html[data-appearance="dark"] body[data-experience="classic"] { --accent:#62c4aa; --accent-soft:#17372f; }
html[data-appearance="dark"] body[data-experience="modern"] { --accent:#69aaff; --accent-soft:#182f50; }
html[data-appearance="dark"] body[data-experience="premium"] { --accent:#8bb5ff; --accent-soft:#213653; --surface:#151e2b; --surface-elevated:#1b2635; }
html[data-appearance="dark"] body { --fl-accent:var(--accent); --fl-accent-soft:var(--accent-soft); background:var(--background); color:var(--text-primary); }

/* Shared surfaces: appearance changes presentation, never component or business logic. */
body,
.main-content,.workspace,.view,.content,.app-loading-shell,.auth-shell,.auth-form-pane,
.account-panel-body { background-color:var(--background); color:var(--text-primary); }
:is(.panel,.mini-metric,.metric-card,.feature-panel,.fleet-panel,.vehicle-card,.fleet-pulse-card,.trip-action-card,.booking-mobile-card,.bookings-data-surface,.expense-vehicle-card,.expense-category-panel,.expense-transactions-panel,.maintenance-card,.maintenance-vehicle-card,.goal-card,.report-card,.loan-card,.mileage-card,.decision-card,.vehicle-decision-card,.annual-kpi-card,.annual-month-card,.annual-highlight-card,.annual-trend-panel,.annual-month-panel,.annual-vehicle-panel,.annual-vehicle-card,.breakdown-panel,.calculator-panel,.reconciliation-card,.breakeven-card,.sidebar-card,.calendar-board,.calendar-mini-month,.account-identity,.account-profile-card,.account-appearance-card,.account-plan-card,.account-support-card,.account-danger-card,.setup-launchpad,.setup-step,.auth-card,.loading-card,.modal,.pro-upgrade-modal,.calendar-booking-modal) {
  background-color:var(--surface); border-color:var(--border); color:var(--text-primary);
}
:is(.section-toolbar,.panel-head,.account-panel-head,.calendar-board-head,.maintenance-card-head,.loan-card-head,.annual-vehicle-row,.pricing-detail-row,.profit-detail-row,.account-detail-row) { border-color:var(--border); }
:is(h1,h2,h3,h4,strong,b,.data-table td,.annual-financial-table td,.calendar-day-number) { color:var(--text-primary); }
:is(p,small,.panel-caption,.metric-label,.account-billing-note,.formula-note,.modal-note,.calendar-availability,.chart-label) { color:var(--text-secondary); }
:is(.overline,.mini-label,a,.text-button) { color:var(--accent); }

/* Appearance selector lives with the account profile, not in permanent chrome. */
.account-appearance-card { padding:20px; border:1px solid var(--border); border-radius:18px; display:grid; gap:16px; }
.account-appearance-card h3 { margin:5px 0 2px; }
.account-appearance-card p { margin:0; max-width:58ch; }
.appearance-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.appearance-options button { min-width:0; min-height:92px; padding:14px; display:grid; align-content:center; gap:3px; text-align:left; border:1px solid var(--border-strong); border-radius:14px; background:var(--surface-soft); color:var(--text-primary); cursor:pointer; transition:.16s ease; }
.appearance-options button>span { font-size:1.25rem; line-height:1; }
.appearance-options button small { color:var(--text-secondary); }
.appearance-options button:hover { background:var(--hover); border-color:var(--accent); transform:translateY(-1px); }
.appearance-options button.active { background:var(--selected); border-color:var(--accent); box-shadow:0 0 0 2px var(--focus); }

/* Forms, filters, buttons, menus and layered UI. */
:is(input,select,textarea,.search-box,.table-filters,.filter-bar,.calendar-filter) { background-color:var(--surface-soft); border-color:var(--border-strong); color:var(--text-primary); }
:is(input,textarea)::placeholder { color:var(--text-muted); opacity:1; }
:is(input,select,textarea):focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--focus); }
:is(button,a,input,select,textarea):focus-visible { outline-color:var(--focus); }
:is(button,input,select,textarea):disabled { color:var(--text-muted); background-color:var(--disabled); opacity:.72; }
.secondary-button,.account-panel-close,.calendar-toolbar button { background:var(--surface-elevated); border-color:var(--border-strong); color:var(--text-primary); }
.secondary-button:hover,.account-panel-close:hover { background:var(--hover); }
.modal-backdrop,.account-panel-backdrop,.experience-drawer-backdrop { background:var(--overlay); }
.account-panel,.experience-drawer { background:var(--surface-elevated); color:var(--text-primary); border-color:var(--border); box-shadow:var(--fl-shadow-raised); }
.tooltip,[role="tooltip"] { background:var(--surface-elevated); color:var(--text-primary); border-color:var(--border); box-shadow:var(--fl-shadow); }

/* Financial data surfaces. Color is reinforced by signs, labels, weight and badges. */
.data-table,.annual-financial-table,.bookings-desktop-table { background:var(--surface); color:var(--text-primary); }
.data-table thead th,.annual-financial-table thead th,.bookings-desktop-table thead th { background:var(--surface-strong)!important; color:var(--text-secondary)!important; border-color:var(--border); }
.data-table :is(td,th),.annual-financial-table :is(td,th),.bookings-desktop-table :is(td,th),.booking-row,.expense-transaction-row,.maintenance-row,.loan-payment-row,.mileage-row,.cost-row,.plan-row { border-color:var(--border); }
.data-table tbody tr:hover,.annual-financial-table tbody tr:hover,.booking-row:hover,.expense-transaction-row:hover { background:var(--hover); }
:is(.positive,.profit-positive,[data-tone="positive"]) { color:var(--positive)!important; font-weight:800; }
:is(.negative,.profit-negative,[data-tone="negative"]) { color:var(--negative)!important; font-weight:800; }
:is(.warning,[data-tone="warning"]) { color:var(--warning)!important; font-weight:700; }

/* Calendar semantics in both color modes. */
.calendar-grid,.calendar-weekdays,.calendar-mini-grid { border-color:var(--border); }
.calendar-day { background:var(--surface); border-color:var(--border); color:var(--text-primary); }
.calendar-day:hover { background:var(--hover); border-color:var(--accent); }
.calendar-day.outside { background:var(--surface-soft); color:var(--text-muted); opacity:.7; }
.calendar-day.available { background:color-mix(in srgb,var(--positive) 7%,var(--surface)); }
.calendar-day.booked { background:color-mix(in srgb,var(--information) 9%,var(--surface)); }
.calendar-day.partial { background:color-mix(in srgb,var(--warning) 8%,var(--surface)); }
.calendar-day.today { box-shadow:inset 0 0 0 2px var(--accent); }
.calendar-day.selected { background:var(--selected); border-color:var(--accent); }
.calendar-event { background:var(--selected); border-color:color-mix(in srgb,var(--accent) 45%,var(--border)); color:var(--text-primary); }
.calendar-event span,.calendar-event b { color:inherit; }

/* Charts and skeletons consume semantic colors instead of assuming a white canvas. */
.chart,.chart-area,.annual-trend-chart { color:var(--text-primary); }
.chart-grid,.chart line,.annual-trend-chart line { stroke:var(--chart-grid); }
.chart text,.chart-label,.annual-trend-chart text,.annual-chart-legend { fill:var(--chart-axis); color:var(--chart-axis); }
.chart-tooltip { background:var(--surface-elevated); color:var(--text-primary); border:1px solid var(--border); box-shadow:var(--fl-shadow); }
.skeleton,[data-loading="true"] { background:var(--skeleton-base); }
.skeleton::after,[data-loading="true"]::after { background:linear-gradient(90deg,transparent,var(--skeleton-shine),transparent); }

/* Dark-mode corrections for legacy light-only presentation rules. */
html[data-appearance="dark"] :is(.setup-launchpad>summary,.setup-intro,.setup-steps,.profile-photo-editor,.account-plan-details,.calendar-content,.annual-table-wrap,.fleet-table-wrap,.expense-group-rows) { background-color:var(--surface); color:var(--text-primary); border-color:var(--border); }
html[data-appearance="dark"] :is(.setup-launchpad>summary,.account-profile-card,.account-plan-card,.account-support-card,.account-danger-card) { background-image:none; }

/* v98: Complimentary Pro remains a plan entitlement, visually separate from admin role. */
.complimentary-access-modal{max-width:560px}
.complimentary-access-modal #complimentaryAccessUser{margin:-8px 0 16px;color:var(--text-secondary);font-weight:700;overflow-wrap:anywhere}
.complimentary-access-modal .entry-form{margin-top:18px}
.admin-users-table td:last-child{min-width:190px;white-space:nowrap}
.admin-users-table td:last-child .delete-button{margin-left:7px}
@media(max-width:780px){.complimentary-access-modal{width:calc(100% - 24px);max-height:calc(100dvh - env(safe-area-inset-bottom) - 24px);overflow:auto}.admin-users-panel .table-wrap{overflow-x:auto}}
html[data-appearance="dark"] body[data-experience="premium"] :is(.mini-metric:first-child,.insight-card) { background:linear-gradient(145deg,#152843,#1c385d); }
html[data-appearance="dark"] body[data-experience="premium"] .goal-card { background:var(--surface); border-color:var(--border); }
html[data-appearance="dark"] .auth-story { background-color:#0b121a; }
html[data-appearance="dark"] .auth-card { background:var(--surface-elevated); }
html[data-appearance="dark"] .auth-tabs { background:var(--surface-soft); }
html[data-appearance="dark"] .auth-tabs button.active { background:var(--selected); color:var(--text-primary); }
html[data-appearance="dark"] .app-loading-shell .loading-card { background:var(--surface-elevated); }
html[data-appearance="dark"] :is(.fleet-vehicle-image,.vehicle-image-fallback,.profile-avatar,.account-avatar) { background-color:var(--surface-strong); border-color:var(--border); }
html[data-appearance="dark"] :is(.fleet-vehicle-image img,img[data-vehicle-image-path],.vehicle-card-image,.auth-fleet-showcase img) { filter:none!important; }

@media (max-width:640px) {
  .appearance-options { grid-template-columns:1fr; }
  .appearance-options button { min-height:64px; grid-template-columns:28px 1fr; align-items:center; }
  .appearance-options button small { grid-column:2; }
}

@media(max-width:900px){.setup-launchpad .setup-steps{grid-template-columns:1fr}}
@media(max-width:600px){
  .setup-launchpad{border-radius:16px}
  .setup-launchpad>summary{min-height:0;padding:18px;gap:12px}
  .setup-launchpad .setup-intro h2{font-size:18px}
  .setup-launchpad .setup-steps{padding:12px}
  .setup-launchpad .setup-step{grid-template-columns:auto minmax(0,1fr);min-height:0}
  .setup-launchpad .setup-step .setup-state{justify-self:start}
  .setup-launchpad .setup-step .secondary-button{grid-column:1/-1;width:100%}
  .account-identity{grid-template-columns:54px minmax(0,1fr)}
  .account-identity .account-avatar{width:54px;height:54px}
  .profile-photo-editor{grid-template-columns:60px minmax(0,1fr)}
  .profile-photo-preview{width:60px;height:60px}
  .profile-photo-actions{display:grid;grid-template-columns:1fr auto}
  .profile-photo-actions .secondary-button{width:100%}
}

/* FleetDV visual release v94 — shared structure across Classic, Modern and Premium. */
.sidebar>.profile{display:none}
.experience-profile-control{display:block;position:relative;flex:0 0 auto}
.experience-command-trigger{display:flex;align-items:center;gap:9px;width:min(320px,28vw);height:44px;margin-left:auto;padding:0 13px;border:1px solid var(--border-strong);border-radius:12px;background:var(--surface-elevated);color:var(--text-secondary);text-align:left;box-shadow:var(--fl-shadow);cursor:pointer}
.experience-command-trigger strong{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.experience-command-trigger kbd{padding:3px 6px;border:1px solid var(--border);border-radius:6px;background:var(--surface-strong);color:var(--text-secondary);font:750 .7rem "DM Sans"}
.experience-command-palette{position:fixed;inset:0;z-index:120;display:grid;place-items:start center;padding-top:12vh;background:var(--overlay);backdrop-filter:blur(10px)}
.experience-command-palette[hidden]{display:none}
.experience-command-palette>section{width:min(620px,calc(100vw - 28px));overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--surface-elevated);box-shadow:var(--fl-shadow-raised)}
.experience-command-input{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:14px;border-bottom:1px solid var(--border)}
.experience-command-input input{min-width:0;border:0!important;box-shadow:none!important;background:transparent!important}
.experience-command-results{display:grid;gap:4px;max-height:55vh;padding:8px;overflow:auto}
.experience-command-results button{display:flex;justify-content:space-between;min-height:52px;padding:9px 11px;border:0;border-radius:10px;background:var(--surface-soft);color:var(--text-primary);text-align:left}
.experience-command-results button:hover{background:var(--hover)}
.experience-command-results small{display:block;color:var(--text-secondary)}
#experienceProfileButton{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--border-strong);border-radius:50%;background:var(--surface-elevated);color:var(--text-primary);box-shadow:var(--fl-shadow);cursor:pointer}
#experienceProfileInitials,#experienceProfileMenuAvatar{display:grid;place-items:center;background:var(--surface-strong);color:var(--accent);font-weight:850;background-size:cover;background-position:center}
#experienceProfileInitials{width:34px;height:34px;border-radius:50%}
#experienceProfileMenuAvatar{width:46px;height:46px;border-radius:14px}
.experience-profile-menu{position:absolute!important;z-index:110!important;right:0!important;top:52px!important;width:min(320px,calc(100vw - 24px))!important;display:grid!important;gap:7px!important;padding:14px!important;border:1px solid var(--border)!important;border-radius:18px!important;background:var(--surface-elevated)!important;color:var(--text-primary)!important;box-shadow:var(--fl-shadow-raised)!important}
.experience-profile-menu[hidden]{display:none!important}
.experience-profile-identity{display:grid;grid-template-columns:46px minmax(0,1fr);gap:11px;align-items:center;padding:4px 4px 8px}
.experience-profile-identity strong,.experience-profile-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.experience-profile-identity small{color:var(--text-secondary);font-size:.78rem}
.experience-profile-plan{justify-self:start;margin:0 4px 5px;padding:5px 9px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:.72rem;font-weight:800}
.experience-profile-menu>a,.experience-profile-menu>button{display:flex;align-items:center;min-height:42px;padding:0 11px;border:0;border-radius:10px;background:var(--surface-soft)!important;color:var(--text-primary)!important;font:750 .86rem "DM Sans";text-decoration:none;text-align:left;cursor:pointer}
.experience-profile-menu>a:hover,.experience-profile-menu>button:hover{background:var(--hover)!important}
.experience-menu-group{display:grid;gap:6px;padding:9px 4px;border-top:1px solid var(--border)}
.experience-menu-group>small{color:var(--text-muted);font-size:.7rem;font-weight:850;text-transform:uppercase;letter-spacing:.11em}
.experience-menu-options{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.experience-menu-options button{min-width:0;min-height:38px;padding:6px;border:1px solid var(--border);border-radius:9px;background:var(--surface-soft);color:var(--text-secondary);font-weight:750;cursor:pointer}
.experience-menu-options button.active{border-color:var(--accent);background:var(--selected);color:var(--text-primary)}
.workspace-header>.header-actions .profile-button,.workspace-header>.header-actions>#signOutButton,.workspace-header>.header-actions>.subscription-badge{display:none!important}
.workspace-header{border-bottom-color:var(--border);background:color-mix(in srgb,var(--background) 92%,transparent);backdrop-filter:blur(18px)}
.header-actions{margin-left:auto}

/* Overview has an executive hierarchy instead of a wall of equal cards. */
#overviewView.active{display:flex;flex-direction:column;gap:18px}
.overview-welcome{order:0;display:flex;align-items:end;justify-content:space-between;padding:4px 2px 2px}
.overview-welcome h2{margin:4px 0 3px;color:var(--text-primary);font:800 clamp(1.55rem,3vw,2.35rem)/1.08 Manrope,sans-serif;letter-spacing:-.045em}
.overview-welcome p{margin:0;color:var(--text-secondary);font-size:.98rem}
#overviewView>.metric-grid{order:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#overviewView>.metric-grid .metric-card{min-height:138px;padding:20px;background:var(--surface-elevated);border:1px solid var(--border);border-radius:var(--fl-radius);box-shadow:var(--fl-shadow)}
#overviewView>.metric-grid .metric-card strong{font:800 clamp(1.65rem,3vw,2.35rem)/1 Manrope,sans-serif;color:var(--text-primary);font-variant-numeric:tabular-nums}
#overviewView>.metric-grid .metric-card.profit{background:linear-gradient(145deg,color-mix(in srgb,var(--accent-soft) 72%,var(--surface)),var(--surface-elevated));border-color:color-mix(in srgb,var(--accent) 38%,var(--border))}
#overviewView>.dashboard-grid{order:2}
#overviewView>.overview-operations-grid{order:3;grid-template-columns:repeat(3,minmax(0,1fr))}
#overviewView>.fleet-pulse{order:4}
#overviewView>.overview-alerts-panel{order:5}
#overviewView>.fleet-panel{order:6}
#overviewView>.formula-note{order:7}
#overviewView>.setup-launchpad{order:-2}
.overview-goal-card{display:flex;flex-direction:column;min-height:0!important;padding:22px!important;overflow:visible!important}
.overview-goal-card .panel-head{padding:0 0 16px;margin:0 0 16px}
.goal-summary{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:12px}
.goal-summary>strong:first-child{font:800 1.15rem Manrope,sans-serif;color:var(--text-primary)}
.goal-percentage{font:800 1.5rem Manrope,sans-serif;color:var(--accent);font-variant-numeric:tabular-nums}
.overview-goal-card .goal-track{height:10px;margin:0 0 12px;background:var(--surface-strong)}
.overview-goal-card .goal-context,.overview-goal-card .goal-remaining{display:block;margin-top:5px;color:var(--text-secondary)}
.overview-goal-card .goal-remaining{color:var(--text-primary);font-size:.84rem}
.compact-alert-list{display:grid;gap:8px}
.compact-alert-list .alert-row{min-height:64px}

/* Compact operational trips; full checklists reveal only on demand. */
.trip-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.trip-action-card{align-self:start;padding:18px!important;background:var(--surface-elevated);border:1px solid var(--border);border-radius:var(--fl-radius-lg);box-shadow:var(--fl-shadow)}
.trip-action-head{align-items:start}
.trip-vehicle-identity{min-width:0}
.trip-vehicle-identity .fleet-vehicle-image{width:118px;max-width:32%;aspect-ratio:16/9;border-radius:12px;overflow:hidden}
.trip-handoff{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.trip-handoff>div{min-width:0;padding:10px;border:1px solid var(--border);border-radius:11px;background:var(--surface-soft)}
.trip-handoff span,.trip-phase-progress{color:var(--text-muted)}
.trip-handoff strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-primary);font-size:.82rem}
.trip-phase-progress{display:flex;justify-content:space-between;margin-top:7px;font-size:.76rem;font-weight:750}
.trip-checklist-details{margin-top:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft)}
.trip-checklist-details>summary{display:flex;justify-content:space-between;padding:12px 14px;color:var(--text-primary);font-weight:800;cursor:pointer;list-style:none}
.trip-checklist-details>summary::-webkit-details-marker{display:none}
.trip-checklist-details>summary span{color:var(--text-secondary)}
.trip-checklist-details .trip-checklists{padding:4px 14px 14px}
.task-check{background:var(--surface);border-color:var(--border);color:var(--text-primary)}

/* One coherent card/table language across operational and financial pages. */
:is(.bookings-data-surface,.expense-transactions-panel,.expense-category-panel,.maintenance-vehicle-card,.annual-trend-panel,.annual-month-panel,.annual-vehicle-panel,.report-card,.loan-card,.mileage-card,.reconciliation-card,.vehicle-decision-card){background:var(--surface);border:1px solid var(--border);box-shadow:var(--fl-shadow)}
.panel,.bookings-data-surface{overflow:hidden}
.panel-head{padding:20px 22px;margin:0;border-color:var(--border)}
.fleet-table-wrap{background:var(--surface);border-radius:0 0 var(--fl-radius-lg) var(--fl-radius-lg)}
.data-table{width:100%;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.data-table th{position:sticky;top:0;z-index:1;padding:13px 15px;font-size:.72rem;letter-spacing:.07em;text-transform:uppercase}
.data-table td{padding:15px;border-bottom:1px solid var(--border)}
.data-table td:not(:first-child),.data-table th:not(:first-child){text-align:right}
.data-table td:last-child,.data-table th:last-child{text-align:center}
.profit-value{font-weight:850;color:var(--positive)!important}
.profit-value.negative{color:var(--negative)!important}
html[data-appearance="dark"] .data-table td.profit-value.negative{color:var(--negative)!important}
.margin-pill,.status-pill,.signal{border:1px solid var(--border);font-weight:800}
.alert-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft)}
.alert-row>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--surface-strong);font-weight:900}
.alert-row.high>span{background:color-mix(in srgb,var(--negative) 17%,var(--surface));color:var(--negative)}
.alert-row.medium>span{background:color-mix(in srgb,var(--warning) 17%,var(--surface));color:var(--warning)}
.alert-row small{display:block;margin-top:2px;color:var(--text-secondary)}
.empty-state{min-height:0!important;padding:34px 22px!important;background:var(--surface-soft)!important;color:var(--text-primary)!important}
.empty-state>div{max-width:520px;margin:auto;text-align:center}
.empty-state p{margin:6px auto 14px;color:var(--text-secondary)}

/* Premium is layered, never a single giant navy slab. */
body[data-experience="premium"]{--fl-radius:18px;--fl-radius-lg:24px}
body[data-experience="premium"] .workspace{background:var(--background)!important}
body[data-experience="premium"] :is(.panel,.metric-card,.fleet-pulse-card,.vehicle-card,.trip-action-card){border:1px solid var(--border)!important;background-color:var(--surface)!important;box-shadow:0 14px 38px color-mix(in srgb,#000 12%,transparent)!important}
body[data-experience="premium"] :is(.mini-metric:first-child,.insight-card){background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 19%,var(--surface-elevated)),var(--surface))!important;color:var(--text-primary)!important;border-color:color-mix(in srgb,var(--accent) 28%,var(--border))!important}
body[data-experience="premium"] :is(.mini-metric:first-child,.insight-card) :is(h2,p,strong,span,.overline){color:inherit!important}
html[data-appearance="dark"] body[data-experience="premium"]{--background:#0b121b;--surface:#131d29;--surface-elevated:#192533;--surface-soft:#101923;--surface-strong:#223141;--border:#2b3b4c;--border-strong:#3b4e61;--text-primary:#f3f6fa;--text-secondary:#b8c4cf;--text-muted:#8f9daa;--accent:#75aaff;--accent-soft:#1b3150;--positive:#54d4aa;--negative:#ff8d92;--warning:#f4c56b;--information:#84b9ff}
html[data-appearance="dark"] body[data-experience="modern"]{--background:#0d151e;--surface:#15202b;--surface-elevated:#1a2734;--surface-soft:#111b25;--surface-strong:#223240;--border:#2b3d4c;--text-primary:#f1f5f8;--text-secondary:#b5c1cb;--accent:#65a8ff;--accent-soft:#173452}
html[data-appearance="dark"] body[data-experience="classic"]{--background:#101718;--surface:#182122;--surface-elevated:#1d2828;--surface-soft:#141d1e;--surface-strong:#253131;--border:#334140;--text-primary:#f2f6f4;--text-secondary:#bac5c1;--accent:#65cbb0;--accent-soft:#19382f}
html[data-appearance="dark"] :is(.experience-modern,.experience-premium) .workspace-header{background:color-mix(in srgb,var(--background) 92%,transparent)!important;border-color:var(--border)!important}
html[data-appearance="dark"] :is(.experience-command-trigger,.experience-profile-menu,.experience-command-palette>section,.experience-command-input,.experience-command-results button,.modern-revenue-panel,.modern-expense-panel){background:var(--surface-elevated)!important;color:var(--text-primary)!important;border-color:var(--border)!important}
html[data-appearance="dark"] :is(.experience-command-trigger strong,.experience-command-input input,.experience-command-results strong,.modern-revenue-list strong,.modern-expense-list strong){color:var(--text-primary)!important}
html[data-appearance="dark"] :is(.experience-command-trigger kbd,.experience-command-input kbd){background:var(--surface-strong)!important;color:var(--text-secondary)!important;border-color:var(--border)!important}
html[data-appearance="dark"] :is(.formula-note,.setup-launchpad,.setup-launchpad>summary,.setup-steps,.setup-step,.table-filters,.filter-bar,.bookings-data-surface,.fleet-table-wrap,.data-table,.data-table tbody,.data-table tr,.data-table td,.expense-group-rows,.expense-transaction-row,.maintenance-row,.loan-payment-row,.mileage-row,.annual-table-wrap,.annual-financial-table,.calendar-board,.calendar-content,.calendar-grid,.calendar-mini-month,.auth-form-pane,.auth-card,.account-panel,.account-panel-body,.modal){background-color:var(--surface)!important;background-image:none!important;color:var(--text-primary)!important;border-color:var(--border)!important}
html[data-appearance="dark"] :is(input,select,textarea,.password-field,.experience-command-input input){background:var(--surface-soft)!important;color:var(--text-primary)!important;border-color:var(--border-strong)!important}
html[data-appearance="dark"] :is(.data-table thead th,.annual-financial-table thead th){background:var(--surface-strong)!important;color:var(--text-secondary)!important}
html[data-appearance="dark"] :is(.data-table tbody tr:hover,.expense-transaction-row:hover,.booking-row:hover){background:var(--hover)!important}
html[data-appearance="dark"] .donut{box-shadow:inset 0 0 0 1px var(--border)}

@media(max-width:1100px){
  #overviewView>.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #overviewView>.overview-operations-grid{grid-template-columns:1fr 1fr}
  #overviewView>.overview-operations-grid .insight-card{grid-column:1/-1}
  .trip-action-grid{grid-template-columns:1fr}
}
@media(max-width:780px){
  .workspace-header{position:sticky;top:0;z-index:45}
  .experience-profile-control{display:block!important}
  .experience-command-trigger{width:42px;margin-left:auto;padding:0;justify-content:center}
  .experience-command-trigger strong,.experience-command-trigger kbd{display:none}
  .workspace-header>.header-actions .profile-button,.workspace-header>.header-actions>#signOutButton{display:none!important}
  .overview-welcome{padding:6px 0 0}
  .overview-welcome h2{font-size:1.55rem}
  .overview-welcome p{font-size:.9rem}
  #overviewView>.metric-grid{grid-template-columns:1fr 1fr;gap:10px}
  #overviewView>.metric-grid .metric-card{min-height:120px;padding:15px}
  #overviewView>.metric-grid .metric-card strong{font-size:1.55rem}
  #overviewView>.overview-operations-grid{grid-template-columns:1fr}
  #overviewView>.overview-operations-grid .insight-card{grid-column:auto}
  .trip-action-card{padding:14px!important}
  .trip-vehicle-identity .fleet-vehicle-image{width:92px;max-width:34%}
  .trip-handoff{grid-template-columns:1fr}
  .trip-checklists{grid-template-columns:1fr!important}
  .data-table th,.data-table td{padding:12px}
  .empty-state{padding:26px 16px!important}
  .alert-row{grid-template-columns:30px minmax(0,1fr)}
  .alert-row .secondary-button{grid-column:2;justify-self:start}
}
@media(max-width:430px){
  #overviewView>.metric-grid{grid-template-columns:1fr}
  #overviewView>.metric-grid .metric-card{min-height:105px}
  .experience-profile-menu{position:fixed!important;left:12px!important;right:12px!important;top:70px!important;width:auto!important;max-height:calc(100dvh - 92px);overflow:auto}
  .goal-summary{align-items:start;flex-direction:column;gap:5px}
}

/* Mobile reliability: shared by Classic, Modern and Premium. */
.experience-profile-backdrop{position:fixed;inset:0;z-index:10000;border:0;background:transparent}
.experience-profile-backdrop[hidden]{display:none}
@media(max-width:780px){
  :root{--mobile-nav-height:72px}
  html,body{width:100%;max-width:100%}
  body.experience-drawer-open,body.profile-menu-open{overflow:hidden;overscroll-behavior:none;touch-action:none}
  .app-shell:not([hidden]){display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
  .workspace{position:relative!important;left:0!important;transform:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0 14px calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 32px)!important}
  .view,.panel,.metric-card,.section-toolbar,.dashboard-grid,.vehicle-grid{min-width:0;max-width:100%}
  .workspace-header{position:sticky!important;top:0;z-index:45;display:grid!important;grid-template-columns:42px minmax(0,1fr) 40px 40px!important;grid-template-rows:auto auto;align-items:center;gap:8px;width:100%!important;max-width:100%;height:auto!important;min-height:0!important;margin:0 0 16px!important;padding:10px 0 11px!important;background:color-mix(in srgb,var(--background) 94%,transparent)!important;backdrop-filter:blur(16px)}
  .menu-button{display:grid!important;grid-column:1;grid-row:1;place-items:center;width:42px;height:42px;margin:0}
  .workspace-header>div:nth-of-type(1){grid-column:2;grid-row:1;min-width:0;margin:0!important}
  .workspace-header>div:nth-of-type(1)>p{display:none}
  #pageTitle{overflow:hidden;margin:0;font-size:20px;line-height:1.15;white-space:nowrap;text-overflow:ellipsis}
  .experience-command-trigger{grid-column:3;grid-row:1;display:grid!important;place-items:center;width:40px!important;height:40px;margin:0!important;padding:0!important}
  .experience-command-trigger strong,.experience-command-trigger kbd{display:none!important}
  .experience-profile-control{position:relative;grid-column:4;grid-row:1;display:block!important;z-index:151}
  #experienceProfileButton{width:40px!important;height:40px!important;border-radius:11px!important}
  .header-actions{grid-column:1/-1;grid-row:2;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px;width:100%!important;min-width:0;margin:0!important;padding:0!important}
  .header-actions .month-select,.header-actions .month-select select{width:100%!important;min-width:0;max-width:100%}
  .header-actions .sample-pill,.header-actions .subscription-badge,.header-actions .account-button,.header-actions>#signOutButton{display:none!important}
  .sidebar{position:fixed!important;z-index:10020!important;inset:0 auto 0 0!important;width:min(86vw,348px)!important;max-width:calc(100vw - 40px)!important;height:100vh!important;height:100dvh!important;padding:calc(12px + env(safe-area-inset-top)) 13px calc(12px + env(safe-area-inset-bottom))!important;overflow:hidden!important;transform:translate3d(-105%,0,0)!important;transition:transform .24s ease!important;box-shadow:22px 0 56px rgba(0,0,0,.38)!important}
  .sidebar.open{transform:translate3d(0,0,0)!important}
  .experience-drawer-backdrop{position:fixed!important;z-index:10010!important;inset:0!important;display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:rgba(4,11,20,.68);backdrop-filter:blur(3px)}
  .experience-drawer-backdrop[hidden]{display:none!important}
  .experience-drawer-head{display:flex!important;align-items:center;justify-content:space-between;min-height:42px;margin-bottom:7px;padding:0 5px 8px;border-bottom:1px solid rgba(255,255,255,.1)}
  #experienceDrawerClose{display:grid!important;place-items:center;width:38px;height:38px;border:1px solid rgba(255,255,255,.13);border-radius:11px;background:rgba(255,255,255,.07);color:#fff;font-size:25px}
  .sidebar .main-nav{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .main-nav :is([data-view="overview"],[data-view="bookings"],[data-view="vehicles"],[data-view="expenses"],[data-view="reports"],[data-view="profit"],[data-view="yearly"],[data-view="performance"],[data-view="decisions"],[data-view="safety"],[data-view="reconciliation"]){display:none!important}
  .sidebar-card,.sidebar>.profile{display:none!important}
  .experience-drawer-settings{display:grid!important;gap:3px;margin-top:auto;padding-top:9px;border-top:1px solid rgba(255,255,255,.1)}
  .experience-drawer-settings>*{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:#aab8c2;text-decoration:none;font:700 13px "DM Sans";text-align:left}
  .experience-drawer-settings>*:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
  .experience-drawer-settings>[hidden]{display:none!important}
  .experience-mobile-nav{display:grid!important;position:fixed!important;z-index:9000!important;left:10px!important;right:10px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:calc(100vw - 20px)!important;min-height:var(--mobile-nav-height);grid-template-columns:repeat(5,minmax(0,1fr));padding:7px!important;border:1px solid var(--border);border-radius:15px;background:color-mix(in srgb,var(--surface-elevated) 96%,transparent);box-shadow:0 14px 38px rgba(0,0,0,.24);backdrop-filter:blur(16px)}
  .experience-mobile-nav button{min-width:0;padding:7px 1px}
  .experience-mobile-nav small{font-size:10px;line-height:1.1}
  body.profile-menu-open .experience-mobile-nav{visibility:hidden;pointer-events:none}
  .experience-profile-backdrop{z-index:10030;background:rgba(4,11,20,.58);backdrop-filter:blur(3px)}
  .experience-profile-menu{position:fixed!important;z-index:10040!important;left:10px!important;right:10px!important;top:auto!important;bottom:max(10px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;max-height:min(78dvh,620px)!important;overflow-y:auto!important;overscroll-behavior:contain;padding:14px 14px calc(14px + env(safe-area-inset-bottom))!important;border-radius:20px 20px 16px 16px!important;-webkit-overflow-scrolling:touch;touch-action:pan-y}
  .experience-profile-menu :is(button,a){min-height:44px;pointer-events:auto}
  .overview-welcome{min-width:0;align-items:flex-start!important}
  .overview-welcome h2{max-width:100%;overflow-wrap:anywhere;line-height:1.15}
  img,.fleet-vehicle-image{max-width:100%}
}
@media(max-width:360px){
  .workspace{padding-left:10px!important;padding-right:10px!important}
  .workspace-header{grid-template-columns:40px minmax(0,1fr) 38px 38px!important;gap:5px}
  #pageTitle{font-size:18px}
}

/* Version 95 release-blocker repairs: top-layer account UI and token-native surfaces. */
.experience-profile-control{position:relative;z-index:151}
#experienceProfileButton{display:flex;align-items:center;justify-content:center;gap:4px;width:52px;height:44px;border-radius:14px;box-shadow:none}
.experience-profile-chevron{color:var(--text-muted);font-size:.72rem;line-height:1}
.experience-profile-menu{position:fixed!important;z-index:10001!important;right:auto!important;top:auto;width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--surface-elevated);color:var(--text-primary);box-shadow:0 28px 80px color-mix(in srgb,#000 42%,transparent)}
.experience-profile-menu :is(button,a){font-family:inherit}
.experience-profile-menu :is(button,a):focus-visible,#experienceProfileButton:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
body.profile-menu-open::before{content:"";position:fixed;inset:0;z-index:10000;background:transparent}

/* Shared section/card primitives never assume a white canvas. */
:is(.booking-list,.pricing-list,.expense-list,.modern-revenue-list,.modern-expense-list,.calendar-content,.calendar-grid,.calendar-weekdays,.calendar-year-grid,.calendar-mini-grid,.expense-group-rows,.annual-table-wrap,.fleet-table-wrap){color:var(--text-primary)}
:is(.booking-row,.upcoming-booking-row,.pricing-row,.pricing-detail-row,.pricing-signal-card,.expense-row,.expense-transaction-row,.maintenance-row,.loan-payment-row,.mileage-row,.account-detail-row,.profit-detail-row){background:var(--surface-soft);color:var(--text-primary);border-color:var(--border)}
:is(.booking-row,.expense-row,.pricing-row,.pricing-detail-row,.upcoming-booking-row) :is(strong,b){color:var(--text-primary)}
:is(.booking-row,.expense-row,.pricing-row,.pricing-detail-row,.upcoming-booking-row) :is(small,p,span:not(.status-pill):not(.signal)){color:var(--text-secondary)}
:is(.date-box,.vehicle-badge,.stat-pairs>div,.pricing-numbers>span,.pricing-signal-metrics>span,.calendar-booking-facts>div,.loan-result,.booking-mobile-result){background:var(--surface-strong);color:var(--text-primary);border-color:var(--border)}
.empty-state button,.secondary-button,.danger-outline-button{background:var(--surface-elevated)!important;color:var(--text-primary)!important;border-color:var(--border-strong)!important}
.text-link{color:var(--accent)!important}

/* Compact, image-led upcoming booking rows. */
#upcomingList.booking-list{display:grid;gap:2px;margin:0;padding:0 14px 14px}
.upcoming-booking-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:82px;padding:11px 8px;border:0;border-bottom:1px solid var(--border);background:transparent}
.upcoming-booking-row:last-child{border-bottom:0}
.upcoming-vehicle-image{width:72px;aspect-ratio:16/10;border-radius:11px;overflow:hidden}
.upcoming-booking-copy{display:grid;min-width:0;gap:2px}
.upcoming-booking-copy strong{font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upcoming-booking-copy span,.upcoming-booking-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upcoming-booking-copy span{font-size:.8rem;color:var(--text-secondary)}
.upcoming-booking-copy small{font-size:.72rem;color:var(--text-muted)}
.upcoming-booking-result{display:grid;justify-items:end;gap:7px;font-variant-numeric:tabular-nums}
.upcoming-booking-result>strong{font-size:.88rem}

/* Pricing intelligence uses compact native surfaces in both appearances. */
.pricing-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 20px 20px}
.pricing-signal-card{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:start;gap:11px;padding:15px;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft);box-shadow:none}
.pricing-vehicle-image{width:46px;aspect-ratio:4/3;border-radius:10px;overflow:hidden}
.pricing-signal-head{display:flex;align-items:start;justify-content:space-between;gap:8px;min-width:0}
.pricing-signal-head>div{display:grid;min-width:0;gap:2px}
.pricing-signal-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}
.pricing-signal-head small{color:var(--text-secondary);font-size:.7rem}
.pricing-signal-card>.pricing-signal-metrics,.pricing-signal-card>p{grid-column:1/-1}
.pricing-signal-metrics{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pricing-signal-metrics>span{display:grid;gap:3px;padding:8px;border:1px solid color-mix(in srgb,var(--border) 70%,transparent);border-radius:9px;background:var(--surface);color:var(--text-muted);font-size:.68rem}
.pricing-signal-metrics b{color:var(--text-primary);font-size:.78rem;font-variant-numeric:tabular-nums}
.pricing-signal-card>p{margin:0;color:var(--text-secondary);font-size:.74rem}

/* Calendar is fully appearance-native, including generated availability classes. */
.calendar-board{background:var(--surface);border-color:var(--border);box-shadow:var(--fl-shadow)}
.calendar-board-head{background:var(--surface-elevated);border-color:var(--border)}
.calendar-weekdays{background:var(--surface-strong);border-color:var(--border)}
.calendar-weekdays span{color:var(--text-secondary)}
.calendar-grid{background:var(--border);gap:1px}
.calendar-day{min-height:132px;background:var(--surface);border:0!important;color:var(--text-primary)}
.calendar-day.outside{background:var(--surface-soft);color:var(--text-muted);opacity:.72}
.calendar-day.open-day{background:color-mix(in srgb,var(--positive) 4%,var(--surface))}
.calendar-day.partially-booked{background:color-mix(in srgb,var(--information) 6%,var(--surface))}
.calendar-day.fully-booked{background:color-mix(in srgb,var(--information) 10%,var(--surface))}
.calendar-day.today{box-shadow:inset 0 0 0 2px var(--accent)}
.calendar-day-head small{background:var(--accent-soft);color:var(--accent)}
.calendar-day-number,.outside .calendar-day-number{color:inherit}
.calendar-event{min-height:27px;border:1px solid color-mix(in srgb,var(--information) 34%,var(--border));background:color-mix(in srgb,var(--information) 16%,var(--surface-elevated));color:var(--text-primary)}
.calendar-event.tone-1{background:color-mix(in srgb,var(--positive) 14%,var(--surface-elevated));border-color:color-mix(in srgb,var(--positive) 34%,var(--border))}
.calendar-event.tone-2{background:color-mix(in srgb,var(--warning) 14%,var(--surface-elevated));border-color:color-mix(in srgb,var(--warning) 34%,var(--border))}
.calendar-event.tone-3{background:color-mix(in srgb,var(--negative) 12%,var(--surface-elevated));border-color:color-mix(in srgb,var(--negative) 28%,var(--border))}
.calendar-event:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
.calendar-event b{flex:0 0 auto;font-size:.67rem}
.calendar-event span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calendar-availability{margin-top:auto;color:var(--text-muted)!important;font-size:.65rem}
.calendar-more{color:var(--accent);font-weight:800}
.calendar-mini-month,.calendar-mini-month :is(button,span,i){background-color:var(--surface);color:var(--text-primary);border-color:var(--border)}
.calendar-mini-month .open-day{background:color-mix(in srgb,var(--positive) 12%,var(--surface-strong))}
.calendar-mini-month .partially-booked,.calendar-mini-month .fully-booked{background:color-mix(in srgb,var(--information) 20%,var(--surface-strong))}
.calendar-legend{color:var(--text-secondary)}
.legend-open{background:var(--surface)!important;border-color:var(--border-strong)!important}
.legend-booked{background:color-mix(in srgb,var(--information) 22%,var(--surface))!important;border-color:color-mix(in srgb,var(--information) 48%,var(--border))!important}
.legend-partial{background:color-mix(in srgb,var(--warning) 18%,var(--surface))!important;border-color:color-mix(in srgb,var(--warning) 48%,var(--border))!important}
.legend-service{background:color-mix(in srgb,var(--positive) 18%,var(--surface))!important;border-color:color-mix(in srgb,var(--positive) 48%,var(--border))!important}

/* Inputs, dropdowns, dialogs and old high-specificity cards all consume tokens. */
:is(.month-select select,.table-filters select,.table-filters input,.calendar-filter select,.calculator-form input,.calculator-form select,.entry-form input,.entry-form select,.entry-form textarea,.password-field,.auth-card input){background:var(--surface-soft)!important;color:var(--text-primary)!important;border-color:var(--border-strong)!important}
:is(input,select,textarea)::placeholder{color:var(--text-muted)!important;opacity:1}
:is(input,select,textarea,button,a):focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.account-support-card,.account-danger-card,.setup-launchpad>summary,.setup-step,.profile-photo-editor,.account-plan-details{background:var(--surface)!important;color:var(--text-primary)!important;border-color:var(--border)!important}
.account-plan-card{background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 15%,var(--surface-elevated)),var(--surface))!important;color:var(--text-primary)!important;border-color:var(--border)!important}
.account-plan-card :is(h3,p,.account-plan-benefits){color:var(--text-primary)!important}
.modal,.account-panel,.calendar-booking-modal{background:var(--surface-elevated)!important;color:var(--text-primary)!important;border:1px solid var(--border)}
.modal-backdrop{background:var(--overlay)}
.menu-button,.account-button,.account-panel-close,.mapping-grid select,.expense-filter select,.profit-vehicle-filter select{background:var(--surface-elevated)!important;color:var(--text-primary)!important;border-color:var(--border-strong)!important}
:is(.mini-metric,.vehicle-card,.decision-card,.mileage-card,.breakeven-card,.loan-card,.report-card,.maintenance-card,.profit-month-card,.trip-action-card,.reconciliation-card,.vehicle-decision-card,.calendar-row,.account-identity,.admin-stat,.admin-loading-card,.vehicle-profile-section){background:var(--surface)!important;color:var(--text-primary)!important;border-color:var(--border)!important}
.donut:after{background:var(--surface)!important}
.auth-tabs button.active{background:var(--surface-elevated)!important;color:var(--text-primary)!important}
.signal.hold,.setup-step[data-status="attention"],.setup-step[data-status="attention"] .setup-state,.admin-status.past_due,.admin-status.unpaid{background:color-mix(in srgb,var(--warning) 16%,var(--surface))!important;color:var(--warning)!important;border-color:color-mix(in srgb,var(--warning) 36%,var(--border))!important}
.danger-outline-button{background:var(--surface-elevated)!important;color:var(--negative)!important;border-color:color-mix(in srgb,var(--negative) 55%,var(--border))!important}
.admin-loading-card.error,.account-danger-card{background:color-mix(in srgb,var(--negative) 6%,var(--surface))!important}

/* Quieter premium hierarchy: fewer outlines and no page-wide dark slabs. */
body[data-experience="premium"] :is(.panel,.metric-card,.fleet-pulse-card,.vehicle-card,.trip-action-card,.maintenance-vehicle-card,.annual-trend-panel,.annual-month-panel,.annual-vehicle-panel){border-color:color-mix(in srgb,var(--border) 72%,transparent)!important;box-shadow:0 12px 30px color-mix(in srgb,#000 10%,transparent)!important}
body[data-experience="premium"] :is(.dashboard-grid,.lower-grid,.overview-operations-grid,.maintenance-grid,.annual-dashboard,.expense-dashboard){background:transparent!important;border:0!important;box-shadow:none!important}

@media(max-width:980px){
  .pricing-list{grid-template-columns:1fr}
}
@media(max-width:780px){
  body.profile-menu-open{overflow:hidden}
  body.profile-menu-open::before{background:var(--overlay);backdrop-filter:blur(4px)}
  .experience-profile-menu{left:12px!important;right:12px!important;top:auto!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:auto!important;max-height:min(82dvh,680px);border-radius:22px;padding:16px}
  .experience-profile-menu::before{content:"Account";display:block;padding:2px 4px 8px;color:var(--text-primary);font:800 1rem Manrope,sans-serif}
  .upcoming-booking-row{grid-template-columns:64px minmax(0,1fr);gap:11px}
  .upcoming-vehicle-image{width:64px}
  .upcoming-booking-result{grid-column:2;display:flex;align-items:center;justify-content:space-between;width:100%}
  .calendar-board{overflow:auto;overscroll-behavior-x:contain}
  .calendar-day{min-height:116px;padding:7px}
}
@media(max-width:430px){
  #experienceProfileButton{width:46px}
  .experience-profile-chevron{display:none}
  .pricing-signal-metrics{grid-template-columns:1fr}
}

/* Version 96 dark-mode correction pass: shared semantic surfaces only. */
body {
  --bg-app:var(--background);
  --bg-section:var(--surface-soft);
  --bg-card:var(--surface);
  --bg-elevated:var(--surface-elevated);
  --bg-interactive:var(--surface-strong);
  --border-subtle:var(--border);
}

/* Legacy metric groups now share one appearance-aware primitive. */
:is(
  .mileage-stats>div,
  .decision-facts>div,
  .reconciliation-numbers>div,
  .trip-handoff>div,
  .scenario-results>article,
  .stat-pairs>div,
  .pricing-numbers>span,
  .pricing-signal-metrics>span,
  .calendar-booking-facts>div,
  .loan-result,
  .booking-mobile-result
) {
  background:var(--bg-elevated)!important;
  color:var(--text-primary)!important;
  border:1px solid var(--border-subtle)!important;
  box-shadow:none!important;
}
:is(
  .mileage-stats>div,
  .decision-facts>div,
  .reconciliation-numbers>div,
  .trip-handoff>div,
  .scenario-results>article,
  .pricing-numbers>span,
  .pricing-signal-metrics>span
) span { color:var(--text-secondary)!important; }
:is(
  .mileage-stats>div,
  .decision-facts>div,
  .reconciliation-numbers>div,
  .trip-handoff>div,
  .scenario-results>article,
  .pricing-numbers>span,
  .pricing-signal-metrics>span
) strong { color:var(--text-primary); }
.reconciliation-detail span {
  background:var(--bg-interactive)!important;
  color:var(--text-secondary)!important;
  border:1px solid var(--border-subtle);
}
.mileage-booking-ref {
  border-color:var(--border-subtle)!important;
  color:var(--text-primary);
}
.mileage-booking-ref :is(span,small) { color:var(--text-secondary)!important; }
.sold-vehicle-card { opacity:1!important; }
.sold-vehicle-card .decision-hero,
.sold-vehicle-card .decision-facts>div { color:var(--text-primary); }
.sold-vehicle-card .signal { opacity:1; }

/* Remaining report, expense, maintenance and overview sub-surfaces inherit the same layers. */
:is(
  .annual-highlights article,
  .annual-month-card,
  .annual-vehicle-metrics>div,
  .annual-detail-table,
  .annual-detail-table summary,
  .annual-mobile-month>div>span,
  .expense-vehicle-primary,
  .expense-transaction-group>summary,
  .expense-allocation-context span,
  .metric-icon,
  .maintenance-stat,
  .profit-detail-row,
  .account-detail-row
) {
  background:var(--bg-elevated)!important;
  color:var(--text-primary)!important;
  border-color:var(--border-subtle)!important;
}
:is(
  .annual-highlights article,
  .annual-month-card,
  .annual-vehicle-metrics>div,
  .annual-mobile-month>div>span,
  .expense-vehicle-primary,
  .expense-transaction-group>summary,
  .expense-allocation-context span
) :is(span,small,p) { color:var(--text-secondary)!important; }
.annual-contribution>i,
.goal-track,
.progress-track { background:var(--bg-interactive)!important; }
.donut:after { background:var(--bg-card)!important; }
.chart:before,.chart:after { border-color:var(--chart-grid)!important; }

/* Turo setup uses the same layered surfaces in every experience and appearance. */
.setup-launchpad {
  background:var(--bg-card)!important;
  background-image:none!important;
  color:var(--text-primary)!important;
  border-color:var(--border-subtle)!important;
}
.setup-launchpad>summary,
.setup-launchpad .setup-steps { background:var(--bg-card)!important; color:var(--text-primary)!important; }
.setup-launchpad .setup-intro :is(h2,.overline),
.setup-launchpad .setup-toggle { color:var(--text-primary)!important; }
.setup-launchpad .setup-intro .overline,
.setup-launchpad .setup-toggle { color:var(--accent)!important; }
.setup-launchpad .setup-intro p,
.setup-launchpad .setup-step small { color:var(--text-secondary)!important; }
.setup-launchpad .setup-step {
  background:var(--bg-elevated)!important;
  color:var(--text-primary)!important;
  border-color:var(--border-subtle)!important;
}
.setup-launchpad .setup-step strong { color:var(--text-primary)!important; }
.setup-launchpad .setup-number {
  background:var(--selected)!important;
  color:var(--accent)!important;
}
.setup-launchpad .setup-state {
  background:var(--bg-interactive)!important;
  color:var(--text-secondary)!important;
  border:1px solid var(--border-subtle);
}
.setup-launchpad .setup-step[data-status="complete"] {
  background:color-mix(in srgb,var(--positive) 7%,var(--bg-elevated))!important;
  border-color:color-mix(in srgb,var(--positive) 30%,var(--border-subtle))!important;
}
.setup-launchpad .setup-step[data-status="complete"] .setup-state {
  background:color-mix(in srgb,var(--positive) 14%,var(--bg-elevated))!important;
  color:var(--positive)!important;
}
.setup-launchpad .setup-step .secondary-button {
  background:var(--bg-interactive)!important;
  color:var(--text-primary)!important;
  border-color:var(--border-strong)!important;
}

/* Upcoming bookings stay compact and readable without image collisions. */
#upcomingList.booking-list { background:transparent!important; }
.upcoming-booking-row {
  grid-template-columns:80px minmax(0,1fr) minmax(82px,auto);
  min-height:78px;
  gap:12px;
  padding:10px 4px;
  background:transparent!important;
}
.upcoming-vehicle-image { width:80px;aspect-ratio:16/10;align-self:center; }
.upcoming-booking-copy { min-width:0;overflow:hidden; }
.upcoming-booking-copy strong { color:var(--text-primary)!important;font-size:.92rem; }
.upcoming-booking-copy span { color:var(--text-secondary)!important; }
.upcoming-booking-copy small { color:var(--text-muted)!important; }
.upcoming-booking-result { min-width:82px;align-self:center; }
.upcoming-booking-result>strong { color:var(--text-primary)!important; }

/* Native text and interaction colors across reusable rows and cards. */
:is(
  .reconciliation-card,
  .mileage-card,
  .vehicle-decision-card,
  .pricing-signal-card,
  .setup-step,
  .upcoming-booking-row
) :is(h2,h3,h4,strong,b) { color:var(--text-primary); }
:is(
  .reconciliation-card,
  .mileage-card,
  .vehicle-decision-card,
  .pricing-signal-card,
  .setup-step,
  .upcoming-booking-row
) :is(p,small) { color:var(--text-secondary); }

/* The sheet and backdrop are separate opaque layers; Safari must not blend them. */
.experience-profile-backdrop {
  z-index:10030!important;
  opacity:1!important;
  filter:none!important;
}
.experience-profile-menu {
  z-index:10040!important;
  isolation:isolate;
  opacity:1!important;
  filter:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  mix-blend-mode:normal!important;
  background-color:var(--bg-elevated)!important;
  background-image:none!important;
  color:var(--text-primary)!important;
}
.experience-profile-menu::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  background:var(--bg-elevated);
  pointer-events:none;
}
.experience-profile-menu :is(.experience-profile-identity,.experience-menu-group) { opacity:1;color:var(--text-primary); }
.experience-profile-menu :is(a,button) {
  opacity:1;
  color:var(--text-primary)!important;
}
.experience-profile-menu .experience-menu-options button {
  background:var(--bg-card)!important;
  color:var(--text-secondary)!important;
  border-color:var(--border-subtle)!important;
}
.experience-profile-menu .experience-menu-options button.active {
  background:var(--selected)!important;
  color:var(--text-primary)!important;
  border-color:var(--accent)!important;
}

@media(max-width:780px) {
  body.profile-menu-open::before { display:none!important; }
  .experience-profile-backdrop {
    display:block;
    background:var(--overlay)!important;
    -webkit-backdrop-filter:blur(3px);
    backdrop-filter:blur(3px);
  }
  .experience-profile-backdrop[hidden] { display:none!important; }
  .experience-profile-menu {
    left:10px!important;
    right:10px!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    max-height:min(78dvh,620px)!important;
    overflow-y:auto!important;
    transform:translate3d(0,0,0)!important;
    will-change:transform;
    box-shadow:0 26px 72px rgba(0,0,0,.46)!important;
  }
  body.profile-menu-open .experience-mobile-nav { visibility:hidden!important;pointer-events:none!important; }
  .upcoming-booking-row { grid-template-columns:72px minmax(0,1fr);min-height:76px; }
  .upcoming-vehicle-image { width:72px; }
  .upcoming-booking-result { grid-column:2;min-width:0; }
  :is(.reconciliation-numbers,.mileage-stats,.decision-facts) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media(max-width:430px) {
  .experience-profile-menu { left:8px!important;right:8px!important; }
  :is(.reconciliation-numbers,.mileage-stats,.decision-facts) { grid-template-columns:1fr; }
}

/* Version 97: Modern Dark vehicle imagery uses a native dark frame. */
html[data-appearance="dark"] body[data-experience="modern"] .fleet-vehicle-image {
  background:var(--surface-strong)!important;
  background-image:none!important;
  border:1px solid color-mix(in srgb,var(--border-strong) 78%,transparent)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text-primary) 3%,transparent);
}
html[data-appearance="dark"] body[data-experience="modern"] .fleet-vehicle-image>img {
  padding:0!important;
  object-fit:cover!important;
  object-position:var(--vehicle-image-position,50% 50%)!important;
  background:transparent!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}
html[data-appearance="dark"] body[data-experience="modern"] .fleet-vehicle-image>.vehicle-image-fallback {
  background:linear-gradient(145deg,var(--surface-strong),var(--surface-elevated))!important;
  color:var(--text-primary)!important;
}

/* Version 99: Modern quality pass — semantic layers, dashboard hierarchy, and responsive revenue rows. */
body[data-experience="modern"] {
  --modern-app:var(--background);
  --modern-section:var(--surface);
  --modern-card:var(--surface-elevated);
  --modern-interactive:var(--surface-strong);
}
body[data-experience="modern"] .workspace {
  padding-inline:clamp(24px,3vw,44px)!important;
  background:var(--modern-app)!important;
}
body[data-experience="modern"] .workspace-header {
  margin-inline:0;
  padding-inline:2px;
}
body[data-experience="modern"] #overviewView>.metric-grid { order:1; }
body[data-experience="modern"] #modernOverviewExtension { order:2;margin:0; }
body[data-experience="modern"] #overviewView>.dashboard-grid:not(.overview-operations-grid) { order:3; }
body[data-experience="modern"] #overviewView>.overview-operations-grid { order:4; }
body[data-experience="modern"] #overviewView>.fleet-pulse { order:5; }
body[data-experience="modern"] #overviewView>.overview-alerts-panel { order:6; }
body[data-experience="modern"] #overviewView>.formula-note { order:7; }
body[data-experience="modern"] #overviewView>.setup-launchpad { order:-2; }
body[data-experience="modern"] #overviewView>.metric-grid .metric-card {
  display:grid;
  grid-template-rows:auto 1fr auto;
  min-height:142px;
  padding:20px;
  background:var(--modern-card)!important;
}
body[data-experience="modern"] #overviewView>.metric-grid .metric-card small { align-self:end; }
body[data-experience="modern"] :is(.panel,.modern-revenue-panel,.modern-expense-panel,.fleet-pulse-card,.vehicle-card) {
  background:var(--modern-section)!important;
  color:var(--text-primary)!important;
  border:1px solid var(--border)!important;
}
body[data-experience="modern"] :is(.panel,.modern-revenue-panel,.modern-expense-panel) :is(h2,h3,strong,b,dd) { color:var(--text-primary); }
body[data-experience="modern"] :is(.panel,.modern-revenue-panel,.modern-expense-panel) :is(p,small,dt) { color:var(--text-secondary); }
body[data-experience="modern"] .modern-side-stack-wide {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  align-items:start;
  gap:16px;
}
body[data-experience="modern"] .modern-revenue-panel,
body[data-experience="modern"] .modern-expense-panel { padding:22px;border-radius:18px;box-shadow:var(--fl-shadow); }
body[data-experience="modern"] .modern-revenue-list { display:grid;gap:0; }
body[data-experience="modern"] .modern-revenue-row {
  display:grid;
  grid-template-columns:minmax(220px,1.2fr) minmax(170px,.8fr);
  gap:12px 20px;
  padding:16px 0;
  border-top:1px solid var(--border);
}
body[data-experience="modern"] .modern-revenue-row:first-child { padding-top:0;border-top:0; }
body[data-experience="modern"] .modern-revenue-identity { display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:center;min-width:0; }
body[data-experience="modern"] .modern-revenue-identity .fleet-vehicle-image { width:52px;aspect-ratio:1;border-radius:13px; }
body[data-experience="modern"] .modern-revenue-identity>span { min-width:0; }
body[data-experience="modern"] .modern-revenue-identity strong,
body[data-experience="modern"] .modern-revenue-identity small { display:block;overflow-wrap:anywhere; }
body[data-experience="modern"] .modern-revenue-identity strong { font-size:.9rem;line-height:1.3; }
body[data-experience="modern"] .modern-revenue-identity small { margin-top:3px;font-size:.76rem; }
body[data-experience="modern"] .modern-revenue-values { display:grid;gap:5px;margin:0; }
body[data-experience="modern"] .modern-revenue-values>div { display:flex;align-items:baseline;justify-content:space-between;gap:12px; }
body[data-experience="modern"] .modern-revenue-values dt { font-size:.75rem; }
body[data-experience="modern"] .modern-revenue-values dd { margin:0;font-size:.84rem;font-weight:850;font-variant-numeric:tabular-nums; }
body[data-experience="modern"] .modern-revenue-bar { grid-column:1/-1;height:8px;overflow:hidden;border-radius:999px;background:var(--modern-interactive); }
body[data-experience="modern"] .modern-revenue-bar i { display:block;width:var(--bar);height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 58%,var(--positive))); }
body[data-experience="modern"] .modern-expense-panel.is-empty { min-height:0; }
body[data-experience="modern"] .modern-compact-empty { display:flex;align-items:center;justify-content:space-between;gap:14px;padding:4px 0 2px; }
body[data-experience="modern"] .modern-compact-empty p { margin:0; }
body[data-experience="modern"] .modern-compact-empty .secondary-button { flex:none; }
body[data-experience="modern"] .sidebar .nav-item { color:#9eacb4; }
body[data-experience="modern"] .sidebar .nav-item:hover { background:#16242b;color:#edf4f7; }
body[data-experience="modern"] .sidebar .nav-item.active { background:#3182f6;color:#f8fbff;box-shadow:0 8px 20px rgba(49,130,246,.2); }
body[data-experience="modern"] .sidebar .nav-item .nav-count { background:#293842;color:#e8eef2; }
html[data-appearance="dark"] body[data-experience="modern"] {
  --text-muted:#94a4b1;
  --border-strong:#405466;
  --hover:#20303e;
  --selected:#1a3858;
}
html[data-appearance="dark"] body[data-experience="modern"] :is(.section-toolbar p,.panel-head p,.overline,.mini-label,.chart-label,.legend,.empty-state p,.experience-empty) { color:var(--text-secondary)!important; }
html[data-appearance="dark"] body[data-experience="modern"] :is(.modal,.account-panel,.experience-profile-menu,.experience-command-palette>section) { background:var(--modern-card)!important;border-color:var(--border)!important; }
html[data-appearance="dark"] body[data-experience="modern"] :is(.data-table tbody tr,.expense-transaction-row,.booking-row,.reconciliation-card,.mileage-card,.vehicle-decision-card,.pricing-signal-card) { background:var(--modern-section)!important; }
html[data-appearance="dark"] body[data-experience="modern"] :is(input,select,textarea,button.secondary-button,.experience-menu-options button) { background-color:var(--modern-interactive)!important;color:var(--text-primary)!important;border-color:var(--border-strong)!important; }

@media(max-width:1050px) {
  body[data-experience="modern"] .modern-side-stack-wide { grid-template-columns:1fr; }
  body[data-experience="modern"] .modern-expense-panel.is-empty { max-width:none; }
}
@media(max-width:780px) {
  body[data-experience="modern"] .workspace { padding-inline:14px!important; }
  body[data-experience="modern"] .workspace-header { padding-inline:0; }
  body[data-experience="modern"] .modern-overview-extension,
  body[data-experience="modern"] .modern-side-stack-wide { min-width:0;width:100%; }
  body[data-experience="modern"] .modern-revenue-panel,
  body[data-experience="modern"] .modern-expense-panel { min-width:0;padding:17px; }
  body[data-experience="modern"] .modern-revenue-row { grid-template-columns:1fr;gap:10px;padding:15px 0; }
  body[data-experience="modern"] .modern-revenue-bar { grid-column:1; }
  body[data-experience="modern"] .modern-compact-empty { align-items:flex-start;flex-direction:column; }
  body[data-experience="modern"] #overviewView>.metric-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible; }
  body[data-experience="modern"] #overviewView>.metric-grid .metric-card { width:100%;min-width:0;min-height:126px; }
}
@media(max-width:430px) {
  body[data-experience="modern"] #overviewView>.metric-grid { grid-template-columns:1fr; }
  body[data-experience="modern"] #overviewView>.metric-grid .metric-card { min-height:112px; }
  body[data-experience="modern"] .modern-revenue-identity { grid-template-columns:46px minmax(0,1fr); }
  body[data-experience="modern"] .modern-revenue-identity .fleet-vehicle-image { width:46px; }
}

/* Wave 8: Calendar dialog must sit above sticky header and mobile navigation. */
#calendarBookingModal { z-index:10050; }
#calendarBookingModal .calendar-booking-modal { padding-top:72px; }
#calendarBookingClose {
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  padding:0;
  display:grid;
  place-items:center;
  line-height:1;
  border-radius:10px;
}
#calendarBookingClose:focus-visible {
  outline:2px solid var(--text-primary);
  outline-offset:2px;
}

/* FleetDV v100 — canonical semantic theme architecture.
   Experiences supply values; shared components consume the same contract. */
:root,
body[data-experience="classic"] {
  --app-bg:#f4f7f5;--section-bg:#ffffff;--card-bg:#ffffff;--card-elevated-bg:#f5f8f6;--metric-bg:#eef3f0;--interactive-bg:#ffffff;
  --text-primary:#16201d;--text-secondary:#50605a;--text-muted:#6d7b76;--text-disabled:#9ca6a2;
  --border-subtle:#e4eae7;--border-default:#d5ded9;--accent:#197457;--positive:#167456;--negative:#bd3d3d;--warning:#986a12;--info:#326ca8;
  --count-badge-bg:#303b37;--count-badge-text:#f7faf8;
  --theme-shadow:0 8px 24px rgba(24,45,37,.07);
}
body[data-experience="modern"] {
  --app-bg:#f3f7fb;--section-bg:#ffffff;--card-bg:#ffffff;--card-elevated-bg:#f5f8fc;--metric-bg:#edf3f9;--interactive-bg:#ffffff;
  --text-primary:#142334;--text-secondary:#506477;--text-muted:#708194;--text-disabled:#9ba8b5;
  --border-subtle:#e4ebf2;--border-default:#d6e0ea;--accent:#2c7be5;--positive:#1e8564;--negative:#c74747;--warning:#a16b0d;--info:#3279ca;
  --theme-shadow:0 10px 28px rgba(27,54,82,.08);
}
body[data-experience="premium"] {
  --app-bg:#f3f6fb;--section-bg:#ffffff;--card-bg:#ffffff;--card-elevated-bg:#f5f7fc;--metric-bg:#edf2fa;--interactive-bg:#ffffff;
  --text-primary:#12233a;--text-secondary:#4d617a;--text-muted:#6e8097;--text-disabled:#9aa7b7;
  --border-subtle:#e2e8f1;--border-default:#d2dce8;--accent:#246fe8;--positive:#178066;--negative:#c3414b;--warning:#9b6911;--info:#286fc5;
  --count-badge-bg:#293842;--count-badge-text:#f4f8fc;
  --theme-shadow:0 14px 34px rgba(20,45,80,.09);
}
html[data-appearance="dark"] body[data-experience="classic"] {
  --app-bg:#0d1512;--section-bg:#141f1b;--card-bg:#182520;--card-elevated-bg:#1e2d27;--metric-bg:#22332c;--interactive-bg:#1b2a24;
  --text-primary:#f1f6f3;--text-secondary:#c2cec8;--text-muted:#9fafaa;--text-disabled:#72807a;
  --border-subtle:#26362f;--border-default:#34483f;--accent:#52c99c;--positive:#4fcca0;--negative:#ff8585;--warning:#e4b75d;--info:#7db5ee;
  --count-badge-bg:#d9e7e0;--count-badge-text:#17231e;
  --theme-shadow:0 12px 30px rgba(0,0,0,.24);
}
html[data-appearance="dark"] body[data-experience="modern"] {
  --app-bg:#101820;--section-bg:#16222c;--card-bg:#1a2834;--card-elevated-bg:#20313f;--metric-bg:#243846;--interactive-bg:#1e303d;
  --text-primary:#f3f7fa;--text-secondary:#c4d0d9;--text-muted:#9babb7;--text-disabled:#71828e;
  --border-subtle:#293b49;--border-default:#3a5163;--accent:#64a6ff;--positive:#58cda7;--negative:#ff8c91;--warning:#e7bb63;--info:#82b9f2;
  --theme-shadow:0 14px 32px rgba(0,0,0,.25);
}
html[data-appearance="dark"] body[data-experience="premium"] {
  --app-bg:#09111d;--section-bg:#111c2b;--card-bg:#162338;--card-elevated-bg:#1b2b43;--metric-bg:#20334d;--interactive-bg:#192941;
  --text-primary:#f4f7fc;--text-secondary:#c5d0df;--text-muted:#9daec2;--text-disabled:#71839a;
  --border-subtle:#23344b;--border-default:#344a67;--accent:#78aaff;--positive:#5ad1aa;--negative:#ff8d98;--warning:#e9bd69;--info:#83b7f3;
  --count-badge-bg:#dbe7f7;--count-badge-text:#13243a;
  --theme-shadow:0 16px 38px rgba(0,0,0,.3);
}

body {
  background:var(--app-bg)!important;color:var(--text-primary);
  --background:var(--app-bg);--surface:var(--card-bg);--surface-soft:var(--section-bg);--surface-elevated:var(--card-elevated-bg);--surface-strong:var(--metric-bg);
  --ink:var(--text-primary);--text:var(--text-primary);--muted:var(--text-muted);--line:var(--border-default);--border:var(--border-default);
  --green:var(--accent);--red:var(--negative);--information:var(--info);--shadow:var(--theme-shadow);--fl-shadow:var(--theme-shadow);
}
.app-shell,.workspace,.author-footer{background:var(--app-bg)!important;color:var(--text-primary)}

/* Shared surfaces */
:is(.panel,.metric-card,.mini-metric,.feature-panel,.fleet-panel,.vehicle-card,.fleet-pulse-card,.trip-action-card,.booking-mobile-card,.bookings-data-surface,.expense-vehicle-card,.vehicle-expense-panel,.expense-category-panel,.expense-transactions-panel,.maintenance-card,.maintenance-vehicle-card,.goal-card,.report-card,.loan-card,.mileage-card,.decision-card,.vehicle-decision-card,.annual-kpi-card,.annual-month-card,.annual-highlight-card,.annual-trend-panel,.annual-month-panel,.annual-vehicle-panel,.annual-vehicle-card,.annual-detail-table,.breakdown-panel,.calculator-panel,.reconciliation-card,.breakeven-card,.sidebar-card,.calendar-board,.calendar-mini-month,.account-identity,.account-profile-card,.account-appearance-card,.account-plan-card,.account-support-card,.account-danger-card,.vehicle-profile,.vehicle-profile-section,.setup-launchpad,.setup-step,.auth-card,.loading-card,.modal,.pro-upgrade-modal,.calendar-booking-modal,.admin-stat,.admin-loading-card) {
  background:var(--card-bg)!important;background-image:none!important;color:var(--text-primary)!important;border-color:var(--border-default)!important;box-shadow:var(--theme-shadow);
}
:is(.vehicle-card-facts>div,.expense-metric,.expense-vehicle-metrics>div,.maintenance-summary-grid>div,.loan-facts>div,.break-stats>div,.stat-pairs>div,.pricing-numbers,.pricing-signal-metrics>span,.calendar-booking-facts>div,.annual-vehicle-metrics>div,.report-card,.mini-metric) {
  background:var(--metric-bg)!important;background-image:none!important;color:var(--text-primary)!important;border:1px solid var(--border-subtle)!important;
}
:is(.annual-highlights article,.annual-mobile-month>div>span,.reset-data-safe-note,.expense-transaction-group>summary,.global-period-selectors){background:var(--card-elevated-bg)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important}
:is(h1,h2,h3,h4,h5,strong,b,dd,.metric-value,.profit-value,.service-event-cost,.calendar-day-number,.data-table td) { color:var(--text-primary); }
:is(p,small,dt,.metric-label,.section-toolbar p,.panel-head p,.service-event-meta,.calendar-availability,.empty-state p) { color:var(--text-secondary); }
:is(.overline,.mini-label,.chart-label,.legend,.data-table th,.annual-financial-table th) { color:var(--text-muted); }

/* Inputs, menus, modals, tables and charts */
:is(input,select,textarea,.secondary-button,.more-button,.experience-menu-options button,.calendar-filter select,.profit-vehicle-filter select,.mobile-period-button,.experience-options button,.experience-command-trigger) {
  background:var(--interactive-bg)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important;
}
:is(input,textarea)::placeholder{color:var(--text-muted)!important;opacity:1}
:is(input,select,textarea,button,a):focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 48%,transparent);outline-offset:2px}
:is(.modal,.account-panel,.experience-profile-menu,.experience-command-palette>section){background:var(--card-bg)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important;opacity:1!important;backdrop-filter:none!important}
:is(.data-table,.annual-financial-table,.fleet-table-wrap,.annual-table-wrap){background:var(--card-bg)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
:is(.data-table thead,.annual-financial-table thead){background:var(--card-elevated-bg)!important}
:is(.data-table tr,.annual-financial-table tr,.loan-payment-row,.expense-transaction-row,.service-event){border-color:var(--border-subtle)!important}
:is(.data-table tbody tr,.annual-financial-table tbody tr):hover{background:var(--card-elevated-bg)!important}
:is(.chart-surface,.chart-wrap,.annual-chart,.trend-chart){background:var(--card-bg)!important;color:var(--text-primary)!important}
:is(.chart-grid line,.gridline){stroke:var(--border-subtle)!important}
:is(.chart-axis text,.chart-label,.chart-legend){fill:var(--text-muted)!important;color:var(--text-muted)!important}
:is(.chart-tooltip,.tooltip){background:var(--card-elevated-bg)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
.positive{color:var(--positive)!important}.negative{color:var(--negative)!important}

/* Vehicle imagery is bounded by variant and can never cover adjacent content. */
.fleet-vehicle-image{position:relative;display:block;overflow:hidden;max-width:100%;flex:none}
.fleet-vehicle-image img{display:block;width:100%;height:100%;object-fit:cover}
.fleet-vehicle-image--hero{width:100%;aspect-ratio:16/9}.fleet-vehicle-image--card{width:100%;aspect-ratio:16/9}
.fleet-vehicle-image--thumbnail{width:88px!important;min-width:88px;max-width:88px;aspect-ratio:4/3}
.fleet-vehicle-image--compact{width:64px!important;min-width:64px;max-width:64px;aspect-ratio:1}

/* Overview bookings: structural columns prevent image/text collision. */
.upcoming-booking-row{display:grid!important;grid-template-columns:88px minmax(0,1fr) minmax(96px,auto)!important;align-items:center;gap:14px;min-width:0;padding:12px 8px!important}
.upcoming-booking-row>.upcoming-vehicle-image{grid-column:1;position:relative!important;inset:auto!important;width:88px!important;height:66px!important;min-width:88px;max-width:88px}
.upcoming-booking-copy{grid-column:2;min-width:0;display:grid;gap:3px}
.upcoming-booking-copy :is(strong,span,small){display:block;min-width:0;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;color:var(--text-primary)}
.upcoming-booking-copy small{color:var(--text-secondary)}
.upcoming-booking-result{grid-column:3;display:grid;justify-items:end;gap:6px;min-width:90px}

/* Pricing recommendations use useful width, never three squeezed columns. */
.pricing-list{display:grid!important;grid-template-columns:repeat(2,minmax(320px,1fr))!important;gap:14px!important}
.pricing-signal-card{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:12px 14px!important;padding:16px!important;background:var(--card-bg)!important;border:1px solid var(--border-default)!important;border-radius:14px}
.pricing-signal-card>.pricing-vehicle-image{grid-column:1;grid-row:1;width:64px!important;height:64px!important}
.pricing-signal-head{grid-column:2;grid-row:1;min-width:0}
.pricing-signal-head strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
.pricing-signal-card>.pricing-signal-metrics,.pricing-signal-card>p{grid-column:1/-1}
.pricing-signal-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.pricing-signal-metrics>span{display:flex!important;align-items:baseline;justify-content:space-between;gap:8px;padding:10px!important}

/* Expense, maintenance, loan, vehicle and break-even internals share dark-native layers. */
:is(.vehicle-expense-panel,.expense-vehicle-card,.maintenance-card-hero,.maintenance-card-summary,.maintenance-timeline,.loan-card,.breakeven-card,.vehicle-card-body){background:var(--card-bg)!important;background-image:none!important;color:var(--text-primary)!important}
:is(.expense-group-rows,.expense-transaction-group>summary,.maintenance-upcoming,.service-event-source,.loan-history-head){background:var(--card-elevated-bg)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important}
.maintenance-card-media{background:var(--metric-bg)!important}.maintenance-card-hero{border-color:var(--border-subtle)!important}
.break-stats .break-total{background:color-mix(in srgb,var(--accent) 18%,var(--card-elevated-bg))!important}
.break-stats .break-total :is(span,strong){color:var(--text-primary)!important}

/* True dark calendar cells and explicit, non-color-only booking labels. */
.calendar-board{overflow:auto}.calendar-board-head,.calendar-weekdays{background:var(--card-elevated-bg)!important;border-color:var(--border-default)!important}
.calendar-grid{background:var(--border-default)!important;gap:1px}
.calendar-day{min-height:132px;background:var(--section-bg)!important;color:var(--text-primary)!important;border:0!important}
.calendar-day.outside{background:var(--app-bg)!important;color:var(--text-disabled)!important;opacity:1}
.calendar-day.open-day{background:color-mix(in srgb,var(--positive) 4%,var(--section-bg))!important}
.calendar-day.partially-booked{background:color-mix(in srgb,var(--info) 7%,var(--section-bg))!important}
.calendar-day.fully-booked{background:color-mix(in srgb,var(--info) 11%,var(--section-bg))!important}
.calendar-day.today{box-shadow:inset 0 0 0 2px var(--accent)}
.calendar-event{background:color-mix(in srgb,var(--info) 18%,var(--card-elevated-bg))!important;color:var(--text-primary)!important;border:1px solid color-mix(in srgb,var(--info) 38%,var(--border-default))!important}
.calendar-event.tone-1{background:color-mix(in srgb,var(--positive) 17%,var(--card-elevated-bg))!important;border-color:color-mix(in srgb,var(--positive) 38%,var(--border-default))!important}
.calendar-event.tone-2{background:color-mix(in srgb,var(--warning) 17%,var(--card-elevated-bg))!important;border-color:color-mix(in srgb,var(--warning) 38%,var(--border-default))!important}
.calendar-event.tone-3{background:color-mix(in srgb,var(--negative) 15%,var(--card-elevated-bg))!important;border-color:color-mix(in srgb,var(--negative) 34%,var(--border-default))!important}
.calendar-event b{background:color-mix(in srgb,var(--card-bg) 74%,transparent)!important;color:inherit!important}
.calendar-more{border:0;background:transparent!important;color:var(--accent)!important;text-align:left;padding:2px 4px;font-size:9px;font-weight:800;cursor:pointer}
.calendar-mini-month,.calendar-mini-month :is(button,span,i){background-color:var(--card-bg)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
.calendar-mini-grid>span.open-day{background:var(--metric-bg)!important}.calendar-mini-grid>span.partially-booked,.calendar-mini-grid>span.fully-booked{background:color-mix(in srgb,var(--info) 22%,var(--metric-bg))!important}
.calendar-day-detail-list{display:grid;gap:8px;margin-top:16px}
.calendar-day-detail-booking{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:12px;border:1px solid var(--border-default);border-radius:11px;background:var(--card-elevated-bg);color:var(--text-primary);text-align:left;cursor:pointer}
.calendar-day-detail-booking>b{display:grid;place-items:center;min-width:30px;min-height:30px;border-radius:8px;background:var(--metric-bg);color:var(--text-primary)}
.calendar-day-detail-booking>span{display:grid;gap:2px;min-width:0}.calendar-day-detail-booking small{color:var(--text-secondary);overflow-wrap:anywhere}.calendar-day-detail-booking em{font-style:normal;font-weight:800;color:var(--text-primary)}

/* Compact dark empty states. */
.empty-state{background:var(--card-elevated-bg)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important}
.empty-state :is(p,small){color:var(--text-secondary)!important}

@media(max-width:900px){.pricing-list{grid-template-columns:1fr!important}}
@media(max-width:780px){
  .upcoming-booking-row{grid-template-columns:72px minmax(0,1fr)!important;align-items:start}
  .upcoming-booking-row>.upcoming-vehicle-image{width:72px!important;height:58px!important;min-width:72px;max-width:72px}
  .upcoming-booking-result{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:space-between;justify-items:initial;min-width:0}
  .calendar-board{max-width:100%;overscroll-behavior-x:contain}.calendar-day{min-height:116px;padding:7px}
}
@media(max-width:430px){
  .pricing-signal-card{grid-template-columns:56px minmax(0,1fr)!important;padding:13px!important}.pricing-signal-card>.pricing-vehicle-image{width:56px!important;height:56px!important}
  .pricing-signal-metrics{grid-template-columns:1fr!important}
  .calendar-booking-identity{grid-template-columns:1fr}.calendar-day-detail-booking{grid-template-columns:auto minmax(0,1fr)}.calendar-day-detail-booking em{grid-column:2}
}

/* FleetDV v101 — shared vehicle-profile, account, booking and metric interactions. */
.workspace-header>.page-heading{order:1;min-width:0}
.workspace-header>.experience-command-trigger{order:2;margin-left:auto}
.workspace-header>.header-actions{order:3;margin-left:0}
.workspace-header>.experience-profile-control{order:4;margin-left:2px;flex:0 0 auto}

#experienceProfileButton{
  width:52px!important;height:48px!important;min-width:52px;padding:0 7px!important;display:flex!important;align-items:center;justify-content:center;gap:5px;
  border:1px solid var(--border-default)!important;border-radius:15px!important;background:var(--card-elevated-bg)!important;color:var(--text-primary)!important;
  box-shadow:0 5px 16px color-mix(in srgb,#000 12%,transparent)!important;cursor:pointer!important;
}
#experienceProfileButton:hover{border-color:var(--accent)!important;background:var(--metric-bg)!important;transform:translateY(-1px)}
#experienceProfileButton:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 48%,transparent)!important;outline-offset:2px}
#experienceProfileInitials{width:34px!important;height:34px!important;flex:0 0 34px;border-radius:11px!important;background-color:var(--metric-bg)!important;background-size:cover!important;background-position:center!important}
.experience-profile-chevron{display:block!important;color:var(--text-muted)!important;font-size:.78rem!important;pointer-events:none}
.experience-profile-menu{background:var(--card-elevated-bg)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important;opacity:1!important;pointer-events:auto!important}

.fleet-pulse-title{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}
.fleet-pulse-title>div{min-width:0}
.vehicle-card-footer{align-items:center!important}
.vehicle-card-footer>div{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:max-content}
.vehicle-profile-link{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:max-content;min-height:36px;padding:6px 8px;border:0;border-radius:8px;
  background:transparent;color:var(--accent);font:800 .76rem "DM Sans",sans-serif;line-height:1;white-space:nowrap;cursor:pointer;text-decoration:none;
}
.vehicle-profile-link:hover{background:var(--metric-bg);color:var(--text-primary)}
.vehicle-profile-link:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 48%,transparent);outline-offset:1px}
.vehicle-profile-lifecycle{display:flex!important;align-items:center;gap:9px;flex-wrap:wrap;margin-top:12px!important}
.vehicle-profile-lifecycle b{padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--negative) 18%,var(--card-elevated-bg));color:var(--text-primary)}
.vehicle-profile-lifecycle span{color:inherit}

.upcoming-booking-row{position:relative!important;display:grid!important;grid-template-columns:120px minmax(180px,1fr) auto!important;align-items:center!important;gap:16px!important;min-width:0!important;overflow:visible!important;padding-block:12px!important}
.upcoming-booking-row>.upcoming-vehicle-image{position:relative!important;inset:auto!important;grid-column:1!important;grid-row:1!important;width:88px!important;min-width:88px!important;max-width:88px!important;height:66px!important;margin:0!important;transform:none!important;align-self:center;overflow:hidden}
.upcoming-booking-row>.upcoming-vehicle-image{width:112px!important;min-width:112px!important;max-width:112px!important;height:76px!important;border-radius:10px!important;background:var(--metric-bg)!important}
.upcoming-booking-row>.upcoming-vehicle-image img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
.upcoming-booking-copy{grid-column:2!important;grid-row:1!important;min-width:0!important;padding:0!important;margin:0!important;transform:none!important}
.upcoming-booking-copy strong{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.upcoming-booking-copy span,.upcoming-booking-copy small{max-width:100%;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
.upcoming-booking-result{grid-column:3!important;grid-row:1!important;min-width:96px!important;margin:0!important;transform:none!important}

:is(.fleet-pulse-metrics>div,.vehicle-card-facts>div,.break-stats>div){background:var(--metric-bg)!important;color:var(--text-primary)!important;border:1px solid var(--border-subtle)!important}
:is(.fleet-pulse-metrics,.vehicle-card-facts,.break-stats) :is(span,strong,b){color:var(--text-primary)}
:is(.fleet-pulse-metrics,.vehicle-card-facts,.break-stats) span{color:var(--text-secondary)!important}

@media(max-width:780px){
  .workspace-header{display:grid!important;grid-template-columns:44px minmax(0,1fr) 42px 48px!important;grid-template-rows:auto auto;align-items:center;gap:8px!important}
  .workspace-header>.menu-button{grid-column:1;grid-row:1;width:44px;height:44px}
  .workspace-header>.page-heading{grid-column:2;grid-row:1}
  .workspace-header>.experience-command-trigger{grid-column:3;grid-row:1;width:42px!important;height:42px!important;margin:0!important;padding:0!important;display:grid!important;place-items:center}
  .experience-command-trigger :is(strong,kbd){display:none!important}
  .workspace-header>.experience-profile-control{grid-column:4;grid-row:1;margin:0;justify-self:end}
  #experienceProfileButton{width:44px!important;height:44px!important;min-width:44px;padding:0!important;border-radius:12px!important}
  #experienceProfileInitials{width:34px!important;height:34px!important;flex-basis:34px}
  .experience-profile-chevron{display:none!important}
  .workspace-header>.header-actions{grid-column:1/-1;grid-row:2;width:100%;margin:0!important}
  .upcoming-booking-row{grid-template-columns:76px minmax(0,1fr) auto!important;gap:11px!important;align-items:start!important}
  .upcoming-booking-row>.upcoming-vehicle-image{width:72px!important;min-width:72px!important;max-width:72px!important;height:56px!important}
  .upcoming-booking-result{grid-column:3!important;grid-row:1!important;min-width:68px!important}
  .vehicle-profile-link{min-height:40px}
}

@media(max-width:430px){
  .workspace-header{grid-template-columns:42px minmax(0,1fr) 40px 44px!important;gap:6px!important}
  .upcoming-booking-row{grid-template-columns:68px minmax(0,1fr)!important}
  .upcoming-booking-row>.upcoming-vehicle-image{width:64px!important;min-width:64px!important;max-width:64px!important;height:50px!important}
  .upcoming-booking-copy{grid-column:2!important}
  .upcoming-booking-result{grid-column:2!important;grid-row:2!important;display:flex!important;align-items:center;justify-content:space-between;min-width:0!important;width:100%}
  .fleet-pulse-title{grid-template-columns:minmax(0,1fr) auto!important}
}

/* Version 105: one collision-safe booking identity layout for phone cards and Overview rows. */
.upcoming-period-note{margin:4px 0 0;color:var(--text-muted);font-size:.75rem;line-height:1.35}

@media(max-width:780px){
  :root{--mobile-nav-height:72px}
  .workspace{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 48px)!important}
  .booking-identity-layout{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;column-gap:11px!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
  .booking-identity-layout>.booking-card-thumbnail{position:relative!important;inset:auto!important;grid-column:1!important;grid-row:1 / span 2!important;width:72px!important;min-width:72px!important;max-width:72px!important;height:54px!important;aspect-ratio:auto!important;margin:0!important;transform:none!important;align-self:start!important;overflow:hidden!important;border-radius:10px!important;background:var(--metric-bg)!important}
  .booking-identity-layout>.booking-card-thumbnail img{width:100%!important;height:100%!important;padding:3px!important;object-fit:contain!important;object-position:center!important}
  .booking-mobile-identity,.upcoming-booking-copy{grid-column:2!important;grid-row:1!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;padding:0!important;margin:0!important}
  .booking-mobile-guest,.booking-mobile-identity strong,.booking-mobile-identity small,.upcoming-booking-copy strong,.upcoming-booking-copy span,.upcoming-booking-copy small{display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:normal!important;overflow-wrap:anywhere!important}
  .booking-mobile-guest,.upcoming-booking-copy strong{color:var(--text-primary)!important;white-space:nowrap!important}
  .booking-mobile-identity strong,.upcoming-booking-copy span{color:var(--text-secondary)!important;white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important}
  .booking-mobile-identity small,.upcoming-booking-copy small{color:var(--text-muted)!important;white-space:nowrap!important}
  .booking-mobile-head>.status-pill{grid-column:2!important;grid-row:2!important;justify-self:start!important;margin-top:7px!important;max-width:100%!important}
  .upcoming-booking-result{grid-column:2!important;grid-row:2!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-width:0!important;width:100%!important;margin-top:8px!important}
  .upcoming-booking-result>strong{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-primary)!important}
  .booking-mobile-result{margin:10px 0 8px!important;padding:9px 0!important;background:transparent!important;border-block:1px solid var(--border)!important}
  .booking-mobile-card details summary{padding:3px 0!important}
}

@media(max-width:430px){
  .booking-identity-layout{grid-template-columns:64px minmax(0,1fr)!important;column-gap:10px!important}
  .booking-identity-layout>.booking-card-thumbnail{width:64px!important;min-width:64px!important;max-width:64px!important;height:48px!important}
}

/* Version 106: one mobile viewport contract for every page and experience. */
*,*::before,*::after{box-sizing:border-box}

@media(max-width:780px){
  :root{
    --mobile-page-gutter:16px;
    --mobile-nav-edge:10px;
    --mobile-nav-height:72px;
  }

  html,body{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  /* Clipping is defensive only. The width and minimum-track rules below remove
     the sources of overflow before anything reaches this boundary. */
  .app-shell{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:100dvh;
    overflow-x:clip;
  }

  body:is(.experience-modern,.experience-premium) .workspace,
  .workspace{
    position:relative!important;
    left:auto!important;
    transform:none!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding-inline:var(--mobile-page-gutter)!important;
    padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 24px)!important;
    overflow:visible;
  }

  .workspace>*,.view,.view>*,.dashboard-grid,.lower-grid,.metric-grid,
  .section-toolbar,.panel,.fleet-panel,.fleet-pulse,.vehicle-grid,
  .bookings-data-surface,.expense-financial-workspace,.annual-dashboard-grid,
  .modern-overview-extension,.modern-side-stack,.modern-side-stack-wide,
  .calendar-board,.setup-launchpad,.setup-steps,.setup-step{
    min-width:0!important;
    max-width:100%!important;
  }

  .workspace-header{
    grid-template-columns:42px minmax(0,1fr) 40px 44px!important;
    column-gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-inline:0!important;
  }
  .workspace-header>.page-heading,
  .workspace-header>.header-actions,
  .workspace-header>.experience-profile-control{min-width:0!important;max-width:100%!important}
  .workspace-header>.experience-command-trigger{min-width:40px!important;max-width:40px!important}
  #experienceProfileButton{min-width:44px!important;max-width:44px!important}
  .page-heading :is(h1,p,span){max-width:100%}

  .workspace-header>.header-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
  }
  .mobile-period-button{
    width:fit-content!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .global-period-selectors,
  body.experience-modern .global-period-selectors,
  body.experience-premium .global-period-selectors{
    left:var(--mobile-page-gutter)!important;
    right:var(--mobile-page-gutter)!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
  }

  .setup-launchpad{width:100%!important;overflow:hidden!important}
  .setup-launchpad>summary{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
  }
  .setup-intro,.setup-intro :is(h2,p),.setup-steps,.setup-step>div{min-width:0!important;max-width:100%!important}
  .setup-intro :is(h2,p),.setup-step :is(strong,small){overflow-wrap:anywhere}
  .setup-toggle{justify-self:end;max-width:100%;white-space:nowrap}
  .setup-launchpad .setup-steps{width:100%!important;grid-template-columns:minmax(0,1fr)!important}
  .setup-launchpad .setup-step{
    width:100%!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    margin-inline:0!important;
  }
  .setup-launchpad .setup-step :is(.setup-state,.secondary-button){max-width:100%!important}

  :is(.panel-head,.section-toolbar,.toolbar-actions,.experience-section-head)>*{min-width:0;max-width:100%}
  :is(.panel-head,.section-toolbar,.toolbar-actions,.experience-section-head) :is(h2,h3,p,strong,small){overflow-wrap:anywhere}
  :is(input,select,textarea,button){max-width:100%}
  :is(.fleet-table-wrap,.annual-table-wrap,.table-wrap){max-width:100%;overscroll-behavior-inline:contain}

  .experience-mobile-nav{
    position:fixed!important;
    left:var(--mobile-nav-edge)!important;
    right:var(--mobile-nav-edge)!important;
    bottom:calc(env(safe-area-inset-bottom) + 8px)!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    transform:none!important;
    margin:0!important;
  }
  .experience-mobile-nav button{width:100%;min-width:0!important;max-width:100%;overflow:hidden}
  .experience-mobile-nav small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

@media(max-width:360px){
  :root{--mobile-page-gutter:12px;--mobile-nav-edge:8px}
  .workspace-header{grid-template-columns:40px minmax(0,1fr) 38px 42px!important;column-gap:5px!important}
  .workspace-header>.experience-command-trigger{min-width:38px!important;max-width:38px!important}
  #experienceProfileButton{min-width:42px!important;max-width:42px!important}
  .setup-launchpad>summary{grid-template-columns:minmax(0,1fr)!important}
  .setup-toggle{justify-self:start}
}

/* Unpublished iOS touch-containment candidate.
   The standards-mode document scrolls at HTML, outside the app-shell boundary.
   Restrict page panning without canceling events, vertical scroll, or pinch zoom.
   Nested scroll containers terminate the touch-action ancestor check for panning;
   they explicitly retain both axes below. */
@media(max-width:780px){
  html:has(#appShell:not([hidden])){
    touch-action:pan-y pinch-zoom;
    overscroll-behavior-x:none;
    overflow-x:clip;
  }
  #appShell:not([hidden]){
    touch-action:pan-y pinch-zoom;
  }
  #appShell :is(.fleet-table-wrap,.table-wrap,.annual-table-wrap,
    .annual-trend-chart,.modern-vehicle-grid,.metric-grid){
    touch-action:pan-x pan-y pinch-zoom;
    overscroll-behavior-x:none;
  }
}

/* Auth gating takes precedence over responsive/theme display declarations. */
#appShell[hidden],#authShell[hidden]{display:none!important}
#appFooter{display:none}
#appShell:not([hidden])~#appFooter{display:block}
body:not([data-private-ui="ready"]) #experienceMobileNav{display:none!important}
/* Trust line under "Create account" (see design-review/trust-and-demo/TRUST-LINE.md) */
#signupForm small.trust-line{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:2px}
#signupForm small.trust-line svg{flex:none;color:var(--green,#16805f)}

/* "Not ready yet? Try with sample data" under Create account (sample-data demo) */
#signupForm .try-demo-signup{display:block;margin-top:2px;padding:10px;border:1px dashed var(--line,#cfdcd8);border-radius:10px;text-align:center;font-size:13px;color:inherit;text-decoration:none}
#signupForm .try-demo-signup b{color:var(--green-dark,#087652)}
#signupForm .try-demo-signup:hover{border-style:solid}

/* Overview presentation only; shared financial, lifecycle and mobile-shell rules are unchanged. */
#overviewView.view.active{display:flex;flex-direction:column;gap:20px}
#overviewView>*{order:0!important;margin-block:0;min-width:0;max-width:100%}
#overviewView [hidden]{display:none!important}
#overviewView .panel{padding:20px;border-radius:18px;min-height:0}
#overviewView .panel-head{margin-bottom:16px;padding-bottom:12px;gap:12px}
#overviewView .panel-head h2{font-size:19px}
#overviewView .setup-launchpad{padding:0;border-radius:14px}
#overviewView .setup-launchpad>summary{padding:10px 20px;gap:16px;min-height:64px}
#overviewView .setup-intro{min-width:0}
#overviewView #setupTitle{font-size:16px;margin:0 0 4px}
#overviewView #setupSummaryText{font-size:13px;margin:0;line-height:1.5}
#overviewView .setup-toggle{padding:8px 14px;flex-shrink:0;font-size:13px}
#overviewView .setup-steps{padding:16px;gap:12px}
#overviewView .overview-welcome{padding:2px 0;min-height:0;background:none;border:0;box-shadow:none}
#overviewView .overview-welcome h2{font-size:26px;margin:5px 0 7px}
#overviewView .overview-welcome p{font-size:14px;margin:0}
#overviewView .metric-grid{gap:12px}
#overviewView .metric-card{padding:18px;min-height:140px}
#overviewView .metric-card>strong{font-size:30px}
#overviewView .metric-top>span{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#overviewView .overview-profit-info{display:inline-block;position:relative;font-weight:400;text-transform:none;letter-spacing:normal}
#overviewView .overview-profit-info summary{cursor:pointer;list-style:none;font-size:16px;min-width:24px;text-align:center}
#overviewView .overview-profit-info summary::-webkit-details-marker{display:none}
#overviewView .overview-profit-info p{position:absolute;z-index:20;top:24px;left:-90px;width:220px;padding:12px;margin:0;background:var(--surface,#fff);color:var(--text,#17221e);border:1px solid var(--border,#cad5d0);border-radius:10px;box-shadow:0 8px 24px #0002;font-size:13px;line-height:1.5}
#overviewView .overview-alerts-panel{padding:16px 20px}
#overviewView .overview-alerts-panel .panel-head{border:0;padding:0;margin-bottom:8px}
#overviewView .compact-alert-list{display:grid;gap:0}
#overviewView .alert-row{padding:8px 0;min-height:0;border-radius:0;background:transparent;box-shadow:none;grid-template-columns:24px minmax(0,1fr) auto;gap:10px}
#overviewView .alert-row>div{min-width:0}
#overviewView .alert-row strong{font-size:14px}
#overviewView .alert-row small{font-size:12px}
#overviewView .alert-row button{padding:7px 10px;font-size:12px}
#overviewView .overview-financial-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px}
#overviewView .chart{height:220px;min-height:0;margin-bottom:24px}
#overviewView .donut-layout{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}
#overviewView .donut{width:140px;height:140px;flex:0 0 140px}
#overviewView .cost-legend{flex:1 1 160px;min-width:0}
#overviewView .overview-operations-grid{display:grid;grid-template-columns: minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
#overviewView .goal-card{min-height:0}
#overviewView #goalPeriodLabel{display:none}
#overviewView .goal-summary{margin:12px 0;gap:12px}
#overviewView #goalText,#overviewView #goalPercentage{font-size:22px}
#overviewView .goal-track{height:8px;margin:12px 0}
#overviewView .goal-remaining{font-size:13px;margin:12px 0 0}
#overviewView .upcoming-period-note{font-size:12px;margin:5px 0 0}
#overviewView .upcoming-booking-row{grid-template-columns:72px minmax(0,1fr) auto!important;gap:12px!important;padding:12px 0!important;min-height:0!important}
#overviewView .upcoming-vehicle-image{width:72px!important;height:52px!important;min-width:0!important}
#overviewView .upcoming-booking-copy{min-width:0!important}
#overviewView .upcoming-booking-copy strong{font-size:14px;overflow-wrap:anywhere}
#overviewView .upcoming-booking-copy span,#overviewView .upcoming-booking-copy small{font-size:12px}
#overviewView .upcoming-booking-result strong{font-size:14px}
#overviewView .fleet-panel{display:block}
#overviewView .fleet-table-wrap{overflow-x:auto}
#overviewView .data-table{min-width:0;width:100%}
#overviewView .data-table th,#overviewView .data-table td{padding:14px 10px;font-size:13px}
#overviewView .data-table td:first-child{width:29%;white-space:normal}
#overviewView .vehicle-cell{min-width:0}
#overviewView .data-table tr[data-open-vehicle]{cursor:pointer}
#overviewView .data-table .vehicle-profile-link{font-size:12px}
#overviewView .overview-fleet-cards{display:none}
#overviewView .empty-state{min-height:100px;padding:16px}
#overviewView .overview-compact-empty{font-size:14px;margin:8px 0}
@media(max-width:1100px){#overviewView .overview-financial-grid{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}#overviewView .overview-operations-grid{grid-template-columns:1fr}#overviewView .donut{width:120px;height:120px;flex-basis:120px}}
@media(max-width:780px){
#overviewView.view.active{gap:16px}
#overviewView .panel{padding:16px}
#overviewView .setup-launchpad>summary{padding:12px;display:flex;align-items:center}
#overviewView .setup-toggle{padding:7px 10px}
#overviewView .overview-welcome h2{font-size:23px}
#overviewView .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#overviewView .metric-card{padding:14px;min-height:130px}
#overviewView .metric-card>strong{font-size:26px}
#overviewView .metric-icon{display:none}
#overviewView .metric-top{font-size:12px}
#overviewView .metric-card small{font-size:11px}
#overviewView .overview-financial-grid,#overviewView .overview-operations-grid{grid-template-columns:minmax(0,1fr);gap:16px}
#overviewView .chart{height:190px}
#overviewView .upcoming-booking-row{grid-template-columns:64px minmax(0,1fr)!important;gap:8px 12px!important}
#overviewView .upcoming-vehicle-image{width:64px!important;height:48px!important;grid-column:1;grid-row:1}
#overviewView .upcoming-booking-copy{grid-column:2;grid-row:1}
#overviewView .upcoming-booking-result{grid-column:2;grid-row:2;display:flex;justify-content:space-between;align-items:center;gap:8px}
#overviewView .fleet-table-wrap{display:none}
#overviewView .overview-fleet-cards{display:grid;gap:12px}
#overviewView .overview-fleet-card{padding:14px;border:1px solid var(--border,#cad5d0);border-radius:12px;min-width:0}
#overviewView .overview-fleet-card h3{font-size:15px;margin:0;overflow-wrap:anywhere}
#overviewView .overview-fleet-card p{font-size:12px;margin:6px 0 12px}
#overviewView .overview-fleet-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
#overviewView .overview-fleet-card dt{font-size:12px;opacity:.8}
#overviewView .overview-fleet-card dd{font-size:16px;margin:3px 0 0;font-weight:650;overflow-wrap:anywhere}
#overviewView .overview-profit-info p{left:auto;right:-55px;width:200px}
}
#overviewView .setup-toggle{background:var(--surface-soft);color:var(--accent,var(--text));border-color:var(--border)}
#overviewView .alert-row{border:0;border-bottom:1px solid var(--border)}
#overviewView .alert-row:last-child{border-bottom:0}
#overviewView .alert-row>span{grid-column:1;grid-row:1}
#overviewView .alert-row>div{grid-column:2;grid-row:1}
#overviewView .alert-row>button{grid-column:3!important;grid-row:1;align-self:center;justify-self:end}
/* Size the shared image frame, not only its nested image/fallback. */
#overviewView .upcoming-booking-row>.fleet-vehicle-image{grid-column:1!important;grid-row:1!important;width:72px!important;min-width:0!important;max-width:72px!important;height:52px!important;aspect-ratio:auto!important;align-self:start!important;overflow:hidden}
#overviewView .upcoming-booking-row>.fleet-vehicle-image>*{width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important}
#overviewView .goal-summary{flex-direction:row;align-items:baseline;flex-wrap:wrap}
@media(max-width:780px){#overviewView .upcoming-booking-row>.fleet-vehicle-image{width:64px!important;max-width:64px!important;height:48px!important}#overviewView #goalText,#overviewView #goalPercentage{font-size:19px}}
#overviewView .metric-top>span{color:var(--text-primary)!important}
#overviewView .metric-card>small{color:var(--text-muted)!important}

/* Final polish: one secondary text treatment for all four KPIs. */
#overviewView .metric-card>small{display:block;font-size:12px;font-weight:400;line-height:1.5;margin-top:8px;color:var(--text-muted)!important}
@media(max-width:780px){#overviewView .metric-card>small{font-size:11px}#overviewView .setup-launchpad>summary{min-height:0}}

/* Mobile density polish only; retain the approved Overview hierarchy. */
@media(max-width:780px){
#overviewView .alert-row{padding-block:6px}
#overviewView .goal-card{padding-block:12px}
#overviewView .goal-card .panel-head{margin-bottom:10px;padding-bottom:8px}
#overviewView .goal-summary{margin-block:8px}
#overviewView .goal-track{margin-block:8px}
#overviewView .goal-remaining{margin-top:8px}
#overviewView .upcoming-booking-row{padding-block:8px!important;row-gap:4px!important}
#overviewView .overview-financial-grid,#overviewView .overview-operations-grid{gap:12px}
#overviewView.view.active{gap:12px}
#overviewView .overview-fleet-cards{gap:10px}
#overviewView .overview-fleet-card{padding:8px}
#overviewView .overview-fleet-card h3{line-height:1.3}
#overviewView .overview-fleet-card p{margin:2px 0 4px;line-height:1.35}
#overviewView .overview-fleet-card dl{gap:4px 10px;margin-bottom:2px}
#overviewView .overview-fleet-card dt{line-height:1.3}
#overviewView .overview-fleet-card dd{margin-top:2px;line-height:1.3}
#overviewView .overview-fleet-card .vehicle-profile-link{padding-block:4px;min-height:36px}
}
/* Overview KPI cards (2026-11-26, option B): four equal cards; label and ⓘ on top, the number, a change chip, at most one short line,
   the monthly line. Classic and Glass share this anatomy (the Glass reorder of .metric-card children is overridden here: label on top).
   Colours are the theme's own tokens; light-mode chips use a deeper shade of --positive/--negative for 4.5:1 on their tint. */
#overviewView #metricGrid{--kpi-up:var(--positive,#0b7a55);--kpi-down:var(--negative,#b4232c);--kpi-ink:var(--accent,#2563eb);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
#overviewView #metricGrid>.kpi-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start;gap:0!important;min-height:0!important;height:auto!important;padding:16px 18px 14px!important;position:relative;overflow:visible}
#overviewView #metricGrid>.kpi-card::before{display:none!important}
#overviewView #metricGrid .kpi-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px;order:0!important}
#overviewView #metricGrid .kpi-label{font-size:13px!important;font-weight:600!important;letter-spacing:0;text-transform:none;color:var(--text-primary)!important;opacity:.8;white-space:nowrap}
#overviewView #metricGrid>.kpi-card>strong{order:1!important;display:block;margin:6px 0 8px!important;font-size:30px!important;line-height:1.05!important;font-weight:700!important;letter-spacing:-.025em;color:var(--text-primary)!important;font-variant-numeric:tabular-nums}
#overviewView #metricGrid>.kpi-card.negative>strong{color:var(--kpi-down)!important}
#overviewView #metricGrid .kpi-row{order:2;display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-height:24px}
#overviewView #metricGrid .kpi-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;font-size:12.5px;font-weight:650;line-height:1.2;white-space:nowrap}
#overviewView #metricGrid .kpi-chip b{font-size:9.5px;font-weight:700}
#overviewView #metricGrid .kpi-chip em{font-style:normal;font-weight:500;opacity:.85}
#overviewView #metricGrid .kpi-up{color:var(--kpi-up);background:color-mix(in srgb,var(--kpi-up) 13%,transparent)}
#overviewView #metricGrid .kpi-down{color:var(--kpi-down);background:color-mix(in srgb,var(--kpi-down) 13%,transparent)}
#overviewView #metricGrid .kpi-none{color:var(--text-muted);background:color-mix(in srgb,var(--text-muted) 13%,transparent)}
#overviewView #metricGrid .kpi-sub{font-size:12.5px;color:var(--text-muted)!important}
#overviewView #metricGrid .profit-incomplete{flex-basis:100%;font-size:12.5px}
#overviewView #metricGrid .kpi-line{order:3;position:relative;margin-top:auto;padding-top:12px;height:42px}
#overviewView #metricGrid .kpi-line svg{display:block;width:100%;height:30px;overflow:visible}
#overviewView #metricGrid .kpi-stroke{fill:none;stroke:var(--kpi-ink);stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
#overviewView #metricGrid .kpi-open{stroke-dasharray:3 3}
#overviewView #metricGrid .kpi-area{fill:color-mix(in srgb,var(--kpi-ink) 14%,transparent);stroke:none}
#overviewView #metricGrid .kpi-zero{stroke:var(--text-muted);stroke-width:1;stroke-dasharray:3 3;vector-effect:non-scaling-stroke;opacity:.7}
#overviewView #metricGrid .kpi-dot{position:absolute;width:8px;height:8px;margin:12px 0 0 -4px;border-radius:50%;background:var(--kpi-ink);box-shadow:0 0 0 2px var(--surface-elevated,#fff);transform:translateY(-4px)}
#overviewView #metricGrid .kpi-dot-loss{background:var(--kpi-down)}
#overviewView #metricGrid .kpi-line .kpi-dot:not(:last-child){width:6px;height:6px;margin-left:-3px;transform:translateY(-3px)}
#overviewView #metricGrid .kpi-dot-open{background:var(--surface-elevated,#fff);border:2px solid var(--kpi-ink)}
#overviewView #metricGrid .kpi-line-empty{padding:0;height:0}
#overviewView #metricGrid .kpi-fleet{order:4;display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--border,rgba(0,0,0,.1));font-size:12.5px;color:var(--text-muted)}
#overviewView #metricGrid .kpi-fleet b{color:var(--text-primary);font-weight:650}
#overviewView #metricGrid .kpi-squares{display:inline-flex;flex:none;gap:3px}
#overviewView #metricGrid .kpi-squares i{width:10px;height:10px;border-radius:3px;border:1.5px solid var(--kpi-ink)}
#overviewView #metricGrid .kpi-squares i.on{background:var(--kpi-ink)}
#overviewView #metricGrid .kpi-meter{flex:none;width:44px;height:8px;border-radius:4px;border:1.5px solid var(--kpi-ink);overflow:hidden}
#overviewView #metricGrid .kpi-meter i{display:block;height:100%;background:var(--kpi-ink)}
#overviewView #metricGrid .kpi-up-text{color:var(--kpi-up);font-weight:650}
#overviewView #metricGrid .kpi-down-text{color:var(--kpi-down);font-weight:650}
#overviewView #metricGrid .kpi-info{position:relative;flex:none}
#overviewView #metricGrid .kpi-info>summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:14px;color:var(--text-muted);border:1px solid transparent}
#overviewView #metricGrid .kpi-info>summary::-webkit-details-marker{display:none}
#overviewView #metricGrid .kpi-info>summary:is(:hover,:focus-visible),#overviewView #metricGrid .kpi-info[open]>summary{border-color:var(--border);color:var(--text-primary)}
#overviewView #metricGrid .kpi-info>p{position:absolute;z-index:30;right:-6px;top:30px;width:min(280px,80vw);margin:0;padding:12px 14px;border-radius:12px;font-size:13px;font-weight:400;line-height:1.5;text-transform:none;color:var(--text-primary);background:var(--surface-elevated,#fff);border:1px solid var(--border);box-shadow:0 12px 32px rgba(0,0,0,.18)}
#overviewView #metricGrid .kpi-info>p button{display:block;margin-top:8px;padding:0;border:0;background:none;color:var(--accent);font-weight:650;text-decoration:underline;cursor:pointer}
#overviewView #metricGrid>.kpi-card:has(.kpi-info[open]){z-index:40}
html:not([data-appearance="dark"]) #overviewView #metricGrid :is(.kpi-up,.kpi-up-text){color:color-mix(in srgb,var(--kpi-up) 72%,#000)}
html:not([data-appearance="dark"]) #overviewView #metricGrid :is(.kpi-down,.kpi-down-text){color:color-mix(in srgb,var(--kpi-down) 80%,#000)}
html[data-appearance="dark"] #overviewView #metricGrid :is(.kpi-down,.kpi-down-text){color:color-mix(in srgb,var(--kpi-down) 72%,#fff)}
html[data-appearance="dark"] #overviewView #metricGrid .kpi-down{background:color-mix(in srgb,var(--kpi-down) 10%,transparent)}
html[data-theme="glass"] #overviewView #metricGrid>.kpi-card{padding:18px 20px 16px!important}
html[data-theme="glass"] #overviewView #metricGrid .kpi-label{opacity:.82}
html[data-theme="glass"] #overviewView #metricGrid .kpi-info>p{background:rgba(255,255,255,.96);color:#0b2236}
html[data-theme="glass"][data-appearance="dark"] #overviewView #metricGrid .kpi-info>p{background:rgba(9,27,46,.96);color:#eaf4fb}
@media(max-width:1180px){#overviewView #metricGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){
  #overviewView #metricGrid{gap:10px!important}
  #overviewView #metricGrid>.kpi-card{padding:13px 14px 12px!important}
  #overviewView #metricGrid>.kpi-card>strong{font-size:24px!important;margin:4px 0 6px!important}
  #overviewView #metricGrid .kpi-label{font-size:12.5px!important;letter-spacing:-.01em}
  #overviewView #metricGrid .kpi-head{gap:4px}
  #overviewView #metricGrid .kpi-info>summary{width:22px;height:22px;margin-right:-7px}
  #overviewView #metricGrid .kpi-chip{font-size:12px;padding:3px 7px}
  #overviewView #metricGrid .kpi-sub{font-size:12px}
  #overviewView #metricGrid .kpi-line{height:36px;padding-top:8px}
  #overviewView #metricGrid .kpi-line svg{height:26px}
  #overviewView #metricGrid .kpi-dot{margin-top:8px}
  #overviewView #metricGrid .kpi-fleet{flex-wrap:wrap;gap:6px}
}
/* Quick wording fixes (2026-11-29): a plain one-line caption under each KPI label; the grey "in progress" chip may carry the previous
   period's amount, so it wraps instead of overflowing a narrow card */
#overviewView #metricGrid .kpi-caption{order:0;display:block;margin-top:1px;font-size:12px;line-height:1.3;color:var(--text-muted)!important}
#overviewView #metricGrid .kpi-chip.kpi-none{white-space:normal;border-radius:10px}
@media(max-width:780px){#overviewView #metricGrid .kpi-caption{font-size:11.5px}}
/* Profit by Vehicle: how the columns relate (quick wording fixes, 2026-11-29) */
#overviewView .fleet-table-note{margin:12px 2px 0;font-size:12.5px;line-height:1.45;color:var(--text-muted,var(--text-secondary,#5b6b73))}
#overviewView .panel:has(#revenueChart) .legend span{white-space:nowrap}
@media(max-width:780px){#overviewView #revenueChart .chart-label .wk-mon{display:none}}
/* Costs donut (2026-12-01): Turo fees and discounts, not in your earnings, on their own line under the legend (not in the total) */
#overviewView .cost-legend .cost-taken-out{margin:10px 0 0;padding-top:8px;border-top:1px solid var(--line,rgba(127,140,150,.25));font-size:12px;line-height:1.4;color:var(--muted,#5f6f6a)}
/* turo-split (2026-12-02): passed-through line under the donut, the one-time notice and the re-import prompt above the cards, the line under
   your earnings on Bookings, and the import banner's plan suggestions */
#overviewView .cost-legend .cost-taken-out.cost-passed{margin-top:4px;padding-top:0;border-top:0;cursor:help}
#overviewView .turo-notices{display:grid;gap:8px;margin:0 0 14px}
#overviewView .turo-notices[hidden]{display:none}
#overviewView .turo-notice,#overviewView .turo-reimport{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:10px 14px;border:1px solid var(--line,rgba(127,140,150,.3));border-radius:12px;font-size:13px;line-height:1.45;color:var(--text,#17211d);background:var(--surface,rgba(255,255,255,.7))}
#overviewView .turo-notice button,#overviewView .turo-reimport button{flex:none;font:inherit;font-weight:600;padding:6px 12px;border-radius:999px;border:1px solid currentColor;background:transparent;color:inherit;cursor:pointer}
#bookingsView .booking-passed{display:block;margin-top:2px;font-size:11.5px;font-weight:500;line-height:1.3;color:var(--muted,#5f6f6a);cursor:help}
.oc-banner .oc-banner-extra{flex-basis:100%;display:grid;gap:4px;margin-top:6px;font-size:13px;line-height:1.45}

/* Profile photos (2026-12-01): every avatar photo is a square box cropped to a circle, the photo covering it and centred, in Classic, Modern
   and Glass: the header avatar, its menu avatar, "Signed in as" and the Settings profile preview (whose "contain" letterboxed the photo).
   Specific enough to win over the earlier size/radius/contain rules; only avatars that show a photo (.has-photo, set by photos.js). */
html body :is(#profileInitials,#accountInitials,#profilePhotoPreview,#experienceProfileInitials,#experienceProfileMenuAvatar).has-photo{
  aspect-ratio:1/1!important;border-radius:50%!important;overflow:hidden!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
/* Header account button, option A "clean circle" (2026-12-01, owner-approved): the button is just the round photo (or initials), a 44x44
   tap target with a 42px circle (40px on a phone), no frame, background or chevron, in every experience (Classic, Modern, Premium), theme
   (Solid, Glass) and appearance. Two ids so it wins over the earlier per-experience frame rules (post-redesign, interaction-consistency,
   navigation, modern-editorial, theme-glass). Light: soft ring and a light teal initials circle (7:1); dark and Glass: the dark teal circle. */
html body .experience-profile-control #experienceProfileButton#experienceProfileButton{
  position:relative!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  padding:0!important;margin:0!important;display:grid!important;place-items:center!important;gap:0!important;
  border:0!important;border-radius:50%!important;background:transparent!important;background-image:none!important;box-shadow:none!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;outline:none}
html body .experience-profile-control #experienceProfileButton#experienceProfileButton:focus-visible{outline:2px solid #00a99a!important;outline-offset:2px!important}
html body .experience-profile-control #experienceProfileButton#experienceProfileButton .experience-profile-chevron{display:none!important}
html body #experienceProfileButton #experienceProfileInitials#experienceProfileInitials{
  box-sizing:border-box!important;width:42px!important;height:42px!important;min-width:42px!important;flex:0 0 42px!important;aspect-ratio:1/1;margin:0!important;
  display:grid!important;place-items:center!important;border-radius:50%!important;overflow:hidden!important;box-shadow:none!important;
  font:700 14px/1 "DM Sans",sans-serif!important;letter-spacing:.02em!important;
  background-color:#d9f3ee!important;color:#0b5a53!important;border:1px solid #8fcfc5!important}
:is(html[data-appearance="dark"],html[data-theme="glass"]) body #experienceProfileButton #experienceProfileInitials#experienceProfileInitials{background-color:#143a3a!important;color:#8be6d6!important;border-color:#2f6b66!important}
html body #experienceProfileButton #experienceProfileInitials#experienceProfileInitials.has-photo{color:transparent!important;border-color:rgba(15,28,46,.16)!important}
:is(html[data-appearance="dark"],html[data-theme="glass"]) body #experienceProfileButton #experienceProfileInitials#experienceProfileInitials.has-photo{border-color:rgba(255,255,255,.18)!important}
@media(max-width:780px){
  html body #experienceProfileButton #experienceProfileInitials#experienceProfileInitials{width:40px!important;height:40px!important;min-width:40px!important;flex:0 0 40px!important;font-size:13px!important}
}
/* the Modern/Premium status dot: on the circle's bottom-right (it sat on the old 40px box's corner) */
html body:is(.experience-modern,.experience-premium) .experience-profile-control #experienceProfileButton#experienceProfileButton:after{right:2px!important;bottom:2px!important}

/* Bottom nav on a phone (2026-12-01): the current tab in the accent teal (icon and label, on a faint teal pill), the others muted; every
   icon at least 3:1 against its bar. Light bars (Solid light, Premium light): teal #00786e / muted #56655f. Dark bars (dark appearance,
   Modern's brown bar, Glass's blue bar): teal #5eead4 / muted #a9b8b4. The id wins over the per-experience and Glass tab colours. */
html body #experienceMobileNav button{color:#56655f!important;background:transparent!important;box-shadow:none!important}
html body #experienceMobileNav button :is(span,small){color:inherit!important;opacity:1!important}
html body #experienceMobileNav button.active{color:#00786e!important;background:rgba(0,120,110,.10)!important}
:is(html[data-appearance="dark"] body,html[data-theme="glass"] body,html body.experience-modern) #experienceMobileNav button{color:#a9b8b4!important}
:is(html[data-appearance="dark"] body,html[data-theme="glass"] body,html body.experience-modern) #experienceMobileNav button.active{color:#5eead4!important;background:rgba(94,234,212,.14)!important}
/* Glass drew its own bright blue pill behind the active icon (#1e9bd7: teal on it was 2.1:1); the tab's faint teal pill replaces it, as in the other themes */
html body #experienceMobileNav button :is(span,small){background:transparent!important;background-image:none!important;box-shadow:none!important;border-color:transparent!important}

/* Polish (2026-12-01): the header search icon is a drawn magnifier sized to its button (the ⌕ glyph drew ~10px wide); the Expenses nav arrow
   is a drawn outline arrow sized like the text glyphs beside it (iOS Safari drew the ↙ glyph as a colour emoji). */
.experience-command-trigger .experience-command-icon{display:inline-grid;place-items:center;line-height:0}
.experience-command-trigger .experience-command-icon svg{display:block;width:20px;height:20px}
.nav-icon-svg{display:inline-block;vertical-align:-.125em;overflow:visible}

/* Profile photo crop step (profile-crop.js, 2026-12-01): a circle the photo is dragged and zoomed in; outside it, a dimmed square. */
.profile-crop{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:16px;background:rgba(8,16,28,.62)}
.profile-crop-dialog{width:min(360px,100%);display:grid;justify-items:center;gap:12px;padding:20px 20px 16px;border-radius:20px;background:var(--surface,#fff);color:var(--ink,#0f1c2e);box-shadow:0 24px 60px rgba(0,0,0,.35)}
.profile-crop-dialog h2{margin:0;font-size:18px}
.profile-crop-dialog p{margin:0;font-size:13px;opacity:.75}
.profile-crop-view{position:relative;overflow:hidden;border-radius:16px;background:#f3f5f8;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;outline-offset:3px}
.profile-crop-view:active{cursor:grabbing}
.profile-crop-view img{position:absolute;left:0;top:0;max-width:none!important;max-height:none!important;transform-origin:0 0;pointer-events:none;-webkit-user-drag:none}
.profile-crop-view::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 999px rgba(8,16,28,.5);outline:2px solid rgba(255,255,255,.9);outline-offset:-1px;pointer-events:none}
.profile-crop-zoom{display:flex;align-items:center;gap:10px;width:100%;font-size:18px}
.profile-crop-zoom input{flex:1;accent-color:var(--accent,#00786e)}
.profile-crop-actions{display:flex;gap:10px;justify-content:flex-end;width:100%}
.profile-crop-actions button{min-width:96px;min-height:44px}
body.profile-crop-open{overflow:hidden}

/* Modern owns this entire sheet. Classic and Premium retain their existing rules. */
body[data-experience="modern"]{--app-bg:#f2eee7;--section-bg:#faf7f1;--card-bg:#fffcf7;--card-elevated-bg:#eae2d6;--metric-bg:#e9e0d2;--interactive-bg:#fffcf7;--text-primary:#302a23;--text-secondary:#62574a;--text-muted:#726455;--text-disabled:#978b7e;--border-subtle:#e0d7ca;--border-default:#ccbeab;--accent:#805832;--positive:#426c53;--negative:#b4413e;--warning:#956510;--info:#756441;--theme-shadow:0 12px 32px #3024190b;--blue:#927557;--purple:#aa8c74;--orange:#bc8953;--new-bg:var(--app-bg);--new-panel:var(--card-bg);--new-lime:var(--accent)}
html[data-appearance="dark"] body[data-experience="modern"]{--app-bg:#211d19;--section-bg:#29231e;--card-bg:#302923;--card-elevated-bg:#3b3229;--metric-bg:#40362c;--interactive-bg:#352d25;--text-primary:#f5eee4;--text-secondary:#d4c8b9;--text-muted:#b9aa98;--text-disabled:#8d7d6b;--border-subtle:#493d31;--border-default:#63513f;--accent:#e1be91;--positive:#9bc2a5;--negative:#f29989;--warning:#e0b977;--info:#c5b391;--theme-shadow:0 14px 36px #100a0633;--blue:#aa8764;--purple:#b0967d;--orange:#ca9b69}
body.experience-modern .workspace,body.experience-modern .app-shell,body.experience-modern .author-footer{background:var(--app-bg)!important}
body.experience-modern .sidebar{background:#241c15!important;border-right:1px solid #ffffff12!important}
body.experience-modern .brand{color:#f4e8d8;font-size:24px}body.experience-modern .brand-mark{background:#a8794a!important;color:#fff3df!important;box-shadow:none!important}
body.experience-modern .sidebar .nav-item{grid-template-columns:20px minmax(0,1fr) auto;column-gap:15px;height:41px;border-radius:9px;color:#d5c8b7!important;font-size:16px;font-weight:600;line-height:1.2;white-space:nowrap}
body.experience-modern .sidebar .nav-item>span{display:grid;place-items:center;width:20px;font-size:19px;line-height:1}
body.experience-modern .sidebar .nav-item>b{padding:3px 8px;font-size:13px;font-weight:600;line-height:1.15}
body.experience-modern .sidebar .nav-item.active{background:#634b34!important;color:#fff6e8!important;box-shadow:inset 0 0 0 1px #b48b5944!important;font-weight:700}
body.experience-modern .sidebar .nav-item:hover{background:#ffffff0c!important}
body.experience-modern .workspace-header{border-bottom:1px solid var(--border-subtle)!important}
body.experience-modern :is(.experience-command-trigger,.experience-profile-button,.experience-profile-menu,.experience-command-dialog,.experience-drawer-settings,.global-period-selectors){background:var(--interactive-bg)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important;box-shadow:var(--theme-shadow)!important}
body.experience-modern :is(button,input,select,textarea){accent-color:var(--accent)}
body.experience-modern :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body.experience-modern :is(.primary-button,.modern-primary){background:var(--accent)!important;color:var(--app-bg)!important;border:1px solid transparent;border-radius:28px;padding:12px 22px;font:700 13px "DM Sans",sans-serif;cursor:pointer}
body.experience-modern :is(.secondary-button,.text-button,.text-link){color:var(--accent)!important}
body.experience-modern :is(.panel,.vehicle-card,.expense-vehicle-card,.maintenance-vehicle-card,.decision-card,.breakeven-card,.loan-card){box-shadow:var(--theme-shadow)!important;border:1px solid var(--border-subtle)!important;border-radius:15px!important}
body.experience-modern :is(.mini-metric,.expense-metric,.vehicle-card-facts>div,.maintenance-summary-grid>div,.loan-facts>div,.break-stats>div,.stat-pairs>div){border:0!important;box-shadow:none!important;background:var(--card-elevated-bg)!important}
body.experience-modern :is(.vehicle-card-image,.maintenance-card-media img,.expense-vehicle-image){object-fit:contain!important;background:var(--metric-bg)!important}
body.experience-modern .vehicle-card .fleet-vehicle-image{aspect-ratio:3/2!important;height:auto!important;max-height:280px}
body.experience-modern .maintenance-card-media{min-height:150px}
body.experience-modern :is(.bar.profit,.legend-profit,#goalProgress){background:var(--accent)!important}
body.experience-modern :is(.bar.gross,.legend-gross){background:var(--text-muted)!important}
body.experience-modern :is(.profit-value,.positive){color:var(--positive)!important}
body.experience-modern .negative{color:var(--negative)!important}
body.experience-modern .calendar-event{border-left:3px solid var(--accent)!important;background:var(--metric-bg)!important;color:var(--text-primary)!important}
body.experience-modern :is(.experience-profile-avatar,#experienceProfileInitials){background-color:var(--metric-bg)!important;color:var(--accent)!important}
body.experience-modern :is(#experienceProfileInitials,.experience-profile-avatar).has-photo{background-size:cover!important;background-position:center!important}
body.experience-modern #overviewView.view.active{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);grid-template-areas:"hero hero hero" "kpis kpis kpis" "setup setup setup" "earnings upcoming vehicles" "alerts alerts alerts" "costs goal goal" "banner banner banner";gap:20px}
body.experience-modern #overviewView>.overview-welcome,body.experience-modern #overviewView>.fleet-panel{display:none!important}
body.experience-modern #overviewView .overview-financial-grid,body.experience-modern #overviewView .overview-operations-grid{display:contents}
body.experience-modern #overviewView #metricGrid{grid-area:kpis;position:relative;margin-top:-44px!important;margin-inline:20px!important;z-index:1;max-width:calc(100% - 40px);grid-template-columns:repeat(4,minmax(0,1fr))}
body.experience-modern #overviewView .metric-card{background:var(--card-bg)!important;border:1px solid var(--border-default)!important;box-shadow:var(--theme-shadow)!important;border-radius:14px!important;min-height:140px;color:var(--text-primary)!important;backdrop-filter:blur(12px)}
body.experience-modern #overviewView .metric-card>strong{font-size:clamp(25px,2.5vw,38px)}
body.experience-modern #overviewView .metric-icon{background:var(--metric-bg)!important;color:var(--accent)!important;display:grid;width:32px;height:32px;border-radius:9px;place-items:center}
body.experience-modern #overviewView .revenue-panel{grid-area:earnings;display:flex;flex-direction:column;border-top:1px solid var(--border-subtle)!important}
body.experience-modern #overviewView .revenue-panel>.panel-head{order:0}
body.experience-modern #overviewView .revenue-panel .chart{order:2;height:185px;gap:7px;padding-inline:0}
body.experience-modern #overviewView .revenue-panel .chart-label{font-size:10px}
body.experience-modern #overviewView .revenue-panel .panel-head{flex-wrap:wrap}
body.experience-modern #overviewView .overview-operations-grid>.panel:has(#upcomingList){grid-area:upcoming}
body.experience-modern #modernVehicles{grid-area:vehicles}
body.experience-modern #turoSetupPanel{grid-area:setup;padding:0!important;overflow:hidden;border-radius:13px!important;background:var(--card-bg)!important}
body.experience-modern #turoSetupPanel>summary{min-height:66px;padding:10px 16px!important;display:flex;align-items:center;gap:18px}
body.experience-modern #turoSetupPanel .setup-intro{min-width:0;display:flex;align-items:baseline;gap:12px;flex:1}
body.experience-modern #turoSetupPanel .setup-intro h2{font-size:14px;margin:0;white-space:nowrap}
body.experience-modern #turoSetupPanel .setup-intro p{font-size:12px;margin:0;color:var(--text-secondary);min-width:0}
body.experience-modern #turoSetupPanel .setup-toggle{flex:0 0 auto;color:var(--accent);font-size:12px}
body.experience-modern #turoSetupPanel[data-modern-status="attention"]>summary{box-shadow:inset 3px 0 0 var(--warning)}
body.experience-modern #turoSetupPanel[open]>summary{border-bottom:1px solid var(--border-subtle)}
body.experience-modern #turoSetupPanel .setup-steps{padding:14px!important;gap:12px!important}
body.experience-modern #turoSetupPanel .setup-step{min-width:0!important;max-width:100%!important}
body.experience-modern #overviewView .overview-alerts-panel{grid-area:alerts}
body.experience-modern #overviewView .breakdown-panel{grid-area:costs;border-top:1px solid var(--border-subtle)!important}
body.experience-modern #earningsGoalCard{grid-area:goal}
body.experience-modern #modernHero{grid-area:hero;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.42fr);min-height:310px;border-radius:18px;overflow:hidden;background:linear-gradient(125deg,var(--card-elevated-bg),var(--app-bg));position:relative;isolation:isolate}
body.experience-modern #modernHero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 34%,color-mix(in srgb,var(--accent) 24%,transparent),transparent 32%),linear-gradient(110deg,transparent 55%,color-mix(in srgb,var(--accent) 10%,transparent));z-index:-1}
body.experience-modern .modern-hero-copy{padding:34px 28px 58px;position:relative;z-index:1;align-self:center;max-width:760px}
body.experience-modern .modern-hero-copy h2{font:400 clamp(30px,3.4vw,52px)/1.07 Georgia,"Times New Roman",serif;letter-spacing:-.025em;margin:16px 0 12px}
body.experience-modern .modern-hero-copy p{font-size:14px;line-height:1.6;color:var(--text-secondary);margin:12px 0 20px}
body.experience-modern .modern-hero-copy .modern-hero-earnings{font:400 23px/1.4 Georgia,serif;color:var(--text-primary);margin:12px 0}
body.experience-modern .modern-hero-ambient{position:relative;min-width:0;overflow:hidden;display:grid;place-items:center;color:color-mix(in srgb,var(--accent) 46%,transparent);font-size:10px;letter-spacing:.28em}
body.experience-modern .modern-hero-ambient::before,body.experience-modern .modern-hero-ambient::after{content:"";position:absolute;border:1px solid color-mix(in srgb,var(--accent) 28%,transparent);border-radius:50%;width:250px;aspect-ratio:1;transform:translate(34px,-22px)}
body.experience-modern .modern-hero-ambient::after{width:170px;transform:translate(-28px,54px)}
body.experience-modern .modern-hero-ambient i{width:1px;height:70%;background:linear-gradient(transparent,var(--accent),transparent);opacity:.35;transform:rotate(28deg)}
body.experience-modern .modern-hero-ambient span{position:absolute;right:22px;bottom:24px}
body.experience-modern .modern-earnings-summary{order:1;padding-bottom:18px}
body.experience-modern .modern-earnings-summary>strong{display:block;font-size:32px;letter-spacing:-.04em}
body.experience-modern .modern-earnings-summary>span{font-size:12px;color:var(--text-muted)}
body.experience-modern .modern-earnings-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 0;border-top:1px solid var(--border-subtle);padding-top:14px}
body.experience-modern .modern-earnings-summary dt{font-size:11px;color:var(--text-muted)}
body.experience-modern .modern-earnings-summary dd{margin:4px 0 0;font-size:16px;font-weight:650}
body.experience-modern #overviewView .panel-head h2{font-size:17px}
body.experience-modern #overviewView .upcoming-booking-row{grid-template-columns:68px minmax(0,1fr)!important;padding:12px 0!important;gap:8px 10px!important}
body.experience-modern #overviewView .upcoming-booking-row>.fleet-vehicle-image{width:68px!important;max-width:68px!important;height:48px!important}
body.experience-modern #overviewView .upcoming-booking-copy{grid-column:2;grid-row:1}
body.experience-modern #overviewView .upcoming-booking-result{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
body.experience-modern .modern-vehicle-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;padding:14px 0;border-bottom:1px solid var(--border-subtle)}
body.experience-modern .modern-vehicle-row:last-child{border-bottom:0}
body.experience-modern .modern-vehicle-row .fleet-vehicle-image{width:72px;height:52px;aspect-ratio:3/2;border-radius:9px}
body.experience-modern .modern-vehicle-row img{width:100%;height:100%;object-fit:contain!important}
body.experience-modern .modern-vehicle-row h3{font-size:13px;line-height:1.4;margin:0}
body.experience-modern .modern-vehicle-row p{font-size:11px;line-height:1.5;color:var(--text-muted);margin:6px 0}
body.experience-modern .modern-vehicle-row .vehicle-profile-link{min-width:0;padding:4px 0;min-height:30px;font-size:12px}
body.experience-modern .modern-vehicle-profit{grid-column:2;display:flex;gap:8px;align-items:baseline}
body.experience-modern .modern-vehicle-profit strong{font-size:18px}
body.experience-modern .modern-vehicle-profit small{font-size:11px;color:var(--text-muted)}
body.experience-modern #modernEditorialBanner{grid-area:banner;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 32px;border:1px solid var(--border-default);border-radius:15px;background:linear-gradient(115deg,var(--card-elevated-bg),var(--card-bg))}
body.experience-modern .modern-editorial-banner h2{font:400 27px/1.2 Georgia,serif;margin:0 0 8px}
body.experience-modern .modern-editorial-banner p{font-size:13px;color:var(--text-secondary);margin:0}
@media(min-width:1450px){body.experience-modern .modern-vehicle-row{grid-template-columns:86px minmax(0,1fr) auto}body.experience-modern .modern-vehicle-profit{grid-column:3;grid-row:1;display:grid;gap:4px;text-align:right}body.experience-modern .modern-vehicle-row .fleet-vehicle-image{width:86px;height:60px}}
@media(max-width:1150px) and (min-width:781px){body.experience-modern #overviewView.view.active{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"hero hero" "kpis kpis" "setup setup" "earnings upcoming" "vehicles vehicles" "alerts alerts" "costs goal" "banner banner"}body.experience-modern #overviewView #metricGrid{grid-template-columns:repeat(2,minmax(0,1fr))}body.experience-modern .modern-hero-copy h2{font-size:36px}}
@media(max-width:780px){
body.experience-modern .sidebar .main-nav .nav-item{min-height:44px;height:44px;font-size:16px;font-weight:600}
body.experience-modern .sidebar .main-nav .nav-item.active{font-weight:700}
body.experience-modern #overviewView.view.active{grid-template-columns:minmax(0,1fr);grid-template-areas:"hero" "kpis" "setup" "earnings" "upcoming" "vehicles" "alerts" "costs" "goal" "banner";gap:14px}
body.experience-modern #modernHero{grid-template-columns:minmax(0,1fr);min-height:0;border-radius:14px}
body.experience-modern .modern-hero-copy{padding:24px 18px 28px}
body.experience-modern .modern-hero-copy h2{font-size:32px;margin:10px 0}
body.experience-modern .modern-hero-copy .modern-hero-earnings{font-size:20px}
body.experience-modern .modern-hero-copy p{font-size:13px;margin:10px 0}
body.experience-modern .modern-hero-ambient{position:absolute;inset:0;pointer-events:none;opacity:.55}
body.experience-modern .modern-hero-ambient span{display:none}
body.experience-modern #turoSetupPanel>summary{min-height:0;padding:12px 14px!important;align-items:flex-start;flex-wrap:wrap;gap:6px 12px}
body.experience-modern #turoSetupPanel .setup-intro{display:grid;gap:3px;flex-basis:220px}
body.experience-modern #turoSetupPanel .setup-intro h2{white-space:normal}
body.experience-modern #turoSetupPanel .setup-toggle{margin-left:auto}
body.experience-modern #overviewView #metricGrid{margin:0!important;max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.experience-modern #overviewView .metric-card{padding:14px;min-height:142px}
body.experience-modern #overviewView .metric-card>strong{font-size:27px}
body.experience-modern #overviewView .metric-icon{display:none}
body.experience-modern #modernEditorialBanner{display:grid;gap:16px;padding:22px}
body.experience-modern .modern-editorial-banner h2{font-size:24px}
body.experience-modern .experience-mobile-nav{background:#2a211a!important;border-color:#766049!important;box-shadow:0 10px 28px #100b0844!important}
body.experience-modern .experience-mobile-nav button{color:#d3c3af!important}
body.experience-modern .experience-mobile-nav button.active{background:#ddbc94!important;color:#302319!important;box-shadow:none!important}
body.experience-modern .experience-profile-menu{background:var(--card-bg)!important;backdrop-filter:none!important}
}
/* Explicit grid placement neutralizes the older shared thumbnail rules. */
body.experience-modern #overviewView .upcoming-booking-copy{grid-column:2!important;grid-row:1!important;min-width:0!important}
body.experience-modern #overviewView .upcoming-booking-copy strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
body.experience-modern #overviewView .upcoming-booking-result{grid-column:2!important;grid-row:2!important;min-width:0!important;margin-top:0!important}
body.experience-modern .modern-vehicle-row>.fleet-vehicle-image{position:relative!important;inset:auto!important;width:72px!important;min-width:0!important;max-width:72px!important;height:52px!important;grid-column:1;grid-row:1;transform:none!important}
body.experience-modern .modern-vehicle-row>div:not(.fleet-vehicle-image){min-width:0}
/* Bridge legacy surface tokens to Modern's semantic palette in both appearances. */
html body.experience-modern[data-experience="modern"]{--background:var(--app-bg);--surface:var(--card-bg);--surface-soft:var(--section-bg);--surface-elevated:var(--card-elevated-bg);--surface-strong:var(--metric-bg);--border:var(--border-default);--border-strong:var(--border-default);--bg-app:var(--app-bg);--bg-section:var(--section-bg);--bg-card:var(--card-bg);--bg-elevated:var(--card-elevated-bg);--bg-interactive:var(--interactive-bg);--accent-soft:var(--metric-bg);--selected:var(--metric-bg);--hover:var(--card-elevated-bg);--chart-grid:var(--border-subtle);--chart-axis:var(--text-muted);--fl-page:var(--app-bg);--fl-surface:var(--card-bg);--fl-surface-soft:var(--section-bg);--fl-surface-strong:var(--metric-bg);--fl-accent:var(--accent);--fl-accent-soft:var(--metric-bg)}
body.experience-modern .experience-mobile-nav button :is(span,b,strong){color:inherit!important}
body.experience-modern #experienceProfileInitials{font-size:16px}
@media(max-width:780px){body.experience-modern #experienceProfileInitials{font-size:12px!important}}
body.experience-modern .fleet-vehicle-image>.vehicle-image-fallback{background:var(--metric-bg)!important;color:var(--text-secondary)!important;border-color:var(--border-default)!important}
body.experience-modern .sidebar .nav-item>b{background:#59432e!important;color:#f1dfc7!important}

/* FleetDV v121 targeted correction pass. */

/* Count badges own their foreground/background pairing in every appearance. */
body:is([data-experience="classic"],[data-experience="premium"]) .sidebar .nav-item>b,
body:is([data-experience="classic"],[data-experience="premium"]) .sidebar .nav-count{
  background:var(--count-badge-bg)!important;
  color:var(--count-badge-text)!important;
  border:1px solid color-mix(in srgb,var(--count-badge-text) 18%,transparent);
  font-variant-numeric:tabular-nums;
}
:is(.metric-card,.mini-metric,.pricing-signal-metrics,.data-table,.status-pill,.margin-pill,.signal,.subscription-badge,.pagination) :is(strong,b,dd,[data-count]){
  color:var(--text-primary);
  font-variant-numeric:tabular-nums;
}

/* Profile remains the final, unmistakable desktop header control. */
@media(min-width:781px){
  .workspace-header>.experience-command-trigger{width:min(260px,22vw);flex:0 1 260px}
  .workspace-header>.header-actions{gap:6px;flex:0 1 auto;min-width:0}
  .workspace-header .sample-pill{padding-inline:8px;white-space:nowrap}
  .workspace-header .global-period-selectors{gap:6px;min-width:0}
  .workspace-header>.experience-profile-control{order:4;margin-left:4px;flex:0 0 auto}
  #experienceProfileButton{width:70px!important;min-width:70px!important;height:56px!important;padding:0 7px!important;border-radius:17px!important;gap:5px!important}
  #experienceProfileInitials{width:48px!important;min-width:48px!important;height:48px!important;flex-basis:48px!important;border-radius:14px!important;font-size:15px!important}
  .experience-profile-chevron{display:block!important;font-size:13px!important;flex:0 0 7px}
}

/* Responsive Pricing Signals: cards and metric tiles never establish overflow. */
.pricing-list{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))!important;
  gap:14px!important;
  width:100%;min-width:0;max-width:100%;padding-inline:0!important;
}
.pricing-signal-card{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  gap:12px 14px!important;
  width:100%;min-width:0;max-width:100%;overflow:hidden;padding:16px!important;
}
.pricing-signal-card>.pricing-vehicle-image{grid-column:1;grid-row:1;width:64px!important;min-width:64px!important;max-width:64px!important;height:52px!important;aspect-ratio:auto!important}
.pricing-signal-head{grid-column:2;grid-row:1;display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;min-width:0}
.pricing-signal-head>div{min-width:0}
.pricing-signal-head strong{display:block;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;font-size:.85rem}
.pricing-signal-head .signal{max-width:100%;white-space:nowrap}
.pricing-signal-card>.pricing-signal-metrics,.pricing-signal-card>p{grid-column:1/-1;min-width:0;max-width:100%}
.pricing-signal-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;min-width:0}
.pricing-signal-metrics>span{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px;min-width:0;padding:10px!important}
.pricing-signal-metrics>span>b{min-width:0;text-align:right;overflow-wrap:anywhere}
.signal.sold{background:var(--surface-strong)!important;color:var(--text-secondary)!important;border-color:var(--border)!important}

/* Compact Turo status and expansion with one text-owned chevron. */
.setup-launchpad .setup-toggle:after{content:none!important}
#overviewView .setup-launchpad>summary{min-height:54px!important;padding:8px 16px!important}
#overviewView .setup-toggle{min-height:40px;padding:7px 11px!important}
#overviewView .setup-steps{padding:10px!important;gap:10px!important}
#overviewView .setup-step{min-height:0!important;padding:10px!important;gap:8px!important}
#overviewView .setup-step .setup-number{width:30px;height:30px}
#overviewView .setup-step .secondary-button{min-height:40px!important;padding-block:7px!important}

@media(max-width:780px){
  #experienceProfileButton{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important}
  #experienceProfileInitials{width:32px!important;min-width:32px!important;height:32px!important;flex-basis:32px!important}
  .experience-profile-chevron{display:block!important}
  #overviewView .setup-launchpad>summary{padding:7px 12px!important;gap:8px!important}
  #overviewView .setup-steps{grid-template-columns:minmax(0,1fr)!important;padding:8px!important;gap:8px!important}
  #overviewView .setup-step{padding:9px!important}
}
@media(min-width:781px) and (max-width:1150px){
  .workspace-header>.experience-command-trigger{width:44px;min-width:44px;flex:0 0 44px;padding-inline:0;justify-content:center}
  .workspace-header>.experience-command-trigger strong,
  .workspace-header>.experience-command-trigger kbd,
  .workspace-header>.sample-pill{display:none}
}
@media(max-width:360px){
  #experienceProfileButton{width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important}
  #experienceProfileInitials{width:30px!important;min-width:30px!important;height:30px!important;flex-basis:30px!important}
}
@media(max-width:430px){
  .pricing-signal-card{grid-template-columns:56px minmax(0,1fr)!important;padding:13px!important;gap:10px 12px!important}
  .pricing-signal-card>.pricing-vehicle-image{width:56px!important;min-width:56px!important;max-width:56px!important;height:46px!important}
  .pricing-signal-head{grid-template-columns:minmax(0,1fr)}
  .pricing-signal-head .signal{justify-self:start}
  .pricing-signal-metrics{grid-template-columns:1fr!important}
}

/* FleetDV v122 shared Free versus Pro plan presentation. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(min-width:781px){.account-panel{width:min(920px,100%)}}
.account-plans{display:grid;gap:15px;padding:20px;border:1px solid var(--border);border-radius:18px;background:var(--surface-elevated);color:var(--text-primary);box-shadow:var(--fl-shadow)}
.account-plans-heading h3{margin:4px 0 0;color:var(--text-primary);font:800 1.15rem "Manrope",sans-serif;letter-spacing:-.025em}
.plan-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.plan-card{position:relative;display:flex;min-width:0;flex-direction:column;gap:14px;padding:18px;border:1px solid var(--border);border-radius:15px;background:var(--surface);color:var(--text-primary)}
.plan-card.current{border-color:color-mix(in srgb,var(--accent) 72%,var(--border));box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 15%,transparent),var(--fl-shadow)}
.plan-card-pro{background:linear-gradient(155deg,color-mix(in srgb,var(--accent) 10%,var(--surface-elevated)),var(--surface))}
.plan-card header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:3px 8px;padding-bottom:12px;border-bottom:1px solid var(--border)}
.plan-card h4{margin:0;color:var(--text-primary);font:850 1.3rem "Manrope",sans-serif;text-transform:uppercase;letter-spacing:.03em}
.plan-card header>strong{grid-column:1;margin-top:5px;color:var(--text-primary);font:850 1.55rem "Manrope",sans-serif;letter-spacing:-.04em}
.plan-card header>small{grid-column:1;color:var(--text-secondary);font-size:.78rem;line-height:1.35}
.plan-current-label{grid-column:2;grid-row:1/3;align-self:start;padding:5px 8px;border-radius:999px;background:var(--accent);color:var(--accent-contrast,#101915);font-size:.69rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.plan-feature-list{display:grid;align-content:start;gap:7px;margin:0;padding:0;list-style:none}
.plan-feature-list li{display:grid;grid-template-columns:16px minmax(0,1fr) auto;gap:6px;align-items:baseline;color:var(--text-secondary);font-size:.78rem;line-height:1.35}
.plan-feature-list li>span{color:var(--positive);font-weight:900}
.plan-feature-list li.excluded{color:var(--text-muted)}
.plan-feature-list li.excluded>span{color:var(--text-muted)}
.plan-feature-list li small{color:var(--text-muted);font-size:.66rem;font-weight:750;white-space:nowrap}
.plan-card-status{margin-top:auto;min-height:40px;display:grid;place-items:center;padding:8px;border:1px solid var(--border);border-radius:10px;background:var(--surface-strong);color:var(--text-secondary);font-size:.78rem;font-weight:800;text-align:center}
.plan-card.current .plan-card-status{border-color:color-mix(in srgb,var(--accent) 45%,var(--border));color:var(--text-primary)}
.plan-usage{display:grid;gap:6px;padding:10px;border-radius:10px;background:var(--surface-soft);border:1px solid var(--border)}
.plan-usage>div{display:flex;justify-content:space-between;gap:10px;color:var(--text-secondary);font-size:.75rem}
.plan-usage strong{color:var(--text-primary);font-variant-numeric:tabular-nums;white-space:nowrap}
.plan-usage>small{margin-top:2px;color:var(--text-muted);font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.account-plans>.account-plan-details{margin:0;padding-top:12px;border-top:1px solid var(--border)}
.account-plans .account-detail-row{color:var(--text-secondary)}
.account-plans .account-detail-row strong{color:var(--text-primary)}
.account-plans .account-billing-action{margin:0;min-height:46px}
.account-plans .account-billing-note{color:var(--text-muted)}
.upgrade-plan-summary{display:grid;gap:8px;margin:0 0 16px;text-align:left}
.upgrade-plan-summary>div{display:grid;gap:3px;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft)}
.upgrade-plan-summary strong{color:var(--text-primary);font-size:.78rem}
.upgrade-plan-summary span{color:var(--text-secondary);font-size:.76rem;line-height:1.4}
body[data-experience="modern"] .plan-card.current{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent),0 18px 38px rgba(42,24,12,.12)}
body[data-experience="premium"] .plan-card-pro{background:linear-gradient(150deg,color-mix(in srgb,var(--accent) 15%,var(--surface-elevated)),var(--surface))}
body[data-experience="premium"] .plan-card.current{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 20%,transparent),var(--fl-shadow-raised)}
html[data-appearance="dark"] :is(.account-plans,.plan-card,.upgrade-plan-summary>div){border-color:var(--border);color:var(--text-primary)}
@media(max-width:780px){.account-plans{padding:14px}.plan-comparison{grid-template-columns:minmax(0,1fr)}.plan-card{padding:16px}.plan-card header>strong{font-size:1.4rem}.plan-feature-list li{font-size:.8rem}.account-plans .account-billing-action{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom));z-index:1}}
@media(max-width:360px){.account-plans{padding:11px}.plan-card{padding:14px}.plan-current-label{font-size:.64rem}.plan-feature-list li{grid-template-columns:15px minmax(0,1fr)}.plan-feature-list li small{display:none}}

/* Public auth and account sheet presentation only. */
#authShell{background:var(--surface)!important;color:var(--text-primary)!important;padding-top:80px}
#authShell>.auth-brand{top:24px;left:24px;color:var(--text-primary)!important}
#authShell .auth-layout{min-height:0}
#authShell .auth-story{background:var(--surface-soft)!important;color:var(--text-primary)!important;padding-top:40px}
#authShell .auth-story-copy h2{color:var(--text-primary)!important}
#authShell .auth-story-copy p,#authShell .auth-story-copy .overline{color:var(--text-secondary)!important}
#authShell .auth-fleet-showcase{opacity:1!important;filter:none!important}
#authShell .auth-fleet-showcase>img{opacity:1!important;filter:none!important}
#authShell .sample-dashboard-grid article{background:#17211e!important;color:#fff!important}
#authShell .sample-dashboard-grid strong{color:#fff!important}
#authShell .sample-dashboard-grid :is(small,span){color:#d7e2dc!important}
#authShell .auth-showcase-shade{background:linear-gradient(180deg,transparent 45%,rgba(8,14,12,.35))}
#authShell>#publicFooter{position:static!important;display:block;width:100%;box-sizing:border-box;margin:0!important;padding:20px 20px calc(20px + env(safe-area-inset-bottom));text-align:center;background:var(--surface)!important;color:var(--text-secondary)!important;font-size:12px!important;line-height:1.6}
#publicFooter a{color:inherit;text-decoration:underline}
#accountPanel{z-index:12000}
#accountPanel .account-panel{height:100%;height:100dvh;overscroll-behavior:contain}
#accountPanel .account-panel-head{background:var(--surface-elevated)!important;color:var(--text-primary)!important;border-color:var(--border)!important;padding-top:max(20px,env(safe-area-inset-top))}
#accountPanel .account-panel-head h2{color:var(--text-primary)!important}
#accountPanel .account-panel-head .overline{color:var(--text-secondary)!important}
#accountPanel .account-panel-close{width:44px;height:44px;flex:0 0 44px;background:var(--surface-strong)!important;color:var(--text-primary)!important;border-color:var(--border)!important}
#accountPanel .account-panel-body{padding-bottom:calc(32px + env(safe-area-inset-bottom))!important;min-width:0}
body:has(#accountPanel:not([hidden])) .experience-mobile-nav{display:none!important}
#profilePhotoPreview{width:112px!important;height:112px!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;border:1px solid var(--border);background-color:var(--surface-soft)!important}
#accountPanel .profile-photo-editor{grid-template-columns:112px minmax(0,1fr);gap:16px}
#accountPanel .profile-photo-editor label{display:grid;gap:7px;color:var(--text-primary)}
#accountPanel .profile-photo-editor input{min-width:0;width:100%;box-sizing:border-box}
#accountPanel .account-appearance-card p{font-size:14px;line-height:1.4;margin:6px 0 12px;color:var(--text-secondary)}
#accountStartTrialButton{background:#c5dba6!important;color:#182716!important;border-color:#a8c18c!important;box-shadow:none!important;position:static!important;min-height:48px}
#accountStartTrialButton small{color:#2e4327!important;font-size:12px!important}
/* Signed-out brand continuity with the public FleetDV wordmark. */
#authShell>.auth-brand{gap:9px;font:800 20px/1 "Manrope",sans-serif;letter-spacing:-.04em}
#authShell>.auth-brand{color:var(--text-primary)!important;text-decoration:none}
#authShell>.auth-brand .brand-mark{width:18px;height:19px;border-radius:0;background:linear-gradient(to top,var(--text-primary) 0 42%,transparent 42%) 0 100%/4px 100% no-repeat,linear-gradient(to top,var(--text-primary) 0 72%,transparent 72%) 7px 100%/4px 100% no-repeat,linear-gradient(to top,var(--text-primary) 0 100%,transparent 100%) 14px 100%/4px 100% no-repeat;color:transparent;font-size:0;box-shadow:none}
#appLoadingShell .loading-brand{gap:9px;color:#101619;font:800 20px/1 "Manrope",sans-serif;letter-spacing:-.04em}
#appLoadingShell .loading-brand .brand-mark{width:18px;height:19px;border-radius:0;background:linear-gradient(to top,#101619 0 42%,transparent 42%) 0 100%/4px 100% no-repeat,linear-gradient(to top,#101619 0 72%,transparent 72%) 7px 100%/4px 100% no-repeat,linear-gradient(to top,#101619 0 100%,transparent 100%) 14px 100%/4px 100% no-repeat;box-shadow:none}
#authShell .auth-form-pane{background:var(--app-bg)}
#authShell .auth-card{background:var(--card-bg)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important;border-radius:20px;box-shadow:var(--theme-shadow)}
#authShell .auth-card h1{color:var(--text-primary)}
#authShell .auth-card>p,#authShell .auth-form small{color:var(--text-secondary)}
#authShell .auth-card .overline,#authShell .auth-link,#authShell .password-toggle{color:var(--accent)}
#authShell .auth-tabs{background:var(--metric-bg);border:1px solid var(--border-subtle)}
#authShell .auth-tabs button{color:var(--text-secondary)}
#authShell .auth-tabs button.active{background:var(--card-elevated-bg);color:var(--text-primary);box-shadow:var(--theme-shadow)}
#authShell .auth-form label{color:var(--text-secondary)}
#authShell .auth-form input{background:var(--interactive-bg)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
#authShell .password-toggle:hover,#authShell .password-toggle:focus-visible{background:var(--metric-bg)}
#authShell .password-requirements{color:var(--text-muted)}
#authShell .signup-offer{background:var(--card-elevated-bg);border-color:var(--border-default)}
#authShell .signup-offer strong{color:var(--text-primary)}
#authShell .signup-offer span{color:var(--text-primary)}
#authShell .signup-offer small{color:var(--text-secondary)}
#authShell .signup-legal-consent{color:var(--text-secondary)}
#authShell .signup-legal-consent a{color:var(--accent)}
#authShell .auth-status{color:var(--positive)!important}
#authShell .auth-status.error{color:var(--negative)!important}
#authShell .primary-button{border-radius:11px;background:var(--text-primary);color:var(--card-bg)}
#authShell .signup-consent{display:flex;align-items:flex-start;gap:11px;margin:4px 0 0;color:var(--text-primary);font-size:13px;line-height:1.55;cursor:pointer}
#authShell .auth-form .signup-consent input[type="checkbox"]{flex:0 0 19px;width:19px;height:19px;margin:1px 0 0;padding:0;accent-color:var(--accent)}
#authShell .signup-consent a{color:var(--accent);font-weight:700;text-decoration:underline;text-underline-offset:2px}
#authShell .signup-consent a:focus-visible,#authShell .signup-consent input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#authShell .signup-consent-error{color:var(--negative);font-size:13px;margin:-5px 0 0;line-height:1.4}
@media(max-width:980px){
 #authShell{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;padding-top:72px}
 #authShell .auth-layout{display:block;flex:1;min-width:0}
 #authShell .auth-form-pane{order:0;min-height:calc(100dvh - 136px);padding:20px 16px 32px}
 #authShell .auth-story{order:1;display:none!important}
 #authShell .auth-card{padding:24px 20px;min-height:0}
 #authShell>#publicFooter{margin-top:auto!important}
}
@media(max-width:780px){
 #accountPanel .profile-photo-editor{grid-template-columns:minmax(0,1fr)}
 #accountPanel .profile-photo-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 #accountPanel .profile-photo-actions :is(label,button){min-height:44px;align-items:center;justify-content:center}
 #accountPanel .appearance-options{grid-template-columns:minmax(0,1fr);gap:8px}
 #accountPanel .appearance-options button{height:76px;min-height:76px;padding:10px 14px;grid-template-columns:28px minmax(0,1fr);gap:3px 8px}
 #accountPanel .appearance-options button small{grid-column:2}
 #accountPanel .account-panel-head{gap:12px;padding-inline:18px}
 #accountPanel .account-panel-head h2{font-size:23px}
}

:root{--fleetdv-navy:#07233f;--fleetdv-teal:#0b6971;--fleetdv-emerald:#17c98b;--fleetdv-aqua:#26b9df}
body[data-page]{--ink:#071f32;--green:#0cae7c;--green-dark:#087966;--mint:#dcf8ee;--line:#dbe8e5;--soft:#f4f9f8;--shadow:0 24px 70px rgba(7,35,63,.13)}
body[data-page] .button-dark{background:var(--fleetdv-navy);box-shadow:0 10px 26px rgba(7,35,63,.17)}
body[data-page] .button-dark:hover{background:var(--fleetdv-teal)}
body[data-page] :is(.dark-section,.closing-cta){background:#06243b}
body[data-page] .demo-sidebar{background:linear-gradient(165deg,#062f4d,#08766f)}
body[data-page] .brand-word{color:var(--fleetdv-navy)}
.brand-mark{background-image:url('/fleetdv-mark.png')!important;background-repeat:no-repeat!important;background-position:center!important;background-size:contain!important;background-color:transparent!important;color:transparent!important;box-shadow:none!important;border-radius:0!important;flex:0 0 auto}
.brand-mark i{display:none!important}
.brand-word{font-family:'Manrope',sans-serif;font-weight:800;letter-spacing:-.05em;color:inherit}.brand-word .brand-dv{color:var(--fleetdv-emerald)}
.brand-compact{gap:9px}.brand-compact .brand-mark{width:40px;height:34px}.brand-compact .brand-word{font-size:21px}
.brand-full{gap:11px}.brand-full .brand-mark{width:50px;height:42px}.brand-full .brand-word{font-size:30px}
.public-footer .footer-lockup .brand-word{color:#f6fbff}.public-footer .footer-lockup .brand-dv{color:#27e1a2}
.brand-tagline{color:#79dfbd!important;font-weight:700;letter-spacing:.01em;margin-bottom:5px!important}
.sidebar .brand-mark,.app-loading-shell .brand-mark{filter:drop-shadow(0 2px 8px rgba(0,0,0,.22))}
.sidebar .brand-word,.app-loading-shell .brand-word{color:#f6fbff}.sidebar .brand-word .brand-dv,.app-loading-shell .brand-word .brand-dv{color:#27e1a2}
body[data-experience="classic"]{--brand-navy:#07233f;--brand-teal:#0b6971;--brand-emerald:#17a978;--accent:#087966;--accent-soft:#def3ec}
body[data-experience="modern"]{--brand-navy:#0a2947;--brand-teal:#087786;--brand-emerald:#16a67d;--accent:#08777d;--accent-soft:#dff2f1}
body[data-experience="premium"]{--brand-navy:#071e38;--brand-teal:#0a7382;--brand-emerald:#18b786;--accent:#08756d;--accent-soft:#dcf3eb}
html[data-appearance="dark"] body[data-experience="classic"]{--accent:#62cfa9;--accent-soft:#173b32;--focus:rgba(98,207,169,.34)}
html[data-appearance="dark"] body[data-experience="modern"]{--accent:#55d3c0;--accent-soft:#173b3b;--focus:rgba(85,211,192,.34)}
html[data-appearance="dark"] body[data-experience="premium"]{--accent:#5ad6bd;--accent-soft:#183d39;--focus:rgba(90,214,189,.34)}
.sidebar{background:linear-gradient(180deg,var(--brand-navy,#07233f),#071a27)!important}
.primary-button{background:var(--brand-navy,#07233f)}
.primary-button:hover{background:var(--brand-teal,#0b6971)}
.pro-upgrade-mark{background:transparent url('/fleetdv-mark.png') center/contain no-repeat!important;color:transparent!important;border-radius:0!important;box-shadow:none!important}
.sidebar .brand{font-size:21px!important;gap:10px}.sidebar .brand .brand-mark{width:45px;height:38px}.auth-brand .brand-mark,.loading-brand .brand-mark{width:42px!important;height:35px!important}.legal-brand .brand-mark{width:40px;height:34px}
.sidebar .nav-item.active{background:linear-gradient(135deg,#0a7180,#0b8f78)!important;color:#fff!important;box-shadow:0 8px 20px rgba(5,92,91,.22)!important}
.sidebar .nav-item.active>span{color:#89f4cd!important}
:is(.text-link,.text-button,.setup-toggle){color:var(--accent)!important}
.alert-row .secondary-button{border-color:color-mix(in srgb,var(--accent) 42%,var(--border-strong))!important}
.auth-brand .brand-word{color:var(--text-primary)}
html[data-appearance="dark"] #authShell>.auth-brand .brand-word{color:#f6fbff}
html[data-appearance="dark"] #authShell>.auth-brand .brand-dv{color:#27e1a2}
.auth-story-copy .brand-tagline{display:block;margin:0 0 12px;color:#65e0ba!important;font-size:14px;letter-spacing:.08em;text-transform:uppercase}
@media(max-width:520px){.brand-compact .brand-mark{width:34px;height:29px}.brand-compact .brand-word{font-size:19px}.brand-full{gap:8px}.brand-full .brand-mark{width:38px;height:32px}.brand-full .brand-word{font-size:24px}.auth-brand .brand-mark,.loading-brand .brand-mark{width:38px!important;height:31px!important}}

/* Loading keeps the original mark and follows the selected appearance. */
html[data-appearance="light"] #appLoadingShell{background:var(--app-bg,#f4f7f5);color:var(--text-primary,#16201d)}
html[data-appearance="light"] #appLoadingShell .loading-brand .brand-word{color:var(--text-primary,#16201d)}
html[data-appearance="light"] #appLoadingShell .loading-card small{color:var(--text-secondary,#50605a)}
html[data-appearance="light"] #appLoadingShell .loading-brand .brand-mark{filter:none}
html[data-appearance="dark"] #appLoadingShell .loading-brand .brand-mark{filter:drop-shadow(0 0 2px rgba(255,255,255,.9))}

/* App-wide readability scale; retain the existing typefaces and theme colors. */
.app-shell,.appShell,#appShell{font-weight:500;line-height:1.5}
:is(.app-shell,.appShell,#appShell) :is(h1){font-weight:700}
:is(.app-shell,.appShell,#appShell) :is(h2,h3,h4){font-weight:700}
:is(.app-shell,.appShell,#appShell) :is(button,label,.nav-item){font-weight:600}
/* Text in dialogs may sit outside the app shell. */
body{font-weight:500;line-height:1.5}
:is(.modal,.dialog,[role="dialog"]) :is(label,button){font-weight:600}

/* Public pages: brand green text meets contrast on light backgrounds (mint/bright green was 1.6-3.6:1; audit report M14).
   The logo wordmark keeps its brand colours. */
.legal-kicker,.legal-doc a{color:#087652!important}
.hero h1 em,.section h2 em{color:#0b8a5f}
.dark-section h2 em{color:#63d5ad}
html:not([data-appearance="dark"]) .auth-story-copy .brand-tagline{color:#087652!important}

/* Secondary text on the public pages: demo-card labels, pricing copy and notes were #667573-#8a9695 on white (3:1 to 4.8:1); now #56635f (6:1). */
.demo-top small,.metric-row small,.metric-row span,.chart-head small,.chart-head>span,.chart-months,.value-strip p,.journey-flow span,.decision-panel article small,.price span,.price-card>p,.period-visual span,.auth-route-note,.performance-card dt{color:#56635f}
.steps-grid li>span{color:#07705d}

/* Shared mobile shell clearance and Profit & Earnings density correction. */
@media(max-width:780px){
  :root{--mobile-sticky-header-height:0px;--mobile-content-start-gap:12px}
  .workspace{scroll-padding-top:calc(var(--mobile-sticky-header-height) + env(safe-area-inset-top) + var(--mobile-content-start-gap))}
  .workspace-header{
    top:env(safe-area-inset-top)!important;
    isolation:isolate;
    margin-bottom:0!important;
  }
  .workspace-header+.view.active{
    position:relative;
    z-index:0;
    padding-top:var(--mobile-content-start-gap)!important;
    scroll-margin-top:calc(var(--mobile-sticky-header-height) + env(safe-area-inset-top) + var(--mobile-content-start-gap));
  }
  .workspace-header+.view.active>*:first-child{margin-top:0!important}

  #earningsView .profit-detail-list{gap:12px}
  #earningsView .profit-month-card{
    overflow:hidden;
    padding:14px!important;
    background:var(--card-bg)!important;
    color:var(--text-primary)!important;
    border-color:var(--border-default)!important;
  }
  #earningsView .profit-month-head{padding-bottom:11px;border-color:var(--border-subtle)!important}
  #earningsView .profit-month-result{gap:2px}
  #earningsView .profit-month-result span{color:var(--text-secondary)!important;font-size:12px}
  #earningsView .profit-month-result strong{font-size:24px;line-height:1.12}
  #earningsView .profit-formula-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    margin:12px 0 9px!important;
  }
  #earningsView .profit-formula-grid>div{
    min-width:0;
    min-height:76px;
    padding:9px!important;
    border:1px solid var(--border-subtle);
    border-radius:10px;
    background:var(--metric-bg)!important;
    color:var(--text-primary)!important;
  }
  #earningsView .profit-formula-grid span{
    min-height:2.6em;
    color:var(--text-secondary)!important;
    font-size:10px;
    line-height:1.3;
  }
  #earningsView .profit-formula-grid strong{
    margin-top:5px;
    color:var(--text-primary)!important;
    font-size:13px;
    line-height:1.2;
    white-space:nowrap;
  }
  #earningsView .profit-equation{padding:9px 10px;font-size:11px;line-height:1.45}
  #earningsView .profit-detail-columns{gap:14px;margin-top:14px}
  #earningsView .profit-detail-section{gap:0}
  #earningsView .profit-detail-note{margin:5px 0 8px;line-height:1.4}
  #earningsView .profit-detail-row{
    align-items:baseline;
    gap:12px;
    padding:8px 0;
    border-bottom:1px solid var(--border-subtle)!important;
    background:transparent!important;
    color:var(--text-primary)!important;
  }
  #earningsView .profit-detail-row:last-child{border-bottom:0!important}
  #earningsView .profit-detail-row span{min-width:0;color:var(--text-secondary)!important;line-height:1.35}
  #earningsView .profit-detail-row strong{flex:0 0 auto;color:var(--text-primary)!important;font-size:12px;white-space:nowrap}
  #earningsView .profit-capital-note{border-color:var(--border-subtle)!important}
}

@media(max-width:360px){
  #earningsView .profit-formula-grid{gap:5px!important}
  #earningsView .profit-formula-grid>div{padding:8px 6px!important}
  #earningsView .profit-formula-grid strong{font-size:12px}
}

/* PAY-001-AC6: bound the nested Monthly Earnings toolbar on mobile only. */
@media(max-width:780px){
  #monthlyEarningsExperience > .section-toolbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;min-width:0;max-width:100%}
  #monthlyEarningsExperience > .section-toolbar > div{min-width:0;max-width:100%}
  #monthlyEarningsExperience > .section-toolbar > .profit-vehicle-filter{min-width:0;width:100%;max-width:100%}
  #monthlyEarningsExperience #profitVehicleFilter{min-width:0;width:100%;max-width:100%;min-height:44px}
}

/* Product Version 125: structural mobile booking layout. */
@media (max-width:780px){
  .bookings-mobile-cards{
    padding-bottom:calc(var(--mobile-nav-height,72px) + env(safe-area-inset-bottom) + 32px);
  }

  .booking-mobile-card{
    min-width:0;
    padding:12px;
    overflow:hidden;
  }

  .booking-mobile-head{
    display:grid!important;
    grid-template-columns:88px minmax(0,1fr)!important;
    column-gap:16px!important;
    align-items:start!important;
    min-width:0;
  }

  .booking-mobile-thumbnail-cell{
    grid-column:1;
    min-width:0;
    width:88px;
    margin:0;
    align-self:start;
  }

  .booking-mobile-thumbnail-cell>.fleet-vehicle-image{
    position:relative!important;
    inset:auto!important;
    width:88px!important;
    min-width:88px!important;
    max-width:88px!important;
    height:66px!important;
    margin:0!important;
    transform:none!important;
    aspect-ratio:auto!important;
    overflow:hidden;
    border-radius:11px;
  }

  .booking-mobile-thumbnail-cell .booking-vehicle-image{
    display:block;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:3px;
    position:static!important;
    transform:none!important;
    object-fit:contain;
    object-position:center;
  }

  .booking-mobile-identity{
    grid-column:2;
    min-width:0!important;
    max-width:100%;
    overflow:hidden;
    display:grid;
    gap:3px;
    align-content:start;
  }

  .booking-mobile-guest,
  .booking-mobile-identity strong,
  .booking-mobile-identity small{
    display:block;
    min-width:0;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .booking-mobile-identity strong{
    white-space:normal;
    overflow-wrap:anywhere;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-clamp:2;
  }

  .booking-mobile-identity small{white-space:normal;line-height:1.35}
  .booking-mobile-identity>.status-pill{justify-self:start;margin-top:5px;max-width:100%}
  .booking-mobile-result{margin:9px 0 7px!important;padding:8px 0!important}
  .booking-mobile-card details summary{padding:2px 0!important}
}

@media (max-width:360px){
  .booking-mobile-head{grid-template-columns:80px minmax(0,1fr)!important;column-gap:12px!important}
  .booking-mobile-thumbnail-cell{width:80px}
  .booking-mobile-thumbnail-cell>.fleet-vehicle-image{width:80px!important;min-width:80px!important;max-width:80px!important;height:60px!important}
}
/* Batch 1 (2026-11-20, H2): the row delete button is at least 44px on phones and tablets */
@media (max-width:1024px),(pointer:coarse){
  #bookingsView [data-delete-booking]{min-width:44px!important;min-height:44px!important}
}

/* Product Version 126 — shared vehicle intelligence clarity */
.intelligence-filter{display:inline-flex;align-items:center;gap:8px;color:var(--text-secondary);font-size:.82rem;font-weight:700}
.intelligence-filter select{min-height:44px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text-primary);padding:0 34px 0 12px}
.vehicle-intelligence-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}
.mileage-concepts>div{display:grid;gap:3px}
.mileage-concepts small,.loan-intelligence small,.loan-history-head small,.decision-why li{color:var(--text-secondary)}
.decision-why{margin:14px 0;padding:14px 16px;border-radius:12px;background:color-mix(in srgb,var(--surface-raised) 82%,transparent);border:1px solid var(--border)}
.decision-why ul{display:grid;gap:7px;margin:8px 0 0;padding-left:18px}
.overview-profit-info p{color:var(--text-primary);line-height:1.45}
.overview-profit-info button{display:block;margin-top:8px;border:0;background:none;color:var(--accent);font:inherit;font-weight:750;padding:0;cursor:pointer}
.signal.neutral,.vehicle-profile-lifecycle span,.break-progress,.profit-detail-note{color:var(--text-secondary)}
.loan-intelligence>div[title]{cursor:help}

@media(max-width:760px){
  .intelligence-filter{width:100%;justify-content:space-between}
  .intelligence-filter select{flex:1;min-width:0}
  .vehicle-intelligence-actions{display:grid;grid-template-columns:1fr}
  .vehicle-intelligence-actions .secondary-button,.vehicle-intelligence-actions .vehicle-profile-link{width:100%;justify-content:center}
  .mileage-concepts{grid-template-columns:1fr!important}
  .decision-why{padding:12px 14px}
}

/* Wave 6: separate Mileage filter and actions within the mobile viewport. */
@media(max-width:780px){
  #mileageView > .section-toolbar{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;gap:12px;align-items:stretch}
  #mileageView > .section-toolbar > div{min-width:0;max-width:100%}
  #mileageView > .section-toolbar > .toolbar-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;gap:10px;align-items:stretch}
  #mileageView > .section-toolbar > .toolbar-actions > .intelligence-filter{display:grid;grid-template-columns:auto minmax(0,1fr);width:100%;min-width:0;max-width:100%;gap:8px;align-items:center}
  #mileageView #mileageLifecycleFilter{width:100%;min-width:0;max-width:100%;min-height:44px;box-sizing:border-box}
  #mileageView > .section-toolbar > .toolbar-actions > button{width:100%;min-width:0;max-width:100%;min-height:44px;white-space:normal;box-sizing:border-box}
}

/* Product Version 127 — data-integrity and analytical presentation corrections. */
#odometerForm .form-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px}

/* Profit detail uses the same semantic surfaces in every experience and appearance. */
#earningsView .profit-month-card,
#earningsView .annual-kpi-card,
#earningsView .annual-month-card,
#earningsView .annual-vehicle-card{background:var(--surface)!important;color:var(--text-primary)!important;border-color:var(--border)!important}
#earningsView .profit-formula-grid{gap:8px;margin:12px 0 8px}
#earningsView .profit-formula-grid>div,
#earningsView .annual-vehicle-metrics>div,
#earningsView .annual-highlights article{min-width:0;background:var(--surface-raised)!important;color:var(--text-primary)!important;border:1px solid var(--border)!important}
#earningsView :is(.profit-formula-grid,.annual-vehicle-metrics)>div span,
#earningsView :is(.profit-formula-grid,.annual-vehicle-metrics)>div small{color:var(--text-secondary)!important}
#earningsView :is(.profit-formula-grid,.annual-vehicle-metrics)>div strong{color:var(--text-primary)!important}
#earningsView .profit-formula-grid>div{min-height:0;padding:10px 11px}
#earningsView .profit-detail-row{background:transparent!important;color:var(--text-primary)!important;border-color:var(--border)!important}
#earningsView .profit-detail-row span{color:var(--text-secondary)!important}
#earningsView .profit-detail-row strong{color:var(--text-primary)!important}

/* Canonical analytical vehicle imagery: recognizable full vehicle, never a strip. */
:is(#earningsView,#performanceView,#decisionsView,#mileageView,#maintenanceView,#expensesView) .fleet-vehicle-image,
.pricing-signal-card .fleet-vehicle-image{background:var(--surface-raised)!important;border:1px solid var(--border);border-radius:12px}
:is(#earningsView,#performanceView,#decisionsView,#mileageView,#maintenanceView,#expensesView) .fleet-vehicle-image>img,
.pricing-signal-card .fleet-vehicle-image>img{object-fit:contain!important;object-position:var(--vehicle-image-position,50% 50%)!important;padding:5px}

#earningsView .annual-vehicle-card{grid-template-columns:minmax(150px,190px) minmax(0,1fr);align-items:start}
#earningsView .annual-vehicle-media{min-height:0;height:auto;aspect-ratio:4/3;margin:14px 0 14px 14px;background:transparent;overflow:visible}
#earningsView .annual-vehicle-media>.fleet-vehicle-image{width:100%;height:100%;min-height:0;aspect-ratio:4/3}
#earningsView .annual-vehicle-media>.annual-vehicle-fallback{min-height:0;height:100%;border-radius:12px}

#decisionsView .decision-vehicle-photo{width:88px;height:66px;min-width:88px}
#decisionsView .decision-vehicle-photo>.fleet-vehicle-image{width:88px;height:66px;aspect-ratio:4/3}
.pricing-signal-card>.fleet-vehicle-image{width:88px;height:66px;aspect-ratio:4/3;align-self:start}

@media(max-width:780px){
  #odometerForm .form-actions{grid-template-columns:1fr}
  #earningsView .annual-vehicle-card{grid-template-columns:1fr}
  #earningsView .annual-vehicle-media{width:auto;margin:12px 12px 0;aspect-ratio:16/10}
  #earningsView .annual-vehicle-media>.fleet-vehicle-image{aspect-ratio:16/10}
}

/* Frozen FleetDV Midnight Teal theme. Values follow the approved light/dark references. */
body[data-experience] {
  --app-bg:#f6f9fb;
  --section-bg:#ffffff;
  --card-bg:#ffffff;
  --card-elevated-bg:#f7fafb;
  --metric-bg:#eef6f5;
  --interactive-bg:#ffffff;
  --text-primary:#13232c;
  --text-secondary:#4c606b;
  --text-muted:#5a6870;
  --text-disabled:#9ba9ae;
  --border-subtle:#e4ecee;
  --border-default:#d5e1e4;
  --accent:#00786e;
  --positive:#087e68;
  --negative:#b63d44;
  --warning:#8d6010;
  --info:#286fa6;
  --theme-shadow:0 7px 22px rgba(24,54,66,.07);
  --brand-navy:#ffffff;
  --brand-teal:#007d76;
  --brand-emerald:#008f82;
}

html[data-appearance="dark"] body[data-experience] {
  --app-bg:#00141d;
  --section-bg:#061d26;
  --card-bg:#08212a;
  --card-elevated-bg:#0b2932;
  --metric-bg:#0d3038;
  --interactive-bg:#08242d;
  --text-primary:#f4fafb;
  --text-secondary:#c4d3d8;
  --text-muted:#95aab0;
  --text-disabled:#68818a;
  --border-subtle:#12343d;
  --border-default:#20505a;
  --accent:#00d9c7;
  --positive:#22d1a1;
  --negative:#ff8588;
  --warning:#f2c36a;
  --info:#80c6f3;
  --theme-shadow:0 12px 30px rgba(0,0,0,.22);
  --brand-navy:#001a23;
  --brand-teal:#00a999;
  --brand-emerald:#18cfad;
}

body[data-experience] {
  background:var(--app-bg)!important;
  color:var(--text-primary)!important;
}
body[data-experience] .app-shell,
body[data-experience] .workspace,
body[data-experience] .author-footer { background:var(--app-bg)!important; color:var(--text-primary)!important; }
body[data-experience] .sidebar {
  background:var(--brand-navy)!important;
  color:var(--text-primary)!important;
  border-right:1px solid var(--border-subtle);
}
body[data-experience] .sidebar .brand-word,
body[data-experience] .sidebar .brand-word .brand-dv { color:var(--text-primary)!important; }
body[data-experience] .sidebar .nav-item { color:var(--text-secondary)!important; }
body[data-experience] .sidebar .nav-item:hover { color:var(--text-primary)!important; background:var(--card-elevated-bg)!important; }
body[data-experience] .sidebar .nav-item.active {
  color:#073c3a!important;
  background:linear-gradient(105deg,#d9f7ef,#baf0e5)!important;
  box-shadow:inset 3px 0 #00a994,0 4px 13px rgba(0,137,123,.12)!important;
}
html[data-appearance="dark"] body[data-experience] .sidebar .nav-item.active {
  color:#f2ffff!important;
  background:linear-gradient(105deg,#006a70,#008c7f)!important;
  box-shadow:inset 3px 0 #19e6d0,0 5px 16px rgba(0,210,190,.15)!important;
}
body[data-experience] .sidebar .nav-item.active>span { color:var(--accent)!important; }
html[data-appearance="dark"] body[data-experience] .sidebar .nav-item.active>span { color:#76fff0!important; }
body[data-experience] .sidebar .profile { border-top:1px solid var(--border-subtle); color:var(--text-primary); }
body[data-experience] .workspace-header { border-color:var(--border-subtle)!important; }
body[data-experience] .workspace-header h1,
body[data-experience] .workspace-header p { color:var(--text-primary)!important; }
body[data-experience] .sample-pill { color:var(--accent)!important; background:var(--metric-bg)!important; border-color:var(--border-default)!important; }

body[data-experience] :is(.panel,.metric-card,.mini-metric,.feature-panel,.fleet-panel,.vehicle-card,.fleet-pulse-card,.trip-action-card,.booking-mobile-card,.bookings-data-surface,.expense-vehicle-card,.vehicle-profile,.vehicle-profile-section,.expense-category-panel,.expense-transactions-panel,.maintenance-card,.maintenance-vehicle-card,.goal-card,.report-card,.loan-card,.mileage-card,.decision-card,.calendar-board,.calendar-mini-month,.account-identity,.account-profile-card,.account-appearance-card,.account-plan-card,.account-support-card,.account-danger-card,.setup-launchpad,.setup-step,.modal,.pro-upgrade-modal,.calendar-booking-modal,.account-panel,.experience-profile-menu,.experience-command-palette>section,.admin-stat,.admin-loading-card) {
  background-color:var(--card-bg)!important;
  color:var(--text-primary)!important;
  border-color:var(--border-default)!important;
  box-shadow:var(--theme-shadow);
}
body[data-experience] :is(.data-table,.annual-financial-table,.fleet-table-wrap,.annual-table-wrap) { background:var(--card-bg)!important; color:var(--text-primary)!important; border-color:var(--border-default)!important; }
body[data-experience] :is(.data-table thead,.annual-financial-table thead) { background:var(--card-elevated-bg)!important; }
body[data-experience] :is(.data-table tr,.annual-financial-table tr,.loan-payment-row,.expense-transaction-row,.service-event) { border-color:var(--border-subtle)!important; }
body[data-experience] :is(.data-table tbody tr,.annual-financial-table tbody tr):hover { background:var(--card-elevated-bg)!important; }
body[data-experience] :is(input,select,textarea,.secondary-button,.more-button,.experience-menu-options button,.mobile-period-button,.experience-options button,.experience-command-trigger) {
  background:var(--interactive-bg)!important; color:var(--text-primary)!important; border-color:var(--border-default)!important;
}
body[data-experience] :is(input,textarea)::placeholder { color:var(--text-muted)!important; opacity:1; }
body[data-experience] :is(input,select,textarea,button,a):focus-visible { outline:3px solid color-mix(in srgb,var(--accent) 58%,transparent)!important; outline-offset:2px; }
body[data-experience] :is(.text-link,.text-button,.setup-toggle,.nav-item.active>span) { color:var(--accent)!important; }
body[data-experience] .primary-button { background:var(--brand-teal,#007d76)!important; color:#fff!important; }
body[data-experience] .primary-button:hover { background:var(--brand-emerald,#008f82)!important; }
body[data-experience] .secondary-button { color:var(--accent)!important; }
body[data-experience] .modal-backdrop { background:rgba(0,16,23,.7)!important; }
body[data-experience] .metric-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
body[data-experience] .metric-card {
  min-height:148px;
  height:150px;
  padding:17px 18px;
  border-radius:14px;
  border:1px solid var(--border-default)!important;
  position:relative;
  overflow:hidden;
}
body[data-experience] .metric-card::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--accent); opacity:.85; }
body[data-experience] .metric-card strong { color:var(--text-primary)!important; }
body[data-experience] .metric-card small { color:var(--text-secondary)!important; }
body[data-experience] .metric-icon { border-radius:10px; color:var(--accent)!important; background:var(--metric-bg)!important; }
body[data-experience] .metric-grid .metric-card:nth-child(5) { grid-column:auto; }
body[data-experience] .chart-grid line,body[data-experience] .gridline { stroke:var(--border-subtle)!important; }
body[data-experience] .chart-tooltip,body[data-experience] .tooltip { background:var(--card-elevated-bg)!important; color:var(--text-primary)!important; border-color:var(--border-default)!important; }

@media (max-width:1100px) {
  body[data-experience] .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:780px) {
  body[data-experience] .workspace { padding-left:16px; padding-right:16px; }
  body[data-experience] .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:520px) {
  body[data-experience] .metric-grid { gap:10px; }
  body[data-experience] .metric-card { min-height:140px; height:140px; padding:13px 12px; }
  body[data-experience] .metric-card strong { font-size:19px; }
  body[data-experience] .metric-card:nth-child(5) { grid-column:1/-1; }
}

/* Staging UI: readable, consistent page descriptions. */
#overviewGreetingContext,#bookingsView .section-toolbar p,#vehiclesView .section-toolbar p,#calendarView .section-toolbar p,#csv_importView .start-intro,#monthlyProfitSubtitle,#yearlyEarningsSubtitle{font-weight:600!important}

/* Illustrated / Contextual Loading — option 1 from the approved reference. */
body[data-experience] .fleetdv-context-loader {
  box-sizing:border-box;
  width:min(100%,620px);
  min-height:clamp(290px,52vh,470px);
  margin:0 auto;
  padding:22px 20px 30px;
  display:grid;
  justify-items:center;
  align-content:center;
  gap:8px;
  text-align:center;
  color:var(--text-primary);
}
body[data-experience] .view[data-context-loading="true"] > :not([data-scoped-notice]) { display:none!important; }
body[data-experience] .fleetdv-context-loader__art {
  width:min(100%,380px);
  height:clamp(140px,25vh,210px);
  display:grid;
  place-items:center;
}
body[data-experience] .fleetdv-context-loader__art svg { width:100%; height:100%; overflow:visible; }
body[data-experience] .fleetdv-context-loader>strong { font:700 26px/1.25 "Manrope",sans-serif; color:var(--text-primary)!important; }
body[data-experience] .fleetdv-context-loader>p { max-width:390px; margin:0; color:var(--text-primary)!important; font-size:17px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
body[data-experience] .fleetdv-loading-dots { display:flex; align-items:center; gap:6px; height:12px; margin-top:5px; }
body[data-experience] .fleetdv-loading-dots i { width:6px; height:6px; border-radius:50%; background:var(--accent); animation:fleetdv-loading-dot 1.05s ease-in-out infinite; }
body[data-experience] .fleetdv-loading-dots i:nth-child(2) { animation-delay:.14s; }
body[data-experience] .fleetdv-loading-dots i:nth-child(3) { animation-delay:.28s; }
@keyframes fleetdv-loading-dot { 0%,60%,100% { transform:translateY(0); opacity:.45; } 30% { transform:translateY(-4px); opacity:1; } }
html[data-appearance="dark"] body[data-experience] .fleetdv-context-loader__art svg circle:first-child { fill:#0b2c33; }
html[data-appearance="dark"] body[data-experience] .fleetdv-context-loader__art svg circle:nth-child(2),
html[data-appearance="dark"] body[data-experience] .fleetdv-context-loader__art svg circle:nth-child(3) { fill:#10363b; }
html[data-appearance="dark"] body[data-experience] .fleetdv-context-loader__art svg ellipse { fill:#0c3037; }
@media (max-width:520px) {
  body[data-experience] .fleetdv-context-loader { min-height:clamp(270px,46vh,390px); padding:16px 12px 22px; }
  body[data-experience] .fleetdv-context-loader__art { width:min(100%,310px); height:150px; }
  body[data-experience] .fleetdv-context-loader>strong { font-size:24px; }
  body[data-experience] .fleetdv-context-loader>p { font-size:16px; }
}
@media (prefers-reduced-motion:reduce) {
  body[data-experience] .fleetdv-loading-dots i { animation:none; opacity:.75; }
}

/* Approved import and fleet-fee presentation; existing actions remain authoritative. */
.approved-upload-layout{display:grid;grid-template-columns:minmax(125px,180px) minmax(240px,1fr) minmax(190px,245px);gap:24px;align-items:center}
.approved-upload-art{display:grid;place-items:center;color:#00bca7;padding:12px;border-right:1px solid var(--border,#b9d2cc)}
.approved-upload-art svg{display:block;width:min(100%,170px);height:auto}
.approved-upload-main{min-width:0}.approved-upload-main h2{margin-top:0}.approved-upload-main p{line-height:1.5}
.approved-upload-main .start-drop{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:flex-start}
.approved-upload-links{display:flex;flex-direction:column;align-self:stretch;justify-content:center;border-left:1px solid var(--border,#b9d2cc);padding-left:20px}
.approved-upload-links button{display:flex;justify-content:space-between;gap:12px;text-align:left;padding:14px 4px;border-bottom:1px solid var(--border,#b9d2cc);font-weight:600}
.approved-upload-status{margin:18px 0 0!important;padding:12px 16px;border-radius:9px;background:rgba(0,150,133,.12);font-weight:600}
.approved-rate-choices{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.approved-rate-choices legend{font-weight:700;margin-bottom:10px}.approved-rate-choices label{display:flex;align-items:center;gap:10px;border:1px solid var(--border,#b9d2cc);border-radius:10px;padding:14px;cursor:pointer}
.approved-rate-choices label:has(input:checked){border-color:#009b82;background:rgba(0,150,120,.12)}.approved-rate-choices input{width:19px;height:19px;flex:none}.approved-rate-choices span{display:grid}.approved-rate-choices strong{font-size:1.1rem}.approved-rate-choices small{font-weight:600}
.approved-fee-confirm{display:flex!important;align-items:center;gap:10px}.approved-fee-confirm input{width:19px!important;height:19px!important;flex:none;margin:0}
@media(max-width:900px){.approved-upload-layout{grid-template-columns:120px minmax(0,1fr)}.approved-upload-links{grid-column:1/-1;border-left:0;border-top:1px solid var(--border,#b9d2cc);padding:8px 0 0;flex-direction:row;flex-wrap:wrap;gap:12px}.approved-upload-links button{flex:1;min-width:145px}}
@media(max-width:600px){.approved-upload-layout{grid-template-columns:minmax(0,1fr)}.approved-upload-art{border:0;border-bottom:1px solid var(--border,#b9d2cc)}.approved-upload-art svg{width:115px}.approved-upload-links{grid-column:auto;flex-direction:column}.approved-rate-choices{grid-template-columns:1fr}.approved-rate-choices label{padding:10px}}

/* Compact approved rate controls; native radios remain keyboard accessible. */
#startFeesPanel .start-vehicle-fee{grid-template-columns:minmax(160px,1fr) minmax(280px,1.35fr) minmax(150px,.7fr) auto;gap:8px 14px}
#startFeesPanel .start-vehicle-fee h4{grid-column:1;grid-row:1;align-self:end}
#startFeesPanel .start-vehicle-fee>p{grid-column:1;grid-row:2;align-self:start;font-size:.8rem}
#startFeesPanel .start-vehicle-fee>fieldset{grid-column:2;grid-row:1 / 3;display:flex;flex-flow:row wrap;align-items:center;gap:4px;min-width:0}
#startFeesPanel .start-rate-choice{display:flex;align-items:center;gap:4px;width:auto;min-width:0;padding:5px;border-radius:7px;white-space:nowrap}
#startFeesPanel .start-rate-choice input{width:16px;height:16px;flex:0 0 auto;margin:0}
#startFeesPanel .start-rate-choice small{display:none}
#startFeesPanel .start-vehicle-fee>label{grid-column:3;grid-row:1 / 3;display:grid;gap:4px}
#startFeesPanel .start-vehicle-fee>button{grid-column:4;grid-row:1 / 3}
.approved-upload-main .start-drop{display:flex!important;flex-flow:row nowrap!important;gap:12px!important;min-height:68px!important}
.approved-upload-main .start-drop .start-choose{width:auto!important;margin:0!important;align-self:center!important}
.approved-upload-main .start-drop .start-drop-copy{width:auto!important;min-width:0!important;flex:1 1 auto!important;margin:0!important}
@media(max-width:1050px){#startFeesPanel .start-vehicle-fee{grid-template-columns:1fr 1fr}#startFeesPanel .start-vehicle-fee h4,#startFeesPanel .start-vehicle-fee>p,#startFeesPanel .start-vehicle-fee>fieldset,#startFeesPanel .start-vehicle-fee>label,#startFeesPanel .start-vehicle-fee>button{grid-column:auto;grid-row:auto}#startFeesPanel .start-vehicle-fee>fieldset{grid-column:1/-1}}
@media(max-width:600px){#startFeesPanel .start-vehicle-fee{grid-template-columns:1fr}#startFeesPanel .start-vehicle-fee>fieldset{grid-column:auto}.approved-upload-main .start-drop{flex-wrap:wrap!important}}
/* Current and scheduled values are informational; only a checked radio is a proposed change. */
#startFeesPanel .approved-vehicle-identity p{line-height:1.4;font-weight:600}
#startFeesPanel .approved-next-fee{font-size:.76rem;color:var(--muted,#4b6964)}
#startFeesPanel .start-rate-choice:has(input:checked){background:#087d67!important;color:#fff!important;box-shadow:0 0 0 1px #087d67}
.approved-confirm{font-size:1rem;line-height:1.5}.approved-confirm h3{font-size:1.3rem;line-height:1.25;margin:0 0 16px}.approved-confirm p{margin:10px 0}.approved-dialog-actions button{min-height:42px;padding:0 18px}

/* Per-vehicle fee rows: outline and label the vehicle's current rate (audit item 16). */
#startFeesPanel .start-rate-choice[data-current-rate-choice]{box-shadow:inset 0 0 0 2px var(--accent)}
#startFeesPanel .start-rate-choice[data-current-rate-choice]>span{display:flex;flex-direction:column;align-items:center;line-height:1.1}
#startFeesPanel .start-rate-current{font-style:normal;font-size:11px;font-weight:700;color:var(--accent);letter-spacing:.02em}
#startFeesPanel .start-rate-choice:has(input:checked) .start-rate-current{color:#fff}

/* Fleet fee cards: themed radio instead of the browser's blue default; accent-coloured checkboxes (audit item 14). */
#csv_importView .approved-rate-choices input[type=radio]{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin:0;flex:0 0 18px;border:2px solid var(--border-default);border-radius:50%;background:var(--interactive-bg);display:inline-grid;place-content:center;cursor:pointer}
#csv_importView .approved-rate-choices input[type=radio]::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent);transform:scale(0);transition:transform .12s ease}
#csv_importView .approved-rate-choices input[type=radio]:checked{border-color:var(--accent)}
#csv_importView .approved-rate-choices input[type=radio]:checked::before{transform:scale(1)}
#csv_importView .approved-rate-choices input[type=radio]:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:2px}
:is(#csv_importView,#featuresView) input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}

/* Fee settings polish: card gap, no focus box on focus-target headings, one-line side links (audit minor 6). */
#csv_importView .panel+#startFeesPanel,#csv_importView #startFeesPanel{margin-top:16px}
#csv_importView h2[tabindex="-1"]:focus{outline:none}
#csv_importView .approved-upload-links .approved-link-label{white-space:nowrap}

/* Bounded layout corrections for existing expense and workflow controls. */
#expenseVehicleGrid,#mileageVehicleGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
#tripcenterView .trip-vehicle-image img,#mileageView .vehicle-photo img{object-fit:contain}
#tripcenterView [id^="workflowControls-"],#reconciliationView [id^="workflowControls-"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--border,#b9d2cc);border-radius:12px}
#tripcenterView [id^="workflowControls-"] label:first-child,#reconciliationView [id^="workflowControls-"] label:first-child{grid-column:1/-1}
#tripcenterView [id^="workflowControls-"] label,#reconciliationView [id^="workflowControls-"] label{display:grid;gap:6px;min-width:0}
#mileageView .toolbar-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:700px){#expenseVehicleGrid,#mileageVehicleGrid{grid-template-columns:1fr}#tripcenterView [id^="workflowControls-"],#reconciliationView [id^="workflowControls-"]{grid-template-columns:1fr}#tripcenterView [id^="workflowControls-"] label:first-child,#reconciliationView [id^="workflowControls-"] label:first-child{grid-column:auto}}
#expensesView .expense-vehicle-card{display:flex;flex-direction:column;min-width:0}
#expensesView .expense-vehicle-media{order:2;aspect-ratio:auto;height:auto;min-height:0;background:transparent;overflow:visible;padding:0 16px 16px}
#expensesView .expense-vehicle-media>.fleet-vehicle-image,#expensesView .expense-vehicle-media>.vehicle-image-fallback,#expensesView .expense-vehicle-media>.expense-vehicle-image{display:none}
#expensesView .expense-card-add{position:static;min-height:38px}
#expensesView .expense-vehicle-empty{border:0;padding:0;margin-top:12px}
.approved-rate-choices label{color:var(--ink,#17201e)}.approved-rate-choices small{font-size:.88rem}
.start-vehicle-fee{display:grid;grid-template-columns:minmax(155px,1fr) minmax(270px,2fr) minmax(150px,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid var(--border,#b9d2cc);border-radius:12px;margin:10px 0;min-width:0}
.start-vehicle-fee h4{margin:0}.start-vehicle-fee p{margin:0}.start-vehicle-fee fieldset{grid-row:span 2;display:flex;gap:8px;flex-wrap:wrap;border:0;padding:0;margin:0}.start-vehicle-fee fieldset legend{font-weight:600}.start-vehicle-fee label{min-width:0}.start-vehicle-fee input[type=date]{max-width:100%}
.approved-confirm-backdrop{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:#001b1dc9;padding:20px}.approved-confirm{width:min(460px,100%);background:var(--surface,#fff);color:var(--ink,#17201e);padding:22px;border-radius:14px;border:1px solid var(--border,#b9d2cc)}.approved-confirm .approved-fee-confirm{margin:14px 0}.approved-confirm :focus-visible,.approved-rate-choices :focus-visible{outline:3px solid #00bba7;outline-offset:3px}
@media(max-width:900px){.start-vehicle-fee{grid-template-columns:1fr 1fr}.start-vehicle-fee fieldset{grid-column:1/-1;grid-row:auto}}
@media(max-width:520px){.start-vehicle-fee{grid-template-columns:1fr}.start-vehicle-fee fieldset{grid-column:auto}}
.approved-upload-art-crop{position:relative;display:block;width:170px;max-width:100%;aspect-ratio:180/150;overflow:hidden}
.approved-upload-art-crop img{position:absolute;max-width:none;width:635.6%;height:auto;left:-27%;top:-40%}
html:not([data-appearance="dark"]) .approved-upload-art-crop img{filter:invert(1) hue-rotate(180deg)}
#expensesView .expense-vehicle-content{padding:18px 18px 10px}
#expensesView .expense-vehicle-identity{align-items:center}
#expensesView .expense-vehicle-identity>div{min-width:0}
#expensesView .expense-vehicle-identity>div::before{content:'▣';display:inline-grid;place-items:center;width:38px;height:38px;margin-right:10px;border-radius:10px;background:rgba(0,150,133,.12);color:#009b88;float:left;font-size:20px}
#expensesView .expense-vehicle-primary{margin:12px 0;padding:10px 0;border:0}
#expensesView .expense-vehicle-facts{gap:8px}
#tripcenterView .trip-vehicle-image .fleet-vehicle-image,#tripcenterView .fleet-vehicle-image.trip-vehicle-image{min-width:64px;width:64px;height:52px;aspect-ratio:4/3}
#tripcenterView .trip-vehicle-image img,#mileageView .fleet-vehicle-image img{object-fit:contain}
.approved-upload-main .start-drop{padding:12px;min-height:70px;align-items:center;justify-content:flex-start}
.approved-upload-main .start-drop .start-choose{order:0;margin:0;flex:0 0 auto;max-width:100%}
.approved-upload-main .start-drop .start-drop-copy{order:1;flex:1 1 140px;min-width:0;width:auto;text-align:center;border-left:1px solid var(--border,#b9d2cc);padding-left:12px}
.approved-upload-main .start-drop .start-file{order:2;flex-basis:100%}
@media(max-width:600px){.approved-upload-main .start-drop .start-drop-copy{border-left:0;padding-left:0}}
/* Refined Option E and fee controls. */
.approved-upload-layout{grid-template-columns:minmax(135px,19%) minmax(300px,1fr) minmax(200px,25%);gap:20px}
.approved-upload-art{padding:4px 12px 4px 0}.approved-upload-art-crop{width:180px}
.approved-upload-main .start-drop{min-height:64px!important;padding:10px 14px!important;border:1px dashed #4aa99e!important;border-radius:14px!important}
.approved-upload-main .start-drop .start-drop-copy{white-space:nowrap;font-weight:600;font-size:.92rem}
.approved-upload-links button{color:var(--accent,#009c8e);font-size:.95rem}
.approved-link-label{display:inline-flex;align-items:center;gap:11px}.approved-link-icon{font-size:22px;line-height:1;width:25px;text-align:center}
.approved-upload-status{display:flex;align-items:center;min-height:43px}.approved-upload-status::before{content:'▣';margin-right:10px;font-size:18px;color:#00ac9b}
.approved-rate-choices label{min-height:86px;padding:16px!important}.approved-rate-choices strong{font-size:1.35rem}.approved-rate-choices small{font-size:1rem}
#startFleetFeeForm .approved-fee-confirm{justify-content:flex-start!important;min-height:35px}#startFleetFeeForm .approved-fee-confirm span{font-size:.95rem}
.approved-fleet-summary{display:flex;align-items:center;gap:16px;padding:13px 16px;border:1px solid var(--border,#b9d2cc);border-radius:10px;margin:14px 0;background:rgba(0,150,133,.06)}
.approved-fleet-summary>span{padding:5px 14px;border-radius:99px;background:rgba(0,150,110,.15);font-weight:700}.approved-fleet-summary p{margin:0;border-left:1px solid var(--border,#b9d2cc);padding-left:16px}
#startFeesPanel .start-vehicle-fee{grid-template-columns:minmax(165px,1fr) minmax(220px,1.05fr) minmax(160px,.7fr) auto;align-items:center}
#startFeesPanel .approved-vehicle-identity{grid-column:1;min-width:0}#startFeesPanel .approved-vehicle-identity h4{margin:0 0 5px}#startFeesPanel .approved-vehicle-identity p{margin:0;font-size:.82rem}
#startFeesPanel .start-vehicle-fee>fieldset{grid-column:2;grid-row:auto;display:flex;flex-wrap:wrap;border:1px solid var(--border,#b9d2cc);border-radius:9px;padding:3px;gap:0}
#startFeesPanel .start-vehicle-fee>fieldset legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
#startFeesPanel .start-rate-choice{position:relative;justify-content:center;flex:1 0 27%;padding:8px 9px!important;min-height:38px;font-size:1rem;cursor:pointer}
#startFeesPanel .start-rate-choice:has(input:checked){background:#176f59;color:white}
#startFeesPanel .start-rate-choice input{position:absolute;width:1px;height:1px;opacity:0}
#startFeesPanel .start-rate-choice:has(input:focus-visible){outline:3px solid #00bba7;outline-offset:2px}
#startFeesPanel .start-rate-choice:last-child{flex:1 0 100%;font-size:.78rem;border-top:1px solid var(--border,#b9d2cc);margin-top:3px}
#startFeesPanel .approved-vehicle-date{grid-column:3}#startFeesPanel .approved-vehicle-date label{display:grid;gap:4px}#startFeesPanel .start-vehicle-fee>button{grid-column:4;grid-row:auto;min-width:82px}
#expensesView .expense-vehicle-primary{display:flex;justify-content:space-between;align-items:center}#expensesView .expense-vehicle-primary strong{font-size:1.35rem}
@media(max-width:1050px){.approved-upload-layout{grid-template-columns:120px minmax(0,1fr)}#startFeesPanel .start-vehicle-fee{grid-template-columns:1fr 1fr}#startFeesPanel .approved-vehicle-identity,#startFeesPanel .start-vehicle-fee>fieldset,#startFeesPanel .approved-vehicle-date,#startFeesPanel .start-vehicle-fee>button{grid-column:auto;grid-row:auto}#startFeesPanel .start-vehicle-fee>fieldset{grid-column:1/-1}}
@media(max-width:600px){.approved-upload-layout{grid-template-columns:1fr}.approved-upload-main .start-drop .start-drop-copy{white-space:normal}.approved-fleet-summary{flex-wrap:wrap}.approved-fleet-summary p{border:0;padding:0}#startFeesPanel .start-vehicle-fee{grid-template-columns:1fr}#startFeesPanel .start-vehicle-fee>fieldset{grid-column:auto}}
.approved-upload-art{min-width:0;overflow:hidden}.approved-upload-art-crop{width:100%;max-width:170px}
#expensesView .expense-vehicle-card{min-height:150px}#expensesView .expense-vehicle-identity h3{font-family:inherit;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
#expensesView .expense-vehicle-empty{font-family:inherit;font-size:.9rem}#expensesView .expense-vehicle-primary strong{font-family:inherit}
/* Vehicle changes use one date in the review dialog, not per-row dates. */
#startFeesPanel .start-vehicle-fee{grid-template-columns:minmax(160px,1fr) minmax(225px,1fr) auto}
#startFeesPanel .start-vehicle-fee>button{grid-column:3;grid-row:auto}
#startFeesPanel .start-rate-choice:last-child{flex-basis:auto;font-size:1rem;border-top:0;margin-top:0}
#startFeesPanel .start-rate-choice:has(input[value="inherit"]){flex-basis:100%;border-top:1px solid var(--border,#b9d2cc);font-size:.8rem}
.approved-confirm label{display:grid;gap:7px;font-weight:600}.approved-confirm input[type="date"]{min-height:42px;width:100%;padding:8px;border:1px solid var(--border,#b9d2cc);border-radius:8px}
.approved-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.approved-confirm p{line-height:1.45}.approved-confirm [role="status"]{font-weight:600}
@media(max-width:700px){#startFeesPanel .start-vehicle-fee{grid-template-columns:1fr}#startFeesPanel .start-vehicle-fee>button,#startFeesPanel .start-vehicle-fee>fieldset{grid-column:1}}
#tripcenterView [id^="workflowControls-"] input,#reconciliationView [id^="workflowControls-"] input,#tripcenterView [id^="workflowControls-"] select,#reconciliationView [id^="workflowControls-"] select{box-sizing:border-box;width:100%;min-width:0;min-height:40px}
#tripcenterView .trip-action-card,#reconciliationView .reconciliation-card,#mileageView .mileage-card{min-width:0}
#tripcenterView .trip-vehicle-identity{min-width:0;align-items:center;gap:12px}#tripcenterView .trip-vehicle-identity .fleet-vehicle-image{flex:0 0 64px;width:64px;height:52px;aspect-ratio:4/3}
#tripcenterView .trip-action-card .card-actions,#mileageView .card-actions{display:flex;gap:8px;flex-wrap:wrap}
#reconciliationView .formula-note{line-height:1.5;padding:14px 16px;margin-bottom:16px}
#mileageView .mileage-stats{gap:10px}#mileageView .mileage-stats>div{min-width:0}#mileageView .mileage-stats span{overflow-wrap:anywhere}
.approved-preview-details{border:1px solid var(--border,#b9d2cc);border-radius:10px;padding:4px 12px}.approved-preview-details div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--border,#b9d2cc)}.approved-preview-details div:last-child{border:0}.approved-preview-details dt{font-weight:600}.approved-preview-details dd{margin:0;text-align:right;overflow-wrap:anywhere}
#startFeesPanel .approved-vehicle-actions{grid-column:3;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}#startFeesPanel .approved-vehicle-actions .primary-button{min-width:82px}#startFeesPanel .approved-vehicle-actions .text-link{font-size:.8rem}
@media(max-width:1050px){#startFeesPanel .approved-vehicle-actions{grid-column:auto}}@media(max-width:700px){#startFeesPanel .approved-vehicle-actions{grid-column:1;justify-content:flex-start}}
.approved-confirm-backdrop{inset:0;z-index:10000;overflow-y:auto}.approved-confirm{max-height:calc(100dvh - 40px);overflow-y:auto;box-sizing:border-box}
/* Keep each vehicle's identity, selector and Save control in shared columns. */
#startFeesPanel .start-vehicle-fee{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,260px) 82px;
  grid-template-rows:44px 24px;column-gap:14px;row-gap:0;align-items:center;
  box-sizing:border-box;min-height:98px;margin:8px 0;padding:12px 14px;
}
#startFeesPanel .approved-vehicle-identity{grid-column:1;grid-row:1 / 3;min-width:0;align-self:center}
#startFeesPanel .approved-vehicle-identity h4,#startFeesPanel .approved-vehicle-identity p{overflow-wrap:anywhere}
#startFeesPanel .start-vehicle-fee>fieldset{grid-column:2;grid-row:1;display:flex;flex-flow:row nowrap;width:100%;box-sizing:border-box;margin:0}
#startFeesPanel .start-rate-choice{flex:1 1 0;min-width:0}
#startFeesPanel .approved-vehicle-actions{display:contents}
#startFeesPanel .approved-vehicle-actions .primary-button{grid-column:3;grid-row:1 / 3;width:82px;min-width:0;justify-self:end;align-self:center}
#startFeesPanel .approved-vehicle-actions .text-link{grid-column:2;grid-row:2;justify-self:start;align-self:center;line-height:1.2}
@media(max-width:700px){
 #startFeesPanel .start-vehicle-fee{grid-template-columns:minmax(0,1fr) 76px;grid-template-rows:minmax(58px,auto) 44px 24px;column-gap:10px;min-height:150px}
 #startFeesPanel .approved-vehicle-identity{grid-column:1 / -1;grid-row:1}
 #startFeesPanel .start-vehicle-fee>fieldset{grid-column:1;grid-row:2}
 #startFeesPanel .approved-vehicle-actions .primary-button{grid-column:2;grid-row:2;width:76px}
 #startFeesPanel .approved-vehicle-actions .text-link{grid-column:1;grid-row:3}
}
@media(max-width:700px){#startFeesPanel .start-vehicle-fee{grid-template-rows:minmax(76px,auto) 44px 24px;min-height:170px}}
#startFeesPanel .start-vehicle-fee .start-rate-choice{flex:1 1 0!important;width:0}
#expensesView .expense-summary-search{display:grid;gap:5px;margin:12px 0;font-weight:600;max-width:420px}
#expensesView .expense-summary-search input{width:100%;min-height:40px;border:1px solid var(--border,#b9d2cc);border-radius:9px;padding:0 12px;background:var(--surface);color:var(--ink)}
#expensesView .expense-vehicle-card[hidden]{display:none!important}
#expensesView .expense-vehicle-media{display:flex;gap:8px;flex-wrap:wrap}#expensesView .expense-card-history{min-height:38px}
#tripcenterView [id^="workflowControls-"] label:first-child,#reconciliationView [id^="workflowControls-"] label:first-child{width:100%;max-width:none!important}
/* Compact placeholders fit within trip and mileage thumbnails. */
:is(#tripcenterView,#mileageView) .fleet-vehicle-image>.vehicle-image-fallback{place-content:center;gap:0}
:is(#tripcenterView,#mileageView) .fleet-vehicle-image>.vehicle-image-fallback span{width:30px;height:30px;border-radius:8px;font-size:13px}
:is(#tripcenterView,#mileageView) .fleet-vehicle-image>.vehicle-image-fallback small{display:none}

/* Focused production UX corrections. */
#expensesView .vehicle-expense-panel>.panel-head{min-height:0;padding:0 0 12px;margin:0 0 12px;align-items:center;gap:16px}
#expensesView .vehicle-expense-panel>.panel-head h2{margin:4px 0 0}
#expensesView .expense-vehicle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#bookingsView .bookings-data-surface>.table-filters,#workflowControls-reimbursements{display:grid;grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) minmax(150px,1fr);gap:16px;justify-content:start;align-items:end}
#bookingsView .bookings-data-surface>.table-filters label,#workflowControls-reimbursements label{display:grid;gap:6px;min-width:0;max-width:none;width:100%}
#bookingsView .bookings-data-surface>.table-filters :is(input,select),#workflowControls-reimbursements :is(input,select){width:100%;min-width:0;min-height:44px}
#bookingsView .fleet-table-wrap{max-width:100%;overflow-x:auto}
#bookingsView .fleet-table-wrap table{min-width:1000px}
#csvVehicleMatchReview .csv-review-ack{display:flex;align-items:flex-start;gap:9px;margin:18px 0 12px;line-height:1.45}
#csvVehicleMatchReview .csv-review-ack input{flex:none;margin-top:4px}
#csvVehicleMatchReview .csv-review-actions{display:flex;flex-wrap:wrap;gap:10px}
.fleet-vehicle-image>.vehicle-image-fallback{display:grid;place-items:center;overflow:hidden;color:#598277}
.fleet-vehicle-image>.vehicle-image-fallback svg{display:block;width:65%;height:65%;max-width:72px;max-height:48px}
.fleet-vehicle-image>img{object-fit:contain}
#overviewView .metric-grid{align-items:stretch}
#overviewView .metric-card{height:auto;overflow:visible;min-width:0}
#overviewView .metric-card>small{white-space:normal;overflow:visible;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:700px){#expensesView .expense-vehicle-grid{grid-template-columns:minmax(0,1fr)}#expensesView .vehicle-expense-panel>.panel-head{align-items:flex-start;flex-wrap:wrap}#bookingsView .bookings-data-surface>.table-filters,#workflowControls-reimbursements{grid-template-columns:minmax(0,1fr)}}
/* Keep the fallback legible and separate workflow results from filters. */
.fleet-vehicle-image>.vehicle-image-fallback svg{width:70%!important;height:auto!important;max-width:72px;max-height:48px}
#workflowControls-reimbursements{margin-bottom:16px}
/* Keep the import review scrollable above the fixed mobile navigation. */
@media(max-width:780px){
  #importModal{align-items:start;padding:max(12px,env(safe-area-inset-top)) 12px calc(var(--mobile-nav-height,72px) + env(safe-area-inset-bottom) + 20px)}
  #importModal .import-modal{max-height:calc(100dvh - var(--mobile-nav-height,72px) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);overflow-y:auto;scroll-padding-bottom:16px}
}
@media(max-width:700px){#bookingsView .section-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:12px}#bookingsView .toolbar-actions{display:flex;flex-wrap:wrap;width:100%;gap:8px}#bookingsView .toolbar-actions button{flex:1 1 auto;min-width:0;white-space:normal}}
@media(max-width:700px){:is(#tripcenterView,#reimbursementsView) .section-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:12px}:is(#tripcenterView,#reimbursementsView) .section-toolbar>div{min-width:0;width:100%}:is(#tripcenterView,#reimbursementsView) .section-toolbar>button{align-self:flex-start;width:auto;min-height:44px}}
@media(min-width:701px) and (max-width:900px){#globalPeriodSelectors .month-select:has(#monthFilter){min-width:150px}#monthFilter{width:100%}}

/* Break-even card: a vehicle without an abbreviation shows its combined name in the badge, as a pill. */
.large-badge.large-badge-name{width:auto;min-width:46px;max-width:16ch;padding:0 12px;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:46px;text-align:center}

/* Break-even: hide the truncated name pill that repeats the card heading (audit minor 5). */
#breakevenView .large-badge.large-badge-name{display:none!important}

/* Page subtitles (the line under each page title) use one weight everywhere. */
#appShell .view .section-toolbar > div > p,#appShell #overviewGreetingContext{font-weight:600}

/* Dark theme: the navy logo mark is unreadable on the dark sidebar, so use the light variant (navy -> near-white, green unchanged). */
html[data-appearance="dark"] .brand-mark{background-image:url('/fleetdv-mark-light.png')!important}

/* Panel subtitles (the line under a panel heading, e.g. "From today") match the page subtitles. */
#appShell .view .panel-head > div > p{font-weight:600}

/* Overview Revenue & Profit chart: losses hang below a zero line. */
#revenueChart .bar.negative{border-radius:0 0 4px 4px;background:var(--red,#d64545)!important}
#revenueChart .chart-zero{position:absolute;left:-2px;right:-2px;height:1px;background:var(--text-muted,#7b8589);opacity:.6;z-index:0}

/* Dark mode: Gross bars and legend swatch in a muted slate (were bright light grey; audit minor 13). */
html[data-appearance="dark"] body[data-experience] :is(#revenueChart .bar.gross,.legend-gross,.annual-revenue-bar){background:#4f6b73!important}

/* Bookings: how the money columns add up. */
.bookings-column-note{margin:0 0 10px;font-size:13px;color:var(--text-secondary,#5b6b73)}

/* Tablet drawer close button follows the theme (was white on white in light; audit C2 / item 21). */
body[data-experience] #experienceDrawerClose{color:var(--text-primary)!important;background:var(--interactive-bg)!important;border:1px solid var(--border-default)!important;font-size:24px!important;line-height:1!important;font-weight:500}
body[data-experience] #experienceDrawerClose:hover{border-color:var(--accent)!important}
body[data-experience] .experience-drawer-head{border-bottom-color:var(--border-subtle)!important;color:var(--text-secondary)}

/* Dark mode: neutral signal pill (was pale text on a white chip, 1.34:1; audit C5). */
html[data-appearance="dark"] body[data-experience] .signal.neutral{background:rgba(196,211,216,.14)!important;color:#dbe6ea!important;border-color:rgba(196,211,216,.24)!important}

/* Admin foundation card uses the theme (heading was dark on dark in light mode; audit C6). */
body[data-experience] .admin-roadmap{background:var(--card-elevated-bg)!important;border-color:var(--border-default)!important;color:var(--text-primary)!important}
body[data-experience] .admin-roadmap .overline{color:var(--accent)!important}
body[data-experience] .admin-roadmap strong{color:var(--text-primary)!important}
body[data-experience] .admin-roadmap p{color:var(--text-secondary)!important}

/* Dark mode: unfilled progress tracks are a muted tint (white tracks made empty bars look full; audit item 8). */
html[data-appearance="dark"] body[data-experience] :is(.break-track,.util-track,.vehicle-utilization>i,.expense-track){background:rgba(196,211,216,.14)!important}

/* Dark mode: weekday demand track (was white; audit item 20). */
html[data-appearance="dark"] body[data-experience] .weekday-row>div{background:rgba(196,211,216,.14)!important}

/* Performance: weekday demand panel keeps its own height (audit minor 7). */
#performanceView .panel:has(.weekday-row){align-self:start}

/* Dark mode: chips, pills and small tiles use translucent tints of their hue (were light "stickers"; audit item 9). */
html[data-appearance="dark"] body[data-experience] :is(.signal.up,.status-pill.active,.vehicle-activity.booked,.vin-status:not(.pending):not(.invalid),.admin-status.active,.admin-status.trialing,.admin-security-note,.margin-pill,.expense-basis-label.allocated){background:rgba(34,209,161,.15)!important;color:#7fe8c6!important;border-color:rgba(34,209,161,.28)!important}
html[data-appearance="dark"] body[data-experience] :is(.signal.hold,.vin-status.pending,.admin-status.past_due,.admin-status.unpaid,.alert-row.medium>span,.expense-basis-label.acquisition){background:rgba(242,195,106,.15)!important;color:#f5d48f!important;border-color:rgba(242,195,106,.28)!important}
html[data-appearance="dark"] body[data-experience] :is(.signal.down,.status-pill.problem,.vin-status.invalid,.admin-status.canceled,.admin-status.incomplete_expired,.alert-row.high>span){background:rgba(255,133,136,.15)!important;color:#ffb3b5!important;border-color:rgba(255,133,136,.28)!important}
html[data-appearance="dark"] body[data-experience] .status-pill.upcoming{background:rgba(128,198,243,.15)!important;color:#a9d8f7!important}
html[data-appearance="dark"] body[data-experience] :is(.status-pill.completed,.vehicle-activity,.vehicle-activity.idle,.vehicle-activity.sold,.admin-status,.admin-status.none,.alert-row.low>span,.alert-row>span,.expense-basis-label,.expense-icon){background:rgba(196,211,216,.13)!important;color:#dbe6ea!important;border-color:rgba(196,211,216,.22)!important}
html[data-appearance="dark"] body[data-experience] :is(.decision-vehicle-photo,.vehicle-card-media){background:var(--metric-bg)!important}
html[data-appearance="dark"] body[data-experience] #performanceView :is(.decision-card,.pricing-signal-card)>span:first-child:not(.signal){background:var(--metric-bg)!important;color:var(--accent)!important}
html[data-appearance="dark"] body[data-experience] #startFeeHistoryVehicle{background:var(--interactive-bg)!important;color:var(--text-primary)!important;border-color:var(--border-default)!important}
html[data-appearance="dark"] body[data-experience] .feature-row{border-color:var(--border-subtle)!important}

/* Dark mode: map the legacy classic palette onto Midnight Teal (page band was grey rgb(16,23,24); audit item 10). */
html[data-appearance="dark"] body[data-experience]{--background:var(--app-bg);--surface:var(--card-bg);--surface-elevated:var(--card-elevated-bg);--surface-soft:var(--section-bg);--surface-strong:var(--metric-bg);--surface-raised:var(--card-elevated-bg);--border:var(--border-default);--accent-soft:rgba(0,217,199,.14)}

/* Dark mode: primary buttons use dark text on the bright teal (white was 2.94:1; audit item 11). */
html[data-appearance="dark"] body[data-experience] .primary-button,
html[data-appearance="dark"] body[data-experience] .primary-button *{color:#00141d!important}

/* One focus ring for every form control (about 15 controls had none; audit item 17). */
body[data-experience] :is(#appShell,#dataModal,.modal-backdrop) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea):focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 58%,transparent)!important;outline-offset:1px!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)!important}

/* 12px minimum text in vehicle cards and the tablet calendar (were 8-10px; audit item 18). */
body[data-experience] .premium-vehicle-card :is(.vehicle-card-facts span,.vehicle-card-footer>span,.vehicle-card-footer .text-link,.vehicle-identity p,.vehicle-activity,.vin-status,.vehicle-utilization small,.vehicle-utilization b,small){font-size:12px!important}
body[data-experience] .calendar-availability{font-size:12px!important}
@media (max-width:1000px){
  body[data-experience] #calendarView :is(.calendar-mini-grid>span,.calendar-mini-weekdays>span,.calendar-mini-weekdays>*,.calendar-legend span,.calendar-legend small){font-size:12px!important}
}

/* Light mode: muted text reaches 4.5:1 (was 2.4-4.0:1 in places; audit item 19). */
html:not([data-appearance="dark"]) body[data-experience]{--text-muted:#5a6870;--muted:#5a6870}
html:not([data-appearance="dark"]) body[data-experience] :is(.more-button,.delete-button,.vehicle-cell small,.modal-note,.entry-form label small,.loan-result span,.loan-result small,.input-prefix,.input-suffix,.vehicle-activity:not(.booked),.admin-status:not(.active):not(.trialing):not(.past_due):not(.unpaid):not(.canceled):not(.incomplete_expired)){color:#5a6870}
html:not([data-appearance="dark"]) body[data-experience] :is(.overline,.chart-label,#modalEyebrow,.feature-tier-note,.muted-note){color:#5a6870}

/* Textareas inherit the app font (fell back to monospace; audit item 22). */
body[data-experience] textarea,body[data-experience] textarea::placeholder{font-family:inherit;line-height:1.45}

/* Trip Center / Reconcile filters match Bookings: 44px controls, 13px text (audit minor 11). */
:is(#tripcenterView,#reconciliationView) [id^="workflowControls-"] :is(input,select){min-height:44px!important;font-size:13px!important}
#bookingsView .bookings-data-surface>.table-filters :is(input,select),#workflowControls-reimbursements :is(input,select){font-size:13px!important}

/* Hover feedback for secondary buttons and text links (none before; audit minor 12). */
body[data-experience] :is(.secondary-button,.more-button):not(:disabled):hover{border-color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 9%,var(--interactive-bg))!important}
body[data-experience] .text-link:not(:disabled):hover{text-decoration:underline;text-underline-offset:3px}

/* Equal-height cards per row: Overview goal/next bookings, Expenses category/transactions (audit minor 2, report M15). */
#overviewView .lower-grid{align-items:stretch!important}
#overviewView .lower-grid>*{height:auto!important;align-self:stretch!important}
#expensesView .expense-financial-workspace{align-items:stretch!important}
#expensesView .expense-financial-workspace>.panel{display:flex;flex-direction:column}
#expensesView .expense-category-panel>#expenseBars{flex:1 1 auto;display:flex;flex-direction:column}
#expensesView .expense-category-panel>#expenseBars>:only-child{flex:1 1 auto}

/* One section-heading size (Vehicles was 36px, Overview 26, Import CSV/Service health 24; audit minor 4). */
body[data-experience] :is(#vehiclesView .vehicle-page-header h2,#overviewGreeting,#healthView h2:first-of-type,#csv_importView .approved-upload-main>h2){font-size:25px!important;line-height:1.2}

/* Consistent radii: panels 24px, cards 16px, inner tiles 12px (audit minor 3). */
body[data-experience] .view .panel{border-radius:24px}
body[data-experience] :is(.reconciliation-card,.pricing-signal-card,.decision-card,.mileage-card,.overview-fleet-card,.metric-card,.vehicle-decision-card){border-radius:16px!important}
body[data-experience] :is(.vehicle-card-facts,.formula-note){border-radius:12px!important}

/* Wide tables: always-visible thin horizontal scrollbar on table containers (audit minor 10). */
body[data-experience] :is(.fleet-table-wrap,.table-wrap){overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--border-default) transparent}
body[data-experience] :is(.fleet-table-wrap,.table-wrap)::-webkit-scrollbar{height:8px}
body[data-experience] :is(.fleet-table-wrap,.table-wrap)::-webkit-scrollbar-thumb{background:var(--border-default);border-radius:99px}
body[data-experience] :is(.fleet-table-wrap,.table-wrap)::-webkit-scrollbar-track{background:transparent}

/* Expenses: cash-transaction filters wrap below 1000px; caption padding (audit C3). */
.expense-transactions-panel>.muted-note{margin:0;padding:12px 22px 0}
@media (max-width:1000px){
  #expensesView .expense-transactions-head{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
  #expensesView .expense-transactions-head>div:first-child{grid-column:1/-1}
  #expensesView .expense-filter{min-width:0!important;width:100%}
  #expensesView .expense-filter :is(select,input){width:100%!important;min-width:0!important;box-sizing:border-box}
}

/* Expenses vehicle card header: count wraps under the name below 1000px (audit minor 9). */
@media (max-width:1000px){
  #expensesView .expense-vehicle-identity{flex-wrap:wrap;row-gap:4px}
  #expensesView .expense-vehicle-identity>div{flex:1 1 100%;min-width:0}
  #expensesView .expense-vehicle-identity>span{white-space:nowrap}
}

/* Expenses page variables follow Midnight Teal in dark mode (summary chips kept light borders; found in the re-audit). */
html[data-appearance="dark"] body[data-experience] #expensesView{--expense-surface:var(--card-bg);--expense-soft:var(--section-bg);--expense-line:var(--border-default)}

/* Dark mode: formula-note labels use the accent (were dark green on dark, 2.13:1; report M5). */
html[data-appearance="dark"] body[data-experience] .formula-note>span:first-child{color:var(--accent)!important}

/* Secondary text, light mode: nothing fainter than #6b7280 (about 4.8:1). The muted token is #5a6870, which is already darker than that, so
   these are the elements that were still fainter. Headings keep the brand navy (--text-primary). */
html:not([data-appearance="dark"]) body[data-experience] .global-period-indicator{color:#5a6870}
html:not([data-appearance="dark"]) body[data-experience] .calendar-availability{color:#3f525c!important}
html:not([data-appearance="dark"]) body[data-experience] .calendar-day.outside .calendar-day-number,html:not([data-appearance="dark"]) body[data-experience] .outside .calendar-day-number{color:#6b7280!important}

/* Light mode: profit formula line on the light metric surface (was a near-black bar with grey text, 2.54:1; report M4). */
html:not([data-appearance="dark"]) body[data-experience] .profit-equation{background:var(--metric-bg)!important;color:var(--text-primary)!important;border:1px solid var(--border-subtle)}

/* All Year KPI labels on the light card (were #aab3b0 on white, 2.15:1; found in the re-audit). */
html:not([data-appearance="dark"]) body[data-experience] .annual-profit-kpi :is(span,small){color:var(--text-muted)!important}

/* W1: Monthly Cash Flow next to True Profit, and the "incomplete" mark when a loan payment has no interest split. */
.cash-flow-line{display:block;margin-top:4px;font-size:12px;font-weight:600;color:var(--text-secondary)}
.cash-flow-line b{font-weight:800}
.cash-flow-line b.negative,.profit-cashflow b.negative{color:var(--negative)}
.cash-flow-line b.positive,.profit-cashflow b.positive{color:var(--positive)}
.profit-incomplete{display:block;margin-top:6px;padding:4px 8px;border-radius:8px;border:1px solid var(--warning);color:var(--warning);font-size:12px;font-weight:700;line-height:1.35}
.profit-incomplete-mark{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:99px;border:1px solid var(--warning);color:var(--warning);font-size:11px;font-weight:700;vertical-align:middle}
.profit-explain{display:block;margin:2px 0 6px;color:var(--text-secondary);font-size:12px}
.profit-cashflow{margin:6px 0 0;font-weight:600}
html[data-appearance="dark"] .profit-incomplete,html[data-appearance="dark"] .profit-incomplete-mark{color:#e6b95c;border-color:#e6b95c}

/* Annual view: the trend chart legend (Net earnings / True profit) was #778287 on white, 3.94:1; darken it in light mode to the same #5a6870 used for other secondary text (5.8:1). */
html:not([data-appearance="dark"]) .annual-chart-legend{color:#5a6870}


/* Profit & Earnings, option B (design/profit-earnings-b, 2026-11-29): the four cards are the sum (− − =), Cash flow under them, then
   costs and revenue. Card internals follow the Overview KPI cards; colours are the theme's tokens, so Classic/Glass and light/dark follow. */
#earningsView .pe-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
#earningsView .pe-facts{margin:0;font-size:14px;color:var(--text-muted)}
#earningsView .pe-facts b{color:var(--text-primary);font-weight:650}
#earningsView .pe-bar .toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#earningsView .pe-sum{--pe-up:var(--positive,#0b7a55);--pe-down:var(--negative,#b4232c);--pe-ink:var(--accent,#2563eb);display:grid;gap:14px;margin-bottom:16px}
html:not([data-appearance="dark"]) #earningsView{--pe-down-text:color-mix(in srgb,var(--negative,#b4232c) 80%,#000);--pe-tag-text:color-mix(in srgb,var(--accent,#2563eb) 75%,#000)}
html[data-appearance="dark"] #earningsView{--pe-down-text:color-mix(in srgb,var(--negative,#b4232c) 72%,#fff);--pe-tag-text:color-mix(in srgb,var(--accent,#2563eb) 65%,#fff)}
#earningsView .pe-cards{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr);align-items:stretch}
#earningsView .pe-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;min-width:0;min-height:0!important;height:auto!important;margin:0!important;padding:16px 18px 14px!important;position:relative;overflow:visible!important}
#earningsView .pe-card::before{display:none!important}
#earningsView .pe-card .pe-head{order:0!important;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}
#earningsView .pe-card .pe-label{font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--text-primary);opacity:.8;white-space:nowrap}
#earningsView .pe-card .pe-caption{order:1!important;display:block;margin-top:1px;font-size:12px;line-height:1.3;color:var(--text-muted)}
#earningsView .pe-card>strong{order:2!important;display:block;margin:6px 0 8px!important;font-size:30px!important;line-height:1.05!important;font-weight:700!important;letter-spacing:-.025em!important;color:var(--text-primary)!important;font-variant-numeric:tabular-nums;white-space:nowrap}
#earningsView .pe-card>strong small{font-size:.6em;font-weight:650;letter-spacing:0}
#earningsView .pe-card.negative>strong{color:var(--pe-down-text)!important}
#earningsView .pe-card .pe-sub{order:3!important;font-size:12.5px;color:var(--text-muted)}
#earningsView .pe-card .pe-sub b{color:var(--text-primary);font-weight:650}
#earningsView .pe-card.negative .pe-sub b{color:var(--pe-down-text)}
#earningsView .pe-card.pe-result{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--pe-ink) 55%,transparent)!important}
#earningsView .pe-op{display:grid;place-items:center}
#earningsView .pe-op span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid var(--border);background:var(--surface-elevated,#fff);line-height:1;font-size:17px;font-weight:600;color:var(--text-primary)}
#earningsView .pe-cash{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;padding:12px 18px;border-radius:14px;border:1px dashed var(--border);background:color-mix(in srgb,var(--surface-elevated,#fff) 72%,transparent);font-size:14px;color:var(--text-muted)}
#earningsView .pe-cash-label{display:inline-flex;align-items:center;gap:4px;font-weight:650;color:var(--text-primary)}
#earningsView .pe-cash strong{font-size:18px;font-weight:700;color:var(--text-primary);font-variant-numeric:tabular-nums}
#earningsView .pe-cash strong.negative{color:var(--pe-down-text)}
/* ⓘ: a native <details>, so it opens with Enter/Space and sits in the tab order where it is read */
#earningsView .pe-info{position:relative;flex:none}
#earningsView .pe-info>summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:14px;font-weight:400;color:var(--text-muted);border:1px solid transparent}
#earningsView .pe-info>summary::-webkit-details-marker{display:none}
#earningsView .pe-info[open]>summary,#earningsView .pe-info>summary:is(:hover,:focus-visible){border-color:var(--border);color:var(--text-primary)}
#earningsView .pe-info>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#earningsView .pe-info>p{position:absolute;z-index:30;right:-6px;top:30px;width:min(290px,80vw);margin:0;padding:12px 14px;border-radius:12px;font-size:13px;font-weight:400;line-height:1.5;text-transform:none;letter-spacing:0;text-align:left;white-space:normal;color:var(--text-primary);background:var(--surface-elevated,#fff);border:1px solid var(--border);box-shadow:0 12px 32px rgba(0,0,0,.18)}
#earningsView .pe-cash .pe-info>p{right:auto;left:-10px}
html[data-theme="glass"] #earningsView .pe-info>p{background:rgba(255,255,255,.96);color:#0b2236}
html[data-theme="glass"][data-appearance="dark"] #earningsView .pe-info>p{background:rgba(9,27,46,.96);color:#eaf4fb}
#earningsView :is(.pe-card,.pe-cash,.pe-panel):has(.pe-info[open]){z-index:40;position:relative}
/* costs and revenue */
#earningsView .pe-detail{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:start;margin-bottom:16px}
#earningsView .pe-panel{margin:0!important}
#earningsView .pe-panel .panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
#earningsView .pe-list,#earningsView .pe-rev{display:grid;gap:2px}
#earningsView .pe-item{display:grid;grid-template-columns:minmax(110px,170px) 1fr auto;align-items:center;gap:12px;padding:7px 0;font-size:14px;color:var(--text-primary)}
#earningsView .pe-item>b{font-weight:650;font-variant-numeric:tabular-nums;text-align:right;min-width:86px}
#earningsView .pe-track{height:10px;border-radius:5px;background:color-mix(in srgb,var(--text-muted) 14%,transparent);overflow:hidden}
#earningsView .pe-track i{display:block;height:100%;border-radius:5px;background:var(--accent)}
#earningsView .pe-item.pe-spike .pe-track i{background:var(--negative)}
#earningsView .pe-month{padding:0;border:0;background:none;font:inherit;color:inherit;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent);text-underline-offset:3px;cursor:pointer}
#earningsView .pe-month:is(:hover,:focus-visible){text-decoration-color:currentColor}
#earningsView .pe-month:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
#earningsView .pe-rev .pe-item{grid-template-columns:1fr auto}
#earningsView .pe-rev .pe-item small{display:block;font-size:12.5px;color:var(--text-muted);font-weight:400}
#earningsView .pe-note{margin:8px 0 0;font-size:12.5px;color:var(--text-muted)}
#earningsView .pe-wide{grid-column:1/-1}
#earningsView .pe-tag{display:inline-block;margin-left:4px;padding:1px 7px;border-radius:999px;font-size:11.5px;font-weight:650;color:var(--pe-tag-text);background:color-mix(in srgb,var(--accent) 12%,transparent);vertical-align:1px}
/* Glass: the view is a bright glass panel, so text straight on it (the facts bar, Cash flow, the − = signs) gets a solid surface */
html[data-theme="glass"] #earningsView :is(.pe-bar,.pe-cash,.pe-op span){background:rgba(255,255,255,.92);border-color:rgba(11,34,54,.18);--text-primary:#0b2236;--text-muted:#3d5266;color:#3d5266}
html[data-theme="glass"] #earningsView .pe-bar{padding:10px 14px;border-radius:14px}
html[data-theme="glass"] #earningsView :is(.pe-bar .profit-vehicle-filter,.pe-facts){color:#3d5266}
html[data-theme="glass"] #earningsView :is(.pe-facts b,.pe-cash strong:not(.negative),.pe-cash-label,.pe-op span){color:#0b2236}
html[data-theme="glass"][data-appearance="dark"] #earningsView :is(.pe-bar,.pe-cash,.pe-op span){background:rgba(9,27,46,.9);border-color:rgba(234,244,251,.22);--text-primary:#eaf4fb;--text-muted:#b9c9d6;color:#b9c9d6}
html[data-theme="glass"][data-appearance="dark"] #earningsView :is(.pe-bar .profit-vehicle-filter,.pe-facts){color:#b9c9d6}
html[data-theme="glass"][data-appearance="dark"] #earningsView :is(.pe-facts b,.pe-cash strong:not(.negative),.pe-cash-label,.pe-op span){color:#eaf4fb}
html[data-theme="glass"] #earningsView .pe-cash strong.negative{color:#a3131c}
html[data-theme="glass"][data-appearance="dark"] #earningsView .pe-cash strong.negative{color:#ff9a9f}
@media(max-width:1180px){#earningsView .pe-detail{grid-template-columns:1fr}}
@media(max-width:780px){
  #earningsView .pe-sum{gap:12px}
  #earningsView .pe-bar .toolbar-actions{width:100%;align-items:flex-end}
  #earningsView .pe-bar .toolbar-actions>.profit-vehicle-filter{flex:1 1 auto;min-width:0}
  #earningsView .pe-bar .toolbar-actions>.profit-vehicle-filter select{width:100%}
  #earningsView .pe-bar .toolbar-actions>button{flex:0 0 auto}
  #earningsView .pe-bar .toolbar-actions>button{margin:0}
  /* one column: each card a row (label left, amount right), the signs between them */
  #earningsView .pe-cards{grid-template-columns:1fr}
  #earningsView .pe-card{display:grid!important;grid-template-columns:1fr auto;grid-template-areas:"head val" "cap val" "sub sub";column-gap:10px;padding:11px 14px!important}
  #earningsView .pe-card .pe-head{grid-area:head;justify-content:flex-start}
  #earningsView .pe-card .pe-label{font-size:12.5px;letter-spacing:-.01em}
  #earningsView .pe-card .pe-caption{grid-area:cap;font-size:11.5px}
  #earningsView .pe-card>strong{grid-area:val;align-self:center;margin:0!important;font-size:21px!important;text-align:right}
  #earningsView .pe-card .pe-sub{grid-area:sub;font-size:12px}
  #earningsView .pe-card .pe-info>p{right:auto;left:-60px}
  #earningsView .pe-info>summary{width:22px;height:22px}
  #earningsView .pe-op{height:22px;margin:-6px 0;position:relative;z-index:2}
  #earningsView .pe-op span{width:22px;height:22px;font-size:15px}
  #earningsView .pe-cash{padding:10px 14px;font-size:13px}
  #earningsView .pe-item{grid-template-columns:minmax(84px,108px) 1fr auto;gap:8px;font-size:13.5px}
  #earningsView .pe-item>b{min-width:78px}
}
@media(prefers-reduced-motion:reduce){#earningsView :is(.pe-sum,.pe-detail) *{transition:none!important;animation:none!important}}
/* 2026-11-14: messages (toasts) must show above the Account & Billing panel (z-index 12000); they were hidden underneath it. */
.toast{z-index:2147483000}

/* Vehicle profile: platform fee history. */
.vehicle-fee-history{width:100%;border-collapse:collapse;margin-top:12px;font-size:13px}.vehicle-fee-history th{text-align:left;font-weight:600;color:var(--muted,#5b6b73);padding:6px 8px;border-bottom:1px solid var(--border,#d9e3e0)}.vehicle-fee-history td{padding:6px 8px;border-bottom:1px solid var(--border,#e6eeeb)}.vehicle-fee-history td:last-child{color:var(--muted,#5b6b73);font-size:12px}.vehicle-fee-history-empty{margin:10px 0 0;color:var(--muted,#5b6b73)}

/* Vehicles header wraps below 1000px (was 865px wide at 768: audit C4). */
@media (max-width:1000px){
  #vehiclesView .vehicle-page-header{flex-wrap:wrap;row-gap:12px}
  #vehiclesView .vehicle-page-header .vehicle-header-actions{flex-wrap:wrap;width:100%;justify-content:flex-start;gap:10px}
  #vehiclesView .vehicle-page-header .vehicle-header-actions>:first-child{flex:1 1 220px;min-width:0}
  #vehiclesView .vehicle-page-header .vehicle-header-actions input{width:100%}
}

/* Vehicle form photo box follows the theme (stayed white in dark; audit C7). */
body[data-experience] .vehicle-photo-field{background:var(--card-elevated-bg)!important;border-color:var(--border-default)!important}
body[data-experience] .vehicle-photo-field #vehiclePhotoTitle{color:var(--text-primary)!important}
body[data-experience] .vehicle-photo-field .vehicle-photo-copy>small{color:var(--text-secondary)!important}
body[data-experience] .vehicle-photo-preview small{color:#c4d3d8!important}

/* Vehicle form photo section: every line readable in both themes. The colours are explicit (not only theme tokens), so the heading cannot
   fall back to a pale inherited colour, and the helper text is 12px instead of 9px. */
.vehicle-photo-field #vehiclePhotoTitle{color:#13232c!important;font-size:16px;font-weight:700}
.vehicle-photo-field .vehicle-photo-copy>small{color:#3d4f59!important;font-size:12px!important;line-height:1.5!important;font-weight:500}
.vehicle-photo-field .vehicle-photo-status{color:#3d4f59!important;font-size:12px!important;font-weight:600}
.vehicle-photo-field .vehicle-photo-preview>small{color:#e3ecef!important;font-size:11px!important}
.vehicle-photo-field .vehicle-photo-preview>span{color:#fff!important}
.vehicle-photo-field #removeVehiclePhoto{color:#00786e!important;font-size:12px!important;font-weight:700}
.vehicle-photo-field .vehicle-photo-button{color:#13232c!important;font-size:12px!important}
html[data-appearance="dark"] .vehicle-photo-field #vehiclePhotoTitle{color:#f4fafb!important}
html[data-appearance="dark"] .vehicle-photo-field .vehicle-photo-copy>small,html[data-appearance="dark"] .vehicle-photo-field .vehicle-photo-status{color:#d5e1e4!important}
html[data-appearance="dark"] .vehicle-photo-field #removeVehiclePhoto{color:#00d9c7!important}
html[data-appearance="dark"] .vehicle-photo-field .vehicle-photo-button{color:#f4fafb!important}
/* The panel's own background is explicit too, so text and panel always change theme together. */
.vehicle-photo-field{background:#f7fafb!important;border-color:#d5e1e4!important}
html[data-appearance="dark"] .vehicle-photo-field{background:#0b2932!important;border-color:#1f4350!important}
.vehicle-photo-field .vehicle-photo-button{background:#fff!important;border:1px solid #d5e1e4!important}
html[data-appearance="dark"] .vehicle-photo-field .vehicle-photo-button{background:#08242d!important;border-color:#1f4350!important}

/* Free plan rules (2026-11-16): Delete sits under "More" on vehicle cards; Mark as sold stays the main action. */
.vehicle-more-menu{position:relative;margin-top:.5rem}
.vehicle-more-menu>summary{list-style:none;cursor:pointer;display:inline-block}
.vehicle-more-menu>summary::-webkit-details-marker{display:none}
.vehicle-more-menu[open]>summary{margin-bottom:.4rem}
.vehicle-more-menu .vehicle-delete-action{width:100%}
.free-edit-note{margin:.5rem 0 0;font-size:.8125rem;color:var(--muted,#64748b)}
.vehicle-delete-dialog .dialog-actions{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:flex-end;margin-top:1rem}

/* Batch 1 (2026-11-20, C2): an odd last fact on a vehicle card (e.g. Monthly Cash Flow on a financed vehicle) spans the row: no empty grey cell */
#vehiclesView .vehicle-card-facts>:last-child:nth-child(odd){grid-column:1/-1}
/* 2026-11-16: shown when the released-features list could not be loaded (features.js keeps the features already known). */
.feature-load-notice{margin:0 0 12px;padding:10px 14px;border-radius:10px;border:1px solid rgba(217,119,6,.35);background:rgba(254,243,199,.9);color:#78350f;font-size:.92rem}
[data-appearance="dark"] .feature-load-notice{background:rgba(120,53,15,.35);color:#fde68a;border-color:rgba(253,230,138,.3)}
.feature-load-notice[hidden]{display:none}

/* One-click CSV import (Deploy 2, 2026-11-19): progress card, slim background bar, stop prompts, Overview banner. Every page (the bar follows
   page changes), so it lives in the last shared override file. Theme tokens only; reduced motion respected; mobile width. */
.oc-import{position:fixed;inset:auto 24px 24px auto;z-index:1200;width:min(440px,calc(100vw - 32px));color:var(--text-primary)}
.oc-import[hidden],.oc-slim[hidden]{display:none}
.oc-card{background:var(--surface-elevated,var(--surface));border:1px solid var(--border-subtle);border-radius:16px;box-shadow:var(--theme-shadow);padding:18px 20px;display:grid;gap:12px}
.oc-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.oc-head h2{margin:0;font-size:1.05rem}
.oc-min,.oc-link{background:none;border:0;padding:4px 2px;color:var(--accent);font:inherit;font-weight:600;cursor:pointer}.oc-link:hover,.oc-min:hover{text-decoration:underline}
.oc-bar{position:relative;height:14px;border-radius:999px;background:var(--surface-soft,var(--border-subtle));overflow:hidden}
.oc-fill,.oc-slim-fill{position:relative;display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 60%,var(--positive)));transition:width .35s ease;overflow:hidden}
.oc-fill::after,.oc-slim-fill::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--surface-elevated,#fff) 45%,transparent),transparent);transform:translateX(-100%);animation:oc-shimmer 1.8s ease-in-out infinite}
.oc-pct{margin:-6px 0 0;font-variant-numeric:tabular-nums;color:var(--text-secondary);font-size:.85rem;text-align:right}
@keyframes oc-shimmer{to{transform:translateX(100%)}}
.oc-import[data-phase="done"] .oc-fill{background:var(--positive)}
.oc-import:not([data-phase="running"]) .oc-fill::after,.oc-slim:not([data-phase="running"]) .oc-slim-fill::after{animation:none;opacity:0}
.oc-import[data-phase="done"] .oc-pct{color:var(--positive);font-weight:700}
.oc-stages{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.oc-stages li{display:grid;grid-template-columns:22px 1fr;align-items:center;column-gap:10px;color:var(--text-secondary)}
.oc-stages li[data-state="active"],.oc-stages li[data-state="paused"]{color:var(--text-primary);font-weight:600}
.oc-stages .oc-sub{grid-column:2;font-weight:400;font-size:.85rem;color:var(--text-secondary)}
.oc-mark{width:18px;height:18px;border-radius:50%;border:2px solid var(--border-strong,var(--border-subtle));box-sizing:border-box}
.oc-stages li[data-state="active"] .oc-mark{border-color:var(--accent);border-top-color:transparent;animation:oc-spin .8s linear infinite}
.oc-stages li[data-state="paused"] .oc-mark{border-color:var(--warning)}
.oc-stages li[data-state="waiting"],.oc-stages li[data-state="failed"]{color:var(--text-primary);font-weight:600}
.oc-stages li[data-state="waiting"] .oc-mark{border-color:var(--warning);background:color-mix(in srgb,var(--warning) 18%,transparent);position:relative}
.oc-stages li[data-state="waiting"] .oc-mark::after{content:"";position:absolute;left:5px;top:5px;width:4px;height:4px;border-radius:50%;background:var(--warning)}
.oc-stages li[data-state="waiting"] .oc-sub{color:var(--warning)}
.oc-stages li[data-state="failed"] .oc-mark{border-color:var(--negative);background:var(--negative);position:relative}
.oc-stages li[data-state="failed"] .oc-mark::before,.oc-stages li[data-state="failed"] .oc-mark::after{content:"";position:absolute;left:7px;top:3px;width:2px;height:9px;background:var(--surface-elevated,#fff);transform:rotate(45deg)}
.oc-stages li[data-state="failed"] .oc-mark::after{transform:rotate(-45deg)}
.oc-stages li[data-state="failed"] .oc-sub{color:var(--negative)}
.oc-import[data-phase="stopped"] .oc-fill{background:var(--negative)}
/* on the Import page: large and centered; the corner card is used after Keep working or on other pages */
.oc-import.oc-center{inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(580px,calc(100vw - 32px));border-radius:16px;box-shadow:0 0 0 100vmax color-mix(in srgb,var(--overlay,rgba(4,9,11,.66)) 35%,transparent)} /* the soft backdrop is a shadow: the page behind stays clickable */
.oc-import.oc-center .oc-card{padding:26px 28px;gap:16px}
.oc-import.oc-center .oc-head h2{font-size:1.3rem}
.oc-stages li[data-state="done"] .oc-mark{border-color:var(--positive);background:var(--positive);position:relative}
.oc-stages li[data-state="done"] .oc-mark::after{content:"";position:absolute;left:4px;top:1px;width:5px;height:9px;border:solid var(--surface-elevated,#fff);border-width:0 2px 2px 0;transform:rotate(45deg)}
@keyframes oc-spin{to{transform:rotate(360deg)}}
.oc-detail{margin:0;font-size:.9rem;color:var(--text-secondary);min-height:1.2em}
.oc-ask{border-top:1px solid var(--border-subtle);padding-top:12px;display:grid;gap:10px}.oc-ask h3{margin:0;font-size:1rem}.oc-ask p{margin:0}
.oc-ask select{width:100%}.oc-ask-actions,.oc-foot{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.oc-rows{margin:0;padding-left:18px;display:grid;gap:4px}
.oc-done{display:flex;align-items:center;gap:10px;color:var(--positive)}
.oc-check{width:28px;height:28px;border-radius:50%;background:var(--positive);position:relative;animation:oc-pop .45s ease-out}
.oc-check::after{content:"";position:absolute;left:10px;top:5px;width:7px;height:13px;border:solid var(--surface-elevated,#fff);border-width:0 3px 3px 0;transform:rotate(45deg)}
@keyframes oc-pop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.12);opacity:1}100%{transform:scale(1)}}
.oc-import[data-phase="paused"] .oc-fill{background:var(--warning);animation:none}
.oc-slim{position:fixed;top:0;left:0;right:0;z-index:1190;height:30px;border:0;padding:0 16px;display:flex;align-items:center;justify-content:center;background:var(--surface-elevated,var(--surface));border-bottom:1px solid var(--border-subtle);color:var(--text-primary);font:inherit;font-size:.85rem;font-weight:600;cursor:pointer;overflow:hidden}
.oc-slim-fill{position:absolute;left:0;bottom:0;height:3px;width:0;border-radius:0}.oc-slim-text{position:relative}
.oc-slim[data-phase="paused"] .oc-slim-fill{background:var(--warning);animation:none}
.oc-banner{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 16px;padding:12px 16px;border-radius:12px;border:1px solid color-mix(in srgb,var(--positive) 35%,transparent);background:color-mix(in srgb,var(--positive) 10%,var(--surface-elevated,var(--surface)));color:var(--text-primary);font-weight:600}
.oc-banner-check{color:var(--positive);font-size:1.1rem}.oc-banner-x{margin-left:auto;background:none;border:0;color:var(--text-secondary);font-size:1.2rem;cursor:pointer}
@media(max-width:640px){.oc-import,.oc-import.oc-center{inset:auto 8px 8px 8px;width:auto;transform:none}.oc-import.oc-center{box-shadow:none}.oc-card{padding:14px 16px}.oc-slim{font-size:.78rem}}
@media(prefers-reduced-motion:reduce){.oc-fill,.oc-slim-fill,.oc-stages li[data-state="active"] .oc-mark,.oc-check{animation:none;transition:none}.oc-fill::after,.oc-slim-fill::after{animation:none;opacity:0}}

/* Batch 1, mobile and iPad layout (2026-11-20, owner-approved). Feature test 2026-11-20: B1, B2, H1-H4, H7, C1 (page files carry the rest). */
/* B1: an open dialog sits above the sticky header (z-index 45) and the phone bottom bar (9000); on phones the bar is hidden while it is open
   and the dialog keeps clear of the notch and the home indicator, so its title and close button are always visible. */
.modal-backdrop:not([hidden]){z-index:10050!important}
@media(max-width:780px){
  body:has(.modal-backdrop:not([hidden])) #experienceMobileNav{display:none!important}
  .modal-backdrop:not([hidden]){align-items:start!important;padding:calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom))!important}
  .modal-backdrop:not([hidden])>.modal{max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}
  /* the dialog never grows past the screen, even when a 16px field (a long vehicle name) is wider than it */
  .modal-backdrop:not([hidden]){grid-template-columns:minmax(0,1fr)!important}
  .modal-backdrop:not([hidden])>.modal{width:100%!important;max-width:520px!important;min-width:0!important;box-sizing:border-box;justify-self:center}
  .modal-backdrop:not([hidden])>.modal :is(input,select,textarea){max-width:100%;min-width:0;box-sizing:border-box}
  /* H3: the end of every page (footer links) scrolls clear of the bottom bar */
  #appFooter{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
  /* H7: a solid sticky header on phones: scrolled content no longer shows through it */
  .workspace-header{background:var(--background,#f4f7f9)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  /* C1: the drawer's account items (Account & Billing, Support, Sign out) read as normal, enabled menu items */
  .experience-drawer-settings>*{color:inherit!important;opacity:1!important}
}
/* B2: on a short screen (phone in landscape) the whole menu scrolls as one, instead of squeezing the page list into a 43px strip */
@media(max-width:780px) and (max-height:520px){
  .sidebar{overflow-y:auto!important;overscroll-behavior:contain}
  .sidebar>*,.sidebar .main-nav{flex:0 0 auto!important;min-height:auto!important;overflow:visible!important}
  .experience-drawer-settings{margin-top:12px!important}
}
/* H1: 16px text in fields on phones and tablets, so iOS does not zoom the page when a field is tapped */
@media(max-width:1024px),(pointer:coarse){
  :is(#appShell,#dataModal,body) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea){font-size:16px!important}
  /* H2: at least 44px tap targets for the controls that were smaller */
  .modal .close-button,#experienceDrawerClose,[data-delete-expense]{min-width:44px!important;min-height:44px!important}
  .sidebar .main-nav .nav-item{min-height:44px!important;height:44px!important}
  #appFooter a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
  #tripcenterView input[data-trip-task]{width:24px;height:24px}
}
/* H4: tablets (781-1024px wide, e.g. iPad portrait): the header wraps instead of running past the right edge and covering the page title */
@media(min-width:781px) and (max-width:1024px){
  .workspace-header{flex-wrap:wrap!important;height:auto!important;row-gap:10px}
  /* the title takes its own row; search, year, month and the profile button share the row below */
  .workspace-header>div:first-of-type{flex:1 1 100%!important;min-width:0}
  .workspace-header>.header-actions{flex:1 1 auto!important}
  .workspace-header>.experience-profile-control{flex:0 0 auto;margin-left:0}
  .workspace-header .global-period-selectors select{min-width:0!important;width:auto!important}
  .workspace-header>.header-actions{flex-wrap:wrap!important;justify-content:flex-end;max-width:100%!important;min-width:0}
  .workspace-header .experience-command-trigger strong,.workspace-header .experience-command-trigger kbd,.workspace-header .sample-pill{display:none!important}
  .global-period-selectors{flex-wrap:wrap;min-width:0}
}
/* Batch 1 (2026-11-20, H7): an empty date filter (Expenses From / To, marked data-empty by navigation-sync.js) reads "Any date" instead of the grey
   date iOS shows as its own placeholder; the label hides while the field is being edited. */
input[type=date][data-empty]:not(:focus){color:transparent!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='20'%3E%3Ctext x='0' y='15' font-family='-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif' font-size='15' fill='%237a8a93'%3EAny date%3C/text%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:12px center!important;background-size:120px 20px!important}
input[type=date][data-empty]:not(:focus)::-webkit-datetime-edit,input[type=date][data-empty]:not(:focus)::-webkit-date-and-time-value{color:transparent!important}
/* ===== Charts in the Classic theme (all three Experiences) =====
   Cash flow (Overview, #revenueChart) and Annual trend (Profit & Earnings, #yearlyTrend) get the chart-amounts script
   (shared/theme/chart-amounts.js): a $ scale, values on the highest and current bars, a tooltip with the exact values,
   and losses below a zero line on the Annual trend. Glass has its own styles for these (styles/base/theme-glass.css), so
   everything here is scoped to "not Glass". Colours: swatches and bars reach 3:1 on their card, text 4.5:1. */

/* chart colours: gross / net earnings bars were light grey (1.4:1 on white, 2.9:1 in dark) */
html:not([data-theme="glass"])[data-appearance] body[data-experience]{--fdv-gross:#7f8c86;--fdv-profit:var(--green)}
html:not([data-theme="glass"])[data-appearance="dark"] body[data-experience]{--fdv-gross:#6f8e97}
html:not([data-theme="glass"])[data-appearance] body[data-experience="premium"] #yearlyTrend,html:not([data-theme="glass"])[data-appearance] body[data-experience="premium"] #fdvChartTip[data-chart="yearlyTrend"],html:not([data-theme="glass"])[data-appearance] body[data-experience="premium"] #earningsView .annual-chart-legend{--fdv-profit:#246fe8}
html:not([data-theme="glass"])[data-appearance] body[data-experience="modern"] #yearlyTrend,html:not([data-theme="glass"])[data-appearance] body[data-experience="modern"] #fdvChartTip[data-chart="yearlyTrend"],html:not([data-theme="glass"])[data-appearance] body[data-experience="modern"] #earningsView .annual-chart-legend{--fdv-profit:#2c7be5}
/* Modern's Overview already draws Gross in its own darker grey (5.8:1), so it keeps it */
html:not([data-theme="glass"]):not([data-appearance="dark"]) body[data-experience="modern"] :is(#revenueChart,#fdvChartTip[data-chart="revenueChart"],.revenue-panel .chart-legend){--fdv-gross:#5a6870}

/* Cash flow */
html:not([data-theme="glass"])[data-appearance] body[data-experience] #revenueChart .bar.gross{background:var(--fdv-gross)!important}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .legend-gross:not(#fdv-x){background:var(--fdv-gross)!important}

/* Annual trend: bars and legend swatches in the same colours; a losing month in the loss colour, below the zero line */
html:not([data-theme="glass"])[data-appearance] body[data-experience] #yearlyTrend{position:relative}
html:not([data-theme="glass"])[data-appearance="dark"] body[data-experience="premium"] #yearlyTrend{background:#111a24!important}
html:not([data-theme="glass"])[data-appearance] body[data-experience] #yearlyTrend .annual-trend-month{position:relative;z-index:1}
html:not([data-theme="glass"])[data-appearance] body[data-experience] #yearlyTrend .annual-revenue-bar{background:var(--fdv-gross)!important}
html:not([data-theme="glass"])[data-appearance] body[data-experience] #yearlyTrend .annual-profit-bar{background:var(--fdv-profit)!important}
html:not([data-theme="glass"])[data-appearance] body[data-experience] #yearlyTrend :is(.annual-profit-bar.loss,.annual-trend-bars>i.fdv-neg){background:var(--red)!important}
html:not([data-theme="glass"])[data-appearance] body[data-experience] #yearlyTrend.fdv-signed .annual-trend-bars>i{height:var(--fdv-h)!important;min-height:0!important;position:relative;bottom:var(--fdv-b)}
html:not([data-theme="glass"])[data-appearance] body[data-experience] #yearlyTrend.fdv-signed .annual-trend-bars>i.fdv-neg{border-radius:2px 2px 5px 5px}
html:not([data-theme="glass"])[data-appearance] body[data-experience] #earningsView .annual-chart-legend span:first-child i:not(#fdv-x){background:var(--fdv-gross)!important}
html:not([data-theme="glass"])[data-appearance] body[data-experience] #earningsView .annual-chart-legend span:last-child i:not(#fdv-x){background:var(--fdv-profit)!important}

/* Cost legend: Discounts was 2.0:1 on white */
html:not([data-theme="glass"]):not([data-appearance="dark"]) body[data-experience] .breakdown-panel{--orange:#b0700f}

/* the $ scale: room on the left for its labels, gridlines across the plot, the zero line stronger */
html:not([data-theme="glass"])[data-appearance] body[data-experience] :is(#revenueChart,#yearlyTrend).fdv-scaled{padding-left:46px!important}
html:not([data-theme="glass"])[data-appearance] body[data-experience] #revenueChart.fdv-scaled{border-bottom-color:transparent!important}
html:not([data-theme="glass"])[data-appearance] body[data-experience] #revenueChart.fdv-scaled::before,html:not([data-theme="glass"])[data-appearance] body[data-experience] #revenueChart.fdv-scaled::after,html:not([data-theme="glass"])[data-appearance] body[data-experience] #revenueChart.fdv-scaled .chart-zero{display:none!important}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-axis{position:absolute;inset:0;pointer-events:none;z-index:0}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-gl{position:absolute;left:44px;right:0;height:0;border-top:1px solid var(--line)}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-gl.fdv-zero{border-top-color:var(--muted)}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-gl>span{position:absolute;right:calc(100% + 6px);top:0;transform:translateY(-50%);font-size:11px;line-height:1;font-weight:600;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-val{position:absolute;transform:translate(-50%,-100%);font-size:11px;line-height:1.2;font-weight:700;color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums;z-index:2}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-val.fdv-below{transform:translate(-50%,0)}
html:not([data-theme="glass"])[data-appearance] body[data-experience] [data-fdv-g]{outline:none;cursor:default}
html:not([data-theme="glass"])[data-appearance] body[data-experience] [data-fdv-g]:focus-visible{outline:2px solid var(--fdv-gross);outline-offset:2px;border-radius:8px}

/* the tooltip: a plain Classic card */
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-tip{position:fixed;z-index:10000;min-width:178px;max-width:min(260px,calc(100vw - 16px));padding:10px 12px 9px;border-radius:10px;background:var(--card-bg,#fff);border:1px solid var(--line);box-shadow:0 10px 26px rgba(19,35,44,.16);color:var(--text);font-size:12.5px;line-height:1.35;pointer-events:none;opacity:0;transition:opacity .12s ease-out}
html:not([data-theme="glass"])[data-appearance="dark"] body[data-experience] .fdv-tip{box-shadow:0 12px 30px rgba(0,0,0,.45)}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-tip[hidden]{display:none}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-tip.on{opacity:1}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-tip>strong{display:block;font-size:12.5px;font-weight:700;margin-bottom:6px}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-tip-row{display:flex;align-items:center;gap:7px;margin-top:3px;color:var(--text)}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-tip-row>b{margin-left:auto;padding-left:16px;font-weight:700;font-variant-numeric:tabular-nums}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-tip-row.fdv-neg>b{color:var(--red)}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-sw{width:9px;height:9px;border-radius:3px;flex:none}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-sw-0{background:var(--fdv-gross)}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-sw-1{background:var(--fdv-profit)}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-tip-row.fdv-neg>.fdv-sw{background:var(--red)}
html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-sw-none{background:transparent}
@media (prefers-reduced-motion:reduce){
  html:not([data-theme="glass"])[data-appearance] body[data-experience] .fdv-tip{transition:none}
}

/* ===== Vehicle contribution bars (Profit & Earnings), every theme: a zero mark in the middle of the track, a profitable vehicle
   to the right of it and a losing one to the left. The bar keeps its width from the page (the share of fleet profit), drawn at
   half scale so either side fits; the % label next to it is unchanged. */
body[data-experience] #earningsView .annual-contribution>i{position:relative;overflow:visible}
body[data-experience] #earningsView .annual-contribution>i::after{content:"";position:absolute;left:50%;top:-3px;bottom:-3px;width:2px;margin-left:-1px;border-radius:1px;background:var(--muted)}
body[data-experience] #earningsView .annual-contribution>i b{position:absolute;top:0;bottom:0;left:50%;transform:scaleX(.5);transform-origin:0 50%;border-radius:0 999px 999px 0}
body[data-experience] #earningsView .annual-contribution>i b.loss{left:auto;right:50%;transform-origin:100% 50%;border-radius:999px 0 0 999px}
html:not([data-theme="glass"])[data-appearance] body[data-experience] #earningsView .annual-contribution>i b.loss{background:var(--red)!important}
/* Phone: the 12-month Annual trend fits its card instead of scrolling sideways (as in Glass) */
@media (max-width:780px){
  html:not([data-theme="glass"])[data-appearance] body[data-experience] #earningsView .annual-trend-chart{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:3px!important;overflow-x:visible!important;padding-right:6px!important}
  html:not([data-theme="glass"])[data-appearance] body[data-experience] #earningsView .annual-trend-month{min-width:0!important;width:auto!important}
  html:not([data-theme="glass"])[data-appearance] body[data-experience] #earningsView .annual-trend-month>span{font-size:10px;letter-spacing:-.01em}
}

/* FleetDV Glass (DRAFT, branch design/glass-v2). Appearance only: no data, calculation or behaviour changes.
   Loads last (after approved-design-overrides.css). Remove this file and its <link> in app-shell/scripts/tail.html to undo it.
   Colours follow design-ref/ref-finance-TRUE-COLOURS.jpg: a deep ocean-blue theme. Navy-to-blue backdrop, teal-blue glass sidebar with white
   text, dark navy glass top bar, a mid-blue page panel with a cyan glow at its top left, light blue-grey frosted cards with navy text.
   It is one theme: dark mode keeps the backdrop, sidebar, top bar and panel, and only turns the cards into translucent navy.
   Text keeps WCAG AA (4.5:1) everywhere, so a few reference details are a shade darker than the clip (secondary pill #5d7086 instead
   of #6E8094, the top of the sidebar gradient). Checked from rendered pixels by design-harness/contrast.mjs.
   Scope: the classic experience (what users see). Modern and Premium keep their own look; only the neutral sidebar-group rules apply.
   Performance: phones blur only the bars that float over content (top bar, bottom bar), lightly; cards and the page panel are not blurred
   there. Without backdrop-filter every glass surface falls back to a solid colour. prefers-reduced-motion turns all motion off.
   The page panel is drawn by .view::before (not the view itself), so the view never becomes a containing block for fixed elements.
   Selectors start html[data-theme="glass"][data-appearance] (always set at boot) so older appearance rules cannot win. */

/* ---------- Sidebar groups ---------- */
/* Classic (no data-theme): the groups do not exist visually - the list lays out exactly as before. */
.main-nav .nav-group{display:contents}
.main-nav .nav-group-label{display:none}
/* Glass: grouped list with small caps labels */
html[data-theme="glass"] .main-nav .nav-group{display:grid;gap:inherit}
html[data-theme="glass"] .main-nav .nav-group-label{display:block;padding:14px 12px 4px;color:var(--text-muted,#5f6b80);font:600 10.5px/1.2 "DM Sans",sans-serif;letter-spacing:.09em;text-transform:uppercase}
html[data-theme="glass"] .main-nav .nav-group:first-child .nav-group-label{padding-top:2px}
/* A group whose pages are all switched off (feature-hidden) or hidden shows no label. */
html[data-theme="glass"] .main-nav .nav-group:not(:has(>.nav-item:not([hidden]):not(.feature-hidden))){display:none}
@media (max-width:780px){
  /* In the phone drawer these pages live in the bottom bar instead (design-system.css), so they do not count. */
  html[data-theme="glass"] .main-nav .nav-group:not(:has(>.nav-item:not([hidden]):not(.feature-hidden):not(:is([data-view="overview"],[data-view="bookings"],[data-view="vehicles"],[data-view="expenses"],[data-view="reports"],[data-view="performance"],[data-view="decisions"],[data-view="safety"],[data-view="reconciliation"])))){display:none}
}
/* Greeting actions (overview.html): Glass only. */
.overview-welcome-actions{display:none}
/* Theme switch on the sign-in page: a small segmented control in both themes */
.auth-theme-switch{position:absolute;top:22px;right:24px;z-index:3;display:inline-flex;gap:2px;padding:3px;border-radius:999px;background:rgba(255,255,255,.78);border:1px solid rgba(10,34,54,.12);box-shadow:0 4px 14px rgba(8,30,50,.10)}
.auth-theme-switch button{border:0;background:transparent;color:#20303a;font:600 12px/1 "DM Sans",sans-serif;padding:7px 12px;border-radius:999px;cursor:pointer}
.auth-theme-switch button.active{background:#13232c;color:#fff}
.auth-theme-switch button:focus-visible{outline:3px solid rgba(0,120,110,.45);outline-offset:2px}
html[data-appearance="dark"] .auth-theme-switch{background:rgba(8,30,40,.78);border-color:rgba(255,255,255,.14)}
html[data-appearance="dark"] .auth-theme-switch button{color:#d8e4e8}
html[data-appearance="dark"] .auth-theme-switch button.active{background:#eef5f7;color:#0d1a20}
html[data-theme="glass"] .auth-theme-switch{background:rgba(19,48,88,.72);border-color:rgba(79,195,247,.45);box-shadow:0 0 18px rgba(41,182,246,.25)}
html[data-theme="glass"] .auth-theme-switch button{color:#eaf6ff}
html[data-theme="glass"] .auth-theme-switch button.active{background:#e9f6ff;color:#06203a}

/* ---------- Tokens (shared by light and dark) ---------- */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]){
  /* backdrop: dark navy at the top, saturated ocean blue lower down */
  --glass-page:#183f6e;
  --glass-page-image:
    radial-gradient(900px 560px at 18% 112%,rgba(41,182,246,.55),transparent 70%),
    radial-gradient(760px 520px at 88% 96%,rgba(30,78,140,.95),transparent 70%),
    radial-gradient(640px 420px at 64% 46%,rgba(36,110,190,.45),transparent 70%),
    radial-gradient(520px 380px at 96% 8%,rgba(79,195,247,.35),transparent 70%),
    linear-gradient(180deg,#132f55 0%,#163a66 35%,#1a4579 65%,#1e4e8c 100%);
  /* sidebar: teal-blue glass, white text */
  --glass-side:
    radial-gradient(180px 320px at 100% 48%,rgba(79,195,247,.85),rgba(41,182,246,.30) 45%,rgba(41,182,246,0) 75%),
    radial-gradient(240px 110px at 20% 0%,rgba(79,195,247,.55),rgba(79,195,247,0) 70%),
    linear-gradient(180deg,rgba(26,150,204,.96) 0%,rgba(18,132,184,.96) 6%,rgba(14,120,168,.96) 10%,rgba(12,112,158,.96) 30%,rgba(10,104,148,.96) 50%,rgba(10,82,124,.96) 75%,rgba(10,58,96,.97) 100%);
  --glass-side-solid:#2b5470;
  --glass-side-edge:rgba(79,195,247,.85);
  --side-label:#ffffff;
  --side-active:#1e9bd7;
  --side-active-edge:#4fc3f7;
  /* top bar: dark navy glass */
  --glass-bar:rgba(19,48,88,.90);
  --glass-bar-solid:#22384f;
  --glass-bar-field:rgba(255,255,255,.10);
  --glass-bar-edge:rgba(79,195,247,.60);
  --on-glass:#ffffff;
  --on-glass-soft:#dce8f2;
  /* page panel: mid-blue glass with a cyan glow at the top left; its own text is dark navy where it is bright */
  --glass-panel:
    radial-gradient(900px 520px at 0% 0%,rgba(79,195,247,.98) 0%,rgba(41,182,246,.85) 28%,rgba(41,182,246,0) 70%),
    radial-gradient(1100px 380px at 45% 110%,rgba(41,182,246,.80) 0%,rgba(41,182,246,.40) 40%,rgba(41,182,246,0) 75%),
    linear-gradient(100deg,rgba(41,170,235,.94) 0%,rgba(36,128,206,.93) 38%,rgba(32,92,164,.94) 68%,rgba(30,78,140,.95) 100%);
  --glass-panel-solid:#4b6f89;
  --glass-panel-edge:rgba(190,225,245,.30);
  --panel-title:#001c2a;
  --panel-text:#001c2a;
  /* cards: light frosted blue-grey (light mode) */
  --glass-card:linear-gradient(180deg,rgba(234,242,248,.84) 0%,rgba(206,222,234,.78) 100%);
  --glass-tile:linear-gradient(180deg,rgba(236,242,247,.86) 0%,rgba(206,220,232,.80) 100%);
  --glass-solid:#cbdbe7;
  --glass-edge:rgba(255,255,255,.62);
  --glass-line:rgba(10,34,54,.12);
  --glass-shadow:0 1.5px 0 rgba(255,255,255,1) inset,0 12px 22px -14px rgba(255,255,255,.5) inset,0 2px 6px rgba(4,20,50,.10),0 22px 54px rgba(4,20,50,.28);
  --glass-shadow-raised:0 1px 0 rgba(255,255,255,.9) inset,0 4px 10px rgba(8,36,64,.08),0 30px 64px rgba(8,36,64,.22);
  --glass-blur:18px;
  --glass-radius:22px;
  --glass-pill:#1c1d22;
  --glass-pill-text:#ffffff;
  --glass-pill-hover:#33353d;
  --glass-pill2:rgba(93,112,134,.94);
  --glass-pill2-hover:rgba(78,96,118,.96);
  --glass-chip:rgba(10,34,54,.08);
  --glass-soft:rgba(255,255,255,.42);
  --chart-gross:#1268a8;   /* 3:1+ on the light cards (was #38b6f0, 1.7:1): chart bars and legend swatches need 3:1 */
  --chart-latest:#0d5d96;
  --chart-profit:#0f3d6b;
  --donut-track:#dbe8f1;
  /* existing tokens the app reads (card content) */
  --app-bg:transparent;
  --section-bg:rgba(214,229,239,.66);
  --card-bg:rgba(214,229,239,.66);
  --card-elevated-bg:rgba(255,255,255,.30);
  --metric-bg:rgba(255,255,255,.55);
  --interactive-bg:var(--glass-soft);
  --text-primary:#0d2131;
  --text-secondary:#13263a;
  --text-muted:#162a3c;
  --muted:#162a3c;   /* older styles read --muted (an override set it to a grey that fails on glass) */
  --border-subtle:rgba(10,34,54,.09);
  --border-default:rgba(10,34,54,.13);
  --accent:#04293d;
  --positive:#023f2c;
  --negative:#8f2027;
  --warning:#6b4708;
  --info:#1c5480;
  --theme-shadow:var(--glass-shadow);
  --brand-navy:transparent;
}
/* Dark mode: same blues; cards become translucent navy with light text. */
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]){
  --glass-card:linear-gradient(180deg,rgba(30,56,82,.74) 0%,rgba(14,30,48,.70) 100%);
  --glass-tile:linear-gradient(180deg,rgba(34,62,90,.76) 0%,rgba(18,36,56,.72) 100%);
  --section-bg:rgba(20,40,60,.74);
  --card-bg:rgba(20,40,60,.74);
  --glass-solid:#14283e;
  --glass-edge:rgba(170,215,245,.20);
  --glass-line:rgba(255,255,255,.09);
  --glass-shadow:0 1px 0 rgba(200,230,255,.14) inset,0 2px 6px rgba(0,8,20,.10),0 22px 54px rgba(0,8,20,.30);
  --glass-shadow-raised:0 1px 0 rgba(255,255,255,.06) inset,0 20px 44px rgba(0,8,20,.50);
  --glass-chip:rgba(255,255,255,.08);
  --glass-soft:rgba(255,255,255,.08);
  --glass-pill:#eef4f9;
  --glass-pill-text:#0d1a26;
  --glass-pill-hover:#ffffff;
  --chart-gross:#5e9fc6;   /* 4.1:1+ on the dark cards (was #4d86a8, 3.0:1) */
  --chart-latest:#57b1e5;
  --chart-profit:#a7d6ef;
  --donut-track:#24405a;
  --card-elevated-bg:rgba(255,255,255,.05);
  --metric-bg:rgba(255,255,255,.10);
  --text-primary:#eef5fa;
  --text-secondary:#e3ecf3;
  --text-muted:#e2ebf3;
  --muted:#e2ebf3;
  --border-subtle:rgba(255,255,255,.08);
  --border-default:rgba(255,255,255,.12);
  --accent:#7fd3f0;
  --positive:#7cefc8;
  --negative:#ff9a9e;
  --warning:#f3c771;
  --info:#8fcdf5;
}

/* ---------- Backdrop ---------- */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]){background:var(--glass-page)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"])::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--glass-page-image)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.app-shell,.workspace,.author-footer){background:transparent!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .author-footer,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .author-footer :is(strong,a){color:var(--on-glass-soft)!important;font-weight:500}

/* ---------- Page panel: one large frosted panel holding the page ---------- */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active{position:relative;isolation:isolate;padding:28px 28px 30px;margin-top:6px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:30px;
  background:var(--glass-panel);border:1px solid var(--glass-panel-edge);box-shadow:0 1px 0 rgba(220,240,255,.30) inset,0 26px 60px rgba(4,18,40,.30);
  -webkit-backdrop-filter:blur(26px);backdrop-filter:blur(26px);
}

/* ---------- Cards ---------- */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.panel,.metric-card,.mini-metric,.feature-panel,.fleet-panel,.vehicle-card,.fleet-pulse-card,.trip-action-card,.booking-mobile-card,.bookings-data-surface,.expense-vehicle-card,.vehicle-expense-panel,.expense-category-panel,.expense-transactions-panel,.maintenance-card,.maintenance-vehicle-card,.goal-card,.report-card,.loan-card,.mileage-card,.decision-card,.vehicle-decision-card,.annual-kpi-card,.annual-month-card,.annual-highlight-card,.annual-trend-panel,.annual-month-panel,.annual-vehicle-panel,.annual-vehicle-card,.breakdown-panel,.calculator-panel,.reconciliation-card,.breakeven-card,.calendar-board,.setup-launchpad,.overview-fleet-card,.admin-stat){
  background:var(--glass-card)!important;
  border:1px solid var(--glass-edge)!important;
  border-radius:var(--glass-radius)!important;
  box-shadow:var(--glass-shadow)!important;
  color:var(--text-primary)!important;
  -webkit-backdrop-filter:blur(var(--glass-blur));
  backdrop-filter:blur(var(--glass-blur));
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.metric-card,.mini-metric,.admin-stat,.annual-kpi-card,.overview-fleet-card){background:var(--glass-tile)!important}
/* Surfaces that float over other content stay nearly opaque so their text stays readable. */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.modal,.pro-upgrade-modal,.calendar-booking-modal,.experience-command-palette section,.experience-profile-menu,.account-panel,.toast){
  background-color:var(--glass-solid)!important;color:var(--text-primary)!important;border-color:var(--glass-line)!important;
}
/* Tables and inner surfaces sit inside a card: no second layer of glass. */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.data-table,.annual-financial-table,.fleet-table-wrap,.annual-table-wrap){background:transparent!important;border-color:var(--glass-line)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.data-table thead,.annual-financial-table thead){background:var(--glass-chip)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.data-table,.annual-financial-table) thead th{color:var(--text-secondary)!important;font-weight:600}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.data-table tbody tr,.annual-financial-table tbody tr):hover{background:rgba(255,255,255,.22)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.data-table tbody tr,.annual-financial-table tbody tr):hover{background:rgba(255,255,255,.04)!important}

/* ---------- Lighter type: bold only for big numbers, page titles and card titles ---------- */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(p,small,td,dd,dt,label,.cost-row span,.chart-label,.legend span,.upcoming-period-note,.goal-context){font-weight:400!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(small,.cost-row span,.legend span,.upcoming-period-note,.goal-context,td small){font-size:12px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.alert-row strong,.booking-list strong){font-weight:500!important;font-size:13px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.overline,.mini-label){font-weight:600!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(td strong,.data-table td:first-child strong,.booking-list strong,.alert-row strong){font-weight:600!important}

/* ---------- Sidebar: teal-blue glass, white text ---------- */
@media (min-width:781px){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar{
    inset:12px auto 12px 12px!important;width:220px;height:auto;padding:20px 12px 14px;
    border:1px solid var(--glass-side-edge)!important;border-radius:26px;
    background:var(--glass-side)!important;box-shadow:0 1px 0 rgba(190,230,255,.22) inset,0 18px 44px rgba(2,14,32,.35)!important;
    -webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%);
    overflow-y:auto;scrollbar-width:thin;
  }
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace{padding-left:30px;padding-right:30px}
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar{color:var(--on-glass)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .brand-mark{background-image:url('/fleetdv-mark-light.png')!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar :is(.brand-word,.brand-word .brand-dv){color:var(--on-glass)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .brand{padding:0 8px 18px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-group-label{color:var(--side-label);font-weight:600;font-size:10.5px;letter-spacing:.11em}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .main-nav{gap:2px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item{height:38px;border:1px solid transparent;border-radius:12px;font-weight:400!important;font-size:13px;color:var(--on-glass)!important;transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item>span:first-child{color:var(--on-glass)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item:hover{background:rgba(255,255,255,.10)!important;color:var(--on-glass)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item.active{
  color:var(--on-glass)!important;background:var(--side-active)!important;border-color:var(--side-active-edge)!important;font-weight:500!important;
  box-shadow:0 0 0 1px rgba(77,163,224,.35),0 0 16px rgba(77,163,224,.38),0 1px 0 rgba(255,255,255,.18) inset!important;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item.active>span:first-child{color:var(--on-glass)!important}
/* Small light count badges */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item b,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-count{
  min-width:22px;height:22px;padding:0 6px;display:grid;place-items:center;border-radius:999px;
  background:rgba(226,238,248,.92)!important;color:#0d2131!important;border:0!important;
  font:600 11px/1 "DM Sans",sans-serif;box-shadow:0 2px 6px rgba(2,14,32,.18)!important;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .profile{margin-top:auto;padding:12px 8px 2px;border-top:1px solid rgba(255,255,255,.16)!important;border-radius:0;color:var(--on-glass)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .profile :is(strong,small,b){color:var(--on-glass)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .profile-avatar,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #experienceProfileButton{
  border-radius:50%!important;background:linear-gradient(140deg,#8fd0ec,#3f8fc4)!important;color:#ffffff!important;border:2px solid rgba(200,232,250,.55)!important;
  box-shadow:0 4px 14px rgba(2,14,32,.30)!important;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #experienceProfileInitials:not(.has-photo){background-color:transparent!important;color:#001c2a!important;border-radius:50%!important;font-weight:700}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-profile-chevron{color:#001c2a!important}

/* ---------- Top bar: dark navy glass, light text ---------- */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header{
  position:sticky;top:12px;z-index:20;margin:12px 0 10px;padding:10px 12px 10px 20px;min-height:0;height:auto;
  border:1px solid var(--glass-bar-edge)!important;border-radius:22px;background:var(--glass-bar)!important;
  box-shadow:0 1px 0 rgba(190,225,255,.14) inset,0 14px 34px rgba(2,14,32,.30)!important;
  -webkit-backdrop-filter:blur(22px) saturate(150%)!important;backdrop-filter:blur(22px) saturate(150%)!important;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header :is(h1,p,.page-heading>p,.global-period-indicator,.period-control-label){color:var(--on-glass)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header .page-heading>p,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header .global-period-indicator{color:var(--on-glass-soft)!important;font-size:12px;font-weight:500}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header h1{font-size:22px;font-weight:700;letter-spacing:-.02em}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .menu-button{color:var(--on-glass)!important;background:var(--glass-bar-field)!important;border-color:var(--glass-bar-edge)!important;border-radius:50%!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-command-trigger{
  height:42px;border-radius:999px!important;padding:0 8px 0 16px;background:var(--glass-bar-field)!important;border:1px solid var(--glass-bar-edge)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset;color:var(--on-glass)!important;transition:background-color .2s ease;
}
@media (min-width:1101px){html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header>.experience-command-trigger{width:min(440px,32vw);flex:0 1 440px;margin-inline:auto}}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-command-trigger :is(span,strong){color:var(--on-glass-soft)!important;font-weight:400}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-command-trigger kbd{border-radius:999px;background:rgba(255,255,255,.14)!important;border:0!important;color:var(--on-glass)!important;font-weight:500}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header :is(select,.sample-pill,.mobile-period-button,.secondary-button,.account-button){
  border-radius:999px!important;border:1px solid var(--glass-bar-edge)!important;background-color:var(--glass-bar-field)!important;color:var(--on-glass)!important;font-weight:500!important;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header select option{color:#0d2131;background:#fff}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header .month-select{background:transparent!important;border:0!important;box-shadow:none!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header .subscription-badge :is(strong,small){color:var(--on-glass)!important}

/* ---------- Buttons ---------- */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.primary-button,.checkout-button,.modern-primary){
  border-radius:999px!important;background:var(--glass-pill)!important;color:var(--glass-pill-text)!important;border:0!important;font-weight:600!important;
  box-shadow:0 6px 18px rgba(2,8,20,.30)!important;transition:background-color .2s ease,box-shadow .2s ease;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.primary-button,.checkout-button,.modern-primary) *{color:inherit!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.primary-button,.checkout-button,.modern-primary):hover{background:var(--glass-pill-hover)!important}
/* Secondary: blue-grey glass pill with white text */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.secondary-button,.more-button){
  border-radius:999px!important;background:var(--glass-pill2)!important;border:1px solid rgba(200,225,245,.30)!important;color:#ffffff!important;font-weight:500!important;
  box-shadow:0 4px 12px rgba(2,14,32,.16);transition:background-color .2s ease,box-shadow .2s ease;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.secondary-button,.more-button):hover{background:var(--glass-pill2-hover)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .text-link{font-weight:600}

/* ---------- Overview ---------- */
/* Order: greeting, (setup), Revenue & Profit + Costs, stat tiles, Needs Attention, the rest. CSS order only; the markup is unchanged. */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"]) #overviewView.active{display:flex;flex-direction:column;gap:20px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #overviewView.active>*{margin-top:0!important;margin-bottom:0!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"]) #overviewView>.overview-welcome{order:0!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"]) #overviewView>.setup-launchpad{order:1!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"]) #overviewView>.overview-financial-grid{order:2!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"]) #overviewView>.metric-grid{order:3!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"]) #overviewView>.overview-alerts-panel{order:4!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"]) #overviewView>.overview-operations-grid{order:5!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"]) #overviewView>.fleet-panel{order:6!important}
/* Greeting on the bright corner of the panel, actions on the right */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .overview-welcome{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:2px 2px 4px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .overview-welcome h2{font:700 clamp(26px,3vw,34px)/1.12 Manrope,sans-serif;letter-spacing:-.035em;color:var(--panel-title)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .overview-welcome p{margin-top:6px;max-width:52ch;color:var(--panel-text)!important;font-weight:400!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .overview-welcome-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .overview-welcome-actions>button{height:42px;padding:0 18px;font-size:13.5px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #overviewView .metric-grid{gap:18px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .metric-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;height:auto;min-height:160px;padding:18px 20px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .metric-card::before{display:none}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .metric-card .metric-top{display:contents}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .metric-card .metric-icon{order:0;display:grid;place-items:center;width:36px;height:36px;margin-bottom:8px;border-radius:50%!important;background:var(--metric-bg)!important;border:1px solid var(--glass-edge);color:var(--text-primary)!important;font-style:normal;font-size:14px;box-shadow:0 2px 8px rgba(6,24,44,.12)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .metric-card>strong{order:1;font-size:clamp(26px,2.4vw,32px)!important;font-weight:700!important;letter-spacing:-.03em}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .metric-card .metric-top>span{order:2;color:var(--text-primary);font-weight:400!important;font-size:12px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .metric-card>small{order:3;color:var(--text-muted)!important;font-size:12px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #overviewView .metric-card.profit{background:var(--glass-tile)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .overline,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .mini-label{color:var(--text-muted)!important;letter-spacing:.11em;font-size:10.5px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .panel-head h2{color:var(--text-primary);font-weight:500!important;font-size:14px!important;letter-spacing:-.005em}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .panel-head{border-color:var(--glass-line)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .overview-financial-grid,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .overview-operations-grid{gap:18px}
/* Bar chart: #8EC1DC, the latest period vivid #57B1E5; profit a deeper blue beside it */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart .bar{border-radius:8px 8px 3px 3px}
/* Slimmer bars, more air: the pair fills about 45% of its slot */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart .chart-group{grid-template-columns:repeat(2,minmax(0,20%))!important;justify-content:center;column-gap:5%}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart::before,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart::after{border-top-color:rgba(10,34,54,.09)!important;border-top-style:solid!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart{border-bottom-color:rgba(10,34,54,.10)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart::before,html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart::after{border-top-color:rgba(255,255,255,.07)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart{border-bottom-color:rgba(255,255,255,.10)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart .bar.gross{background:var(--chart-gross)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart .chart-group:last-child .bar.gross{background:var(--chart-latest)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart .bar.profit{background:var(--chart-profit)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart .bar.negative{background:color-mix(in srgb,var(--negative) 45%,transparent)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .legend-gross{background:var(--chart-gross)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .legend-profit{background:var(--chart-profit)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(#revenueChart .chart-label,.legend span){color:var(--text-muted)}
/* Donut: a blue ring led by #67B0D1 on a light track. The renderer paints the slices with these colour variables. */
/* cost donut and its legend: every colour 3:1+ on the card (the light set was 1.0–2.9:1: Turo fees, Discounts, Loans, Other costs) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .breakdown-panel{--red:#0f62a0;--orange:#855400;--blue:#0e3f6e;--purple:#5b4bb0;--green:#0b6560}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .breakdown-panel{--red:#38b6f0;--orange:#e9c46a;--blue:#c3b5f0;--purple:#8fd3c3;--green:#a7d3ea}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #costDonut{box-shadow:0 0 0 7px var(--donut-track)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #costDonut>div{background:var(--donut-track)!important;box-shadow:0 0 0 1px var(--glass-edge)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .cost-row i{border-radius:50%}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .cost-row span{color:var(--text-secondary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .goal-track{background:var(--glass-chip)!important;border-radius:999px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .goal-track i{background:linear-gradient(90deg,#8ec1dc,#57b1e5)!important;border-radius:999px}
/* Status pills and alert icons: a lighter chip behind their coloured text keeps it readable on glass. */
/* Status chips (every page): small soft chips with a dot, tinted by state, like the video's "Overdue" chip. */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill{
  display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 8px;border-radius:999px;border:1px solid transparent!important;
  font:500 11px/1.4 "DM Sans",sans-serif!important;letter-spacing:.01em;text-transform:none;white-space:nowrap;
  background-color:rgba(10,34,54,.08)!important;color:#22384a!important;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.9;flex:0 0 6px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill.upcoming{background-color:rgba(61,143,196,.18)!important;color:#174766!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill.active{background-color:rgba(36,150,110,.18)!important;color:#0a4d36!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill:is(.canceled,.cancelled,.problem,.overdue){background-color:rgba(200,60,70,.15)!important;color:#7d1d25!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill{background-color:rgba(255,255,255,.09)!important;color:#dbe6ef!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill.upcoming{background-color:rgba(87,177,229,.20)!important;color:#bfe6fb!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill.active{background-color:rgba(79,220,174,.18)!important;color:#b2f3dc!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill:is(.canceled,.cancelled,.problem,.overdue){background-color:rgba(255,120,120,.18)!important;color:#ffd0d2!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .alert-row>span:not([class]){background-color:rgba(255,255,255,.62)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.status-pill,.alert-row>span:not([class])){background-color:rgba(255,255,255,.08)!important}

/* ---------- Page parts shared by every page (first styled for Bookings) ---------- */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .section-toolbar{border-bottom:0!important;padding-bottom:0;margin-bottom:20px;align-items:flex-start}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .section-toolbar h2{font:700 clamp(26px,3vw,32px)/1.12 Manrope,sans-serif;letter-spacing:-.03em;color:var(--panel-title)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .section-toolbar p{margin-top:6px;font-size:13px;font-weight:400!important;color:var(--panel-text)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .toolbar-actions{gap:10px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .toolbar-actions>button{height:40px;padding:0 16px;font-size:13px}
/* Summary tiles */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .mini-metrics{gap:16px;margin-bottom:18px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .mini-metric{padding:16px 20px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .mini-metric::before{display:none!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .mini-metric>span{font-size:12px;font-weight:400;color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .mini-metric>strong{font-size:24px!important;font-weight:700!important;letter-spacing:-.02em}
/* Table card: filters as glass pills, light header row, soft dividers, subtle hover */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .bookings-data-surface{padding:20px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.table-filters,.toolbar-actions) label{font-size:12px;font-weight:500;color:var(--text-secondary)!important;letter-spacing:0;text-transform:none}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.table-filters,.toolbar-actions) :is(input,select){
  min-height:40px!important;height:40px;border-radius:999px!important;padding:0 16px!important;font-size:13px!important;font-weight:400!important;
  background-color:rgba(255,255,255,.55)!important;border:1px solid rgba(255,255,255,.7)!important;color:var(--text-primary)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 2px 8px rgba(8,36,64,.06);transition:background-color .2s ease,box-shadow .2s ease;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.table-filters,.toolbar-actions) select{padding-right:34px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.table-filters,.toolbar-actions) :is(input,select):hover{background-color:rgba(255,255,255,.72)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.table-filters,.toolbar-actions) :is(input,select){background-color:rgba(255,255,255,.08)!important;border-color:rgba(170,215,245,.22)!important;box-shadow:none}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.table-filters,.toolbar-actions) :is(input,select):hover{background-color:rgba(255,255,255,.12)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .bookings-column-note{margin:14px 2px 12px;font-size:12px;line-height:1.5;color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .fleet-table-wrap{border:1px solid rgba(255,255,255,.5)!important;border-radius:16px!important;overflow:auto hidden;background:rgba(255,255,255,.14)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .fleet-table-wrap{border-color:rgba(170,215,245,.14)!important;background:rgba(255,255,255,.02)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table thead th{
  background:rgba(255,255,255,.50)!important;color:var(--text-secondary)!important;font:600 11px/1.3 "DM Sans",sans-serif!important;letter-spacing:.05em;text-transform:uppercase;
  padding:10px 8px!important;border-bottom:1px solid rgba(10,34,54,.08)!important;white-space:normal!important;vertical-align:bottom;
}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table thead th{background:rgba(255,255,255,.07)!important;border-bottom-color:rgba(255,255,255,.08)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table tbody td{padding:10px 8px!important;color:var(--text-primary)!important;font-size:12.5px;border-bottom:1px solid rgba(10,34,54,.07)!important;vertical-align:middle}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table tbody td{border-bottom-color:rgba(255,255,255,.07)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table tbody tr:last-child td{border-bottom:0!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table tbody tr{transition:background-color .15s ease}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table tbody tr:hover{background:rgba(255,255,255,.30)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table tbody tr:hover{background:rgba(255,255,255,.05)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table td small{color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table td strong{font-weight:500!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table .profit-value{font-weight:600!important;color:var(--positive)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table .profit-value.negative{color:var(--negative)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table .vehicle-cell{gap:10px}
/* Car thumbnails: the no-photo placeholder becomes a small glass tile */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .fleet-vehicle-image--compact{width:44px!important;min-width:44px!important;height:34px!important;border-radius:10px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .fleet-vehicle-image:has(>.vehicle-image-fallback){background:transparent!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .vehicle-image-fallback{background:rgba(255,255,255,.55)!important;color:#3d6a87!important;border:1px solid rgba(255,255,255,.7);border-radius:inherit}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .vehicle-image-fallback{background:rgba(255,255,255,.08)!important;color:#9cc8e6!important;border-color:rgba(170,215,245,.18)}
/* Row actions: a small light pill (Edit) and a quiet round delete */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.data-table,.expense-transaction-row,.expense-row) .more-button{height:28px;padding:0 12px!important;border-radius:999px!important;background:rgba(255,255,255,.6)!important;border:1px solid rgba(255,255,255,.75)!important;color:var(--text-primary)!important;font-size:12px!important;font-weight:500!important;box-shadow:none}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.data-table,.expense-transaction-row,.expense-row) .more-button:hover{background:rgba(255,255,255,.85)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.data-table,.expense-transaction-row,.expense-row) .more-button{background:rgba(255,255,255,.08)!important;border-color:rgba(170,215,245,.2)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.data-table,.expense-transaction-row,.expense-row) .more-button:hover{background:rgba(255,255,255,.14)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.data-table,.expense-transaction-row,.expense-row) .delete-button{width:28px;height:28px;margin-left:4px;padding:0!important;border-radius:50%!important;color:var(--text-muted)!important;font-size:15px;transition:background-color .2s ease,color .2s ease}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.data-table,.expense-transaction-row,.expense-row) .delete-button:hover{background:rgba(200,60,70,.14)!important;color:var(--negative)!important}
/* ---------- Profit & Earnings ---------- */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header h1{white-space:nowrap}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header>.page-heading{flex:0 0 auto}
/* Page descriptions: an older rule makes these bold by id */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(#overviewGreetingContext,#bookingsView .section-toolbar p,#vehiclesView .section-toolbar p,#calendarView .section-toolbar p,#monthlyProfitSubtitle,#yearlyEarningsSubtitle){font-weight:400!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .toolbar-actions{align-items:flex-end}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .profit-vehicle-filter{display:grid;gap:6px;min-width:210px}
/* The True Profit definition: a soft glass note instead of a pale green bar */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .formula-note{
  display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin:0 0 18px;padding:10px 16px;border-radius:14px;
  background:rgba(255,255,255,.42)!important;border:1px solid rgba(255,255,255,.6)!important;color:var(--text-secondary)!important;font-size:12px;font-weight:400;box-shadow:none!important;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .formula-note>span{font-size:10.5px;font-weight:600;letter-spacing:.11em;text-transform:uppercase;color:var(--positive)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .formula-note{background:rgba(255,255,255,.06)!important;border-color:rgba(170,215,245,.16)!important}
/* Long tile labels ("Net earnings · November 2026") read as quiet sub-lines */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .mini-metric>span{text-transform:none!important;letter-spacing:0!important;line-height:1.35}
/* The month card already sits in a glass panel: no second layer */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .profit-month-card{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .profit-month-card :is(h3,h2){font-weight:600}

/* Labels that older styles colour with fixed greys: use the theme's muted text (passes 4.5:1 on the glass in both modes) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView :is(.annual-kpi-card>span,.annual-chart-legend span,.annual-trend-month>span,.annual-month-card i,.annual-vehicle-profit>span,.annual-vehicle-card small,.profit-month-head span,.annual-month-card small){color:var(--text-muted)!important}
/* Text that sits directly on the page panel (not in a card) stays dark navy in both modes: the panel is bright in both */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .section-toolbar :is(label,label>span,.period-control-label){color:var(--panel-title)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .section-toolbar :is(input,select){background-color:rgba(255,255,255,.62)!important;border-color:rgba(255,255,255,.75)!important;color:#0d2131!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .formula-note{background:rgba(255,255,255,.52)!important;border-color:rgba(255,255,255,.66)!important;color:#0d2131!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .formula-note>span{color:#023f2c!important}

/* Phone: the 12-month chart fits its card instead of scrolling sideways */
@media (max-width:780px){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .annual-trend-chart{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:3px!important;overflow-x:visible!important;padding-inline:0!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .annual-trend-month{min-width:0!important;width:auto!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .annual-trend-month>span{font-size:10px;letter-spacing:-.01em}
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .profit-equation{background:rgba(255,255,255,.42)!important;border:1px solid rgba(255,255,255,.6)!important;border-radius:12px!important;color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .profit-equation{background:rgba(255,255,255,.06)!important;border-color:rgba(170,215,245,.16)!important}
/* Dark: loss amounts in the month breakdown sit on lighter glass tiles; #ffb4b7 keeps them 4.5:1 (5.0:1 on the lightest tile, rgb(40,80,114)) */
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView :is(.profit-month-head,.profit-month-card) .negative{color:#ffb4b7!important}

/* ---------- Vehicles ---------- */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-page-header h2{font:700 clamp(26px,3vw,32px)/1.12 Manrope,sans-serif!important;letter-spacing:-.03em;color:var(--panel-title)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-page-header .overline{color:var(--panel-title)!important}
/* Pill fields: page-header search/status and the loan calculator */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.vehicle-page-header,.calculator-form,.expense-filter,.expense-summary-search) :is(input,select){
  min-height:40px!important;height:40px;border-radius:999px!important;padding:0 16px!important;font-size:13px!important;font-weight:400!important;
  background-color:rgba(255,255,255,.55)!important;border:1px solid rgba(255,255,255,.7)!important;color:var(--text-primary)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 2px 8px rgba(8,36,64,.06);transition:background-color .2s ease;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.vehicle-page-header,.calculator-form,.expense-filter,.expense-summary-search) select{padding-right:34px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .calculator-form label:has(.input-prefix) input{padding-left:28px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .calculator-form label:has(.input-suffix) input{padding-right:30px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .calculator-form :is(.input-prefix,.input-suffix){color:var(--text-muted)!important;z-index:1}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .calculator-form label{color:var(--text-secondary)!important;font-size:12px;font-weight:500}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .calculator-form :is(input,select){background-color:rgba(255,255,255,.08)!important;border-color:rgba(170,215,245,.22)!important;box-shadow:none}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-page-header :is(input,select){background-color:rgba(255,255,255,.62)!important;border-color:rgba(255,255,255,.75)!important;color:#0d2131!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .loan-result{background:rgba(255,255,255,.42)!important;border:1px solid rgba(255,255,255,.6)!important;border-radius:16px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .loan-result{background:rgba(255,255,255,.06)!important;border-color:rgba(170,215,245,.16)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .loan-result>span,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .loan-result small{color:var(--text-muted)!important;font-weight:400}
/* Car cards: glass photo area, soft chips, round menu button, quiet facts grid, blue utilisation bar */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card{overflow:hidden}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card-media{background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.22))!important;border-bottom:1px solid rgba(255,255,255,.55)}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card-media{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03))!important;border-bottom-color:rgba(170,215,245,.12)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .fleet-vehicle-image--card .vehicle-image-fallback{background:transparent!important;border:0!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView :is(.vin-status,.vehicle-activity){display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 8px!important;border-radius:999px!important;font:500 11px/1.4 "DM Sans",sans-serif!important;box-shadow:none!important;border:0!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView :is(.vin-status,.vehicle-activity)::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:0 0 6px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vin-status{background:rgba(255,248,232,.9)!important;color:#5c3d05!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vin-status:not(.pending){background:rgba(232,246,240,.9)!important;color:#0a4d36!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-activity{background:rgba(36,150,110,.18)!important;color:#0a4d36!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-activity:not(.booked){background:rgba(10,34,54,.08)!important;color:#22384a!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-activity{background:rgba(79,220,174,.18)!important;color:#b2f3dc!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-activity:not(.booked){background:rgba(255,255,255,.09)!important;color:#dbe6ef!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-manage-button{width:34px;height:34px;padding:0!important;border-radius:50%!important;background:rgba(255,255,255,.72)!important;color:#0d2131!important;border:1px solid rgba(255,255,255,.8)!important;box-shadow:0 2px 8px rgba(8,36,64,.12)}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-manage-button{background:rgba(16,34,54,.72)!important;color:#eef5fa!important;border-color:rgba(170,215,245,.2)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-identity h3{font-weight:600;font-size:16px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-identity p{color:var(--text-muted)!important;font-size:12px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card-facts{gap:0!important;background:rgba(255,255,255,.28)!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:14px!important;overflow:hidden}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card-facts{background:rgba(255,255,255,.04)!important;border-color:rgba(170,215,245,.14)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card-facts>div{background:transparent!important;border:0!important;box-shadow:inset -1px -1px 0 rgba(10,34,54,.07);padding:10px 12px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card-facts>div{box-shadow:inset -1px -1px 0 rgba(255,255,255,.06)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card-facts>div>span{font-size:11.5px;font-weight:400;color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card-facts>div>strong{font-size:13px;font-weight:600}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-utilization>span{font-size:12px;font-weight:500}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-utilization small{color:var(--text-muted)!important;font-weight:400}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-utilization i{background:var(--glass-chip)!important;height:6px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-utilization i b{background:linear-gradient(90deg,#8ec1dc,#57b1e5)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card-footer>span{color:var(--text-muted)!important;font-size:12px}
/* Equal-height cards: the facts box fills the spare height, so utilisation and the footer line up across a row */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehicleGrid{align-items:stretch}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehicleGrid>.vehicle-card{display:flex!important;flex-direction:column;height:auto!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehicleGrid>.vehicle-card>.vehicle-card-content{display:flex!important;flex-direction:column;flex:1 1 auto}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehicleGrid .vehicle-card-content>.vehicle-card-facts{flex:1 1 auto;align-content:start}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehicleGrid>.vehicle-card.analytics-locked>.vehicle-card-footer{margin-top:auto}
/* Fee history rows */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .plan-row{border-color:var(--glass-line)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .plan-row .vehicle-badge{background:rgba(255,255,255,.55)!important;border:1px solid rgba(255,255,255,.7)!important;border-radius:10px!important;color:var(--text-secondary)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .plan-row .vehicle-badge{background:rgba(255,255,255,.08)!important;border-color:rgba(170,215,245,.18)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .plan-row small{color:var(--text-muted)!important;font-size:12px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .plan-row>strong{font-weight:600}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .plan-row .delete-button{width:28px;height:28px;border-radius:50%!important;color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .plan-row .delete-button:hover{background:rgba(200,60,70,.14)!important;color:var(--negative)!important}
/* Free plan: the analytics banner as a glass note */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .analytics-selection-banner{background:rgba(255,255,255,.42)!important;border:1px solid rgba(255,255,255,.6)!important;border-radius:18px!important;color:var(--text-primary)!important;box-shadow:var(--glass-shadow)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .analytics-selection-banner :is(p,small){color:var(--text-secondary)!important;font-weight:400}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .analytics-selection-banner{background:rgba(16,34,54,.78)!important;border-color:rgba(170,215,245,.18)!important}

/* Light fields on the panel in dark mode keep a readable placeholder */
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.section-toolbar,.vehicle-page-header) :is(input,textarea)::placeholder{color:#3b5062!important}
/* Free plan: locked car cards use the quieter card type */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card.analytics-locked{padding:20px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card.analytics-locked h3{font-size:16px!important;font-weight:600}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card.analytics-locked>p{font-size:13px!important;font-weight:400;color:var(--text-secondary)!important;line-height:1.5}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card.analytics-locked>p:first-of-type{font-weight:500;color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card.analytics-locked .free-edit-note{font-size:12px!important;color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card.analytics-locked .vehicle-card-footer .text-link{font-size:12px!important}
/* Loan calculator: give its description room instead of a narrow column */
@media (min-width:1101px){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .calculator-panel{grid-template-columns:minmax(190px,.9fr) minmax(0,3fr) auto!important;gap:20px!important;align-items:center}
}

/* Card descriptions that older styles colour with a fixed grey */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.panel-head p,.panel-caption,.calculator-panel>div>p){color:var(--text-muted)!important;font-weight:400}

/* ---------- Expenses ---------- */
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.expense-filter,.expense-summary-search,.calculator-form) :is(input,select){background-color:rgba(255,255,255,.08)!important;border-color:rgba(170,215,245,.22)!important;box-shadow:none}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.expense-filter,.expense-summary-search)>span{font-size:12px;font-weight:500;color:var(--text-secondary)!important}
/* Transactions header: title on top, the four filters in an even row below (they overflowed the card in one line) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transactions-head{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transactions-head>div:first-child{grid-column:1/-1}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transactions-head .expense-filter{min-width:0;width:auto!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transactions-head .expense-filter :is(input,select){width:100%!important;min-width:0!important}
@media (max-width:1100px){ html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transactions-head{grid-template-columns:repeat(2,minmax(0,1fr))} }
/* Category bars: sky blue on a soft track */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-track{background:var(--glass-chip)!important;border-radius:999px!important;height:7px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-track i{background:linear-gradient(90deg,#8ec1dc,#57b1e5)!important;border-radius:999px!important}
/* Vehicle cost cards and transaction rows */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView :is(.expense-icon,.expense-vehicle-icon){background:rgba(255,255,255,.55)!important;border:1px solid rgba(255,255,255,.7)!important;color:#2f5f7e!important;border-radius:10px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView :is(.expense-icon,.expense-vehicle-icon){background:rgba(255,255,255,.08)!important;border-color:rgba(170,215,245,.18)!important;color:#9cc8e6!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transaction-group{border:0!important;background:transparent!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transaction-group>summary{background:rgba(255,255,255,.30)!important;border:1px solid rgba(255,255,255,.5)!important;border-radius:14px!important;padding:10px 12px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transaction-group>summary{background:rgba(255,255,255,.05)!important;border-color:rgba(170,215,245,.12)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transaction-group>summary small{color:var(--text-muted)!important;font-size:12px;font-weight:400}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-group-toggle,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-group-toggle::after{color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transaction-row{background:transparent!important;border:0!important;border-bottom:1px solid var(--glass-line)!important;border-radius:0!important;box-shadow:none!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transaction-row:last-child{border-bottom:0!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transaction-meta,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-allocation-context{color:var(--text-muted)!important;font-size:12px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-transaction-copy strong{font-weight:500}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-basis-label{display:inline-flex;align-items:center;padding:2px 9px!important;border-radius:999px!important;border:0!important;font:500 11px/1.4 "DM Sans",sans-serif!important;background:rgba(10,34,54,.08)!important;color:#22384a!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-basis-label.acquisition{background:rgba(61,143,196,.18)!important;color:#174766!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-basis-label{background:rgba(255,255,255,.09)!important;color:#dbe6ef!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-basis-label.acquisition{background:rgba(87,177,229,.2)!important;color:#bfe6fb!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-vehicle-identity>div::before{background:rgba(255,255,255,.6)!important;color:#2f5f7e!important;border:1px solid rgba(255,255,255,.75);border-radius:10px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-vehicle-identity>div::before{background:rgba(255,255,255,.08)!important;color:#9cc8e6!important;border-color:rgba(170,215,245,.18)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-vehicle-identity>span{color:var(--text-muted)!important;font-size:12px;font-weight:400}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-summary-search{font-size:12px!important;font-weight:500!important;color:var(--text-secondary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .muted-note{color:var(--text-muted)!important;font-size:12px}

/* ---------- Trip center ---------- */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-vehicle-identity strong{font-weight:600;font-size:14px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-vehicle-identity small{color:var(--text-muted)!important;font-size:12px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-progress span,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-phase-progress span{color:var(--text-muted)!important;font-size:12px;font-weight:400}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-progress strong{font-weight:600}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .break-track{background:var(--glass-chip)!important;border-radius:999px!important;height:6px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .break-track i{background:linear-gradient(90deg,#8ec1dc,#57b1e5)!important;border-radius:999px!important}
/* Handoff details: one quiet glass grid with soft dividers instead of three boxes */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-handoff{gap:0!important;background:rgba(255,255,255,.28)!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:14px!important;overflow:hidden}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-handoff{background:rgba(255,255,255,.04)!important;border-color:rgba(170,215,245,.14)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-handoff>div{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:inset -1px 0 0 rgba(10,34,54,.07)!important;padding:9px 11px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-handoff>div{box-shadow:inset -1px 0 0 rgba(255,255,255,.06)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-handoff>div:last-child{box-shadow:none!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-handoff span{color:var(--text-muted)!important;font-size:11.5px;font-weight:400}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-handoff strong{font-size:13px;font-weight:500}
/* Checklist row */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-checklist-details>summary{background:rgba(255,255,255,.32)!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:12px!important;font-weight:500!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .trip-checklist-details>summary{background:rgba(255,255,255,.05)!important;border-color:rgba(170,215,245,.12)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #tripcenterView .card-actions .secondary-button{height:38px}

/* Pager count: its own small light chip, readable whether the pager sits in a card or on the panel */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .scoped-pagination>span{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.66);border:1px solid rgba(255,255,255,.75);color:#0d2131!important;font-size:12px;font-weight:500}

/* ---------- Remaining pages: Alerts, Mileage, Loans, Maintenance, Calendar, Service health, Import CSV ---------- */
/* Page headers wrap cleanly when a page has several filters (Maintenance): actions drop under the title instead of squeezing it */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .section-toolbar{flex-wrap:wrap;row-gap:14px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .section-toolbar>div:first-child{flex:1 1 320px;min-width:0}
@media (max-width:780px){ html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .section-toolbar>div:first-child{flex:0 0 auto} }   /* on phones the header is a column: no 320px basis (it became an empty gap) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .section-toolbar .toolbar-actions{flex-wrap:wrap;justify-content:flex-end}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.primary-button,.secondary-button){white-space:nowrap}
/* Empty states: their small action becomes a pill */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .empty-state :is(button,a){border-radius:999px!important;background:var(--glass-pill)!important;color:var(--glass-pill-text)!important;border:0!important;padding:8px 16px!important;font-weight:600}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .empty-state{background:rgba(255,255,255,.28)!important;border:1px dashed rgba(10,34,54,.16)!important;border-radius:16px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .empty-state{background:rgba(255,255,255,.04)!important;border-color:rgba(170,215,245,.2)!important}
/* Maintenance: glass photo area, shorter, like Vehicles */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #maintenanceView .maintenance-card-hero{background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.22))!important;border-bottom:1px solid rgba(255,255,255,.55)}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #maintenanceView .maintenance-card-hero{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03))!important;border-bottom-color:rgba(170,215,245,.12)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #maintenanceView .fleet-vehicle-image--hero{height:150px!important;min-height:0!important;background:transparent!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #maintenanceView .maintenance-card-media{height:150px!important;min-height:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #maintenanceView .fleet-vehicle-image--hero .vehicle-image-fallback{background:transparent!important;border:0!important}
/* Calendar */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-legend span{display:inline-flex;align-items:center;gap:6px;color:var(--panel-title)!important;font-size:12px;font-weight:400}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-legend i{width:10px;height:10px;border-radius:50%!important;border:1px solid rgba(255,255,255,.7)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-board{overflow:hidden}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-weekdays span{color:var(--text-secondary)!important;font-size:11px;font-weight:600;letter-spacing:.06em}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-day{background:rgba(255,255,255,.16)!important;border-color:rgba(10,34,54,.07)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-day{background:rgba(255,255,255,.03)!important;border-color:rgba(255,255,255,.06)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-availability{color:var(--text-muted)!important;font-size:11px;font-weight:400}
@media (max-width:780px){
  /* Phone: the month fits the screen; each day shows its trips as thin bars (tap a day for its bookings) */
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView :is(.calendar-board-head,.calendar-weekdays,.calendar-grid){min-width:0!important;width:auto!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView :is(.calendar-weekdays,.calendar-grid){grid-template-columns:repeat(7,minmax(0,1fr))!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-board{overflow:visible!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-weekdays span{font-size:10px;letter-spacing:0;text-align:center}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-day{min-height:64px!important;padding:5px 3px!important;min-width:0!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-day-head{font-size:11px}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-day-head>*:not(:first-child){font-size:8px!important;padding:1px 4px!important;line-height:1.3}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-day-events{gap:2px!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-day-events>*{font-size:0!important;height:5px!important;min-height:0!important;padding:0!important;border-radius:3px!important;overflow:hidden}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-day-events>* *{display:none!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-availability{font-size:9px!important;line-height:1.2;letter-spacing:-.01em}
}
/* Import CSV: the last-import line as a glass chip */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #csv_importView .start-last{background:rgba(255,255,255,.45)!important;border:1px solid rgba(255,255,255,.65)!important;border-radius:14px!important;color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #csv_importView .start-last{background:rgba(255,255,255,.06)!important;border-color:rgba(170,215,245,.16)!important}

/* Fixes from the contrast check on the remaining pages */
/* Sidebar: every part of the active item's label is white (an older rule coloured the second span) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item.active>span{color:var(--on-glass)!important}
/* Delete buttons: a small chip of their own, readable on a card or on the panel */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .delete-button{background:rgba(255,255,255,.62)!important;color:#243848!important;border:1px solid rgba(255,255,255,.7)!important;border-radius:50%!important;min-width:28px;min-height:28px}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .delete-button{background:rgba(16,34,54,.72)!important;color:#d4e0ea!important;border-color:rgba(170,215,245,.2)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .delete-button:hover{background:rgba(200,60,70,.16)!important;color:var(--negative)!important}
/* Sub-lines next to a vehicle (Loans lender, tables) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .vehicle-cell small{color:var(--text-muted)!important;font-weight:400}
/* Calendar: days of the next month */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-day.outside .calendar-day-number{color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-day.outside{opacity:.75}
/* Dark mode: text placed directly on the (bright) page panel is navy, as in light mode */
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:is(h1,h2,h3,p,.start-intro),html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #healthView.active>div:not(.health-actions) :is(p,span,strong){color:var(--panel-title)!important}
/* Dark mode: links in cards a shade lighter */
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.text-link,.approved-upload-links a,.approved-upload-links button){color:#a6e3f7!important}
/* Small "more" actions (Loans "Edit reported balance") stay compact; card heads wrap on narrow screens */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .more-button{font-size:12.5px!important;min-height:30px;padding:0 12px!important;white-space:nowrap;line-height:1.2}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #loansView .loan-card-head{flex-wrap:wrap;row-gap:10px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #loansView .loan-actions{margin-left:auto;gap:6px;align-items:center}
/* Import CSV: the side links get room (they overflowed the card) */
@media (min-width:1101px){ html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #csv_importView .approved-upload-layout{grid-template-columns:150px minmax(0,1fr) minmax(230px,auto)!important} }
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #csv_importView .approved-upload-links :is(a,button){white-space:normal!important}

/* Phone: the earnings explanation stays, but small and muted so the first card comes up sooner */
@media (max-width:780px){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .bookings-column-note{margin:10px 2px 8px!important;font-size:11px!important;line-height:1.4!important}
}
/* Phone cards */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .booking-mobile-card{padding:14px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .booking-mobile-guest{font-size:12px;font-weight:400;color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .booking-mobile-identity strong{font-weight:600}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .booking-mobile-identity small{color:var(--text-muted)!important;font-size:12px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .booking-mobile-result{display:flex!important;align-items:baseline;justify-content:space-between;gap:12px;margin:10px 0 4px!important;padding:6px 2px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .booking-mobile-result span{font-size:12px;color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .booking-mobile-result strong{color:var(--positive)!important;font-weight:700}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .booking-mobile-card summary{font-size:13px;font-weight:500;color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .booking-mobile-card :is(dt){color:var(--text-muted)!important;font-size:12px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #bookingsView .booking-mobile-card :is(dd){color:var(--text-primary)!important}

/* ---------- Motion: page change (measured from design-ref/reference.mov, 30 fps) ----------
   Exit: the old page fades out and lifts 8px in 140ms, all at once (ease-in). Enter starts when the exit ends:
   each part fades in and slides up 20px over 600ms, decelerating with no overshoot (ease-out quad), 60ms apart in
   reading order; the cards in a card row follow the row's own start, 60ms apart. The glass panel, sidebar and top bar
   stay still; the sidebar highlight jumps to the new page when the enter starts. The exit runs as a View Transition
   (page-transition.js); the enter is plain CSS, so it also plays on back/forward and on first load. */
@keyframes fdv-enter{from{opacity:0;transform:translateY(20px)}}
@keyframes fdv-page-out{to{opacity:0;transform:translateY(-8px)}}
@keyframes fdv-hold-out{to{opacity:0}}
@keyframes fdv-hold-in{from{opacity:0}to{opacity:1}}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]){--fdv-enter-base:0ms;--fdv-step:60ms}
html[data-theme="glass"][data-fdv-enter="after-exit"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]){--fdv-enter-base:140ms}
/* the page container itself stays still (replaces the base .view fade) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view{animation:none}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>*{--fdv-i:5;animation:fdv-enter .6s cubic-bezier(.25,.46,.45,.94) both;animation-delay:calc(var(--fdv-enter-base) + var(--fdv-i) * var(--fdv-step))}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:nth-child(1){--fdv-i:0}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:nth-child(2){--fdv-i:1}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:nth-child(3){--fdv-i:2}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:nth-child(4){--fdv-i:3}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:nth-child(5){--fdv-i:4}
/* Overview: in the order shown, not the markup order */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #overviewView.active>.overview-welcome{--fdv-i:0}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #overviewView.active>.overview-financial-grid{--fdv-i:1}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #overviewView.active>.metric-grid{--fdv-i:2}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #overviewView.active>.overview-alerts-panel{--fdv-i:3}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #overviewView.active>:is(.overview-operations-grid,.fleet-panel){--fdv-i:4}
/* Card rows: the row itself stays put, its cards come in one by one (row start + 60ms each) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:is(.metric-grid,.mini-metrics,.vehicle-grid){animation:none}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:is(.metric-grid,.mini-metrics,.vehicle-grid)>*{--fdv-j:5;animation:fdv-enter .6s cubic-bezier(.25,.46,.45,.94) both;animation-delay:calc(var(--fdv-enter-base) + (var(--fdv-i) + var(--fdv-j)) * var(--fdv-step))}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:is(.metric-grid,.mini-metrics,.vehicle-grid)>:nth-child(1){--fdv-j:0}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:is(.metric-grid,.mini-metrics,.vehicle-grid)>:nth-child(2){--fdv-j:1}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:is(.metric-grid,.mini-metrics,.vehicle-grid)>:nth-child(3){--fdv-j:2}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:is(.metric-grid,.mini-metrics,.vehicle-grid)>:nth-child(4){--fdv-j:3}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:is(.metric-grid,.mini-metrics,.vehicle-grid)>:nth-child(5){--fdv-j:4}
/* Profit & Earnings wraps the page in two plain blocks: stagger what is inside them */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView.active>*{animation:none}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView.active>*>*{--fdv-i:5;animation:fdv-enter .6s cubic-bezier(.25,.46,.45,.94) both;animation-delay:calc(var(--fdv-enter-base) + var(--fdv-i) * var(--fdv-step))}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView.active>:first-child>:nth-child(1){--fdv-i:0}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView.active>:first-child>:nth-child(2){--fdv-i:1}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView.active>:first-child>:nth-child(3){--fdv-i:2}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView.active>:first-child>:nth-child(4){--fdv-i:3}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView.active>:first-child>:nth-child(5){--fdv-i:4}
@media (prefers-reduced-motion:no-preference){
  /* Each part of the page is its own layer, so the glass board (.view::before) stays in place: old parts fade out where
     they were, new parts come in live with their stagger. Browsers without match-element just swap at 140ms. */
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>*{view-transition-name:match-element;view-transition-class:fdv-part}
  html[data-theme="glass"]::view-transition-group(*.fdv-part){animation:none}
  html[data-theme="glass"]::view-transition-old(*.fdv-part){animation:fdv-page-out .14s cubic-bezier(.4,0,1,1) both}
  html[data-theme="glass"]::view-transition-new(*.fdv-part){animation:none}
  /* everything else (sidebar, top bar, the board) swaps in one frame when the exit ends */
  html[data-theme="glass"]::view-transition-old(root){animation:fdv-hold-out .14s step-end both}
  html[data-theme="glass"]::view-transition-new(root){animation:fdv-hold-in .14s step-end both}
}
/* ---------- Motion: numbers and charts build up (measured from design-ref/reference.mov) ----------
   number-build.js adds .fdv-build to a page for a moment when it is entered or the period changes, and counts the big
   numbers up from 0 (1.2s, ease-out cubic, starting 170ms after their card starts to appear). While a number counts,
   its real text is transparent and ::after shows the running value (empty alt text: screen readers read the real one).
   Bars grow up from the bottom, 50ms apart, 800ms each, starting 150ms after their panel; progress and utilisation bars
   fill from the left the same way; the cost donut sweeps round in 900ms. */
/* Stat numbers: fixed-width digits (no sideways wobble while counting) and, when number-build.js finds one wider than
   its card, the smaller size it worked out (--fdv-fit) so it fits. Applies with or without motion. */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.metric-card>strong,.mini-metric>strong,#totalCosts,#goalPercentage,.profit-month-result strong,.loan-balance>strong,.decision-hero>strong,.breakeven-hero>strong,.break-total>strong,.report-card>strong,.admin-stat>strong,.annual-kpi-card>strong),html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-counting::after{font-variant-numeric:tabular-nums!important}
/* the break-even "cash invested" total was the one stat number in DM Sans, which has no fixed-width digits: Manrope, like the rest */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .break-stats .break-total>strong{font-family:Manrope,sans-serif!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.metric-card>strong,.mini-metric>strong,#totalCosts,#goalPercentage,.profit-month-result strong,.loan-balance>strong,.decision-hero>strong,.breakeven-hero>strong,.break-total>strong,.report-card>strong,.admin-stat>strong,.annual-kpi-card>strong)[style*="--fdv-fit"]{font-size:var(--fdv-fit)!important;white-space:nowrap}
@property --fdv-sweep{syntax:"<angle>";inherits:false;initial-value:360deg}
@keyframes fdv-grow-y{from{transform:scaleY(0)}}
@keyframes fdv-fill-x{from{transform:scaleX(0)}}
@keyframes fdv-sweep{from{--fdv-sweep:0deg}to{--fdv-sweep:360deg}}
@media (prefers-reduced-motion:no-preference){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-counting{position:relative;-webkit-text-fill-color:transparent}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-counting::after{content:attr(data-fdv-count) / "";position:absolute;inset:0;-webkit-text-fill-color:currentColor;white-space:nowrap;text-align:inherit;pointer-events:none}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.fdv-build .chart-group>.bar{transform-origin:50% 100%;animation:fdv-grow-y .8s cubic-bezier(.33,1,.68,1) both;animation-delay:calc(var(--fdv-enter-base) + var(--fdv-i,0) * var(--fdv-step) + 150ms + var(--fdv-k,0) * 50ms)}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.fdv-build :is(.goal-track>i,.expense-track>i,.break-track>i,.weekday-row>div>i,.vehicle-utilization>i>b){transform-origin:0 50%;animation:fdv-fill-x .8s cubic-bezier(.33,1,.68,1) both;animation-delay:calc(var(--fdv-enter-base) + var(--fdv-i,0) * var(--fdv-step) + 150ms + var(--fdv-k,0) * 50ms)}
  /* All Year: the Annual trend bars grow from the zero line (up, or down for a loss month), one month after another */
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.fdv-build #yearlyTrend .annual-trend-bars>i{transform-origin:50% 100%;animation:fdv-grow-y .8s cubic-bezier(.33,1,.68,1) both;animation-delay:calc(var(--fdv-enter-base) + var(--fdv-i,0) * var(--fdv-step) + 150ms + var(--fdv-k,0) * 50ms)}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.fdv-build #yearlyTrend .annual-trend-bars>i.fdv-neg{transform-origin:50% 0}
  /* the mask reaches 12px past the donut so its 7px ring shadow and the centre label stay visible; only the ring sweeps */
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.fdv-build #costDonut{-webkit-mask:radial-gradient(closest-side,#000 calc(100% - 34px),transparent calc(100% - 33.5px),transparent calc(100% - 12px),#000 calc(100% - 12px)),conic-gradient(#000 var(--fdv-sweep),transparent 0);mask:radial-gradient(closest-side,#000 calc(100% - 34px),transparent calc(100% - 33.5px),transparent calc(100% - 12px),#000 calc(100% - 12px)),conic-gradient(#000 var(--fdv-sweep),transparent 0);-webkit-mask-size:calc(100% + 24px) calc(100% + 24px);mask-size:calc(100% + 24px) calc(100% + 24px);-webkit-mask-position:-12px -12px;mask-position:-12px -12px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-clip:no-clip;mask-clip:no-clip;animation:fdv-sweep .9s cubic-bezier(.33,1,.68,1) both;animation-delay:calc(var(--fdv-enter-base) + var(--fdv-i,0) * var(--fdv-step) + 170ms)}
}
@media (hover:hover){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.metric-card,.panel,.overview-fleet-card){transition:transform .25s ease,box-shadow .25s ease}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.metric-card,.overview-fleet-card):hover{transform:translateY(-2px);box-shadow:var(--glass-shadow-raised)!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-command-trigger:hover{background:rgba(255,255,255,.16)!important}
}

/* ---------- Phone ---------- */
@media (max-width:780px){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]){--glass-radius:18px;--glass-card:linear-gradient(180deg,rgba(232,242,250,.88),rgba(205,224,238,.84));--glass-tile:linear-gradient(180deg,rgba(234,243,250,.90),rgba(205,222,236,.86))}
  html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]){--glass-card:linear-gradient(180deg,rgba(30,56,82,.88),rgba(14,30,48,.86));--glass-tile:linear-gradient(180deg,rgba(34,62,90,.90),rgba(18,36,56,.88))}
  /* Cards and the page panel: no blur on phones (smoother scrolling; the backdrop behind them looks the same blurred). */
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.panel,.metric-card,.mini-metric,.feature-panel,.fleet-panel,.vehicle-card,.fleet-pulse-card,.trip-action-card,.booking-mobile-card,.bookings-data-surface,.expense-vehicle-card,.vehicle-expense-panel,.expense-category-panel,.expense-transactions-panel,.maintenance-card,.maintenance-vehicle-card,.goal-card,.report-card,.loan-card,.mileage-card,.decision-card,.vehicle-decision-card,.annual-kpi-card,.annual-month-card,.annual-highlight-card,.annual-trend-panel,.annual-month-panel,.annual-vehicle-panel,.annual-vehicle-card,.breakdown-panel,.calculator-panel,.reconciliation-card,.breakeven-card,.calendar-board,.setup-launchpad,.overview-fleet-card,.admin-stat),
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active::before{-webkit-backdrop-filter:none;backdrop-filter:none}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active{padding:18px 12px 20px}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #overviewView.active{gap:12px}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active::before{border-radius:24px;background:radial-gradient(520px 420px at 0% 0%,rgba(79,195,247,.98),rgba(41,182,246,.8) 35%,rgba(41,182,246,0) 75%),radial-gradient(600px 300px at 50% 108%,rgba(41,182,246,.75),rgba(41,182,246,0) 75%),linear-gradient(100deg,#29aaeb 0%,#2480ce 45%,#1e4e8c 100%)}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header{top:calc(8px + env(safe-area-inset-top))!important;margin:8px 0 6px!important;padding:10px 10px 10px 14px;border-radius:20px;background:rgba(30,50,72,.92)!important;-webkit-backdrop-filter:blur(10px)!important;backdrop-filter:blur(10px)!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-command-trigger{padding:0;justify-content:center}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar{background:linear-gradient(180deg,#3f7f9d 0%,#346d8b 22%,#2b5672 50%,#243a52 100%)!important;border-radius:0 24px 24px 0}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-drawer-head{border-color:rgba(255,255,255,.16)!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-drawer-head>span{color:var(--on-glass)!important;font-weight:600}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #experienceDrawerClose{color:var(--on-glass)!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.26)!important;border-radius:50%!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-drawer-settings{border-color:rgba(255,255,255,.16)!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-drawer-settings>*{color:var(--on-glass)!important;font-weight:500}
  /* Bottom bar: navy glass like the top bar, solid enough for white text over any card behind it. */
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-mobile-nav{grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;background:rgba(30,50,72,.93)!important;border:1px solid var(--glass-bar-edge)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 -6px 24px rgba(2,14,32,.30)}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-mobile-nav button{color:var(--on-glass)!important;background:transparent!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-mobile-nav button>span{display:grid;place-items:center;width:42px;height:28px;margin-inline:auto;border:1px solid transparent;border-radius:999px;color:var(--on-glass)!important;background:transparent!important;box-shadow:none!important;transition:background-color .2s ease,border-color .2s ease}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-mobile-nav button>small{color:var(--on-glass)!important;font-weight:500}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-mobile-nav button.active>span{background:var(--side-active)!important;border-color:var(--side-active-edge)!important;box-shadow:0 0 12px rgba(77,163,224,.4)!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-mobile-nav button.active>small{font-weight:600}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .overview-welcome{padding:2px}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .overview-welcome-actions{width:100%}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .overview-welcome-actions>button{flex:1 1 0;height:44px;padding:0 12px}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #overviewView .metric-grid{gap:10px}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .metric-card{min-height:140px;padding:14px!important;gap:4px}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .metric-card .metric-icon{width:30px;height:30px;margin-bottom:4px}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .metric-card>strong{font-size:22px!important}
}

/* ---------- Pop-ups: data-entry forms (#dataModal and other .modal-backdrop dialogs) and the vehicle profile panel ---------- */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.modal-backdrop,.vehicle-profile-backdrop){background:rgba(6,18,34,.42)!important;-webkit-backdrop-filter:blur(8px)!important;backdrop-filter:blur(8px)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal{
  background:linear-gradient(180deg,rgba(241,247,251,.95) 0%,rgba(214,228,238,.93) 100%)!important;color:var(--text-primary)!important;
  border:1px solid rgba(255,255,255,.78)!important;border-radius:26px!important;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 30px 80px rgba(2,14,32,.35)!important;
  -webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);
}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal{background:linear-gradient(180deg,rgba(28,50,74,.96) 0%,rgba(16,32,50,.95) 100%)!important;border-color:rgba(170,215,245,.18)!important;box-shadow:0 1px 0 rgba(200,230,255,.12) inset,0 30px 80px rgba(0,6,16,.55)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal h2{color:var(--text-primary)!important;font-weight:700}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal :is(.overline,#modalEyebrow){color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal :is(label){color:var(--text-secondary)!important;font-size:12px;font-weight:500}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal :is(label small,small,.modal-note,.form-hint){color:var(--text-muted)!important;font-weight:400}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){
  min-height:42px;border-radius:999px!important;padding:0 16px!important;font-size:13.5px!important;font-weight:400!important;
  background-color:rgba(255,255,255,.72)!important;border:1px solid rgba(10,34,54,.10)!important;color:var(--text-primary)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal select{padding-right:34px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal textarea{border-radius:16px!important;padding:10px 14px!important;min-height:84px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal :is(input,select,textarea):focus{border-color:#4da3e0!important;box-shadow:0 0 0 3px rgba(77,163,224,.25)!important;background-color:#fff!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){background-color:rgba(255,255,255,.07)!important;border-color:rgba(170,215,245,.22)!important;box-shadow:none}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal :is(input,select,textarea):focus{background-color:rgba(255,255,255,.11)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal :is(input,textarea)::placeholder{color:#5a6b7b!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal :is(input,textarea)::placeholder{color:#a9b9c8!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal .secondary-button{border-radius:999px!important;background:rgba(255,255,255,.72)!important;border:1px solid rgba(10,34,54,.10)!important;color:var(--text-primary)!important;font-weight:500!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal .secondary-button{background:rgba(255,255,255,.08)!important;border-color:rgba(170,215,245,.22)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal .primary-button{min-height:46px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.modal-backdrop .close-button,.vehicle-profile-close){width:36px!important;height:36px!important;padding:0!important;border-radius:50%!important;background:rgba(255,255,255,.72)!important;border:1px solid rgba(255,255,255,.8)!important;color:#0d2131!important;box-shadow:0 2px 8px rgba(2,14,32,.12)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.modal-backdrop .close-button,.vehicle-profile-close){background:rgba(255,255,255,.1)!important;border-color:rgba(170,215,245,.2)!important;color:#eef5fa!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal .muted-note{color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal .vehicle-photo-preview{background:rgba(255,255,255,.6)!important;border:1px dashed rgba(10,34,54,.18)!important;color:var(--text-muted)!important;border-radius:16px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal .vehicle-photo-preview{background:rgba(255,255,255,.06)!important;border-color:rgba(170,215,245,.22)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal .vehicle-photo-preview :is(small,span,p){color:var(--text-muted)!important}
/* Vehicle profile: a glass side panel */
/* It is a modal dialog: above the phone bottom bar (z-index 9000), as the forms already are (10050) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile-shell{z-index:10040!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile{
  background:linear-gradient(180deg,rgba(236,244,249,.95) 0%,rgba(206,222,234,.93) 100%)!important;color:var(--text-primary)!important;
  border-left:1px solid rgba(255,255,255,.75)!important;border-radius:28px 0 0 28px!important;box-shadow:-24px 0 70px rgba(2,14,32,.35)!important;
  -webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);
}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile{background:linear-gradient(180deg,rgba(26,48,72,.96) 0%,rgba(14,30,48,.95) 100%)!important;border-left-color:rgba(170,215,245,.16)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile .vehicle-profile-hero{background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(255,255,255,.26))!important;border:1px solid rgba(255,255,255,.7);border-radius:22px!important;margin:18px 18px 0!important;box-shadow:none!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile .vehicle-profile-hero{background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.03))!important;border-color:rgba(170,215,245,.14)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile .vehicle-profile-copy{color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile .vehicle-profile-copy :is(p,.overline){color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile .vehicle-profile-copy h2{color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile :is(.vehicle-profile-section,.vehicle-profile .panel){background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.32))!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile :is(.vehicle-profile-section,.vehicle-profile .panel){background:rgba(255,255,255,.05)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile .vehicle-profile-image-label{background:rgba(255,255,255,.7)!important;color:#0d2131!important;border:1px solid rgba(255,255,255,.8)!important;border-radius:999px!important;font-weight:500!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile .vehicle-profile-image-label{background:rgba(255,255,255,.1)!important;color:#eef5fa!important;border-color:rgba(170,215,245,.2)!important}
/* Open and close: fade plus a slight scale (forms) or slide (profile). The close keeps the pop-up visible until its fade ends. */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop{transition:opacity .22s ease,display .22s allow-discrete;opacity:1}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop[hidden]{opacity:0}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal{transition:transform .26s cubic-bezier(.2,.8,.2,1),opacity .22s ease}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop[hidden] .modal{transform:translateY(8px) scale(.97);opacity:0}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile-shell{transition:opacity .24s ease,display .24s allow-discrete;opacity:1}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile-shell[hidden]{opacity:0}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile-shell .vehicle-profile{transition:transform .3s cubic-bezier(.2,.8,.2,1)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile-shell[hidden] .vehicle-profile{transform:translateX(28px)}
@starting-style{
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop:not([hidden]){opacity:0}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop:not([hidden]) .modal{transform:translateY(8px) scale(.97);opacity:0}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile-shell:not([hidden]){opacity:0}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile-shell:not([hidden]) .vehicle-profile{transform:translateX(28px)}
}
@media (max-width:780px){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .vehicle-profile{border-radius:24px 24px 0 0!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal{border-radius:22px!important}
}
@media (prefers-reduced-motion:reduce){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.modal-backdrop,.modal-backdrop .modal,.vehicle-profile-shell,.vehicle-profile-shell .vehicle-profile){transition:none!important;animation:none!important}
}

/* ---------- Sign-in screen (auth-screen.html) ---------- */
/* The ocean backdrop shows through; the story sits on the bright page panel; the form is a glass card. */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell :is(.auth-layout,.auth-form-pane),html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell #publicFooter{background:transparent!important;background-image:none!important;box-shadow:none!important;border-color:transparent!important}
@media (min-width:781px){ html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-story{margin-left:24px!important} }
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-brand :is(.brand-word,.brand-dv){color:var(--on-glass)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-brand .brand-mark{background-image:url('/fleetdv-mark-light.png')!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-story{
  background:var(--glass-panel)!important;border:1px solid var(--glass-panel-edge)!important;border-radius:30px!important;
  box-shadow:0 1px 0 rgba(220,240,255,.30) inset,0 26px 60px rgba(4,18,40,.30)!important;
  -webkit-backdrop-filter:blur(26px);backdrop-filter:blur(26px);
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-story :is(h2,p){color:var(--panel-title)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-story p{font-weight:400}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-story :is(.overline,.brand-tagline){color:#000f18!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-story p{color:#000f18!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-card{
  background:linear-gradient(180deg,rgba(241,247,251,.94) 0%,rgba(214,228,238,.92) 100%)!important;color:var(--text-primary)!important;
  border:1px solid rgba(255,255,255,.78)!important;border-radius:26px!important;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 30px 80px rgba(2,14,32,.35)!important;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);
}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-card{background:linear-gradient(180deg,rgba(28,50,74,.96) 0%,rgba(16,32,50,.95) 100%)!important;border-color:rgba(170,215,245,.18)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-card :is(#authTitle){color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-card :is(#authIntro,small,.overline){color:var(--text-muted)!important;font-weight:400}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-card label{color:var(--text-secondary)!important;font-size:12px;font-weight:500}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-card :is(input:not([type=checkbox]):not([type=radio])){
  min-height:44px;border-radius:999px!important;padding:0 18px!important;font-size:14px!important;font-weight:400!important;
  background-color:rgba(255,255,255,.75)!important;border:1px solid rgba(10,34,54,.10)!important;color:var(--text-primary)!important;box-shadow:0 1px 0 rgba(255,255,255,.7) inset;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-card input:focus{border-color:#4da3e0!important;box-shadow:0 0 0 3px rgba(77,163,224,.25)!important;background-color:#fff!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-card :is(input:not([type=checkbox]):not([type=radio])){background-color:rgba(255,255,255,.07)!important;border-color:rgba(170,215,245,.22)!important;box-shadow:none}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-card input::placeholder{color:#5a6b7b!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-card input::placeholder{color:#a9b9c8!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .password-field{border-radius:999px!important;background:transparent!important;border:0!important}
/* Sign in / Create account: a pill toggle */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-tabs{padding:4px!important;border-radius:999px!important;background:rgba(10,34,54,.07)!important;border:1px solid rgba(255,255,255,.6)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-tabs button{border-radius:999px!important;border:0!important;background:transparent!important;color:var(--text-secondary)!important;font-weight:500!important;transition:background-color .2s ease,color .2s ease}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-tabs button.active{background:var(--glass-pill)!important;color:var(--glass-pill-text)!important;box-shadow:0 4px 12px rgba(2,8,20,.2)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-tabs{background:rgba(255,255,255,.06)!important;border-color:rgba(170,215,245,.16)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-link{color:var(--accent)!important;font-weight:600}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-footer{background:transparent!important;border:0!important;box-shadow:none!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell #publicFooter,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell #publicFooter :is(a,span,small,p){color:var(--on-glass-soft)!important}
@media (prefers-reduced-motion:reduce){ html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-tabs button{transition:none!important} }

/* ---------- Vivid pass (ref-finance-vivid.jpg): strong highlights and colour variation ---------- */
/* Sidebar: luminous glass with a glowing cyan edge */
@media (min-width:781px){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar{box-shadow:0 0 0 1px rgba(140,210,240,.25),0 0 22px rgba(110,190,230,.22),inset 0 1px 0 rgba(190,235,255,.35),0 18px 44px rgba(2,14,32,.35)!important}
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item:hover{background:rgba(89,127,150,.62)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item.active{box-shadow:0 0 0 1px rgba(95,180,230,.35),0 0 16px rgba(95,180,230,.45),inset 0 1px 0 rgba(200,235,255,.25)!important}
/* Top bar: dark navy glass with a bright thin highlight along its edge */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header{box-shadow:inset 0 1px 0 rgba(170,225,250,.40),0 0 0 1px rgba(140,210,240,.18),0 0 20px rgba(110,190,230,.16),0 14px 34px rgba(2,14,32,.35)!important}
@media (max-width:780px){ html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header{background:rgba(30,51,72,.94)!important} }
/* Filters on the panel sit in a light glass bar, so their labels stay readable over the cyan-to-blue gradient */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .section-toolbar .toolbar-actions:has(label),html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .vehicle-page-header .vehicle-header-actions{padding:8px 10px;border-radius:22px;background:rgba(213,226,234,.62);border:1px solid rgba(255,255,255,.45)}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .section-toolbar .toolbar-actions:has(label),html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .vehicle-page-header .vehicle-header-actions{background:rgba(213,226,234,.62)}
/* Inner surfaces share the card's glass tone (nothing near-white) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-card-media,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #maintenanceView .maintenance-card-hero{background:linear-gradient(180deg,rgba(185,207,220,.35),rgba(185,207,220,.10))!important;border-bottom-color:rgba(255,255,255,.35)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.vehicle-card-facts,.trip-handoff){background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.40)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .metric-icon{background:rgba(255,255,255,.38)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .metric-icon{background:rgba(255,255,255,.10)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table thead th{background:rgba(255,255,255,.26)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.formula-note,.loan-result,.profit-equation,.start-last,.trip-checklist-details>summary,.expense-transaction-group>summary){background:rgba(255,255,255,.24)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.vehicle-image-fallback,.expense-icon,.plan-row .vehicle-badge){background:rgba(255,255,255,.30)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-vehicle-identity>div::before{background:rgba(255,255,255,.32)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill{background-color:rgba(10,34,54,.10)!important}
/* Green only for money-positive figures: activity and "active" chips, the True Profit label and the goal bar go blue */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill.active,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-activity{background-color:rgba(51,117,165,.20)!important;color:#103a5c!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill.active,html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-activity{background-color:rgba(95,180,230,.22)!important;color:#cdeafb!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .formula-note>span{color:#0d2131!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vin-status:not(.pending){background:rgba(51,117,165,.20)!important;color:#103a5c!important}

/* Dark mode keeps its own inner surfaces */
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.vehicle-image-fallback,.expense-icon,.plan-row .vehicle-badge){background:rgba(255,255,255,.07)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.formula-note,.loan-result,.profit-equation,.start-last,.trip-checklist-details>summary,.expense-transaction-group>summary){background:rgba(255,255,255,.05)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.vehicle-card-facts,.trip-handoff){background:rgba(255,255,255,.04)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .data-table thead th{background:rgba(255,255,255,.07)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill{background-color:rgba(255,255,255,.09)!important}
/* Text placed directly on the panel is the panel's dark navy in both modes */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.active>:is(h1,h2,h3,p,.start-intro),html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #healthView.active>div:not(.health-actions) :is(p,span,strong){color:var(--panel-title)!important}

/* ---------- Brighter pass: luminous glass ---------- */
/* The active pill is a bright cyan, so its label is deep navy (white on #3D8CC4 is about 3.6:1) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item.active,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item.active>span{color:#00121f!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item.active b{background:#00121f!important;color:#e8f6ff!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item.active>span:first-child{color:#00121f!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item.active{box-shadow:0 0 0 1px rgba(108,196,240,.55),0 0 10px rgba(108,196,240,.65),inset 0 1px 0 rgba(220,245,255,.45)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .main-nav{gap:4px!important}
/* White sidebar text gets a soft shadow for extra legibility on the brighter glass */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar :is(.nav-item:not(.active),.nav-group-label,.brand-word,.profile strong){text-shadow:0 1px 2px rgba(6,30,48,.35)}
/* Top bar: bright thin edge highlight */
@media (max-width:780px){ html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header{background:rgba(38,66,92,.94)!important} html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-mobile-nav{background:rgba(38,66,92,.93)!important} html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-mobile-nav button.active>span{color:#00121f!important} }

/* Sign-in footer: on the lighter backdrop neither white nor navy reaches 4.5:1, so it sits in a small dark glass chip */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell #publicFooter{width:fit-content;max-width:calc(100% - 24px);margin:12px auto 20px!important;padding:8px 16px!important;border-radius:999px!important;background:rgba(30,51,72,.78)!important;border:1px solid rgba(140,210,240,.25)!important;text-align:center}
@media (max-width:780px){ html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell #publicFooter{border-radius:18px!important} }

/* Calendar: its vehicle filter is a label on the panel; same light glass bar as the other on-panel filters, in both modes */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .section-toolbar label.calendar-filter{padding:8px 12px!important;border-radius:20px!important;background:rgba(213,226,234,.62)!important;border:1px solid rgba(255,255,255,.45)!important;box-shadow:none!important}

/* ---------- Vivid glow pass: saturated cyan against deep blue ---------- */
@media (min-width:781px){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar{box-shadow:0 0 0 1px rgba(79,195,247,.45),0 0 28px rgba(41,182,246,.40),inset 0 1px 0 rgba(190,240,255,.5),0 18px 44px rgba(2,10,30,.45)!important}
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item.active{box-shadow:0 0 0 1px rgba(79,195,247,.7),0 0 12px rgba(41,182,246,.75),inset 0 1px 0 rgba(220,245,255,.5)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header{box-shadow:inset 0 1px 0 rgba(150,225,255,.55),0 0 0 1px rgba(79,195,247,.30),0 0 24px rgba(41,182,246,.22),0 14px 34px rgba(2,10,30,.40)!important}
@media (max-width:780px){ html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .workspace-header{background:rgba(19,48,88,.94)!important} html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-mobile-nav{background:rgba(19,48,88,.93)!important} }
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.panel,.metric-card,.mini-metric,.vehicle-card,.trip-action-card,.booking-mobile-card,.bookings-data-surface,.expense-vehicle-card,.maintenance-card,.goal-card,.loan-card,.mileage-card,.breakdown-panel,.calculator-panel,.overview-fleet-card){border-top-color:rgba(255,255,255,.95)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #costDonut{box-shadow:0 0 0 7px rgba(255,255,255,.45)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .goal-track i,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-utilization i b,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .break-track i,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #expensesView .expense-track i{background:linear-gradient(90deg,#4fc3f7,#0fa8f2)!important}

/* Text on the clearer glass: chips and notes in deeper navy */
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill.upcoming{color:#04263f!important}
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill.active,html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #vehiclesView .vehicle-activity{color:#03213a!important}
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill{color:#0d2131!important}
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .status-pill:is(.canceled,.cancelled,.problem,.overdue){color:#5e1018!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .formula-note,html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .formula-note{color:#000a12!important}

/* Calendar legend straddles the cyan-to-blue change: it sits in a light glass bar like the filters */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarView .calendar-legend{display:inline-flex;flex-wrap:wrap;gap:6px 14px;padding:6px 12px;border-radius:16px;background:rgba(213,226,234,.62);border:1px solid rgba(255,255,255,.45)}
/* Sign-in story: a taller panel, so its cyan glow is larger and the text column sits in it */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #authShell .auth-story{background:radial-gradient(1200px 900px at 0% 0%,rgba(79,195,247,.98) 0%,rgba(41,182,246,.88) 38%,rgba(41,182,246,0) 78%),var(--glass-panel)!important}

html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .alert-row.low>span{color:#22343f!important}
/* ---------- Admin-only pages (Performance, Decisions, Break-even, Reports, Reimbursements, Reconcile, Data safety,
   Recurring costs, Documents, Admin, Feature controls) ---------- */
/* Bars: sky blue, like the rest */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.weekday-bars i,.expense-track i){background:linear-gradient(90deg,#4fc3f7,#0fa8f2)!important;border-radius:999px!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .expense-track{background:var(--glass-chip)!important;border-radius:999px!important}
/* Signal chips (Keep / Hold price / Reduce) and admin status chips: soft chips with a dot; blue, not green (green is for money) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.signal,.admin-status){display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 8px!important;border-radius:999px!important;border:0!important;box-shadow:none!important;font:500 11px/1.4 "DM Sans",sans-serif!important;text-transform:none;background:rgba(10,34,54,.10)!important;color:#0d2131!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.signal,.admin-status)::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:0 0 6px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.signal.up,.admin-status:is(.active,.trialing)){background:rgba(51,117,165,.20)!important;color:#03213a!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .signal.hold,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .admin-status.past_due{background:rgba(214,160,40,.22)!important;color:#4a3104!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .signal.down,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .admin-status:is(.canceled,.unpaid,.incomplete_expired){background:rgba(200,60,70,.16)!important;color:#5e1018!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.signal,.admin-status){background:rgba(255,255,255,.09)!important;color:#dbe6ef!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.signal.up,.admin-status:is(.active,.trialing)){background:rgba(95,180,230,.22)!important;color:#cdeafb!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .signal.hold,html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .admin-status.past_due{background:rgba(243,199,113,.20)!important;color:#ffe2a8!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .signal.down,html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .admin-status:is(.canceled,.unpaid,.incomplete_expired){background:rgba(255,120,120,.18)!important;color:#ffd0d2!important}
/* Reimbursements and Reconcile: glass rows; filters as pills with 12px labels (older id rules styled them) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reimbursementsView .reimbursement-row{background:rgba(255,255,255,.34)!important;border:0!important;border-bottom:1px solid var(--glass-line)!important;border-radius:0!important;box-shadow:none!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reimbursementsView .reimbursement-row:first-child{border-radius:14px 14px 0 0!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reimbursementsView .reimbursement-row:last-child{border-bottom:0!important;border-radius:0 0 14px 14px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reimbursementsView .reimbursement-row{background:rgba(255,255,255,.05)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reimbursementsView .reimbursement-row small{color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(#workflowControls-reimbursements,#workflowControls-reconciliation,#workflowControls-tripcenter) label{font-size:12px!important;font-weight:500!important;color:var(--text-secondary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(#workflowControls-reimbursements,#workflowControls-reconciliation,#workflowControls-tripcenter) :is(input,select){min-height:40px!important;height:40px;border-radius:999px!important;padding:0 16px!important;font-size:13px!important;background-color:rgba(255,255,255,.55)!important;border:1px solid rgba(255,255,255,.7)!important;color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(#workflowControls-reimbursements,#workflowControls-reconciliation,#workflowControls-tripcenter) select{padding-right:34px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(#workflowControls-reimbursements,#workflowControls-reconciliation,#workflowControls-tripcenter) :is(input,select){background-color:rgba(255,255,255,.08)!important;border-color:rgba(170,215,245,.22)!important}
/* Admin page */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-roadmap{background:var(--glass-card)!important;border:1px solid var(--glass-edge)!important;border-radius:var(--glass-radius)!important;box-shadow:var(--glass-shadow)!important;color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-roadmap :is(p,small){color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .experience-control :is(button,[data-experience-choice]){border-radius:16px!important;background:rgba(255,255,255,.45)!important;border:1px solid rgba(255,255,255,.7)!important;color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .experience-control :is(button,[data-experience-choice]).active{background:var(--side-active)!important;border-color:var(--side-active-edge)!important;color:#00121f!important;box-shadow:0 0 10px rgba(41,182,246,.45)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .experience-control :is(button,[data-experience-choice]):not(.active){background:rgba(255,255,255,.07)!important;border-color:rgba(170,215,245,.2)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView :is([data-edit-complimentary],[data-revoke-complimentary]){width:auto!important;min-width:0!important;height:32px!important;padding:0 14px!important;border-radius:999px!important;font:600 12.5px/1 "DM Sans",sans-serif!important;background:rgba(255,255,255,.62)!important;border:1px solid rgba(255,255,255,.8)!important;box-shadow:0 2px 6px rgba(10,40,70,.12)!important;color:#0d2131!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView [data-revoke-complimentary]{color:#7a0f1a!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView :is([data-edit-complimentary],[data-revoke-complimentary]){background:rgba(255,255,255,.10)!important;border-color:rgba(170,215,245,.25)!important;color:#e6eef5!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView [data-revoke-complimentary]{color:#ffc4c8!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel td small{color:var(--text-muted)!important}
/* Break-even: the "cash invested" total as a soft blue glass strip */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #breakevenView .break-stats .break-total{background:linear-gradient(180deg,rgba(79,195,247,.30),rgba(30,155,215,.22))!important;border:1px solid rgba(255,255,255,.6)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #breakevenView .break-stats .break-total :is(span,strong){color:#03213a!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #breakevenView .break-stats .break-total{background:linear-gradient(180deg,rgba(79,195,247,.20),rgba(30,155,215,.12))!important;border-color:rgba(170,215,245,.25)!important;box-shadow:none!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #breakevenView .break-stats .break-total :is(span,strong){color:#e6f4fd!important}
/* Reports documents: one line per document (icon, name, Open, delete) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView .document-row{grid-template-columns:auto 1fr auto auto!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView .document-row a{color:var(--accent)!important}
/* Decisions: filter and the purchase calculator fields as pills */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #decisionsView :is(input,select){min-height:40px!important;border-radius:999px!important;padding:0 16px!important;font-size:13px!important;background-color:rgba(255,255,255,.55)!important;border:1px solid rgba(255,255,255,.7)!important;color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #decisionsView select{padding-right:34px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #decisionsView :is(input,select){background-color:rgba(255,255,255,.08)!important;border-color:rgba(170,215,245,.22)!important}
/* Reconcile: its filters sit straight on the panel, so give them a glass card like Reimbursements */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #workflowControls-reconciliation{background:var(--glass-card)!important;border:1px solid var(--glass-edge)!important;border-radius:var(--glass-radius)!important;box-shadow:var(--glass-shadow)!important;padding:18px 20px!important;margin-bottom:16px!important}
/* Phones: a panel header whose button does not fit next to the title wraps instead of spilling out */
@media (max-width:780px){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .panel-head{flex-wrap:wrap!important;row-gap:10px}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .panel-head>:is(button,a){white-space:nowrap}
}
/* Text fixes on admin pages */
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .view-body .decision-card>span,html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .decision-card>span:first-child:not(.signal){color:#e3f5ff!important}
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #safetyView .muted-note{color:#22343f!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #decisionsView .section-toolbar .intelligence-filter{color:#fff!important;font-weight:600;background:rgba(8,34,60,.62);padding:4px 4px 4px 12px;border-radius:999px;display:inline-flex;align-items:center;gap:8px}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .section-toolbar .overline{color:#021d2e!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .experience-control [data-experience-choice].active *{color:#00121f!important}
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #featuresView .feature-tier-note,html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #featuresView label>span,html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #featuresView :is(small,.muted-note){color:#22343f!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #featuresView .feature-tier-note,html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #featuresView label>span,html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #featuresView :is(small,.muted-note){color:#dbe6ef!important}
/* Phones: wide admin tables become one glass card per row (label on the left, value on the right), no sideways scrolling */
@media (max-width:780px){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap{overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap :is(table,tbody,tr,td),html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable :is(table,tbody,tr,td),html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap :is(table,tbody,tr,td){display:block!important;width:auto!important;min-width:0!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap thead,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable thead,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap thead{display:none!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap tr,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable tr,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap tr{background:rgba(255,255,255,.42)!important;border:1px solid rgba(255,255,255,.7)!important;border-radius:16px!important;padding:12px 14px!important;margin:0 0 10px!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap td,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable td,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap td{display:flex!important;justify-content:space-between;align-items:center;gap:12px;padding:5px 0!important;border:0!important;background:transparent!important;text-align:right!important;white-space:normal!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap td::before,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable td::before,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap td::before{font:500 12px/1.3 "DM Sans",sans-serif;color:var(--text-secondary);text-align:left;flex:0 0 auto}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap td:first-child,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable td:first-child,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap td:first-child{display:block!important;text-align:left!important;padding:0 0 8px!important;margin-bottom:4px;border-bottom:1px solid var(--glass-line)!important;overflow-wrap:anywhere}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap td:first-child::before,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable td:first-child::before,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap td:first-child::before{content:none!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap td:nth-child(2)::before{content:"Booked days"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap td:nth-child(3)::before{content:"Idle days"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap td:nth-child(4)::before{content:"Utilization"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap td:nth-child(5)::before{content:"ADR"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap td:nth-child(6)::before{content:"RevPAD"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap td:nth-child(7)::before{content:"True profit"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap td:nth-child(8)::before{content:"Price action"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable td:nth-child(2)::before{content:"Profit"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable td:nth-child(3)::before{content:"Utilization"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable td:nth-child(4)::before{content:"Loan balance"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable td:nth-child(5)::before{content:"Signal"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap td:nth-child(2)::before{content:"Role"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap td:nth-child(3)::before{content:"Plan access"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap td:nth-child(4)::before{content:"Admin access"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap td:nth-child(5)::before{content:"Expires"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap td:nth-child(6)::before{content:"Stripe"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap td:nth-child(7)::before{content:"Actions"}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap td:last-child{flex-wrap:wrap;justify-content:flex-end}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap td:first-child :is(small,span){display:block;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
}
@media (max-width:780px){
  html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #performanceView .fleet-table-wrap tr,html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #reportsView #replacementTable tr,html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #adminView .admin-users-panel .table-wrap tr{background:rgba(255,255,255,.06)!important;border-color:rgba(170,215,245,.18)!important}
}
/* Pop-ups found unstyled in the full review */
/* Warning notices (complimentary access, account panel): soft amber chip with readable text */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .account-cancel-notice{background:rgba(214,160,40,.20)!important;border:1px solid rgba(214,160,40,.35)!important;color:#3f2a03!important;border-radius:14px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .account-cancel-notice{background:rgba(243,199,113,.14)!important;border-color:rgba(243,199,113,.30)!important;color:#ffe2a8!important}
/* Import CSV dialog: the drop area as a glass inset, and a readable "Choose CSV" button (a label, so it missed the button rule) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #importModal .import-drop{background:rgba(255,255,255,.42)!important;border:1.5px dashed rgba(30,78,140,.35)!important;border-radius:18px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #importModal .import-drop{background:rgba(255,255,255,.06)!important;border-color:rgba(170,215,245,.30)!important}
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) label.primary-button.file-button{color:#fff!important;-webkit-text-fill-color:#fff}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) label.primary-button.file-button{color:#071a2b!important;-webkit-text-fill-color:#071a2b}
/* Cancel-subscription dialog: it injects its own white styles; give it the pop-up glass surface */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #cancelSubscriptionDialog{background:linear-gradient(180deg,rgba(241,247,251,.97) 0%,rgba(214,228,238,.96) 100%)!important;border:1px solid rgba(255,255,255,.78)!important;border-radius:26px!important;box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 30px 80px rgba(2,14,32,.35)!important;color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #cancelSubscriptionDialog::backdrop{background:rgba(6,22,40,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #cancelSubscriptionDialog{background:linear-gradient(180deg,rgba(28,50,74,.97) 0%,rgba(16,32,50,.96) 100%)!important;border-color:rgba(170,215,245,.18)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #cancelSubscriptionDialog :is(h2,p,li,span,strong,label){color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #cancelSubscriptionDialog .fdv-cancel-note{background:rgba(46,160,110,.14)!important;border:1px solid rgba(46,160,110,.28)!important;color:#0f3d2a!important;border-radius:14px!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #cancelSubscriptionDialog .fdv-cancel-note{background:rgba(124,239,200,.12)!important;border-color:rgba(124,239,200,.26)!important;color:#c9f7e6!important}
/* Reimbursement form: the booking picker's pager (plain buttons) as small pills */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #workflowBookingPager{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-secondary)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #workflowBookingPager button{border-radius:999px;padding:5px 12px;background:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.8);color:var(--text-primary);font:600 12px/1.2 "DM Sans",sans-serif;cursor:pointer}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #workflowBookingPager button:disabled{opacity:.55;cursor:default}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #workflowBookingPager button{background:rgba(255,255,255,.08);border-color:rgba(170,215,245,.22)}
/* Empty states in dark mode: an almost clear box let the panel's bright glow sit under light text; give it dark glass */
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view .empty-state{background:linear-gradient(180deg,rgba(18,40,64,.78),rgba(10,26,44,.74))!important;border:1px solid rgba(170,215,245,.16)!important}
/* Full review: text and surfaces in pop-ups and phone sheets */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #calendarBookingModal :is(div,dl)>span:first-child:not([class]){color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #accountPanel .account-identity span:not(.account-avatar){color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .reset-data-safe-note :is(span,p,small){color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal .checkbox-label{background:rgba(255,255,255,.5)!important;border:1px solid rgba(255,255,255,.7)!important;border-radius:14px!important;color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .modal-backdrop .modal .checkbox-label{background:rgba(255,255,255,.06)!important;border-color:rgba(170,215,245,.18)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar :is(button,a)>b{color:rgba(235,246,255,.8)!important}
@media (max-width:780px){
  /* the phone period picker: a solid glass bar, not a see-through layer over the page */
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .header-actions.period-open #globalPeriodSelectors{background:var(--glass-bar)!important;-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);border:1px solid rgba(170,215,245,.28)!important;border-radius:20px!important;box-shadow:0 18px 40px rgba(2,14,32,.35)!important}
}
/* ---------- One-click CSV import: progress card, slim bar, Overview banner ----------
   The card used the elevated surface, which is see-through glass here, so the Import page read through it. Now: the pop-up frosted
   surface; on the Import page it is centered (with inset, not transform, so a fixed backdrop can sit behind it) on a dimmed, blurred
   backdrop that stays click-through as before; sky-blue progress with the percentage as a chip beside the bar; step marks to match. */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-card{background:linear-gradient(180deg,rgba(241,247,251,.97) 0%,rgba(214,228,238,.96) 100%)!important;border:1px solid rgba(255,255,255,.78)!important;border-radius:24px!important;box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 24px 64px rgba(2,14,32,.32)!important;-webkit-backdrop-filter:blur(24px) saturate(1.2);backdrop-filter:blur(24px) saturate(1.2);color:var(--text-primary)!important;grid-template-columns:minmax(0,1fr) auto}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-card{background:linear-gradient(180deg,rgba(28,50,74,.97) 0%,rgba(16,32,50,.96) 100%)!important;border-color:rgba(170,215,245,.18)!important;box-shadow:0 1px 0 rgba(200,230,255,.12) inset,0 24px 64px rgba(0,6,16,.55)!important}
@media (min-width:641px){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import.oc-center{inset:0!important;margin:auto;height:fit-content;max-height:calc(100vh - 48px);transform:none!important;box-shadow:none!important;border-radius:24px}
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import.oc-center::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:rgba(6,22,40,.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-card>*{grid-column:1/-1}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-card>.oc-bar{grid-column:1;align-self:center}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-card>.oc-pct{grid-column:2;align-self:center;margin:0!important;padding:3px 10px;border-radius:999px;font:600 12px/1.3 "DM Sans",sans-serif;background:rgba(10,40,70,.10);color:var(--text-primary)!important;text-align:center;min-width:3.6em}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-card>.oc-pct{background:rgba(255,255,255,.10)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import[data-phase="stopped"] .oc-card>.oc-pct{display:none}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import[data-phase="stopped"] .oc-card>.oc-bar{grid-column:1/-1}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import[data-phase="done"] .oc-card>.oc-pct{background:rgba(51,117,165,.20);color:#03213a!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import[data-phase="done"] .oc-card>.oc-pct{background:rgba(95,180,230,.22);color:#cdeafb!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-head h2{color:var(--text-primary)!important;font-weight:700}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import :is(.oc-detail,.oc-sub){color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-stages li{color:var(--text-secondary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-stages li:is([data-state="active"],[data-state="paused"],[data-state="waiting"],[data-state="failed"],[data-state="done"]){color:var(--text-primary)!important}
/* the bar and the step marks */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-bar{background:rgba(10,40,70,.12)!important;height:10px}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-bar{background:rgba(255,255,255,.10)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.oc-import .oc-fill,.oc-slim .oc-slim-fill){background:linear-gradient(90deg,#4fc3f7,#0fa8f2)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import[data-phase="paused"] .oc-fill,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-slim[data-phase="paused"] .oc-slim-fill{background:linear-gradient(90deg,#f6c453,#e0a21a)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import[data-phase="stopped"] .oc-fill{background:linear-gradient(90deg,#f08a93,#d64550)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-mark{border-color:rgba(10,40,70,.30)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-mark{border-color:rgba(200,230,255,.35)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-stages li[data-state="active"] .oc-mark{border-color:#0fa8f2!important;border-top-color:transparent!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-stages li[data-state="done"] .oc-mark,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-check{background:linear-gradient(180deg,#4fc3f7,#0f8fd6)!important;border-color:#0f8fd6!important;box-shadow:0 0 10px rgba(41,182,246,.45)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-stages li:is([data-state="paused"],[data-state="waiting"]) .oc-mark{border-color:#e0a21a!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-stages li[data-state="waiting"] .oc-mark{background:rgba(224,162,26,.18)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-stages li[data-state="waiting"] .oc-mark::after{background:#e0a21a!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-stages li[data-state="failed"] .oc-mark{background:#d64550!important;border-color:#d64550!important}
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-stages li[data-state="waiting"] .oc-sub{color:#6b4300!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-stages li[data-state="waiting"] .oc-sub{color:#ffd38a!important}
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-stages li[data-state="failed"] .oc-sub{color:#8f1d2c!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-stages li[data-state="failed"] .oc-sub{color:#ffb3ba!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-done{color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-ask{border-top-color:var(--glass-line)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-ask select{min-height:40px;border-radius:999px!important;padding:0 34px 0 16px!important;background-color:rgba(255,255,255,.6)!important;border:1px solid rgba(255,255,255,.8)!important;color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import .oc-ask select{background-color:rgba(255,255,255,.08)!important;border-color:rgba(170,215,245,.22)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import :is(.oc-min,.oc-link){color:var(--accent)!important}
/* slim bar (after Keep working or on other pages): a solid glass pill at the top centre, above the header's edge rather than over its text */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-slim{top:4px!important;left:50%!important;right:auto!important;transform:translateX(-50%);width:max-content;max-width:min(560px,calc(100vw - 24px));height:28px!important;border-radius:999px!important;border:1px solid rgba(170,215,245,.32)!important;padding:0 18px!important;white-space:nowrap;text-overflow:ellipsis;background:var(--glass-bar)!important;-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);border-bottom:1px solid rgba(170,215,245,.28)!important;color:#eaf6ff!important;box-shadow:0 6px 18px rgba(2,14,32,.25)}
/* phones: the card (a bottom sheet) and the slim pill sit just above the bottom navigation, not under it or over the page title */
@media (max-width:640px){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-import{inset:auto 8px 92px 8px!important;max-height:calc(100vh - 120px);overflow:auto;border-radius:24px}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-slim{top:auto!important;bottom:92px!important}
}
/* Boot loading screen ("Opening your private workspace"): it showed a flat grey box on the blue with a faint wordmark */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .app-loading-shell{background:linear-gradient(160deg,#132f55 0%,#1e4e8c 100%)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .app-loading-shell .brand-word{color:#f6fbff!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .app-loading-shell .loading-card{background:linear-gradient(180deg,rgba(241,247,251,.96) 0%,rgba(214,228,238,.94) 100%)!important;border:1px solid rgba(255,255,255,.78)!important;border-radius:24px!important;padding:26px 30px!important;box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 24px 64px rgba(2,14,32,.32)!important;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .app-loading-shell .loading-card{background:linear-gradient(180deg,rgba(28,50,74,.97) 0%,rgba(16,32,50,.96) 100%)!important;border-color:rgba(170,215,245,.18)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .app-loading-shell .loading-card strong{color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .app-loading-shell .loading-card small{color:var(--text-muted)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .app-loading-shell .loading-orbit{border-color:rgba(15,168,242,.25)!important;border-top-color:#0fa8f2!important}
/* Overview banner after an import */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-banner{background:linear-gradient(180deg,rgba(241,247,251,.92),rgba(214,228,238,.9))!important;border:1px solid rgba(46,160,110,.35)!important;border-radius:16px!important;color:var(--text-primary)!important;box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 8px 22px rgba(2,14,32,.14)}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-banner{background:linear-gradient(180deg,rgba(28,50,74,.94),rgba(16,32,50,.92))!important;border-color:rgba(124,239,200,.3)!important}
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-banner .oc-banner-check{color:#0f6a46!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-banner .oc-banner-check{color:#7cefc8!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-banner .oc-link{color:var(--accent)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .oc-banner .oc-banner-x{color:var(--text-secondary)!important}
/* Feature controls: pill selects */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #featuresView select{border-radius:999px!important;padding:0 30px 0 12px!important;min-height:34px;background-color:rgba(255,255,255,.55)!important;border:1px solid rgba(255,255,255,.7)!important;color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #featuresView select{background-color:rgba(255,255,255,.08)!important;border-color:rgba(170,215,245,.22)!important}

/* ---------- Glass touch and motion ---------- */
/* A light sheen layer on every card (a second background image); it sweeps across on hover */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.panel,.metric-card,.mini-metric,.vehicle-card,.trip-action-card,.booking-mobile-card,.expense-vehicle-card,.maintenance-card,.loan-card,.mileage-card,.overview-fleet-card,.annual-kpi-card,.annual-month-card){
  background-image:linear-gradient(105deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.42) 50%,rgba(255,255,255,0) 62%),var(--glass-card)!important;
  background-size:320% 100%,100% 100%!important;background-position:115% 0,0 0!important;background-repeat:no-repeat!important;
}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.metric-card,.mini-metric,.annual-kpi-card,.overview-fleet-card){background-image:linear-gradient(105deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.42) 50%,rgba(255,255,255,0) 62%),var(--glass-tile)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.panel,.metric-card,.mini-metric,.vehicle-card,.trip-action-card,.booking-mobile-card,.expense-vehicle-card,.maintenance-card,.loan-card,.mileage-card,.overview-fleet-card,.annual-kpi-card,.annual-month-card){background-image:linear-gradient(105deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.10) 50%,rgba(255,255,255,0) 62%),var(--glass-card)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.metric-card,.mini-metric,.annual-kpi-card,.overview-fleet-card){background-image:linear-gradient(105deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.10) 50%,rgba(255,255,255,0) 62%),var(--glass-tile)!important}
@media (hover:hover){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.panel,.metric-card,.mini-metric,.vehicle-card,.trip-action-card,.booking-mobile-card,.expense-vehicle-card,.maintenance-card,.loan-card,.mileage-card,.overview-fleet-card,.annual-kpi-card,.annual-month-card){transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease,background-position .9s ease}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.panel,.metric-card,.mini-metric,.vehicle-card,.trip-action-card,.booking-mobile-card,.expense-vehicle-card,.maintenance-card,.loan-card,.mileage-card,.overview-fleet-card,.annual-kpi-card,.annual-month-card):hover{transform:translateY(-3px);background-position:-15% 0,0 0!important;box-shadow:0 1.5px 0 rgba(255,255,255,1) inset,0 12px 22px -14px rgba(255,255,255,.55) inset,0 4px 10px rgba(4,20,50,.12),0 30px 64px rgba(4,20,50,.34)!important}
  /* buttons and pills: a gentle cyan glow */
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.primary-button,.secondary-button,.more-button,.checkout-button,.experience-command-trigger,.auth-tabs button,.auth-theme-switch button){transition:box-shadow .22s ease,transform .12s ease,background-color .22s ease}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.primary-button,.secondary-button,.more-button,.checkout-button):hover{box-shadow:0 0 0 3px rgba(79,195,247,.28),0 8px 22px rgba(41,182,246,.38)!important}
  /* sidebar: a soft glass pill under the hovered item */
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .nav-item:not(.active):hover{background:rgba(255,255,255,.16)!important;box-shadow:inset 0 0 0 1px rgba(190,235,255,.28)!important}
}
/* press / tap: a slight press-down (cards 0.98, buttons and pills too). Phones get only this, kept light (transform only). */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.panel,.metric-card,.mini-metric,.vehicle-card,.trip-action-card,.booking-mobile-card,.expense-vehicle-card,.maintenance-card,.loan-card,.mileage-card,.overview-fleet-card,.annual-kpi-card,.annual-month-card):active:not(:has(:is(button,a,input,select,summary,label):active)){transform:scale(.98)!important;transition:transform .1s ease}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.primary-button,.secondary-button,.more-button,.checkout-button,.nav-item,.experience-mobile-nav button,.auth-tabs button,.auth-theme-switch button,.delete-button):active{transform:scale(.97) translateY(1px)!important;transition:transform .08s ease}
/* Sidebar on desktop: one glowing pill sits on the active item (CSS anchor positioning; where the browser lacks it, the
   active item keeps its own pill). It jumps to the new page when the enter starts, as in the reference: no glide. */
@supports (anchor-name:--a) {
  @media (min-width:781px){
    html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .main-nav{position:relative;isolation:isolate}
    html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .main-nav .nav-item.active{anchor-name:--fdv-active-nav;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
    html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .main-nav::after{
      content:"";position:absolute;z-index:-1;pointer-events:none;position-anchor:--fdv-active-nav;
      top:anchor(top);bottom:anchor(bottom);left:anchor(left);right:anchor(right);border-radius:12px;
      background:var(--side-active);border:1px solid var(--side-active-edge);
      box-shadow:0 0 0 1px rgba(79,195,247,.7),0 0 12px rgba(41,182,246,.75),inset 0 1px 0 rgba(220,245,255,.5);
    }
  }
}
@media (prefers-reduced-motion:reduce){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.panel,.metric-card,.mini-metric,.vehicle-card,.trip-action-card,.booking-mobile-card,.expense-vehicle-card,.maintenance-card,.loan-card,.mileage-card,.overview-fleet-card,.annual-kpi-card,.annual-month-card),html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.panel,.metric-card,.mini-metric,.vehicle-card,.trip-action-card,.booking-mobile-card,.expense-vehicle-card,.maintenance-card,.loan-card,.mileage-card,.overview-fleet-card,.annual-kpi-card,.annual-month-card):hover{transition:none!important;transform:none!important;background-position:115% 0,0 0!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.panel,.metric-card,.mini-metric,.vehicle-card,.trip-action-card,.booking-mobile-card,.expense-vehicle-card,.maintenance-card,.loan-card,.mileage-card,.overview-fleet-card,.annual-kpi-card,.annual-month-card):active,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.primary-button,.secondary-button,.more-button,.checkout-button,.nav-item,.experience-mobile-nav button,.auth-tabs button,.auth-theme-switch button,.delete-button):active{transform:none!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.primary-button,.secondary-button,.more-button,.checkout-button,.experience-command-trigger,.auth-tabs button,.auth-theme-switch button){transition:none!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .sidebar .main-nav::after{transition:none!important}
}

/* ---------- No backdrop-filter: solid surfaces ---------- */
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]){--glass-side:var(--glass-side-solid);--glass-bar:var(--glass-bar-solid);--glass-card:var(--glass-solid);--glass-tile:var(--glass-solid);--card-bg:var(--glass-solid);--section-bg:var(--glass-solid)}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.view.active,.view.active>*,.view.active>:is(.metric-grid,.mini-metrics,.vehicle-grid)>*,#earningsView.active>*>*){animation:none!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.fdv-build :is(.chart-group>.bar,.goal-track>i,.expense-track>i,.break-track>i,.weekday-row>div>i,.vehicle-utilization>i>b,#costDonut,#yearlyTrend .annual-trend-bars>i){animation:none!important;-webkit-mask:none!important;mask:none!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.metric-card,.panel,.overview-fleet-card,.nav-item,.experience-mobile-nav button>span,.experience-command-trigger,.primary-button,.checkout-button,.secondary-button,.more-button){transition:none!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(.metric-card,.overview-fleet-card):hover{transform:none}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.data-table tbody tr,.table-filters input,.table-filters select,.more-button,.delete-button){transition:none!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.toolbar-actions select,.profit-vehicle-filter select){transition:none!important}
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view :is(.vehicle-page-header,.calculator-form,.expense-filter,.expense-summary-search) :is(input,select){transition:none!important}
}

/* ---------- Modern experience ----------
   Glass applies under Modern as it does under Classic and Premium. Modern keeps its own page layout (its Overview grid,
   hero, revenue rows and banner); only its surfaces take the Glass fills. Modern's own sheets paint cards from their
   own variables (--modern-*, --surface*) and with #overviewView selectors, so they are mapped here for Modern only. */
html[data-theme="glass"][data-appearance] body[data-experience="modern"]{
  --background:transparent;--surface:var(--card-bg);--surface-elevated:var(--card-bg);--surface-soft:var(--glass-soft);--surface-strong:var(--glass-soft);--border:var(--border-default);
  --modern-app:transparent;--modern-section:var(--glass-card);--modern-card:var(--glass-tile);--modern-interactive:var(--glass-soft);
}
/* KPI cards: the Glass tile and the Glass card order (icon, value, label, note together), as under Classic and Premium */
html[data-theme="glass"][data-appearance] body[data-experience="modern"] #overviewView>.metric-grid .metric-card{display:flex;flex-direction:column;justify-content:flex-start;gap:6px;border:1px solid var(--glass-edge)!important;box-shadow:var(--glass-shadow)!important;border-radius:var(--glass-radius)!important;
  background-color:transparent!important;background-image:linear-gradient(105deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.42) 50%,rgba(255,255,255,0) 62%),var(--glass-tile)!important;
  background-size:320% 100%,100% 100%!important;background-position:115% 0,0 0!important;background-repeat:no-repeat!important}
html[data-theme="glass"][data-appearance="dark"] body[data-experience="modern"] #overviewView>.metric-grid .metric-card{background-image:linear-gradient(105deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.10) 50%,rgba(255,255,255,0) 62%),var(--glass-tile)!important}
html[data-theme="glass"][data-appearance] body[data-experience="modern"] #overviewView>.metric-grid .metric-card small{align-self:flex-start}
@media (hover:hover) and (prefers-reduced-motion:no-preference){html[data-theme="glass"][data-appearance] body[data-experience="modern"] #overviewView>.metric-grid .metric-card:hover{background-position:-15% 0,0 0!important}}
/* hero and closing banner: Glass card surfaces with Modern's own accent glow kept on top */
html[data-theme="glass"][data-appearance] body[data-experience="modern"] #modernHero,html[data-theme="glass"][data-appearance] body[data-experience="modern"] #modernEditorialBanner{background:var(--glass-card)!important;border:1px solid var(--glass-edge)!important;box-shadow:var(--glass-shadow)!important;-webkit-backdrop-filter:blur(var(--glass-blur));backdrop-filter:blur(var(--glass-blur))}
/* Modern paints these in its own brown/accent colours with !important or #overviewView; Glass's own colours here (text colour only for contrast) */
html[data-theme="glass"][data-appearance] body[data-experience="modern"] .sidebar .brand-mark{background-color:transparent!important;color:transparent!important;box-shadow:none!important}
html[data-theme="glass"][data-appearance] body[data-experience="modern"] .modern-hero-ambient{color:var(--text-muted)}
html[data-theme="glass"][data-appearance] body[data-experience="modern"] #overviewView .metric-icon{color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance="dark"] body[data-experience="modern"] .view .alert-row>span:not([class]){color:#fff!important}
html[data-theme="glass"][data-appearance="dark"] body[data-experience="modern"] #expensesView :is(.expense-icon,.expense-vehicle-icon){color:var(--text-primary)!important}
/* the document icon in Reports and Documents kept the Classic grey (4.4:1 on light glass) */
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .document-row .expense-icon{color:var(--text-primary)!important}
/* found when the checks ran under Premium and Modern (also on production): the photo preview's lime initials and the palette's Esc key on light glass */
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #accountPanel .profile-photo-preview{color:var(--text-primary)!important}
html[data-theme="glass"][data-appearance="light"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .experience-command-input kbd{color:var(--text-muted)!important}
/* Modern fills the phone drawer's settings block with its own --interactive-bg (a light patch under white text on glass) */
html[data-theme="glass"][data-appearance] body[data-experience="modern"] .experience-drawer-settings{background:transparent!important}

/* ===== Chart amounts (shared/theme/chart-amounts.js): $ scale, values on the highest and current bars, a glass tooltip, losses below zero ===== */
/* Cash flow and Annual trend draw the same way: bars straight on the glass card, losses in the loss colour hanging below the zero line */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart .bar.negative{background:var(--negative)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #yearlyTrend{background:transparent!important;position:relative;border-radius:0!important;border-bottom-color:rgba(10,34,54,.10)!important}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #yearlyTrend{border-bottom-color:rgba(255,255,255,.10)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #yearlyTrend .annual-trend-month{position:relative;z-index:1}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #yearlyTrend .annual-trend-bars>i{border-radius:5px 5px 2px 2px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #yearlyTrend .annual-revenue-bar{background:var(--chart-gross)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #yearlyTrend .annual-profit-bar{background:var(--chart-profit)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #yearlyTrend :is(.annual-profit-bar.loss,.annual-trend-bars>i.fdv-neg){background:var(--negative)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #yearlyTrend.fdv-signed .annual-trend-bars>i{height:var(--fdv-h)!important;min-height:0!important;position:relative;bottom:var(--fdv-b)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #yearlyTrend.fdv-signed .annual-trend-bars>i.fdv-neg{border-radius:2px 2px 5px 5px}
/* legends: swatches are the bar colours (3:1+ on the card), labels the muted text (4.5:1+) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .annual-chart-legend span:first-child i{background:var(--chart-gross)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .annual-chart-legend span:last-child i{background:var(--chart-profit)!important}
/* the $ scale: room on the left for its labels, gridlines across the plot, the zero line a little stronger */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) :is(#revenueChart,#yearlyTrend).fdv-scaled{padding-left:46px!important;border-bottom-color:transparent!important}
/* the legend swatches match the bars (an older dark-mode rule colours .legend-gross with ID weight, so these carry one too) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .legend-gross:not(#fdv-x){background:var(--chart-gross)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .legend-profit:not(#fdv-x){background:var(--chart-profit)!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart.fdv-scaled::before,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart.fdv-scaled::after,html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #revenueChart.fdv-scaled .chart-zero{display:none!important}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-axis{position:absolute;inset:0;pointer-events:none;z-index:0}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-gl{position:absolute;left:44px;right:0;height:0;border-top:1px solid rgba(10,34,54,.10)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-gl.fdv-zero{border-top-color:rgba(10,34,54,.30)}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-gl{border-top-color:rgba(255,255,255,.10)}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-gl.fdv-zero{border-top-color:rgba(255,255,255,.34)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-gl>span{position:absolute;right:calc(100% + 6px);top:0;transform:translateY(-50%);font-size:11px;line-height:1;font-weight:600;color:var(--text-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-val{position:absolute;transform:translate(-50%,-100%);font-size:11px;line-height:1.2;font-weight:700;color:var(--text-primary);white-space:nowrap;font-variant-numeric:tabular-nums;z-index:2}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-val.fdv-below{transform:translate(-50%,0)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) [data-fdv-g]{outline:none;cursor:default}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) [data-fdv-g]:focus-visible{outline:2px solid var(--chart-gross);outline-offset:2px;border-radius:8px}
/* the tooltip (one element on the page, placed over the bar) */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-tip{position:fixed;z-index:10000;min-width:178px;max-width:min(260px,calc(100vw - 16px));padding:10px 12px 9px;border-radius:12px;background:linear-gradient(180deg,rgba(246,250,253,.96),rgba(228,239,247,.95));border:1px solid rgba(255,255,255,.85);box-shadow:0 12px 30px rgba(10,34,54,.20);-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);color:var(--text-primary);font-size:12.5px;line-height:1.35;pointer-events:none;opacity:0;transition:opacity .12s ease-out}
html[data-theme="glass"][data-appearance="dark"] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-tip{background:linear-gradient(180deg,rgba(32,58,86,.97),rgba(16,34,54,.96));border-color:rgba(255,255,255,.16);box-shadow:0 12px 30px rgba(0,0,0,.45)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-tip[hidden]{display:none}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-tip.on{opacity:1}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-tip>strong{display:block;font-size:12.5px;font-weight:700;margin-bottom:6px}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-tip-row{display:flex;align-items:center;gap:7px;margin-top:3px;color:var(--text-primary)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-tip-row>b{margin-left:auto;padding-left:16px;font-weight:700;font-variant-numeric:tabular-nums}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-tip-row.fdv-neg>b{color:var(--negative)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-sw{width:9px;height:9px;border-radius:3px;flex:none}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-sw-0{background:var(--chart-gross)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-sw-1{background:var(--chart-profit)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-tip-row.fdv-neg>.fdv-sw{background:var(--negative)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-sw-none{background:transparent}
@keyframes fdv-val-in{from{opacity:0}}
@media (prefers-reduced-motion:no-preference){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .view.fdv-build .fdv-val{animation:fdv-val-in .3s ease-out 1.1s both}
}
@media (prefers-reduced-motion:reduce){
  html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) .fdv-tip{transition:none}
}
/* Vehicle contribution bars (Profit & Earnings): the zero mark and layout come from styles/overrides/charts-classic.css (every theme);
   Glass colours: a losing vehicle in the loss colour (Modern and Premium coloured every bar blue), the zero mark in the muted text colour */
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .annual-contribution>i::after{background:var(--text-muted)}
html[data-theme="glass"][data-appearance] body:is([data-experience="classic"],[data-experience="premium"],[data-experience="modern"]) #earningsView .annual-contribution>i b.loss{background:var(--negative)!important}
