﻿:root {
  color-scheme: light;
  --ink: #121826;
  --muted: #64748b;
  --line: #d7e2ee;
  --panel: #ffffff;
  --page: #f4f8fc;
  --soft: #edf5fb;
  --accent: #005da8;
  --accent-dark: #003b70;
  --accent-soft: #e4f1ff;
  --navy: #071a26;
  --blue: #0074d9;
  --blue-soft: #e4f1ff;
  --gold: #ffad19;
  --gold-soft: #fff3d8;
  --amber: #f59e0b;
  --amber-soft: #fff3d8;
  --red: #b6403a;
  --red-soft: #ffefed;
  --green: #227350;
  --green-soft: #e7f6ec;
  --violet: #6852c4;
  --violet-soft: #eeeafd;
  --shadow: 0 18px 44px rgba(4, 27, 46, 0.14);
  --soft-shadow: 0 9px 24px rgba(4, 27, 46, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(0, 93, 168, 0.16), transparent 30%),
    radial-gradient(circle at 84% 6%, rgba(255, 173, 25, 0.2), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--page) 44%, #eaf3fb 100%);
  color: var(--ink);
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 116, 217, 0.26);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(248, 251, 255, 0.88);
  border-bottom: 1px solid rgba(215, 226, 238, 0.86);
  box-shadow: 0 10px 30px rgba(4, 27, 46, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 170px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 72px;
  max-width: 210px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(4, 27, 46, 0.18);
}


.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

nav a:hover {
  background: rgba(228, 241, 255, 0.78);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

nav a.is-active {
  background: linear-gradient(135deg, var(--accent-soft), #fff7e8);
  color: var(--accent-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-link {
  border: 1px solid rgba(0, 93, 168, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-dark);
}

.signup-link {
  background: linear-gradient(135deg, var(--gold), #ffc65c);
  color: #24180a;
  box-shadow: 0 12px 24px rgba(255, 173, 25, 0.24);
}

.auth-actions a:hover {
  transform: translateY(-1px);
}

.account-menu {
  position: relative;
}

.header-message-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 93, 168, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.header-message-link:hover {
  background: var(--accent-soft);
}

.account-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  box-shadow: 0 12px 24px rgba(0, 93, 168, 0.2);
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(215, 226, 238, 0.9);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.account-menu-panel a,
.account-menu-panel button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
  background: var(--accent-soft);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.home-page {
  display: block;
}

.home-page > * + * {
  margin-top: clamp(96px, 10vw, 150px);
}

#homePage > .how-it-works-section,
#homePage > .partner-strip,
#homePage > .garage-map-section,
#homePage > .faq-section {
  margin-top: 150px !important;
}

.hero {
  min-height: calc(100vh - 118px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 34px;
  align-items: center;
  position: relative;
}

.hero-copy {
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--navy);
}

h2 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.hero p,
.page-heading p,
.confirmation p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-media {
  position: relative;
  align-self: center;
}

.hero-media::before {
  position: absolute;
  inset: 22px -14px -18px 24px;
  content: "";
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 93, 168, 0.26), rgba(255, 173, 25, 0.28));
  z-index: -1;
}

.hero img {
  width: 100%;
  height: auto;
  max-height: min(76vh, 720px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #061727;
}

.hero-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  min-width: 245px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 38px rgba(18, 31, 43, 0.18);
  backdrop-filter: blur(16px);
}

.hero-media .hero-card {
  display: none;
}

.hero-card span,
.hero-card small {
  color: var(--muted);
}

.hero-card strong {
  color: var(--accent-dark);
  font-size: 1.42rem;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 10px;
  padding: 13px 18px;
  min-height: 48px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  box-shadow: 0 14px 26px rgba(0, 93, 168, 0.25);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--accent-dark), #005bbf);
  transform: translateY(-1px);
  box-shadow: 0 17px 30px rgba(0, 59, 112, 0.28);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border: 1px solid var(--line);
}

.secondary-button:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.trust-title {
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(217, 225, 230, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.9rem;
}

.partner-strip {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 8px 0;
  overflow: hidden;
}

.partner-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.partner-heading h2 {
  max-width: 620px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.partner-carousel {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
}

.partner-carousel::before,
.partner-carousel::after {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 80px;
  height: 100%;
  content: "";
  pointer-events: none;
}

.partner-carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), transparent);
}

.partner-carousel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.96), transparent);
}

.partner-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: partner-scroll 28s linear infinite;
}

.partner-carousel:hover .partner-track {
  animation-play-state: paused;
}

.partner-logo {
  display: grid;
  place-items: center;
  min-width: 190px;
  min-height: 78px;
  padding: 14px 18px;
  border: 1px solid rgba(215, 226, 238, 0.94);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #eef6ff);
  box-shadow: 0 8px 18px rgba(4, 27, 46, 0.08);
}

.partner-logo img {
  display: block;
  max-width: 150px;
  max-height: 48px;
  object-fit: contain;
}

.how-it-works-section {
  display: grid;
  gap: 0;
}

.garage-map-section {
  display: grid;
  gap: 18px;
  margin: 0;
}

.garage-map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.garage-map-heading h2 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}

.garage-map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(420px, 1.26fr);
  gap: 18px;
  align-items: stretch;
}

.garage-list {
  display: grid;
  gap: 12px;
}

.garage-card {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(215, 226, 238, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.garage-card::after {
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 173, 25, 0.14);
}

.garage-card h3 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.18rem;
}

.garage-card p {
  margin-bottom: 12px;
  color: var(--muted);
}

.garage-card strong {
  color: var(--accent-dark);
}

.garage-distance {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.google-map-card {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(215, 226, 238, 0.9);
  border-radius: 18px;
  background: #dfe9f2;
  box-shadow: var(--soft-shadow);
}

.google-map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.faq-section {
  display: grid;
  gap: 20px;
  margin: 0;
}

.faq-heading {
  max-width: 760px;
}

.faq-heading h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}

.faq-heading p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid rgba(215, 226, 238, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  content: "+";
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.faq-list details[open] summary::after {
  content: "-";
  background: var(--gold-soft);
  color: #875708;
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.65;
}

@keyframes partner-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 7px));
  }
}

.value-grid,
.result-grid,
.upload-layout {
  display: grid;
  gap: 18px;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.value-grid article,
.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 225, 230, 0.86);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(10px);
}

.value-grid article {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.value-grid article::after {
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 126px;
  height: 126px;
  content: "";
  border-radius: 999px;
  background: rgba(0, 93, 168, 0.11);
}

.value-grid article:nth-child(2)::after {
  background: rgba(50, 103, 177, 0.12);
}

.value-grid article:nth-child(3)::after {
  background: rgba(255, 173, 25, 0.17);
}

.value-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
  margin-bottom: 18px;
}

.value-grid article:nth-child(2) span {
  background: var(--blue-soft);
  color: var(--blue);
}

.value-grid article:nth-child(3) span {
  background: var(--gold-soft);
  color: #9a5a0d;
}

.value-grid p,
.panel p,
.checklist li,
.repair-card p,
.quote-form label {
  color: var(--muted);
  line-height: 1.5;
}

.page-heading {
  margin: 26px 0 24px;
  max-width: 860px;
}

.page-heading.compact h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.upload-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  align-items: start;
}

.panel {
  padding: 24px;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 245px;
  padding: 28px;
  border: 2px dashed rgba(0, 93, 168, 0.36);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(228, 241, 255, 0.9), rgba(255, 243, 216, 0.78)),
    #f9fbfb;
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.dropzone.is-dragging {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.01);
}

.dropzone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 14px 25px rgba(0, 93, 168, 0.24);
}

.import-status {
  margin: 18px 0;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--soft), #f8fbfb);
  border: 1px solid rgba(217, 225, 230, 0.8);
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

.checklist ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.mini-metric {
  display: grid;
  gap: 3px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--accent-dark));
  color: #fff;
}

.mini-metric strong {
  font-size: 2.1rem;
}

.mini-metric span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

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

.repairs-panel,
.next-panel {
  grid-column: 1 / -1;
}

.verdict-panel {
  border-top: 5px solid var(--gold);
}

.estimate-panel {
  border-top: 5px solid var(--accent);
}

.repairs-panel {
  border-top: 5px solid var(--blue);
}

.next-panel {
  display: grid;
  gap: 4px;
  background:
    linear-gradient(135deg, rgba(7, 26, 38, 0.96), rgba(0, 59, 112, 0.92)),
    var(--navy);
  color: #fff;
}

.next-panel .eyebrow,
.next-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.next-panel .primary-button {
  justify-self: start;
  background: linear-gradient(135deg, var(--gold), #ffc65c);
  color: #24180a;
  box-shadow: 0 14px 26px rgba(255, 173, 25, 0.3);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.panel-title span {
  color: var(--muted);
  font-weight: 800;
}

.meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e9ed;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 220ms ease;
}

.estimate-panel h2,
.verdict-panel h2 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.repair-list {
  display: grid;
  gap: 12px;
}

.repair-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f7fbfb);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.82rem;
}

.badge.major {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge.critical {
  background: var(--red-soft);
  color: var(--red);
}

.badge.minor {
  background: var(--green-soft);
  color: var(--green);
}

.repair-price {
  font-weight: 900;
  white-space: nowrap;
}

.empty-state {
  padding: 18px;
  border-radius: 12px;
  background: var(--soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quote-form {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.auth-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}

.auth-page-copy {
  padding: 20px 0;
}

.auth-page-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.register-form {
  display: grid;
  gap: 18px;
}

.full-field {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--red);
}

.dashboard-page {
  display: grid;
  gap: 26px;
  margin-top: 28px;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.dashboard-hero p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-main-action {
  flex: 0 0 auto;
  text-decoration: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(215, 226, 238, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.dashboard-card span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.dashboard-card h2 {
  margin: 0;
  color: var(--navy);
}

.dashboard-card p {
  color: var(--muted);
}

.dashboard-card a {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.dashboard-body {
  min-height: 100vh;
  background: #ffffff;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  padding: 0 28px;
  border-bottom: 1px solid #e5e8ed;
  background: #fff;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.dashboard-brand img {
  display: block;
  width: 248px;
  height: 86px;
  object-fit: contain;
}

.dashboard-account {
  position: relative;
}

.dashboard-account summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 6px;
  color: #26313f;
  cursor: pointer;
  list-style: none;
}

.dashboard-account summary::-webkit-details-marker {
  display: none;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #252b33;
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 900;
}

.account-avatar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-chevron {
  font-size: 1.1rem;
  line-height: 1;
}

.dashboard-account-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 0;
  width: min(250px, calc(100vw - 34px));
  padding: 14px 16px;
  border: 1px solid #e1e5ea;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.dashboard-account-panel a,
.dashboard-account-panel button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #333a45;
  font: inherit;
  font-size: 0.98rem;
  text-align: left;
  text-decoration: none;
}

.dashboard-account-panel svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.dashboard-account-panel a:nth-child(2) {
  border-bottom: 1px solid #dfe4ea;
  padding-bottom: 14px;
}

.dashboard-account-panel button {
  padding-top: 14px;
}

.dashboard-account-panel a:hover,
.dashboard-account-panel button:hover {
  color: var(--accent);
}

main.dashboard-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  width: 100%;
  min-height: calc(100vh - 104px);
  margin: 0;
  padding: 0;
}

.dashboard-sidebar {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  height: calc(100vh - 104px);
  min-height: calc(100vh - 104px);
  overflow-y: auto;
  padding: 24px 8px 24px 4px;
  border-right: 1px solid #e5e8ed;
  background: #fff;
}

.dashboard-nav {
  display: grid;
  gap: 10px;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 8px 0 7px;
  border-radius: 3px;
  color: #101722;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
}

.dashboard-nav a:hover {
  background: #eef6ff;
  color: var(--accent-dark);
  transform: none;
}

.dashboard-nav a.is-current {
  background: var(--accent);
  color: #fff;
}

.dashboard-nav span {
  display: grid;
  place-items: center;
  width: 22px;
  color: inherit;
  font-size: 1.16rem;
  font-weight: 500;
}

.dashboard-nav svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.dashboard-sidebar-gift {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 8px 0 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.dashboard-sidebar-gift span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 8px;
  font-weight: 900;
}

.dashboard-content {
  min-width: 0;
  padding: 72px 38px 72px 36px;
  background:
    linear-gradient(180deg, rgba(244, 248, 252, 0.68), rgba(255, 255, 255, 0) 360px),
    #fff;
}

.dashboard-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.dashboard-welcome .eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
}

.dashboard-welcome h1 {
  max-width: none;
  margin-bottom: 6px;
  color: #222832;
  font-size: clamp(2.35rem, 4.2vw, 3.1rem);
  font-weight: 650;
  line-height: 1.08;
}

.dashboard-welcome p:last-child {
  max-width: 820px;
  color: #667085;
  font-size: 1.2rem;
  line-height: 1.45;
}

.dashboard-primary-action,
.dashboard-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-primary-action {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  box-shadow: 0 14px 26px rgba(0, 93, 168, 0.22);
}

.dashboard-secondary-action {
  border: 1px solid rgba(0, 93, 168, 0.18);
  background: #fff;
  color: var(--accent-dark);
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 72px;
}

.dashboard-summary article {
  position: relative;
  min-height: 142px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #e2e9f1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(7, 26, 38, 0.07);
}

.dashboard-summary article::after {
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 130px;
  height: 130px;
  content: "";
  border-radius: 999px;
  background: rgba(0, 116, 217, 0.1);
}

.dashboard-summary article:nth-child(2)::after {
  background: rgba(255, 173, 25, 0.18);
}

.dashboard-summary article:nth-child(3)::after {
  background: rgba(34, 115, 80, 0.12);
}

.dashboard-summary article:nth-child(4)::after {
  background: rgba(0, 93, 168, 0.15);
}

.dashboard-summary span {
  display: block;
  margin-bottom: 10px;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-summary strong {
  display: block;
  color: #071a26;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-summary p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #667085;
  line-height: 1.35;
}

.dashboard-essentials {
  display: grid;
  gap: 34px;
}

.dashboard-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-section-heading h2 {
  margin: 0;
  color: #101722;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 650;
  line-height: 1.15;
}

.dashboard-section-heading a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.dashboard-feature-card {
  display: grid;
  grid-template-rows: 224px 1fr;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #e5e8ed;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(7, 26, 38, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dashboard-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(7, 26, 38, 0.12);
}

.dashboard-card-visual {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: 30px 36px;
  overflow: hidden;
}

.dashboard-card-visual::after {
  position: absolute;
  right: -38px;
  bottom: -64px;
  width: 190px;
  height: 190px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.dashboard-card-visual span,
.dashboard-card-visual strong {
  position: relative;
  z-index: 1;
}

.dashboard-card-visual span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.dashboard-card-visual strong {
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.1;
}

.visual-upload {
  background: linear-gradient(135deg, #003b70, #0074d9);
}

.visual-result {
  background: linear-gradient(135deg, #071a26, #005da8);
}

.visual-garage {
  background: linear-gradient(135deg, #ffad19, #f59e0b);
}

.visual-garage span,
.visual-garage strong {
  color: #24180a;
}

.dashboard-card-copy {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  padding: 36px 32px 30px;
  text-align: center;
}

.dashboard-card-copy h3 {
  margin: 0;
  color: #071a26;
  font-size: 1.45rem;
  line-height: 1.2;
}

.dashboard-card-copy p {
  margin: 0;
  color: #667085;
  font-size: 1rem;
  line-height: 1.5;
}

.dashboard-card-copy a {
  margin-top: 6px;
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  margin-top: 48px;
}

.dashboard-progress-card,
.dashboard-activity-card {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 28px;
  border: 1px solid #e5e8ed;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(7, 26, 38, 0.08);
}

.dashboard-section-heading.compact h2 {
  font-size: 1.45rem;
}

.dashboard-section-heading.compact span,
.dashboard-section-heading.compact a {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  font-size: 0.96rem;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef6;
}

.dashboard-progress-bar span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.dashboard-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.dashboard-steps li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--accent-dark);
  font-weight: 900;
}

.dashboard-steps li.is-next > span {
  background: var(--accent);
  color: #fff;
}

.dashboard-steps strong {
  display: block;
  margin-bottom: 3px;
  color: #101722;
}

.dashboard-steps p,
.message-empty-state p {
  color: #667085;
  line-height: 1.45;
}

.message-empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 200px;
  padding: 24px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(228, 241, 255, 0.94), rgba(255, 243, 216, 0.72)),
    #f7fbff;
}

.message-empty-state span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 1.4rem;
  box-shadow: 0 10px 22px rgba(7, 26, 38, 0.08);
}

.message-empty-state strong {
  color: #101722;
  font-size: 1.16rem;
}

.dashboard-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.dashboard-page-heading h1 {
  max-width: none;
  margin-bottom: 8px;
  color: #222832;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 650;
  line-height: 1.08;
}

.dashboard-page-heading p:last-child {
  max-width: 720px;
  margin: 0;
  color: #667085;
  font-size: 1.08rem;
  line-height: 1.5;
}

.analysis-table-card {
  overflow: hidden;
  border: 1px solid #e5e8ed;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(7, 26, 38, 0.08);
}

.analysis-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.analysis-insights article {
  position: relative;
  min-height: 130px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #e5e8ed;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f7fbff);
  box-shadow: 0 14px 28px rgba(7, 26, 38, 0.06);
}

.analysis-insights article::after {
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 126px;
  height: 126px;
  content: "";
  border-radius: 999px;
  background: rgba(0, 116, 217, 0.1);
}

.analysis-insights article:nth-child(2)::after {
  background: rgba(255, 173, 25, 0.16);
}

.analysis-insights article:nth-child(3)::after {
  background: rgba(34, 115, 80, 0.12);
}

.analysis-insights span {
  display: block;
  margin-bottom: 10px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analysis-insights strong {
  display: block;
  color: #071a26;
  font-size: 2rem;
  line-height: 1;
}

.analysis-insights p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #667085;
}

.analysis-table-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border-bottom: 1px solid #e5e8ed;
}

.analysis-table-header h2 {
  margin: 0;
  color: #101722;
  font-size: 1.35rem;
}

.analysis-table-header p {
  margin: 6px 0 0;
  color: #667085;
}

.analysis-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.analysis-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analysis-toolbar input,
.analysis-toolbar select {
  min-height: 42px;
  border-radius: 999px;
  background: #fff;
}

.analysis-table-wrap {
  overflow-x: auto;
}

.analysis-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.analysis-table th,
.analysis-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #edf1f5;
  color: #26313f;
  font-size: 0.8rem;
  text-align: left;
  vertical-align: middle;
}

.analysis-table th {
  background: #f7fafc;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analysis-table tbody tr:hover {
  background: #fbfdff;
}

.analysis-table tbody tr.analysis-markdown-row:hover {
  background: transparent;
}

.analysis-markdown-row td {
  padding: 0 10px 14px;
  background: #fbfdff;
}

.analysis-markdown-row details {
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

.analysis-markdown-row summary {
  cursor: pointer;
  color: var(--blue-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.analysis-markdown-row pre {
  overflow: auto;
  max-height: 260px;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #0b1826;
  color: #edf6ff;
  font-size: 0.76rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.analysis-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.analysis-detail-card {
  border: 1px solid #e5e8ed;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(8, 25, 42, 0.08);
  padding: 22px;
}

.analysis-detail-wide {
  grid-column: 1 / -1;
}

.analysis-detail-card h2 {
  margin: 0 0 16px;
  color: #101722;
  font-size: 1.05rem;
}

.analysis-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.analysis-detail-list div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.analysis-detail-list dt {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 800;
}

.analysis-detail-list dd {
  margin: 0;
  color: #101722;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.analysis-detail-pre {
  overflow: auto;
  max-height: 420px;
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: #0b1826;
  color: #edf6ff;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.analysis-detail-card summary {
  cursor: pointer;
  color: var(--blue-strong);
  font-weight: 900;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.secondary-action {
  background: #fff;
  color: var(--blue-strong);
  border: 1px solid rgba(0, 93, 168, 0.18);
  box-shadow: none;
}

.repair-report {
  display: grid;
  gap: 18px;
}

.repair-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.repair-report-summary article,
.repair-report-header,
.repair-report-item,
.repair-report-empty {
  border: 1px solid #e5e8ed;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(8, 25, 42, 0.08);
}

.repair-report-summary article {
  padding: 18px;
}

.repair-report-summary span {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repair-report-summary strong {
  display: block;
  color: #101722;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.repair-report-summary p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 0.84rem;
}

.repair-report-header {
  padding: 22px;
}

.repair-report-header h2 {
  margin: 0;
  color: #101722;
  font-size: 1.25rem;
}

.repair-report-header p {
  margin: 8px 0 0;
  color: #667085;
  line-height: 1.5;
}

.repair-report-list {
  display: grid;
  gap: 14px;
}

.repair-report-item {
  padding: 20px;
}

.repair-report-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1f5;
}

.repair-report-item-head h3 {
  margin: 8px 0 4px;
  color: #101722;
  font-size: 1.08rem;
}

.repair-report-item-head p {
  margin: 0;
  color: #667085;
  font-size: 0.82rem;
}

.repair-report-item-head strong {
  flex: 0 0 auto;
  color: var(--blue-strong);
  font-size: 1rem;
  white-space: nowrap;
}

.repair-level {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 119, 204, 0.1);
  color: var(--blue-strong);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repair-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 16px;
}

.defect-code-details {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(0, 93, 168, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 119, 204, 0.08), rgba(255, 170, 0, 0.08));
}

.defect-code-details h4 {
  margin: 0 0 12px;
  color: #101722;
  font-size: 0.98rem;
}

.defect-code-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}

.defect-code-details div {
  min-width: 0;
}

.defect-code-details dt {
  margin-bottom: 4px;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.defect-code-details dd {
  margin: 0;
  color: #26313f;
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.repair-report-grid div {
  min-height: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #f7fafc;
}

.repair-report-grid span {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repair-report-grid p,
.repair-quote-advice {
  margin: 0;
  color: #26313f;
  font-size: 0.86rem;
  line-height: 1.45;
}

.repair-quote-advice {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  background: rgba(255, 170, 0, 0.1);
}

.repair-report-empty {
  padding: 22px;
  color: #667085;
  line-height: 1.5;
}

.analysis-table td strong,
.analysis-table td span {
  display: block;
}

.analysis-table td > span {
  margin-top: 4px;
  color: #667085;
  font-size: 0.78rem;
}

.analysis-table a,
.analysis-table button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 93, 168, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.78rem;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.analysis-table a:hover,
.analysis-table button:hover {
  background: var(--accent);
  color: #fff;
}

.analysis-table button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.analysis-table td a + a,
.analysis-table td a + button,
.analysis-table td button + a,
.analysis-table td button + button {
  margin-top: 6px;
}

.analysis-table .garage-submit-action {
  border-color: rgba(255, 170, 0, 0.34);
  background: rgba(255, 170, 0, 0.14);
  color: #8a5a00;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.analysis-table .garage-submit-action:hover {
  background: var(--gold);
  color: #071a26;
}

.garage-portal-body {
  background:
    linear-gradient(180deg, rgba(244, 248, 252, 0.96), rgba(255, 255, 255, 1) 34%),
    #f6f8fb;
}

.garage-portal-body .dashboard-topbar {
  border-bottom-color: rgba(0, 52, 92, 0.16);
  background: linear-gradient(90deg, #ffffff 0%, #f8fbff 52%, #fff6df 100%);
}

.garage-portal-body .dashboard-sidebar {
  border-right-color: rgba(0, 52, 92, 0.12);
  background: linear-gradient(180deg, #071a26 0%, #0b2a42 100%);
}

.garage-portal-body .dashboard-nav a {
  color: rgba(255, 255, 255, 0.78);
}

.garage-portal-body .dashboard-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.garage-portal-body .dashboard-nav a.is-current {
  background: linear-gradient(135deg, #0074d9, #005da8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 93, 168, 0.24);
}

.garage-portal-body .dashboard-nav svg {
  stroke-width: 1.9;
}

.garage-shell .dashboard-content {
  gap: 26px;
}

.garage-page-heading {
  position: relative;
  overflow: hidden;
  align-items: center;
  min-height: 184px;
  padding: 30px;
  border: 1px solid rgba(0, 52, 92, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(7, 26, 38, 0.96), rgba(0, 52, 92, 0.92)),
    #071a26;
  box-shadow: 0 18px 38px rgba(7, 26, 38, 0.16);
}

.garage-page-heading::after {
  position: absolute;
  right: 28px;
  bottom: -34px;
  width: 220px;
  height: 120px;
  content: "";
  border: 1px solid rgba(255, 170, 0, 0.28);
  border-radius: 999px 999px 0 0;
  opacity: 0.65;
}

.garage-page-heading .eyebrow {
  color: #ffca66;
}

.garage-page-heading h1,
.garage-page-heading p {
  position: relative;
  z-index: 1;
}

.garage-page-heading h1 {
  color: #fff;
}

.garage-page-heading p:last-child {
  color: rgba(235, 244, 255, 0.78);
}

.garage-ops-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-width: 250px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.garage-ops-panel span,
.garage-ops-panel small {
  color: rgba(235, 244, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.garage-ops-panel strong {
  color: #ffbd2e;
  font-size: 1.35rem;
}

.garage-insights article {
  border-color: rgba(0, 52, 92, 0.12);
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.garage-insights article::after {
  background: rgba(0, 116, 217, 0.1);
}

.garage-insights article:nth-child(2)::after {
  background: rgba(255, 170, 0, 0.18);
}

.garage-insights article:nth-child(3)::after {
  background: rgba(7, 26, 38, 0.1);
}

.garage-section-kicker {
  margin: 0 0 5px;
  color: #005da8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.garage-shell .analysis-table-card {
  border-color: rgba(0, 52, 92, 0.12);
  box-shadow: 0 16px 34px rgba(7, 26, 38, 0.08);
}

.garage-shell .analysis-table-header {
  background: linear-gradient(90deg, #fff, #f8fbff);
}

.garage-analysis-table th {
  background: #eef5fb;
  color: #00345c;
}

.garage-analysis-table tbody tr:hover {
  background: #f7fbff;
}

.garage-pending-card {
  display: grid;
  gap: 12px;
  padding: 30px;
}

.garage-pending-card h2 {
  margin: 0;
  color: #071a26;
  font-size: 1.55rem;
}

.garage-pending-card p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

.garage-quote-sent {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(34, 115, 80, 0.12);
  color: #227350;
  font-weight: 800;
}

.garage-quote-row td {
  background: #f4f8fc;
}

.garage-quote-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(0, 52, 92, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f9fcff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.garage-quote-form label {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.garage-quote-form input,
.garage-quote-form textarea {
  min-height: 42px;
  border-radius: 12px;
  font-size: 0.9rem;
  text-transform: none;
}

.garage-quote-form textarea {
  resize: vertical;
}

.garage-quote-form .primary-button {
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.garage-report-detail,
.garage-quote-items,
.garage-quote-form .full-field {
  grid-column: 1 / -1;
}

.garage-report-detail {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(0, 52, 92, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0, 93, 168, 0.08), rgba(255, 170, 0, 0.1)),
    #fff;
}

.garage-report-detail h3 {
  margin: 0;
  color: #071a26;
  font-size: 1.05rem;
}

.garage-report-detail p {
  margin: 6px 0 0;
  color: #667085;
}

.garage-report-meta {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: #00345c;
  font-size: 0.82rem;
  font-weight: 800;
}

.garage-quote-items {
  display: grid;
  gap: 12px;
}

.garage-failure-quote {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(120px, 160px);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #dfe8f1;
  border-radius: 14px;
  background: #fff;
}

.garage-failure-quote h4 {
  margin: 0;
  color: #101722;
  font-size: 0.92rem;
}

.garage-failure-quote p,
.garage-failure-quote small {
  display: block;
  margin: 5px 0 0;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.45;
}

.garage-failure-index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #071a26;
  color: #ffbd2e;
  font-weight: 900;
}

.garage-quote-total {
  display: grid;
  gap: 4px;
  justify-items: end;
  padding: 8px 12px;
  border-radius: 12px;
  background: #071a26;
  color: #fff;
}

.garage-quote-total span {
  color: #d6e7f8;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.garage-quote-total strong {
  font-size: 1.15rem;
}

.admin-shell .dashboard-content {
  gap: 26px;
}

.admin-login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  max-width: 900px;
}

.admin-login-form label {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #005da8;
  font-weight: 800;
}

.admin-status-approved {
  background: rgba(34, 115, 80, 0.12);
  color: #227350;
}

.admin-status-pending {
  background: rgba(255, 170, 0, 0.16);
  color: #8a5a00;
}

.admin-status-rejected {
  background: rgba(184, 38, 38, 0.12);
  color: #b82626;
}

.admin-table td span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.76rem;
}

@media (max-width: 980px) {
  .garage-quote-form {
    grid-template-columns: 1fr;
  }

  .admin-login-form {
    grid-template-columns: 1fr;
  }
}

.analysis-preview-table a {
  color: var(--blue-strong);
  font-weight: 800;
  text-decoration: none;
}

.analysis-vehicle {
  display: flex;
  align-items: center;
  min-width: 0;
}

.analysis-table th:nth-child(1),
.analysis-table td:nth-child(1) {
  width: 19%;
}

.analysis-table th:nth-child(2),
.analysis-table td:nth-child(2) {
  width: 17%;
}

.analysis-table th:nth-child(3),
.analysis-table td:nth-child(3) {
  width: 12%;
}

.analysis-table th:nth-child(4),
.analysis-table td:nth-child(4) {
  width: 18%;
}

.analysis-table th:nth-child(5),
.analysis-table td:nth-child(5) {
  width: 16%;
}

.analysis-table th:nth-child(6),
.analysis-table td:nth-child(6) {
  width: 18%;
}

.quotes-table th:nth-child(1),
.quotes-table td:nth-child(1) {
  width: 16%;
}

.quotes-table th:nth-child(2),
.quotes-table td:nth-child(2) {
  width: 20%;
}

.quotes-table th:nth-child(3),
.quotes-table td:nth-child(3) {
  width: 16%;
}

.quotes-table th:nth-child(4),
.quotes-table td:nth-child(4) {
  width: 10%;
}

.quotes-table th:nth-child(5),
.quotes-table td:nth-child(5) {
  width: 13%;
}

.quotes-table th:nth-child(6),
.quotes-table td:nth-child(6) {
  width: 11%;
}

.quotes-table th:nth-child(7),
.quotes-table td:nth-child(7) {
  width: 14%;
}

.messages-table th:nth-child(1),
.messages-table td:nth-child(1) {
  width: 18%;
}

.messages-table th:nth-child(2),
.messages-table td:nth-child(2) {
  width: 16%;
}

.messages-table th:nth-child(3),
.messages-table td:nth-child(3) {
  width: 32%;
}

.messages-table th:nth-child(4),
.messages-table td:nth-child(4) {
  width: 12%;
}

.messages-table th:nth-child(5),
.messages-table td:nth-child(5) {
  width: 10%;
}

.messages-table th:nth-child(6),
.messages-table td:nth-child(6) {
  width: 12%;
}

.analysis-date,
.analysis-result {
  color: #101722;
}

.analysis-result {
  font-weight: 900;
}

.analysis-table td strong {
  font-size: 0.82rem;
}

.analysis-badge,
.analysis-status {
  min-height: 26px;
  padding: 5px 8px;
  font-size: 0.74rem;
}

.analysis-badge,
.analysis-status {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.analysis-badge.high {
  background: var(--red-soft);
  color: var(--red);
}

.analysis-badge.medium {
  background: var(--gold-soft);
  color: #925d09;
}

.analysis-badge.low {
  background: var(--green-soft);
  color: var(--green);
}

.analysis-status.pending {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.analysis-status.active {
  background: var(--gold-soft);
  color: #925d09;
}

.analysis-status.done {
  background: var(--green-soft);
  color: var(--green);
}

.dashboard-upload-card {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 0.58fr);
  gap: 24px;
  align-items: stretch;
}

.dashboard-upload-zone {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 390px;
  padding: 36px;
  border: 2px dashed rgba(0, 93, 168, 0.36);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(228, 241, 255, 0.92), rgba(255, 243, 216, 0.74)),
    #f8fbff;
  color: #071a26;
  text-align: center;
  cursor: pointer;
}

.dashboard-upload-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dashboard-upload-zone > span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 93, 168, 0.22);
}

.dashboard-upload-zone svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-upload-zone strong {
  font-size: 1.45rem;
}

.dashboard-upload-zone small {
  color: #667085;
  font-size: 1rem;
}

.dashboard-upload-side {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  border: 1px solid #e5e8ed;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(7, 26, 38, 0.08);
}

.dashboard-upload-side h2 {
  margin: 0;
  color: #101722;
  font-size: 1.35rem;
}

.dashboard-upload-side ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #667085;
  line-height: 1.5;
}

.analysis-preview-card {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #e5e8ed;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 48px rgba(8, 25, 42, 0.08);
}

.analysis-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid #edf1f5;
}

.analysis-preview-header h2 {
  margin: 0;
  color: #101722;
  font-size: 1.25rem;
}

.analysis-preview-header p:not(.eyebrow) {
  margin: 6px 0 0;
  color: #667085;
}

.analysis-preview-table-wrap {
  overflow-x: auto;
}

.analysis-preview-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.analysis-preview-table th,
.analysis-preview-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf1f5;
  color: #26313f;
  font-size: 0.8rem;
  text-align: left;
  vertical-align: top;
}

.analysis-preview-table th {
  background: #f7fafc;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analysis-preview-table td strong,
.analysis-preview-table td span {
  display: block;
}

.analysis-preview-table td span {
  margin-top: 4px;
  color: #667085;
  font-size: 0.76rem;
}

.uploaded-files {
  display: grid;
  gap: 10px;
}

.uploaded-file-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e8ed;
  border-radius: 14px;
  background: #f8fbff;
}

.uploaded-file-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.uploaded-file-card strong {
  display: block;
  overflow: hidden;
  color: #101722;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploaded-file-card small {
  display: block;
  margin-top: 3px;
  color: #667085;
}

.uploaded-file-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(420px, 0.66fr);
  gap: 24px;
  align-items: start;
}

.profile-summary-card,
.profile-form-card {
  border: 1px solid #e5e8ed;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(7, 26, 38, 0.08);
}

.profile-summary-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 32px 24px;
  text-align: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(0, 93, 168, 0.22);
}

.profile-summary-card h2 {
  margin: 8px 0 0;
  color: #101722;
  font-size: 1.4rem;
}

.profile-summary-card p {
  margin: 0;
  color: #667085;
}

.profile-summary-card div {
  display: grid;
  gap: 5px;
  width: 100%;
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  background: #f7fbff;
  text-align: left;
}

.profile-summary-card div strong {
  color: #101722;
}

.profile-summary-card div span {
  color: #667085;
  line-height: 1.45;
}

.profile-form-card {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.profile-form-card label {
  display: grid;
  gap: 7px;
  color: #26313f;
  font-weight: 800;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.quote-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.quote-form textarea,
.quote-form input,
.quote-form select {
  margin-top: 2px;
  color: var(--ink);
  font-weight: 500;
}

.confirmation {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 140px);
  max-width: 820px;
  padding: 42px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.confirmation h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.site-footer {
  margin-top: clamp(64px, 8vw, 110px);
  padding: 44px max(24px, calc((100vw - 1180px) / 2)) 36px;
  background: linear-gradient(135deg, var(--navy), var(--accent-dark));
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-grid section {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  line-height: 1.45;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-logo-column {
  display: grid;
  place-items: center;
  padding: 12px;
}

.footer-logo-column img {
  display: block;
  width: min(190px, 100%);
  height: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .brand-logo {
    height: 58px;
    max-width: 174px;
  }

  nav {
    justify-content: flex-start;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .auth-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  main {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .hero,
  .upload-layout,
  .result-grid,
  .auth-page-layout,
  .dashboard-grid,
  .value-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .home-page > * + * {
    margin-top: 72px;
  }

  #homePage > .how-it-works-section,
  #homePage > .partner-strip,
  #homePage > .garage-map-section,
  #homePage > .faq-section {
    margin-top: 110px !important;
  }

  .hero img {
    height: auto;
    max-height: none;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 4rem);
  }

  .partner-heading {
    align-items: start;
    flex-direction: column;
  }

  .partner-logo {
    min-width: 160px;
  }

  .garage-map-heading {
    align-items: start;
    flex-direction: column;
  }

  .garage-map-layout {
    grid-template-columns: 1fr;
  }

  .google-map-card,
  .google-map-card iframe {
    min-height: 340px;
  }

  .repair-card {
    grid-template-columns: 1fr;
  }

  .repair-price {
    white-space: normal;
  }

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

  .dashboard-topbar {
    height: 84px;
    padding: 10px 14px;
  }

  .dashboard-brand img {
    width: 184px;
    height: 64px;
  }

  main.dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: sticky;
    top: 84px;
    z-index: 40;
    height: auto;
    min-height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid #e5e8ed;
  }

  .dashboard-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .dashboard-nav a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.94rem;
  }

  .dashboard-nav span {
    width: auto;
    font-size: 1.1rem;
  }

  .dashboard-sidebar-gift {
    display: none;
  }

  .dashboard-content {
    padding: 38px 16px 46px;
  }

  .dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 46px;
  }

  .dashboard-welcome h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .dashboard-feature-grid,
  .dashboard-status-grid,
  .dashboard-summary,
  .dashboard-lower-grid,
  .analysis-insights,
  .dashboard-upload-card,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-summary {
    margin-bottom: 52px;
  }

  .dashboard-feature-card {
    grid-template-rows: 180px 1fr;
    min-height: auto;
  }

  .dashboard-account-panel {
    right: -4px;
    padding: 18px;
  }

  .analysis-table-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .analysis-detail-grid {
    grid-template-columns: 1fr;
  }

  .analysis-detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .repair-report-summary,
  .repair-report-grid,
  .defect-code-details dl {
    grid-template-columns: 1fr;
  }

  .repair-report-item-head,
  .report-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .analysis-toolbar,
  .analysis-toolbar label,
  .analysis-toolbar select {
    width: 100%;
  }
}


