.moteq-portal-scope{/* One hue with shades — the indigo of the original dashboard */ --brand:#1a237e; --brand-2:#3949ab; --brand-3:#7986cb; --brand-soft:#e8eaf6; --brand-wash:#f4f5fb; /* Cool neutrals (one grey family) */ --bg:#f5f7fa; --card:#ffffff; --line:#e4e7ee; --line-2:#eef0f5; --ink:#1b2130; --ink-2:#4d5566; --ink-3:#5f6777; /* all ≥ 4.5:1 on white and on the page tint */ --field:#8b92a2; /* input borders, ≥ 3:1 */ /* Status — only where a colour means "act on this" */ --warn:#c98000; --warn-ink:#7a5000; --warn-soft:#fbf0da; --crit:#d03b3b; --crit-ink:#a52222; --crit-soft:#f9e1e1; --radius:12px; --radius-sm:8px; --shadow:0 1px 2px rgba(26,35,126,.05),0 6px 18px -8px rgba(26,35,126,.12); --ease-out:cubic-bezier(.23,1,.32,1); --font:"Geist",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;}
.moteq-portal-scope *{box-sizing:border-box;margin:0;padding:0}
.moteq-portal-scope{font-family:var(--font);color:var(--ink);line-height:1.5;font-size:15px;-webkit-font-smoothing:antialiased; background:radial-gradient(1100px 420px at 50% -180px,rgba(57,73,171,.10),transparent 70%) no-repeat,var(--bg); border-radius:var(--radius);overflow:hidden}
.moteq-portal-scope button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:none;text-transform:none;letter-spacing:normal}
.moteq-portal-scope input{font:inherit}
.moteq-portal-scope a{color:var(--brand-2);box-shadow:none}
.moteq-portal-scope h2,.moteq-portal-scope h3,.moteq-portal-scope h4{text-wrap:balance;margin:0;padding:0}
.moteq-portal-scope p{text-wrap:pretty;margin:0}
.moteq-portal-scope .hidden{display:none!important}
.moteq-portal-scope .sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;padding:0;border:0}
.moteq-portal-scope :focus-visible{outline:2px solid var(--brand-2);outline-offset:2px;border-radius:6px}
.moteq-portal-scope main:focus{outline:none}
.moteq-portal-scope .wrap{max-width:1200px;margin:0 auto;padding:15px 15px 28px}
.moteq-portal-scope .empty{text-align:center;color:var(--ink-3);padding:18px 8px;font-size:14px}
.moteq-portal-scope .empty b{display:block;color:var(--ink-2);font-weight:600;margin-bottom:2px}
.moteq-portal-scope .span-all{grid-column:1/-1}
/* Buttons: one motion vocabulary */
.moteq-portal-scope .btn-primary,.moteq-portal-scope .icon-btn,.moteq-portal-scope .year-button,.moteq-portal-scope .btn-wa{transition:transform 160ms var(--ease-out),background-color 150ms ease,border-color 150ms ease,color 150ms ease}
.moteq-portal-scope .btn-primary:active,.moteq-portal-scope .icon-btn:active,.moteq-portal-scope .year-button:active,.moteq-portal-scope .btn-wa:active{transform:scale(.97)}
/* ── Login ─────────────────────────────────────────────── */
.moteq-portal-scope .login{display:grid;place-items:center;padding:40px 16px;min-height:380px}
.moteq-portal-scope .login-card{width:100%;max-width:400px;background:var(--card);border-radius:14px;box-shadow:var(--shadow);border-bottom:3px solid var(--brand);padding:28px 24px 22px}
.moteq-portal-scope .brand-line{font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--brand-2)}
.moteq-portal-scope .login .mp-login-h{color:var(--brand);font-size:25px;line-height:1.2;letter-spacing:-.015em;font-weight:700;margin:8px 0 6px}
.moteq-portal-scope .login .lead{color:var(--ink-2);font-size:14px;margin-bottom:20px}
.moteq-portal-scope .field{display:block;margin-bottom:14px}
.moteq-portal-scope .field span{display:block;font-size:13px;font-weight:500;color:var(--ink-2);margin-bottom:6px}
.moteq-portal-scope .field input{width:100%;height:48px;border:1px solid var(--field);border-radius:var(--radius-sm);padding:0 14px;font-size:16px;background:#fff;color:var(--ink);transition:border-color 150ms ease,box-shadow 150ms ease}
.moteq-portal-scope .field input:focus{outline:none;border-color:var(--brand-2);box-shadow:0 0 0 3px rgba(57,73,171,.16)}
.moteq-portal-scope .field input[aria-invalid="true"]{border-color:var(--crit)}
.moteq-portal-scope #loginPlate{font-weight:600;letter-spacing:.1em;text-transform:uppercase}
.moteq-portal-scope .btn-primary{display:flex;align-items:center;justify-content:center;width:100%;height:48px;border-radius:var(--radius-sm);background:var(--brand);color:#fff;font-weight:600;font-size:15px}
.moteq-portal-scope .btn-primary[disabled]{cursor:wait;opacity:.85}
.moteq-portal-scope .btn-spin{display:none;width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:sp .7s linear infinite;margin-right:10px}
.moteq-portal-scope .btn-primary.busy .btn-spin{display:inline-block}
.moteq-portal-scope .login-err{background:var(--crit-soft);color:var(--crit-ink);border-radius:var(--radius-sm);padding:10px 12px;font-size:14px;margin-bottom:14px}
.moteq-portal-scope .login-hint{margin-top:16px;font-size:12.5px;color:var(--ink-3);text-align:center}
.moteq-portal-scope .test-pill{display:inline-block;background:var(--warn-soft);color:var(--warn-ink);font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:4px;letter-spacing:.05em;text-transform:uppercase;margin-right:6px}
/* ── Header (original packaging) ───────────────────────── */
.moteq-portal-scope .dashboard-header{background:var(--card);padding:16px;border-radius:var(--radius);margin-bottom:14px;box-shadow:var(--shadow);border-bottom:3px solid var(--brand)}
.moteq-portal-scope .header-content{display:flex;flex-direction:column;gap:14px}
.moteq-portal-scope .dashboard-header .mp-h1{color:var(--brand);font-size:22px;line-height:1.2;letter-spacing:-.015em;font-weight:700;margin:4px 0 4px}
.moteq-portal-scope .dashboard-header p{font-size:14px;color:var(--ink-2);max-width:60ch}
.moteq-portal-scope .user-info{display:flex;align-items:center;gap:12px;min-width:0}
.moteq-portal-scope .user-avatar{width:44px;height:44px;border-radius:50%;background:var(--bg);border:2px solid var(--brand-soft);display:grid;place-items:center;color:var(--brand);font-weight:600;font-size:15px;flex:none}
.moteq-portal-scope .user-text{min-width:0}
.moteq-portal-scope .user-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.moteq-portal-scope .user-role{font-size:12.5px;color:var(--ink-3)}
.moteq-portal-scope .user-actions{display:flex;gap:6px;margin-left:auto}
.moteq-portal-scope .icon-btn{width:44px;height:44px;border-radius:10px;display:grid;place-items:center;color:var(--ink-2);border:1px solid var(--line);background:var(--card)}
.moteq-portal-scope .icon-btn svg{width:18px;height:18px}
.moteq-portal-scope .vehicle-details{margin-top:14px;padding:12px 14px;background:var(--bg);border-radius:var(--radius-sm);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.moteq-portal-scope .vd-label{display:block;font-size:12px;color:var(--ink-3);font-weight:500}
.moteq-portal-scope .vd-value{display:block;font-size:16px;font-weight:600;color:var(--brand);overflow-wrap:anywhere}
/* ── Needs attention ───────────────────────────────────── */
.moteq-portal-scope .attention{margin-bottom:14px;border-left:3px solid var(--warn);padding:14px 16px 10px}
.moteq-portal-scope .attention.has-over{border-left-color:var(--crit)}
.moteq-portal-scope .att-h{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.moteq-portal-scope .att-h svg{width:18px;height:18px;color:var(--warn);flex:none}
.moteq-portal-scope .attention.has-over .att-h svg{color:var(--crit)}
.moteq-portal-scope .att-h h2,.moteq-portal-scope .att-h h3{font-size:15px;font-weight:600;color:var(--ink)}
.moteq-portal-scope .att-count{font-size:12px;font-weight:600;color:var(--ink-2);background:var(--bg);border-radius:99px;padding:1px 9px}
.moteq-portal-scope .att-list{list-style:none;display:grid;gap:2px}
.moteq-portal-scope .att-item{width:calc(100% + 16px);display:flex;align-items:center;gap:10px;padding:8px;margin:0 -8px;border-radius:var(--radius-sm);text-align:left;min-height:48px;text-decoration:none;color:inherit;transition:background-color 150ms ease}
.moteq-portal-scope a.att-item:active,.moteq-portal-scope button.att-item:active{background:var(--brand-wash)}
.moteq-portal-scope .att-t{flex:1;min-width:0}
.moteq-portal-scope .att-name{display:block;font-weight:600;font-size:14px;color:var(--ink);line-height:1.35}
.moteq-portal-scope .att-sub{display:block;font-size:12.5px;color:var(--ink-3)}
.moteq-portal-scope .att-go{width:16px;height:16px;color:var(--ink-3);flex:none}
.moteq-portal-scope .att-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;font-size:12.5px;color:var(--ink-3)}
/* ── Notices & status line ─────────────────────────────── */
.moteq-portal-scope .notice{display:flex;gap:10px;align-items:flex-start;padding:11px 14px;border-radius:var(--radius-sm);font-size:14px;margin-bottom:14px;background:var(--card);box-shadow:var(--shadow);border-left:3px solid var(--brand-3)}
.moteq-portal-scope .notice svg{width:18px;height:18px;flex:none;margin-top:1px;color:var(--brand-2)}
.moteq-portal-scope .data-status{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--ink-3);margin:0 2px 14px}
.moteq-portal-scope .data-status svg{width:15px;height:15px;color:var(--brand-2);flex:none}
/* ── Health + stats ────────────────────────────────────── */
.moteq-portal-scope .top-grid{display:grid;gap:14px;margin-bottom:12px}
.moteq-portal-scope .card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}
.moteq-portal-scope .health{display:flex;gap:16px;align-items:center}
.moteq-portal-scope .health-body{min-width:0;flex:1}
.moteq-portal-scope .health-t{font-weight:600;color:var(--brand);font-size:16px}
.moteq-portal-scope .health-src{font-size:13px;color:var(--ink-2);margin-top:1px}
.moteq-portal-scope .health-att{display:flex;gap:7px;align-items:baseline;font-size:13px;color:var(--ink);margin-top:7px}
.moteq-portal-scope .health-att .dot{position:relative;top:-1px}
.moteq-portal-scope .health-na{display:flex;gap:6px;align-items:flex-start;font-size:12.5px;color:var(--ink-3);margin-top:7px;line-height:1.4}
.moteq-portal-scope .health-na svg{width:14px;height:14px;flex:none;margin-top:2px}
.moteq-portal-scope .health-link{display:inline-flex;align-items:center;min-height:32px;font-size:13px;font-weight:600;text-decoration:none;margin-top:4px}
.moteq-portal-scope .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.moteq-portal-scope .stat-card{background:var(--card);padding:12px 10px;border-radius:10px;text-align:center;box-shadow:var(--shadow);min-width:0}
.moteq-portal-scope .stat-label{font-size:12.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.moteq-portal-scope .stat-value{font-size:21px;font-weight:700;color:var(--brand);margin:3px 0 1px;line-height:1.25;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.moteq-portal-scope .stat-value.crit{color:var(--crit-ink)}
.moteq-portal-scope .stat-value small{font-size:12px;font-weight:600;color:var(--ink-3);margin:0 2px;letter-spacing:0}
.moteq-portal-scope .stat-sub{font-size:12px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ── Rings (doughnuts) ─────────────────────────────────── */
.moteq-portal-scope .ring{position:relative;flex:none}
.moteq-portal-scope .ring svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}
.moteq-portal-scope .ring .arc{transition:stroke-dashoffset 700ms var(--ease-out)}
.moteq-portal-scope .ring-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.12;padding:0 12px}
.moteq-portal-scope .rc-l{font-size:9.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.moteq-portal-scope .rc-v{font-size:18px;font-weight:700;color:var(--ink);white-space:nowrap;letter-spacing:-.01em}
.moteq-portal-scope .rc-v.sm{font-size:16px}
.moteq-portal-scope .rc-v.xs{font-size:14px}
.moteq-portal-scope .rc-u{font-size:10.5px;color:var(--ink-3)}
.moteq-portal-scope .ring-health{width:96px;height:96px}
.moteq-portal-scope .ring-health .rc-v{font-size:22px;color:var(--brand)}
.moteq-portal-scope .ring-sk{width:36px!important}
.moteq-portal-scope .trk{stroke:var(--brand-soft)}
.moteq-portal-scope .arc{stroke:var(--brand-2)}
.moteq-portal-scope .trk.soon{stroke:var(--warn-soft)}
.moteq-portal-scope .arc.soon{stroke:var(--warn)}
.moteq-portal-scope .trk.over{stroke:var(--crit-soft)}
.moteq-portal-scope .arc.over{stroke:var(--crit)}
.moteq-portal-scope .trk.none{stroke:#eef0f4}
.moteq-portal-scope .arc.health{stroke:var(--brand)}
.moteq-portal-scope .dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none;background:var(--brand-2)}
.moteq-portal-scope .dot.soon{background:var(--warn)}
.moteq-portal-scope .dot.over{background:var(--crit)}
.moteq-portal-scope .dot.none{background:#b9bfcb}
.moteq-portal-scope .dot.check{background:var(--brand-3)}
/* ── Drop-down sections ────────────────────────────────── */
.moteq-portal-scope .acc{padding:0;overflow:hidden;scroll-margin-top:12px}
.moteq-portal-scope .acc+.acc{margin-top:12px}
.moteq-portal-scope .acc-hd{margin:0;font:inherit}
.moteq-portal-scope .acc-h{width:100%;display:flex;align-items:center;gap:12px;padding:12px 16px;text-align:left;min-height:64px;transition:background-color 150ms ease}
.moteq-portal-scope .acc-h:active{background:#f6f7fb}
.moteq-portal-scope .acc-ico{width:38px;height:38px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:none}
.moteq-portal-scope .acc-ico svg{width:18px;height:18px}
.moteq-portal-scope .acc-tt{flex:1;min-width:0}
.moteq-portal-scope .acc-title{display:block;font-weight:600;font-size:16px;color:var(--brand);line-height:1.3}
.moteq-portal-scope .acc-sum{display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px;font-size:12.5px;color:var(--ink-3);line-height:1.45;font-weight:400}
.moteq-portal-scope .acc-sum .ss{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.moteq-portal-scope .chev{width:18px;height:18px;color:var(--ink-3);flex:none;transition:transform 240ms var(--ease-out)}
.moteq-portal-scope .acc.open>.acc-hd .chev,.moteq-portal-scope .month.open>.month-h .chev{transform:rotate(180deg)}
.moteq-portal-scope .acc-b{display:grid;grid-template-rows:0fr;transition:grid-template-rows 240ms var(--ease-out)}
.moteq-portal-scope .acc:not(.open)>.acc-b,.moteq-portal-scope .month:not(.open)>.acc-b{transition-duration:180ms}
.moteq-portal-scope .acc.open>.acc-b,.moteq-portal-scope .month.open>.acc-b{grid-template-rows:1fr}
.moteq-portal-scope .acc-in{min-height:0;overflow:hidden;visibility:hidden;transition:visibility 0s 180ms}
.moteq-portal-scope .acc.open>.acc-b>.acc-in,.moteq-portal-scope .month.open>.acc-b>.acc-in{visibility:visible;transition:visibility 0s 0s}
.moteq-portal-scope .acc-pad,.moteq-portal-scope .month-body{opacity:0;transform:translateY(-6px);transition:opacity 200ms ease,transform 240ms var(--ease-out)}
.moteq-portal-scope .acc.open>.acc-b>.acc-in>.acc-pad,.moteq-portal-scope .month.open>.acc-b>.acc-in>.month-body{opacity:1;transform:none}
.moteq-portal-scope .acc-pad{padding:14px 16px 18px;border-top:1px solid var(--line-2)}
.moteq-portal-scope .note{font-size:12.5px;color:var(--ink-3);margin-top:12px;line-height:1.5;max-width:75ch}
/* service tiles */
.moteq-portal-scope .svc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.moteq-portal-scope .svc{border:1px solid var(--line);border-radius:10px;padding:14px 10px 12px;text-align:center;display:flex;flex-direction:column;align-items:center;min-width:0;scroll-margin:80px}
.moteq-portal-scope .svc.over{border-color:#efc9c9;background:#fffbfb}
.moteq-portal-scope .svc.flash{animation:flash 1.6s var(--ease-out)}
@keyframes flash{0%{box-shadow:0 0 0 0 rgba(57,73,171,0)}18%{box-shadow:0 0 0 4px rgba(57,73,171,.30)}100%{box-shadow:0 0 0 0 rgba(57,73,171,0)}}
.moteq-portal-scope .svc .ring{width:96px;height:96px;margin-bottom:8px}
.moteq-portal-scope .svc-name{font-size:14px;font-weight:600;line-height:1.3;color:var(--ink)}
.moteq-portal-scope .svc-st{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--ink-2);margin-top:3px}
.moteq-portal-scope .svc-due{font-size:12px;color:var(--ink);margin-top:6px;line-height:1.35}
.moteq-portal-scope .svc-meta{font-size:11.5px;color:var(--ink-3);margin-top:3px;line-height:1.4}
.moteq-portal-scope .svc-rule{font-size:11.5px;color:var(--ink-2);margin-top:8px;background:var(--brand-wash);border-radius:6px;padding:6px 8px;line-height:1.4}
.moteq-portal-scope .svc-rule b{color:var(--ink);font-weight:600}
.moteq-portal-scope .legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--ink-3);margin-top:14px;align-items:center}
.moteq-portal-scope .legend span{display:inline-flex;align-items:center;gap:6px}
.moteq-portal-scope .untracked{font-size:12.5px;color:var(--ink-3);margin-top:10px}
.moteq-portal-scope .untracked b{color:var(--ink-2);font-weight:600}
/* history by month */
.moteq-portal-scope .yr{display:flex;justify-content:space-between;font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--ink-3);margin:14px 2px 6px;font-variant-numeric:tabular-nums}
.moteq-portal-scope .yr:first-child{margin-top:0}
.moteq-portal-scope .month{border-radius:var(--radius-sm);background:var(--brand-wash);overflow:hidden}
.moteq-portal-scope .month+.month{margin-top:6px}
.moteq-portal-scope .month-h{width:100%;display:flex;align-items:center;gap:10px;padding:9px 12px;text-align:left;min-height:52px;transition:background-color 150ms ease}
.moteq-portal-scope .month-h:active{background:var(--brand-soft)}
.moteq-portal-scope .month-t{flex:1;min-width:0}
.moteq-portal-scope .month-title{display:block;font-weight:600;font-size:14px;color:var(--brand)}
.moteq-portal-scope .month-sub{display:block;font-size:12px;color:var(--ink-3)}
.moteq-portal-scope .month-amt{font-weight:600;font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.moteq-portal-scope .month-amt small{font-size:11px;color:var(--ink-3);font-weight:500;margin-right:3px}
.moteq-portal-scope .month-body{padding:0 8px 8px}
.moteq-portal-scope .visit{background:var(--card);border-radius:6px;padding:10px 12px}
.moteq-portal-scope .visit+.visit{margin-top:6px}
.moteq-portal-scope .visit-h{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 12px;font-size:12.5px;color:var(--ink-2);padding-bottom:6px;border-bottom:1px solid var(--line-2)}
.moteq-portal-scope .visit-h b{color:var(--ink);font-weight:600}
.moteq-portal-scope .complaint{font-size:12.5px;color:var(--ink-2);margin:7px 0 0}
.moteq-portal-scope .complaint span{color:var(--ink-3)}
.moteq-portal-scope .lines{width:100%;border-collapse:collapse;font-size:13px;margin-top:2px}
.moteq-portal-scope .lines thead th{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;padding:0;border:0}
.moteq-portal-scope .lines td{padding:6px 0;border-bottom:1px solid var(--line-2);vertical-align:top}
.moteq-portal-scope .lines tbody tr:last-child td{border-bottom:0}
.moteq-portal-scope .lines .n{padding-right:12px;overflow-wrap:anywhere}
.moteq-portal-scope .lines .q{color:var(--ink-3);white-space:nowrap;padding-right:14px;text-align:right;font-variant-numeric:tabular-nums}
.moteq-portal-scope .lines .t{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.moteq-portal-scope .lines .sub{display:none;color:var(--ink-3);font-size:11.5px}
.moteq-portal-scope .lines tfoot td{border-top:1px solid var(--line);border-bottom:0;font-weight:600;padding-top:7px}
.moteq-portal-scope .doc-link{display:inline-flex;align-items:center;min-height:32px;font-size:12.5px;font-weight:600;margin-top:4px;text-decoration:none}
/* running costs + mileage */
.moteq-portal-scope .mini-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.moteq-portal-scope .mini{background:var(--bg);border-radius:var(--radius-sm);padding:10px 12px;min-width:0}
.moteq-portal-scope .mini .l{font-size:12px;color:var(--ink-3)}
.moteq-portal-scope .mini .v{font-size:17px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
.moteq-portal-scope .mini .v small{font-size:11px;color:var(--ink-3);font-weight:500;margin-right:3px;letter-spacing:0}
.moteq-portal-scope .mini .s{font-size:11.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.moteq-portal-scope .sub-h{display:flex;justify-content:space-between;align-items:center;gap:8px 12px;margin:22px 0 10px;flex-wrap:wrap}
.moteq-portal-scope .sub-t{font-weight:600;font-size:14px}
.moteq-portal-scope .sub-s{font-size:12px;color:var(--ink-3)}
.moteq-portal-scope .year-selector{display:flex;gap:6px;flex-wrap:wrap}
.moteq-portal-scope .year-button{min-height:40px;padding:0 14px;background:var(--brand-soft);border-radius:var(--radius-sm);font-weight:600;font-size:13px;color:var(--brand)}
.moteq-portal-scope .year-button.active{background:var(--brand);color:#fff}
.moteq-portal-scope .chart-box{position:relative;height:230px}
.moteq-portal-scope .chart-box.no-chart{height:auto}
.moteq-portal-scope .chart-box.loading::after,.moteq-portal-scope .chart-box.failed::after{position:absolute;inset:0;display:grid;place-items:center;font-size:13px;color:var(--ink-3);border-radius:var(--radius-sm)}
.moteq-portal-scope .chart-box.loading::after{content:"";background:linear-gradient(90deg,#f0f2f7 25%,#f7f8fb 50%,#f0f2f7 75%);background-size:200% 100%;animation:shimmer 1.3s linear infinite}
.moteq-portal-scope .chart-box.failed::after{content:"The chart couldn't load. The figures are in the table below.";background:var(--brand-wash);padding:0 20px;text-align:center}
.moteq-portal-scope .catbars{display:grid;gap:12px}
.moteq-portal-scope .cb{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n v" "b b";gap:4px 12px;align-items:center;font-size:13px}
.moteq-portal-scope .cb-n{grid-area:n;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.moteq-portal-scope .cb-v{grid-area:v;text-align:right;white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}
.moteq-portal-scope .cb-v span{color:var(--ink-3);font-weight:400;margin-left:6px}
.moteq-portal-scope .cb-b{grid-area:b;height:10px}
.moteq-portal-scope .cb-b i{display:block;height:100%;background:var(--brand-2);border-radius:0 4px 4px 0;min-width:3px;transform:scaleX(0);transform-origin:left center;transition:transform 520ms var(--ease-out)}
.moteq-portal-scope .acc.open .cb-b i{transform:scaleX(1)}
.moteq-portal-scope .cb{transition:opacity 160ms ease}
.moteq-portal-scope .cb.faded{opacity:.4}
.moteq-portal-scope .fold-note{font-size:12px;color:var(--ink-3);margin-top:-2px}
/* Running-costs doughnuts (SVG). Slices draw in when the section opens. */
.moteq-portal-scope .donuts{display:grid;column-gap:32px}
.moteq-portal-scope .split{display:grid;gap:18px;align-items:center}
.moteq-portal-scope .donut{width:176px;height:176px;margin:0 auto}
.moteq-portal-scope .donut .seg{transition:stroke-dasharray 640ms var(--ease-out) var(--d,0ms),opacity 160ms ease}
.moteq-portal-scope .acc:not(.open) .donut .seg,body.printing .moteq-portal-scope .donut .seg{transition:none}
.moteq-portal-scope .acc:not(.open) .donut .seg{stroke-dasharray:0 1000}
.moteq-portal-scope .donut.focus .seg:not(.on){opacity:.3}
.moteq-portal-scope .donut .ring-center{padding:0 30px;pointer-events:none}
.moteq-portal-scope .donut .seg{cursor:default}
.moteq-portal-scope .donut .rc-l{white-space:normal;letter-spacing:.06em;line-height:1.25;margin-bottom:2px}
.moteq-portal-scope .donut .rc-v{font-size:22px}
.moteq-portal-scope .donut .rc-u{font-size:11.5px;margin-top:2px}
.moteq-portal-scope .share{display:flex;align-items:center;gap:18px}
.moteq-portal-scope .share .donut{width:128px;height:128px;margin:0}
.moteq-portal-scope .share .donut .ring-center{padding:0 22px}
.moteq-portal-scope .share .donut .rc-v{font-size:21px}
.moteq-portal-scope .share-leg{display:grid;gap:10px;min-width:0;font-size:13px}
.moteq-portal-scope .sl-n{display:flex;align-items:center;gap:8px;color:var(--ink-2)}
.moteq-portal-scope .sl-n i{width:10px;height:10px;border-radius:3px;flex:none}
.moteq-portal-scope .sl-v{display:block;padding-left:18px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
.moteq-portal-scope .share-note{font-size:12.5px;color:var(--ink-3);padding-left:18px}
.moteq-portal-scope .tbl{margin-top:8px}
.moteq-portal-scope .tbl summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:8px;min-height:40px;font-size:13px;font-weight:600;color:var(--brand-2)}
.moteq-portal-scope .tbl summary::-webkit-details-marker{display:none}
.moteq-portal-scope .tbl summary::after{content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform 200ms var(--ease-out)}
.moteq-portal-scope .tbl[open] summary::after{transform:translateY(1px) rotate(225deg)}
.moteq-portal-scope .tbl table{width:100%;border-collapse:collapse;font-size:13px;margin-top:4px;font-variant-numeric:tabular-nums}
.moteq-portal-scope .tbl th,.moteq-portal-scope .tbl td{padding:7px 4px;border-bottom:1px solid var(--line-2);text-align:right}
.moteq-portal-scope .tbl th:first-child,.moteq-portal-scope .tbl td:first-child{text-align:left}
.moteq-portal-scope .tbl th{font-weight:500;color:var(--ink-3);font-size:12px}
.moteq-portal-scope .tbl tfoot td{font-weight:600;border-bottom:0}
.moteq-portal-scope .cta{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:12px}
.moteq-portal-scope .cta .t{font-weight:600;color:var(--brand)}
.moteq-portal-scope .cta p{font-size:13px;color:var(--ink-2)}
.moteq-portal-scope .btn-wa{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:var(--radius-sm);background:var(--brand);color:#fff;font-weight:600;font-size:14px;text-decoration:none}
.moteq-portal-scope .footer{text-align:center;margin-top:28px;color:var(--ink-3);font-size:12.5px;line-height:1.6}
/* skeletons + refresh */
.moteq-portal-scope .sk{display:inline-block;height:.85em;border-radius:6px;vertical-align:middle;background:linear-gradient(90deg,#eceef4 25%,#f6f7fa 50%,#eceef4 75%);background-size:200% 100%;animation:shimmer 1.3s linear infinite}
.moteq-portal-scope .sk.tall{height:1.15em}
.moteq-portal-scope .w30{width:30%}
.moteq-portal-scope .w40{width:40%}
.moteq-portal-scope .w50{width:50%}
.moteq-portal-scope .w60{width:60%}
.moteq-portal-scope .w70{width:70%}
.moteq-portal-scope .w90{width:90%}
@keyframes shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
@keyframes sp{to{transform:rotate(360deg)}}
.moteq-portal-scope .wrap.refreshing main{opacity:.55;pointer-events:none;transition:opacity 200ms ease}
.moteq-portal-scope .wrap.refreshing #refreshBtn svg{animation:sp .8s linear infinite}
/* Hover only where a real pointer exists — no sticky hover on phones */
@media (hover:hover) and (pointer:fine){
  .moteq-portal-scope .btn-primary:hover{background:#283593}
  .moteq-portal-scope .icon-btn:hover{color:var(--brand);border-color:#cfd4ea;background:var(--brand-wash)}
  .moteq-portal-scope .acc-h:hover{background:#fafbfd}
  .moteq-portal-scope .month-h:hover{background:var(--brand-soft)}
  .moteq-portal-scope .year-button:hover:not(.active){background:#dde0f2}
  .moteq-portal-scope a.att-item:hover,.moteq-portal-scope button.att-item:hover{background:var(--brand-wash)}
  .moteq-portal-scope .health-link:hover,.moteq-portal-scope .doc-link:hover{text-decoration:underline}
  .moteq-portal-scope .btn-wa:hover{background:#283593}
}
/* ── Wider screens ─────────────────────────────────────── */
@media (min-width:600px){
  .moteq-portal-scope .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .moteq-portal-scope .svc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .moteq-portal-scope .mini-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .moteq-portal-scope .cb{grid-template-columns:minmax(120px,190px) minmax(0,1fr) auto;grid-template-areas:"n b v"}
  .moteq-portal-scope .split{grid-template-columns:auto minmax(0,1fr);gap:28px}
  .moteq-portal-scope .donut{margin:0}
}
@media (min-width:768px){
  .moteq-portal-scope .wrap{padding:20px 24px 32px}
  .moteq-portal-scope .header-content{flex-direction:row;justify-content:space-between;align-items:center}
  .moteq-portal-scope .user-actions{margin-left:10px}
  .moteq-portal-scope .vehicle-details{grid-template-columns:repeat(6,minmax(0,1fr))}
  .moteq-portal-scope .chart-box{height:260px}
  .moteq-portal-scope .att-list{grid-template-columns:1fr 1fr;column-gap:24px}
}
@media (min-width:960px){
  .moteq-portal-scope .top-grid{grid-template-columns:minmax(320px,1fr) 2fr}
  .moteq-portal-scope .svc-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .moteq-portal-scope .donuts{grid-template-columns:minmax(0,1.75fr) minmax(0,1fr)}
}
@media (max-width:599px){
  .moteq-portal-scope .lines .q{display:none}
  .moteq-portal-scope .lines .sub{display:block}
}
@media (max-width:360px){
  .moteq-portal-scope .wrap{padding:10px}
  .moteq-portal-scope .dashboard-header,.moteq-portal-scope .card{padding:12px}
  .moteq-portal-scope .acc{padding:0}
  .moteq-portal-scope .acc-h{padding:12px}
  .moteq-portal-scope .acc-pad{padding:12px}
  .moteq-portal-scope .stat-value{font-size:19px}
  .moteq-portal-scope .svc .ring{width:88px;height:88px}
  .moteq-portal-scope .rc-v{font-size:16px}
}
/* Reduced motion: keep gentle fades, drop movement */
@media (prefers-reduced-motion:reduce){
  .moteq-portal-scope .acc-b,.moteq-portal-scope .chev,.moteq-portal-scope .ring .arc,.moteq-portal-scope .donut .seg,.moteq-portal-scope .cb,.moteq-portal-scope .cb-b i,.moteq-portal-scope .btn-primary,.moteq-portal-scope .icon-btn,.moteq-portal-scope .year-button,.moteq-portal-scope .btn-wa,.moteq-portal-scope .tbl summary::after{transition:none!important}
  .moteq-portal-scope .acc-pad,.moteq-portal-scope .month-body{transform:none!important}
  .moteq-portal-scope .cb-b i{transform:none!important}
  .moteq-portal-scope .btn-primary:active,.moteq-portal-scope .icon-btn:active,.moteq-portal-scope .year-button:active,.moteq-portal-scope .btn-wa:active{transform:none}
  .moteq-portal-scope .sk,.moteq-portal-scope .chart-box.loading::after{animation:none}
  .moteq-portal-scope .svc.flash{animation:none;box-shadow:0 0 0 3px rgba(57,73,171,.3)}
}
/* Print / save as PDF: everything open, no controls */
@media print{
  @page{margin:12mm}
  .moteq-portal-scope{background:#fff;font-size:12px;border-radius:0}
  .moteq-portal-scope .wrap{padding:0;max-width:none}
  .moteq-portal-scope .skip-link,.moteq-portal-scope .user-actions,.moteq-portal-scope .year-selector,.moteq-portal-scope .chev,.moteq-portal-scope .att-go,.moteq-portal-scope .tbl,.moteq-portal-scope #ctaBox,.moteq-portal-scope .data-status svg{display:none!important}
  .moteq-portal-scope .card,.moteq-portal-scope .stat-card,.moteq-portal-scope .dashboard-header{box-shadow:none;border:1px solid #dfe3eb}
  .moteq-portal-scope .acc-b{grid-template-rows:1fr!important}
  .moteq-portal-scope .acc-in{visibility:visible!important}
  .moteq-portal-scope .acc-pad,.moteq-portal-scope .month-body{opacity:1!important;transform:none!important}
  .moteq-portal-scope .cb-b i{transform:none!important}
  .moteq-portal-scope .donut .seg{transition:none!important;opacity:1!important}
  .moteq-portal-scope .cb{opacity:1!important}
  .moteq-portal-scope .svc,.moteq-portal-scope .stat-card,.moteq-portal-scope .mini,.moteq-portal-scope .month-h,.moteq-portal-scope .cb,.moteq-portal-scope .att-item,.moteq-portal-scope .lines tr,.moteq-portal-scope .visit-h,.moteq-portal-scope .split,.moteq-portal-scope .share{break-inside:avoid}
  .moteq-portal-scope .acc-hd,.moteq-portal-scope .month-h,.moteq-portal-scope .sub-h,.moteq-portal-scope .yr{break-after:avoid}
  .moteq-portal-scope .visit{break-inside:auto}
  .moteq-portal-scope .lines thead,.moteq-portal-scope .lines tfoot{display:table-row-group}
  /* don't repeat the total on every printed page */
  .moteq-portal-scope .month{background:none;border:1px solid #e4e7ee}
  .moteq-portal-scope .month-body{padding:0 8px 4px}
  /* Charts keep their on-screen pixel size unless told otherwise */
  .moteq-portal-scope .chart-box{height:auto!important}
  .moteq-portal-scope .chart-box canvas{width:100%!important;height:auto!important;max-width:100%}
  .moteq-portal-scope a{text-decoration:none}
}

/* ════════════════════════════════════════════════════════════════
   WORDPRESS ADDITIONS
   Vehicle switcher, sign-in extras, and the few theme resets a
   page builder makes necessary.
   ════════════════════════════════════════════════════════════════ */
.moteq-portal-scope .veh-switch{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding:10px 12px;background:var(--brand-wash);border-radius:var(--radius-sm)}
.moteq-portal-scope .veh-lab{font-size:12.5px;font-weight:600;color:var(--ink-2);white-space:nowrap}
.moteq-portal-scope .veh-sel{flex:1;min-width:180px;max-width:420px;height:44px;border:1px solid var(--field);border-radius:var(--radius-sm);background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:600;padding:0 12px;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:16px;padding-right:34px}
.moteq-portal-scope .veh-sel:focus{outline:none;border-color:var(--brand-2);box-shadow:0 0 0 3px rgba(57,73,171,.16)}
.moteq-portal-scope .remember{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-2);margin:-4px 0 16px;cursor:pointer}
.moteq-portal-scope .remember input{width:16px;height:16px;accent-color:var(--brand);margin:0}
.moteq-portal-scope .login-ok{background:#e6f4ea;color:#1b5e20;border-radius:var(--radius-sm);padding:10px 12px;font-size:14px;margin-bottom:14px}
.moteq-portal-scope .login-hint a{color:var(--brand-2);font-weight:600;text-decoration:none}
.moteq-portal-scope .login-hint a:hover{text-decoration:underline}

/* Themes (Flatsome included) style headings, buttons and selects heavily.
   These put the portal's own styling back on top without touching the theme. */
.moteq-portal-scope .mp-h1,
.moteq-portal-scope .mp-login-h,
.moteq-portal-scope .acc-title,
.moteq-portal-scope .sub-t,
.moteq-portal-scope .health-t{text-transform:none;letter-spacing:-.015em}
.moteq-portal-scope .btn-primary,
.moteq-portal-scope .btn-wa{text-transform:none;letter-spacing:normal;border:0;box-shadow:none;min-width:0;width:100%}
.moteq-portal-scope .btn-wa{width:auto}
.moteq-portal-scope ul,
.moteq-portal-scope ol{list-style:none;margin:0;padding:0}
.moteq-portal-scope table{border-collapse:collapse;margin:0;background:none}
.moteq-portal-scope td,
.moteq-portal-scope th{background:none}
.moteq-portal-scope img{max-width:100%;height:auto}
.moteq-portal-scope details summary{margin:0}
.moteq-portal-scope select{max-width:100%}

@media (max-width:599px){
  .moteq-portal-scope .veh-switch{flex-direction:column;align-items:stretch}
  .moteq-portal-scope .veh-sel{max-width:none}
}

@media print{
  .moteq-portal-scope .veh-switch{display:none!important}
}
