/* ==========================================================================
   Music Auto Group - Care Plan Portal
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --ink: #14161b;
  --ink-2: #4b4f59;
  --ink-3: #80838d;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8f8f7;
  --border: #e3e5ea;
  --border-strong: #ccd0d8;
  --navy: #13151c;
  --navy-2: #1d212b;
  --navy-3: #2a2f3c;
  --navy-line: rgba(255, 255, 255, 0.09);
  --navy-text: #c7cad3;
  --navy-text-dim: #7d8291;
  --primary: #fa6811;
  --primary-dark: #d9530a;
  --primary-darker: #a8420a;
  --primary-tint: #ffe3ce;
  --primary-tint-2: #fff3ea;
  --success: #1f8a5f;
  --success-tint: #e2f5ec;
  --warning: #b1770a;
  --warning-tint: #fef1d6;
  --danger: #cf3a3a;
  --danger-tint: #fbe8e8;
  --neutral-tint: #eef0f3;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card:
    0 1px 2px rgba(20, 22, 27, 0.04), 0 6px 20px -8px rgba(20, 22, 27, 0.12);
  --shadow-pop: 0 12px 32px -12px rgba(20, 22, 27, 0.28);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-w: 248px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body.mac-portal-page {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html:has(body.mac-portal-page) {
  overflow-x: hidden;
}

body.mac-portal-page .wp-site-blocks > header,
body.mac-portal-page .site-header,
body.mac-portal-page .wp-block-template-part:has(> header),
body.mac-portal-page .entry-header,
body.mac-portal-page .wp-block-post-title,
body.mac-portal-page .site-footer,
body.mac-portal-page footer {
  display: none;
}

body.mac-portal-page .wp-site-blocks,
body.mac-portal-page main.wp-block-group,
body.mac-portal-page .wp-block-post-content,
body.mac-portal-page .entry-content {
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

body.mac-portal-page main#wp--skip-link--target,
body.mac-portal-page main#wp--skip-link--target > .wp-block-group {
  margin: 0 !important;
  max-width: none;
  padding: 0 !important;
  width: 100%;
}

body.mac-portal-page .wp-block-post-content > .app-shell,
body.mac-portal-page .entry-content > .app-shell,
body.mac-portal-page .wp-block-post-content > .login-shell,
body.mac-portal-page .entry-content > .login-shell,
body.mac-portal-page .app-shell,
body.mac-portal-page .login-shell {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.app-shell *,
.login-shell *,
.menu-toggle,
.scrim {
  box-sizing: border-box;
}

.app-shell h1,
.app-shell h2,
.app-shell h3,
.app-shell h4,
.login-shell h1,
.login-shell h2,
.login-shell h3,
.login-shell h4 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.app-shell p,
.login-shell p {
  margin: 0;
}

.app-shell ul,
.app-shell ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-shell a,
.login-shell a {
  color: inherit;
  text-decoration: none;
}

.app-shell button,
.login-shell button {
  cursor: pointer;
  font-family: inherit;
}

.app-shell input,
.app-shell select,
.app-shell textarea,
.login-shell input,
.login-shell select,
.login-shell textarea {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.app-shell :focus-visible,
.login-shell :focus-visible,
.menu-toggle:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: inline-flex;
  font-size: 14.5px;
  font-weight: 600;
  gap: 8px;
  height: 42px;
  justify-content: center;
  padding: 0 20px;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease),
    transform 0.1s var(--ease);
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
  height: 16px;
  width: 16px;
}

.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff !important;
}
.btn-dark {
  background: var(--ink);
  color: #fff !important;
}
.btn-dark:hover {
  background: #000;
  color: #fff !important;
}
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink) !important;
}
.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--ink);
  color: var(--ink) !important;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  height: auto;
  padding: 4px 8px;
}
.btn-ghost:hover {
  color: var(--ink);
}
.btn-sm {
  font-size: 13.5px;
  height: 34px;
  padding: 0 14px;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.field .hint {
  color: var(--ink-3);
  font-size: 12.5px;
  margin-top: -2px;
}

.input,
.select,
.textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  height: 44px;
  padding: 0 14px;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
  width: 100%;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint-2);
  outline: none;
}

.textarea {
  height: auto;
  min-height: 88px;
  padding: 12px 14px;
  resize: vertical;
}

.input.mono {
  letter-spacing: 0.08em;
}

.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) center,
    calc(100% - 15px) center;
  background-repeat: no-repeat;
  background-size:
    5px 5px,
    5px 5px;
}

.field-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background: var(--navy);
  bottom: 0;
  color: var(--navy-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  left: 0;
  position: fixed;
  top: 0;
  transition: transform 0.25s var(--ease);
  width: var(--sidebar-w);
  z-index: 40;
}

body.admin-bar .sidebar {
  top: 32px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 24px 22px 24px;
}

a.brand:hover,
a.brand:focus {
  color: #fff !important;
}

.brand-mark {
  flex-shrink: 0;
  height: 34px;
  width: 34px;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
  height: auto;
  max-height: 65px;
  max-width: 150px;
  object-fit: contain;
  width: 130px;
}

.login-hero .brand-logo {
  max-width: 170px;
  width: 150px;
}

.brand-word {
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-word span {
  color: var(--navy-text-dim);
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  margin-top: 1px;
}

.side-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
}

.side-link {
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--navy-text) !important;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  padding: 11px 12px;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.side-link svg {
  flex-shrink: 0;
  height: 18px;
  opacity: 0.85;
  width: 18px;
}

.side-link:hover,
.side-link.active {
  background: var(--navy-2);
  color: #fff !important;
}

.side-link.active svg {
  color: var(--primary);
  opacity: 1;
}

.side-foot {
  border-top: 1px solid var(--navy-line);
  padding: 16px 22px 22px;
}

.side-account {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}

.side-account > div {
  min-width: 0;
}

.avatar {
  align-items: center;
  background: var(--primary-tint);
  border-radius: 50%;
  color: var(--primary-darker);
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.side-account-name {
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-account-email {
  color: var(--navy-text-dim);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-logout {
  align-items: center;
  color: var(--navy-text-dim) !important;
  display: flex;
  font-size: 13.5px;
  gap: 10px;
}

.side-logout:hover {
  color: #fff !important;
}

.side-logout svg {
  height: 16px;
  width: 16px;
}

.menu-toggle {
  align-items: center;
  background: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  display: none;
  height: 40px;
  justify-content: center;
  left: 16px;
  position: fixed;
  top: 16px;
  width: 40px;
  z-index: 50;
}

body.admin-bar .menu-toggle {
  top: 48px;
}
.menu-toggle svg {
  height: 19px;
  width: 19px;
}

.scrim {
  background: rgba(15, 16, 20, 0.5);
  display: none;
  inset: 0;
  position: fixed;
  z-index: 39;
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-left: var(--sidebar-w);
  min-width: 0;
}

.main-inner {
  margin: 0 auto;
  max-width: 1080px;
  padding: 40px 40px 80px;
  width: 100%;
}

.main-inner-narrow {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.page-head {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.page-head h1 {
  font-size: 27px;
}

.page-head .lede {
  color: var(--ink-2);
  font-size: 14.5px;
  margin-top: 6px;
  max-width: 46ch;
}

.eyebrow-link {
  align-items: center;
  color: var(--ink-2) !important;
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 500;
  gap: 6px;
  margin-bottom: 14px;
}

.eyebrow-link svg {
  height: 15px;
  width: 15px;
}

.eyebrow-link:hover {
  color: var(--ink) !important;
}

.vehicle-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.vehicle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.vehicle-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.vc-top {
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.vc-id {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.vc-icon {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-shrink: 0;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.vc-icon svg {
  color: var(--ink-2);
  height: 24px;
  width: 24px;
}

.vc-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.vc-trim {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 2px;
}

.vc-vin {
  color: var(--ink-3);
  font-size: 11.5px;
  margin-top: 6px;
  word-break: break-word;
}

.score-ring {
  flex-shrink: 0;
  height: 52px;
  position: relative;
  width: 52px;
}

.score-ring svg {
  height: 100%;
  transform: rotate(-90deg);
  width: 100%;
}

.score-ring .track {
  fill: none;
  stroke: var(--border);
  stroke-width: 4;
}

.score-ring .val {
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-width: 4;
}

.score-ring .num {
  align-items: center;
  display: flex;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  inset: 0;
  justify-content: center;
  position: absolute;
}

.vc-meta {
  border-top: 1px solid var(--border);
  display: flex;
  gap: 18px;
  padding-top: 14px;
}

.vc-meta div {
  flex: 1;
}
.vc-meta .label {
  color: var(--ink-3);
  font-size: 11.5px;
  margin-bottom: 3px;
}
.vc-meta .value {
  font-size: 13.5px;
  font-weight: 600;
}

.status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  padding: 4px 10px;
  width: fit-content;
}

.status-pill.ok {
  background: var(--success-tint);
  color: var(--success);
}
.status-pill.soon {
  background: var(--warning-tint);
  color: var(--warning);
}
.status-pill.due {
  background: var(--danger-tint);
  color: var(--danger);
}
.status-pill .dot {
  background: currentColor;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}
.vc-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 2px;
}

.add-tile {
  align-items: center;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-2) !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-height: 210px;
  text-align: center;
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.add-tile:hover {
  background: var(--primary-tint-2);
  border-color: var(--primary);
  color: var(--primary-dark) !important;
}

.add-tile .plus {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.add-tile:hover .plus {
  background: #fff;
  border-color: var(--primary);
}

.add-tile .plus svg {
  height: 18px;
  width: 18px;
}
.add-tile strong {
  font-size: 14px;
  font-weight: 600;
}
.add-tile span {
  color: var(--ink-3);
  font-size: 12.5px;
}

.login-shell {
  display: grid;
  grid-template-columns: 1fr 460px;
  min-height: 100vh;
}

.login-hero {
  background:
    linear-gradient(
      90deg,
      rgba(15, 18, 27, 0.96) 0%,
      rgba(15, 18, 27, 0.82) 46%,
      rgba(15, 18, 27, 0.42) 100%
    ),
    url("../images/auth-vehicle-bg.webp") center / cover no-repeat,
    var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 56px;
  position: relative;
}

.login-hero::before {
  background:
    radial-gradient(
      circle at 18% 42%,
      rgba(250, 104, 17, 0.18),
      transparent 32%
    ),
    linear-gradient(0deg, rgba(15, 18, 27, 0.72), transparent 42%);
  bottom: 0;
  content: "";
  left: 0;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
}

.login-hero-top .brand {
  padding: 0;
}
.login-hero-top,
.login-hero-copy,
.hero-foot {
  position: relative;
  z-index: 1;
}

.login-hero-copy {
  margin: auto 0;
  max-width: 455px;
  padding-bottom: 120px;
}
.login-hero-copy h1 {
  color: #fff;
  font-size: 34px;
}
.login-hero-copy p {
  color: var(--navy-text);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 14px;
}
.gauge-wrap {
  bottom: -40px;
  opacity: 0.35;
  position: absolute;
  right: -60px;
  width: 420px;
  z-index: 0;
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}

.hero-point {
  align-items: flex-start;
  color: var(--navy-text);
  display: flex;
  font-size: 13.5px;
  gap: 12px;
}

.hero-point svg {
  color: var(--primary);
  flex-shrink: 0;
  height: 17px;
  margin-top: 1px;
  width: 17px;
}

.hero-foot {
  color: var(--navy-text-dim);
  font-size: 12.5px;
}

.login-panel {
  align-items: center;
  background: var(--surface);
  display: flex;
  justify-content: center;
  padding: 40px;
}

.login-form {
  max-width: 340px;
  width: 100%;
}

.login-form h2 {
  font-size: 23px;
  margin-bottom: 6px;
}

.login-form .sub {
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 28px;
}

.login-foot {
  color: var(--ink-2);
  font-size: 13.5px;
  margin-top: 20px;
  text-align: center;
}

.login-foot a {
  color: var(--primary-dark) !important;
  font-weight: 600;
}

.login-divider {
  align-items: center;
  color: var(--ink-3);
  display: flex;
  font-size: 12.5px;
  gap: 12px;
  margin: 22px 0;
}

.login-divider::before,
.login-divider::after {
  background: var(--border);
  content: "";
  flex: 1;
  height: 1px;
}

.check-row {
  align-items: center;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin: -6px 0 20px;
}

.check-row label {
  align-items: center;
  color: var(--ink-2);
  display: flex;
  gap: 8px;
}

.check-row a {
  color: var(--ink-2) !important;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
}

.demo-note,
.mac-auth-error {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-3);
  font-size: 12px;
  margin-bottom: 18px;
  margin-top: 0;
  padding: 10px 12px;
}

.mac-auth-error {
  background: var(--danger-tint);
  border-color: #f2c4c4;
  color: var(--danger);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.section {
  margin-bottom: 30px;
}

.section-head {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 19px;
}
.section-head .step {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}
.section-note {
  color: var(--ink-3);
  font-size: 13px;
  margin: -8px 0 16px;
}

.chip-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
}

.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 0;
  overflow: hidden;
  padding: 12px 14px;
}

.chip .k {
  color: var(--ink-3);
  font-size: 11.5px;
  margin-bottom: 4px;
}
.chip .v {
  font-size: 14px;
  font-weight: 600;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.chip .v.unverified {
  color: var(--ink-3);
  font-size: 12.5px;
  font-style: italic;
  font-weight: 500;
}

.chip-vin .v {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.stat-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
}

.stat-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stat-tile .k {
  color: var(--ink-2);
  font-size: 12.5px;
  margin-bottom: 8px;
}

.tier-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  padding: 5px 12px;
}

.tier-pill.tier-excellent,
.tier-pill.tier-low {
  background: var(--success-tint);
  color: var(--success);
}
.tier-pill.tier-good,
.tier-pill.tier-moderate {
  background: var(--primary-tint-2);
  color: var(--primary-dark);
}
.tier-pill.tier-average,
.tier-pill.tier-elevated {
  background: var(--warning-tint);
  color: var(--warning);
}
.tier-pill.tier-high,
.tier-pill.tier-below {
  background: var(--danger-tint);
  color: var(--danger);
}

.two-col {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

.list-block h4 {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.dot-list li {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 9px;
  padding-left: 18px;
  position: relative;
}

.dot-list li::before {
  background: var(--border-strong);
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 7px;
  width: 5px;
}

.dot-list.watch li::before {
  background: var(--warning);
}
.dot-list.like li::before {
  background: var(--success);
}

.mile-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mile-accordion details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mile-accordion summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  justify-content: space-between;
  list-style: none;
  padding: 15px 18px;
}

.mile-accordion summary::-webkit-details-marker {
  display: none;
}
.mile-accordion summary .chev {
  color: var(--ink-3);
  flex-shrink: 0;
  height: 16px;
  transition: transform 0.2s var(--ease);
  width: 16px;
}
.mile-accordion details[open] summary .chev {
  transform: rotate(180deg);
}
.mile-accordion summary .left {
  align-items: baseline;
  display: flex;
}
.mile-body {
  padding: 0 18px 18px;
}
.mile-body ul {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.mile-body li {
  color: var(--ink-2);
  font-size: 13.5px;
  padding-left: 16px;
  position: relative;
}
.mile-body li::before {
  background: var(--primary);
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 7px;
  width: 5px;
}

.action-cols {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.action-col {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.action-col.now {
  background: #fff6f2;
  border-color: #f7cfb3;
}
.action-col.soon {
  background: #fffaf0;
  border-color: #f2debd;
}
.action-col.later {
  background: var(--surface-2);
}
.action-col .head {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.action-col .head .sw {
  border-radius: 50%;
  height: 8px;
  width: 8px;
}
.action-col.now .sw {
  background: var(--primary);
}
.action-col.soon .sw {
  background: var(--warning);
}
.action-col.later .sw {
  background: var(--ink-3);
}
.action-col .head span {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
}
.action-col ul li {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 9px;
}

.budget-table {
  border-collapse: collapse;
  margin-bottom: 18px;
  width: 100%;
}

.budget-table th {
  border-bottom: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  padding: 0 12px 10px;
  text-align: left;
}

.budget-table td {
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  padding: 12px;
  vertical-align: middle;
}

.budget-table tr:last-child td {
  border-bottom: none;
}
.budget-table .bar-cell {
  width: 30%;
}

.bar-track {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.bar-fill {
  background: var(--primary);
  border-radius: 999px;
  height: 100%;
}

.pill-priority {
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
}

.pill-priority.high {
  background: var(--danger-tint);
  color: var(--danger);
}
.pill-priority.med {
  background: var(--warning-tint);
  color: var(--warning);
}
.pill-priority.low {
  background: var(--neutral-tint);
  color: var(--ink-2);
}

.budget-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.budget-summary .tile {
  background: var(--navy);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 18px 20px;
}

.budget-summary .tile .k {
  color: var(--navy-text-dim);
  font-size: 12px;
  margin-bottom: 6px;
}
.budget-summary .tile .v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.budget-summary .tile .v small {
  color: var(--navy-text-dim);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
}

.priority-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.priority-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  padding: 14px 16px;
}

.priority-num {
  color: var(--primary);
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  width: 22px;
}

.priority-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.priority-item p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.recall-banner {
  align-items: flex-start;
  border: 1px solid;
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  padding: 16px 18px;
}

.recall-banner.clear {
  background: var(--success-tint);
  border-color: #b9e2cd;
}
.recall-banner.check {
  background: var(--warning-tint);
  border-color: #f0dca4;
}
.recall-banner svg {
  flex-shrink: 0;
  height: 20px;
  margin-top: 1px;
  width: 20px;
}
.recall-banner.clear svg {
  color: var(--success);
}
.recall-banner.check svg {
  color: var(--warning);
}
.recall-banner strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}
.recall-banner p {
  color: var(--ink-2);
  font-size: 13.5px;
}

.score-panel {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: 220px 1fr;
}

.gauge-box {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.gauge-box svg {
  width: 210px;
}
.gauge-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  margin-top: -54px;
}
.gauge-num span {
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
}
.gauge-label {
  color: var(--ink-3);
  font-size: 12.5px;
  margin-top: 2px;
}
.score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb-row {
  align-items: center;
  display: grid;
  font-size: 13px;
  gap: 12px;
  grid-template-columns: 150px 1fr 50px;
}
.sb-row .lbl {
  color: var(--ink-2);
}
.sb-row .val {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
}
.score-explain {
  border-top: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 18px;
  padding-top: 16px;
}

.certificate {
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 120px);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}

.certificate::before {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) - 6px);
  content: "";
  inset: 8px;
  pointer-events: none;
  position: absolute;
}

.cert-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 18px;
}

.cert-head .tag {
  color: var(--primary-dark);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.cert-head h3 {
  font-size: 21px;
}
.cert-head .vin {
  color: var(--ink-3);
  font-size: 12.5px;
  margin-top: 4px;
}
.cert-head .prepared {
  color: var(--ink-3);
  font-size: 12.5px;
  text-align: right;
}

.cert-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}

.cert-cell .k {
  color: var(--ink-3);
  font-size: 11.5px;
  margin-bottom: 5px;
}
.cert-cell .v {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.cert-cell .v.accent {
  color: var(--primary-dark);
}

.cert-reco {
  background: var(--primary-tint-2);
  border: 1px solid var(--primary-tint);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  padding: 16px 18px;
}

.cert-reco .k {
  color: var(--primary-dark);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cert-reco p {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
}
.value-msg {
  color: var(--ink-2);
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
  margin: 34px auto 10px;
  max-width: 60ch;
  text-align: center;
}
.value-msg strong {
  color: var(--ink);
  font-style: normal;
}
.brand-foot {
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.03em;
  margin-top: 10px;
  text-align: center;
}

.generating-overlay {
  align-items: center;
  backdrop-filter: blur(2px);
  background: rgba(19, 21, 28, 0.86);
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 100;
}

.generating-overlay.show {
  display: flex;
}
.generating-card {
  max-width: 420px;
  padding: 0 24px;
  width: 100%;
}
.generating-card .gtitle {
  color: #fff;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
  text-align: center;
}
.generating-card .gsub {
  color: var(--navy-text-dim);
  font-size: 13px;
  margin-bottom: 26px;
  text-align: center;
}
.gsteps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gstep {
  align-items: center;
  display: flex;
  gap: 12px;
  opacity: 0.35;
  transition: opacity 0.2s var(--ease);
}
.gstep.active,
.gstep.done {
  opacity: 1;
}
.gstep .mark {
  align-items: center;
  border: 1.5px solid var(--navy-text-dim);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 22px;
  justify-content: center;
  width: 22px;
}
.gstep.active .mark {
  border-color: var(--primary);
}
.gstep.active .mark .spin {
  animation: spin 0.7s linear infinite;
  border: 2px solid var(--primary);
  border-radius: 50%;
  border-top-color: transparent;
  height: 10px;
  width: 10px;
}
.gstep.done .mark {
  background: var(--primary);
  border-color: var(--primary);
}
.gstep.done .mark svg {
  color: #fff;
  height: 12px;
  width: 12px;
}
.gstep.error {
  opacity: 1;
}
.gstep.error .mark {
  border-color: var(--danger);
}
.gstep .txt {
  color: #fff;
  font-size: 13.5px;
}
.generating-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mileage-modal-overlay {
  align-items: center;
  background: rgba(19, 21, 28, 0.62);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 120;
}

.mileage-modal-overlay.show {
  display: flex;
}

.mileage-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(19, 21, 28, 0.22);
  max-width: 430px;
  padding: 22px;
  width: min(100%, 430px);
}

.mileage-modal-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mileage-modal-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mileage-modal-head p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}

.modal-icon-btn {
  align-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink-2);
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.modal-icon-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.modal-icon-btn svg {
  height: 17px;
  width: 17px;
}

.mileage-modal-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.mileage-modal-status {
  background: var(--navy);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  padding: 16px;
}

.mileage-modal-status .gstep.done,
.mileage-modal-status .gstep.active {
  opacity: 1;
}

.mileage-modal-status .gstep .txt {
  font-size: 13px;
}

.plan-wait {
  padding-left: 26px;
  padding-right: 26px;
}
.plan-failed {
  border-color: #f2c4c4;
}
.plan-failed > svg {
  color: var(--danger);
}
.plan-wait-steps {
  background: var(--navy);
  border-radius: var(--radius-sm);
  margin: 22px auto 0;
  max-width: 360px;
  padding: 18px;
  text-align: left;
}
.plan-wait-steps svg {
  margin-bottom: 0;
}

.empty-state {
  color: var(--ink-3);
  padding: 70px 20px;
  text-align: center;
}

.empty-state svg {
  color: var(--border-strong);
  height: 44px;
  margin-bottom: 14px;
  width: 44px;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13.5px;
  margin: 0 auto 18px;
  max-width: 34ch;
}

.mac-notice {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 22px;
  padding: 12px 14px;
}

.mac-notice--success {
  background: var(--success-tint);
  border-color: #b9e2cd;
  color: var(--success);
}

.mac-notice--error {
  background: var(--danger-tint);
  border-color: #f2c4c4;
  color: var(--danger);
}

.vehicle-title-row {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 26px;
}

.vehicle-title-row h1 {
  font-size: 26px;
}

.vehicle-title-row .meta {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 6px;
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-list article {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 14px;
  grid-template-columns: 120px 1fr 100px 90px;
  padding: 14px 0;
}

.service-list article:last-child {
  border-bottom: none;
}

.service-list time,
.service-list span,
.service-list b {
  color: var(--ink-3);
  font-size: 12.5px;
}

.service-list strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.service-list p {
  color: var(--ink-2);
  font-size: 13.5px;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .menu-toggle {
    display: flex;
  }
  .scrim.open {
    display: block;
  }
  .main {
    margin-left: 0;
  }
  .main-inner {
    padding: 84px 20px 60px;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-hero {
    min-height: 380px;
    padding: 28px;
  }
  .login-hero::before {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    width: auto;
  }
  .login-hero-copy {
    margin: 28px 0 0;
    max-width: 560px;
    padding-bottom: 88px;
  }
  .login-hero-copy h1 {
    font-size: 30px;
  }
  .login-panel {
    min-height: auto;
    padding: 36px 20px 54px;
  }
  .login-form {
    max-width: 440px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .sidebar {
    top: 46px;
  }
  body.admin-bar .menu-toggle {
    top: 62px;
  }
}

@media (max-width: 780px) {
  .action-cols,
  .two-col,
  .score-panel,
  .field-row,
  .budget-summary {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-list article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-hero {
    min-height: 430px;
    padding: 24px 20px;
  }
  .login-hero-copy {
    padding-bottom: 120px;
  }
  .login-hero-copy h1 {
    font-size: 27px;
  }
  .login-hero-copy p {
    font-size: 14px;
  }
  .hero-points {
    gap: 11px;
    margin-top: 22px;
  }
  .hero-point {
    font-size: 13px;
  }
  .hero-foot {
    font-size: 11.5px;
    line-height: 1.5;
  }
  .gauge-wrap {
    width: 340px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .page-head .btn,
  .vc-actions .btn {
    width: 100%;
  }

  .check-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .mileage-modal {
    padding: 18px;
  }

  .mileage-modal-actions {
    grid-template-columns: 1fr;
  }

  .budget-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media print {
  .sidebar,
  .menu-toggle,
  .page-head .btn,
  .no-print {
    display: none !important;
  }

  .main {
    margin-left: 0;
  }

  body.mac-portal-page {
    background: #fff;
  }

  .panel,
  .certificate {
    border-color: #ccc;
  }
}
