:root {
  --ink: #111111;
  --muted: #696f78;
  --line: #e4e6ea;
  --paper: #ffffff;
  --soft: #f5f6f8;
  --red: #d71920;
  --red-dark: #a50f15;
  --dark: #17191d;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main,
section,
article,
div,
p,
h1,
h2,
h3,
span,
small,
li,
dd {
  overflow-wrap: anywhere;
}

.page-shell {
  min-height: 70vh;
}

.hero-official,
.product-hero {
  align-items: center;
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  min-height: min(720px, 76vh);
  padding: 96px 7vw;
}

.hero-official > div,
.product-hero > div {
  max-width: 760px;
}

.hero-official p,
.product-hero p,
.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-official h1,
.product-hero h1 {
  font-size: clamp(42px, 7vw, 92px);
  line-height: .98;
  margin: 14px 0 18px;
}

.hero-official span,
.product-hero span {
  display: block;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.45;
  max-width: 680px;
}

.primary-button,
.secondary-button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.primary-button {
  background: var(--red);
  color: #fff;
  margin-top: 24px;
}

.secondary-button {
  background: #111;
  color: #fff;
  margin-top: 24px;
}

.mmv-brand img {
  height: 64px;
  width: auto;
}

.mmv-brand-seal {
  border-left: 1px solid var(--line);
  font-weight: 900;
  padding-left: 18px;
  text-transform: uppercase;
}

.social-icon {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  width: 48px;
}

.social-icon img {
  height: 25px;
  width: 25px;
}

.social-icon.call {
  background: var(--red);
  color: #fff;
  font-size: 20px;
}

.car-grid,
.used-car-grid,
.variant-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.car-card,
.used-car-card,
.variant-card,
.contact-panel,
.official-form,
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(17, 19, 23, .08);
  overflow: hidden;
}

.car-card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.car-card:hover {
  box-shadow: 0 24px 60px rgba(17, 19, 23, .16);
  transform: translateY(-6px);
}

.car-card img,
.used-car-card img,
.variant-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.car-card div,
.used-car-card div,
.variant-card div {
  padding: 20px;
}

.car-card span,
.used-car-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.car-card h3,
.used-car-card h3,
.variant-card h2 {
  font-size: 24px;
  margin: 8px 0;
}

.used-price,
.variant-card strong {
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
}

.used-car-card dl,
.rolling-cost-result dl,
.contact-panel dl {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.used-car-card dt,
.rolling-cost-result dt,
.contact-panel dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.used-car-card dd,
.rolling-cost-result dd,
.contact-panel dd {
  font-weight: 800;
  margin: 0;
}

.lead-band {
  background: var(--soft);
}

.official-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.official-form label {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.official-form input,
.official-form select,
.official-form textarea,
.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.rolling-cost-layout,
.contact-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
}

.rolling-cost-result,
.contact-panel {
  padding: 28px;
}

.rolling-cost-total {
  background: #111;
  border-radius: 18px;
  color: #fff;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.rolling-cost-total strong {
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
}

.price-table-wrap,
.admin-table-wrap {
  overflow-x: auto;
}

.price-table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.price-table th,
.price-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
}

.price-table th {
  background: var(--soft);
  font-weight: 900;
}

.mmv-footer {
  align-items: center;
  background: #111;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 32px 7vw;
}

.footer-socials,
.floating-contact {
  display: flex;
  gap: 10px;
}

.floating-contact {
  bottom: 18px;
  position: fixed;
  right: 18px;
  z-index: 80;
}

.success-note,
.danger-note {
  border-radius: 14px;
  display: block;
  margin: 0 0 18px;
  padding: 14px 16px;
}

.success-note {
  background: #eaf8ef;
  color: #157347;
}

.danger-note {
  background: #fff2f2;
  color: #b00020;
}

.admin-body {
  background: #f3f5f8;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  max-width: 460px;
  width: 100%;
}

.admin-sidebar {
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100vh;
  left: 0;
  overflow-y: auto;
  padding: 24px;
  position: fixed;
  top: 0;
  width: 250px;
}

.admin-sidebar strong {
  font-size: 25px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.admin-nav-group {
  display: grid;
  gap: 4px;
}

.admin-nav-group-label {
  color: #8f949d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 0 12px 4px;
  text-transform: uppercase;
}

.admin-nav-account {
  border-top: 1px solid #303238;
  margin-top: auto;
  padding-top: 14px;
}

.admin-sidebar a {
  align-items: center;
  border-radius: 6px;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: space-between;
  padding: 10px 12px;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: var(--red);
}

.admin-badge {
  background: #fff;
  border-radius: 999px;
  color: var(--red);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  min-width: 24px;
  padding: 3px 8px;
  text-align: center;
}

.admin-main {
  margin-left: 250px;
  padding: 30px;
}

.admin-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.admin-card {
  margin-bottom: 22px;
  padding: 22px;
}

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

.admin-form-grid label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.admin-main .primary-button,
.admin-main .secondary-button {
  align-self: end;
  border-radius: 10px;
  font-size: 16px;
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
  min-height: 48px;
  min-width: 180px;
  padding: 0 24px;
  width: auto;
}

.admin-main .primary-button {
  box-shadow: 0 12px 28px rgba(215, 25, 32, 0.18);
}

.admin-main .secondary-button {
  background: #111;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-select-line {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 18px;
  padding: 16px;
}

.admin-select-line label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.admin-select-line select {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 46px;
  padding: 10px 12px;
}

.variant-edit-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 10px;
}

.admin-muted {
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0 0;
}

.admin-report-hero {
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.1), transparent 38%),
    #111;
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(17, 19, 23, 0.12);
  color: #fff;
  margin-bottom: 22px;
  padding: 28px;
}

.admin-report-hero h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  margin: 6px 0 10px;
}

.admin-report-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.admin-report-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.admin-report-heading > div {
  max-width: 820px;
}

.admin-report-filter {
  flex: 0 0 180px;
}

.admin-history-filter {
  display: grid;
  flex-basis: 620px;
  gap: 12px;
  grid-template-columns: 1.35fr .75fr 1fr;
}

.admin-report-filter label {
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.admin-report-filter select {
  background: #fff;
  border: 0;
  border-radius: 6px;
  color: #111;
  font-weight: 800;
  min-height: 46px;
  padding: 0 12px;
}

.admin-report-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.admin-report-metrics article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.admin-report-metrics span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-report-metrics strong {
  color: #fff;
  font-size: 34px;
}

.admin-report-metrics small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

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

.admin-report-visual-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.admin-report-visual-grid .admin-card {
  min-width: 0;
}

.admin-monthly-heading {
  margin: 6px 0 18px;
}

.admin-monthly-heading h2 {
  font-size: 30px;
  margin: 4px 0 0;
}

.admin-monthly-column-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.admin-monthly-column-grid .admin-card {
  min-width: 0;
}

.admin-monthly-wide {
  grid-column: 1 / -1;
}

.admin-column-scroll {
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.admin-column-chart {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--column-count), minmax(74px, 1fr));
  min-height: 286px;
}

.admin-column-chart article {
  display: grid;
  gap: 8px;
  grid-template-rows: 22px 190px 42px 18px;
  min-width: 0;
  text-align: center;
}

.admin-column-chart article > strong {
  color: #111;
  font-size: 14px;
}

.admin-column-slot {
  align-items: end;
  background:
    repeating-linear-gradient(to top, transparent 0, transparent 46px, rgba(17, 19, 23, 0.06) 47px),
    #f2f4f6;
  border-bottom: 2px solid #cfd4da;
  border-radius: 6px 6px 0 0;
  display: flex;
  height: 190px;
  overflow: hidden;
}

.admin-column-slot span {
  background: var(--column-color);
  border-radius: 5px 5px 0 0;
  display: block;
  height: var(--column-height);
  transition: height 0.45s ease;
  width: 100%;
}

.admin-column-chart p {
  color: #111;
  display: -webkit-box;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-column-chart small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-history-report-card {
  border-top: 4px solid var(--red);
  box-shadow: 0 18px 48px rgba(17, 19, 23, 0.08);
  margin-bottom: 22px;
  min-width: 0;
}

.admin-history-report-heading {
  align-items: start;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.admin-history-report-heading h2 {
  font-size: 32px;
  margin: 4px 0 0;
}

.admin-history-report-heading > div {
  max-width: 920px;
}

.admin-history-report-heading > span {
  background: #111;
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 13px;
}

.admin-axis-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-axis-note span {
  background: #f1f3f5;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.admin-axis-note strong {
  color: #111;
  margin-right: 5px;
}

.admin-history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.admin-history-legend span {
  align-items: center;
  background: #f5f6f8;
  border: 1px solid #e3e6ea;
  border-radius: 999px;
  color: #31363d;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  padding: 7px 10px;
}

.admin-history-legend i,
.admin-history-table th i {
  background: var(--series-color);
  border-radius: 2px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.admin-history-scroll {
  background: #fbfcfd;
  border: 1px solid #e7eaee;
  border-radius: 8px;
  margin-top: 18px;
  overflow-x: auto;
  padding: 18px 14px 10px;
}

.admin-history-chart {
  display: grid;
  gap: 10px;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 424px;
}

.admin-history-y-axis {
  display: flex;
  flex-direction: column;
  height: 286px;
  justify-content: space-between;
  padding-top: 1px;
  text-align: right;
}

.admin-history-y-axis span {
  color: #7b828d;
  font-size: 11px;
  font-weight: 800;
}

.admin-history-plot {
  min-width: 0;
  position: relative;
}

.admin-history-grid {
  display: flex;
  flex-direction: column;
  height: 286px;
  inset: 0 0 auto;
  justify-content: space-between;
  pointer-events: none;
  position: absolute;
}

.admin-history-grid i {
  border-top: 1px solid #e2e5e9;
  display: block;
}

.admin-history-groups {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  position: relative;
}

.admin-history-groups article {
  display: grid;
  gap: 10px;
  grid-template-rows: 370px 28px;
  min-width: 0;
}

.admin-history-groups article > strong {
  align-self: start;
  background: #111;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  justify-self: center;
  min-width: 70px;
  padding: 6px 10px;
  text-align: center;
}

.admin-history-bars {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(var(--series-count), minmax(8px, 1fr));
  height: 370px;
  padding: 0 7px;
}

.admin-history-bar-item {
  display: grid;
  grid-template-rows: 286px 78px;
  min-width: 0;
}

.admin-history-bar-item > span {
  align-self: end;
  background: var(--bar-color);
  border-radius: 4px 4px 0 0;
  display: block;
  height: var(--bar-height);
  min-height: 0;
  position: relative;
  transition: filter 0.2s ease, height 0.45s ease, transform 0.2s ease;
}

.admin-history-bar-item:hover > span {
  filter: brightness(0.88);
  transform: translateY(-3px);
}

.admin-history-bar-item b {
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 5px;
  bottom: calc(100% + 5px);
  box-shadow: 0 5px 12px rgba(17, 19, 23, 0.08);
  color: #111;
  font-size: 10px;
  left: 50%;
  padding: 4px 5px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 4;
}

.admin-history-bar-item small {
  align-self: start;
  color: #353a42;
  display: block;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  margin: 8px auto 0;
  max-height: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.admin-history-chart.is-single-period {
  min-height: 348px;
}

.admin-history-chart.is-single-period .admin-history-y-axis,
.admin-history-chart.is-single-period .admin-history-grid {
  height: 220px;
}

.admin-history-chart.is-single-period .admin-history-groups article {
  grid-template-rows: 304px 28px;
}

.admin-history-chart.is-single-period .admin-history-bars {
  height: 304px;
  padding-inline: 4px;
}

.admin-history-chart.is-single-period .admin-history-bar-item {
  grid-template-rows: 220px 78px;
}

.admin-history-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
}

.admin-history-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.admin-history-table th,
.admin-history-table td {
  border-bottom: 1px solid #e6e9ed;
  font-size: 12px;
  padding: 11px 10px;
  text-align: right;
  white-space: nowrap;
}

.admin-history-table thead th {
  background: #f5f6f8;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.admin-history-table th:first-child {
  min-width: 160px;
  text-align: left;
}

.admin-history-table tbody th {
  align-items: center;
  display: flex;
  gap: 8px;
}

.admin-history-table td strong {
  color: #111;
}

.admin-chart-unit {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin: 12px 0 0;
}

.admin-trend-card {
  grid-column: 1 / -1;
}

.admin-chart-heading {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.admin-chart-heading h2 {
  margin: 3px 0 0;
}

.admin-chart-heading > span {
  background: #111;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
  white-space: nowrap;
}

.admin-trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  margin: 4px 0 0;
}

.admin-trend-legend span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
}

.admin-trend-legend i {
  border-radius: 999px;
  display: block;
  height: 4px;
  width: 22px;
}

.admin-trend-legend i.visitors {
  background: #2f6fed;
}

.admin-trend-legend i.sessions {
  background: var(--red);
}

.admin-trend-chart {
  margin-top: 8px;
  overflow: hidden;
}

.admin-trend-chart svg {
  display: block;
  height: auto;
  min-height: 230px;
  width: 100%;
}

.admin-trend-grid {
  stroke: #e5e8ec;
  stroke-width: 1;
}

.admin-trend-axis,
.admin-trend-date {
  fill: #747c88;
  font-size: 11px;
  font-weight: 700;
}

.admin-trend-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.admin-trend-line.sessions {
  stroke: var(--red);
}

.admin-trend-line.visitors {
  stroke: #2f6fed;
}

.admin-donut-layout {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 190px minmax(0, 1fr);
  margin-top: 22px;
}

.admin-donut {
  aspect-ratio: 1;
  background: var(--donut);
  border-radius: 50%;
  display: grid;
  padding: 28px;
  place-items: center;
  width: 190px;
}

.admin-donut::before {
  background: #fff;
  border-radius: 50%;
  content: "";
  grid-area: 1 / 1;
  height: 100%;
  width: 100%;
}

.admin-donut > div {
  display: grid;
  gap: 2px;
  grid-area: 1 / 1;
  place-items: center;
  position: relative;
}

.admin-donut strong {
  color: #111;
  font-size: 28px;
}

.admin-donut span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-donut-legend {
  display: grid;
  gap: 10px;
}

.admin-donut-legend > div {
  align-items: center;
  border-bottom: 1px solid #eef0f3;
  display: grid;
  gap: 9px;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  padding-bottom: 9px;
}

.admin-donut-legend i {
  background: var(--legend-color);
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.admin-donut-legend span,
.admin-donut-legend strong,
.admin-donut-legend small {
  display: block;
}

.admin-donut-legend strong {
  font-size: 13px;
}

.admin-donut-legend small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.admin-donut-legend b {
  font-size: 13px;
}

.admin-report-grid .admin-card {
  min-width: 0;
}

.admin-bar-chart {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.admin-bar-row {
  display: grid;
  gap: 10px;
}

.admin-bar-row > div {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-bar-row strong {
  color: #111;
}

.admin-bar-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-bar-track {
  background: #eef0f3;
  border-radius: 999px;
  display: block;
  height: 16px;
  overflow: hidden;
}

.admin-bar-track span {
  background: linear-gradient(90deg, var(--red), #ff5a5f);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--bar);
}

.admin-report-sessions {
  margin-top: 22px;
}

.admin-report-table-heading {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.admin-report-table-heading h2 {
  margin-bottom: 4px;
}

.admin-report-table-heading > strong {
  background: #111;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  padding: 8px 12px;
  white-space: nowrap;
}

.admin-report-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.admin-report-table {
  border-collapse: collapse;
  min-width: 1040px;
  width: 100%;
}

.admin-report-table th,
.admin-report-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

.admin-report-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-report-table td {
  font-size: 13px;
}

.admin-report-table td strong,
.admin-report-table td small {
  display: block;
}

.admin-report-table td small {
  color: var(--muted);
  margin-top: 3px;
}

.admin-report-table code {
  background: #f1f3f5;
  border-radius: 4px;
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  padding: 5px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-conversion-status {
  background: #eef0f3;
  border-radius: 999px;
  color: var(--muted);
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.admin-conversion-status.yes {
  background: #e2f6e8;
  color: #157a36;
}

.admin-report-note {
  background: #fff8e5;
  border-left: 4px solid #e5a400;
  border-radius: 6px;
  margin-top: 22px;
  padding: 18px 20px;
}

.admin-report-note p {
  color: #5f5436;
  line-height: 1.6;
  margin: 6px 0 0;
}

.lead-unread-row {
  background: #fff7f7;
  box-shadow: inset 4px 0 0 var(--red);
  font-weight: 800;
}

@media (max-width: 1024px) {
  .mmv-header {
    gap: 18px;
    grid-template-columns: 1fr;
    padding: 14px 22px;
  }

  .mmv-nav,
  .mmv-actions {
    flex-wrap: wrap;
  }

  .car-grid,
  .used-car-grid,
  .variant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rolling-cost-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-official,
  .product-hero {
    min-height: 620px;
    padding: 82px 22px 48px;
  }

  .mmv-brand {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 64px 1fr;
  }

  .mmv-brand-seal {
    display: none;
  }

  .mmv-dealer {
    display: grid;
  }

  .mmv-hotline {
    width: 100%;
  }

  .mmv-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .car-grid,
  .used-car-grid,
  .variant-grid,
  .used-car-card dl,
  .rolling-cost-result dl,
  .contact-panel dl,
  .admin-form-grid,
  .variant-edit-row,
  .admin-report-grid,
  .admin-report-visual-grid,
  .admin-monthly-column-grid,
  .admin-report-metrics {
    grid-template-columns: 1fr;
  }

  .admin-monthly-wide {
    grid-column: auto;
  }

  .admin-trend-card {
    grid-column: auto;
  }

  .admin-donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }

  .admin-donut-legend {
    width: 100%;
  }

  .admin-trend-chart {
    overflow-x: auto;
  }

  .admin-trend-chart svg {
    min-width: 0;
  }

  .admin-report-heading,
  .admin-report-table-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-report-filter {
    flex-basis: auto;
  }

  .admin-history-filter {
    grid-template-columns: 1fr;
  }

  .admin-history-report-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-history-report-heading > span {
    align-self: flex-start;
  }

  .admin-history-chart {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .mmv-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-sidebar {
    height: auto;
    position: static;
    width: auto;
  }

  .admin-main {
    margin-left: 0;
    padding: 16px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

.mmv-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 12px 30px rgba(17, 19, 23, 0.05);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(360px, 1.2fr) auto minmax(160px, 0.55fr);
  min-height: 96px;
  padding: 14px 48px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.mmv-header::before {
  background: var(--red);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.mmv-logo {
  align-items: center;
  display: flex;
  gap: 24px;
  min-width: 0;
}

.mmv-logo img {
  height: 58px;
  object-fit: contain;
  width: 190px;
}

.mmv-logo strong,
.mmv-logo small,
.mmv-logo em {
  display: block;
  line-height: 1.15;
}

.mmv-logo strong {
  color: #111;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmv-logo em {
  color: var(--red);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  margin-top: 5px;
  text-transform: uppercase;
}

.mmv-logo small {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.mmv-dealer-text {
  border-left: 2px solid #9aa0a8;
  display: grid;
  padding-left: 24px;
}

.mmv-nav {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: center;
}

.mmv-nav > a,
.mmv-nav-item > a {
  color: #20242a;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  min-height: 54px;
  align-items: center;
  text-transform: uppercase;
}

.mmv-nav > a:hover,
.mmv-nav-item > a:hover {
  color: var(--red);
}

.mmv-nav-item {
  position: relative;
}

.mmv-mega,
.mmv-simple-menu {
  background: #fff;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 60;
}

.mmv-has-mega:hover .mmv-mega,
.mmv-has-menu:hover .mmv-simple-menu,
.mmv-has-mega:focus-within .mmv-mega,
.mmv-has-menu:focus-within .mmv-simple-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mmv-mega {
  width: min(1080px, calc(100vw - 48px));
}

.mmv-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mmv-mega-card {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 8px;
  min-height: 210px;
  padding: 22px;
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.mmv-mega-card img {
  height: 90px;
  object-fit: contain;
  transition: transform 250ms ease;
  width: 100%;
}

.mmv-mega-card:hover img {
  transform: translateX(8px) scale(1.04);
}

.mmv-mega-card:hover {
  background: #fafafa;
  box-shadow: inset 0 4px 0 var(--red);
  transform: translateY(-2px);
}

.mmv-mega-card strong {
  font-size: 18px;
}

.mmv-mega-card small {
  color: var(--red);
  font-weight: 700;
}

.mmv-simple-menu {
  display: grid;
  min-width: 260px;
}

.mmv-simple-menu a {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  padding: 16px 20px;
}

.mmv-simple-menu a:hover {
  background: var(--soft);
  color: var(--red);
}

.mmv-header-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  min-width: max-content;
}

.mmv-header-actions a {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 38px;
  padding: 7px 9px;
  white-space: nowrap;
}

.mmv-header-actions a:first-child {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  padding-left: 12px;
  padding-right: 12px;
}

.header-phone-link {
  letter-spacing: -.01em;
}

.header-social-link {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  justify-content: center;
  min-width: auto;
}

.header-social-link img {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.header-social-link span {
  display: inline-block;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

@media (min-width: 1181px) and (max-width: 1320px) {
  .mmv-header-actions {
    gap: 4px;
  }

  .mmv-header-actions a {
    font-size: 10px;
    min-height: 36px;
    padding: 6px 7px;
  }

  .header-social-link {
    min-width: 36px;
  }

  .header-social-link span {
    display: none;
  }
}

.mmv-hero {
  background: #000;
  color: #fff;
  height: calc(100vh - 82px);
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.mmv-hero-track,
.mmv-hero-slide {
  height: 100%;
  inset: 0;
  position: absolute;
}

.mmv-hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
  z-index: 0;
}

.mmv-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.mmv-hero-slide::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18), transparent);
  content: "";
  inset: 0;
  position: absolute;
}

.mmv-hero-slide img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease-out;
  width: 100%;
}

.mmv-hero-slide.is-active img {
  transform: scale(1);
}

.mmv-hero-caption {
  left: 72px;
  max-width: 560px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.mmv-hero-caption > span,
.mmv-hero-caption > h1,
.mmv-hero-caption > .hero-actions {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.mmv-hero-slide.is-active .mmv-hero-caption > span,
.mmv-hero-slide.is-active .mmv-hero-caption > h1,
.mmv-hero-slide.is-active .mmv-hero-caption > .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.mmv-hero-slide.is-active .mmv-hero-caption > h1 {
  transition-delay: 90ms;
}

.mmv-hero-slide.is-active .mmv-hero-caption > .hero-actions {
  transition-delay: 180ms;
}

.mmv-hero-caption span,
.mmv-section-heading p,
.mmv-inner-hero p,
.product-official-hero p,
.contact-panel p,
.mmv-service-banner p,
.mmv-closing p {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.mmv-hero-caption h1 {
  font-size: 58px;
  line-height: 1;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.mmv-btn,
.official-form button {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  text-transform: uppercase;
  border-radius: 999px;
  transition: box-shadow 220ms ease, transform 220ms ease, background 220ms ease;
}

.mmv-btn:hover,
.official-form button:hover {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

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

.mmv-btn.white {
  background: #fff;
  color: #111;
}

.mmv-btn.red,
.official-form button {
  background: var(--red);
  color: #fff;
}

.official-form button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.mmv-btn.dark {
  background: #111;
  color: #fff;
}

.social-app-button {
  background: #fff;
  border: 1px solid rgba(17, 19, 23, 0.12);
  box-shadow: 0 10px 24px rgba(17, 19, 23, 0.08);
  color: #111;
  gap: 10px;
}

.social-app-button img {
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
}

.mmv-hero-controls {
  align-items: center;
  bottom: 34px;
  display: flex;
  gap: 10px;
  left: 72px;
  position: absolute;
  z-index: 3;
}

.mmv-hero-dots {
  display: flex;
  gap: 8px;
}

.mmv-hero-dots button {
  background: rgba(255, 255, 255, 0.42);
  border: 0;
  cursor: pointer;
  height: 3px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 56px;
}

.mmv-hero-dots button[aria-current="true"] {
  background: rgba(255, 255, 255, 0.7);
}

.mmv-hero-dots button[aria-current="true"]::after {
  animation: heroProgress 6.5s linear;
  background: var(--red);
  content: "";
  inset: 0;
  position: absolute;
  transform-origin: left;
}

.mmv-hero-arrow {
  align-items: center;
  background: rgba(0, 0, 0, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 29px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  transition: background 180ms ease, border-color 180ms ease;
  width: 40px;
}

.mmv-hero-arrow:hover,
.mmv-hero-arrow:focus-visible {
  background: var(--red);
  border-color: var(--red);
}

.model-strip {
  background: #fff;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 30px 48px;
}

.model-strip a {
  border: 1px solid transparent;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 18px 14px;
  text-align: center;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.model-strip a:last-child {
  border-right: 1px solid transparent;
}

.model-strip img {
  height: 86px;
  object-fit: contain;
  transition: transform 220ms ease;
  width: 100%;
}

.model-strip a:hover img {
  transform: translateY(-10px) scale(1.04);
}

.model-strip a:hover {
  background: #fff;
  border-color: rgba(215, 25, 32, 0.2);
  box-shadow: 0 18px 36px rgba(17, 19, 23, 0.1);
  transform: translateY(-4px);
}

.model-strip strong {
  font-size: 18px;
}

.model-strip span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.mmv-section {
  padding: 76px 64px;
}

.mmv-section-heading {
  margin: 0 auto 36px;
  max-width: 840px;
  text-align: center;
}

.mmv-section-heading h2,
.mmv-inner-hero h1,
.product-official-hero h1,
.contact-panel h2,
.mmv-service-banner h2,
.mmv-closing h2 {
  font-size: 52px;
  line-height: 1.08;
  margin: 0;
}

.mmv-section-heading p,
.mmv-inner-hero p {
  font-size: 18px;
}

.mmv-section-heading h2 {
  font-weight: 800;
}

.car-select {
  background: var(--soft);
}

.car-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

.car-tabs a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 16px;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.car-tabs a:hover {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 14px 28px rgba(215, 25, 32, 0.22);
  color: #fff;
  transform: translateY(-2px);
}

.car-showcase,
.official-product-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.car-showcase article,
.official-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 360px;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.car-showcase article:hover,
.official-product-card:hover {
  border-color: rgba(215, 25, 32, 0.24);
  box-shadow: 0 20px 44px rgba(17, 19, 23, 0.12);
  transform: translateY(-5px);
}

.car-showcase img,
.official-product-image img {
  height: 210px;
  object-fit: contain;
  padding: 24px;
  transition: transform 260ms ease;
  width: 100%;
}

.car-showcase article:hover img,
.official-product-card:hover img {
  transform: translateX(12px) scale(1.03);
}

.car-showcase article > div,
.official-product-card > div {
  border-top: 1px solid var(--line);
  padding: 24px;
}

.car-showcase span,
.official-product-card span,
.official-price-table small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.car-showcase h3,
.official-product-card h2 {
  font-size: 30px;
  line-height: 1.1;
  margin: 8px 0;
}

.car-showcase p,
.official-product-card p {
  color: var(--red);
  font-weight: 900;
  margin: 0 0 18px;
}

.car-showcase a,
.official-card-actions a,
.mmv-news-grid a {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.mmv-service-banner {
  align-items: center;
  background: #15171b;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 300px;
  padding: 64px;
}

.mmv-service-banner span,
.mmv-closing span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin-top: 16px;
}

.price-overview {
  background: #fff;
}

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

.price-overview-grid a,
.official-price-table > a,
.official-price-table > div,
.official-price-table > article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
  transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.price-overview-grid a:hover,
.official-price-table > a:hover,
.official-price-table > article:hover {
  background: #fff;
  border-color: rgba(215, 25, 32, 0.28);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

.price-overview-grid img,
.official-price-table img {
  background:
    linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
  height: 170px;
  object-fit: contain;
  padding: 22px;
  transition: transform 260ms ease;
  width: 100%;
}

.price-overview-grid a:hover img,
.official-price-table a:hover img {
  transform: translateY(-8px) scale(1.04);
}

.price-overview-grid a > div,
.official-price-table a > div,
.official-price-table > div > div {
  display: grid;
  gap: 8px;
  padding: 20px 22px 22px;
}

.price-overview-grid span,
.official-price-table span {
  font-weight: 900;
}

.price-overview-grid strong,
.official-price-table strong {
  color: var(--red);
  font-size: 20px;
}

.price-product-card img {
  height: 220px;
}

.mmv-news-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 64px 76px;
}

.mmv-news-grid article {
  background: var(--soft);
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  min-height: 320px;
}

.mmv-news-grid img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mmv-news-grid div {
  padding: 34px;
}

.mmv-news-grid span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmv-news-grid h2 {
  font-size: 28px;
  line-height: 1.12;
}

.news-home-section {
  background: #fff;
}

.news-hero {
  background:
    linear-gradient(100deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.36)),
    url('/images/hero/destinator-hero.jpg') center / cover;
  color: #fff;
}

.news-card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-news-grid {
  margin-top: 30px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(12, 18, 28, 0.08);
  color: var(--dark);
  display: grid;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.news-card:hover {
  border-color: rgba(226, 17, 31, 0.32);
  box-shadow: 0 28px 58px rgba(12, 18, 28, 0.14);
  transform: translateY(-5px);
}

.news-card-media {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #f1f3f6;
  display: flex;
  overflow: hidden;
}

.news-card-media img,
.news-card-media video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.news-video-link {
  color: var(--red);
  display: block;
  font-size: 18px;
  font-weight: 900;
  padding: 32px;
  text-transform: uppercase;
}

.news-card-body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.news-card-body small {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card-body strong {
  font-size: 24px;
  line-height: 1.18;
}

.news-card-body em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  line-height: 1.55;
}

.news-empty-card {
  grid-column: 1 / -1;
  max-width: 760px;
  justify-self: center;
}

.news-empty-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(12, 18, 28, 0.08);
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 760px;
  padding: 34px;
  text-align: center;
}

.news-detail-page {
  background: #f4f5f7;
}

.news-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 56px rgba(12, 18, 28, 0.09);
  margin: 0 auto 34px;
  max-width: 1040px;
  overflow: hidden;
}

.news-detail-header {
  display: grid;
  gap: 12px;
  padding: 42px 46px 28px;
}

.news-detail-header a,
.news-detail-header p {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.news-detail-header h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  margin: 0;
}

.news-detail-header span {
  color: var(--muted);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
}

.news-detail-media {
  background: #eef0f3;
}

.news-detail-media img,
.news-detail-media video {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  max-height: 680px;
  object-fit: cover;
  width: 100%;
}

.news-body {
  color: #222833;
  display: grid;
  gap: 16px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.75;
  padding: 34px 46px 12px;
}

.news-body p {
  margin: 0;
}

.news-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 46px 46px;
}

.closing-cta {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mmv-closing {
  background: var(--dark);
  color: #fff;
  padding: 64px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mmv-inner-hero {
  background: #111;
  color: #fff;
  min-height: 360px;
  padding: 110px 64px 72px;
}

.mmv-inner-hero span {
  color: rgba(255, 255, 255, 0.74);
  display: block;
  font-size: 18px;
  margin-top: 18px;
  max-width: 760px;
}

.official-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.official-card-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.product-official-hero {
  align-items: center;
  background: linear-gradient(90deg, #111 0%, #111 42%, #f4f4f4 42%);
  color: #fff;
  display: grid;
  gap: 36px;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 580px;
  overflow: hidden;
  padding: 80px 64px;
}

.product-official-hero img {
  justify-self: center;
  max-height: 360px;
  object-fit: contain;
  width: 100%;
}

.product-official-hero span {
  color: #fff;
  display: block;
  font-size: 24px;
  font-weight: 900;
  margin-top: 16px;
}

.official-model-hero {
  background: #08090b;
  color: #fff;
  min-height: min(760px, 82vh);
  overflow: hidden;
  position: relative;
}

.official-model-hero picture,
.official-model-hero picture::after,
.official-model-hero picture img {
  inset: 0;
  position: absolute;
}

.official-model-hero picture::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.52) 42%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
  content: "";
  z-index: 1;
}

.official-model-hero picture img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  width: 100%;
}

.official-model-hero__content {
  display: grid;
  gap: 16px;
  max-width: 760px;
  padding: clamp(82px, 10vw, 150px) 7vw;
  position: relative;
  z-index: 2;
}

.official-model-hero__content p,
.model-brochure-cta p,
.official-feature-stack p {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  margin: 0;
  text-transform: uppercase;
}

.official-model-hero__content h1 {
  color: #fff;
  font-size: clamp(46px, 8vw, 104px);
  line-height: .92;
  margin: 0;
  max-width: 820px;
}

.official-model-hero__content span {
  color: rgba(255, 255, 255, 0.86);
  display: block;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.45;
  max-width: 700px;
}

.official-model-hero__content small {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 700;
}

.model-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.official-model-anchor {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 4px;
  justify-content: center;
  overflow-x: auto;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.official-model-anchor a {
  color: #111;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  padding: 18px 20px;
  position: relative;
  text-transform: uppercase;
  white-space: nowrap;
}

.official-model-anchor a::after {
  background: var(--red);
  bottom: 0;
  content: "";
  height: 3px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
  width: calc(100% - 26px);
}

.official-model-anchor a:hover::after,
.official-model-anchor a.is-current::after {
  transform: translateX(-50%) scaleX(1);
}

.official-model-anchor a.is-current {
  color: var(--red);
}

.model-keypoints {
  background: #111;
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.model-keypoints article {
  background: #181a1f;
  display: grid;
  gap: 8px;
  min-height: 145px;
  padding: 34px;
}

.model-keypoints span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.model-keypoints strong {
  color: #fff;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.05;
}

.model-variant-section {
  background: linear-gradient(180deg, #fff 0%, #f4f5f7 100%);
}

.official-variant-showcase {
  gap: 24px;
}

.official-variant-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(17, 19, 23, 0.08);
  overflow: hidden;
}

.official-variant-media {
  background: linear-gradient(180deg, #f6f7f9 0%, #e9edf2 100%);
  min-height: 300px;
}

.official-variant-media img {
  height: 300px;
  padding: 26px;
}

.official-variant-card .variant-card-body h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin: 0;
}

.official-variant-card .variant-card-body strong {
  color: var(--red);
  font-size: clamp(28px, 3.8vw, 48px);
}

.model-color-section {
  background: #fff;
}

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

.model-color-grid article {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 24px;
  text-align: center;
}

.model-color-grid img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  transition: transform 260ms ease;
  width: 100%;
}

.model-color-grid article:hover img {
  transform: translateY(-6px) scale(1.04);
}

.model-color-grid strong {
  font-size: 18px;
}

.official-feature-stack {
  background: #111;
}

.official-feature-stack article {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  min-height: 560px;
}

.official-feature-stack article.reverse {
  grid-template-columns: .82fr 1.18fr;
}

.official-feature-stack article.reverse img {
  order: 2;
}

.official-feature-stack img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  width: 100%;
}

.official-feature-stack article > div {
  align-content: center;
  background: #111;
  color: #fff;
  display: grid;
  gap: 16px;
  padding: clamp(34px, 6vw, 82px);
}

.official-feature-stack h2 {
  color: #fff;
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: .95;
  margin: 0;
}

.official-feature-stack span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
}

.model-brochure-cta {
  align-items: center;
  background: var(--red);
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: clamp(32px, 6vw, 70px) 7vw;
}

.model-brochure-cta p {
  color: rgba(255, 255, 255, 0.72);
}

.model-brochure-cta h2 {
  color: #fff;
  font-size: clamp(34px, 5vw, 70px);
  line-height: .95;
  margin: 8px 0;
}

.model-brochure-cta span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  font-weight: 800;
}

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

.spec-card-grid div {
  background: var(--soft);
  padding: 28px;
}

.spec-card-grid span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.spec-card-grid strong {
  font-size: 24px;
}

.official-price-table {
  display: grid;
  gap: 18px;
}

.official-price-table.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.used-cars-social {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: space-between;
}

.used-cars-social h2 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
}

.social-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.center-actions {
  justify-content: center;
  margin-top: 28px;
}

.used-cars-grid,
.used-home-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.used-car-card,
.used-mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(17, 19, 23, 0.08);
  overflow: hidden;
}

.used-car-media {
  background: linear-gradient(180deg, #f8f9fb, #eef1f5);
  display: block;
  position: relative;
}

.used-car-media img,
.used-mini-card img {
  height: 220px;
  object-fit: contain;
  padding: 24px;
  width: 100%;
}

.used-car-media span {
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  left: 16px;
  padding: 8px 12px;
  position: absolute;
  text-transform: uppercase;
  top: 16px;
}

.used-car-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.used-car-body p,
.used-mini-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.used-car-body h2 {
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}

.used-car-body strong,
.used-mini-card small {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.used-car-body dl {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.used-car-body dl div {
  background: var(--soft);
  padding: 12px;
}

.used-car-body dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.used-car-body dd {
  font-weight: 900;
  margin: 4px 0 0;
}

.used-car-body > span {
  color: #3b4048;
  line-height: 1.55;
}

.used-car-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.used-mini-card {
  display: grid;
}

.used-mini-card div {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.used-mini-card strong {
  font-size: 22px;
}

.variant-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.variant-card {
  position: relative;
}

.variant-card::before {
  background: var(--red);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.variant-card-media {
  background: linear-gradient(180deg, #f7f8fa 0%, #edf0f4 100%);
  min-height: 230px;
  overflow: hidden;
}

.variant-card-media img {
  height: 230px;
  object-fit: contain;
  padding: 26px;
  transition: transform 260ms ease;
  width: 100%;
}

.variant-card:hover .variant-card-media img {
  transform: translateY(-8px) scale(1.04);
}

.variant-card-body {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.variant-card-body p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.variant-card-body ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.variant-card-body li {
  border-top: 1px solid var(--line);
  color: #2f343b;
  font-size: 14px;
  font-weight: 700;
  padding-top: 10px;
}

.variant-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.mmv-feature-band {
  background: var(--red);
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mmv-feature-band div {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 18px;
  font-weight: 900;
  min-height: 120px;
  padding: 34px;
}

.contact-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

.polished-contact {
  align-items: start;
  background:
    radial-gradient(circle at 12% 0%, rgba(215, 25, 32, 0.08), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f6f7f9 100%);
}

.contact-info-stack {
  display: grid;
  gap: 18px;
}

.contact-panel,
.official-form {
  background: var(--soft);
  border: 1px solid rgba(17, 19, 23, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(17, 19, 23, 0.08);
  padding: 34px;
}

.contact-panel {
  display: grid;
  gap: 16px;
}

.contact-panel.dark {
  background: #111;
  color: #fff;
}

.contact-panel.highlight {
  background: #111;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.contact-panel.highlight::after {
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.9), rgba(215, 25, 32, 0));
  content: "";
  height: 130px;
  position: absolute;
  right: -50px;
  top: -62px;
  transform: rotate(14deg);
  width: 220px;
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-panel span {
  color: var(--muted);
  line-height: 1.6;
}

.contact-panel.highlight span {
  color: rgba(255, 255, 255, 0.72);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.contact-mini-grid article {
  background: #fff;
  border: 1px solid rgba(17, 19, 23, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(17, 19, 23, 0.06);
  display: grid;
  gap: 8px;
  padding: 20px;
}

.contact-mini-grid strong {
  color: #111;
  font-size: 18px;
}

.contact-mini-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.official-form {
  display: grid;
  gap: 16px;
}

.polished-contact .official-form {
  background: #fff;
  grid-column: auto;
}

.official-form h2 {
  font-size: 34px;
  margin: 0 0 8px;
}

.official-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.official-form input,
.official-form select,
.official-form textarea,
.admin-login-card input,
.admin-grid input,
.admin-grid select,
.admin-grid textarea,
.admin-picker select,
.admin-variant-row input,
.admin-variant-row textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 48px;
  padding: 12px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.official-form input:focus,
.official-form select:focus,
.official-form textarea:focus,
.admin-login-card input:focus,
.admin-grid select:focus,
.admin-picker select:focus {
  border-color: rgba(215, 25, 32, 0.55);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.1);
  outline: 0;
}

.official-form textarea {
  min-height: 110px;
}

.form-privacy-note {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: -4px;
  text-transform: none;
}

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

.form-status {
  background: #fff;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  color: #222;
  font-weight: 800;
  margin: 0;
  padding: 14px 16px;
}

.rolling-cost-section {
  background:
    linear-gradient(180deg, #fff 0%, #f6f7f9 100%);
}

.rolling-cost-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
}

.rolling-cost-form {
  background: #fff;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rolling-cost-form h2,
.rolling-cost-form label:first-of-type {
  grid-column: 1 / -1;
}

.rolling-cost-result {
  background: #111;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(17, 19, 23, 0.16);
  color: #fff;
  display: grid;
  gap: 14px;
  padding: 28px;
}

.rolling-cost-total {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
}

.rolling-cost-result p,
.rolling-cost-total span {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.rolling-cost-result strong {
  font-size: 38px;
  line-height: 1.04;
}

.rolling-cost-result dl {
  display: grid;
  gap: 1px;
  margin: 0;
}

.rolling-cost-result dl div {
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 12px;
}

.rolling-cost-result dt,
.rolling-cost-result dd {
  margin: 0;
}

.rolling-cost-result dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rolling-cost-result dd {
  font-weight: 900;
  text-align: right;
}

.rolling-cost-result span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

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

.loan-flow article {
  background: var(--soft);
  padding: 34px;
}

.loan-flow article > span {
  color: var(--red);
  font-size: 40px;
  font-weight: 900;
}

.loan-flow h2 {
  font-size: 28px;
}

.mmv-footer {
  background: #f4f4f4;
  color: #111;
  display: block;
  gap: 0;
  padding: 0;
}

.mmv-footer-cta {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.mmv-footer-cta a {
  border-right: 1px solid var(--line);
  color: #111;
  font-weight: 900;
  min-width: 220px;
  padding: 22px;
  text-align: center;
  text-transform: uppercase;
}

.mmv-footer-cta a:hover {
  background: var(--red);
  color: #fff;
}

.mmv-footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 48px 64px;
}

.mmv-footer-grid h2 {
  font-size: 17px;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.mmv-footer-grid a,
.mmv-footer-grid p {
  color: #555d68;
  display: block;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px;
}

.visit-counter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  margin-top: 8px;
  padding: 9px 12px;
}

.visit-counter strong {
  color: var(--red);
}

.floating-actions {
  bottom: 22px;
  display: grid;
  gap: 10px;
  position: fixed;
  right: 22px;
  z-index: 80;
}

.floating-actions a {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(17, 19, 23, 0.12);
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(17, 19, 23, 0.16);
  color: #111;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  transition: box-shadow 220ms ease, transform 220ms ease;
  width: 58px;
}

.floating-actions a:hover {
  box-shadow: 0 20px 42px rgba(17, 19, 23, 0.2);
  transform: translateY(-3px);
}

.floating-actions a:first-child {
  background: var(--red);
  box-shadow: 0 16px 34px rgba(215, 25, 32, 0.32);
  color: #fff;
}

.floating-actions a:first-child:hover {
  box-shadow: 0 20px 42px rgba(215, 25, 32, 0.38);
}

.floating-actions a img {
  height: 32px;
  width: 32px;
}

.admin-shell {
  background: #f5f6f8;
  padding: 64px;
}

.admin-login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 70vh;
}

.admin-login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(17, 19, 23, 0.12);
  display: grid;
  gap: 16px;
  max-width: 460px;
  padding: 34px;
  width: 100%;
}

.admin-login-card h1 {
  font-size: 36px;
  margin: 0;
}

.admin-login-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.admin-login-card label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.admin-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-header h1 {
  font-size: 42px;
  margin: 0 0 10px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-section-switcher {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-section-switcher button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(17, 19, 23, 0.05);
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 16px;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.admin-section-switcher button.active,
.admin-section-switcher button:hover {
  border-color: rgba(215, 25, 32, 0.42);
  box-shadow: 0 18px 36px rgba(215, 25, 32, 0.12);
  transform: translateY(-1px);
}

.admin-section-switcher strong {
  color: #111;
  font-size: 15px;
}

.admin-section-switcher span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.primary-btn,
.secondary-btn {
  align-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
}

.primary-btn {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.secondary-btn {
  background: #fff;
}

.danger-btn {
  color: var(--red);
  margin-top: 16px;
}

.admin-status {
  background: #fff;
  border-left: 4px solid var(--red);
  padding: 14px 18px;
}

.admin-products {
  display: grid;
  gap: 24px;
}

.admin-settings-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.25fr 0.75fr;
  margin-bottom: 28px;
}

.admin-settings-grid.single {
  grid-template-columns: 1fr;
}

.admin-settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.admin-used-cars {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 28px;
  padding: 24px;
}

.admin-actions.compact {
  margin: 0;
}

.admin-used-list {
  display: grid;
  gap: 18px;
}

.admin-used-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.admin-user-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-user-list div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.admin-user-list span {
  color: var(--muted);
  font-size: 13px;
}

.admin-leads {
  background: #fff;
  border: 1px solid var(--line);
  margin: 0 0 28px;
  padding: 24px;
}

.admin-section-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-section-title h2 {
  font-size: 28px;
  margin: 0;
}

.admin-drive-note {
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  padding: 14px 16px;
}

.admin-image-picker {
  align-content: start;
}

.admin-image-picker input[type="file"] {
  cursor: pointer;
  padding: 13px;
}

.admin-image-picker small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: none;
}

.admin-image-preview {
  align-items: center;
  background: #f4f5f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  min-height: 140px;
  overflow: hidden;
  padding: 10px;
}

.admin-image-preview img {
  height: 130px;
  object-fit: contain;
  width: 100%;
}

.admin-media-preview video {
  border-radius: 8px;
  max-height: 180px;
  width: 100%;
}

.admin-news-guide {
  display: grid;
  gap: 10px;
}

.admin-news-guide p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
  margin: 0;
}

.admin-news-guide a {
  color: var(--red);
  font-weight: 900;
}

.admin-picker {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px;
  text-transform: uppercase;
}

.lead-table {
  display: grid;
  gap: 10px;
}

.lead-table article {
  align-items: center;
  background: var(--soft);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 130px 170px 1.4fr 150px 72px;
  padding: 14px;
}

.lead-table a {
  color: var(--red);
  font-weight: 900;
}

.lead-table span,
.lead-table small,
.lead-table time {
  color: var(--muted);
  font-size: 13px;
}

.lead-table button {
  border: 1px solid var(--line);
  color: var(--red);
  cursor: pointer;
  font-weight: 900;
  min-height: 38px;
}

.admin-empty {
  color: var(--muted);
  margin: 0;
}

.admin-product-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
}

.admin-product-heading {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 180px 1fr;
  margin-bottom: 22px;
}

.admin-product-heading img {
  height: 100px;
  object-fit: contain;
  width: 100%;
}

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

.admin-grid label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.admin-grid .wide {
  grid-column: span 2;
}

.admin-grid textarea {
  min-height: 96px;
}

.admin-variants {
  margin-top: 22px;
}

.admin-variant-head,
.admin-variant-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 0.8fr 0.75fr 1.1fr 1.1fr 80px;
  margin-bottom: 10px;
}

.admin-variant-row textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-variant-row button {
  border: 1px solid var(--line);
  color: var(--red);
  font-weight: 900;
}

@keyframes heroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 1180px) {
  .mmv-header {
    padding-left: 28px;
    padding-right: 28px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 24px;
  }

  .mmv-logo {
    grid-column: 1;
    grid-row: 1;
  }

  .mmv-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .mmv-header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .mmv-nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .mmv-mega {
    left: 0;
    transform: translate(0, 12px);
    width: min(900px, calc(100vw - 56px));
  }

  .mmv-has-mega:hover .mmv-mega,
  .mmv-has-mega:focus-within .mmv-mega {
    transform: translate(0, 0);
  }

  .model-strip,
  .price-overview-grid,
  .official-product-grid,
  .used-cars-grid,
  .used-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .official-price-table.large,
  .variant-showcase,
  .contact-layout,
  .rolling-cost-layout,
  .admin-section-switcher,
  .admin-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .mmv-mega,
  .mmv-simple-menu {
    display: none;
  }

  .product-official-hero {
    background: #111;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 70px 36px;
  }

  .product-official-hero img {
    max-height: 320px;
  }

  .car-showcase,
  .official-product-grid,
  .price-overview-grid,
  .used-cars-grid,
  .used-home-grid,
  .rolling-cost-layout,
  .official-price-table.large,
  .variant-showcase,
  .official-feature-stack article,
  .official-feature-stack article.reverse,
  .contact-layout,
  .loan-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mmv-news-grid {
    grid-template-columns: 1fr;
  }

  .mmv-section,
  .mmv-service-banner,
  .mmv-closing {
    padding-left: 36px;
    padding-right: 36px;
  }

  .mmv-inner-hero {
    padding-left: 36px;
    padding-right: 36px;
  }

  .model-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 28px;
    padding-right: 28px;
  }

  .mmv-service-banner,
  .closing-cta,
  .used-cars-social {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .mmv-header {
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  .mmv-logo {
    grid-column: 1;
  }

  .mmv-logo {
    flex-wrap: wrap;
  }

  .mmv-nav {
    gap: 16px;
    overflow-x: auto;
  }

  .mmv-mega {
    display: none;
  }

  .mmv-header-actions {
    display: none;
  }

  .mmv-hero {
    height: 560px;
    min-height: 560px;
  }

  .mmv-hero-caption {
    left: 22px;
    right: 22px;
  }

  .mmv-hero-caption h1 {
    font-size: 38px;
  }

  .mmv-hero-dots {
    left: 22px;
  }

  .model-strip,
  .car-showcase,
  .price-overview-grid,
  .used-cars-grid,
  .used-home-grid,
  .mmv-news-grid,
  .official-product-grid,
  .product-official-hero,
  .spec-card-grid,
  .official-price-table.large,
  .variant-showcase,
  .mmv-feature-band,
  .model-keypoints,
  .model-color-grid,
  .official-feature-stack article,
  .official-feature-stack article.reverse,
  .contact-layout,
  .loan-flow,
  .mmv-footer-grid,
  .admin-grid,
  .admin-settings-grid,
  .contact-mini-grid {
    grid-template-columns: 1fr;
  }

  .model-strip {
    gap: 12px;
  }

  .model-strip,
  .mmv-section,
  .mmv-service-banner,
  .mmv-closing,
  .mmv-news-grid,
  .mmv-footer-grid,
  .admin-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mmv-section-heading h2,
  .mmv-inner-hero h1,
  .product-official-hero h1,
  .contact-panel h2,
  .mmv-service-banner h2,
  .mmv-closing h2 {
    font-size: 36px;
  }

  .mmv-section-heading p,
  .mmv-inner-hero p {
    font-size: 16px;
  }

  .rolling-cost-form,
  .rolling-cost-layout {
    grid-template-columns: 1fr;
  }

  .rolling-cost-result strong {
    font-size: 30px;
  }

  .rolling-cost-result {
    gap: 10px;
    padding: 20px;
  }

  .rolling-cost-result dl div {
    align-items: flex-start;
    border-radius: 6px;
    padding: 10px 11px;
  }

  .rolling-cost-result dt {
    font-size: 11px;
  }

  .rolling-cost-result dd {
    font-size: 14px;
  }

  .product-official-hero {
    background: #111;
    padding: 54px 20px;
  }

  .official-model-hero {
    min-height: 620px;
  }

  .official-model-hero picture::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.78) 66%, rgba(0, 0, 0, 0.92) 100%);
  }

  .official-model-hero picture img {
    object-position: center top;
  }

  .official-model-hero__content {
    align-content: end;
    min-height: 620px;
    padding: 260px 22px 44px;
  }

  .official-model-hero__content h1 {
    font-size: 44px;
  }

  .official-model-hero__content span {
    font-size: 17px;
  }

  .official-model-anchor {
    justify-content: flex-start;
    padding: 0 10px;
    top: 0;
  }

  .official-model-anchor a {
    padding: 15px 12px;
  }

  .model-keypoints article {
    min-height: 112px;
    padding: 22px;
  }

  .official-variant-media,
  .official-variant-media img {
    min-height: 230px;
  }

  .official-variant-media img {
    height: 230px;
  }

  .official-feature-stack article.reverse img {
    order: 0;
  }

  .official-feature-stack img {
    min-height: 310px;
  }

  .official-feature-stack article {
    min-height: auto;
  }

  .official-feature-stack article > div {
    padding: 32px 22px;
  }

  .model-brochure-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .product-official-hero img {
    max-height: 260px;
  }

  .mmv-service-banner,
  .closing-cta,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .admin-section-switcher {
    grid-template-columns: 1fr;
  }

  .official-form,
  .admin-grid .wide {
    grid-column: auto;
  }

  .admin-product-heading,
  .admin-variant-head,
  .admin-variant-row,
  .lead-table article {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-buttons,
  .contact-actions,
  .social-actions,
  .used-car-actions,
  .form-actions,
  .official-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mmv-btn,
  .official-form button,
  .form-actions a,
  .hero-actions a,
  .cta-buttons a,
  .contact-actions a,
  .social-actions a,
  .used-car-actions a {
    width: 100%;
  }
}

/* Keep the full desktop header inside common 1280-1500px laptop viewports. */
@media (min-width: 1181px) and (max-width: 1500px) {
  .mmv-header {
    gap: 10px;
    grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr) auto;
    padding: 12px 16px;
  }

  .mmv-logo {
    gap: 10px;
  }

  .mmv-logo img {
    height: 48px;
    width: 138px;
  }

  .mmv-dealer-text {
    padding-left: 10px;
  }

  .mmv-logo strong {
    font-size: 16px;
    white-space: nowrap;
  }

  .mmv-logo small {
    font-size: 10px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mmv-nav {
    gap: clamp(7px, 0.75vw, 12px);
    min-width: 0;
  }

  .mmv-nav > a,
  .mmv-nav-item > a {
    font-size: 10px;
    white-space: nowrap;
  }

  .mmv-header-actions {
    gap: 7px;
  }

  .mmv-header-actions a {
    font-size: 10px;
    min-height: 44px;
    padding: 8px 9px;
  }

  .header-social-link {
    min-width: auto;
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  .header-social-link span {
    display: inline-block;
  }

  .header-social-link img {
    height: 20px;
    width: 20px;
  }
}

@media (max-width: 480px) {
  .mmv-logo {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .mmv-logo img {
    height: 44px;
    width: 150px;
  }

  .mmv-dealer-text {
    border-left: 0;
    border-top: 1px solid #c6c9cf;
    padding-left: 0;
    padding-top: 10px;
  }

  .mmv-logo strong {
    font-size: 20px;
  }

  .mmv-logo small {
    font-size: 12px;
  }

  .mmv-nav > a,
  .mmv-nav-item > a {
    font-size: 12px;
    min-height: 42px;
    white-space: nowrap;
  }

  .mmv-hero-caption h1 {
    font-size: 32px;
  }

  .mmv-hero-caption span,
  .mmv-inner-hero span {
    font-size: 15px;
  }

  .model-strip img,
  .price-overview-grid img,
  .official-price-table img {
    height: 150px;
  }

  .car-showcase img,
  .official-product-image img,
  .variant-card-media img {
    height: 180px;
    padding: 18px;
  }

  .contact-panel,
  .official-form,
  .admin-product-card,
  .admin-leads {
    padding: 22px;
  }

  .floating-actions {
    bottom: 14px;
    gap: 8px;
    right: 14px;
  }

  .floating-actions a {
    font-size: 12px;
    height: 54px;
    width: 54px;
  }
}

/* Mobile/tablet image fit overrides for the PHP hosting build. */
@media (max-width: 1180px) {
  .mmv-hero {
    height: auto;
    min-height: 0;
  }

  .mmv-hero-track,
  .mmv-hero-slide {
    height: clamp(520px, 72vw, 700px);
    position: relative;
  }

  .mmv-hero-track {
    display: block;
    overflow: hidden;
  }

  .mmv-hero-slide {
    inset: auto;
    position: absolute;
  }

  .mmv-hero-slide img {
    object-position: center bottom;
    transform: none;
  }

  .model-strip img,
  .car-showcase img,
  .official-product-image img,
  .price-overview-grid img,
  .official-price-table img,
  .used-car-media img,
  .used-mini-card img,
  .variant-card-media img,
  .product-official-hero img {
    object-fit: contain;
    object-position: center center;
  }

  .variant-card > img {
    display: none;
  }

  .model-strip a,
  .official-product-card,
  .used-mini-card,
  .used-car-card {
    min-width: 0;
  }
}

@media (max-width: 980px) {
  .mmv-header {
    min-height: 0;
  }

  .mmv-hero-track,
  .mmv-hero-slide {
    height: 620px;
  }

  .mmv-hero-slide::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  }

  .mmv-hero-caption {
    bottom: 62px;
    left: 36px;
    max-width: min(620px, calc(100vw - 72px));
    right: 36px;
    top: auto;
    transform: none;
  }

  .mmv-hero-caption h1 {
    font-size: clamp(36px, 8vw, 56px);
    max-width: 640px;
  }

  .hero-actions {
    max-width: 520px;
  }

  .product-official-hero {
    gap: 24px;
  }

  .product-official-hero img {
    max-height: 360px;
    width: min(100%, 720px);
  }
}

@media (max-width: 760px) {
  .mmv-logo img {
    height: auto;
    max-height: 58px;
    width: min(190px, 52vw);
  }

  .mmv-dealer-text {
    max-width: 100%;
  }

  .mmv-logo small {
    overflow-wrap: anywhere;
  }

  .mmv-hero-track,
  .mmv-hero-slide {
    height: 560px;
  }

  .mmv-hero-slide img {
    object-fit: cover;
    object-position: 58% bottom;
  }

  .model-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-strip img {
    height: 132px;
    padding: 6px;
  }

  .car-showcase img,
  .official-product-image img,
  .price-overview-grid img,
  .official-price-table img,
  .used-car-media img,
  .used-mini-card img {
    height: 210px;
    padding: 18px;
  }

  .car-showcase article,
  .official-product-card {
    min-height: 0;
  }

  .used-car-media img,
  .used-mini-card img {
    background: linear-gradient(180deg, #f8f9fb, #eef1f5);
  }

  .variant-card-media {
    min-height: 0;
  }

  .variant-card-media img {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .mmv-hero-track,
  .mmv-hero-slide {
    height: 520px;
  }

  .mmv-hero-caption {
    bottom: 46px;
    left: 20px;
    right: 20px;
  }

  .mmv-hero-caption h1 {
    font-size: clamp(30px, 9.5vw, 42px);
    line-height: 1.02;
    margin-bottom: 18px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .mmv-btn {
    min-height: 44px;
    padding: 12px 16px;
  }

  .model-strip {
    padding-top: 18px;
  }

  .model-strip img {
    height: 112px;
  }

  .car-showcase img,
  .official-product-image img,
  .price-overview-grid img,
  .official-price-table img,
  .used-car-media img,
  .used-mini-card img,
  .variant-card-media img {
    height: 190px;
    padding: 14px;
  }

  .product-official-hero img {
    max-height: 260px;
  }
}

@media (max-width: 390px) {
  .mmv-hero-track,
  .mmv-hero-slide {
    height: 500px;
  }

  .mmv-hero-caption h1 {
    font-size: 29px;
  }

  .model-strip img {
    height: 98px;
  }

  .car-showcase img,
  .official-product-image img,
  .price-overview-grid img,
  .official-price-table img,
  .used-car-media img,
  .used-mini-card img,
  .variant-card-media img {
    height: 172px;
  }
}

/* Contact page polish: compact layout and clear floating buttons. */
.contact-page-layout {
  align-items: start;
  gap: 20px;
  grid-template-columns: minmax(300px, 0.86fr) minmax(460px, 1.14fr);
  padding: 24px 40px 92px;
}

.contact-page-layout .contact-panel,
.contact-page-layout .official-form {
  border-radius: 10px;
  min-height: 0;
}

.contact-page-layout .contact-panel {
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 247, 249, 0.96)),
    radial-gradient(circle at top right, rgba(215, 25, 32, 0.12), transparent 32%);
  gap: 16px;
  padding: 30px;
}

.contact-page-layout .contact-panel h1 {
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
  margin: 0;
}

.contact-intro {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
}

.contact-page-layout .contact-panel dl {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 4px 0 0;
}

.contact-page-layout .contact-panel dl div {
  background: #fff;
  border: 1px solid rgba(17, 19, 23, 0.08);
  border-radius: 10px;
  padding: 13px;
}

.contact-page-layout .contact-panel dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-page-layout .contact-panel dd {
  color: #111;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  margin-top: 6px;
}

.contact-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.contact-action-row .mmv-btn {
  min-width: 150px;
}

.contact-page-layout .official-form {
  align-content: start;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 19, 23, 0.09);
  gap: 11px;
  padding: 28px 30px;
}

.contact-page-layout .official-form h2 {
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.08;
  margin-bottom: 4px;
}

.contact-page-layout .official-form textarea {
  min-height: 76px;
}

.contact-page-layout .official-form button {
  margin-top: 2px;
  min-height: 50px;
}

@media (min-width: 761px) {
  body:has(.contact-page-layout) .floating-actions {
    bottom: 28px;
    right: 28px;
  }
}

@media (max-width: 980px) {
  .contact-page-layout {
    grid-template-columns: 1fr;
    padding: 24px 24px 104px;
  }
}

@media (max-width: 640px) {
  .contact-page-layout {
    padding: 18px 14px 110px;
  }

  .contact-page-layout .contact-panel,
  .contact-page-layout .official-form {
    border-radius: 8px;
    padding: 24px 20px;
  }

  .contact-page-layout .contact-panel dl {
    grid-template-columns: 1fr;
  }

  .contact-action-row {
    flex-direction: column;
  }

  .contact-action-row .mmv-btn {
    width: 100%;
  }

  .contact-page-layout .official-form h2 {
    font-size: 30px;
  }
}

/* Social feed, official-style motion and stable responsive embeds. */
.social-connection-intro {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.social-connection-intro h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin: 4px 0 12px;
}

.social-connection-intro > div:first-child > p:last-child {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 780px;
}

.social-connection-status {
  display: grid;
  flex: 0 0 min(340px, 100%);
  gap: 8px;
}

.social-connection-status span {
  background: #fff1f2;
  border: 1px solid #f1c7ca;
  border-radius: 6px;
  color: #a51b22;
  font-size: 13px;
  font-weight: 900;
  padding: 11px 13px;
}

.social-connection-status span.is-ready {
  background: #edf8f0;
  border-color: #b8dec2;
  color: #18733a;
}

.social-connection-status small {
  color: var(--muted);
  font-weight: 750;
  padding: 4px 2px 0;
}

.social-connection-form {
  display: grid;
  gap: 24px;
}

.social-platform-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.social-platform-card > header {
  align-items: center;
  background: #f5f6f8;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
  padding: 20px 24px;
}

.facebook-platform > header {
  box-shadow: inset 4px 0 0 #1877f2;
}

.tiktok-platform > header {
  box-shadow: inset 4px 0 0 #111;
}

.social-platform-card > header img {
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.social-platform-card > header p,
.social-platform-card > header h2 {
  margin: 0;
}

.social-platform-card > header p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-platform-card > header h2 {
  font-size: 24px;
}

.admin-toggle-line {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  padding: 10px 12px;
  text-transform: none;
}

.admin-toggle-line input {
  accent-color: var(--red);
  height: 18px;
  width: 18px;
}

.social-fields {
  padding: 24px;
}

.social-fields label > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-transform: none;
}

.social-field-help {
  background: #f8f9fb;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  padding: 16px 24px;
}

.social-field-help code {
  color: #111;
  font-weight: 900;
}

.social-save-row {
  align-items: center;
  background: #111;
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 22px 24px;
}

.social-save-row p {
  color: rgba(255, 255, 255, .72);
  line-height: 1.5;
  margin: 0;
  max-width: 760px;
}

.social-save-row button {
  flex: 0 0 auto;
  min-width: 230px;
}

.mmv-header {
  transition: box-shadow 220ms ease, min-height 220ms ease, padding 220ms ease;
}

.mmv-header.is-scrolled {
  box-shadow: 0 16px 40px rgba(17, 19, 23, 0.13);
}

.motion-ready .motion-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms ease var(--motion-delay, 0ms), transform 680ms ease var(--motion-delay, 0ms);
}

.motion-ready .motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .news-card.motion-reveal.is-visible:hover,
.motion-ready .used-mini-card.motion-reveal.is-visible:hover,
.motion-ready .official-variant-card.motion-reveal.is-visible:hover,
.motion-ready .model-color-grid article.motion-reveal.is-visible:hover {
  transform: translateY(-5px);
}

.official-feature-stack article {
  overflow: hidden;
}

.official-feature-stack article img {
  transition: transform 900ms cubic-bezier(.2, .7, .2, 1);
}

.official-feature-stack article:hover img {
  transform: scale(1.025);
}

.official-model-hero picture img {
  animation: modelHeroSettle 1.4s cubic-bezier(.2, .7, .2, 1) both;
}

.official-model-hero__content > * {
  animation: modelHeroText 720ms ease both;
}

.official-model-hero__content > *:nth-child(2) { animation-delay: 80ms; }
.official-model-hero__content > *:nth-child(3) { animation-delay: 150ms; }
.official-model-hero__content > *:nth-child(4) { animation-delay: 220ms; }
.official-model-hero__content > *:nth-child(5) { animation-delay: 290ms; }

@keyframes modelHeroSettle {
  from { opacity: .72; transform: scale(1.055); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes modelHeroText {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.social-news-card {
  align-content: start;
}

.social-news-placeholder {
  position: relative;
  align-content: center;
  background: #111;
  color: #fff;
  display: grid;
  gap: 8px;
  height: 100%;
  justify-items: center;
  padding: 26px;
  text-align: center;
  width: 100%;
}

.social-news-placeholder.has-thumbnail {
  background: #111;
  padding: 0;
}

.social-news-thumbnail {
  inset: 0;
  object-fit: cover !important;
  position: absolute;
  width: 100%;
  height: 100%;
}

.social-news-source {
  align-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .78));
  display: grid;
  gap: 6px;
  inset: 0;
  justify-items: center;
  padding: 26px;
  position: absolute;
  text-align: center;
  z-index: 1;
}

.social-news-placeholder.has-thumbnail .social-news-source {
  align-content: end;
}

.social-news-placeholder.facebook {
  background: #1877f2;
}

.social-news-source > img {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .18));
  height: 56px;
  object-fit: contain;
  width: 56px;
}

.social-news-placeholder strong {
  font-size: 23px;
}

.social-news-placeholder small {
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
}

.news-card-media.is-embed {
  align-items: flex-start;
  aspect-ratio: auto;
  background: #eef0f3;
  min-height: 520px;
  padding: 18px;
}

.social-post-embed {
  background: #fff;
  border: 0;
  display: block;
  height: 500px;
  margin: auto;
  max-width: 100%;
  width: 500px;
}

.social-post-embed.facebook {
  height: 680px;
}

.social-post-embed.tiktok {
  aspect-ratio: 9 / 16;
  height: 100%;
  max-width: none;
  width: 100%;
}

.tiktok-player-shell {
  aspect-ratio: 9 / 16;
  display: block;
  margin: auto;
  max-width: 420px;
  overflow: hidden;
  width: 100%;
}

.news-card-link {
  align-items: center;
  color: var(--red);
  display: inline-flex;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  margin-top: 4px;
  text-transform: uppercase;
}

.news-card-link::after {
  content: "\2192";
  margin-left: 8px;
  transition: transform 180ms ease;
}

.news-card-link:hover::after {
  transform: translateX(4px);
}

@media (max-width: 760px) {
  .social-connection-intro,
  .social-save-row {
    align-items: stretch;
    flex-direction: column;
  }

  .social-connection-status,
  .social-save-row button {
    flex-basis: auto;
    width: 100%;
  }

  .social-platform-card > header {
    grid-template-columns: auto 1fr;
  }

  .social-platform-card > header .admin-toggle-line {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .social-fields {
    padding: 18px;
  }

  .mmv-hero-controls {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .mmv-hero-arrow {
    height: 36px;
    width: 36px;
  }

  .mmv-hero-dots {
    flex: 1;
  }

  .mmv-hero-dots button {
    flex: 1;
    width: auto;
  }

  .news-card-media.is-embed {
    min-height: 460px;
    padding: 10px;
  }

  .social-post-embed {
    height: 520px;
  }

  .social-post-embed.facebook {
    height: 620px;
  }

  .social-post-embed.tiktok {
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .motion-ready .motion-reveal {
    opacity: 1;
    transform: none;
  }
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.35);
  outline-offset: 3px;
}

.thank-you-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 25, 32, 0.1), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f4f5f7 100%);
  display: grid;
  min-height: 62vh;
  padding: 70px 24px 110px;
  place-items: center;
}

.thank-you-card {
  background: #fff;
  border: 1px solid rgba(17, 19, 23, 0.08);
  border-radius: 12px;
  box-shadow: 0 20px 52px rgba(17, 19, 23, 0.1);
  display: grid;
  gap: 18px;
  max-width: 880px;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  width: min(100%, 880px);
}

.thank-you-card h1 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1;
  margin: 0;
}

.thank-you-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 680px;
}

.thank-you-card .contact-action-row {
  justify-content: center;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .thank-you-page {
    padding: 34px 14px 110px;
  }

  .thank-you-card {
    text-align: left;
  }

  .thank-you-card .contact-action-row {
    justify-content: stretch;
  }
}

/* Premium thank-you conversion page. */
.thank-you-page {
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28)),
    url("/images/hero/xpander-hero.jpg") center / cover no-repeat;
  min-height: calc(100vh - 96px);
  padding: clamp(30px, 5vw, 72px) clamp(16px, 4vw, 56px) 118px;
}

.thank-you-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.26);
  gap: 0;
  max-width: 1180px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  width: min(100%, 1180px);
}

.thank-you-hero {
  background:
    linear-gradient(135deg, #ffffff 0%, #f5f6f8 62%, rgba(215, 25, 32, 0.08) 100%);
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(30px, 5vw, 60px);
  position: relative;
}

.thank-you-hero::before {
  background: var(--red);
  content: "";
  height: 6px;
  inset: 0 0 auto;
  position: absolute;
}

.thank-you-check {
  align-items: center;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(215, 25, 32, 0.3);
  display: inline-flex;
  height: 76px;
  justify-content: center;
  width: 76px;
}

.thank-you-check::after {
  border: solid #fff;
  border-width: 0 5px 5px 0;
  content: "";
  height: 26px;
  margin-top: -4px;
  transform: rotate(45deg);
  width: 14px;
}

.thank-you-card h1 {
  color: #111;
  font-size: clamp(42px, 6.4vw, 86px);
  letter-spacing: 0;
}

.thank-you-card p:not(.eyebrow) {
  color: #555c66;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.52;
  margin: 0;
  max-width: 780px;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.thank-you-actions .mmv-btn {
  min-height: 54px;
}

.mmv-btn.light {
  background: #fff;
  border: 1px solid rgba(17, 19, 23, 0.14);
  color: #111;
}

.thank-you-details {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thank-you-details article {
  background: #fff;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 26px 30px;
}

.thank-you-details strong {
  color: #111;
  font-size: 18px;
}

.thank-you-details span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.thank-you-steps {
  background: #111;
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thank-you-steps div {
  align-items: center;
  background: #17191d;
  display: flex;
  gap: 14px;
  min-height: 94px;
  padding: 22px 30px;
}

.thank-you-steps span {
  align-items: center;
  background: var(--red);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.thank-you-steps strong {
  font-size: 16px;
  line-height: 1.35;
}

.document-hero {
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28)),
    url("/images/hero/triton-hero.png") center / cover no-repeat;
  color: #fff;
}

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

.document-card {
  background: #fff;
  border: 1px solid rgba(17, 19, 23, 0.08);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  overflow: hidden;
  position: relative;
  transition: box-shadow 260ms ease, transform 260ms ease;
}

.document-card:hover {
  box-shadow: 0 22px 60px rgba(17, 19, 23, 0.12);
  transform: translateY(-4px);
}

.document-card-media {
  align-items: center;
  background: #f4f5f7;
  display: flex;
  min-height: 282px;
  overflow: hidden;
  padding: 26px;
}

.document-card img {
  height: 230px;
  object-fit: contain;
  transition: transform 320ms ease;
  width: 100%;
}

.document-card:hover img {
  transform: scale(1.055);
}

.document-card-body {
  display: grid;
  gap: 14px;
  padding: 28px 30px 30px;
}

.document-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.document-card h2 {
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
}

.document-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.document-card small {
  color: #8a9099;
  font-size: 13px;
  line-height: 1.4;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding: 0;
}

.document-actions .mmv-btn {
  min-height: 46px;
  padding-left: 20px;
  padding-right: 20px;
}

.document-seo-copy {
  background: #111;
  color: #fff;
}

.document-seo-copy h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 820px;
}

.document-seo-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.65;
  max-width: 920px;
}

@media (max-width: 820px) {
  .thank-you-details,
  .thank-you-steps,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .thank-you-details article,
  .thank-you-steps div {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .thank-you-page {
    min-height: auto;
    padding: 18px 12px 100px;
  }

  .thank-you-card {
    border-radius: 12px;
  }

  .thank-you-hero {
    padding: 28px 20px;
  }

  .thank-you-check {
    height: 62px;
    width: 62px;
  }

  .thank-you-check::after {
    height: 20px;
    width: 11px;
  }

  .thank-you-actions {
    width: 100%;
  }

  .thank-you-actions .mmv-btn {
    width: 100%;
  }

  .thank-you-details article,
  .thank-you-steps div {
    padding: 20px;
  }
}

@media (max-width: 980px) {
  .news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-detail-header,
  .news-body,
  .news-detail-actions {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 640px) {
  .news-card-grid {
    grid-template-columns: 1fr;
  }

  .news-card-body {
    padding: 20px;
  }

  .news-card-body strong {
    font-size: 21px;
  }

  .news-empty-panel {
    padding: 24px 18px;
  }

  .news-detail {
    border-radius: 0;
    margin-left: -12px;
    margin-right: -12px;
  }

  .news-detail-header {
    padding: 28px 20px 22px;
  }

  .news-detail-header span,
  .news-body {
    font-size: 16px;
  }

  .news-body {
    padding: 24px 20px 10px;
  }

  .news-detail-actions {
    padding: 20px 20px 30px;
  }

  .news-detail-actions .mmv-btn {
    width: 100%;
  }
}

/* AI assistant */
.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

.ai-chat {
  bottom: 24px;
  position: fixed;
  right: 92px;
  z-index: 1200;
}

.ai-chat-launcher {
  align-items: center;
  background: #111;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
}

.ai-chat-symbol {
  border: 2px solid #fff;
  border-radius: 9px;
  height: 22px;
  position: relative;
  width: 25px;
}

.ai-chat-symbol::after {
  border-left: 6px solid #fff;
  border-top: 5px solid transparent;
  bottom: -5px;
  content: "";
  left: 4px;
  position: absolute;
}

.ai-chat-panel {
  background: #fff;
  border: 1px solid #dfe2e7;
  border-radius: 8px;
  bottom: 60px;
  box-shadow: 0 28px 80px rgba(12, 16, 24, 0.24);
  display: grid;
  max-height: min(680px, calc(100vh - 110px));
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(390px, calc(100vw - 24px));
}

.ai-chat-panel[hidden],
.ai-lead-form[hidden] {
  display: none;
}

.ai-chat-header {
  align-items: center;
  background: #111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.ai-chat-header > div {
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: 9px;
}

.ai-chat-header strong,
.ai-chat-header small {
  grid-column: 2;
}

.ai-chat-header small {
  color: rgba(255, 255, 255, 0.66);
  margin-top: 2px;
}

.ai-chat-header button,
.ai-lead-title button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 28px;
  height: 36px;
  line-height: 1;
  width: 36px;
}

.ai-online-dot {
  align-self: center;
  background: #34c759;
  border-radius: 50%;
  grid-row: 1 / 3;
  height: 9px;
  width: 9px;
}

.ai-chat-messages {
  background: #f5f6f8;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  overflow-y: auto;
  padding: 16px;
}

.ai-message {
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 88%;
  padding: 10px 12px;
  white-space: pre-wrap;
}

.ai-message.assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e5e9;
}

.ai-message.user {
  align-self: flex-end;
  background: #d71920;
  color: #fff;
}

.ai-message.loading {
  color: #6e737b;
  font-style: italic;
}

.ai-quick-prompts {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 11px 14px 4px;
}

.ai-quick-prompts button {
  background: #fff;
  border: 1px solid #d7dbe0;
  border-radius: 18px;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 12px;
  min-height: 34px;
  padding: 0 12px;
}

.ai-message-form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding: 10px 14px 14px;
}

.ai-message-form textarea {
  border: 1px solid #ccd1d8;
  border-radius: 8px;
  max-height: 100px;
  min-height: 44px;
  padding: 11px;
  resize: vertical;
  width: 100%;
}

.ai-message-form button,
.ai-lead-form > button {
  background: #d71920;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 0 16px;
}

.ai-lead-form {
  background: #fff;
  border-top: 1px solid #dfe2e7;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  max-height: 410px;
  overflow-y: auto;
  padding: 15px;
}

.ai-lead-title,
.ai-lead-note,
.ai-lead-form > button,
.ai-lead-form > small {
  grid-column: 1 / -1;
}

.ai-lead-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.ai-lead-form label {
  color: #626873;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
}

.ai-lead-form input,
.ai-lead-form select,
.ai-lead-form textarea {
  border: 1px solid #ccd1d8;
  border-radius: 6px;
  min-height: 40px;
  padding: 8px;
  width: 100%;
}

.ai-lead-form > small,
.ai-chat-panel > footer {
  color: #7a8089;
  font-size: 11px;
  line-height: 1.4;
}

.ai-chat-panel > footer {
  border-top: 1px solid #eceef1;
  padding: 8px 14px;
  text-align: center;
}

/* AI admin */
.admin-ai-overview,
.crm-header {
  align-items: center;
  background: #111;
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 28px;
}

.admin-ai-overview h2,
.crm-header h2 {
  font-size: 38px;
  margin: 5px 0 8px;
}

.admin-ai-overview p:not(.eyebrow),
.crm-header p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
  max-width: 760px;
}

.admin-ai-status {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid #737984;
  display: grid;
  gap: 5px;
  min-width: 260px;
  padding: 16px;
}

.admin-ai-status.is-ready {
  border-left-color: #34c759;
}

.admin-ai-status small {
  color: rgba(255, 255, 255, 0.68);
}

.admin-toggle-card {
  align-items: center;
  background: #f5f6f8;
  border: 1px solid #dfe2e7;
  border-radius: 8px;
  display: flex !important;
  gap: 13px !important;
  padding: 16px;
}

.admin-toggle-card input {
  min-height: auto;
  width: 20px;
}

.admin-toggle-card span {
  display: grid;
  gap: 3px;
}

.admin-toggle-card small,
.ai-admin-form label > small {
  color: #727985;
  font-size: 12px;
  font-weight: 600;
}

/* CRM */
.crm-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

.crm-metric {
  background: #fff;
  border: 1px solid #dfe2e7;
  border-top: 4px solid #8a9099;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.crm-metric span {
  color: #626873;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-metric strong {
  font-size: 24px;
}

.crm-metric.is-active {
  box-shadow: 0 0 0 2px #111 inset;
}

.crm-metric.crm-hot { border-top-color: #d71920; }
.crm-metric.crm-warm { border-top-color: #e79a13; }
.crm-metric.crm-cool { border-top-color: #1677d2; }
.crm-metric.crm-stock { border-top-color: #6e737b; }
.crm-metric.crm-due { border-top-color: #111; }

.crm-filter {
  align-items: end;
  background: #fff;
  border: 1px solid #dfe2e7;
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.crm-filter label {
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

.crm-filter select {
  border: 1px solid #ccd1d8;
  min-height: 40px;
  padding: 7px 10px;
}

.crm-filter .crm-filter-check {
  align-items: center;
  display: flex;
  min-height: 40px;
}

.crm-filter .secondary-button {
  margin: 0;
  min-height: 40px;
  min-width: 120px;
}

.crm-filter > a {
  color: #626873;
  font-size: 13px;
  padding: 12px 0;
  text-decoration: underline;
}

.crm-list {
  display: grid;
  gap: 16px;
}

.crm-lead {
  background: #fff;
  border: 1px solid #dfe2e7;
  border-left: 5px solid #6e737b;
  box-shadow: 0 10px 30px rgba(17, 19, 23, 0.06);
}

.crm-lead.crm-hot { border-left-color: #d71920; }
.crm-lead.crm-warm { border-left-color: #e79a13; }
.crm-lead.crm-cool { border-left-color: #1677d2; }
.crm-lead.is-new { box-shadow: 0 0 0 2px rgba(215, 25, 32, 0.14), 0 10px 30px rgba(17, 19, 23, 0.08); }

.crm-lead-summary {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(180px, 1fr) minmax(130px, auto) minmax(180px, auto);
  padding: 18px 20px;
}

.crm-status-badge {
  background: #eef0f3;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
  text-transform: uppercase;
}

.crm-hot .crm-status-badge { background: #fff0f0; color: #b51016; }
.crm-warm .crm-status-badge { background: #fff7e7; color: #946000; }
.crm-cool .crm-status-badge { background: #edf6ff; color: #0c5fa8; }

.crm-lead-summary h3 {
  font-size: 20px;
  margin: 0 0 3px;
}

.crm-lead-summary p {
  color: #737983;
  font-size: 12px;
  margin: 0;
}

.crm-lead-summary p strong { color: #d71920; }

.crm-phone {
  font-size: 17px;
  font-weight: 900;
}

.crm-next {
  display: grid;
  gap: 3px;
}

.crm-next span {
  color: #737983;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-next.is-due strong { color: #d71920; }

.crm-lead-facts {
  background: #f7f8fa;
  border-bottom: 1px solid #e6e8eb;
  border-top: 1px solid #e6e8eb;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crm-lead-facts > span {
  background: #f7f8fa;
  display: grid;
  gap: 5px;
  padding: 13px 18px;
}

.crm-lead-facts small {
  color: #7a8089;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-lead-facts strong {
  font-size: 13px;
  line-height: 1.45;
}

.crm-lead-actions {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.3fr 0.7fr;
  padding: 20px;
}

.crm-edit-form,
.crm-contact-form {
  align-content: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.crm-contact-form {
  background: #f5f6f8;
  border-left: 3px solid #111;
  grid-template-columns: 1fr;
  padding: 16px;
}

.crm-edit-form label,
.crm-contact-form label {
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.crm-edit-form input,
.crm-edit-form select,
.crm-edit-form textarea,
.crm-contact-form input,
.crm-contact-form textarea {
  background: #fff;
  border: 1px solid #ccd1d8;
  border-radius: 6px;
  min-height: 42px;
  padding: 9px;
  width: 100%;
}

.crm-note-field,
.crm-edit-form button {
  grid-column: 1 / -1;
}

.crm-lead-actions .primary-button,
.crm-lead-actions .secondary-button {
  justify-self: start;
  margin: 0;
  min-height: 42px;
  min-width: 150px;
}

.crm-contact-form small {
  color: #737983;
  font-size: 11px;
}

.crm-history {
  background: #fff;
  border: 1px solid #dfe2e7;
  margin-top: 24px;
}

.crm-history-heading {
  align-items: center;
  background: #f5f6f8;
  border-bottom: 1px solid #dfe2e7;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.crm-history-heading h3 {
  margin: 3px 0 0;
}

.crm-history-heading > span {
  background: #111;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
}

.crm-history-list article {
  align-items: start;
  border-top: 1px solid #eceef1;
  display: grid;
  gap: 12px;
  grid-template-columns: 135px 80px minmax(0, 1fr) 130px;
  padding: 14px 18px;
}

.crm-history-list article:first-child {
  border-top: 0;
}

.crm-history-list p {
  line-height: 1.5;
  margin: 0;
}

.crm-history-list time,
.crm-history-list small {
  color: #737983;
  font-size: 12px;
}

.crm-history-list strong {
  color: var(--red);
  font-size: 12px;
  text-transform: uppercase;
}

.crm-history-empty {
  margin: 0;
  padding: 18px;
}

/* Compact CRM master list and selected customer profile. */
.crm-header-buttons,
.crm-profile-quick-actions,
.crm-form-actions,
.crm-profile-footer {
  align-items: center;
  display: flex;
  gap: 10px;
}

.crm-header-buttons form,
.crm-profile-footer form {
  margin: 0;
}

.crm-header-buttons .primary-button,
.crm-header-buttons .secondary-button,
.crm-form-actions .primary-button,
.crm-form-actions .secondary-button {
  margin: 0;
  min-height: 42px;
}

.crm-search-field {
  flex: 1 1 320px;
}

.crm-filter input[type="search"] {
  border: 1px solid #ccd1d8;
  min-height: 40px;
  min-width: 260px;
  padding: 7px 10px;
}

.crm-workspace {
  background: #fff;
  border: 1px solid #dfe2e7;
  display: grid;
  grid-template-columns: minmax(330px, 410px) minmax(0, 1fr);
  min-height: 680px;
}

.crm-directory {
  border-right: 1px solid #dfe2e7;
  min-width: 0;
}

.crm-directory > header {
  align-items: center;
  background: #f4f5f7;
  border-bottom: 1px solid #dfe2e7;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.crm-directory > header span {
  color: #747b85;
  font-size: 12px;
}

.crm-directory-list {
  max-height: 900px;
  overflow-y: auto;
}

.crm-directory-row {
  align-items: center;
  border-bottom: 1px solid #eceef1;
  border-left: 4px solid transparent;
  display: grid;
  gap: 11px;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 12px 14px 12px 10px;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease;
}

.crm-directory-row:hover {
  background: #f7f8fa;
}

.crm-directory-row.crm-hot { border-left-color: #d71920; }
.crm-directory-row.crm-warm { border-left-color: #e79a13; }
.crm-directory-row.crm-cool { border-left-color: #1677d2; }
.crm-directory-row.crm-stock { border-left-color: #6e737b; }

.crm-directory-row.is-selected {
  background: #17191d;
  color: #fff;
}

.crm-directory-row.is-new::after {
  background: #d71920;
  border: 2px solid #fff;
  border-radius: 50%;
  content: "";
  height: 9px;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 9px;
}

.crm-list-status {
  color: #656c76;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-list-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.crm-list-main strong,
.crm-list-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-list-main strong { font-size: 15px; }
.crm-list-main small { color: #717883; font-size: 11px; }
.is-selected .crm-list-main small,
.is-selected .crm-list-status { color: rgba(255, 255, 255, .68); }

.crm-list-date {
  color: #6f7680;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.crm-list-date.is-due { color: #d71920; }
.is-selected .crm-list-date { color: #fff; }

.crm-profile-panel {
  min-width: 0;
  padding: 24px;
}

.crm-profile-empty {
  color: #6f7680;
  display: grid;
  min-height: 420px;
  place-content: center;
  text-align: center;
}

.crm-profile-empty strong {
  color: #111;
  font-size: 24px;
}

.crm-profile-header {
  align-items: flex-start;
  border-bottom: 1px solid #e3e5e9;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 18px;
}

.crm-profile-header h2 {
  font-size: 28px;
  margin: 4px 0 5px;
}

.crm-profile-header small {
  color: #757c86;
  line-height: 1.45;
}

.crm-profile-quick-actions {
  align-items: flex-end;
  flex-direction: column;
}

.crm-profile-quick-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.crm-profile-quick-actions a {
  border: 1px solid #cdd1d7;
  font-size: 12px;
  font-weight: 900;
  min-width: 70px;
  padding: 11px 14px;
  text-align: center;
  text-transform: uppercase;
}

.crm-profile-quick-actions a:first-child {
  background: #d71920;
  border-color: #d71920;
  color: #fff;
}

.crm-profile-prepare-form {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  width: auto;
}

.crm-profile-prepare-button {
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  margin: 0;
  min-height: 36px;
  padding: 8px 12px;
  white-space: nowrap;
  width: auto;
}

.crm-profile-form,
.crm-contact-compact {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-profile-form label,
.crm-contact-compact label {
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.crm-profile-form input,
.crm-profile-form select,
.crm-profile-form textarea,
.crm-contact-compact input,
.crm-contact-compact select,
.crm-contact-compact textarea {
  background: #fff;
  border: 1px solid #cdd1d7;
  border-radius: 6px;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

.crm-form-wide {
  grid-column: 1 / -1;
}

.crm-contact-panel {
  background: #f5f6f8;
  border-left: 4px solid #111;
  margin-top: 24px;
  padding: 18px;
}

.crm-contact-panel > header {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.crm-contact-panel h3 { margin: 3px 0 0; }
.crm-contact-panel > header > span { color: #737a84; font-size: 11px; }
.crm-contact-compact .secondary-button { justify-self: start; margin: 0; }

.crm-profile-footer {
  align-items: flex-start;
  border-top: 1px solid #e3e5e9;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
}

.crm-profile-danger {
  justify-content: flex-end;
}

.crm-delete-button {
  background: transparent;
  border: 1px solid #d71920;
  color: #b20f15;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 11px 14px;
  white-space: nowrap;
}

.crm-delete-button:hover {
  background: #d71920;
  color: #fff;
}

@media (max-width: 980px) {
  .crm-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crm-workspace { grid-template-columns: 1fr; }
  .crm-directory { border-bottom: 1px solid #dfe2e7; border-right: 0; }
  .crm-directory-list { max-height: 360px; }
  .crm-lead-summary { grid-template-columns: auto 1fr; }
  .crm-phone, .crm-next { grid-column: 2; }
  .crm-lead-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-lead-actions { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .ai-chat {
    bottom: 15px;
    right: 78px;
  }
  .ai-chat-launcher strong { display: none; }
  .ai-chat-launcher {
    border-radius: 50%;
    height: 52px;
    justify-content: center;
    padding: 0;
    width: 52px;
  }
  .ai-chat-panel {
    bottom: 64px;
    max-height: calc(100dvh - 100px);
    position: fixed;
    right: 12px;
  }
  .ai-chat-messages { min-height: 180px; }
  .ai-lead-form { grid-template-columns: 1fr; }
  .ai-lead-form label { grid-column: 1; }
  .admin-ai-overview,
  .crm-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
  .admin-ai-overview h2,
  .crm-header h2 { font-size: 30px; }
  .admin-ai-status { min-width: 0; width: 100%; }
  .crm-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-filter { align-items: stretch; flex-direction: column; }
  .crm-filter input[type="search"] { min-width: 0; width: 100%; }
  .crm-header-buttons { align-items: stretch; flex-direction: column; width: 100%; }
  .crm-header-buttons .primary-button,
  .crm-header-buttons .secondary-button { justify-content: center; width: 100%; }
  .crm-profile-panel { padding: 16px; }
  .crm-profile-header,
  .crm-contact-panel > header,
  .crm-profile-footer { align-items: stretch; flex-direction: column; }
  .crm-profile-form,
  .crm-contact-compact { grid-template-columns: 1fr; }
  .crm-profile-form label,
  .crm-contact-compact label,
  .crm-form-wide { grid-column: 1; }
  .crm-profile-quick-actions { align-items: stretch; }
  .crm-profile-quick-actions-row { width: 100%; }
  .crm-profile-quick-actions-row a { flex: 1; }
  .crm-profile-quick-actions a { flex: 1; }
  .crm-profile-footer form,
  .crm-delete-button { width: 100%; }
  .crm-lead-summary { gap: 11px; padding: 15px; }
  .crm-phone, .crm-next { grid-column: 1 / -1; }
  .crm-lead-facts { grid-template-columns: 1fr; }
  .crm-lead-actions { padding: 15px; }
  .crm-edit-form { grid-template-columns: 1fr; }
  .crm-edit-form label,
  .crm-edit-form button { grid-column: 1; }
  .crm-history-list article {
    grid-template-columns: 1fr;
  }

  .crm-history-list article > * {
    margin: 0;
  }
}

/* Test-drive booking: dedicated conversion page. */
.test-drive-page {
  background: #f4f5f7;
  overflow: hidden;
}

.test-drive-hero {
  background: #080a0d;
  color: #fff;
  height: 430px;
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.test-drive-hero > img {
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  position: absolute;
  width: 100%;
}

.test-drive-hero__shade {
  background:
    linear-gradient(90deg, rgba(4, 6, 9, .92) 0%, rgba(4, 6, 9, .72) 38%, rgba(4, 6, 9, .18) 72%, rgba(4, 6, 9, .05) 100%),
    linear-gradient(0deg, rgba(4, 6, 9, .48), transparent 48%);
  inset: 0;
  position: absolute;
}

.test-drive-hero__content {
  align-content: center;
  display: grid;
  height: 100%;
  margin: 0 auto;
  max-width: 1280px;
  padding: 42px 48px;
  position: relative;
  z-index: 1;
}

.test-drive-hero__content > p,
.test-drive-booking__intro > p,
.test-drive-form > header > p,
.test-drive-support p {
  color: #e31b23;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.test-drive-hero__content h1 {
  color: #fff;
  font-size: 56px;
  line-height: 1.03;
  margin: 0;
  max-width: 670px;
}

.test-drive-hero__content > span {
  color: rgba(255, 255, 255, .82);
  display: block;
  font-size: 18px;
  line-height: 1.55;
  margin-top: 18px;
  max-width: 590px;
}

.test-drive-hero__content > a {
  align-items: center;
  background: #e31b23;
  border: 1px solid #e31b23;
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  margin-top: 26px;
  min-height: 50px;
  padding: 0 22px;
  text-transform: uppercase;
  width: fit-content;
}

.test-drive-hero__content > a::after {
  content: "\2192";
  font-size: 20px;
  margin-left: 12px;
}

.test-drive-process {
  background: #fff;
  border-bottom: 1px solid #e1e4e8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0 max(32px, calc((100% - 1280px) / 2));
}

.test-drive-process > div {
  align-items: center;
  border-right: 1px solid #e1e4e8;
  display: flex;
  gap: 16px;
  min-height: 104px;
  padding: 22px 30px;
}

.test-drive-process > div:first-child {
  border-left: 1px solid #e1e4e8;
}

.test-drive-process b {
  color: #d71920;
  font-size: 28px;
  line-height: 1;
}

.test-drive-process span {
  display: grid;
  gap: 4px;
}

.test-drive-process strong {
  color: #111318;
  font-size: 16px;
}

.test-drive-process small {
  color: #6e747d;
  font-size: 13px;
}

.test-drive-booking {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr);
  margin: 0 auto;
  max-width: 1280px;
  padding: 72px 48px 82px;
}

.test-drive-booking__intro {
  min-width: 0;
}

.test-drive-booking__intro h2,
.test-drive-form h2,
.test-drive-support h2 {
  color: #111318;
  font-size: 38px;
  line-height: 1.12;
  margin: 0;
}

.test-drive-booking__intro > span,
.test-drive-form > header > span,
.test-drive-support > div > span {
  color: #69717b;
  display: block;
  line-height: 1.55;
  margin-top: 14px;
}

.test-drive-model-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.test-drive-model {
  cursor: pointer;
  min-width: 0;
  position: relative;
}

.test-drive-model > input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.test-drive-model > span {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(17, 19, 24, .06);
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 112px;
  overflow: hidden;
  padding: 10px 14px 10px 10px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.test-drive-model img {
  align-self: center;
  grid-row: 1 / 3;
  height: 86px;
  object-fit: contain;
  width: 108px;
}

.test-drive-model b {
  align-self: end;
  color: #15171b;
  font-size: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.test-drive-model small {
  color: #747b84;
  font-size: 12px;
  margin-top: 4px;
}

.test-drive-model:hover > span {
  box-shadow: 0 12px 30px rgba(17, 19, 24, .11);
  transform: translateY(-2px);
}

.test-drive-model > input:focus-visible + span {
  outline: 3px solid rgba(33, 110, 210, .32);
  outline-offset: 2px;
}

.test-drive-model > input:checked + span {
  border-color: #d71920;
  box-shadow: 0 12px 32px rgba(215, 25, 32, .13);
}

.test-drive-model > input:checked + span::after {
  align-items: center;
  background: #d71920;
  border-radius: 50%;
  color: #fff;
  content: "\2713";
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
}

.test-drive-form {
  align-self: start;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(17, 19, 24, .1);
  display: grid;
  gap: 20px;
  padding: 34px;
}

.test-drive-form > header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 22px;
}

.test-drive-form > header > p {
  margin-bottom: 10px;
}

.test-drive-form h2 {
  font-size: 32px;
}

.test-drive-form > .danger-note {
  margin: 0;
}

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

.test-drive-fields > label,
.test-drive-contact-method {
  color: #30343a;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.test-drive-fields input,
.test-drive-fields select,
.test-drive-fields textarea {
  appearance: none;
  background: #fff;
  border: 1px solid #cfd4da;
  border-radius: 5px;
  color: #111318;
  font: inherit;
  font-weight: 600;
  min-height: 50px;
  padding: 11px 13px;
  width: 100%;
}

.test-drive-fields select {
  background-image:
    linear-gradient(45deg, transparent 50%, #626973 50%),
    linear-gradient(135deg, #626973 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 34px;
}

.test-drive-fields input:focus,
.test-drive-fields select:focus,
.test-drive-fields textarea:focus {
  border-color: #d71920;
  box-shadow: 0 0 0 3px rgba(215, 25, 32, .1);
  outline: 0;
}

.test-drive-note {
  grid-column: 1 / -1;
}

.test-drive-note textarea {
  min-height: 96px;
  resize: vertical;
}

.test-drive-contact-method {
  border: 0;
  padding: 0;
}

.test-drive-contact-method legend {
  color: #30343a;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.test-drive-contact-method {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.test-drive-contact-method legend {
  grid-column: 1 / -1;
}

.test-drive-contact-method label {
  cursor: pointer;
  min-width: 0;
}

.test-drive-contact-method input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.test-drive-contact-method span {
  align-items: center;
  border: 1px solid #cfd4da;
  border-radius: 5px;
  display: flex;
  font-size: 13px;
  justify-content: center;
  min-height: 50px;
  padding: 8px;
}

.test-drive-contact-method input:checked + span {
  background: #111318;
  border-color: #111318;
  color: #fff;
}

.test-drive-consent {
  align-items: flex-start;
  color: #4d535b;
  cursor: pointer;
  display: grid;
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
  line-height: 1.5;
}

.test-drive-consent input {
  accent-color: #d71920;
  height: 18px;
  margin: 1px 0 0;
  width: 18px;
}

.test-drive-privacy {
  color: #777e87;
  font-size: 12px;
  line-height: 1.45;
  margin: -8px 0 0 30px;
}

.test-drive-privacy a {
  color: #111318;
  text-decoration: underline;
}

.test-drive-form > button {
  background: #d71920;
  border: 1px solid #d71920;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  min-height: 56px;
  padding: 12px 20px;
  text-transform: uppercase;
  transition: background .18s ease, border-color .18s ease;
}

.test-drive-form > button:hover {
  background: #b91319;
  border-color: #b91319;
}

.test-drive-support {
  align-items: center;
  background: #111318;
  color: #fff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 46px max(48px, calc((100% - 1184px) / 2));
}

.test-drive-support h2 {
  color: #fff;
  font-size: 30px;
}

.test-drive-support > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

@media (max-width: 1080px) {
  .test-drive-booking {
    gap: 32px;
    grid-template-columns: 1fr;
    max-width: 860px;
  }

  .test-drive-model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .test-drive-model > span {
    grid-template-columns: 1fr;
    grid-template-rows: 92px auto auto;
    padding: 10px;
    text-align: center;
  }

  .test-drive-model img {
    grid-row: 1;
    height: 88px;
    justify-self: center;
    width: 100%;
  }

  .test-drive-model b {
    justify-self: center;
  }

}

@media (max-width: 760px) {
  .test-drive-hero {
    height: 360px;
    min-height: 360px;
  }

  .test-drive-hero > img {
    object-position: 58% center;
  }

  .test-drive-hero__shade {
    background: linear-gradient(90deg, rgba(4, 6, 9, .94), rgba(4, 6, 9, .52)), linear-gradient(0deg, rgba(4, 6, 9, .48), transparent);
  }

  .test-drive-hero__content {
    padding: 32px 22px;
  }

  .test-drive-hero__content h1 {
    font-size: 38px;
    max-width: 440px;
  }

  .test-drive-hero__content > span {
    font-size: 16px;
    max-width: 430px;
  }

  .test-drive-process {
    grid-template-columns: 1fr;
    padding: 0 22px;
  }

  .test-drive-process > div,
  .test-drive-process > div:first-child {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid #e1e4e8;
    min-height: 78px;
    padding: 16px 0;
  }

  .test-drive-process > div:first-child {
    border-top: 0;
  }

  .test-drive-booking {
    padding: 52px 18px 64px;
  }

  .test-drive-booking__intro h2 {
    font-size: 32px;
  }

  .test-drive-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-drive-form {
    padding: 26px 20px;
  }

  .test-drive-form h2 {
    font-size: 28px;
  }

  .test-drive-fields {
    grid-template-columns: 1fr;
  }

  .test-drive-note {
    grid-column: 1;
  }

  .test-drive-support {
    align-items: stretch;
    flex-direction: column;
    padding: 40px 22px 110px;
  }

  .test-drive-support h2 {
    font-size: 28px;
  }

  .test-drive-support > div:last-child {
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .test-drive-hero__content h1 {
    font-size: 34px;
  }

  .test-drive-model > span {
    grid-template-rows: 82px auto auto;
    min-height: 154px;
  }

  .test-drive-model img {
    height: 78px;
  }

  .test-drive-model b {
    font-size: 14px;
  }
}

/* CRM v2: compact customer directory with a dedicated test-drive workflow. */
.crm-header.crm-header-v2 {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe2e7;
  border-left: 5px solid #d71920;
  color: #111;
  margin-bottom: 14px;
  padding: 22px 24px;
}

.crm-header.crm-header-v2 h2 {
  font-size: 30px;
  margin: 3px 0 7px;
}

.crm-header.crm-header-v2 p:not(.eyebrow) {
  color: #69707a;
  font-size: 13px;
  max-width: 680px;
}

.crm-view-tabs {
  background: #17191d;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.crm-view-tabs a {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe2e7;
  color: #17191d;
  display: flex;
  justify-content: space-between;
  min-height: 60px;
  padding: 12px 16px;
}

.crm-view-tabs a:hover {
  background: #f5f6f8;
}

.crm-view-tabs a.is-active {
  background: #17191d;
  border-color: #17191d;
  color: #fff;
}

.crm-view-tabs span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-view-tabs strong {
  font-size: 22px;
}

.crm-status-filter {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.crm-status-filter a {
  background: #eef0f3;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #505761;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 11px;
  text-transform: uppercase;
}

.crm-status-filter a strong {
  margin-left: 4px;
}

.crm-status-filter a.is-active {
  background: #111;
  color: #fff;
}

.crm-status-filter a.crm-hot:not(.is-active) { border-color: #d71920; color: #b51218; }
.crm-status-filter a.crm-warm:not(.is-active) { border-color: #e79a13; color: #855800; }
.crm-status-filter a.crm-cool:not(.is-active) { border-color: #1677d2; color: #0d5b9f; }
.crm-status-filter a.crm-stock:not(.is-active) { border-color: #777e88; }

.crm-filter.crm-filter-v2 {
  border-radius: 6px;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.crm-workspace.crm-workspace-v2 {
  border-radius: 8px;
  grid-template-columns: minmax(350px, 400px) minmax(0, 1fr);
  min-height: 640px;
  overflow: hidden;
}

.crm-workspace-v2 .crm-directory > header {
  min-height: 51px;
}

.crm-workspace-v2 .crm-directory-list {
  max-height: 1050px;
}

@media (min-width: 981px) {
  .crm-workspace-v2 .crm-directory {
    align-self: start;
    max-height: calc(100vh - 36px);
    position: sticky;
    top: 18px;
  }

  .crm-workspace-v2 .crm-directory-list {
    max-height: calc(100vh - 88px);
    overscroll-behavior: contain;
  }
}

.crm-workspace-v2 .crm-directory-row {
  gap: 10px;
  grid-template-columns: 66px minmax(0, 1fr) 72px;
  min-height: 88px;
  padding: 12px 12px 12px 8px;
}

.crm-list-badges {
  align-items: flex-start;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.crm-list-badges small {
  color: #6b727c;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-type-badge,
.crm-profile-type {
  background: #edf0f4;
  border-radius: 3px;
  color: #49515c;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  padding: 6px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.crm-type-badge.is-test-drive,
.crm-profile-type.is-test-drive {
  background: #fff0f0;
  color: #b40f16;
}

.crm-workspace-v2 .crm-list-main {
  gap: 3px;
}

.crm-workspace-v2 .crm-list-main strong {
  font-size: 15px;
}

.crm-workspace-v2 .crm-list-main small {
  color: #333941;
  font-size: 12px;
  font-weight: 800;
}

.crm-workspace-v2 .crm-list-main em {
  color: #757c86;
  font-size: 10px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-workspace-v2 .crm-list-date {
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.crm-workspace-v2 .crm-list-date strong {
  color: #24282e;
  font-size: 13px;
}

.crm-workspace-v2 .crm-list-date small {
  color: #7b818a;
  font-size: 9px;
}

.crm-workspace-v2 .crm-list-date.is-due strong {
  color: #d71920;
}

.crm-directory-row.is-selected .crm-list-badges small,
.crm-directory-row.is-selected .crm-list-main small,
.crm-directory-row.is-selected .crm-list-main em,
.crm-directory-row.is-selected .crm-list-date strong,
.crm-directory-row.is-selected .crm-list-date small {
  color: rgba(255, 255, 255, .76);
}

.crm-directory-row.is-selected .crm-type-badge {
  background: #fff;
  color: #111;
}

.crm-profile-panel {
  padding: 22px;
}

.crm-profile-type {
  display: inline-flex;
}

.crm-profile-summary {
  background: #f3f5f7;
  border: 1px solid #e0e3e7;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.crm-profile-summary > span {
  background: #fff;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 13px;
}

.crm-profile-summary small,
.crm-test-drive-card small {
  color: #777e88;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-profile-summary strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-customer-need {
  background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
  border: 1px solid #efc9cb;
  border-left: 5px solid #d71920;
  border-radius: 7px;
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px 18px;
}

.crm-customer-need > header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.crm-customer-need h3,
.crm-customer-need p {
  margin: 0;
}

.crm-customer-need h3 {
  font-size: 18px;
  line-height: 1.25;
}

.crm-customer-need > header > span {
  background: #fff0f0;
  border: 1px solid #f1c3c5;
  border-radius: 999px;
  color: #b40f16;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
}

.crm-customer-need > p {
  color: #252a31;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: normal;
}

.crm-customer-need.is-empty {
  background: #f6f7f8;
  border-color: #dfe2e7;
  border-left-color: #a7adb6;
}

.crm-customer-need.is-empty > p {
  color: #747b85;
  font-weight: 650;
}

.crm-test-drive-card {
  background: #111318;
  border-left: 5px solid #d71920;
  color: #fff;
  margin-bottom: 18px;
  padding: 17px 18px;
}

.crm-test-drive-card > header {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 13px;
  padding-bottom: 12px;
}

.crm-test-drive-card h3 {
  font-size: 20px;
  margin: 2px 0 0;
}

.crm-test-drive-card > header > span {
  background: #d71920;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 11px;
  white-space: nowrap;
}

.crm-test-drive-card > div {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crm-test-drive-card > div > span {
  display: grid;
  gap: 5px;
}

.crm-test-drive-card small {
  color: rgba(255, 255, 255, .55);
}

.crm-test-drive-card strong {
  font-size: 12px;
  line-height: 1.35;
}

.crm-editor {
  border: 1px solid #dfe2e7;
  border-radius: 6px;
  margin-top: 18px;
}

.crm-editor > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style-position: inside;
  padding: 14px 16px;
}

.crm-editor[open] > summary {
  border-bottom: 1px solid #dfe2e7;
}

.crm-editor .crm-profile-form {
  padding: 16px;
}

.crm-test-drive-editor {
  background: #f5f6f8;
  border: 1px solid #d9dde2;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2px 0;
  padding: 14px;
}

.crm-test-drive-editor[hidden] {
  display: none;
}

.crm-test-drive-editor legend {
  font-size: 12px;
  font-weight: 900;
  padding: 0 6px;
}

.crm-contact-panel {
  border-radius: 6px;
}

.admin-customer-overview {
  margin-top: 18px;
}

.admin-customer-overview-heading {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-customer-overview-heading h2,
.admin-customer-overview-heading p {
  margin-bottom: 4px;
  margin-top: 0;
}

.admin-customer-kpis {
  border: 1px solid #e0e3e7;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-customer-kpis article {
  background: #f7f8fa;
  display: grid;
  gap: 4px;
  padding: 15px;
}

.admin-customer-kpis article.is-urgent {
  background: #fff0f0;
}

.admin-customer-kpis span,
.admin-customer-kpis small {
  color: #707680;
  font-size: 10px;
  font-weight: 800;
}

.admin-customer-kpis span {
  text-transform: uppercase;
}

.admin-customer-kpis strong {
  font-size: 26px;
}

.admin-customer-kpis article.is-urgent strong {
  color: #d71920;
}

.admin-customer-overview-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
}

.admin-pipeline h3,
.admin-due-list h3 {
  font-size: 16px;
  margin: 0 0 13px;
}

.admin-pipeline {
  display: grid;
  gap: 9px;
}

.admin-pipeline-row {
  align-items: center;
  color: #181b20;
  display: grid;
  gap: 12px;
  grid-template-columns: 105px minmax(0, 1fr) 46px;
}

.admin-pipeline-row > span {
  display: grid;
  gap: 2px;
}

.admin-pipeline-row strong {
  font-size: 12px;
}

.admin-pipeline-row small {
  color: #777e88;
  font-size: 10px;
}

.admin-pipeline-row i {
  background: #e8ebef;
  display: block;
  height: 9px;
  overflow: hidden;
}

.admin-pipeline-row i b {
  background: #777e88;
  display: block;
  height: 100%;
  width: max(2px, var(--pipeline));
}

.admin-pipeline-row.crm-hot i b { background: #d71920; }
.admin-pipeline-row.crm-warm i b { background: #e79a13; }
.admin-pipeline-row.crm-cool i b { background: #1677d2; }

.admin-pipeline-row em {
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.admin-due-list {
  border-left: 1px solid #e0e3e7;
  padding-left: 24px;
}

.admin-due-list > header {
  align-items: baseline;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.admin-due-list > header a {
  color: #d71920;
  font-size: 11px;
  font-weight: 900;
}

.admin-due-list > a {
  align-items: center;
  border-top: 1px solid #e5e7ea;
  color: #17191d;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 10px 0;
}

.admin-due-list > a > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-due-list > a strong {
  font-size: 12px;
}

.admin-due-list > a small {
  color: #777e88;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-due-list time {
  color: #d71920;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .crm-workspace.crm-workspace-v2 {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .crm-profile-summary,
  .crm-test-drive-card > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .crm-view-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-workspace.crm-workspace-v2 {
    grid-template-columns: 1fr;
  }

  .crm-workspace-v2 .crm-directory-list {
    max-height: 420px;
  }

  .admin-customer-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-customer-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-due-list {
    border-left: 0;
    border-top: 1px solid #e0e3e7;
    padding-left: 0;
    padding-top: 18px;
  }
}

@media (max-width: 720px) {
  .admin-sidebar {
    align-items: center;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
    position: sticky;
    scrollbar-width: none;
    top: 0;
    white-space: nowrap;
    z-index: 120;
  }

  .admin-nav-group {
    display: contents;
  }

  .admin-nav-group-label {
    display: none;
  }

  .admin-nav-account {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
  }

  .admin-sidebar::-webkit-scrollbar {
    display: none;
  }

  .admin-sidebar strong {
    display: none;
  }

  .admin-sidebar a {
    border: 1px solid #343434;
    border-radius: 5px;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 40px;
    padding: 9px 12px;
  }

  .crm-header.crm-header-v2 {
    padding: 18px;
  }

  .crm-header.crm-header-v2 h2 {
    font-size: 26px;
  }

  .crm-filter.crm-filter-v2 {
    gap: 10px;
  }

  .crm-filter.crm-filter-v2 .crm-search-field {
    flex: 0 0 auto;
    width: 100%;
  }

  .crm-filter.crm-filter-v2 label,
  .crm-filter.crm-filter-v2 .secondary-button {
    width: 100%;
  }

  .crm-view-tabs a {
    min-height: 54px;
    padding: 10px 12px;
  }

  .crm-view-tabs span {
    font-size: 10px;
  }

  .crm-view-tabs strong {
    font-size: 18px;
  }

  .crm-status-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .crm-status-filter a {
    flex: 0 0 auto;
  }

  .crm-workspace-v2 .crm-directory-row {
    grid-template-columns: 62px minmax(0, 1fr) 64px;
  }

  .crm-profile-summary,
  .crm-test-drive-card > div,
  .crm-test-drive-editor {
    grid-template-columns: 1fr;
  }

  .crm-customer-need {
    padding: 14px;
  }

  .crm-customer-need > header {
    align-items: flex-start;
  }

  .crm-customer-need h3 {
    font-size: 16px;
  }

  .crm-test-drive-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .crm-profile-panel {
    padding: 14px;
  }

  .admin-customer-overview-heading {
    flex-direction: column;
  }

  .admin-customer-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-pipeline-row {
    grid-template-columns: 90px minmax(0, 1fr) 40px;
  }
}

/* Conversion flow: quote and test-drive requests in one short form. */
.header-quote-link {
  background: #d71920;
  border-color: #d71920 !important;
  color: #fff;
}

.quick-conversion-bar {
  display: none;
}

.unified-lead-form {
  scroll-margin-top: 110px;
}

.unified-lead-heading {
  display: grid;
  gap: 4px;
}

.unified-lead-heading h2 {
  font-size: clamp(27px, 2.25vw, 36px);
  line-height: 1.08;
  margin: 0;
}

.unified-lead-heading > span {
  color: #666e79;
  font-size: 13px;
  line-height: 1.45;
  text-transform: none;
}

.lead-intent-switch {
  border: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.lead-intent-switch legend,
.unified-test-drive-fields legend {
  color: #505761;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.lead-intent-switch label {
  cursor: pointer;
  display: block;
  position: relative;
}

.lead-intent-switch input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.lead-intent-switch label > span {
  background: #f3f4f6;
  border: 2px solid transparent;
  border-radius: 6px;
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 15px;
  text-transform: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.lead-intent-switch label > span strong {
  color: #15171a;
  font-size: 16px;
}

.lead-intent-switch label > span small {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.lead-intent-switch input:checked + span {
  background: #fff6f6;
  border-color: #d71920;
  box-shadow: inset 0 0 0 1px rgba(215, 25, 32, .08);
}

.unified-lead-fields,
.unified-test-drive-fields,
.unified-lead-more > div {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.unified-test-drive-fields {
  background: #f7f8fa;
  border: 1px solid #dfe2e7;
  border-radius: 6px;
  margin: 0;
  padding: 16px;
}

.unified-test-drive-fields[hidden] {
  display: none;
}

.unified-lead-more {
  background: #fafbfc;
  border: 1px solid #dfe2e7;
  border-radius: 8px;
  padding: 11px 12px 12px;
}

.unified-lead-more__title {
  color: #505761;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.unified-lead-more > div {
  border-top: 0;
  padding: 0;
}

.unified-lead-more textarea {
  min-height: 68px;
}

.contact-intent-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-intent-cards a {
  background: #fff;
  border: 1px solid #dfe2e7;
  border-left: 4px solid #d71920;
  border-radius: 6px;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.contact-intent-cards a:last-child {
  border-left-color: #16181c;
}

.contact-intent-cards strong {
  color: #111;
  font-size: 16px;
}

.contact-intent-cards span {
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 72px;
  }

  .quick-conversion-bar {
    background: #fff;
    border-top: 1px solid #d9dde2;
    bottom: 0;
    box-shadow: 0 -10px 28px rgba(17, 19, 23, .12);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: 0;
    padding: 8px;
    position: fixed;
    right: 0;
    z-index: 110;
  }

  .quick-conversion-bar a {
    align-items: center;
    background: #d71920;
    color: #fff;
    display: grid;
    min-height: 52px;
    padding: 7px 12px;
    text-align: center;
  }

  .quick-conversion-bar a:nth-child(2) {
    background: #16181c;
  }

  .quick-conversion-bar a:nth-child(3) {
    background: #34383f;
  }

  .quick-conversion-bar span {
    font-size: 14px;
    font-weight: 900;
  }

  .quick-conversion-bar small {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
  }

  .floating-actions {
    bottom: 82px;
  }

  .unified-lead-fields,
  .unified-test-drive-fields,
  .unified-lead-more > div,
  .contact-intent-cards {
    grid-template-columns: 1fr;
  }

  .lead-intent-switch label > span {
    min-height: 92px;
    padding: 12px;
  }

  .unified-lead-heading h2 {
    font-size: 28px;
  }
}

/* 2026-07-29: Bao gia AI, cap nhat chinh sach va cong ket noi */
.admin-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.admin-section-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:12px}
.admin-card textarea{width:100%}
.admin-card button[disabled]{opacity:.55;cursor:not-allowed}
@media(max-width:900px){.admin-two-columns{grid-template-columns:1fr}.admin-section-heading{display:block}}

/* Admin quote workspace v7 */
.quote-workspace{display:grid;grid-template-columns:minmax(330px,440px) minmax(560px,1fr);gap:22px;align-items:start}.quote-builder{position:sticky;top:18px;display:grid;gap:16px}.quote-type-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.quote-type-tab{border:1px solid #d9dde3;background:#fff;border-radius:12px;padding:12px 14px;font-weight:800;cursor:pointer}.quote-type-tab.is-active{background:#1f2429;color:#fff;border-color:#1f2429}.quote-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quote-field-grid .full{grid-column:1/-1}.quote-builder label{display:grid;gap:7px;font-weight:700;color:#343a40}.quote-builder input,.quote-builder select,.quote-builder textarea{width:100%;border:1px solid #ccd2d9;border-radius:10px;padding:11px 12px;background:#fff;color:#16191d}.quote-accessory-panel{border:1px solid #dfe3e8;border-radius:14px;overflow:hidden}.quote-accessory-toolbar{padding:12px;background:#f6f7f8;border-bottom:1px solid #e4e7eb}.quote-accessory-toolbar input{margin-bottom:6px}.quote-accessory-list{max-height:350px;overflow:auto}.quote-accessory-row{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto 62px;gap:10px;align-items:center;padding:11px 12px!important;border-bottom:1px solid #eceff2;font-weight:400!important;cursor:pointer}.quote-accessory-row:hover{background:#fafbfc}.quote-accessory-row input[type=checkbox]{width:18px;height:18px}.quote-accessory-main{display:grid;min-width:0}.quote-accessory-main strong{font-size:14px}.quote-accessory-main small{color:#727a83;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quote-accessory-price{font-size:13px;white-space:nowrap}.quote-accessory-qty{padding:7px!important;text-align:center}.quote-builder-actions{display:flex;flex-wrap:wrap;gap:10px}.quote-empty{padding:20px;color:#737b84}.quote-preview-shell{display:grid;gap:14px}.quote-preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px}.quote-preview{background:#eef0f2;border:1px solid #d6d9dc;box-shadow:0 16px 40px rgba(17,24,39,.12);max-width:840px;margin:auto;color:#1e2227}.quote-preview.is-empty{min-height:640px;display:grid;place-items:center}.quote-preview-empty{text-align:center;color:#68717a;padding:50px}.quote-pdf-header{height:138px;background:#23272b;border-bottom:4px solid #e60012;display:grid;grid-template-columns:250px 1fr;color:#fff}.quote-pdf-logo{background:#0d1012;display:grid;place-items:center;position:relative;overflow:hidden}.quote-pdf-logo:after{content:"";position:absolute;right:-18px;top:-20px;width:5px;height:190px;background:#e60012;transform:rotate(21deg)}.quote-pdf-logo img{width:170px;filter:brightness(0) invert(1);position:relative;z-index:1}.quote-pdf-brand{display:flex;flex-direction:column;justify-content:center;padding:0 48px}.quote-pdf-brand strong{font-size:34px;letter-spacing:.4px}.quote-pdf-brand span{font-size:15px;color:#c8cdd2;text-transform:uppercase;letter-spacing:1px}.quote-pdf-body{padding:30px 44px 36px}.quote-pdf-title-row{display:flex;justify-content:space-between;gap:22px;align-items:end}.quote-pdf-title h1{font-size:44px;margin:0;line-height:1;border-bottom:6px solid #e60012;padding-bottom:12px}.quote-pdf-meta{text-align:right;color:#606870;line-height:1.7}.quote-pdf-car-title{display:flex;gap:18px;align-items:baseline;margin:28px 0 18px;text-transform:uppercase}.quote-pdf-car-title strong{font-size:31px;color:#5b636b}.quote-pdf-car-title span{font-size:22px;font-weight:900}.quote-pdf-image{height:300px;border:1px solid #aeb5bc;border-radius:18px;overflow:hidden;position:relative;background:#fff}.quote-pdf-image img{width:100%;height:100%;object-fit:cover}.quote-pdf-image-label{position:absolute;left:18px;bottom:18px;background:#111518;color:#fff;padding:10px 16px;font-size:17px;font-weight:900;text-transform:uppercase}.quote-pdf-cards{display:grid;grid-template-columns:1fr 1.15fr;gap:18px;margin-top:28px}.quote-pdf-card{background:#fff;border:1px solid #cdd2d7;border-radius:18px;overflow:hidden;box-shadow:5px 6px 0 #c4c8cc}.quote-pdf-card h2{margin:0;background:#23272b;color:#fff;padding:17px 24px;font-size:24px}.quote-price-content{padding:24px 26px}.quote-price-line{padding:14px 0;border-bottom:1px solid #dde1e5}.quote-price-line:last-child{border:0}.quote-price-line small{display:block;font-weight:800;color:#60676e;font-size:17px}.quote-price-line strong{display:block;color:#e60012;font-size:28px;margin-top:7px}.quote-inclusive{text-align:center;font-size:12px}.quote-gift-list{list-style:none;padding:19px 28px;margin:0}.quote-gift-list li{padding:10px 0;border-bottom:1px solid #e5e8eb;display:flex;gap:10px;line-height:1.4}.quote-gift-list li:before{content:"";width:9px;height:9px;border-radius:50%;background:#e60012;margin-top:6px;flex:0 0 auto}.quote-pdf-extra{margin-top:24px;background:#fff;border:1px solid #d6dade;border-radius:14px;padding:18px}.quote-pdf-extra h3{margin:0 0 10px}.quote-pdf-extra table{width:100%;border-collapse:collapse;font-size:12px}.quote-pdf-extra th,.quote-pdf-extra td{padding:8px;border-bottom:1px solid #e8eaed;text-align:left}.quote-pdf-extra th:nth-child(n+3),.quote-pdf-extra td:nth-child(n+3){text-align:right}.quote-extra-total{text-align:right;margin:12px 0 0}.quote-rolling-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}.quote-rolling-breakdown span{display:grid;background:#f4f5f6;border-radius:8px;padding:8px}.quote-rolling-breakdown small{color:#6e757c}.quote-pdf-footer{height:66px;background:#111416;border-top:4px solid #e60012;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 44px;font-weight:800}.quote-pdf-footer small{font-weight:400;color:#abb1b7}.quote-warning{background:#fff4ce;color:#684d00;border:1px solid #f1d27c;border-radius:10px;padding:10px 12px;margin-top:12px}.quote-source-note{font-size:12px;color:#6a727a}.quote-switch{display:flex!important;grid-column:1/-1!important;align-items:center!important;grid-template-columns:auto 1fr!important}.quote-switch input{width:18px!important;height:18px}.quote-preview-toolbar .button-row{display:flex;gap:8px}
@media(max-width:1180px){.quote-workspace{grid-template-columns:1fr}.quote-builder{position:static}.quote-preview{max-width:100%}}
@media(max-width:700px){.quote-field-grid,.quote-pdf-cards{grid-template-columns:1fr}.quote-pdf-header{grid-template-columns:150px 1fr;height:110px}.quote-pdf-logo img{width:110px}.quote-pdf-brand{padding:0 20px}.quote-pdf-brand strong{font-size:23px}.quote-pdf-body{padding:22px 18px}.quote-pdf-title-row{display:block}.quote-pdf-meta{text-align:left;margin-top:15px}.quote-pdf-title h1{font-size:34px}.quote-pdf-image{height:220px}.quote-rolling-breakdown{grid-template-columns:1fr 1fr}}
@media print{body.admin-body{background:#fff!important}.admin-sidebar,.admin-topbar,.admin-alert,.quote-builder,.quote-preview-toolbar,.quote-warning{display:none!important}.admin-shell,.admin-content{display:block!important;margin:0!important;padding:0!important}.quote-workspace{display:block!important}.quote-preview-shell{display:block!important}.quote-preview{box-shadow:none!important;border:0!important;max-width:none!important;width:210mm!important;min-height:297mm!important;margin:0!important}.quote-pdf-header{height:37mm}.quote-pdf-body{padding:8mm 10mm}.quote-pdf-image{height:72mm}.quote-pdf-extra{break-inside:avoid}.quote-pdf-footer{height:18mm}@page{size:A4 portrait;margin:0}}



/* Admin quote workspace v9: A4, internal/customer PDFs, editable service fees */
.quote-service-editor{border:1px solid #dfe3e8;border-radius:14px;overflow:hidden;background:#fff}
.quote-service-editor>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;background:#f5f6f7;border-bottom:1px solid #e1e4e8}
.quote-service-editor>header>div{display:grid;gap:3px}.quote-service-editor>header small{color:#6b737b;font-size:12px}
.compact-button{padding:8px 10px!important;white-space:nowrap}
.quote-service-fee-list{display:grid}.quote-service-fee-row{display:grid!important;grid-template-columns:minmax(0,1fr) 150px!important;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid #edf0f2;font-weight:400!important}
.quote-service-fee-row:last-child{border-bottom:0}.quote-service-fee-row span{display:grid;gap:2px}.quote-service-fee-row small{color:#747c84;font-size:12px}.quote-service-fee-row input{text-align:right;font-weight:800}
.quote-profit-live{display:grid;gap:4px;border-radius:14px;padding:15px 16px;background:#171b1f;color:#fff;border-left:5px solid #e60012}
.quote-profit-live small{color:#bfc5cb;text-transform:uppercase;font-weight:800;letter-spacing:.5px}.quote-profit-live strong{font-size:24px}.quote-profit-live span{color:#d2d7dc;font-size:12px;line-height:1.45}
.quote-preview{max-width:900px;overflow-x:auto;padding:18px}.quote-preview [hidden]{display:none!important}
.quote-a4-page{width:210mm;min-height:297mm;margin:0 auto 18px;background:#fff;box-sizing:border-box;position:relative;overflow:hidden;display:flex;flex-direction:column;color:#202428;box-shadow:0 5px 22px rgba(0,0,0,.16)}
.quote-customer-page .quote-pdf-header{flex:0 0 35.3mm;height:35.3mm!important;display:block!important;background:#111!important;border:0!important;overflow:hidden}
.quote-pdf-approved-header img{display:block;width:210mm!important;height:35.3mm!important;object-fit:fill!important;max-width:none!important;margin:0!important}
.quote-customer-page .quote-pdf-body{flex:1;padding:7.5mm 10mm 5mm;box-sizing:border-box;overflow:hidden}
.quote-customer-page .quote-pdf-title h1{font-size:15mm;line-height:.95;border-bottom:1.7mm solid #e60012;padding-bottom:3mm}
.quote-customer-page .quote-pdf-title-row{align-items:flex-end}.quote-customer-page .quote-pdf-meta{font-size:3.1mm;line-height:1.55;max-width:78mm}
.quote-customer-page .quote-pdf-car-title{margin:5mm 0 3mm;gap:4mm}.quote-customer-page .quote-pdf-car-title strong{font-size:8mm}.quote-customer-page .quote-pdf-car-title span{font-size:5.5mm}
.quote-customer-page .quote-pdf-image{height:78mm;border-radius:4mm}.quote-customer-page .quote-pdf-image-label{left:4mm;bottom:4mm;padding:2.2mm 4mm;font-size:4mm}
.quote-customer-page .quote-pdf-cards{grid-template-columns:1fr 1.1fr;gap:4mm;margin-top:5mm}.quote-customer-page .quote-pdf-card{border-radius:4mm;box-shadow:1.4mm 1.4mm 0 #c4c8cc}
.quote-customer-page .quote-pdf-card h2{padding:3mm 5mm;font-size:5mm}.quote-customer-page .quote-price-content{padding:3mm 5mm}.quote-customer-page .quote-price-line{padding:2.2mm 0}.quote-customer-page .quote-price-line small{font-size:3.5mm}.quote-customer-page .quote-price-line strong{font-size:6mm;margin-top:1mm}.quote-customer-page .quote-inclusive{font-size:2.6mm;margin:2mm 0 0}
.quote-customer-page .quote-gift-list{padding:3mm 5mm}.quote-customer-page .quote-gift-list li{padding:1.8mm 0;font-size:3.2mm}.quote-customer-page .quote-gift-list li:before{width:2mm;height:2mm;margin-top:1.4mm}
.quote-customer-page .quote-pdf-extra{margin-top:4mm;border-radius:3mm;padding:3mm}.quote-customer-page .quote-pdf-extra h3{font-size:4mm;margin:0 0 2mm}.quote-customer-page .quote-pdf-extra table{font-size:2.55mm}.quote-customer-page .quote-pdf-extra th,.quote-customer-page .quote-pdf-extra td{padding:1.3mm}.quote-customer-page .quote-extra-total{font-size:3mm;margin:2mm 0 0}
.quote-customer-page .quote-pdf-footer{flex:0 0 16mm;height:16mm!important;padding:0 10mm;font-size:3.5mm;box-sizing:border-box}
.quote-internal-page{break-before:page;background:#fff}.quote-internal-header{background:#171b1f;color:#fff;border-bottom:2mm solid #e60012;display:flex;align-items:center;justify-content:space-between;padding:10mm 12mm 7mm}.quote-internal-header p{margin:0 0 1.2mm;color:#ff6671;font-weight:900;letter-spacing:1px}.quote-internal-header h2{margin:0;font-size:8mm}.quote-internal-header>strong{font-size:3.5mm;color:#d9dde1}
.quote-internal-body{padding:7mm 10mm 8mm;display:grid;gap:5mm;flex:1}.quote-internal-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:3mm}.quote-internal-summary article{border:1px solid #d7dce0;border-radius:2.5mm;padding:3mm;display:grid;gap:1mm}.quote-internal-summary small{font-size:2.8mm;color:#66707a}.quote-internal-summary strong{font-size:4mm}.quote-internal-summary article.is-total{background:#171b1f;color:#fff;border-color:#171b1f}.quote-internal-summary article.is-total small{color:#c9cfd5}
.quote-internal-block{break-inside:avoid}.quote-internal-block h3,.quote-internal-note h3{margin:0 0 2mm;font-size:4.2mm;border-left:1.3mm solid #e60012;padding-left:2mm}.quote-internal-table{width:100%;border-collapse:collapse;font-size:2.75mm}.quote-internal-table th{background:#eef0f2;text-align:left}.quote-internal-table th,.quote-internal-table td{padding:1.8mm 2mm;border:1px solid #dfe3e7;vertical-align:top}.quote-internal-table th:nth-child(n+2),.quote-internal-table td:nth-child(n+2){text-align:right}.quote-internal-table td small{display:block;color:#6e7680;font-size:2.35mm;margin-top:.7mm}.quote-internal-table tr.is-editable-fee td:first-child{font-weight:900;color:#b5000d}.quote-internal-note{background:#f5f6f7;border-radius:2.5mm;padding:3.5mm}.quote-internal-note p{margin:0;white-space:pre-wrap;font-size:3mm;line-height:1.5}.quote-internal-footer{display:flex;justify-content:space-between;align-items:center;background:#171b1f;color:#fff;padding:4mm 10mm;font-size:2.7mm}.quote-internal-footer strong{color:#ff4b58}
body[data-quote-print-mode="customer"] .quote-internal-only{display:none!important}
body[data-quote-print-mode="internal"] .quote-internal-only{display:flex!important}
@media(max-width:980px){.quote-a4-page{transform-origin:top left;max-width:100%;width:100%;min-height:auto}.quote-pdf-approved-header img{width:100%!important;height:auto!important;object-fit:contain!important}.quote-customer-page .quote-pdf-header{height:auto!important;flex-basis:auto}.quote-internal-summary{grid-template-columns:1fr 1fr}}

@media print{
  @page{size:A4 portrait;margin:0}
  html,body{width:210mm!important;margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.admin-body{background:#fff!important}
  .admin-sidebar,.admin-topbar,.admin-alert,.quote-builder,.quote-preview-toolbar,.quote-warning,.quote-recent,.admin-content>.admin-card{display:none!important}
  .admin-shell,.admin-content,.quote-workspace,.quote-preview-shell,.quote-preview,[data-preview-content]{display:block!important;width:210mm!important;max-width:210mm!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;background:#fff!important}
  .quote-preview{min-height:0!important}
  .quote-a4-page{display:flex!important;width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm!important;margin:0!important;box-shadow:none!important;overflow:hidden!important;page-break-after:always!important;break-after:page!important;transform:none!important}
  .quote-a4-page:last-child{page-break-after:auto!important;break-after:auto!important}
  body[data-quote-print-mode="customer"] .quote-internal-only{display:none!important}
  body[data-quote-print-mode="customer"] .quote-customer-page{page-break-after:auto!important;break-after:auto!important}
  body[data-quote-print-mode="internal"] .quote-internal-only{display:flex!important}
  .quote-customer-page .quote-pdf-header{height:35.3mm!important;flex-basis:35.3mm!important}
  .quote-pdf-approved-header img{width:210mm!important;height:35.3mm!important;object-fit:fill!important}
}

/* Admin quote workspace v10: exact A4 pages, Drive accessories, customer/internal preview */
.quote-accessory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.quote-accessory-toolbar>div{display:grid;gap:3px}.quote-accessory-toolbar small{color:#6c747c}
.quote-accessory-picker{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:10px;padding:12px;border-bottom:1px solid #e3e6e9}.quote-accessory-picker input,.quote-accessory-picker select{grid-column:1/-1}.quote-accessory-picker select{min-height:185px;font-size:14px}.quote-accessory-picker .primary-button{grid-column:2;justify-self:stretch}
.quote-selected-accessories{display:grid}.quote-selected-accessory-row{display:grid;grid-template-columns:minmax(0,1fr) 80px 145px 64px;gap:10px;align-items:center;padding:11px 12px;border-top:1px solid #edf0f2}.quote-selected-accessory-row>div{display:grid;gap:3px}.quote-selected-accessory-row small{font-size:12px;color:#707880}.quote-selected-accessory-row label{display:grid;gap:3px;font-size:12px}.quote-selected-accessory-row input[type=number]{text-align:center}.quote-gift-toggle{display:flex!important;align-items:center;gap:7px!important}.quote-gift-toggle input{width:18px!important;height:18px!important}.quote-selected-accessory-row .crm-delete-button{padding:7px 8px!important}
.quote-preview-toolbar [data-preview-mode].is-active{box-shadow:0 0 0 2px rgba(230,0,18,.15)}
.quote-official-header{height:31mm;flex:0 0 31mm;display:flex;align-items:center;background:#fff;border-top:5mm solid #111;border-bottom:1.4mm solid #ed0000;padding:3mm 10mm;box-sizing:border-box;gap:8mm;overflow:hidden}.quote-official-header img{display:block;width:57mm;height:17mm;object-fit:contain;object-position:left center}.quote-official-header div{display:grid;gap:1.2mm;border-left:.6mm solid #d9dde0;padding-left:7mm}.quote-official-header strong{font-size:7mm;line-height:1;color:#202428}.quote-official-header span{font-size:3mm;letter-spacing:.7mm;color:#727980;font-weight:800}
.quote-simple-header{height:28mm;flex:0 0 28mm;display:flex;align-items:center;gap:8mm;padding:4mm 10mm;border-top:4mm solid #111;border-bottom:1.2mm solid #ed0000;box-sizing:border-box}.quote-simple-header img{width:50mm;height:15mm;object-fit:contain}.quote-simple-header div{display:grid;gap:1mm}.quote-simple-header strong{font-size:5.5mm}.quote-simple-header span{font-size:3.2mm;color:#67717a}
.quote-list-page-body{padding:8mm 10mm;flex:1;overflow:hidden;box-sizing:border-box}.quote-a4-table{width:100%;border-collapse:collapse;font-size:3mm}.quote-a4-table th,.quote-a4-table td{border:1px solid #d8dde1;padding:2.2mm;vertical-align:top}.quote-a4-table th{background:#eef0f2;text-align:left}.quote-a4-table th:nth-child(n+4),.quote-a4-table td:nth-child(n+4){text-align:right}.quote-page-total{text-align:right;margin:4mm 0 0;font-size:3.5mm}.quote-page-total strong{font-size:4.5mm}
.quote-customer-page .quote-pdf-body{padding:7mm 10mm 4mm}.quote-customer-page .quote-pdf-image{height:76mm}.quote-customer-page .quote-pdf-cards{margin-top:4mm}.quote-customer-page .quote-pdf-card{min-height:60mm}.quote-customer-page .quote-gift-list{max-height:50mm;overflow:hidden}.quote-customer-page .quote-gift-list li{font-size:3mm;padding:1.45mm 0}.quote-customer-page .quote-pdf-footer{flex:0 0 15mm;height:15mm!important}
.quote-internal-page .quote-internal-body{padding:6mm 9mm 6mm;gap:4mm}.quote-internal-page .quote-internal-summary{gap:2.4mm}.quote-internal-page .quote-internal-summary article{padding:2.4mm}.quote-internal-page .quote-internal-table{font-size:2.55mm}.quote-internal-page .quote-internal-table th,.quote-internal-page .quote-internal-table td{padding:1.45mm 1.5mm}.quote-internal-page .quote-internal-note{padding:2.8mm}.quote-internal-page .quote-internal-header{padding:7mm 10mm 5mm}.quote-internal-page .quote-internal-header h2{font-size:7mm}
.quote-internal-accessory-page .quote-internal-table{font-size:2.7mm}.quote-internal-accessory-page .quote-internal-table th,.quote-internal-accessory-page .quote-internal-table td{padding:1.8mm}.quote-internal-accessory-page .quote-internal-table th:nth-child(n+3),.quote-internal-accessory-page .quote-internal-table td:nth-child(n+3){text-align:right}
.quote-preview[data-preview-mode-current="customer"] [data-internal-preview]{display:none!important}.quote-preview[data-preview-mode-current="internal"] [data-customer-preview]{display:none!important}

@media(max-width:760px){.quote-selected-accessory-row{grid-template-columns:1fr 76px}.quote-selected-accessory-row .quote-gift-toggle{grid-column:1}.quote-accessory-picker{grid-template-columns:1fr}.quote-accessory-picker .primary-button{grid-column:1}.quote-official-header strong{font-size:5mm}}

@media print{
  @page{size:A4 portrait;margin:0}
  html,body{width:210mm!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.admin-body{background:#fff!important}
  .admin-sidebar,.admin-topbar,.admin-alert,.quote-builder,.quote-preview-toolbar,.quote-warning,.quote-recent,.admin-content>section.admin-card{display:none!important}
  .admin-shell,.admin-content,.quote-workspace,.quote-preview-shell,.quote-preview,[data-preview-content]{display:block!important;width:210mm!important;max-width:210mm!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;background:#fff!important}
  .quote-preview-empty{display:none!important}
  body[data-quote-print-mode="customer"] [data-internal-preview]{display:none!important}
  body[data-quote-print-mode="customer"] [data-customer-preview]{display:block!important}
  body[data-quote-print-mode="internal"] [data-customer-preview]{display:none!important}
  body[data-quote-print-mode="internal"] [data-internal-preview]{display:block!important}
  .quote-a4-page{display:flex!important;width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;overflow:hidden!important;page-break-after:always!important;break-after:page!important;transform:none!important;box-sizing:border-box!important}
  .quote-a4-page[hidden]{display:none!important}
  [data-customer-preview] .quote-a4-page:last-child,[data-internal-preview] .quote-a4-page:last-child{page-break-after:auto!important;break-after:auto!important}
  .quote-official-header{height:31mm!important;flex-basis:31mm!important}.quote-official-header img{width:57mm!important;height:17mm!important}
  .quote-simple-header{height:28mm!important;flex-basis:28mm!important}.quote-pdf-footer,.quote-internal-footer{break-inside:avoid!important}
}


/* Admin quote workspace v11: clean responsive layout and approved quote template */
.quote-page-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px!important}.quote-page-header h2{margin:2px 0 0}.quote-data-status{display:flex;gap:8px;flex-wrap:wrap}.quote-data-status span{display:flex;gap:6px;align-items:center;background:#f2f4f6;border:1px solid #e2e6e9;border-radius:999px;padding:7px 11px;font-size:12px;color:#5f6871}.quote-data-status strong{color:#15191d;font-size:13px}
.quote-workspace{display:grid!important;grid-template-columns:390px minmax(0,1fr)!important;gap:18px!important;align-items:start!important}.quote-builder{position:sticky!important;top:12px!important;max-height:calc(100vh - 24px);overflow:auto;display:grid!important;gap:12px!important;padding:14px!important;scrollbar-width:thin}.quote-form-section{border:1px solid #dfe4e8;border-radius:12px;background:#fff;overflow:visible}.quote-form-section>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;background:#f5f6f7;border-bottom:1px solid #e2e6e9}.quote-form-section>header strong{font-size:14px}.quote-form-section>header small{font-size:11px;color:#717982}.quote-form-body{padding:12px}.quote-field-grid{gap:10px!important}.quote-builder label{gap:5px!important;font-size:12px!important;color:#30363c!important}.quote-builder input,.quote-builder select,.quote-builder textarea{border-radius:8px!important;padding:9px 10px!important;font-size:13px!important}.quote-type-tabs{gap:6px!important}.quote-type-tab{padding:10px!important;border-radius:9px!important}.quote-used-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin-bottom:9px}.quote-sync-status{margin:8px 12px 10px;font-size:11px;color:#727a82;line-height:1.35}.quote-service-editor{border-radius:12px!important}.quote-service-fee-head{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:10px;padding:7px 12px;background:#fafbfc;border-bottom:1px solid #edf0f2;color:#737b83;font-size:10px;text-transform:uppercase;font-weight:800}.quote-service-fee-head span:last-child{text-align:right}.quote-service-fee-row{grid-template-columns:minmax(0,1fr) 130px!important;padding:8px 12px!important;gap:10px!important}.quote-service-fee-row small{font-size:10px!important}.quote-service-fee-row input{text-align:right!important;font-variant-numeric:tabular-nums}.quote-profit-live{padding:12px 14px!important}.quote-profit-live strong{font-size:20px!important}.quote-profit-live span{font-size:11px!important}.quote-note-details{border:1px solid #e0e4e8;border-radius:10px;padding:10px 12px}.quote-note-details summary{font-size:12px;font-weight:800;cursor:pointer}.quote-note-details textarea{margin-top:9px}.quote-builder-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}.quote-builder-actions .primary-button{grid-column:1/-1}.quote-builder-actions .text-button{grid-column:1/-1}
.quote-accessory-panel{overflow:visible!important}.quote-accessory-panel>header{border-radius:12px 12px 0 0}.quote-accessory-combobox{position:relative;padding:12px}.quote-accessory-dropdown-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;border:1px solid #cbd2d8;background:#fff;border-radius:9px;padding:10px 12px;font-weight:800;cursor:pointer}.quote-accessory-dropdown{position:absolute;z-index:30;left:12px;right:12px;top:56px;background:#fff;border:1px solid #cfd5da;border-radius:11px;box-shadow:0 18px 45px rgba(17,24,39,.2);padding:10px}.quote-accessory-dropdown>input{margin-bottom:8px}.quote-accessory-option-head,.quote-accessory-option{display:grid;grid-template-columns:80px minmax(0,1fr) 105px 58px;gap:8px;align-items:center}.quote-accessory-option-head{padding:7px 8px;background:#f2f4f6;color:#68717a;font-size:10px;text-transform:uppercase;font-weight:900}.quote-accessory-options{max-height:300px;overflow:auto}.quote-accessory-option{padding:8px;border-bottom:1px solid #edf0f2;font-size:12px}.quote-accessory-option>span{min-width:0}.quote-accessory-option>span small{display:block;color:#78818a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quote-accessory-option>strong{text-align:right;font-size:11px}.quote-accessory-option>button{border:0;border-radius:7px;background:#171b1f;color:#fff;padding:6px 7px;font-weight:800;cursor:pointer}.quote-selected-accessory-head,.quote-selected-accessory-row{display:grid;grid-template-columns:minmax(0,1fr) 54px 94px 90px 30px;gap:7px;align-items:center}.quote-selected-accessory-head{padding:7px 12px;background:#f6f7f8;border-top:1px solid #e5e8eb;border-bottom:1px solid #e5e8eb;color:#717982;font-size:9px;text-transform:uppercase;font-weight:900}.quote-selected-accessory-row{padding:9px 12px!important;border-top:0!important;border-bottom:1px solid #edf0f2}.quote-selected-accessory-row>div{min-width:0}.quote-selected-accessory-row>div strong,.quote-selected-accessory-row>div small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quote-selected-accessory-row label{gap:3px!important}.quote-selected-accessory-row label>span{display:none}.quote-selected-accessory-row select,.quote-selected-accessory-row input{padding:7px 5px!important}.quote-accessory-line-total{text-align:right;font-size:11px;white-space:nowrap}.quote-selected-accessory-row .crm-delete-button{width:28px;height:28px;padding:0!important;font-size:18px!important}
.quote-preview-shell{position:sticky;top:12px;min-width:0;height:calc(100vh - 24px);display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:10px!important}.quote-preview-toolbar{padding:10px 14px;background:#fff;border:1px solid #dde2e6;border-radius:12px}.quote-preview-stage{min-width:0;min-height:0;overflow:auto;background:#dfe3e7;border:1px solid #cfd5da;border-radius:12px;padding:16px;display:flex;justify-content:center;align-items:flex-start}.quote-preview{background:transparent!important;border:0!important;box-shadow:none!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}.quote-preview-document{width:210mm;transform-origin:top center}.quote-preview.is-empty{width:100%!important;min-height:100%!important;background:#fff!important;border-radius:12px!important}.quote-a4-page{margin:0 auto 16px!important}
/* Approved one-page customer PDF */
.quote-customer-page{background:#f1f2f3!important}.quote-standard-header{height:35.3mm;flex:0 0 35.3mm;background:#111417;color:#fff;display:grid;grid-template-columns:52mm 14mm 1fr;align-items:stretch;border-bottom:1.1mm solid #ed1b2f;overflow:hidden}.quote-standard-logo{display:grid;place-items:center;background:#0a0c0e;margin:2.2mm 0 2.2mm 8.5mm}.quote-standard-logo img{width:30mm;height:30mm;object-fit:contain}.quote-standard-slash{position:relative}.quote-standard-slash:after{content:"";position:absolute;left:50%;top:-7mm;width:1mm;height:52mm;background:#ed1b2f;transform:rotate(21deg)}.quote-standard-brand{display:flex;flex-direction:column;justify-content:center;padding-left:8mm}.quote-standard-brand strong{font-size:10.2mm;line-height:1.02;letter-spacing:.1mm}.quote-standard-brand span{font-size:3.8mm;color:#c3c8cc;margin-top:2mm;letter-spacing:.2mm}.quote-standard-body{padding:6.3mm 10mm 3mm;display:flex;flex-direction:column;flex:1;box-sizing:border-box}.quote-standard-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:8mm}.quote-standard-title-row h1{font-size:11mm;line-height:1;margin:0;color:#252a2f}.quote-standard-title-row i{display:block;width:29mm;height:1.4mm;background:#ed1b2f;margin-top:2.7mm}.quote-standard-meta{display:grid;gap:1.3mm;text-align:right;color:#66707a;font-size:3.3mm}.quote-standard-car-title{display:flex;align-items:baseline;gap:16mm;margin:5.5mm 0 5mm;text-transform:uppercase}.quote-standard-car-title strong{font-size:6.5mm;color:#5d6670}.quote-standard-car-title b{font-size:5.7mm;color:#252a2f}.quote-standard-hero{height:70mm;border:1px solid #adb5bd;border-radius:4mm;overflow:hidden;position:relative;background:#fff}.quote-standard-hero img{width:100%;height:100%;object-fit:cover}.quote-standard-hero strong{position:absolute;left:5mm;bottom:4mm;background:#121619;color:#fff;border-radius:3.5mm;padding:2.4mm 4.4mm;font-size:3.7mm;text-transform:uppercase}.quote-standard-cards{display:grid;grid-template-columns:.92fr 1.08fr;gap:4.5mm;margin-top:7mm;height:93mm}.quote-standard-card{background:#fff;border-radius:4mm;overflow:hidden;box-shadow:1.7mm 1.8mm 0 #c8cdd1;display:flex;flex-direction:column}.quote-standard-card h2{margin:0;background:#24292e;color:#fff;padding:5mm 6.5mm;font-size:5.3mm;line-height:1}.quote-gift-icon{display:inline-grid;place-items:center;color:#ed1b2f;border:1px solid #ed1b2f;width:7mm;height:7mm;margin-right:3mm;font-size:5mm}.quote-standard-price-body{padding:6.5mm 7mm;display:flex;flex-direction:column;flex:1}.quote-standard-price-body>div{padding:4mm 0;border-bottom:1px solid #d8dde1}.quote-standard-price-body small{display:block;font-size:3.6mm;color:#626b74;font-weight:800}.quote-standard-price-body strong{display:block;margin-top:1.8mm;font-size:6.8mm;color:#ed1b2f}.quote-standard-price-body p{margin:auto 0 0;text-align:center;font-size:2.6mm}.quote-standard-gift-body{padding:4.4mm 6mm;overflow:hidden;flex:1}.quote-standard-list,.quote-standard-extra-list{list-style:none;padding:0;margin:0}.quote-standard-list li,.quote-standard-extra-list li{position:relative;padding:2.2mm 0 2.2mm 5mm;border-bottom:1px solid #dce0e3;font-size:3.05mm;line-height:1.15}.quote-standard-list li:before,.quote-standard-extra-list li:before{content:"";position:absolute;left:0;top:3.1mm;width:2mm;height:2mm;border-radius:50%;background:#ed1b2f}.quote-standard-extra{margin-top:2.2mm}.quote-standard-extra h3{margin:0 0 .8mm;font-size:3.5mm}.quote-standard-extra-list li{display:flex;justify-content:space-between;gap:3mm}.quote-standard-extra-list li span{min-width:0}.quote-standard-extra-list li strong{white-space:nowrap}.quote-standard-footer{height:17mm;flex:0 0 17mm;background:#111417;border-top:1mm solid #ed1b2f;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 10mm;box-sizing:border-box}.quote-standard-footer strong{font-size:3.7mm}.quote-standard-footer small{font-size:2.8mm;color:#c0c6cb}
/* Ordered internal PDF */
.quote-internal-page,.quote-internal-accessory-page{background:#fff!important}.quote-internal-header{padding:7mm 10mm 5mm!important}.quote-internal-header h2{font-size:7mm!important}.quote-internal-body{padding:5.5mm 9mm!important;gap:4mm!important;align-content:start!important;grid-auto-rows:max-content!important}.quote-internal-vehicle{display:flex;justify-content:space-between;gap:5mm;border-bottom:1px solid #dce1e5;padding-bottom:3mm}.quote-internal-vehicle strong{font-size:4.5mm}.quote-internal-vehicle span{font-size:2.8mm;color:#65707a;text-align:right}.quote-internal-summary{grid-template-columns:repeat(3,1fr)!important;gap:2.5mm!important}.quote-internal-summary article{padding:2.6mm!important;min-height:17mm}.quote-internal-summary small{font-size:2.7mm!important}.quote-internal-summary strong{font-size:3.8mm!important}.quote-internal-table{table-layout:fixed!important;width:100%!important;font-size:2.7mm!important}.quote-internal-table th,.quote-internal-table td{padding:2mm 1.7mm!important;vertical-align:middle!important;overflow-wrap:anywhere}.quote-internal-table th:nth-child(n+2),.quote-internal-table td:nth-child(n+2){text-align:right}.quote-internal-table td small{display:block;font-size:2.25mm;color:#6c747c;margin-top:.8mm}.quote-internal-note{padding:3mm!important}.quote-internal-footer{margin-top:auto}.quote-list-page-body{padding:7mm 9mm!important}.quote-a4-table{table-layout:fixed!important}
@media(max-width:1260px){.quote-workspace{grid-template-columns:350px minmax(0,1fr)!important}.quote-standard-brand strong{font-size:8.8mm}.quote-builder{max-height:none;position:static!important}.quote-preview-shell{position:static;height:auto;min-height:700px}}
@media(max-width:1000px){.quote-workspace{grid-template-columns:1fr!important}.quote-preview-shell{min-height:0}.quote-preview-stage{max-height:none}.quote-builder{order:1}.quote-preview-shell{order:2}.quote-preview-document{width:210mm}}
@media(max-width:700px){.quote-page-header{align-items:flex-start;flex-direction:column}.quote-builder{padding:10px!important}.quote-field-grid{grid-template-columns:1fr!important}.quote-field-grid .full{grid-column:1}.quote-used-toolbar{grid-template-columns:1fr}.quote-builder-actions{grid-template-columns:1fr!important}.quote-builder-actions>*{grid-column:1!important}.quote-service-fee-head,.quote-service-fee-row{grid-template-columns:minmax(0,1fr) 115px!important}.quote-selected-accessory-head{display:none!important}.quote-selected-accessory-row{grid-template-columns:minmax(0,1fr) 58px 92px 30px!important}.quote-accessory-line-total{grid-column:1/-2;text-align:left}.quote-accessory-option-head{display:none}.quote-accessory-option{grid-template-columns:68px minmax(0,1fr) 54px}.quote-accessory-option>strong{grid-column:2}.quote-preview-stage{padding:8px;justify-content:flex-start}.quote-preview-toolbar{align-items:flex-start;flex-direction:column}.quote-preview-toolbar .button-row{width:100%;overflow:auto}.quote-preview-document{transform-origin:top left}}
@media print{
  @page{size:A4 portrait;margin:0}
  html,body{width:210mm!important;margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .admin-sidebar,.admin-topbar,.admin-alert,.quote-builder,.quote-preview-toolbar,.quote-page-header,.quote-recent{display:none!important}
  .admin-shell,.admin-content,.quote-workspace,.quote-preview-shell,.quote-preview-stage,.quote-preview,.quote-preview-document,[data-preview-content]{display:block!important;width:210mm!important;max-width:210mm!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;background:#fff!important;zoom:1!important}
  body[data-quote-print-mode="customer"] [data-internal-preview]{display:none!important}body[data-quote-print-mode="customer"] [data-customer-preview]{display:block!important}body[data-quote-print-mode="internal"] [data-customer-preview]{display:none!important}body[data-quote-print-mode="internal"] [data-internal-preview]{display:block!important}
  .quote-a4-page{display:flex!important;width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;overflow:hidden!important;page-break-after:always!important;break-after:page!important;box-sizing:border-box!important}.quote-a4-page[hidden]{display:none!important}[data-customer-preview] .quote-a4-page:last-child,[data-internal-preview] .quote-a4-page:last-child{page-break-after:auto!important;break-after:auto!important}
}
/* v11 print QA fix: keep internal sections in normal document flow */
.quote-internal-body{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important}
/* v11 internal A4 flow sizing */
.quote-internal-summary{flex:0 0 39mm!important;height:39mm!important;grid-template-rows:18mm 18mm!important;align-content:start!important}
.quote-internal-summary article{height:18mm!important;min-height:18mm!important;box-sizing:border-box!important}
.quote-internal-block{flex:0 0 auto!important}


/* ==========================================================================\n   V12 QUOTE PROFESSIONAL + HOMEPAGE CONVERSION\n   ========================================================================== */
.quote-workspace-v12{display:grid!important;grid-template-columns:minmax(360px,430px) minmax(0,1fr)!important;gap:18px!important;align-items:start!important;max-width:none!important}
.quote-builder-v12{padding:0!important;overflow:hidden!important;border-radius:16px!important;box-shadow:0 10px 32px rgba(13,22,31,.08)!important}
.quote-builder-v12 .quote-type-tabs{position:sticky;top:0;z-index:5;background:#fff;padding:14px 14px 10px}
.quote-builder-v12 .quote-form-section{margin:0 14px 12px;border:1px solid #e3e7ea;border-radius:12px;background:#fff;overflow:hidden}
.quote-builder-v12 .quote-form-section>header{padding:11px 12px;background:#f6f7f8;border-bottom:1px solid #e4e8eb;display:flex;justify-content:space-between;align-items:center;gap:10px}
.quote-builder-v12 .quote-form-body{padding:12px}.quote-builder-v12 label{font-size:12px;font-weight:800;color:#343b42;gap:6px}.quote-builder-v12 input,.quote-builder-v12 select,.quote-builder-v12 textarea{border:1px solid #cfd5da;border-radius:9px;padding:10px 11px;background:#fff;font-size:13px;min-width:0}.quote-builder-v12 input:focus,.quote-builder-v12 select:focus,.quote-builder-v12 textarea:focus{border-color:#ed1b2f;box-shadow:0 0 0 3px rgba(237,27,47,.1);outline:0}
.quote-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.quote-used-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.quote-used-result-head,.quote-used-result{display:grid;grid-template-columns:88px minmax(0,1fr) 92px 72px;gap:8px;align-items:center}.quote-used-result-head{padding:7px 9px;margin-top:10px;background:#f3f5f6;border-radius:8px;color:#727b83;font-size:9px;font-weight:900;text-transform:uppercase}.quote-used-results{max-height:220px;overflow:auto;margin-top:4px}.quote-used-result{width:100%;border:0;border-bottom:1px solid #edf0f2;background:#fff;padding:9px;text-align:left;cursor:pointer;color:#20262b}.quote-used-result:hover,.quote-used-result.is-selected{background:#fff3f4}.quote-used-result>strong{font-size:11px}.quote-used-result>span{font-size:11px;min-width:0}.quote-used-result>span small{display:block;color:#7c858d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quote-used-result>b{font-size:10px;text-align:right}.quote-used-result>em{font-size:9px;font-style:normal;color:#68717a;text-align:right}
.quote-service-fee-list{padding:0!important}.quote-service-fee-row{display:grid!important;grid-template-columns:minmax(0,1fr) 138px!important;gap:10px!important;align-items:center!important;padding:9px 12px!important;border-bottom:1px solid #edf0f2!important}.quote-service-fee-row:last-child{border-bottom:0!important}.quote-service-fee-row span strong{font-size:12px}.quote-service-fee-row span small{display:block;font-size:10px;color:#7a838b;margin-top:2px}.quote-service-fee-row input{text-align:right;font-variant-numeric:tabular-nums;font-weight:800}
.quote-accessory-actions{padding:12px}.quote-accessory-open-button{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) 20px;gap:10px;align-items:center;border:1px solid #d9dee2;background:#fff;border-radius:11px;padding:11px;text-align:left;cursor:pointer}.quote-accessory-open-button:hover{border-color:#ed1b2f;background:#fff8f8}.quote-accessory-open-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ed1b2f;color:#fff;font-size:22px;font-weight:300}.quote-accessory-open-button strong{display:block;font-size:13px}.quote-accessory-open-button small{display:block;color:#7b848c;font-size:10px;margin-top:2px}.quote-accessory-open-button>b{font-size:24px;color:#8a9299}
.quote-selected-accessory-table{border-top:1px solid #e5e8eb}.quote-selected-accessory-head,.quote-selected-accessory-row{display:grid!important;grid-template-columns:minmax(0,1fr) 52px 100px 92px 28px!important;gap:7px!important;align-items:center!important}.quote-selected-accessory-head{padding:7px 12px;background:#f5f7f8;color:#707981;font-size:9px;font-weight:900;text-transform:uppercase}.quote-selected-accessory-row{padding:10px 12px!important;border-bottom:1px solid #edf0f2!important}.quote-selected-accessory-name{min-width:0}.quote-selected-accessory-name strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quote-selected-accessory-name small{display:block;color:#7d858d;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quote-selected-accessory-row label{display:block!important}.quote-selected-accessory-row label>span{display:none}.quote-selected-accessory-row input,.quote-selected-accessory-row select{width:100%!important;padding:7px 5px!important;font-size:10px!important}.quote-accessory-line-total{text-align:right;font-size:10px;white-space:nowrap}.quote-selected-accessory-row .crm-delete-button{width:26px!important;height:26px!important;padding:0!important}
.quote-accessory-dialog{width:min(1040px,calc(100vw - 32px));height:min(760px,calc(100vh - 32px));padding:0;border:0;border-radius:18px;box-shadow:0 28px 100px rgba(0,0,0,.32);background:#fff}.quote-accessory-dialog::backdrop{background:rgba(6,10,14,.64);backdrop-filter:blur(3px)}.quote-accessory-dialog-shell{display:flex;flex-direction:column;height:100%}.quote-accessory-dialog header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e4e8eb}.quote-accessory-dialog header h2{margin:2px 0 0;font-size:22px}.quote-dialog-close{border:0;background:#f1f3f4;border-radius:50%;width:38px;height:38px;font-size:24px;cursor:pointer}.quote-accessory-searchbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 20px 10px}.quote-accessory-searchbar input{border:1px solid #cfd5da;border-radius:10px;padding:12px 14px;font-size:14px}.quote-accessory-searchbar span{font-size:12px;color:#69727a}.quote-accessory-categories{display:flex;gap:7px;overflow:auto;padding:0 20px 12px}.quote-accessory-categories button{border:1px solid #dce1e4;background:#fff;border-radius:999px;padding:7px 11px;font-size:11px;white-space:nowrap;cursor:pointer}.quote-accessory-categories button.is-active{background:#171b1f;color:#fff;border-color:#171b1f}.quote-accessory-dialog .quote-accessory-option-head,.quote-accessory-dialog .quote-accessory-option{display:grid!important;grid-template-columns:100px minmax(240px,1.5fr) minmax(150px,.8fr) 120px 72px!important;gap:12px!important;align-items:center!important}.quote-accessory-dialog .quote-accessory-option-head{margin:0 20px;padding:9px 12px;background:#f1f3f4;border-radius:8px;color:#69727a;font-size:10px;font-weight:900;text-transform:uppercase}.quote-accessory-dialog .quote-accessory-options{overflow:auto;flex:1;padding:0 20px 18px}.quote-accessory-dialog .quote-accessory-option{padding:11px 12px;border-bottom:1px solid #edf0f2}.quote-accessory-option>strong{font-size:11px}.quote-accessory-option>span b{display:block;font-size:12px}.quote-accessory-option>span small{display:block;color:#7a838b;font-size:10px;margin-top:2px}.quote-accessory-option>em{font-style:normal;font-size:10px;color:#626b73}.quote-accessory-option>b{text-align:right;font-size:11px}.quote-accessory-option>button{border:0;border-radius:8px;padding:8px 10px;background:#171b1f;color:#fff;font-weight:800;cursor:pointer}.quote-accessory-option>button:disabled{background:#d9dee2;color:#7a838b}
.quote-builder-actions-v12{position:sticky;bottom:0;z-index:4;background:#fff;border-top:1px solid #e2e6e9;padding:12px 14px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.quote-builder-actions-v12 .text-button{grid-column:1/-1}
.quote-preview-shell-v12{position:sticky!important;top:16px!important;height:calc(100vh - 32px)!important;min-height:700px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border-radius:16px!important;background:#eef0f2!important}.quote-preview-toolbar{flex:0 0 auto!important}.quote-preview-stage{flex:1!important;min-height:0!important;overflow:auto!important;padding:20px!important;display:flex!important;justify-content:center!important;align-items:flex-start!important}.quote-preview-document{transform-origin:top center}.quote-preview-empty{min-height:600px!important}.quote-preview-empty-mark{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:#ed1b2f;color:#fff;font-size:32px;font-weight:900;margin:0 auto 16px}
.quote-a4-page{width:210mm!important;min-width:210mm!important;max-width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:#f1f2f3!important;box-shadow:0 12px 30px rgba(11,18,24,.14)!important;margin:0 auto 18px!important}.quote-approved-header{display:block;flex:0 0 35.3mm;height:35.3mm;overflow:hidden;background:#111}.quote-approved-header img{display:block;width:210mm;height:35.3mm;object-fit:fill}.quote-approved-header-small{flex-basis:27mm;height:27mm}.quote-approved-header-small img{height:27mm}
.quote-standard-body{padding:6.1mm 10mm 3mm!important;display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important}.quote-standard-title-row h1{font-size:11mm!important}.quote-standard-car-title{margin:4.5mm 0 4mm!important}.quote-standard-hero{height:69mm!important;flex:0 0 69mm!important}.quote-standard-cards{margin-top:5mm!important;height:100mm!important;min-height:100mm!important;gap:4.5mm!important}.quote-standard-card h2{padding:4.1mm 5.8mm!important;font-size:4.8mm!important}.quote-standard-price-body{padding:4.8mm 6.2mm!important}.quote-standard-price-body>div{padding:3mm 0!important}.quote-standard-price-body strong{font-size:6.2mm!important}.quote-standard-gift-body{padding:3.5mm 5mm!important}.quote-standard-list li{display:grid!important;grid-template-columns:7mm minmax(0,1fr)!important;gap:2mm!important;align-items:center!important;padding:1.35mm 0!important;border-bottom:1px solid #dce0e3!important;font-size:2.9mm!important;line-height:1.15!important}.quote-standard-list li:before{display:none!important}.quote-gift-row-icon,.quote-extra-row-icon{display:grid;place-items:center;width:5.8mm;height:5.8mm;border-radius:50%;background:#fff0f1;color:#ed1b2f;flex:0 0 auto}.quote-gift-row-icon svg,.quote-extra-row-icon svg{width:3.8mm;height:3.8mm;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.quote-standard-extra{margin-top:1.4mm!important}.quote-standard-extra h3{font-size:3mm!important;margin:0 0 .7mm!important}.quote-standard-extra-list li{display:grid!important;grid-template-columns:5mm minmax(0,1fr) auto!important;gap:1.3mm!important;align-items:center!important;padding:1mm 0!important;font-size:2.55mm!important}.quote-standard-extra-list li:before{display:none!important}.quote-extra-row-icon{width:4.4mm;height:4.4mm}.quote-extra-row-icon svg{width:3mm;height:3mm}.quote-standard-footer{height:15mm!important;flex:0 0 15mm!important;padding:0 10mm!important}.quote-title-icon{display:inline-grid;place-items:center;width:6mm;height:6mm;border:1px solid #ed1b2f;color:#ed1b2f;margin-right:2.5mm;font-size:4mm;vertical-align:middle}
.quote-list-page{background:#fff!important}.quote-list-page-body{padding:8mm 10mm 5mm!important;flex:1;overflow:hidden}.quote-list-page-title{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1.2mm solid #ed1b2f;padding-bottom:3mm;margin-bottom:5mm}.quote-list-page-title p{margin:0;color:#ed1b2f;font-weight:900;font-size:3.4mm}.quote-list-page-title h2{margin:1mm 0 0;font-size:6mm}.quote-list-page-title span{font-size:3mm;color:#6b747c}.quote-a4-table,.quote-internal-table{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important}.quote-a4-table th,.quote-a4-table td,.quote-internal-table th,.quote-internal-table td{padding:2.6mm 2mm!important;border-bottom:.25mm solid #dce1e4!important;text-align:left!important;vertical-align:top!important;font-size:3mm!important;overflow-wrap:anywhere!important}.quote-a4-table th,.quote-internal-table th{background:#24292e!important;color:#fff!important;font-weight:900!important}.quote-a4-table td:last-child,.quote-a4-table th:last-child{text-align:right!important}.quote-page-total{margin:5mm 0 0;text-align:right;font-size:3.5mm}.quote-page-total strong{color:#ed1b2f}
.quote-internal-page,.quote-internal-accessory-page{background:#f4f5f6!important}.quote-internal-header{padding:8mm 10mm 5mm!important;flex:0 0 auto!important}.quote-internal-body{padding:0 10mm 5mm!important;flex:1!important;overflow:hidden!important}.quote-internal-summary{grid-template-columns:repeat(3,1fr)!important;gap:3mm!important;margin:4mm 0!important}.quote-internal-summary article{padding:3mm!important;min-height:20mm!important}.quote-internal-summary small{font-size:2.7mm!important}.quote-internal-summary strong{font-size:4mm!important}.quote-internal-block h3{font-size:4mm!important;margin:3mm 0 2mm!important}.quote-internal-table th,.quote-internal-table td{padding:2.1mm 1.7mm!important;font-size:2.75mm!important}.quote-internal-table td small{display:block;font-size:2.3mm;color:#6b747c;margin-top:.8mm}.quote-internal-note{margin-top:3mm!important;padding:3mm!important}.quote-internal-footer{height:13mm!important;flex:0 0 13mm!important;padding:0 10mm!important}
@media(max-width:1250px){.quote-workspace-v12{grid-template-columns:380px minmax(0,1fr)!important}.quote-preview-shell-v12{height:calc(100vh - 24px)!important}}
@media(max-width:900px){.quote-workspace-v12{display:block!important}.quote-builder-v12{margin-bottom:16px}.quote-preview-shell-v12{position:relative!important;top:auto!important;height:auto!important;min-height:0!important}.quote-preview-stage{min-height:650px!important}.quote-used-result-head,.quote-used-result{grid-template-columns:80px minmax(0,1fr) 88px}.quote-used-result>em,.quote-used-result-head span:last-child{display:none}.quote-accessory-dialog .quote-accessory-option-head,.quote-accessory-dialog .quote-accessory-option{grid-template-columns:80px minmax(0,1fr) 100px 66px!important}.quote-accessory-dialog .quote-accessory-option>em,.quote-accessory-dialog .quote-accessory-option-head span:nth-child(3){display:none}}
@media(max-width:620px){.quote-page-header-v12{align-items:flex-start!important}.quote-data-status{display:none!important}.quote-field-grid{grid-template-columns:1fr!important}.quote-field-grid .full{grid-column:auto!important}.quote-service-fee-row{grid-template-columns:minmax(0,1fr) 122px!important}.quote-selected-accessory-head{display:none!important}.quote-selected-accessory-row{grid-template-columns:minmax(0,1fr) 52px 94px 28px!important}.quote-selected-accessory-row>.quote-accessory-line-total{grid-column:1/4;text-align:right}.quote-preview-stage{padding:10px!important;min-height:520px!important}.quote-accessory-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px)}.quote-accessory-dialog .quote-accessory-option-head{display:none!important}.quote-accessory-dialog .quote-accessory-option{grid-template-columns:minmax(0,1fr) 76px!important;gap:6px!important}.quote-accessory-dialog .quote-accessory-option>strong{grid-column:1}.quote-accessory-dialog .quote-accessory-option>span{grid-column:1}.quote-accessory-dialog .quote-accessory-option>b{grid-column:2;grid-row:1;text-align:right}.quote-accessory-dialog .quote-accessory-option>button{grid-column:2;grid-row:2}}

.home-conversion-hub{padding:74px max(24px,calc((100vw - 1240px)/2));background:linear-gradient(145deg,#101418 0%,#20262b 55%,#111417 100%);color:#fff}.home-conversion-heading{text-align:center;max-width:760px;margin:0 auto 34px}.home-conversion-heading p{margin:0;color:#ed1b2f;font-size:13px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.home-conversion-heading h2{margin:9px 0 0;font-size:clamp(30px,4vw,48px);line-height:1.08}.home-conversion-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:1180px;margin:auto}.conversion-form{background:#fff;color:#20262b;border-radius:18px;padding:28px;box-shadow:0 24px 60px rgba(0,0,0,.22);display:flex;flex-direction:column;gap:16px}.conversion-form-heading{display:grid;grid-template-columns:54px minmax(0,1fr);gap:14px;align-items:center;padding-bottom:16px;border-bottom:1px solid #e4e8eb}.conversion-form-icon{width:50px;height:50px;border-radius:14px;background:#ed1b2f;color:#fff;display:grid;place-items:center;font-size:24px;font-weight:900}.conversion-form-drive .conversion-form-icon{background:#171b1f}.conversion-form-heading p{margin:0;color:#ed1b2f;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}.conversion-form-heading h2{margin:3px 0;font-size:23px}.conversion-form-heading small{color:#707981;line-height:1.4}.conversion-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.conversion-form-grid .full{grid-column:1/-1}.conversion-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800}.conversion-form input,.conversion-form select,.conversion-form textarea{width:100%;border:1px solid #d0d6da;border-radius:10px;padding:12px 13px;background:#fff;font-size:14px}.conversion-form input:focus,.conversion-form select:focus,.conversion-form textarea:focus{border-color:#ed1b2f;box-shadow:0 0 0 3px rgba(237,27,47,.1);outline:0}.conversion-submit{border:0;border-radius:10px;padding:14px 18px;font-size:14px;font-weight:900;color:#fff;cursor:pointer}.conversion-submit-red{background:#ed1b2f}.conversion-submit-dark{background:#171b1f}.conversion-submit:hover{transform:translateY(-1px)}
@media(max-width:900px){.home-conversion-hub{padding:54px 20px}.home-conversion-grid{grid-template-columns:1fr}.conversion-form{padding:22px}}
@media(max-width:560px){.conversion-form-grid{grid-template-columns:1fr}.conversion-form-grid .full{grid-column:auto}.conversion-form-heading{grid-template-columns:46px minmax(0,1fr)}.conversion-form-icon{width:44px;height:44px}.conversion-form-heading h2{font-size:20px}}
/* V12 final A4 vertical balance */
.quote-customer-page .quote-standard-cards{height:auto!important;min-height:0!important;flex:1!important;margin-bottom:4mm!important}
.quote-customer-page .quote-standard-card{height:100%!important}


/* ==========================================================================\n   V14 EDITABLE USED QUOTE + PREVIEW ZOOM\n   ========================================================================== */
.quote-builder-v12{max-height:calc(100vh - 32px)!important;overflow-y:auto!important;overflow-x:hidden!important;scroll-padding-top:64px;scroll-padding-bottom:132px;overscroll-behavior:contain}
.quote-builder-v12 .quote-type-tabs{z-index:8!important}
.quote-builder-v12 .quote-form-section{flex:0 0 auto}
.quote-builder-v12 .quote-used-price-field small{display:block;color:#7a838b;font-weight:500;font-size:10px;line-height:1.35;margin-top:2px}
.quote-builder-actions-v12{z-index:9!important;box-shadow:0 -10px 24px rgba(20,27,34,.08)}
.quote-preview-toolbar{flex-wrap:wrap!important;padding:12px 14px!important;background:#fff!important;border-bottom:1px solid #dfe4e8!important}
.quote-preview-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-left:auto}
.quote-preview-zoom{display:flex;align-items:center;gap:5px;padding:4px;background:#f2f4f5;border:1px solid #dce1e4;border-radius:10px}
.quote-preview-zoom button{min-width:34px;height:32px;border:0;border-radius:7px;background:#fff;color:#20262b;font-weight:900;cursor:pointer;padding:0 9px}
.quote-preview-zoom button:hover{background:#171b1f;color:#fff}
.quote-preview-zoom span{min-width:94px;text-align:center;font-size:11px;font-weight:900;color:#4d565e;font-variant-numeric:tabular-nums}
.quote-preview-stage{overscroll-behavior:contain!important}
.quote-preview-document{width:210mm!important;max-width:none!important;transform:none!important}
@media(max-width:900px){.quote-builder-v12{max-height:none!important;overflow:visible!important}.quote-preview-toolbar-actions{width:100%;justify-content:flex-start}.quote-preview-zoom{order:2}.quote-preview-toolbar .button-row{order:1}}
@media(max-width:620px){.quote-preview-zoom span{min-width:78px}.quote-preview-zoom button{min-width:31px}.quote-preview-toolbar-actions{gap:7px}}
[data-used-price-field][hidden]{display:none!important}


/* V15: menu thu gọn, chế độ trình chiếu và logo Mitsubishi anh Trà duyệt */
.admin-sidebar-brand{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-height:58px}
.admin-sidebar-brand strong{display:grid;margin:0!important}
.admin-sidebar-toggle{width:34px;height:34px;border:1px solid #383b40;border-radius:9px;background:#1c1f23;color:#fff;font-size:25px;line-height:1;cursor:pointer;flex:0 0 auto}
.admin-sidebar-toggle:hover{background:#ed1b2f;border-color:#ed1b2f}
.admin-nav-icon{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;font-style:normal;font-size:16px}
.admin-sidebar a{gap:10px;justify-content:flex-start}
.admin-sidebar .admin-badge{margin-left:auto}
@media(min-width:721px){
  .admin-body.admin-sidebar-collapsed .admin-sidebar{width:78px;padding:20px 12px;align-items:stretch}
  .admin-body.admin-sidebar-collapsed .admin-main{margin-left:78px}
  .admin-body.admin-sidebar-collapsed .admin-sidebar-brand{justify-content:center}
  .admin-body.admin-sidebar-collapsed .admin-sidebar-brand strong,.admin-body.admin-sidebar-collapsed .admin-nav-group-label,.admin-body.admin-sidebar-collapsed .admin-nav-text{display:none}
  .admin-body.admin-sidebar-collapsed .admin-sidebar a{justify-content:center;padding:10px 6px;position:relative}
  .admin-body.admin-sidebar-collapsed .admin-sidebar .admin-badge{position:absolute;margin:0;right:4px;top:1px;min-width:18px;padding:1px 5px;font-size:10px}
}
body.quote-presentation-mode{overflow:hidden}
body.quote-presentation-mode .admin-sidebar,body.quote-presentation-mode .admin-topbar,body.quote-presentation-mode .quote-page-header-v12,body.quote-presentation-mode .quote-builder-v12,body.quote-presentation-mode .quote-recent,body.quote-presentation-mode .success-note,body.quote-presentation-mode .danger-note{display:none!important}
body.quote-presentation-mode .admin-main{margin:0!important;padding:0!important}
body.quote-presentation-mode .quote-workspace-v12{display:block!important}
body.quote-presentation-mode .quote-preview-shell-v12{position:fixed!important;inset:0!important;z-index:5000!important;width:100vw!important;height:100vh!important;min-height:100vh!important;border-radius:0!important;margin:0!important}
body.quote-presentation-mode .quote-preview-stage{padding:10px!important}
body.quote-presentation-mode [data-quote-presentation]{background:#ed1b2f!important;color:#fff!important;border-color:#ed1b2f!important}
.quote-approved-header{display:grid!important;grid-template-columns:55mm minmax(0,1fr)!important;background:#202428!important;border-bottom:1.2mm solid #e60012!important}
.quote-approved-logo-panel{background:#000;display:grid;place-items:center;position:relative;overflow:hidden;padding:2.2mm 4mm}
.quote-approved-logo-panel:after{content:"";position:absolute;right:-2mm;top:-8mm;width:1.2mm;height:55mm;background:#ed1b2f;transform:rotate(20deg)}
.quote-approved-logo-panel img{display:block!important;width:auto!important;height:29mm!important;max-width:43mm!important;object-fit:contain!important;position:relative;z-index:1}
.quote-approved-brand-panel{display:flex;flex-direction:column;justify-content:center;padding:0 13mm;color:#fff;min-width:0}
.quote-approved-brand-panel strong{font-size:9mm;line-height:1.05;white-space:nowrap}
.quote-approved-brand-panel span{font-size:3.2mm;letter-spacing:.4mm;color:#d5d8dc;margin-top:2mm}
.quote-approved-header-small{grid-template-columns:44mm minmax(0,1fr)!important}
.quote-approved-header-small .quote-approved-logo-panel img{height:21mm!important;max-width:34mm!important}
.quote-approved-header-small .quote-approved-brand-panel strong{font-size:7mm}
.quote-approved-header-small .quote-approved-brand-panel span{font-size:2.6mm}
@media(max-width:720px){.admin-sidebar-toggle{display:none}.admin-nav-icon{display:none}.admin-sidebar-brand{display:none}.quote-approved-brand-panel strong{font-size:8mm}}


/* ===== V16: Apple-like typography, A4 12 accessories, inventory and larger headings ===== */
:root{--mtc-system-font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif}
html,body,button,input,select,textarea,table{font-family:var(--mtc-system-font)!important}
body{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.mmv-section-heading h1{font-size:clamp(46px,5.2vw,74px)!important;line-height:1.02!important;letter-spacing:-.035em!important}
.mmv-section-heading h2{font-size:clamp(36px,4vw,58px)!important;line-height:1.05!important;letter-spacing:-.03em!important}
.mmv-section-heading>p{font-size:15px!important;letter-spacing:.12em!important;font-weight:800!important}
.quote-page-header-v12{display:flex!important;align-items:center!important;gap:16px!important}
.quote-page-header-v12>div:first-child{flex:1;min-width:0}
.quote-page-header-v12 h2{font-size:28px!important;letter-spacing:-.02em}
.quote-sync-all-button{white-space:nowrap;min-height:48px;padding:0 22px!important}
.quote-master-sync-status{margin:6px 0 0;color:#69727a;font-size:12px;line-height:1.4}
.quote-standard-cards{grid-template-columns:.92fr 1.08fr!important}
.quote-standard-price-body{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;padding:3.2mm 4.8mm!important;overflow:hidden!important}
.quote-price-values{display:grid!important;grid-template-columns:1fr!important}
.quote-standard-price-body .quote-price-values>div{padding:1.7mm 0!important;border-bottom:1px solid #dce0e3!important}
.quote-standard-price-body .quote-price-values small{font-size:2.55mm!important}
.quote-standard-price-body .quote-price-values strong{font-size:4.9mm!important;line-height:1!important}
.quote-standard-price-body .quote-price-values p{margin:1.3mm 0 0!important;font-size:2.15mm!important}
.quote-price-gifts{min-height:0;overflow:hidden;padding-top:1.7mm}
.quote-price-gifts h3{margin:0 0 .8mm;font-size:2.75mm;color:#ed1b2f;letter-spacing:.05em}
.quote-price-gifts .quote-standard-list{display:grid!important;grid-template-columns:1fr 1fr!important;column-gap:2.4mm!important;align-content:start!important}
.quote-price-gifts .quote-standard-list li{grid-template-columns:4.3mm minmax(0,1fr)!important;gap:1mm!important;padding:.72mm 0!important;font-size:2.2mm!important;line-height:1.08!important;min-height:4.4mm!important}
.quote-price-gifts .quote-gift-row-icon{width:3.7mm!important;height:3.7mm!important}
.quote-price-gifts .quote-gift-row-icon svg{width:2.4mm!important;height:2.4mm!important}
.quote-standard-gift-body{padding:2.8mm 4.3mm!important;display:flex!important;flex-direction:column!important;min-height:0!important}
.quote-standard-extra{margin:0!important;min-height:0!important;overflow:hidden!important}
.quote-standard-extra-list{display:grid!important;grid-template-columns:1fr!important}
.quote-standard-extra-list li{grid-template-columns:4.2mm minmax(0,1fr) 6mm auto!important;gap:1.1mm!important;padding:1mm 0!important;font-size:2.25mm!important;line-height:1.05!important;min-height:6.2mm!important}
.quote-standard-extra-list li>b{text-align:center;color:#555;font-size:2.15mm}
.quote-standard-extra-list li>strong{font-size:2.25mm!important}
.quote-standard-extra-list .quote-extra-row-icon{width:3.8mm!important;height:3.8mm!important}
.quote-standard-extra-list .quote-extra-row-icon svg{width:2.5mm!important;height:2.5mm!important}
.quote-no-extra{margin:auto;text-align:center;color:#7d858c;font-size:3mm}
.quote-inventory-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8mm;margin-bottom:5mm}
.quote-inventory-heading h3{margin:0 0 2mm!important;font-size:6mm!important}
.quote-inventory-heading small{max-width:65mm;text-align:right;color:#69727a;font-size:2.7mm;line-height:1.35}
.quote-inventory-guidance{margin:0;color:#333;font-size:3.3mm;line-height:1.4}
.quote-inventory-table th,.quote-inventory-table td{font-size:3mm!important;padding:3mm 2.4mm!important}
.quote-internal-inventory-page .quote-list-page-body{padding:10mm!important}
@media(max-width:900px){.quote-page-header-v12{align-items:flex-start!important}.quote-sync-all-button{width:100%}.mmv-section-heading h1{font-size:44px!important}.mmv-section-heading h2{font-size:36px!important}}
@media(max-width:620px){.mmv-section-heading h1{font-size:38px!important}.mmv-section-heading h2{font-size:32px!important}.quote-page-header-v12{display:block!important}.quote-sync-all-button{margin-top:12px}}
@media print{
  html,body,.quote-a4-page{font-family:var(--mtc-system-font)!important}
  .quote-price-gifts .quote-standard-list li{font-size:2.2mm!important;padding:.72mm 0!important}
  .quote-standard-extra-list li{font-size:2.25mm!important;padding:1mm 0!important;min-height:6.2mm!important}
}
/* V16 QA: reserve a fixed currency column so 12 accessory prices remain fully visible on A4. */
.quote-standard-extra-list li{grid-template-columns:4mm minmax(0,1fr) 5mm 19mm!important;column-gap:.9mm!important}
.quote-standard-extra-list li>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quote-standard-extra-list li>b{min-width:0}
.quote-standard-extra-list li>strong{width:19mm;text-align:right;white-space:nowrap;font-size:2.05mm!important;font-variant-numeric:tabular-nums}
.quote-standard-extra-list li{grid-template-columns:4mm minmax(0,1fr) 5mm 23mm!important}
.quote-standard-extra-list li>strong{width:23mm;font-size:1.9mm!important;padding-right:.5mm;box-sizing:border-box}
.quote-standard-extra-list li{display:grid!important;align-items:center!important;justify-content:normal!important}

/* V17 UI refinement: denser quote workspace, compact actions, and fuller A4 usage. */
.quote-hidden-action{display:none!important}
.quote-page-header-v12{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"copy action" "status action"!important;gap:10px 16px!important;align-items:center!important;padding:16px 18px!important}
.quote-page-header-v12>div:first-child{grid-area:copy}
.quote-page-header-v12 .quote-sync-all-button{grid-area:action;align-self:center;white-space:nowrap}
.quote-page-header-v12 .quote-data-status{grid-area:status;justify-content:flex-start!important;gap:10px!important;flex-wrap:wrap!important}
.quote-page-header-v12 .eyebrow{margin:0 0 4px!important}
.quote-page-header-v12 h2{margin:0!important;font-size:22px!important;line-height:1.14!important}
.quote-page-header-v12 .quote-master-sync-status{margin:4px 0 0!important;font-size:14px!important;color:#6d7680!important;line-height:1.45!important}
.quote-page-header-v12 .quote-data-status span{padding:8px 12px!important;border-radius:999px!important;font-size:15px!important}
.quote-page-header-v12 .quote-data-status strong{font-size:18px!important}

.quote-workspace-v12{grid-template-columns:minmax(340px,390px) minmax(0,1fr)!important;gap:14px!important}
.quote-builder-v12{gap:14px!important}
.quote-builder-v12 .quote-form-section,.quote-builder-v12 .quote-accessory-panel-v12{padding-bottom:0!important}
.quote-builder-actions-v12{position:static!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:0!important;padding:2px 0 0!important;background:transparent!important;border-top:0!important;box-shadow:none!important}
.quote-builder-actions-v12 .quote-reset-inline{padding:0!important;font-size:16px!important;font-weight:800!important}

.quote-preview-shell-v12{top:12px!important;height:calc(100vh - 20px)!important;min-height:0!important;border:1px solid #d9dfe4!important;background:#fff!important}
.quote-preview-toolbar{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:10px 14px!important;align-items:center!important;padding:10px 12px!important;background:#fff!important;border-bottom:1px solid #e0e5e9!important}
.quote-preview-toolbar-heading{display:flex;align-items:center;gap:8px;min-width:0}
.quote-preview-toolbar-heading .eyebrow{margin:0!important;white-space:nowrap}
.quote-preview-toolbar-heading strong{font-size:15px!important;line-height:1.2!important;white-space:nowrap}
.quote-preview-toolbar-main{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;flex-wrap:wrap}
.quote-preview-segment,.quote-preview-toolbar-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.quote-preview-toolbar .button-row{margin:0!important}
.quote-preview-toolbar [data-preview-mode],.quote-preview-compact-button{padding:10px 14px!important;border-radius:12px!important;font-size:14px!important;line-height:1.1!important;white-space:nowrap}
.quote-preview-zoom{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:4px!important;border:1px solid #d7dde2!important;border-radius:12px!important;background:#f4f6f7!important}
.quote-preview-zoom button{min-width:34px!important;height:34px!important;padding:0 10px!important;border-radius:10px!important;font-size:20px!important;line-height:1!important}
.quote-preview-zoom [data-preview-zoom-fit]{font-size:14px!important;min-width:auto!important;padding:0 12px!important}
.quote-preview-zoom span{min-width:58px!important;text-align:center!important;font-size:13px!important;font-weight:800!important;color:#4d5660!important}
.quote-preview-stage{padding:12px!important;background:#dde2e6!important}

.quote-customer-page .quote-standard-cards{height:108mm!important;min-height:108mm!important;gap:4mm!important;align-items:stretch!important}
.quote-customer-page .quote-standard-card{display:flex!important;flex-direction:column!important}
.quote-customer-page .quote-standard-card h2{padding:4.4mm 5.8mm!important;font-size:5.1mm!important;line-height:1.1!important}
.quote-customer-page .quote-standard-price-body{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:0!important;flex:1!important;padding:3.8mm 5mm!important}
.quote-customer-page .quote-standard-price-body .quote-price-values>div{padding:2.1mm 0!important}
.quote-customer-page .quote-standard-price-body .quote-price-values small{font-size:2.9mm!important;line-height:1.2!important}
.quote-customer-page .quote-standard-price-body .quote-price-values strong{font-size:5.5mm!important;line-height:1.02!important}
.quote-customer-page .quote-standard-price-body .quote-price-values p{margin:1.5mm 0 0!important;font-size:2.35mm!important;line-height:1.3!important}
.quote-customer-page .quote-price-gifts{display:flex!important;flex-direction:column!important;flex:1!important;margin-top:3mm!important}
.quote-customer-page .quote-price-gifts h3{margin:0 0 1.6mm!important;font-size:3.6mm!important;letter-spacing:.08em!important}
.quote-customer-page .quote-price-gifts .quote-standard-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:4mm!important;row-gap:0!important;align-content:start!important}
.quote-customer-page .quote-price-gifts .quote-standard-list li{display:grid!important;grid-template-columns:6mm minmax(0,1fr)!important;gap:1.7mm!important;align-items:center!important;padding:1.7mm 0!important;min-height:8.3mm!important;font-size:2.75mm!important;line-height:1.2!important}
.quote-customer-page .quote-price-gifts .quote-gift-row-icon{width:5.6mm!important;height:5.6mm!important}
.quote-customer-page .quote-price-gifts .quote-gift-row-icon svg{width:3.5mm!important;height:3.5mm!important}
.quote-customer-page .quote-standard-gift-body{padding:3.3mm 4.5mm!important;flex:1!important}
.quote-customer-page .quote-standard-extra{display:flex!important;flex-direction:column!important;flex:1!important}
.quote-customer-page .quote-standard-extra-list li{grid-template-columns:4.5mm minmax(0,1fr) 6mm 25mm!important;column-gap:1.2mm!important;padding:1.25mm 0!important;font-size:2.45mm!important;line-height:1.15!important;min-height:7.1mm!important}
.quote-customer-page .quote-standard-extra-list .quote-extra-row-icon{width:4.2mm!important;height:4.2mm!important}
.quote-customer-page .quote-standard-extra-list .quote-extra-row-icon svg{width:2.7mm!important;height:2.7mm!important}
.quote-customer-page .quote-standard-extra-list li>b{font-size:2.35mm!important}
.quote-customer-page .quote-standard-extra-list li>strong{width:25mm!important;font-size:2.18mm!important;padding-right:.2mm!important}
.quote-customer-page .quote-no-extra{font-size:3.3mm!important}

@media(max-width:1180px){
  .quote-workspace-v12{grid-template-columns:minmax(320px,360px) minmax(0,1fr)!important}
  .quote-preview-toolbar{grid-template-columns:1fr!important}
  .quote-preview-toolbar-main{justify-content:flex-start!important}
}
@media(max-width:900px){
  .quote-page-header-v12{grid-template-columns:1fr!important;grid-template-areas:"copy" "action" "status"!important}
  .quote-page-header-v12 .quote-sync-all-button{width:100%}
  .quote-preview-toolbar-main,.quote-preview-segment,.quote-preview-toolbar-tools{width:100%;justify-content:flex-start!important}
  .quote-preview-toolbar-tools{gap:7px!important}
}
@media(max-width:620px){
  .quote-preview-toolbar [data-preview-mode],.quote-preview-compact-button{padding:9px 12px!important;font-size:13px!important}
  .quote-preview-zoom{width:100%;justify-content:flex-start!important}
  .quote-preview-zoom span{min-width:52px!important}
}
@media print{
  .quote-customer-page .quote-standard-cards{height:108mm!important;min-height:108mm!important}
  .quote-customer-page .quote-price-gifts .quote-standard-list li{font-size:2.7mm!important;min-height:8.1mm!important}
  .quote-customer-page .quote-standard-extra-list li{font-size:2.4mm!important;min-height:7mm!important}
  .quote-customer-page .quote-standard-extra-list li>strong{font-size:2.12mm!important}
}

/* V18 premium quote workspace: compact, calm, Apple-inspired admin treatment. */
:root{
  --quote-surface:#ffffff;
  --quote-surface-soft:#f7f8fa;
  --quote-stage:#e9edf1;
  --quote-line:#e3e7eb;
  --quote-line-strong:#d5dbe1;
  --quote-text:#171a1f;
  --quote-muted:#6e7781;
  --quote-red:#e60012;
  --quote-shadow:0 18px 50px rgba(22,31,40,.08);
  --quote-shadow-soft:0 8px 24px rgba(22,31,40,.06);
}
.quote-ui-icon{display:inline-grid;place-items:center;width:18px;height:18px;flex:0 0 18px}
.quote-ui-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}

.quote-page-header-v12{position:relative!important;overflow:hidden!important;border:1px solid rgba(215,221,227,.9)!important;border-radius:20px!important;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(247,249,251,.98))!important;box-shadow:var(--quote-shadow-soft)!important;padding:15px 17px!important}
.quote-page-header-v12:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#ff3344,var(--quote-red))}
.quote-page-header-v12>div:first-child{padding-left:4px}
.quote-page-header-v12 .eyebrow{color:#89919a!important;font-size:11px!important;font-weight:850!important;letter-spacing:.13em!important}
.quote-page-header-v12 h2{font-size:21px!important;font-weight:780!important;letter-spacing:-.025em!important;color:var(--quote-text)!important}
.quote-page-header-v12 .quote-master-sync-status{font-size:12px!important;color:var(--quote-muted)!important}
.quote-page-header-v12 .quote-data-status{gap:7px!important}
.quote-page-header-v12 .quote-data-status span{display:inline-flex!important;align-items:center!important;gap:7px!important;padding:6px 10px!important;border:1px solid var(--quote-line)!important;border-radius:999px!important;background:rgba(255,255,255,.82)!important;color:#59626c!important;font-size:11px!important;font-weight:750!important;box-shadow:0 1px 0 rgba(255,255,255,.8) inset!important}
.quote-page-header-v12 .quote-data-status span:before{content:"";width:6px;height:6px;border-radius:50%;background:#b8bec5}
.quote-page-header-v12 .quote-data-status span:first-child:before{background:#2aa36b}
.quote-page-header-v12 .quote-data-status span:nth-child(2):before{background:#737b84}
.quote-page-header-v12 .quote-data-status span:nth-child(3):before{background:var(--quote-red)}
.quote-page-header-v12 .quote-data-status strong{font-size:13px!important;color:#1e2329!important;font-variant-numeric:tabular-nums}
.quote-sync-all-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:42px!important;padding:10px 15px!important;border-radius:13px!important;border:1px solid #cf0010!important;background:linear-gradient(180deg,#f01b2c,#d90011)!important;box-shadow:0 7px 18px rgba(230,0,18,.18),0 1px 0 rgba(255,255,255,.28) inset!important;font-size:13px!important;font-weight:800!important;transition:transform .18s ease,box-shadow .18s ease!important}
.quote-sync-all-button:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(230,0,18,.23),0 1px 0 rgba(255,255,255,.28) inset!important}
.quote-sync-all-button:active{transform:translateY(0)}

.quote-workspace-v12{grid-template-columns:minmax(330px,372px) minmax(0,1fr)!important;gap:13px!important;margin-top:13px!important}
.quote-builder-v12{border:1px solid var(--quote-line)!important;border-radius:20px!important;background:rgba(255,255,255,.98)!important;box-shadow:var(--quote-shadow)!important}
.quote-builder-v12 .quote-type-tabs{padding:10px!important;background:rgba(255,255,255,.94)!important;border-bottom:1px solid #edf0f2!important;backdrop-filter:blur(16px)}
.quote-builder-v12 .quote-type-tabs:before{content:"";position:absolute;inset:9px;border-radius:13px;background:#f1f3f5;z-index:-1}
.quote-type-tabs{position:relative!important;gap:4px!important}
.quote-type-tab{border:0!important;border-radius:11px!important;padding:10px 11px!important;background:transparent!important;color:#69727c!important;font-size:12px!important;font-weight:800!important;transition:background .18s ease,color .18s ease,box-shadow .18s ease!important}
.quote-type-tab.is-active{background:#fff!important;color:#15191e!important;box-shadow:0 3px 10px rgba(24,32,40,.08),0 0 0 1px rgba(211,216,221,.85)!important}

.quote-builder-v12 .quote-form-section,.quote-builder-v12 .quote-accessory-panel-v12{margin:0 10px 9px!important;border:1px solid #e5e9ed!important;border-radius:15px!important;background:#fff!important;box-shadow:0 2px 8px rgba(23,31,39,.025)!important}
.quote-builder-v12 .quote-form-section>header,.quote-builder-v12 .quote-accessory-panel-v12>header{min-height:42px!important;padding:10px 12px!important;background:linear-gradient(180deg,#fbfcfd,#f7f8fa)!important;border-bottom:1px solid #e8ebee!important}
.quote-builder-v12 .quote-form-section>header strong,.quote-builder-v12 .quote-accessory-panel-v12>header strong{font-size:12px!important;font-weight:850!important;color:#242a30!important;letter-spacing:-.005em!important}
.quote-builder-v12 .quote-form-body{padding:10px!important}
.quote-builder-v12 label{font-size:11px!important;font-weight:780!important;color:#505962!important;gap:5px!important}
.quote-builder-v12 input,.quote-builder-v12 select,.quote-builder-v12 textarea{min-height:40px!important;border:1px solid #d8dde2!important;border-radius:11px!important;padding:9px 10px!important;background:#fbfcfd!important;color:#181c21!important;font-size:12px!important;box-shadow:0 1px 0 rgba(255,255,255,.9) inset!important;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important}
.quote-builder-v12 input:hover,.quote-builder-v12 select:hover,.quote-builder-v12 textarea:hover{border-color:#c8cfd6!important;background:#fff!important}
.quote-builder-v12 input:focus,.quote-builder-v12 select:focus,.quote-builder-v12 textarea:focus{border-color:#e60012!important;background:#fff!important;box-shadow:0 0 0 3px rgba(230,0,18,.085)!important}
.quote-field-grid{gap:9px!important}
.compact-button{min-height:30px!important;padding:6px 9px!important;border-radius:9px!important;font-size:10px!important}

.quote-service-fee-row{grid-template-columns:minmax(0,1fr) 122px!important;padding:8px 10px!important}
.quote-service-fee-row span strong{font-size:11px!important;color:#363d45!important}
.quote-service-fee-row span small{font-size:9px!important;color:#9299a1!important}
.quote-service-fee-row input{min-height:35px!important;background:#f8f9fa!important;font-size:11px!important}
.quote-accessory-actions{padding:9px!important}
.quote-accessory-open-button{grid-template-columns:34px minmax(0,1fr) 17px!important;padding:9px!important;border-radius:12px!important;border-color:#dfe4e8!important;background:linear-gradient(180deg,#fff,#fafbfc)!important;box-shadow:0 2px 8px rgba(22,30,38,.035)!important}
.quote-accessory-open-button:hover{border-color:rgba(230,0,18,.45)!important;background:#fff!important;box-shadow:0 5px 14px rgba(230,0,18,.07)!important}
.quote-accessory-open-icon{width:31px!important;height:31px!important;background:linear-gradient(180deg,#f22637,#dc0011)!important;box-shadow:0 5px 12px rgba(230,0,18,.18)!important;font-size:19px!important}
.quote-accessory-open-button strong{font-size:12px!important}
.quote-accessory-open-button small{font-size:9px!important}
.quote-selected-accessory-row{padding:8px 10px!important}
.quote-note-details{margin:0 10px 8px!important;border:1px solid #e6eaed!important;border-radius:13px!important;background:#fafbfc!important;overflow:hidden!important}
.quote-note-details summary{padding:10px 12px!important;font-size:11px!important;font-weight:800!important;color:#59626b!important;cursor:pointer!important}
.quote-note-details textarea{margin:0 10px 10px!important;width:calc(100% - 20px)!important}
.quote-profit-live{margin:0 10px 8px!important;padding:11px 12px!important;border:1px solid rgba(230,0,18,.15)!important;border-radius:14px!important;background:linear-gradient(135deg,#fff8f8,#fff)!important;box-shadow:0 5px 16px rgba(230,0,18,.055)!important}
.quote-profit-live small{font-size:9px!important;font-weight:850!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:#a05b61!important}
.quote-profit-live strong{display:block!important;margin-top:3px!important;font-size:17px!important;line-height:1.2!important;letter-spacing:-.025em!important;color:#d90011!important;font-variant-numeric:tabular-nums}
.quote-profit-live span{display:block!important;margin-top:4px!important;font-size:9px!important;line-height:1.4!important;color:#7b6a6c!important}
.quote-builder-actions-v12{margin:0 10px 10px!important;padding:0!important}
.quote-builder-actions-v12 .quote-reset-inline{min-height:34px!important;padding:0 4px!important;color:#717a83!important;font-size:12px!important;text-decoration:none!important}
.quote-builder-actions-v12 .quote-reset-inline:hover{color:#d90011!important}

.quote-preview-shell-v12{top:10px!important;height:calc(100vh - 18px)!important;border:1px solid var(--quote-line-strong)!important;border-radius:20px!important;background:#fff!important;box-shadow:var(--quote-shadow)!important}
.quote-preview-toolbar{min-height:62px!important;grid-template-columns:auto minmax(0,1fr)!important;padding:9px 11px!important;border-bottom:1px solid #e5e9ec!important;background:rgba(255,255,255,.9)!important;backdrop-filter:blur(18px) saturate(1.25)!important}
.quote-preview-toolbar-heading{gap:9px!important;padding-right:4px!important}
.quote-preview-toolbar-heading>div{display:grid;gap:1px}
.quote-preview-toolbar-heading .eyebrow{margin:0!important;color:#8a929a!important;font-size:9px!important;font-weight:850!important;letter-spacing:.13em!important}
.quote-preview-toolbar-heading strong{font-size:13px!important;font-weight:820!important;color:#1f2429!important}
.quote-preview-status-dot{position:relative;display:block;width:10px;height:10px;border-radius:50%;background:#31b36b;box-shadow:0 0 0 4px rgba(49,179,107,.11)}
.quote-preview-status-dot:after{content:"";position:absolute;inset:2px;border-radius:50%;background:#fff;opacity:.45}
.quote-preview-toolbar-main{gap:9px!important}
.quote-preview-segment{display:inline-flex!important;gap:3px!important;padding:3px!important;border:1px solid #e0e4e8!important;border-radius:13px!important;background:#f1f3f5!important}
.quote-preview-toolbar [data-preview-mode]{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:35px!important;padding:7px 11px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#69727b!important;font-size:11px!important;font-weight:800!important;box-shadow:none!important}
.quote-preview-toolbar [data-preview-mode].is-active{background:#fff!important;color:#171b20!important;box-shadow:0 3px 10px rgba(20,27,34,.08),0 0 0 1px rgba(211,216,221,.85)!important}
.quote-preview-toolbar [data-preview-mode].is-active .quote-ui-icon{color:var(--quote-red)!important}
.quote-toolbar-divider{display:block;width:1px;height:28px;background:#e3e7ea}
.quote-preview-toolbar-tools{gap:6px!important;flex-wrap:nowrap!important}
.quote-preview-zoom{gap:3px!important;padding:3px!important;border-color:#e0e4e8!important;border-radius:12px!important;background:#f5f6f7!important}
.quote-preview-zoom button{min-width:30px!important;height:30px!important;padding:0 8px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#4f5861!important;font-size:17px!important;font-weight:700!important}
.quote-preview-zoom button:hover{background:#fff!important;box-shadow:0 2px 7px rgba(20,27,34,.07)!important}
.quote-preview-zoom [data-preview-zoom-fit]{font-size:10px!important;font-weight:800!important;padding:0 9px!important}
.quote-preview-zoom span{min-width:46px!important;font-size:10px!important;color:#737c85!important}
.quote-preview-compact-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:36px!important;padding:8px 10px!important;border:1px solid #dfe3e7!important;border-radius:11px!important;background:#fff!important;color:#4d5660!important;font-size:10px!important;font-weight:800!important;box-shadow:0 2px 7px rgba(20,27,34,.035)!important}
.quote-preview-compact-button:hover{border-color:#cfd5da!important;background:#fafbfc!important;transform:translateY(-1px)}
.quote-print-button{border-color:#252a30!important;background:#252a30!important;color:#fff!important;box-shadow:0 6px 14px rgba(23,28,33,.14)!important}
.quote-print-button:hover{border-color:#171b1f!important;background:#171b1f!important;color:#fff!important}
.quote-preview-stage{padding:10px!important;background:radial-gradient(circle at 50% 0,#f2f4f6 0,#e7ebef 45%,#dfe4e8 100%)!important}
.quote-a4-page{box-shadow:0 20px 55px rgba(25,33,41,.17),0 2px 7px rgba(25,33,41,.08)!important}

.quote-recent{margin-top:13px!important;border:1px solid var(--quote-line)!important;border-radius:18px!important;box-shadow:var(--quote-shadow-soft)!important;overflow:hidden!important}
.quote-recent>h2{margin:0!important;padding:14px 16px!important;border-bottom:1px solid var(--quote-line)!important;background:linear-gradient(180deg,#fff,#fafbfc)!important;font-size:15px!important;letter-spacing:-.015em!important}
.quote-recent .admin-table-wrap{padding:0!important}
.quote-recent .price-table th{background:#f6f8f9!important;color:#7b848d!important;font-size:9px!important;letter-spacing:.08em!important;text-transform:uppercase!important}
.quote-recent .price-table td{font-size:11px!important;padding:10px 11px!important}

@media(max-width:1360px){
  .quote-workspace-v12{grid-template-columns:minmax(320px,350px) minmax(0,1fr)!important}
  .quote-preview-toolbar{grid-template-columns:1fr!important;gap:7px!important}
  .quote-preview-toolbar-main{justify-content:flex-start!important}
  .quote-toolbar-divider{display:none!important}
}
@media(max-width:1080px){
  .quote-preview-toolbar-tools{flex-wrap:wrap!important}
  .quote-preview-stage{padding:8px!important}
}
@media(max-width:900px){
  .quote-workspace-v12{display:block!important}
  .quote-builder-v12{margin-bottom:12px!important}
  .quote-preview-shell-v12{height:auto!important;min-height:640px!important}
  .quote-preview-toolbar-main,.quote-preview-segment,.quote-preview-toolbar-tools{width:100%!important}
  .quote-preview-toolbar-tools{justify-content:flex-start!important}
}
@media(max-width:620px){
  .quote-page-header-v12{border-radius:16px!important;padding:13px 14px!important}
  .quote-page-header-v12 h2{font-size:18px!important}
  .quote-preview-toolbar [data-preview-mode]{flex:1!important}
  .quote-preview-segment{width:100%!important}
  .quote-preview-compact-button{flex:1 1 auto!important}
  .quote-preview-zoom{width:100%!important}
}
@media print{
  .quote-preview-stage{background:#fff!important}
  .quote-a4-page{box-shadow:none!important}
}

/* V19 fixes: preserve full selected names, clearer used-car names, notes open by default. */
.quote-selected-accessory-head{display:none!important}
.quote-selected-accessory-row{
  display:grid!important;
  grid-template-columns:58px minmax(105px,1fr) 84px 30px!important;
  grid-template-areas:
    "name name name name"
    "qty mode total remove"!important;
  gap:7px 8px!important;
  align-items:end!important;
  padding:10px!important;
}
.quote-selected-accessory-name{
  grid-area:name!important;
  min-width:0!important;
  padding-bottom:6px!important;
  border-bottom:1px dashed #e3e7ea!important;
}
.quote-selected-accessory-name strong{
  display:block!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:12px!important;
  line-height:1.35!important;
  color:#252b31!important;
  word-break:break-word!important;
}
.quote-selected-accessory-name small{
  display:block!important;
  margin-top:2px!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:9px!important;
  line-height:1.3!important;
  color:#7b848d!important;
}
.quote-selected-accessory-row label:nth-of-type(1){grid-area:qty!important}
.quote-selected-accessory-row label:nth-of-type(2){grid-area:mode!important}
.quote-selected-accessory-row label>span{
  display:block!important;
  margin:0 0 4px!important;
  color:#8a929a!important;
  font-size:8px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
}
.quote-selected-accessory-row input,.quote-selected-accessory-row select{min-height:34px!important}
.quote-accessory-line-total{
  grid-area:total!important;
  align-self:end!important;
  min-width:0!important;
  padding-bottom:9px!important;
  text-align:right!important;
  font-size:10px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  color:#252b31!important;
}
.quote-accessory-line-total:before{
  content:"Thành tiền";
  display:block;
  margin-bottom:6px;
  color:#8a929a;
  font-size:6px;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.quote-selected-accessory-row .crm-delete-button{grid-area:remove!important;align-self:end!important;margin-bottom:4px!important}

.quote-used-result-head{
  grid-template-columns:92px minmax(0,1fr) 92px!important;
  gap:8px!important;
}
.quote-used-result-head span:nth-child(4){display:none!important}
.quote-used-result{
  display:grid!important;
  grid-template-columns:92px minmax(0,1fr) 92px!important;
  grid-template-areas:
    "plate model price"
    "meta meta meta"!important;
  gap:4px 8px!important;
  align-items:center!important;
  padding:10px 9px!important;
}
.quote-used-result-plate{grid-area:plate!important;font-size:11px!important;white-space:nowrap!important}
.quote-used-result-model{
  grid-area:model!important;
  min-width:0!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.25!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:break-word!important;
}
.quote-used-result-price{grid-area:price!important;text-align:right!important;font-size:10px!important;white-space:nowrap!important}
.quote-used-result-meta{
  grid-area:meta!important;
  display:block!important;
  min-width:0!important;
  color:#7c858d!important;
  font-size:9px!important;
  line-height:1.3!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.quote-note-details[open] summary{border-bottom:1px solid #e7ebee!important;background:#fff!important;color:#30373e!important}
.quote-accessory-dialog .quote-accessory-option>span b{white-space:normal!important;line-height:1.3!important;word-break:break-word!important}

@media(max-width:1360px){
  .quote-used-result-head{grid-template-columns:84px minmax(0,1fr) 84px!important}
  .quote-used-result{grid-template-columns:84px minmax(0,1fr) 84px!important}
}
@media(max-width:620px){
  .quote-selected-accessory-row{
    grid-template-columns:54px minmax(95px,1fr) 78px 28px!important;
    grid-template-areas:"name name name name" "qty mode total remove"!important;
  }
  .quote-used-result-head{display:none!important}
  .quote-used-result{
    grid-template-columns:88px minmax(0,1fr)!important;
    grid-template-areas:"plate price" "model model" "meta meta"!important;
  }
  .quote-used-result-price{text-align:right!important}
}

.quote-standard-extra-list .quote-accessory-customer-total{border-top:1.5px solid #20252a!important;margin-top:1mm!important;padding-top:1.4mm!important;font-weight:900!important}.quote-standard-extra-list .quote-accessory-customer-total span:nth-child(2){text-transform:uppercase}.quote-standard-extra-list .quote-accessory-customer-total strong{color:#ed1b2f;font-size:2.9mm}

/* V24 quote refinements: lift approved header, compact hero, and add default gift checklist. */
.quote-approved-brand-panel{justify-content:flex-start!important;padding:4.4mm 13mm 2.6mm!important}
.quote-approved-brand-panel strong{margin:0!important}
.quote-approved-brand-panel span{margin-top:1mm!important}
.quote-approved-logo-panel{padding:1.8mm 4mm 1.2mm!important}

.quote-standard-body{padding:4.8mm 10mm 2.6mm!important}
.quote-standard-title-row{align-items:flex-start!important}
.quote-standard-title-row h1{font-size:10.4mm!important;line-height:.98!important}
.quote-standard-title-row i{margin-top:2.1mm!important}
.quote-standard-meta{padding-top:.8mm!important;font-size:3.15mm!important}
.quote-standard-car-title{margin:3.6mm 0 3.4mm!important}
.quote-standard-car-title strong{font-size:6.05mm!important}
.quote-standard-car-title b{font-size:5.35mm!important}
.quote-standard-hero{height:61mm!important;flex:0 0 61mm!important}
.quote-standard-hero strong{padding:2.1mm 4mm!important;font-size:3.45mm!important}
.quote-standard-cards{margin-top:4.1mm!important;height:109mm!important;min-height:109mm!important;gap:4.2mm!important}
.quote-customer-page .quote-standard-cards{height:116mm!important;min-height:116mm!important}
.quote-customer-page .quote-price-gifts{margin-top:2.2mm!important}
.quote-customer-page .quote-standard-extra-list li{padding:1.05mm 0!important;min-height:6.65mm!important}
@media print{.quote-customer-page .quote-standard-cards{height:116mm!important;min-height:116mm!important}}

.quote-default-gift-panel .quote-source-note{margin:10px 0 0!important;color:#68727c!important;font-size:12px!important;line-height:1.45!important}
.quote-default-gift-list{display:grid;gap:0;border:1px solid var(--quote-line);border-radius:16px;background:#fff;overflow:hidden}
.quote-default-gift-item{display:grid;grid-template-columns:18px minmax(0,1fr);gap:12px;align-items:flex-start;padding:12px 14px;border-top:1px solid #edf1f4;cursor:pointer}
.quote-default-gift-item:first-child{border-top:0}
.quote-default-gift-item input{margin:2px 0 0;width:18px;height:18px;accent-color:var(--quote-red)}
.quote-default-gift-item span{display:grid;gap:3px;min-width:0}
.quote-default-gift-item strong{font-size:14px!important;line-height:1.35!important;color:#1a1f25!important}
.quote-default-gift-item small{font-size:12px!important;line-height:1.4!important;color:#7a838d!important}
.quote-default-gift-item:hover{background:#fafbfc}

/* V25 responsive optimization for tablet and mobile admin use. */
@media (max-width: 1180px){
  .quote-workspace-v12{grid-template-columns:minmax(300px,340px) minmax(0,1fr)!important;gap:12px!important}
  .quote-builder-v12{position:static!important;top:auto!important}
  .quote-preview-shell-v12{position:sticky!important;top:8px!important}
  .quote-preview-toolbar{grid-template-columns:1fr!important}
  .quote-preview-toolbar-main{justify-content:flex-start!important;width:100%!important}
  .quote-preview-toolbar-tools,.quote-preview-segment{width:100%!important}
  .quote-preview-toolbar-tools{overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:3px!important;-webkit-overflow-scrolling:touch}
  .quote-preview-toolbar-tools>*{flex:0 0 auto!important}
}

@media (max-width: 900px){
  .admin-layout{display:block!important}
  .admin-sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:min(82vw,300px)!important;z-index:6000!important;transform:translateX(-105%)!important;transition:transform .22s ease!important;box-shadow:18px 0 45px rgba(0,0,0,.22)!important}
  body.admin-sidebar-open .admin-sidebar{transform:translateX(0)!important}
  .admin-main{margin-left:0!important;width:100%!important;min-width:0!important}
  .admin-sidebar-toggle{display:inline-flex!important;position:sticky!important;top:10px!important;z-index:6100!important}
  .quote-workspace-v12{display:block!important}
  .quote-builder-v12{position:static!important;width:100%!important;margin-bottom:14px!important}
  .quote-preview-shell-v12{position:static!important;height:auto!important;min-height:0!important;width:100%!important}
  .quote-preview-stage{min-height:0!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:10px!important}
  .quote-preview{width:100%!important;max-width:100%!important;margin:0!important;overflow:auto!important}
  .quote-preview-document{transform-origin:top left!important}
  .quote-page-header-v12{grid-template-columns:1fr!important;grid-template-areas:"copy" "action" "status"!important}
  .quote-page-header-v12 .quote-sync-all-button{width:100%!important}
  .quote-field-grid{grid-template-columns:1fr!important}
  .quote-field-grid .full{grid-column:auto!important}
  .quote-selected-accessory-head{display:none!important}
  .quote-selected-accessory-row{grid-template-columns:minmax(0,1fr) 74px!important;gap:10px!important;padding:13px!important}
  .quote-selected-accessory-row>label{grid-column:auto!important}
  .quote-selected-accessory-row>label:nth-of-type(2){grid-column:1/-1!important}
  .quote-selected-accessory-row>.quote-accessory-line-total{justify-self:end!important;align-self:end!important}
  .quote-selected-accessory-row>.crm-delete-button{position:absolute!important;right:10px!important;top:10px!important}
  .quote-selected-accessory-row{position:relative!important;padding-right:44px!important}
  .quote-service-fee-head{display:none!important}
  .quote-service-fee-row{grid-template-columns:minmax(0,1fr) 130px!important}
  .quote-used-result-head{display:none!important}
  .quote-used-results{display:grid!important;grid-template-columns:1fr!important}
  .quote-used-result{grid-template-columns:1fr auto!important;grid-template-areas:"plate price" "model model" "meta meta"!important;gap:5px 10px!important}
  .quote-used-result-plate{grid-area:plate!important}.quote-used-result-price{grid-area:price!important}.quote-used-result-model{grid-area:model!important}.quote-used-result-meta{grid-area:meta!important}
  .quote-accessory-dialog{width:min(94vw,760px)!important;max-height:88vh!important}
  .quote-accessory-option{grid-template-columns:1fr auto!important;grid-template-areas:"code price" "name name" "scope button"!important;gap:8px 12px!important}
  .quote-accessory-option>strong{grid-area:code!important}.quote-accessory-option>span{grid-area:name!important}.quote-accessory-option>em{grid-area:scope!important}.quote-accessory-option>b{grid-area:price!important}.quote-accessory-option>button{grid-area:button!important}
  .quote-default-gift-list{grid-template-columns:1fr!important}
}

@media (max-width: 620px){
  .admin-content,.admin-main-content{padding-left:10px!important;padding-right:10px!important}
  .quote-page-header-v12{padding:13px!important;border-radius:16px!important}
  .quote-page-header-v12 h2{font-size:19px!important}
  .quote-page-header-v12 .quote-data-status{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  .quote-page-header-v12 .quote-data-status span{justify-content:center!important}
  .quote-type-tabs{grid-template-columns:1fr!important}
  .quote-form-section>header{align-items:flex-start!important;gap:8px!important;flex-wrap:wrap!important}
  .quote-form-body{padding:12px!important}
  .quote-builder input,.quote-builder select,.quote-builder textarea{font-size:16px!important;min-height:44px!important}
  .quote-service-fee-row{grid-template-columns:1fr!important}
  .quote-service-fee-row input{width:100%!important}
  .quote-preview-toolbar{padding:9px!important}
  .quote-preview-toolbar-main{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
  .quote-preview-segment,.quote-preview-toolbar-tools{width:100%!important}
  .quote-preview-segment [data-preview-mode]{flex:1 1 0!important}
  .quote-preview-zoom{width:100%!important;justify-content:space-between!important}
  .quote-preview-compact-button,.quote-print-button{width:100%!important;justify-content:center!important}
  .quote-preview-stage{padding:6px!important}
  .quote-default-gift-item{padding:11px 12px!important}
  .quote-accessory-open-button{padding:12px!important}
  .quote-selected-accessory-row{grid-template-columns:1fr!important;padding-right:44px!important}
  .quote-selected-accessory-row>.quote-accessory-line-total{justify-self:start!important}
  .quote-profit-live{padding:13px!important}
  .quote-builder-actions-v12{justify-content:center!important}
  .quote-reset-inline{min-height:44px!important}
  .quote-accessory-dialog{width:96vw!important;border-radius:16px!important;padding:0!important}
  .quote-accessory-dialog header{position:sticky!important;top:0!important;z-index:2!important;background:#fff!important}
  .quote-accessory-categories{overflow-x:auto!important;flex-wrap:nowrap!important;-webkit-overflow-scrolling:touch!important}
  .quote-accessory-categories button{flex:0 0 auto!important}
}

@media (orientation:landscape) and (max-height:600px) and (max-width:1000px){
  .quote-preview-shell-v12{position:static!important}
  .quote-preview-stage{max-height:none!important}
}


/* V26: restore a reliable mobile/tablet admin navigation trigger. */
.admin-mobile-menu-toggle,.admin-sidebar-backdrop{display:none}
@media (max-width:900px){
  .admin-mobile-menu-toggle{display:grid!important;place-items:center;position:fixed;left:max(12px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top));z-index:6200;width:46px;height:46px;padding:0;border:1px solid #d8dde2;border-radius:14px;background:#fff;color:#15191d;box-shadow:0 10px 28px rgba(20,28,36,.18);font-size:25px;font-weight:800;line-height:1;cursor:pointer}
  .admin-mobile-menu-toggle:active{transform:scale(.97)}
  .admin-sidebar-backdrop{display:block!important;position:fixed;inset:0;z-index:5900;border:0;background:rgba(8,12,16,.48);opacity:0;pointer-events:none;transition:opacity .2s ease}
  body.admin-sidebar-open .admin-sidebar-backdrop{opacity:1;pointer-events:auto}
  body.admin-sidebar-open{overflow:hidden}
  .admin-sidebar{z-index:6000!important;visibility:visible!important}
  .admin-sidebar-brand{display:flex!important;align-items:flex-start!important}
  .admin-sidebar-brand strong{display:grid!important}
  .admin-sidebar .admin-sidebar-toggle{display:inline-flex!important;position:static!important;top:auto!important;z-index:auto!important;align-items:center!important;justify-content:center!important}
  .admin-sidebar .admin-nav-icon{display:inline-grid!important}
  .admin-main{padding-top:68px!important}
  .admin-topbar{margin-top:0!important}
}
@media (min-width:901px){
  body.admin-sidebar-open{overflow:auto}
}

/* V27: used-car fee toggles, optional customer fee detail, and vertical mobile admin menu. */
.quote-service-fee-row.has-fee-toggle{
  grid-template-columns:26px minmax(0,1fr) 130px!important;
}
.quote-service-fee-toggle{
  width:20px!important;
  height:20px!important;
  min-height:20px!important;
  margin:0!important;
  padding:0!important;
  accent-color:var(--quote-red,#e60012);
  cursor:pointer;
}
.quote-service-fee-toggle-placeholder{display:block;width:20px;height:20px}
.quote-service-fee-row.is-fee-disabled{background:#f7f8f9!important;color:#7c858d!important}
.quote-service-fee-row.is-fee-disabled>span strong{text-decoration:line-through;text-decoration-thickness:1px}
.quote-service-fee-row.is-fee-disabled>input[type="text"]{background:#eceff1!important;color:#8a929a!important}
.quote-used-customer-cost-toggle{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:11px;
  align-items:flex-start;
  padding:13px 14px;
  border-top:1px solid #e6eaed;
  background:#fafbfc;
  cursor:pointer;
}
.quote-used-customer-cost-toggle[hidden]{display:none!important}
.quote-used-customer-cost-toggle input{
  width:20px!important;
  height:20px!important;
  min-height:20px!important;
  margin:1px 0 0!important;
  padding:0!important;
  accent-color:var(--quote-red,#e60012);
}
.quote-used-customer-cost-toggle span{display:grid;gap:3px;min-width:0}
.quote-used-customer-cost-toggle strong{font-size:12px;line-height:1.35;color:#20262c}
.quote-used-customer-cost-toggle small{font-size:10px;line-height:1.45;color:#747d86}
.quote-used-cost-customer-table td:last-child,.quote-used-cost-customer-table th:last-child{text-align:right}
.quote-used-cost-note{margin:3mm 0 0;color:#6d7680;font-size:2.8mm;line-height:1.45}
.quote-internal-table tr.is-fee-excluded td{background:#f5f6f7;color:#7d858d}
.quote-internal-table tr.is-fee-excluded td:first-child{text-decoration:line-through}

@media(max-width:900px){
  .admin-sidebar{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
    width:min(88vw,320px)!important;
    height:100vh!important;
    height:100dvh!important;
    max-height:100dvh!important;
    padding:max(18px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    white-space:normal!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .admin-sidebar-brand{display:flex!important;width:100%!important;align-items:flex-start!important;flex:0 0 auto!important}
  .admin-sidebar-brand strong{display:grid!important;font-size:23px!important;white-space:normal!important}
  .admin-nav-group{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;width:100%!important;flex:0 0 auto!important}
  .admin-nav-group-label{display:block!important;width:100%!important;padding:4px 10px!important}
  .admin-nav-account{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;width:100%!important;margin-top:14px!important;padding-top:12px!important;border-top:1px solid #303238!important}
  .admin-sidebar a{
    display:flex!important;
    width:100%!important;
    min-height:44px!important;
    flex:0 0 auto!important;
    justify-content:flex-start!important;
    gap:10px!important;
    padding:10px 12px!important;
    white-space:normal!important;
    border:0!important;
  }
  .admin-sidebar .admin-badge{margin-left:auto!important}
  .admin-sidebar .admin-nav-icon{display:inline-grid!important;flex:0 0 24px!important}
}

@media(max-width:620px){
  .quote-service-fee-row.has-fee-toggle{
    grid-template-columns:28px minmax(0,1fr)!important;
    align-items:start!important;
  }
  .quote-service-fee-row.has-fee-toggle .quote-service-fee-toggle{grid-column:1;grid-row:1/3;margin-top:2px!important}
  .quote-service-fee-row.has-fee-toggle>span{grid-column:2;grid-row:1}
  .quote-service-fee-row.has-fee-toggle>input[type="text"]{grid-column:2;grid-row:2;width:100%!important}
  .quote-used-customer-cost-toggle{padding:12px!important}
}

/* V28: bank-loan calculators, complete data sync, public mobile navigation, and approved accessory title logo. */
.quote-title-logo{
  display:block;
  width:11mm;
  height:8mm;
  flex:0 0 11mm;
  object-fit:contain;
  object-position:center;
  margin:0 2.2mm 0 0;
  border:0;
  background:transparent;
}
.quote-standard-extra-card h2{display:flex!important;align-items:center!important;gap:0!important}
.quote-standard-extra-card .quote-title-icon{display:none!important}

.quote-loan-panel .quote-source-note{margin:12px 14px 0;color:#6d7680;font-size:11px;line-height:1.5}
.quote-loan-enable{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:flex-start;padding:13px 14px;border:1px solid #e1e6ea;border-radius:14px;background:#fafbfc;cursor:pointer}
.quote-loan-enable input{width:20px!important;height:20px!important;min-height:20px!important;margin:1px 0 0!important;padding:0!important;accent-color:var(--quote-red,#e60012)}
.quote-loan-enable span{display:grid;gap:3px;min-width:0}
.quote-loan-enable strong{font-size:13px;color:#20262c}
.quote-loan-enable small{font-size:11px;line-height:1.45;color:#747d86}
.quote-loan-fields{padding-bottom:0!important}
.quote-loan-fields[aria-disabled="true"]{opacity:.58}
.quote-loan-summary,.quote-internal-loan-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:13px 14px 0}
.quote-loan-summary article,.quote-internal-loan-summary article{display:grid;gap:4px;padding:11px;border:1px solid #e4e8eb;border-radius:12px;background:#fff}
.quote-loan-summary small,.quote-internal-loan-summary small{color:#727b84;font-size:10px;line-height:1.35}
.quote-loan-summary strong,.quote-internal-loan-summary strong{color:#20262c;font-size:13px;line-height:1.3}
.quote-internal-loan-summary{grid-template-columns:repeat(3,minmax(0,1fr));padding:0}
.quote-internal-loan-block[hidden]{display:none!important}

.mmv-mobile-menu-button,.mmv-mobile-menu-backdrop{display:none}
.mmv-nav-parent{display:flex;align-items:center;gap:4px}
.mmv-nav-parent>a{color:inherit;text-decoration:none}
.mmv-nav-parent>button{display:none}

.cost-loan-page .mmv-section-heading{max-width:980px}
.cost-loan-page .mmv-section-heading>span{display:block;max-width:900px;color:#66717b;line-height:1.65}
.rolling-cost-loan-layout{align-items:start}
.cost-loan-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.cost-loan-form .full{grid-column:1/-1}
.cost-loan-form label{min-width:0}
.cost-loan-form label small{display:block;margin-top:5px;color:#737d86;font-size:12px;line-height:1.4}
.cost-loan-form input,.cost-loan-form select{width:100%;min-width:0}
.cost-loan-result{display:grid;gap:16px}
.cost-loan-result>h2{margin:0;font-size:24px;line-height:1.3;color:#22292f}
.cost-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cost-result-grid article{display:grid;gap:5px;padding:13px;border:1px solid #e1e6e9;border-radius:13px;background:#fff}
.cost-result-grid article small{color:#6f7880;font-size:12px;line-height:1.4}
.cost-result-grid article strong{font-size:16px;line-height:1.25;color:#20262c}
.cost-breakdown-details{border:1px solid #dfe4e8;border-radius:14px;background:#fff;overflow:hidden}
.cost-breakdown-details summary{padding:13px 15px;font-weight:800;cursor:pointer;list-style:none;background:#f7f8f9;color:#252b31}
.cost-breakdown-details summary::-webkit-details-marker{display:none}
.cost-breakdown-details summary:after{content:'⌄';float:right;font-size:18px;line-height:1}
.cost-breakdown-details[open] summary:after{transform:rotate(180deg)}
.cost-breakdown-details dl{margin:0;padding:5px 15px 12px;display:grid;gap:0}
.cost-breakdown-details dl div{display:flex;justify-content:space-between;gap:18px;padding:9px 0;border-top:1px solid #edf0f2}
.cost-breakdown-details dt,.cost-breakdown-details dd{margin:0;line-height:1.4}
.cost-breakdown-details dt{color:#626c75}
.cost-breakdown-details dd{font-weight:800;text-align:right;color:#22292f}
.cost-breakdown-details .is-total{border-top:2px solid #252b31}
.cost-breakdown-details .is-total dt,.cost-breakdown-details .is-total dd{font-weight:900;color:#d71920}
.cost-calculation-note{margin:0!important;padding:12px 14px;border-radius:12px;background:#fff7e8;color:#695b3d!important;font-size:12px!important;line-height:1.55!important}

@media(max-width:1024px){
  .mmv-header{position:sticky!important;top:0!important;z-index:5500!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
  .mmv-mobile-menu-button{display:flex!important;align-items:center;justify-content:center;gap:3px;position:relative;z-index:5700;min-width:50px;min-height:46px;padding:8px 10px;border:1px solid #d9dee2;border-radius:12px;background:#fff;color:#20262c;box-shadow:0 7px 20px rgba(16,25,33,.13);cursor:pointer}
  .mmv-mobile-menu-button span{display:block;width:20px;height:2px;border-radius:2px;background:#20262c;position:absolute;left:14px}
  .mmv-mobile-menu-button span:nth-child(1){top:13px}.mmv-mobile-menu-button span:nth-child(2){top:20px}.mmv-mobile-menu-button span:nth-child(3){top:27px}
  .mmv-mobile-menu-button strong{padding-left:27px;font-size:12px}
  .mmv-mobile-menu-backdrop{display:block;position:fixed;inset:0;z-index:5550;border:0;background:rgba(8,12,16,.5);opacity:0;pointer-events:none;transition:opacity .2s ease}
  body.public-menu-open .mmv-mobile-menu-backdrop{opacity:1;pointer-events:auto}
  body.public-menu-open{overflow:hidden}
  .mmv-nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;position:fixed!important;left:0!important;top:0!important;bottom:0!important;z-index:5600!important;width:min(88vw,360px)!important;height:100vh!important;height:100dvh!important;padding:max(22px,env(safe-area-inset-top)) 16px max(22px,env(safe-area-inset-bottom))!important;background:#fff!important;box-shadow:20px 0 50px rgba(0,0,0,.22)!important;overflow-y:auto!important;overflow-x:hidden!important;transform:translateX(-105%)!important;transition:transform .22s ease!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important}
  body.public-menu-open .mmv-nav{transform:translateX(0)!important}
  .mmv-nav>a,.mmv-nav-item{display:block!important;width:100%!important;flex:0 0 auto!important}
  .mmv-nav>a,.mmv-nav-parent{min-height:48px!important;border-bottom:1px solid #eceff1!important}
  .mmv-nav>a{padding:14px 8px!important;color:#20262c!important;font-weight:800!important;white-space:normal!important}
  .mmv-nav-parent{display:grid!important;grid-template-columns:minmax(0,1fr) 46px!important;align-items:center!important;gap:4px!important}
  .mmv-nav-parent>a{display:flex!important;align-items:center!important;min-height:48px!important;padding:12px 8px!important;color:#20262c!important;font-weight:800!important;white-space:normal!important}
  .mmv-nav-parent>button{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border:0!important;border-radius:10px!important;background:#f2f4f6!important;color:#20262c!important;font-size:20px!important;cursor:pointer!important;transition:transform .2s ease!important}
  .mmv-nav-item.is-mobile-open .mmv-nav-parent>button{transform:rotate(180deg)!important}
  .mmv-nav .mmv-simple-menu,.mmv-nav .mmv-mega{display:none!important;position:static!important;width:100%!important;min-width:0!important;max-width:none!important;transform:none!important;opacity:1!important;visibility:visible!important;box-shadow:none!important;border:0!important;background:#f7f8f9!important;padding:8px!important;margin:0!important}
  .mmv-nav-item.is-mobile-open>.mmv-simple-menu,.mmv-nav-item.is-mobile-open>.mmv-mega{display:block!important}
  .mmv-simple-menu>a{display:block!important;padding:12px!important;border-radius:9px!important;color:#303840!important;font-weight:700!important;white-space:normal!important}
  .mmv-mega-grid{display:grid!important;grid-template-columns:1fr!important;gap:6px!important}
  .mmv-mega-card{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;padding:8px!important}
  .mmv-mega-card img{width:72px!important;height:48px!important;object-fit:contain!important}
  .mmv-header-actions{display:none!important}
  .rolling-cost-layout,.rolling-cost-loan-layout{grid-template-columns:1fr!important}
  .cost-loan-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:700px){
  .mmv-header{padding-left:12px!important;padding-right:12px!important}
  .mmv-logo{min-width:0!important}
  .mmv-logo img{max-width:138px!important;height:auto!important}
  .mmv-dealer-text{display:none!important}
  .cost-loan-page .mmv-section{padding-left:12px!important;padding-right:12px!important}
  .cost-loan-form{grid-template-columns:1fr!important;gap:12px!important}
  .cost-loan-form .full{grid-column:auto!important}
  .cost-loan-form input,.cost-loan-form select,.cost-loan-form button{min-height:48px!important;font-size:16px!important}
  .cost-result-grid{grid-template-columns:1fr!important}
  .cost-loan-result>h2{font-size:20px}
  .cost-breakdown-details summary{min-height:48px;display:flex;align-items:center;justify-content:space-between}
  .cost-breakdown-details summary:after{float:none}
  .quote-loan-summary,.quote-internal-loan-summary{grid-template-columns:1fr!important}
  .quote-title-logo{width:10mm;height:7.5mm;flex-basis:10mm;margin-right:1.8mm}
}

@media(max-width:900px){
  .quote-loan-panel .quote-field-grid{grid-template-columns:1fr!important}
  .quote-loan-summary{grid-template-columns:1fr!important}
  .quote-accessory-categories,.quote-type-tabs,.quote-preview-segment,.quote-preview-toolbar-tools{overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;scrollbar-width:auto!important;-webkit-overflow-scrolling:touch!important}
  .quote-accessory-categories::-webkit-scrollbar,.quote-preview-toolbar-tools::-webkit-scrollbar{height:6px!important}
  .quote-accessory-categories button,.quote-preview-toolbar-tools>*{flex:0 0 auto!important}
}

/* v29 quote workspace refinements */
.quote-builder-mobile-toggle {
  display: none;
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
}

.quote-loan-fields [data-loan-custom-field] small,
.quote-loan-fields label small {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.quote-preview-toolbar {
  align-items: center;
}

.quote-preview-toolbar-main {
  flex-wrap: nowrap;
  min-width: 0;
}

.quote-preview-toolbar-tools {
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.quote-preview-toolbar-tools > * {
  flex: 0 0 auto;
}

.quote-standard-gift-card h2 {
  gap: 10px;
  font-size: 30px;
}

.quote-title-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 6px;
}

.quote-standard-extra-list li {
  grid-template-columns: 26px minmax(0, 1fr) 48px auto;
  gap: 10px;
  padding: 10px 0;
  font-size: 18px;
}

.quote-standard-extra-list li span:nth-child(2) {
  font-size: 17px;
  line-height: 1.4;
}

.quote-no-extra {
  font-size: 18px;
}

.quote-loan-sheet-page .quote-list-page-title {
  margin-bottom: 12px;
}

.quote-loan-sheet-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.quote-loan-sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quote-loan-sheet-grid article,
.quote-internal-program-summary article {
  border: 1px solid #d7dce5;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.quote-loan-sheet-grid small,
.quote-internal-program-summary small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.quote-loan-sheet-grid strong,
.quote-internal-program-summary strong {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

.quote-loan-sheet-note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  line-height: 1.5;
}

.quote-loan-sheet-table {
  font-size: 12px;
}

.quote-loan-sheet-table td,
.quote-loan-sheet-table th {
  padding: 6px 8px;
}

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

.quote-internal-mini-card h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #111827;
}

.quote-internal-program-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1180px) {
  .quote-loan-sheet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .quote-builder-mobile-toggle {
    display: inline-flex;
  }
  .quote-internal-program-grid,
  .quote-internal-program-summary,
  .quote-loan-sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .quote-preview-toolbar {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }
  .quote-preview-toolbar-main {
    justify-content: space-between;
    gap: 10px;
  }
  .quote-preview-toolbar-heading {
    min-width: 0;
  }
  .quote-preview-toolbar-tools {
    width: 100%;
  }
  .quote-preview-toolbar-heading small {
    font-size: 11px;
  }
  .quote-standard-gift-card h2 {
    font-size: 24px;
  }
  .quote-title-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .quote-standard-extra-list li {
    grid-template-columns: 22px minmax(0, 1fr) 40px auto;
    font-size: 16px;
  }
  .quote-standard-extra-list li span:nth-child(2),
  .quote-no-extra {
    font-size: 15px;
  }
  .quote-internal-program-grid,
  .quote-internal-program-summary,
  .quote-loan-sheet-grid {
    grid-template-columns: 1fr;
  }
}

/* V30: professional, contained cost and loan page */
.cost-loan-page {
  background: linear-gradient(180deg, #f7f8fa 0, #eef1f4 100%);
  min-height: 100vh;
  overflow-x: clip;
}

.cost-loan-page .mmv-section {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.cost-loan-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 32px;
}

.cost-loan-hero-copy {
  max-width: 780px;
}

.cost-loan-hero-copy > p {
  margin: 0 0 10px;
  color: #d71920;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cost-loan-hero-copy h1 {
  margin: 0;
  color: #171b20;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.cost-loan-hero-copy > span {
  display: block;
  max-width: 720px;
  margin-top: 18px;
  color: #66717b;
  font-size: 17px;
  line-height: 1.65;
}

.cost-loan-policy-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  min-width: 430px;
}

.cost-loan-policy-badges span {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid #dce1e6;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  color: #66717b;
  font-size: 12px;
  box-shadow: 0 8px 28px rgba(20, 27, 34, .06);
}

.cost-loan-policy-badges b {
  color: #1c2228;
  font-size: 24px;
}

.cost-loan-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 64px;
}

.cost-loan-card {
  min-width: 0;
  border: 1px solid #dce1e5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(21, 29, 37, .08);
  overflow: hidden;
}

.cost-loan-form-v30 {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.cost-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cost-card-heading > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: #171b20;
  color: #fff;
  font-weight: 900;
}

.cost-card-heading h2 {
  margin: 0;
  color: #1d2329;
  font-size: 21px;
}

.cost-card-heading p {
  margin: 4px 0 0;
  color: #7a848d;
  font-size: 13px;
}

.cost-card-heading-small {
  padding-top: 6px;
}

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

.cost-form-grid .span-2 {
  grid-column: 1 / -1;
}

.cost-form-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #36404a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.cost-form-grid input,
.cost-form-grid select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid #d6dce2;
  border-radius: 13px;
  background: #fff;
  padding: 0 14px;
  color: #151a1f;
  font-size: 15px;
  font-weight: 700;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.cost-form-grid input:focus,
.cost-form-grid select:focus {
  border-color: #d71920;
  box-shadow: 0 0 0 4px rgba(215, 25, 32, .10);
}

.cost-form-grid small {
  color: #7b858f;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.cost-loan-toggle-card {
  padding: 4px 0;
}

.cost-loan-switch {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dfe4e8;
  border-radius: 16px;
  background: #f7f8fa;
  cursor: pointer;
}

.cost-loan-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cost-loan-switch > span {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #bcc4cb;
  transition: background .2s ease;
}

.cost-loan-switch > span:after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform .2s ease;
}

.cost-loan-switch input:checked + span {
  background: #d71920;
}

.cost-loan-switch input:checked + span:after {
  transform: translateX(24px);
}

.cost-loan-switch div {
  display: grid;
  gap: 4px;
}

.cost-loan-switch strong {
  color: #20262c;
  font-size: 15px;
}

.cost-loan-switch small {
  color: #727c85;
  font-size: 12px;
  line-height: 1.45;
}

.cost-loan-fields-v30 {
  display: grid;
  gap: 18px;
  padding-top: 4px;
  border-top: 1px solid #eceff2;
}

.cost-loan-fields-v30[hidden] {
  display: none !important;
}

.cost-calculate-button {
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #e31b23 0, #b90e15 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 14px 30px rgba(215,25,32,.24);
  cursor: pointer;
}

.cost-result-panel-v30 {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  padding: 26px;
  color: #1c2228;
}

.cost-result-vehicle span {
  color: #d71920;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cost-result-vehicle h2 {
  margin: 7px 0 0;
  font-size: 25px;
  line-height: 1.25;
}

.cost-result-highlight {
  display: grid;
  gap: 7px;
  padding: 20px;
  border-radius: 18px;
  background: #171b20;
  color: #fff;
}

.cost-result-highlight small {
  color: #bfc6cc;
  font-size: 12px;
}

.cost-result-highlight strong {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.cost-result-grid-v30 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cost-result-grid-v30 article {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid #e0e5e9;
  border-radius: 14px;
  background: #fafbfc;
}

.cost-result-grid-v30 article.span-2 {
  grid-column: 1 / -1;
}

.cost-result-grid-v30 small {
  color: #78828b;
  font-size: 11px;
}

.cost-result-grid-v30 strong {
  color: #1c2228;
  font-size: 17px;
}

.no-loan-result {
  border-color: #d9e0e5 !important;
  background: #f5f7f8 !important;
}

.cost-breakdown-v30 {
  border: 1px solid #dfe4e8;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.cost-breakdown-v30 summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  background: #f6f7f8;
  color: #252b31;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.cost-breakdown-v30 summary::-webkit-details-marker {
  display: none;
}

.cost-breakdown-v30 summary:after {
  content: '⌄';
  font-size: 18px;
}

.cost-breakdown-v30[open] summary:after {
  transform: rotate(180deg);
}

.cost-breakdown-v30 dl {
  margin: 0;
  padding: 5px 16px 12px;
}

.cost-breakdown-v30 dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid #edf0f2;
}

.cost-breakdown-v30 dt,
.cost-breakdown-v30 dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.cost-breakdown-v30 dt {
  color: #66717b;
}

.cost-breakdown-v30 dd {
  color: #20262c;
  font-weight: 850;
  text-align: right;
}

.cost-breakdown-v30 .is-total {
  border-top: 2px solid #20262c;
}

.cost-breakdown-v30 .is-total dt,
.cost-breakdown-v30 .is-total dd {
  color: #d71920;
  font-weight: 900;
}

.cost-calculation-note-v30 {
  margin: 0;
  padding: 13px 15px;
  border-radius: 13px;
  background: #fff7e8;
  color: #6f5f3c;
  font-size: 12px;
  line-height: 1.55;
}

/* Keep the public navigation clickable above every page layer. */
.mmv-header {
  isolation: isolate;
}

.mmv-mobile-menu-button {
  touch-action: manipulation;
  pointer-events: auto !important;
}

@media (max-width: 1024px) {
  .mmv-nav[aria-hidden="true"] {
    visibility: hidden !important;
  }
  body.public-menu-open .mmv-nav {
    visibility: visible !important;
  }
  .cost-loan-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .cost-loan-policy-badges {
    width: 100%;
    min-width: 0;
  }
  .cost-loan-workspace {
    grid-template-columns: 1fr;
  }
  .cost-result-panel-v30 {
    position: static;
  }
}

@media (max-width: 700px) {
  .cost-loan-page .mmv-section {
    width: min(100% - 24px, 1280px);
  }
  .cost-loan-hero {
    padding-top: 32px;
    padding-bottom: 22px;
  }
  .cost-loan-hero-copy h1 {
    font-size: 34px;
  }
  .cost-loan-hero-copy > span {
    font-size: 15px;
  }
  .cost-loan-policy-badges {
    grid-template-columns: 1fr;
  }
  .cost-loan-form-v30,
  .cost-result-panel-v30 {
    padding: 18px;
  }
  .cost-form-grid,
  .cost-result-grid-v30 {
    grid-template-columns: 1fr;
  }
  .cost-form-grid .span-2,
  .cost-result-grid-v30 article.span-2 {
    grid-column: auto;
  }
  .cost-loan-switch {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 14px;
  }
  .cost-result-highlight strong {
    font-size: 30px;
  }
}

/* V32 compatibility block retained below; final title logo styles override it. */
.quote-title-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1.5px solid #ed1c24;
  border-radius: 4px;
  background: transparent;
}
.quote-title-icon svg { width: 17px; height: 17px; fill: none; stroke: #ed1c24; stroke-width: 1.8; }
@media (max-width: 760px) {
  .quote-title-icon { width: 24px; height: 24px; flex-basis: 24px; }
  .quote-title-icon svg { width: 14px; height: 14px; }
}

/* V32 - compact loan controls and approved Mitsubishi mark in the accessory title. */
.quote-standard-gift-card h2{display:flex!important;align-items:center!important;gap:2.2mm!important;white-space:nowrap!important}
.quote-title-icon.quote-title-logo-wrap{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:8.2mm!important;
  height:6.5mm!important;
  flex:0 0 8.2mm!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#000!important;
  overflow:hidden!important;
}
.quote-title-logo{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
.quote-loan-panel{border-radius:14px!important;overflow:hidden!important}
.quote-loan-panel>header{min-height:44px!important}
.quote-loan-panel .quote-loan-enable{margin:0 12px!important;padding:11px 12px!important}
.quote-loan-panel .quote-field-grid{gap:9px!important;padding:11px 12px 0!important}
.quote-loan-panel .quote-loan-summary{gap:7px!important;padding:10px 12px 12px!important}
.quote-preview-toolbar-main{flex-wrap:nowrap!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important}
.quote-preview-toolbar-main>*{flex:0 0 auto!important}
@media(max-width:760px){
  .quote-standard-gift-card h2{gap:1.8mm!important}
  .quote-title-icon.quote-title-logo-wrap{width:7mm!important;height:5.6mm!important;flex-basis:7mm!important}
  .quote-preview-toolbar-main{width:100%!important;justify-content:flex-start!important}
}


/* V33 - internal cost/loan single A4 page and admin loan input-only panel. */
.quote-loan-panel [data-loan-summary],
.quote-loan-panel [data-loan-source-note]{display:none!important}
.quote-internal-cost-loan-page-v33{background:#f4f5f6!important}
.quote-internal-detail-body-v33{flex:1;display:flex;flex-direction:column;gap:4mm;padding:5mm 9mm 5mm;overflow:hidden;box-sizing:border-box}
.quote-internal-detail-section-v33{break-inside:avoid}
.quote-internal-detail-section-v33>h3{margin:0 0 2.2mm;font-size:4.2mm;border-left:1.3mm solid #e60012;padding-left:2mm}
.quote-internal-loan-grid-v33{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2.4mm}
.quote-internal-loan-grid-v33 article{display:grid;align-content:start;gap:1.2mm;min-height:17mm;padding:2.5mm;border:1px solid #d7dce2;border-radius:3mm;background:#fff;box-sizing:border-box}
.quote-internal-loan-grid-v33 small{color:#64748b;font-size:2.45mm;font-weight:800;line-height:1.25;text-transform:uppercase;letter-spacing:.04em}
.quote-internal-loan-grid-v33 strong{color:#111827;font-size:3.35mm;font-weight:900;line-height:1.25;overflow-wrap:anywhere}
.quote-internal-detail-warning-v33{margin:2.2mm 0 0;padding:2.2mm 2.8mm;border-radius:2.5mm;background:#fff1f2;color:#9f1239;font-size:2.65mm;font-weight:750;line-height:1.45}
.quote-internal-cost-table-v33{font-size:2.65mm!important}
.quote-internal-cost-table-v33 th,.quote-internal-cost-table-v33 td{padding:1.75mm 1.6mm!important;line-height:1.28!important}
.quote-internal-cost-table-v33 tfoot th{background:#171b1f;color:#fff;font-size:2.8mm}
.quote-internal-detail-note-v33{margin:2.2mm 0 0;color:#6b7280;font-size:2.5mm;line-height:1.45}
@media(max-width:980px){.quote-internal-loan-grid-v33{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.quote-internal-loan-grid-v33{grid-template-columns:repeat(4,minmax(0,1fr))!important}.quote-internal-cost-loan-page-v33{page-break-after:always!important;break-after:page!important}}

/* V34 - holistic typography, compact fee controls, readable accessories, internal data grids, and reliable public mobile navigation. */
:root{--mtc-system-font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif}
html,body,button,input,select,textarea,table{font-family:var(--mtc-system-font)!important}
button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(230,0,18,.28)!important;outline-offset:2px!important}
.quote-a4-page,.quote-builder-v12,.quote-preview-toolbar{font-family:var(--mtc-system-font)!important}
.quote-a4-page strong,.quote-a4-page td,.quote-a4-page th,.quote-service-fee-row input{font-variant-numeric:tabular-nums}

/* One compact row for every rolling-cost item in the Admin editor. */
.quote-service-fee-list{overflow:hidden!important}
.quote-service-fee-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 118px!important;
  align-items:center!important;
  gap:8px!important;
  min-height:43px!important;
  padding:5px 10px!important;
  box-sizing:border-box!important;
}
.quote-service-fee-row.has-fee-toggle{grid-template-columns:20px minmax(0,1fr) 112px!important}
.quote-service-fee-row.no-fee-toggle{grid-template-columns:minmax(0,1fr) 118px!important}
.quote-service-fee-row .quote-service-fee-copy{
  display:flex!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  gap:6px!important;
  min-width:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}
.quote-service-fee-row .quote-service-fee-copy strong{
  flex:1 1 auto!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  line-height:1.2!important;
}
.quote-service-fee-row .quote-service-fee-copy small{
  flex:0 1 auto!important;
  max-width:46%!important;
  margin:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#858d95!important;
  font-size:8.7px!important;
  line-height:1.2!important;
  text-align:right!important;
}
.quote-service-fee-row>input[type="text"]{
  width:100%!important;
  min-width:0!important;
  min-height:33px!important;
  height:33px!important;
  padding:6px 8px!important;
  border-radius:8px!important;
  font-size:11px!important;
  line-height:1!important;
}
.quote-service-fee-row .quote-service-fee-toggle{grid-column:1!important;grid-row:1!important;margin:0!important;align-self:center!important}
.quote-service-fee-row.has-fee-toggle .quote-service-fee-copy{grid-column:2!important;grid-row:1!important}
.quote-service-fee-row.has-fee-toggle>input[type="text"]{grid-column:3!important;grid-row:1!important}
.quote-service-fee-row.is-fee-disabled .quote-service-fee-copy small{color:#9aa1a8!important}

/* Accessory heading and items: smaller type, no ellipsis, wrap long names, spill excess to continuation pages. */
.quote-standard-gift-card h2{display:flex!important;align-items:center!important;gap:2.2mm!important;padding:3.6mm 5mm!important;font-size:4.45mm!important;line-height:1.1!important;white-space:nowrap!important}
.quote-standard-gift-card .quote-title-logo-wrap{display:grid!important;place-items:center!important;width:8mm!important;height:8mm!important;flex:0 0 8mm!important;margin:0!important;border:0!important}
.quote-standard-gift-card .quote-title-logo{display:block!important;width:7.2mm!important;height:7.2mm!important;max-width:7.2mm!important;object-fit:contain!important;border-radius:0!important}
.quote-standard-extra-list li{
  grid-template-columns:4.2mm minmax(0,1fr) 5.5mm 23mm!important;
  align-items:start!important;
  column-gap:1.1mm!important;
  min-height:0!important;
  padding:1.15mm 0!important;
  line-height:1.18!important;
}
.quote-standard-extra-list li>span:nth-child(2){
  display:block!important;
  min-width:0!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  font-size:2.25mm!important;
  line-height:1.2!important;
}
.quote-standard-extra-list li>b{padding-top:.15mm!important;font-size:2.1mm!important;line-height:1.2!important}
.quote-standard-extra-list li>strong{width:23mm!important;padding-top:.15mm!important;font-size:1.95mm!important;line-height:1.2!important;text-align:right!important;white-space:nowrap!important}
.quote-accessory-customer-total{align-items:center!important;margin-top:.7mm!important;border-top:.55mm solid #24292e!important}
.quote-accessory-customer-total>span:nth-child(2){font-size:2.65mm!important;font-weight:900!important;text-transform:uppercase!important;white-space:normal!important}
.quote-accessory-customer-total>strong{color:#ed1b2f!important;font-weight:900!important}

/* Internal preview: consistent, dense grids which preserve the A4 layout at every screen size. */
.quote-internal-context-grid-v34,
.quote-internal-summary-v34,
.quote-internal-policy-grid-v34,
.quote-internal-loan-grid-v34{
  display:grid!important;
  gap:2.4mm!important;
}
.quote-internal-context-grid-v34{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.quote-internal-summary-v34{grid-template-columns:repeat(3,minmax(0,1fr))!important;height:auto!important;flex:0 0 auto!important;grid-template-rows:none!important;margin:0!important}
.quote-internal-policy-grid-v34{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.quote-internal-loan-grid-v34{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.quote-internal-context-grid-v34 article,
.quote-internal-summary-v34 article,
.quote-internal-policy-grid-v34 article,
.quote-internal-loan-grid-v34 article{
  display:grid!important;
  align-content:start!important;
  gap:1mm!important;
  min-width:0!important;
  min-height:16.5mm!important;
  height:auto!important;
  padding:2.5mm!important;
  box-sizing:border-box!important;
  border:1px solid #d8dde3!important;
  border-radius:2.7mm!important;
  background:#fff!important;
}
.quote-internal-context-grid-v34 small,
.quote-internal-summary-v34 small,
.quote-internal-policy-grid-v34 small,
.quote-internal-loan-grid-v34 small{
  color:#687386!important;
  font-size:2.35mm!important;
  font-weight:800!important;
  line-height:1.25!important;
  letter-spacing:.035em!important;
  text-transform:uppercase!important;
}
.quote-internal-context-grid-v34 strong,
.quote-internal-summary-v34 strong,
.quote-internal-policy-grid-v34 strong,
.quote-internal-loan-grid-v34 strong{
  min-width:0!important;
  color:#151a20!important;
  font-size:3.15mm!important;
  font-weight:900!important;
  line-height:1.28!important;
  overflow-wrap:anywhere!important;
}
.quote-internal-summary-v34 article.is-total,
.quote-internal-policy-grid-v34 article.is-total{background:#171b1f!important;border-color:#171b1f!important;color:#fff!important}
.quote-internal-summary-v34 article.is-total small,
.quote-internal-policy-grid-v34 article.is-total small{color:#c9cfd5!important}
.quote-internal-summary-v34 article.is-total strong,
.quote-internal-policy-grid-v34 article.is-total strong{color:#fff!important}
.quote-internal-policy-block-v34 h3{margin:2.5mm 0 2mm!important;font-size:4mm!important;border-left:1.2mm solid #e60012!important;padding-left:2mm!important}
.quote-internal-cost-loan-page-v34{background:#f4f5f6!important}
.quote-internal-detail-body-v34{flex:1!important;display:flex!important;flex-direction:column!important;gap:3.2mm!important;padding:4.5mm 9mm 4.5mm!important;overflow:hidden!important;box-sizing:border-box!important}
.quote-internal-detail-section-v34{break-inside:avoid!important}
.quote-internal-detail-section-v34>h3{margin:0 0 2mm!important;font-size:4mm!important;border-left:1.2mm solid #e60012!important;padding-left:2mm!important}
.quote-internal-detail-warning-v34{margin:2mm 0 0!important;padding:2mm 2.6mm!important;border-radius:2.3mm!important;background:#fff1f2!important;color:#9f1239!important;font-size:2.5mm!important;font-weight:750!important;line-height:1.4!important}
.quote-internal-cost-table-v34{table-layout:fixed!important;width:100%!important;font-size:2.55mm!important}
.quote-internal-cost-table-v34 th,.quote-internal-cost-table-v34 td{padding:1.55mm 1.45mm!important;line-height:1.22!important;overflow-wrap:anywhere!important}
.quote-internal-cost-table-v34 th:nth-child(n+2),.quote-internal-cost-table-v34 td:nth-child(n+2){text-align:right!important}
.quote-internal-cost-table-v34 tfoot th{background:#171b1f!important;color:#fff!important;font-size:2.7mm!important}
.quote-internal-detail-note-v34{margin:1.8mm 0 0!important;color:#6b7280!important;font-size:2.35mm!important;line-height:1.4!important}

/* Public mobile menu: keep the drawer above the backdrop and make every item tappable. */
@media(max-width:1024px){
  .mmv-header{z-index:7000!important;isolation:auto!important;overflow:visible!important}
  .mmv-mobile-menu-backdrop{z-index:6900!important}
  .mmv-mobile-menu-backdrop[hidden]{display:none!important}
  .mmv-mobile-menu-button{z-index:7200!important;pointer-events:auto!important;touch-action:manipulation!important}
  .mmv-nav{z-index:7100!important;pointer-events:none!important;visibility:hidden!important}
  body.public-menu-open .mmv-nav{pointer-events:auto!important;visibility:visible!important}
  body.public-menu-open .mmv-nav,
  body.public-menu-open .mmv-nav *{pointer-events:auto!important}
  .mmv-nav a,.mmv-nav button{position:relative!important;z-index:1!important;touch-action:manipulation!important;-webkit-tap-highlight-color:rgba(230,0,18,.12)!important}
  .mmv-nav a{cursor:pointer!important}
  .mmv-nav-parent>button{cursor:pointer!important}
}

@media(max-width:620px){
  .quote-service-fee-row{grid-template-columns:minmax(0,1fr) 104px!important;gap:6px!important;padding:5px 8px!important}
  .quote-service-fee-row.has-fee-toggle{grid-template-columns:18px minmax(0,1fr) 100px!important}
  .quote-service-fee-row .quote-service-fee-copy strong{font-size:10.5px!important}
  .quote-service-fee-row .quote-service-fee-copy small{max-width:42%!important;font-size:8px!important}
  .quote-service-fee-row>input[type="text"]{font-size:10.5px!important;padding:6px!important}
}

@media print{
  html,body,.quote-a4-page{font-family:var(--mtc-system-font)!important}
  .quote-internal-context-grid-v34{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .quote-internal-summary-v34{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .quote-internal-policy-grid-v34,.quote-internal-loan-grid-v34{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .quote-internal-cost-loan-page-v34{page-break-after:always!important;break-after:page!important}
  .quote-standard-extra-list li>span:nth-child(2){white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
}

/* V35 - concise customer loan preview: four requested fields in a clear 2x2 grid. */
.quote-loan-summary-page-v35 .quote-loan-summary-body-v35{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  padding:8mm 10mm 7mm!important;
  overflow:hidden!important;
}
.quote-loan-summary-grid-v35{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:5mm!important;
  margin-top:9mm!important;
}
.quote-loan-summary-grid-v35 article{
  display:grid!important;
  align-content:center!important;
  gap:3mm!important;
  min-height:48mm!important;
  padding:6mm!important;
  border:1px solid #d8dde3!important;
  border-radius:4mm!important;
  background:#fff!important;
  box-shadow:0 2.5mm 7mm rgba(20,27,34,.06)!important;
}
.quote-loan-summary-grid-v35 small{
  color:#64748b!important;
  font-size:3.1mm!important;
  font-weight:900!important;
  line-height:1.25!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
}
.quote-loan-summary-grid-v35 strong{
  color:#111827!important;
  font-size:7.1mm!important;
  font-weight:900!important;
  line-height:1.18!important;
  overflow-wrap:anywhere!important;
}
.quote-loan-summary-note-v35{
  margin:8mm 0 0!important;
  padding:4mm 5mm!important;
  border-radius:3mm!important;
  background:#f3f4f6!important;
  color:#4b5563!important;
  font-size:3mm!important;
  line-height:1.55!important;
}
.quote-loan-summary-note-v35.is-warning{background:#fff1f2!important;color:#9f1239!important;font-weight:800!important}
@media print{
  .quote-loan-summary-grid-v35{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* V41 - customer-facing bank loan summary and complete Excel-style repayment schedule. */
.quote-customer-loan-page-v41{background:#fff!important}
.quote-customer-loan-body-v41{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;padding:6mm 7mm 4mm!important;overflow:hidden!important}
.quote-customer-loan-title-v41{margin-bottom:3.5mm!important}
.quote-customer-loan-summary-grid-v41{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;border-top:.28mm solid #b9c0c8!important;border-left:.28mm solid #b9c0c8!important;background:#fff!important}
.quote-customer-loan-summary-grid-v41 article{display:grid!important;align-content:center!important;gap:1.3mm!important;min-height:18mm!important;padding:3mm!important;border-right:.28mm solid #b9c0c8!important;border-bottom:.28mm solid #b9c0c8!important;background:#fff!important}
.quote-customer-loan-summary-grid-v41 article:nth-child(5){background:#fff7f8!important}
.quote-customer-loan-summary-grid-v41 small{color:#64748b!important;font-size:2.45mm!important;font-weight:900!important;line-height:1.2!important;letter-spacing:.035em!important;text-transform:uppercase!important}
.quote-customer-loan-summary-grid-v41 strong{color:#111827!important;font-size:4mm!important;font-weight:900!important;line-height:1.22!important;overflow-wrap:anywhere!important}
.quote-customer-loan-summary-grid-v41 article:nth-child(5) strong{color:#ed1b2f!important}
.quote-loan-cycle-title-v41{margin:4mm 0 2mm!important;padding-left:2.5mm!important;border-left:1.2mm solid #ed1b2f!important;color:#20262c!important;font-size:3.4mm!important;font-weight:900!important;line-height:1.25!important;letter-spacing:.03em!important}
.quote-loan-cycle-table-wrap-v41{width:100%!important;overflow:hidden!important}
.quote-loan-cycle-table-v41{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;font-variant-numeric:tabular-nums!important}
.quote-loan-cycle-table-v41 th,.quote-loan-cycle-table-v41 td{padding:1.35mm 1.05mm!important;border:.25mm solid #c5cbd2!important;font-size:2.25mm!important;line-height:1.2!important;white-space:nowrap!important;vertical-align:middle!important}
.quote-loan-cycle-table-v41 th{background:#24292e!important;color:#fff!important;font-weight:900!important;text-align:center!important}
.quote-loan-cycle-table-v41 td{color:#20262c!important;text-align:right!important}
.quote-loan-cycle-table-v41 td:first-child{text-align:center!important;font-weight:900!important}
.quote-loan-cycle-table-v41 tbody tr:nth-child(even) td{background:#f4f6f8!important}
.quote-loan-cycle-table-v41 td strong{color:#111827!important;font-weight:900!important}
.quote-customer-loan-continuation-v41 .quote-loan-cycle-table-v41 th,.quote-customer-loan-continuation-v41 .quote-loan-cycle-table-v41 td{padding:1.6mm 1.05mm!important;font-size:2.35mm!important}
@media(max-width:980px){
  .quote-customer-loan-summary-grid-v41{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media print{
  .quote-customer-loan-summary-grid-v41{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .quote-loan-cycle-table-v41 th,.quote-loan-cycle-table-v41 td{white-space:nowrap!important}
}


/* V43 - internal view control moved below projected profit; quote helper notes removed. */
.quote-internal-view-button{
  width:calc(100% - 20px)!important;
  min-height:46px!important;
  margin:0 10px 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  border-radius:12px!important;
  font-weight:900!important;
}
.quote-internal-view-button.is-active{
  background:#171b1f!important;
  border-color:#171b1f!important;
  color:#fff!important;
}
.quote-internal-view-button:disabled{opacity:.45!important;cursor:not-allowed!important}
.quote-preview-segment{grid-template-columns:1fr!important}
.quote-builder-v12 .quote-source-note,
.quote-builder-v12 .quote-note-details,
.quote-builder-v12 [data-loan-policy-label],
.quote-builder-v12 .quote-service-fee-copy small,
.quote-builder-v12 .quote-default-gift-item small,
.quote-builder-v12 .quote-used-customer-cost-toggle small,
.quote-builder-v12 .quote-loan-enable small,
.quote-builder-v12 .quote-loan-fields label>small,
.quote-builder-v12 .quote-accessory-open-button small{display:none!important}
.quote-default-gift-item span{gap:0!important}
.quote-service-fee-copy{align-content:center!important}
@media(max-width:760px){
  .quote-internal-view-button{min-height:48px!important}
}

/* V44 - Excel-style internal grids, compact single-line controls, and screen-contained tablet/mobile preview. */
.quote-internal-context-grid-v34,
.quote-internal-summary-v34,
.quote-internal-policy-grid-v34,
.quote-internal-loan-grid-v34{
  display:block!important;
  width:100%!important;
  margin:0!important;
}
.quote-internal-excel-grid-v44{
  width:100%!important;
  border-collapse:collapse!important;
  table-layout:fixed!important;
  background:#fff!important;
  font-variant-numeric:tabular-nums!important;
}
.quote-internal-excel-grid-v44 th,
.quote-internal-excel-grid-v44 td{
  border:.28mm solid #c8ced5!important;
  padding:2.05mm 2.25mm!important;
  vertical-align:middle!important;
  line-height:1.25!important;
  overflow-wrap:anywhere!important;
}
.quote-internal-excel-grid-v44 th{
  width:21%!important;
  background:#eef1f4!important;
  color:#5f6a75!important;
  font-size:2.45mm!important;
  font-weight:900!important;
  letter-spacing:.025em!important;
  text-align:left!important;
  text-transform:uppercase!important;
}
.quote-internal-excel-grid-v44 td{
  width:29%!important;
  background:#fff!important;
  color:#111820!important;
  font-size:3.05mm!important;
  font-weight:900!important;
  text-align:right!important;
}
.quote-internal-excel-grid-v44 th.is-total,
.quote-internal-excel-grid-v44 td.is-total{
  background:#171b1f!important;
  border-color:#171b1f!important;
  color:#fff!important;
}
.quote-internal-excel-grid-v44 th.is-total{color:#d8dde2!important}
.quote-internal-excel-grid-v44 th.is-empty,
.quote-internal-excel-grid-v44 td.is-empty{background:#fff!important;color:transparent!important}
.quote-internal-page .quote-internal-body{gap:3.1mm!important;padding:5mm 9mm 5mm!important}
.quote-internal-policy-block-v34 h3{margin:2.2mm 0 1.7mm!important}
.quote-internal-detail-section-v34>h3{margin-bottom:1.7mm!important}

/* Compact menu and selector language: headings stay on one line. */
.admin-sidebar{width:258px!important;padding-left:20px!important;padding-right:20px!important}
.admin-main{margin-left:258px!important}
.admin-sidebar a{gap:8px!important;padding:9px 10px!important;font-size:13px!important}
.admin-sidebar .admin-nav-text{
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.admin-nav-group-label{white-space:nowrap!important}
.quote-builder-v12 .quote-form-section>header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  min-height:41px!important;
  padding:9px 11px!important;
}
.quote-builder-v12 .quote-form-section>header>div{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  white-space:nowrap!important;
}
.quote-builder-v12 .quote-form-section>header strong{
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:11.5px!important;
  line-height:1.2!important;
}
.quote-builder-v12 .quote-form-section>header small{
  flex:0 0 auto!important;
  white-space:nowrap!important;
  font-size:9px!important;
  line-height:1.2!important;
}
.quote-builder-v12 label{gap:4px!important;font-size:10.5px!important;line-height:1.25!important}
.quote-builder-v12 input,
.quote-builder-v12 select,
.quote-builder-v12 textarea{
  min-height:38px!important;
  padding:8px 10px!important;
  font-size:12px!important;
  line-height:1.2!important;
}
.quote-type-tab,
.quote-preview-toolbar button,
.quote-accessory-open-button,
.quote-builder-actions button{
  white-space:nowrap!important;
}
.quote-default-gift-item{
  grid-template-columns:17px minmax(0,1fr)!important;
  align-items:center!important;
  gap:9px!important;
  padding:9px 11px!important;
}
.quote-default-gift-item strong{
  display:block!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:11.5px!important;
  line-height:1.2!important;
}
.quote-accessory-open-button{min-height:42px!important;padding:9px 10px!important}
.quote-accessory-open-button strong{font-size:11.5px!important}

/* Tablet/mobile: no horizontal page spill; preview auto-fits the current viewport. */
@media(max-width:1180px){
  .admin-sidebar{width:min(88vw,320px)!important}
  .admin-main{margin-left:0!important;min-width:0!important;width:100%!important}
  .quote-workspace-v12,
  .quote-builder-v12,
  .quote-preview-shell-v12,
  .quote-preview-stage,
  .quote-preview,
  .quote-preview-document{min-width:0!important;max-width:100%!important}
  .quote-preview-shell-v12{position:static!important;height:auto!important;min-height:0!important;overflow:visible!important}
  .quote-preview-stage{
    width:100%!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    justify-content:center!important;
    padding:8px!important;
  }
  .quote-preview-document{
    width:210mm!important;
    max-width:none!important;
    transform-origin:top center!important;
  }
  .quote-preview-toolbar-main{width:100%!important;min-width:0!important}
  .quote-preview-toolbar-tools{max-width:100%!important}
}
@media(max-width:900px){
  .admin-sidebar a{min-height:40px!important;padding:8px 10px!important}
  .admin-sidebar .admin-nav-text{font-size:13px!important}
  .quote-builder-v12{padding:8px!important;border-radius:14px!important}
  .quote-form-section{border-radius:12px!important}
  .quote-preview-toolbar{gap:7px!important;padding:8px!important}
  .quote-preview-toolbar-main{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;overflow-x:auto!important}
  .quote-preview-toolbar-main>*{flex:0 0 auto!important}
  .quote-preview-toolbar-tools{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;overflow-x:auto!important}
  .quote-preview-compact-button{width:auto!important;min-height:38px!important;padding:7px 9px!important}
  .quote-preview-zoom{width:auto!important;min-width:max-content!important}
  .quote-internal-view-button{min-height:42px!important;margin:0 8px 7px!important;width:calc(100% - 16px)!important}
}
@media(max-width:620px){
  .admin-main{padding-top:62px!important}
  .admin-content,.admin-main-content{padding-left:6px!important;padding-right:6px!important}
  .quote-builder-v12{padding:5px!important}
  .quote-builder-v12 .quote-form-section>header{min-height:38px!important;padding:8px 9px!important}
  .quote-builder-v12 .quote-form-section>header strong{font-size:11px!important}
  .quote-builder-v12 label{font-size:10px!important}
  .quote-builder-v12 input,.quote-builder-v12 select,.quote-builder-v12 textarea{min-height:42px!important;font-size:16px!important}
  .quote-default-gift-item{padding:8px 9px!important}
  .quote-default-gift-item strong{font-size:11px!important}
  .quote-preview-toolbar-heading{min-width:94px!important}
  .quote-preview-toolbar-heading .eyebrow{font-size:8px!important}
  .quote-preview-toolbar-heading strong{font-size:11px!important}
  .quote-preview-stage{padding:4px!important}
  .quote-preview-document{transform-origin:top center!important}
}
@media print{
  .quote-internal-excel-grid-v44 th,
  .quote-internal-excel-grid-v44 td{border:.28mm solid #c8ced5!important}
}


/* V45 - compact, single-line public product menu on phones and tablets. */
@media (max-width:1024px){
  .mmv-nav{
    width:min(94vw,440px)!important;
    padding:max(16px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom))!important;
    gap:2px!important;
  }
  .mmv-nav>a,
  .mmv-nav-parent>a{
    min-width:0!important;
    font-size:13px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .mmv-nav>a{
    min-height:46px!important;
    padding:12px 10px!important;
  }
  .mmv-nav-parent{
    min-height:46px!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
    gap:6px!important;
  }
  .mmv-nav-parent>a{
    min-height:46px!important;
    padding:11px 10px!important;
  }
  .mmv-nav-parent>button{
    width:38px!important;
    height:38px!important;
    border-radius:9px!important;
  }
  .mmv-nav .mmv-mega{
    padding:7px!important;
    border-radius:12px!important;
    background:#f2f4f6!important;
  }
  .mmv-mega-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
  }
  .mmv-mega-card{
    display:grid!important;
    grid-template-columns:62px minmax(0,1fr) auto!important;
    grid-template-rows:46px!important;
    align-items:center!important;
    column-gap:10px!important;
    row-gap:0!important;
    min-height:58px!important;
    padding:6px 10px!important;
    border:1px solid #e4e8eb!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:0 2px 7px rgba(20,28,36,.04)!important;
    overflow:hidden!important;
  }
  .mmv-mega-card img{
    grid-column:1!important;
    grid-row:1!important;
    width:62px!important;
    height:42px!important;
    object-fit:contain!important;
  }
  .mmv-mega-card strong{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    margin:0!important;
    font-size:13px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .mmv-mega-card small{
    grid-column:3!important;
    grid-row:1!important;
    margin:0!important;
    font-size:11px!important;
    line-height:1.2!important;
    font-weight:800!important;
    white-space:nowrap!important;
    color:#d71920!important;
  }
  .mmv-simple-menu>a{
    min-height:44px!important;
    padding:11px 10px!important;
    font-size:13px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}

@media (max-width:480px){
  .mmv-nav{
    width:calc(100vw - 18px)!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .mmv-mega-card{
    grid-template-columns:52px minmax(0,1fr) auto!important;
    grid-template-rows:40px!important;
    min-height:52px!important;
    column-gap:8px!important;
    padding:5px 8px!important;
  }
  .mmv-mega-card img{
    width:52px!important;
    height:36px!important;
  }
  .mmv-mega-card strong{
    font-size:12.5px!important;
  }
  .mmv-mega-card small{
    max-width:82px!important;
    font-size:10.5px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}


/* V48 - complete used-car information and Drive photo presentation. */
.used-car-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.used-car-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.used-car-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  transition: transform .28s ease;
}

.used-car-card:hover .used-car-media:not(.is-placeholder) img {
  transform: scale(1.025);
}

.used-car-media.is-placeholder img {
  object-fit: contain;
  padding: 34px;
}

.used-car-body {
  align-content: start;
  display: grid;
  flex: 1;
  gap: 13px;
  padding: 22px;
}

.used-car-body > * {
  min-width: 0;
}

.used-car-body .used-car-meta {
  color: #66717d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  margin: 0;
  text-transform: none;
}

.used-car-body h2 {
  overflow-wrap: anywhere;
}

.used-car-body .used-car-price {
  display: block;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

.used-car-body .used-car-spec-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2px 0 0;
}

.used-car-body .used-car-spec-grid > div {
  align-content: start;
  background: #f4f6f8;
  border: 1px solid #e4e8ec;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
}

.used-car-body .used-car-spec-grid dt {
  color: #737d88;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.25;
  text-transform: uppercase;
}

.used-car-body .used-car-spec-grid dd {
  color: #171b20;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.used-car-accessories {
  border-top: 1px solid #e5e8ec;
  display: grid;
  gap: 7px;
  padding-top: 14px;
}

.used-car-accessories h3 {
  color: #171b20;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .035em;
  margin: 0;
  text-transform: uppercase;
}

.used-car-body .used-car-accessories p {
  color: #434b54;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  margin: 0;
  text-transform: none;
}

@media (max-width: 980px) {
  .used-cars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .used-cars-grid {
    grid-template-columns: 1fr;
  }

  .used-car-media {
    aspect-ratio: 16 / 11;
  }

  .used-car-body {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .used-car-body .used-car-spec-grid {
    grid-template-columns: 1fr;
  }

  .used-car-body .used-car-spec-grid > div {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(92px, .7fr) minmax(0, 1.3fr);
  }

  .used-car-body .used-car-spec-grid dd {
    text-align: right;
  }
}


/* V48 - mobile navigation close control and complete used-car admin workspace. */
.mmv-nav-mobile-close{display:none}
@media(max-width:1024px){
  body.public-menu-open .mmv-mobile-menu-button{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .mmv-nav-mobile-close{
    position:sticky;
    top:0;
    z-index:4;
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:52px;
    margin:0 0 6px;
    padding:8px 10px 10px;
    border:0;
    border-bottom:2px solid #ed1c24;
    background:#fff;
    color:#171b1f;
    cursor:pointer;
  }
  .mmv-nav-mobile-close span{font-size:16px;font-weight:900;white-space:nowrap}
  .mmv-nav-mobile-close strong{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#f1f3f5;font-size:27px;line-height:1}
  .mmv-nav-parent{position:relative!important;z-index:1!important}
  .mmv-nav-parent>button{position:relative!important;z-index:2!important;flex:0 0 auto!important}
}

.admin-used-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 16px;
}
.admin-used-toolbar .eyebrow{margin:0 0 4px;color:#e21b23;font-size:12px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.admin-used-toolbar h2{margin:0;font-size:24px;line-height:1.2}
.admin-used-add-jump{display:inline-flex!important;align-items:center;justify-content:center!important;min-width:150px!important;margin:0!important;text-decoration:none}
.admin-used-selector select{font-weight:850;color:#171b1f}
.admin-used-selected-card{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  align-items:center;
  gap:20px;
  margin:0 0 18px;
  padding:18px;
  border:1px solid #dfe3e7;
  border-left:5px solid #ed1c24;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 32px rgba(21,27,33,.07);
}
.admin-used-selected-image{display:flex;align-items:center;justify-content:center;height:120px;border-radius:12px;background:#f3f5f7;overflow:hidden}
.admin-used-selected-image img{width:100%;height:100%;object-fit:cover}
.admin-used-selected-card h2{margin:5px 0 3px;font-size:25px;line-height:1.2}
.admin-used-selected-card>div>strong{display:block;color:#e21b23;font-size:21px;letter-spacing:.04em}
.admin-used-selected-card p{margin:7px 0 0;color:#69737c;font-weight:750;line-height:1.45}
.admin-used-status{display:inline-flex;align-items:center;width:max-content;padding:5px 9px;border-radius:999px;background:#e9f7ef;color:#15723d;font-size:12px;font-weight:900}
.admin-used-status.is-sold{background:#eef0f2;color:#505963}
.admin-used-status.is-hidden{background:#fff1f1;color:#b2171e}
.admin-used-edit-form h3{margin:0;font-size:20px}
.admin-used-edit-form textarea,.admin-used-add-panel textarea{resize:vertical;min-height:100px}
.admin-used-image-picker{grid-column:1/-1}
.admin-used-image-picker .admin-image-preview{max-width:520px;min-height:210px}
.admin-used-image-picker .admin-image-preview img{height:190px;object-fit:contain}
.admin-used-add-panel{margin:18px 0 28px;border:1px solid #dfe3e7;border-radius:16px;background:#fff;overflow:hidden}
.admin-used-add-panel>summary{display:flex;align-items:center;min-height:58px;padding:14px 18px;background:#171b1f;color:#fff;font-size:17px;font-weight:900;cursor:pointer;list-style:none}
.admin-used-add-panel>summary::-webkit-details-marker{display:none}
.admin-used-add-panel>summary:after{content:'⌄';margin-left:auto;font-size:22px;transition:transform .18s ease}
.admin-used-add-panel[open]>summary:after{transform:rotate(180deg)}
.admin-used-add-panel .admin-card{margin:0;border:0;border-radius:0;box-shadow:none}

@media(max-width:760px){
  .admin-used-toolbar{align-items:stretch;flex-direction:column}
  .admin-used-add-jump{width:100%!important}
  .admin-used-selected-card{grid-template-columns:92px minmax(0,1fr);gap:12px;padding:12px}
  .admin-used-selected-image{height:82px}
  .admin-used-selected-card h2{font-size:18px}
  .admin-used-selected-card>div>strong{font-size:16px;overflow-wrap:anywhere}
  .admin-used-selected-card p{font-size:12px}
  .admin-used-selector{padding:10px}
  .admin-used-selector select{width:100%;max-width:100%;font-size:16px}
  .admin-used-edit-form,.admin-used-add-panel .admin-form-grid{grid-template-columns:1fr!important;padding:14px!important}
  .admin-used-image-picker{grid-column:auto}
  .admin-used-image-picker .admin-image-preview{max-width:100%;min-height:170px}
  .admin-used-image-picker .admin-image-preview img{height:150px}
  .admin-used-add-panel>summary{font-size:16px}
}


/* V57 - fuzzy used-car finder in Admin. */
.admin-used-search-panel{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:8px 16px;
  margin-bottom:14px;
  padding-bottom:14px;
  border-bottom:1px solid #e7eaed;
}
.admin-used-search-panel>label{display:grid;gap:8px;min-width:0;font-weight:850}
.admin-used-search-control{position:relative;display:flex;align-items:center;min-width:0}
.admin-used-search-control input{
  width:100%;
  min-height:48px;
  padding:10px 46px 10px 44px;
  border:1px solid #cfd5da;
  border-radius:13px;
  background:#fff;
  color:#171b1f;
  font:inherit;
  font-size:16px;
  font-weight:750;
  outline:none;
  transition:border-color .16s ease,box-shadow .16s ease;
}
.admin-used-search-control input:focus{border-color:#ed1c24;box-shadow:0 0 0 4px rgba(237,28,36,.11)}
.admin-used-search-control input::-webkit-search-cancel-button{display:none}
.admin-used-search-icon{position:absolute;left:15px;z-index:1;color:#69737c;font-size:24px;font-weight:900;line-height:1;pointer-events:none}
.admin-used-search-clear{
  position:absolute;
  right:8px;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  padding:0;
  border:0;
  border-radius:9px;
  background:#eef1f3;
  color:#30363b;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.admin-used-search-clear:hover,.admin-used-search-clear:focus-visible{background:#171b1f;color:#fff}
.admin-used-search-meta{align-self:center;white-space:nowrap;color:#68727c;font-size:13px;font-weight:850}
.admin-used-search-panel>small{grid-column:1/-1;color:#77818a;font-size:12px;line-height:1.45}
.admin-used-search-results{
  grid-column:1/-1;
  display:grid;
  gap:8px;
  max-height:330px;
  padding:8px;
  border:1px solid #dfe3e7;
  border-radius:14px;
  background:#f5f7f8;
  overflow:auto;
}
.admin-used-search-result{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px 18px;
  width:100%;
  padding:11px 13px;
  border:1px solid transparent;
  border-radius:11px;
  background:#fff;
  color:#171b1f;
  text-align:left;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(21,27,33,.04);
}
.admin-used-search-result:hover,.admin-used-search-result:focus-visible{border-color:#ed1c24;outline:none;box-shadow:0 0 0 3px rgba(237,28,36,.09)}
.admin-used-search-result-primary{display:flex;align-items:baseline;gap:10px;min-width:0}
.admin-used-search-result-primary strong{flex:0 0 auto;color:#e21b23;font-size:15px;letter-spacing:.02em}
.admin-used-search-result-primary span{min-width:0;font-size:15px;font-weight:900;overflow-wrap:anywhere}
.admin-used-search-result-secondary{color:#6c7680;font-size:12px;font-weight:750;text-align:right;white-space:nowrap}
.admin-used-search-empty{display:grid;gap:4px;padding:16px;text-align:center;color:#66717a}
.admin-used-search-empty strong{color:#22272b;font-size:15px}
.admin-used-search-empty span{font-size:12px;line-height:1.45}
.admin-used-select-label{margin-top:0}

@media(max-width:760px){
  .admin-used-search-panel{grid-template-columns:1fr;gap:8px;margin-bottom:12px;padding-bottom:12px}
  .admin-used-search-meta{justify-self:start;white-space:normal}
  .admin-used-search-panel>small{grid-column:auto}
  .admin-used-search-results{grid-column:auto;max-height:300px;padding:6px}
  .admin-used-search-result{grid-template-columns:1fr;gap:4px;padding:10px}
  .admin-used-search-result-primary{align-items:flex-start;flex-direction:column;gap:2px}
  .admin-used-search-result-secondary{text-align:left;white-space:normal;line-height:1.4}
}


/* V48 - fill page-one accessory space and use a focused add-used-car modal. */
.quote-customer-page .quote-standard-extra-list .quote-accessory-customer-total{
  min-height:5.4mm!important;
  padding-top:1mm!important;
  padding-bottom:.7mm!important;
}
.admin-used-add-dialog{
  width:min(920px,calc(100vw - 32px));
  max-width:920px;
  max-height:calc(100dvh - 32px);
  padding:0;
  border:0;
  border-radius:20px;
  background:#fff;
  color:#171b1f;
  box-shadow:0 30px 90px rgba(15,20,25,.32);
  overflow:hidden;
}
.admin-used-add-dialog::backdrop{background:rgba(11,15,19,.62);backdrop-filter:blur(3px)}
.admin-used-dialog-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 32px)}
.admin-used-dialog-header{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 22px;
  border-bottom:1px solid #e1e5e8;
  background:#fff;
}
.admin-used-dialog-header .eyebrow{margin:0 0 3px;color:#e21b23;font-size:11px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}
.admin-used-dialog-header h2{margin:0;font-size:24px;line-height:1.15}
.admin-used-dialog-close{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  border:0;
  border-radius:12px;
  background:#f0f2f4;
  color:#171b1f;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.admin-used-dialog-close:hover{background:#e21b23;color:#fff}
.admin-used-add-form{padding:20px 22px 24px;overflow:auto;overscroll-behavior:contain}
.admin-used-add-form .admin-used-image-picker{grid-column:1/-1}
.admin-used-dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:4px}
.admin-main .admin-used-dialog-actions .primary-button,
.admin-main .admin-used-dialog-actions .secondary-button{
  grid-column:auto;
  justify-self:auto;
  min-width:138px;
  margin:0;
}
@media(max-width:700px){
  .admin-used-add-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}
  .admin-used-dialog-shell{max-height:calc(100dvh - 16px)}
  .admin-used-dialog-header{padding:14px 15px}
  .admin-used-dialog-header h2{font-size:20px}
  .admin-used-add-form{grid-template-columns:1fr!important;padding:14px 15px 18px}
  .admin-used-add-form .admin-wide,.admin-used-add-form .admin-used-image-picker{grid-column:auto}
  .admin-used-dialog-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .admin-main .admin-used-dialog-actions .primary-button,
  .admin-main .admin-used-dialog-actions .secondary-button{width:100%;min-width:0;padding:0 12px}
}


/* V49 - robust Drive folder ID handling and non-blocking used-car image sync. */
.admin-used-drive-sync-warning{margin-top:8px;padding:10px 12px;border:1px solid #f2c46d;border-radius:10px;background:#fff8e8;color:#805900;font-size:13px;font-weight:700;}


/* V52 - safe deletion workflow for sold used cars. */
.admin-used-danger-zone{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin:18px 0;
  padding:18px 20px;
  border:1px solid #efc5c7;
  border-left:5px solid #e21b23;
  border-radius:16px;
  background:#fff8f8;
}
.admin-used-danger-zone .eyebrow{margin:0 0 3px;color:#c5161d;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.admin-used-danger-zone h3{margin:0 0 5px;font-size:20px}
.admin-used-danger-zone p{max-width:720px;margin:0;color:#68727b;line-height:1.5}
.admin-used-delete-button,.admin-used-delete-confirm{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border:0;
  border-radius:11px;
  background:#d71920;
  color:#fff;
  font-weight:900;
  white-space:nowrap;
  cursor:pointer;
}
.admin-used-delete-button:hover,.admin-used-delete-confirm:hover:not(:disabled){background:#a90f15}
.admin-used-delete-confirm:disabled{opacity:.42;cursor:not-allowed}
.admin-used-delete-lock{max-width:330px;padding:10px 12px;border-radius:10px;background:#fff;color:#8c2227;font-size:13px;font-weight:800;line-height:1.4}
.admin-used-delete-dialog{
  width:min(620px,calc(100vw - 32px));
  max-width:620px;
  padding:0;
  border:0;
  border-radius:20px;
  background:#fff;
  color:#171b1f;
  box-shadow:0 30px 90px rgba(15,20,25,.34);
  overflow:hidden;
}
.admin-used-delete-dialog::backdrop{background:rgba(11,15,19,.66);backdrop-filter:blur(3px)}
.admin-used-delete-header{border-top:5px solid #e21b23}
.admin-used-delete-form{display:grid;gap:16px;padding:22px}
.admin-used-delete-form>p{margin:0;color:#5f6972;line-height:1.55}
.admin-used-delete-form label{display:grid;gap:8px;font-weight:800}
.admin-used-delete-form input[type=text],.admin-used-delete-form input:not([type]){min-height:48px;border:1px solid #cfd5da;border-radius:10px;padding:0 13px;font:inherit;text-transform:uppercase}
.admin-used-delete-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-radius:12px;background:#171b1f;color:#fff}
.admin-used-delete-summary strong{font-size:18px}
.admin-used-delete-summary span{color:#ff555b;font-size:18px;font-weight:900;letter-spacing:.04em}
.admin-used-delete-check{grid-template-columns:auto 1fr!important;align-items:start!important;gap:10px!important;padding:13px;border:1px solid #f0c8ca;border-radius:11px;background:#fff6f6;font-size:14px;line-height:1.45}
.admin-used-delete-check input{width:20px;height:20px;margin:0;accent-color:#e21b23}
.admin-used-deleted-archive{margin:18px 0 26px;border:1px solid #dde2e6;border-radius:16px;background:#fff;overflow:hidden}
.admin-used-deleted-archive>summary{display:flex;align-items:center;gap:9px;min-height:56px;padding:0 18px;background:#f4f6f7;font-weight:900;cursor:pointer;list-style:none}
.admin-used-deleted-archive>summary::-webkit-details-marker{display:none}
.admin-used-deleted-archive>summary:after{content:'⌄';margin-left:auto;font-size:20px}
.admin-used-deleted-archive[open]>summary:after{transform:rotate(180deg)}
.admin-used-deleted-archive>summary strong{display:grid;place-items:center;min-width:26px;height:26px;border-radius:999px;background:#171b1f;color:#fff;font-size:12px}
.admin-used-deleted-list{display:grid;gap:0}
.admin-used-deleted-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-top:1px solid #e5e8ea}
.admin-used-deleted-list article>div{display:grid;gap:3px}
.admin-used-deleted-list article strong{font-size:16px}
.admin-used-deleted-list article span{color:#6b757e;font-size:13px}
.admin-used-deleted-list form{margin:0}
.admin-used-deleted-list .secondary-button{min-width:110px;margin:0}
@media(max-width:700px){
  .admin-used-danger-zone{align-items:stretch;flex-direction:column;padding:15px}
  .admin-used-delete-button{width:100%}
  .admin-used-delete-lock{max-width:none}
  .admin-used-delete-dialog{width:calc(100vw - 16px);border-radius:16px}
  .admin-used-delete-form{padding:16px}
  .admin-used-delete-summary{align-items:flex-start;flex-direction:column;gap:4px}
  .admin-used-deleted-list article{align-items:stretch;flex-direction:column}
  .admin-used-deleted-list form,.admin-used-deleted-list .secondary-button{width:100%}
}

/* V52 - full Google Drive connection health and current folder map. */
.connection-health-card,.connection-tree-card{display:grid;gap:20px}
.connection-health-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.connection-health-header>div{display:grid;gap:7px;min-width:0}
.connection-health-header h2,.connection-tree-card h2{margin:0}
.connection-health-header p,.connection-tree-card>p{margin:0;color:#66707c}
.connection-health-header small{display:block;color:#7a8490;overflow-wrap:anywhere}
.connection-health-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.connection-health-summary article{border:1px solid #dfe4e9;border-radius:14px;padding:14px 16px;background:#f8f9fb;display:flex;align-items:center;justify-content:space-between;gap:12px}
.connection-health-summary span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#697480}
.connection-health-summary strong{font-size:24px}
.connection-health-summary .is-ready{border-color:#bfe6d1;background:#f2fbf6}
.connection-health-summary .is-warning{border-color:#f2d69a;background:#fff9ec}
.connection-health-summary .is-error{border-color:#f1b8bd;background:#fff4f5}
.connection-resource-list{display:grid;gap:10px}
.connection-resource-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.8fr) minmax(250px,1fr);gap:16px;align-items:center;border:1px solid #e0e5ea;border-left:5px solid #aeb6bf;border-radius:14px;padding:14px 16px;background:#fff}
.connection-resource-row.is-ready{border-left-color:#1d9a5f}.connection-resource-row.is-warning{border-left-color:#e7a400}.connection-resource-row.is-error{border-left-color:#df1722}
.connection-resource-main{display:grid;gap:4px;min-width:0}.connection-resource-main small{font-weight:800;color:#d71920;text-transform:uppercase;letter-spacing:.04em}.connection-resource-main strong{font-size:16px;overflow-wrap:anywhere}.connection-resource-main p,.connection-resource-result p{margin:0;color:#76808a;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.connection-resource-row code{display:block;max-width:100%;overflow-wrap:anywhere;white-space:normal;font-size:11px;background:#f3f5f7;border-radius:10px;padding:9px 10px;color:#4d5965}
.connection-resource-result{display:grid;grid-template-columns:auto auto;gap:4px 10px;align-items:center}.connection-resource-result span{font-weight:900}.connection-resource-result small{text-align:right;color:#66707c}.connection-resource-result p{grid-column:1/-1}
.connection-tree-wrap{border:1px solid #dfe4e9;border-radius:16px;padding:18px;background:#fbfcfd;overflow:auto}
.connection-tree-list{list-style:none;margin:0;padding:0 0 0 26px;position:relative}.connection-tree-wrap>.connection-tree-list{padding-left:0}.connection-tree-list .connection-tree-list{margin-left:18px;padding-left:28px;border-left:1px solid #cfd6dd}
.connection-tree-list li{position:relative;margin:8px 0}.connection-tree-list .connection-tree-list>li:before{content:"";position:absolute;left:-28px;top:20px;width:24px;border-top:1px solid #cfd6dd}
.connection-tree-node{display:flex;align-items:center;gap:10px;min-width:max-content;border:1px solid #e0e5ea;border-radius:12px;background:#fff;padding:10px 12px}.connection-tree-node>div{display:grid;gap:2px}.connection-tree-node strong{font-size:14px}.connection-tree-node small{font-size:10px;color:#89929c;max-width:380px;overflow-wrap:anywhere}
.connection-tree-icon{width:18px;height:14px;border:2px solid #6d7782;border-radius:3px;position:relative;flex:0 0 auto}.connection-tree-icon.is-folder:before{content:"";position:absolute;left:1px;top:-6px;width:8px;height:5px;border:2px solid #6d7782;border-bottom:0;border-radius:3px 3px 0 0}.connection-tree-icon.is-file{height:20px;border-radius:2px}.connection-tree-icon.is-file:before{content:"";position:absolute;right:-2px;top:-2px;border-left:6px solid transparent;border-bottom:6px solid #6d7782}
.connection-tree-tag{margin-left:auto;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;background:#eef1f4;color:#59636e}
@media (max-width:980px){.connection-resource-row{grid-template-columns:minmax(0,1fr) minmax(220px,.8fr)}.connection-resource-result{grid-column:1/-1}.connection-health-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.connection-health-header{display:grid}.connection-health-header form,.connection-health-header button{width:100%}.connection-resource-row{grid-template-columns:1fr;padding:13px}.connection-resource-result{grid-column:auto}.connection-resource-result small{text-align:left}.connection-health-summary{grid-template-columns:1fr 1fr}.connection-tree-wrap{padding:12px}.connection-tree-list .connection-tree-list{margin-left:8px;padding-left:20px}.connection-tree-list .connection-tree-list>li:before{left:-20px;width:17px}.connection-tree-node{min-width:720px}.connection-tree-tag{margin-left:8px}}


/* V53 - OAuth user write path for My Drive. */
.connection-oauth-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border:1px solid #dce2e8;border-radius:16px;background:#f8fafb}
.connection-oauth-settings>div:first-child{grid-column:1/-1}
.connection-oauth-settings h3{margin:4px 0 6px;font-size:20px}
.connection-oauth-settings p{margin:0;color:#697481}
.connection-oauth-card{display:flex;align-items:center;justify-content:space-between;gap:24px;border-left:5px solid #e31824}
.connection-oauth-card.is-connected{border-left-color:#1d9b5d;background:linear-gradient(135deg,#fff 0%,#f1fbf6 100%)}
.connection-oauth-card.is-pending{background:linear-gradient(135deg,#fff 0%,#fff7ed 100%)}
.connection-oauth-card h2{margin:4px 0 8px}
.connection-oauth-card p{margin:0;color:#66717d}
.connection-oauth-actions{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto}
.connection-oauth-hint{display:inline-flex;padding:12px 16px;border-radius:12px;background:#fff3cd;color:#7a5b00;font-weight:800;text-align:center}
@media(max-width:780px){.connection-oauth-settings{grid-template-columns:1fr}.connection-oauth-settings>div:first-child,.connection-oauth-settings .admin-wide{grid-column:auto}.connection-oauth-card{align-items:flex-start;flex-direction:column}.connection-oauth-actions,.connection-oauth-actions .primary-button,.connection-oauth-actions form,.connection-oauth-actions button{width:100%}}


/* V54 - secure password reset flow for admin users. */
.admin-user-list-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.admin-user-list-heading .eyebrow{margin:0 0 4px}
.admin-user-list-heading h2{margin:0}
.admin-user-list-heading>span{
  padding:7px 11px;
  border:1px solid #dde2e6;
  border-radius:999px;
  background:#f5f7f8;
  color:#59636c;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.admin-user-table th:last-child,.admin-user-table td:last-child{width:170px;text-align:right}
.admin-user-actions{white-space:nowrap}
.admin-main .admin-user-password-button{
  display:inline-flex;
  grid-column:auto;
  justify-self:auto;
  min-width:132px;
  min-height:40px;
  margin:0;
  padding:0 16px;
  font-size:9px;
}
.admin-user-password-dialog{width:min(520px,calc(100vw - 32px));max-width:520px;height:auto}
.admin-user-password-body{
  display:grid;
  gap:16px;
  padding:20px 22px 24px;
  overflow:auto;
  overscroll-behavior:contain;
}
.admin-user-password-body label{display:grid;gap:8px;font-weight:800}
.admin-user-password-body input{
  width:100%;
  min-height:48px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  font:inherit;
}
.admin-user-password-body input:focus{outline:3px solid rgba(215,25,32,.14);border-color:var(--red)}
.admin-user-password-target{
  display:grid;
  gap:3px;
  padding:14px 15px;
  border:1px solid #e1e5e8;
  border-radius:14px;
  background:#f6f7f8;
}
.admin-user-password-target small{color:#6d7680;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.admin-user-password-target strong{font-size:18px;line-height:1.25}
.admin-user-password-target span{color:#5f6871;font-size:13px;overflow-wrap:anywhere}
.admin-user-password-note{margin:0;color:#68717a;font-size:12px;line-height:1.5}
@media(max-width:700px){
  .admin-user-list-heading{align-items:flex-start}
  .admin-user-table th:nth-child(3),.admin-user-table td:nth-child(3){display:none}
  .admin-user-table th:last-child,.admin-user-table td:last-child{width:auto}
  .admin-main .admin-user-password-button{min-width:118px;padding:0 12px;font-size:13px}
  .admin-user-password-dialog{width:calc(100vw - 16px);max-width:none}
  .admin-user-password-body{padding:15px}
}
@media(max-width:520px){
  .admin-user-table th:nth-child(2),.admin-user-table td:nth-child(2){font-size:12px}
  .admin-user-table td{padding:10px 8px}
  .admin-main .admin-user-password-button{width:100%;min-width:0;white-space:nowrap}
}


/* V55 - independent Google, Meta and TikTok advertising integrations. */
.admin-tracking-overview{
  align-items:center;
  background:linear-gradient(135deg,#11161b 0%,#262d34 100%);
  border-radius:18px;
  color:#fff;
  display:grid;
  gap:24px;
  grid-template-columns:minmax(0,1fr) auto;
  margin-bottom:22px;
  padding:26px 28px;
}
.admin-tracking-overview .eyebrow{color:#ff4a56;margin:0 0 6px}
.admin-tracking-overview h2{font-size:30px;margin:0 0 8px}
.admin-tracking-overview p{line-height:1.55;margin:0;max-width:760px}
.admin-tracking-status-grid{display:grid;gap:8px;grid-template-columns:repeat(3,minmax(110px,1fr))}
.admin-tracking-status-grid>span{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:12px;display:grid;gap:2px;padding:12px 14px}
.admin-tracking-status-grid>span.is-ready{background:rgba(43,174,102,.16);border-color:rgba(75,220,139,.38)}
.admin-tracking-status-grid b{font-size:13px}
.admin-tracking-status-grid small{color:#c8d0d7;font-size:10px;font-weight:800;white-space:nowrap}
.admin-tracking-platforms{display:grid;gap:22px}
.admin-tracking-card{border-top:5px solid #66727e;overflow:visible}
.admin-tracking-card.platform-google{border-top-color:#4285f4}
.admin-tracking-card.platform-meta{border-top-color:#1877f2}
.admin-tracking-card.platform-tiktok{border-top-color:#111}
.admin-tracking-card-header{align-items:center;border-bottom:1px solid var(--line);display:grid;gap:14px;grid-template-columns:52px minmax(0,1fr) auto;margin:-4px 0 2px;padding:0 0 18px}
.admin-tracking-card-header .admin-tracking-platform-icon{align-items:center;background:#111;border-radius:14px;color:#fff;display:flex;font-size:24px;font-weight:900;height:50px;justify-content:center;width:50px}
.platform-google .admin-tracking-platform-icon{background:#4285f4}
.platform-meta .admin-tracking-platform-icon{background:#1877f2;font-family:Arial,sans-serif;font-size:30px;text-transform:lowercase}
.platform-tiktok .admin-tracking-platform-icon{background:#111;text-shadow:2px 0 #25f4ee,-2px 0 #fe2c55}
.admin-tracking-card-header p{color:var(--muted);font-size:11px;font-weight:900;letter-spacing:.1em;margin:0;text-transform:uppercase}
.admin-tracking-card-header h2{font-size:24px;margin:2px 0 0}
.admin-tracking-card-header>span{background:#f1f4f6;border-radius:999px;color:#5f6871;font-size:11px;font-weight:900;padding:8px 11px;white-space:nowrap}
.admin-tracking-note{background:#f7f8fa;border:1px solid var(--line);border-radius:10px;color:#68717a;font-size:13px;line-height:1.5;margin:0;padding:13px 15px}
.admin-tracking-events{align-items:center;display:flex;flex-wrap:wrap;gap:8px;padding-top:2px}
.admin-tracking-events strong{font-size:12px;margin-right:2px}
.admin-tracking-events span{background:#f1f3f5;border:1px solid #e0e4e7;border-radius:999px;color:#535c64;font-size:10px;font-weight:900;padding:6px 9px}
@media(max-width:980px){
  .admin-tracking-overview{grid-template-columns:1fr}
  .admin-tracking-status-grid{width:100%}
}
@media(max-width:620px){
  .admin-tracking-overview{padding:21px 18px}
  .admin-tracking-overview h2{font-size:25px}
  .admin-tracking-status-grid{grid-template-columns:1fr}
  .admin-tracking-card-header{grid-template-columns:46px minmax(0,1fr)}
  .admin-tracking-card-header .admin-tracking-platform-icon{height:44px;width:44px}
  .admin-tracking-card-header>span{grid-column:1/-1;justify-self:start}
  .admin-tracking-card .primary-button{width:100%}
}


/* V56 - accessory pagination uses the right card independently from the gift column. */
.quote-customer-page .quote-standard-gift-card .quote-standard-gift-body{
  overflow:hidden!important;
}
.quote-customer-page .quote-standard-extra-list{
  align-content:start!important;
}
.quote-customer-page .quote-standard-extra-list li{
  min-height:5.85mm!important;
  padding:.82mm 0!important;
}
.quote-customer-page .quote-standard-extra-list li>span:nth-child(2){
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  line-height:1.16!important;
}
.quote-customer-page .quote-standard-extra-list .quote-accessory-customer-total{
  min-height:5.1mm!important;
  margin-top:.55mm!important;
  padding-top:.75mm!important;
  padding-bottom:.45mm!important;
}
.quote-accessory-continuation-page-v56 .quote-a4-table td:nth-child(2){
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}


/* V58 - public used-car detail pages, complete Drive gallery and contact CTA. */
.used-car-card-link{
  color:inherit;
  cursor:pointer;
  position:relative;
  text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.used-car-card-link:hover{
  border-color:#cfd5da;
  box-shadow:0 24px 48px rgba(17,19,23,.13);
  transform:translateY(-3px);
}
.used-car-card-link:focus-visible{outline:3px solid rgba(215,25,32,.24);outline-offset:4px}
.used-car-photo-count{
  align-items:center;
  background:rgba(17,21,25,.82)!important;
  border-radius:999px;
  bottom:14px;
  color:#fff;
  display:inline-flex;
  font-size:11px!important;
  font-weight:900;
  left:auto!important;
  padding:7px 10px!important;
  right:14px;
  text-transform:none!important;
  top:auto!important;
}
.used-car-view-detail{
  align-items:center;
  border-top:1px solid #e5e8ec;
  color:#d71920!important;
  display:flex;
  font-size:13px!important;
  font-weight:900;
  justify-content:space-between;
  letter-spacing:0!important;
  margin-top:auto;
  padding-top:14px;
  text-transform:none!important;
}
.used-car-view-detail b{font-size:21px;line-height:1}
.used-detail-page{padding-bottom:72px}
.used-detail-breadcrumb{
  align-items:center;
  color:#69737d;
  display:flex;
  flex-wrap:wrap;
  font-size:13px;
  gap:8px;
  margin:22px auto 18px;
  max-width:1380px;
  padding:0 24px;
}
.used-detail-breadcrumb a{color:#d71920;font-weight:850;text-decoration:none}
.used-detail-breadcrumb strong{color:#30363c;overflow-wrap:anywhere}
.used-detail-layout{
  display:grid;
  gap:34px;
  grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);
  margin:0 auto;
  max-width:1380px;
  padding:0 24px 34px;
}
.used-detail-gallery,.used-detail-summary,.used-detail-info-card,.used-detail-final-cta{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 20px 46px rgba(17,19,23,.08);
}
.used-detail-gallery{align-self:start;min-width:0;padding:16px}
.used-detail-main{
  aspect-ratio:4/3;
  background:linear-gradient(180deg,#f5f7f9,#e9edf1);
  border-radius:13px;
  overflow:hidden;
  position:relative;
}
.used-detail-main-button{background:transparent;border:0;cursor:zoom-in;display:block;height:100%;padding:0;width:100%}
.used-detail-main img{height:100%;object-fit:cover;object-position:center;width:100%}
.used-detail-main.is-placeholder img{object-fit:contain;padding:60px}
.used-detail-status{
  background:#d71920;
  color:#fff;
  font-size:11px;
  font-weight:900;
  left:16px;
  letter-spacing:.03em;
  padding:9px 12px;
  position:absolute;
  text-transform:uppercase;
  top:16px;
}
.used-detail-counter{
  background:rgba(17,21,25,.78);
  border-radius:999px;
  bottom:15px;
  color:#fff;
  font-size:12px;
  font-weight:850;
  padding:8px 11px;
  position:absolute;
  right:15px;
}
.used-detail-nav{
  align-items:center;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(17,21,25,.12);
  border-radius:50%;
  box-shadow:0 8px 20px rgba(17,21,25,.15);
  color:#171b20;
  cursor:pointer;
  display:flex;
  font-size:34px;
  height:46px;
  justify-content:center;
  line-height:1;
  padding:0 0 4px;
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:46px;
}
.used-detail-nav.is-prev{left:14px}.used-detail-nav.is-next{right:14px}
.used-detail-thumbnails{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(auto-fill,minmax(92px,1fr));
  margin-top:12px;
  max-height:238px;
  overflow:auto;
  padding:2px;
}
.used-detail-thumb{
  aspect-ratio:4/3;
  background:#f1f3f5;
  border:2px solid transparent;
  border-radius:9px;
  cursor:pointer;
  overflow:hidden;
  padding:0;
}
.used-detail-thumb img{height:100%;object-fit:cover;width:100%}
.used-detail-thumb.is-active{border-color:#d71920;box-shadow:0 0 0 2px rgba(215,25,32,.12)}
.used-detail-summary{align-self:start;display:grid;gap:16px;padding:30px;position:sticky;top:112px}
.used-detail-summary .eyebrow{margin:0}
.used-detail-summary h1{font-size:clamp(34px,3.2vw,52px);line-height:1.02;margin:0;overflow-wrap:anywhere}
.used-detail-meta{color:#65707b;font-size:15px;font-weight:800;margin:0}
.used-detail-price{color:#d71920;font-size:clamp(30px,3vw,44px);line-height:1.05}
.used-detail-specs{display:grid;gap:1px;grid-template-columns:repeat(2,minmax(0,1fr));margin:2px 0 0}
.used-detail-specs>div{background:#f4f6f8;border:1px solid #e6eaed;display:grid;gap:5px;min-width:0;padding:12px 13px}
.used-detail-specs>div:nth-child(1){border-radius:10px 0 0 0}.used-detail-specs>div:nth-child(2){border-radius:0 10px 0 0}
.used-detail-specs dt{color:#747e87;font-size:10px;font-weight:900;letter-spacing:.045em;text-transform:uppercase}
.used-detail-specs dd{font-size:14px;font-weight:900;margin:0;overflow-wrap:anywhere}
.used-detail-actions{display:grid;gap:10px;grid-template-columns:1fr 1fr;margin-top:4px}
.used-detail-actions .used-detail-contact-button{grid-column:1/-1;min-height:54px}
.used-detail-actions .mmv-btn{justify-content:center;margin:0;text-align:center}
.mmv-btn.light{background:#fff;border:1px solid #d8dde1;color:#1c2228}
.used-detail-information{margin:0 auto;max-width:1380px;padding:10px 24px 34px}
.used-detail-section-heading p,.used-detail-final-cta p{color:#d71920;font-size:12px;font-weight:900;letter-spacing:.15em;margin:0 0 7px;text-transform:uppercase}
.used-detail-section-heading h2{font-size:clamp(28px,3vw,42px);margin:0 0 20px}
.used-detail-information-grid{display:grid;gap:24px;grid-template-columns:repeat(2,minmax(0,1fr))}
.used-detail-info-card{padding:28px}
.used-detail-info-card h3{font-size:23px;margin:0 0 18px}
.used-detail-info-card dl{display:grid;gap:0;margin:0}
.used-detail-info-card dl>div{align-items:start;border-bottom:1px solid #e5e8eb;display:grid;gap:18px;grid-template-columns:minmax(125px,.8fr) minmax(0,1.2fr);padding:12px 0}
.used-detail-info-card dt{color:#737d87;font-size:12px;font-weight:850}.used-detail-info-card dd{font-weight:850;margin:0;overflow-wrap:anywhere;text-align:right}
.used-detail-accessory-list{display:grid;gap:10px;list-style:none;margin:0;padding:0}
.used-detail-accessory-list li{background:#f5f7f8;border:1px solid #e3e7ea;border-radius:10px;font-weight:750;line-height:1.45;padding:12px 14px}
.used-detail-accessory-list li::before{color:#d71920;content:'✓';font-weight:900;margin-right:9px}
.used-detail-info-card>p{color:#606a74;line-height:1.65;margin:0}
.used-detail-final-cta{
  align-items:center;
  background:linear-gradient(135deg,#151a1f,#292f35);
  color:#fff;
  display:grid;
  gap:26px;
  grid-template-columns:minmax(0,1fr) auto;
  margin:0 auto;
  max-width:1332px;
  padding:28px 30px;
}
.used-detail-final-cta h2{font-size:30px;margin:0 0 8px}.used-detail-final-cta span{color:#d5dbe0;line-height:1.5}.used-detail-final-cta .mmv-btn{margin:0;min-width:190px}
.used-gallery-lightbox{background:rgba(8,10,12,.96);border:0;height:100vh;margin:0;max-height:none;max-width:none;padding:58px 72px 40px;width:100vw}
.used-gallery-lightbox::backdrop{background:rgba(0,0,0,.86)}
.used-gallery-lightbox figure{align-items:center;display:grid;height:100%;justify-items:center;margin:0}.used-gallery-lightbox figure img{max-height:calc(100vh - 130px);max-width:calc(100vw - 180px);object-fit:contain}.used-gallery-lightbox figcaption{color:#fff;font-size:13px;font-weight:800;margin-top:12px}
.used-gallery-lightbox-close{background:#fff;border:0;border-radius:50%;color:#111;cursor:pointer;font-size:27px;height:42px;position:absolute;right:22px;top:18px;width:42px}
.used-gallery-lightbox-nav{background:rgba(255,255,255,.92);border:0;border-radius:50%;cursor:pointer;font-size:40px;height:52px;position:absolute;top:50%;transform:translateY(-50%);width:52px}.used-gallery-lightbox-nav.is-prev{left:18px}.used-gallery-lightbox-nav.is-next{right:18px}
@media(max-width:1050px){
  .used-detail-layout{grid-template-columns:1fr}.used-detail-summary{position:static}.used-detail-main{aspect-ratio:16/11}
}
@media(max-width:760px){
  .used-detail-page{padding-bottom:36px}.used-detail-breadcrumb{padding:0 16px}.used-detail-layout{gap:18px;padding:0 16px 24px}.used-detail-gallery{padding:9px}.used-detail-summary{padding:22px}.used-detail-information{padding:4px 16px 24px}.used-detail-information-grid{grid-template-columns:1fr}.used-detail-final-cta{align-items:start;border-radius:0;grid-template-columns:1fr;margin:0;padding:26px 20px}.used-detail-final-cta .mmv-btn{width:100%}.used-detail-thumbnails{grid-template-columns:repeat(4,minmax(0,1fr));max-height:190px}.used-gallery-lightbox{padding:58px 12px 30px}.used-gallery-lightbox figure img{max-width:100%;max-height:calc(100vh - 120px)}.used-gallery-lightbox-nav{height:44px;width:44px}.used-gallery-lightbox-nav.is-prev{left:8px}.used-gallery-lightbox-nav.is-next{right:8px}
}
@media(max-width:520px){
  .used-detail-main{aspect-ratio:4/3}.used-detail-main.is-placeholder img{padding:32px}.used-detail-status{left:10px;top:10px}.used-detail-counter{bottom:10px;right:10px}.used-detail-nav{height:40px;width:40px}.used-detail-nav.is-prev{left:8px}.used-detail-nav.is-next{right:8px}.used-detail-summary h1{font-size:34px}.used-detail-specs{grid-template-columns:1fr}.used-detail-specs>div{align-items:center;grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr)}.used-detail-specs dd{text-align:right}.used-detail-actions{grid-template-columns:1fr}.used-detail-actions .used-detail-contact-button{grid-column:auto}.used-detail-thumbnails{grid-template-columns:repeat(3,minmax(0,1fr))}.used-detail-info-card{padding:21px}.used-detail-info-card dl>div{grid-template-columns:1fr;gap:5px}.used-detail-info-card dd{text-align:left}
}


/* V59 - premium used-car detail UI and multi-image Drive uploader. */
.used-detail-page{background:linear-gradient(180deg,#f5f6f7 0,#fff 520px);padding-top:1px}
.used-detail-layout{gap:28px;grid-template-columns:minmax(0,1.5fr) minmax(370px,.72fr)}
.used-detail-gallery,.used-detail-summary,.used-detail-info-card{border-color:#e0e4e7;border-radius:22px;box-shadow:0 24px 60px rgba(17,21,25,.09)}
.used-detail-gallery{padding:14px}
.used-detail-gallery-heading{align-items:center;display:flex;justify-content:space-between;gap:18px;padding:3px 4px 14px}
.used-detail-gallery-heading>div{display:grid;gap:3px}.used-detail-gallery-heading span{color:#d71920;font-size:10px;font-weight:950;letter-spacing:.16em}.used-detail-gallery-heading strong{font-size:18px;line-height:1.25}.used-detail-gallery-heading small{color:#77818a;font-size:12px;font-weight:750}
.used-detail-main{aspect-ratio:16/10;border-radius:16px;background:#e8ecef}
.used-detail-main:after{background:linear-gradient(180deg,transparent 60%,rgba(8,10,13,.35));content:'';inset:0;pointer-events:none;position:absolute}
.used-detail-main img{transition:transform .45s ease}.used-detail-main-button:hover img{transform:scale(1.018)}
.used-detail-status{border-radius:7px;box-shadow:0 8px 20px rgba(215,25,32,.23);z-index:2}
.used-detail-photo-type{background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.65);border-radius:999px;color:#22282e;font-size:11px;font-weight:900;left:16px;padding:7px 10px;position:absolute;top:58px;z-index:2}
.used-detail-counter,.used-detail-nav{z-index:2}
.used-detail-thumbnails{display:flex;gap:10px;margin-top:11px;max-height:none;overflow-x:auto;overflow-y:hidden;padding:2px 2px 7px;scrollbar-width:thin}
.used-detail-thumb{flex:0 0 104px;border-radius:11px;opacity:.78;transition:opacity .18s ease,transform .18s ease,border-color .18s ease}.used-detail-thumb:hover,.used-detail-thumb.is-active{opacity:1;transform:translateY(-1px)}
.used-detail-gallery-footer{align-items:center;color:#6e7881;display:flex;font-size:11px;font-weight:800;justify-content:space-between;padding:4px 4px 0}
.used-detail-summary{background:linear-gradient(180deg,#fff,#fafbfc);gap:15px;padding:28px;top:98px}
.used-detail-summary-top{align-items:center;display:flex;justify-content:space-between;gap:12px}.used-detail-summary-top .eyebrow{color:#d71920}.used-detail-availability{background:#e8f7ee;border:1px solid #cbead7;border-radius:999px;color:#14713d;font-size:11px;font-weight:900;padding:7px 10px}
.used-detail-summary h1{font-size:clamp(34px,3.1vw,48px);letter-spacing:-.035em}.used-detail-meta{font-size:14px}
.used-detail-price-block{border-left:5px solid #d71920;display:grid;gap:3px;padding:2px 0 3px 14px}.used-detail-price-block>span{color:#77818a;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.used-detail-price{font-size:clamp(32px,3vw,43px)}
.used-detail-quick-facts{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.used-detail-quick-facts>div{background:#f2f4f6;border:1px solid #e1e5e8;border-radius:11px;display:grid;gap:4px;min-width:0;padding:11px 12px}.used-detail-quick-facts span{color:#77818a;font-size:10px;font-weight:900;text-transform:uppercase}.used-detail-quick-facts strong{font-size:14px;overflow-wrap:anywhere}
.used-detail-contact-intro{background:#171c21;border-radius:12px;color:#fff;display:grid;gap:4px;padding:13px 14px}.used-detail-contact-intro strong{font-size:14px}.used-detail-contact-intro span{color:#cbd1d6;font-size:11px;line-height:1.4}
.used-detail-specs{border:1px solid #e2e6e9;border-radius:12px;overflow:hidden}.used-detail-specs>div{border:0;border-bottom:1px solid #e3e6e9;background:#fff}.used-detail-specs>div:nth-last-child(-n+2){border-bottom:0}.used-detail-specs>div:nth-child(1),.used-detail-specs>div:nth-child(2){border-radius:0}
.used-detail-actions .mmv-btn{border-radius:11px;min-height:48px}.used-detail-actions .used-detail-contact-button{box-shadow:0 12px 28px rgba(215,25,32,.22);font-size:15px;min-height:56px}
.used-detail-section-heading{display:grid;gap:3px;margin-bottom:20px}.used-detail-section-heading h2{margin:0}.used-detail-section-heading>span{color:#717b84;font-size:13px}
.used-detail-information-grid{gap:20px}.used-detail-info-card{padding:26px}.used-detail-card-title{align-items:center;border-bottom:1px solid #e3e6e9;display:flex;gap:11px;margin-bottom:9px;padding-bottom:16px}.used-detail-card-title>span{align-items:center;background:#171c21;border-radius:8px;color:#fff;display:flex;font-size:11px;font-weight:900;height:32px;justify-content:center;width:32px}.used-detail-card-title h3{font-size:22px;margin:0}
.used-detail-accessory-list{grid-template-columns:repeat(2,minmax(0,1fr))}.used-detail-accessory-list li{background:#fff;border-radius:11px;box-shadow:0 5px 15px rgba(18,22,25,.035)}
.used-detail-final-cta{border:0;border-radius:22px;box-shadow:0 22px 50px rgba(18,22,25,.17);max-width:1332px}

.admin-used-image-picker{background:linear-gradient(180deg,#fff,#fafbfc);border:1px solid #dfe4e7;border-radius:16px;display:grid;gap:14px;padding:17px!important}
.admin-used-upload-heading{align-items:center;display:flex;justify-content:space-between;gap:14px}.admin-used-upload-heading>div{display:grid;gap:4px}.admin-used-upload-heading strong{font-size:17px}.admin-used-upload-heading small{color:#707a83;font-size:12px;line-height:1.45}.admin-used-photo-count{background:#171c21;border-radius:999px;color:#fff;font-size:11px;font-weight:900;padding:7px 10px;white-space:nowrap}
.admin-used-current-gallery{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(105px,1fr))}.admin-used-current-gallery figure{background:#f1f3f5;border:1px solid #dde2e5;border-radius:11px;margin:0;overflow:hidden}.admin-used-current-gallery img{aspect-ratio:4/3;height:auto!important;object-fit:cover!important;padding:0!important;width:100%}.admin-used-current-gallery figcaption{color:#5f6971;font-size:10px;font-weight:850;padding:7px 8px}
.admin-used-dropzone{align-items:center;background:#fff;border:2px dashed #cbd2d7;border-radius:14px;cursor:pointer;display:flex!important;flex-direction:column;gap:6px;justify-content:center;min-height:156px;padding:20px;text-align:center;transition:border-color .18s ease,background .18s ease,transform .18s ease}.admin-used-dropzone:hover{background:#fff7f7;border-color:#e21b23;transform:translateY(-1px)}.admin-used-dropzone input{height:1px!important;opacity:0;overflow:hidden;position:absolute;width:1px!important}.admin-used-dropzone-icon{align-items:center;background:#e21b23;border-radius:50%;color:#fff;display:flex;font-size:26px;height:44px;justify-content:center;width:44px}.admin-used-dropzone strong{font-size:16px}.admin-used-dropzone small{color:#707a83;font-size:12px;font-weight:650;line-height:1.5;max-width:620px}
.admin-used-selected-files{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.admin-used-selected-files>div{align-items:center;background:#fff;border:1px solid #e0e4e7;border-radius:11px;display:grid;gap:2px;grid-template-columns:52px minmax(0,1fr);padding:7px}.admin-used-selected-files>div>strong,.admin-used-selected-files>div>small{grid-column:2;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-used-selected-files>div>strong{font-size:11px}.admin-used-selected-files>div>small{color:#7b858d;font-size:10px}.admin-used-selected-preview{background:#eef1f3;border-radius:8px;display:block;grid-row:1/3;height:46px;overflow:hidden;width:46px}.admin-used-selected-preview img{height:100%;object-fit:cover;width:100%}.admin-used-selected-files>p{color:#a11218;font-size:12px;font-weight:850;grid-column:1/-1;margin:0}
.admin-used-drive-folder-status{align-items:center;background:#f2f5f6;border:1px solid #e0e4e7;border-radius:12px;display:grid;gap:12px;grid-template-columns:auto minmax(0,1fr) auto;padding:12px 13px}.admin-used-drive-folder-status>span{border-radius:999px;font-size:10px;font-weight:900;padding:6px 8px;white-space:nowrap}.admin-used-drive-folder-status>span.is-ready{background:#dff4e7;color:#126c39}.admin-used-drive-folder-status>span.is-pending{background:#fff0d7;color:#8a5c00}.admin-used-drive-folder-status>div{display:grid;gap:3px;min-width:0}.admin-used-drive-folder-status strong{font-size:12px;overflow-wrap:anywhere}.admin-used-drive-folder-status small{color:#707a83;font-size:11px;line-height:1.4}.admin-used-drive-folder-status>a{color:#d71920;font-size:11px;font-weight:900;text-decoration:none;white-space:nowrap}

@media(max-width:1050px){.used-detail-layout{grid-template-columns:1fr}.used-detail-summary{position:static}.used-detail-main{aspect-ratio:16/10}.used-detail-quick-facts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.used-detail-layout{padding-left:12px;padding-right:12px}.used-detail-gallery-heading{align-items:flex-start;flex-direction:column;gap:4px}.used-detail-main{aspect-ratio:4/3}.used-detail-photo-type{display:none}.used-detail-gallery-footer span:last-child{display:none}.used-detail-summary{padding:20px}.used-detail-quick-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.used-detail-accessory-list{grid-template-columns:1fr}.admin-used-upload-heading{align-items:flex-start;flex-direction:column}.admin-used-current-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-used-drive-folder-status{align-items:start;grid-template-columns:1fr}.admin-used-drive-folder-status>a{width:max-content}}
@media(max-width:520px){.used-detail-breadcrumb{margin-top:14px}.used-detail-gallery{border-radius:15px;padding:8px}.used-detail-gallery-heading{padding:5px 4px 10px}.used-detail-gallery-heading strong{font-size:16px}.used-detail-thumb{flex-basis:82px}.used-detail-summary{border-radius:16px}.used-detail-summary h1{font-size:31px}.used-detail-summary-top{align-items:flex-start}.used-detail-availability{font-size:10px}.used-detail-price-block{padding-left:11px}.used-detail-quick-facts{gap:6px}.used-detail-quick-facts>div{padding:10px}.used-detail-specs>div:nth-last-child(-n+2){border-bottom:1px solid #e3e6e9}.used-detail-specs>div:last-child{border-bottom:0}.used-detail-info-card{border-radius:16px;padding:18px}.admin-used-current-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-used-selected-files{grid-template-columns:1fr}}


/* V60 - Compact used-car image management and no-gap public vehicle detail layout */
.admin-used-current-gallery{
  align-items:start;
  display:grid;
  gap:9px;
  grid-template-columns:repeat(auto-fill,112px);
  justify-content:start;
  max-height:360px;
  overflow:auto;
  padding:2px 2px 5px;
}
.admin-used-current-photo{
  background:#fff;
  border:1px solid #dce1e5;
  border-radius:11px;
  cursor:pointer;
  display:grid;
  gap:0;
  margin:0;
  overflow:hidden;
  position:relative;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
  width:112px;
}
.admin-used-current-photo:hover{border-color:#b9c1c8;box-shadow:0 7px 18px rgba(18,22,25,.08);transform:translateY(-1px)}
.admin-used-current-photo.is-primary{border-color:#e21b23;box-shadow:0 0 0 2px rgba(226,27,35,.12)}
.admin-used-current-photo>input{height:1px!important;opacity:0;position:absolute;width:1px!important}
.admin-used-current-photo-frame{background:#eef1f3;display:block;position:relative}
.admin-used-current-photo img{aspect-ratio:4/3;display:block;height:auto!important;object-fit:cover!important;padding:0!important;width:100%}
.admin-used-primary-badge{background:rgba(18,22,26,.82);bottom:5px;color:#fff;font-size:8px;font-weight:900;left:5px;line-height:1;padding:5px 6px;position:absolute;text-transform:uppercase}
.admin-used-current-photo.is-primary .admin-used-primary-badge{background:#e21b23}
.admin-used-primary-action{color:#59636c;font-size:9px;font-weight:900;line-height:1.25;padding:7px 6px;text-align:center}
.admin-used-current-photo.is-primary .admin-used-primary-action{color:#c71118}
.admin-used-selected-files>div{grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto auto}
.admin-used-upload-primary{align-items:center;color:#5d6871;display:flex!important;font-size:10px!important;font-weight:850!important;gap:6px;grid-column:2;margin-top:3px}
.admin-used-upload-primary input{accent-color:#e21b23;height:15px!important;margin:0;width:15px!important}
.admin-used-upload-primary span{line-height:1.25}

.used-detail-layout{
  align-items:start;
  grid-template-areas:
    "gallery summary"
    "information summary";
  grid-template-columns:minmax(0,1.5fr) minmax(370px,.72fr);
  row-gap:22px;
}
.used-detail-gallery{grid-area:gallery}
.used-detail-summary{grid-area:summary}
.used-detail-information{
  grid-area:information;
  margin:0;
  max-width:none;
  min-width:0;
  padding:0;
}
.used-detail-information .used-detail-section-heading{margin:0 0 15px;padding:2px 4px 0}
.used-detail-information .used-detail-section-heading h2{font-size:clamp(27px,2.45vw,37px)}
.used-detail-information-grid{gap:16px}
.used-detail-info-card{box-shadow:0 18px 42px rgba(17,21,25,.075)}

@media(max-width:1050px){
  .used-detail-layout{
    grid-template-areas:"gallery" "summary" "information";
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .admin-used-current-gallery{grid-template-columns:repeat(auto-fill,100px);max-height:320px}
  .admin-used-current-photo{width:100px}
  .used-detail-layout{row-gap:18px}
  .used-detail-information .used-detail-section-heading{padding-left:2px;padding-right:2px}
}
@media(max-width:520px){
  .admin-used-current-gallery{grid-template-columns:repeat(auto-fill,92px);gap:7px}
  .admin-used-current-photo{width:92px}
}


/* V63 - Privacy policy and used-car search */
.used-cars-page,.privacy-page{padding-top:24px}
.used-cars-hero,.privacy-hero{background:linear-gradient(135deg,#171b1f 0%,#252b31 62%,#15191d 100%);border-radius:28px;color:#fff;display:grid;gap:30px;grid-template-columns:minmax(0,1fr) auto;margin:0 0 24px;overflow:hidden;padding:clamp(30px,5vw,68px);position:relative}
.used-cars-hero:after,.privacy-hero:after{background:radial-gradient(circle,rgba(226,27,35,.28),transparent 68%);content:"";height:360px;position:absolute;right:-120px;top:-160px;width:360px}
.used-cars-hero>*,.privacy-hero>*{position:relative;z-index:1}
.used-cars-hero p,.privacy-hero p:first-child{color:#ff5a60;font-size:12px;font-weight:900;letter-spacing:.16em;margin:0 0 12px;text-transform:uppercase}
.used-cars-hero h1,.privacy-hero h1{font-size:clamp(34px,5vw,60px);letter-spacing:-.045em;line-height:1.02;margin:0 0 18px;max-width:850px}
.used-cars-hero>div>span,.privacy-hero>div>span{color:#d9dde1;display:block;font-size:clamp(16px,1.7vw,20px);line-height:1.65;max-width:820px}
.used-cars-hero-stat{align-self:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:20px;min-width:180px;padding:24px;text-align:center}
.used-cars-hero-stat strong{display:block;font-size:48px;line-height:1}
.used-cars-hero-stat span{color:#cfd4d8;font-size:13px}
.used-car-search-panel{align-items:end;background:#fff;border:1px solid #e6e9eb;border-radius:22px;box-shadow:0 20px 55px rgba(20,24,28,.08);display:grid;gap:14px;grid-template-columns:minmax(280px,1.6fr) minmax(190px,.8fr) minmax(160px,.65fr) auto;margin:-48px 26px 30px;padding:20px;position:relative;z-index:2}
.used-car-search-panel label{color:#242a2f;display:block;font-size:12px;font-weight:900;letter-spacing:.04em;margin:0 0 8px;text-transform:uppercase}
.used-car-search-field>div{align-items:center;background:#f5f6f7;border:1px solid #dfe3e6;border-radius:12px;display:flex;gap:8px;padding:0 13px}
.used-car-search-field>div:focus-within{border-color:#d71920;box-shadow:0 0 0 3px rgba(215,25,32,.1)}
.used-car-search-field>div span{font-size:25px;line-height:1;transform:rotate(-15deg)}
.used-car-search-field input{background:transparent;border:0;font:inherit;height:48px;min-width:0;outline:0;width:100%}
.used-car-search-field small{color:#737c83;display:block;font-size:11px;line-height:1.35;margin-top:6px}
.used-car-filter-field select{appearance:none;background:#f5f6f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%23525a60' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;border:1px solid #dfe3e6;border-radius:12px;font:inherit;height:50px;padding:0 40px 0 14px;width:100%}
.used-car-reset{background:#fff;border:1px solid #d8dde0;border-radius:12px;cursor:pointer;font-weight:800;height:50px;padding:0 18px;white-space:nowrap}
.used-car-reset:hover{border-color:#d71920;color:#c5161d}
.used-cars-results{padding-top:12px}
.used-cars-result-head{align-items:end;display:flex;justify-content:space-between;margin-bottom:20px}
.used-cars-result-head p{color:#d71920;font-size:11px;font-weight:900;letter-spacing:.14em;margin:0 0 5px}
.used-cars-result-head h2{font-size:clamp(28px,3vw,40px);margin:0}
.used-cars-result-head>strong{background:#f1f3f4;border-radius:999px;padding:9px 14px}
.used-car-card[hidden]{display:none!important}
.used-car-empty{background:#f6f7f8;border:1px dashed #cbd1d5;border-radius:22px;padding:52px 24px;text-align:center}
.used-car-empty>span{font-size:44px}.used-car-empty h2{margin:8px 0}.used-car-empty p{color:#68727a;margin:0 0 20px}
.privacy-hero{grid-template-columns:minmax(0,1fr) minmax(240px,320px)}
.privacy-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.privacy-meta span{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.13);border-radius:999px;color:#eef1f3!important;font-size:12px!important;padding:8px 12px}
.privacy-hero aside{align-self:center;background:#fff;border-radius:20px;color:#1b2024;padding:24px}.privacy-hero aside strong{font-size:26px}.privacy-hero aside ul{display:grid;gap:10px;list-style:none;margin:18px 0 0;padding:0}.privacy-hero aside li{align-items:center;display:flex;font-weight:700;gap:9px}.privacy-hero aside li:before{background:#d71920;border-radius:50%;color:#fff;content:"✓";display:grid;font-size:10px;height:20px;place-items:center;width:20px}
.privacy-layout{align-items:start;display:grid;gap:34px;grid-template-columns:250px minmax(0,1fr);margin:34px auto 60px;max-width:1180px}
.privacy-nav{background:#fff;border:1px solid #e4e7e9;border-radius:18px;display:grid;gap:4px;padding:16px;position:sticky;top:90px}.privacy-nav strong{font-size:14px;padding:8px 10px 12px}.privacy-nav a{border-radius:9px;color:#59636b;font-size:13px;font-weight:700;padding:10px;text-decoration:none}.privacy-nav a:hover{background:#f3f4f5;color:#d71920}
.privacy-document{background:#fff;border:1px solid #e4e7e9;border-radius:24px;box-shadow:0 18px 50px rgba(21,25,29,.06);padding:clamp(22px,4vw,52px)}
.privacy-document>section{border-bottom:1px solid #e8ebed;display:grid;gap:20px;grid-template-columns:44px minmax(0,1fr);padding:0 0 34px;scroll-margin-top:110px}.privacy-document>section+section{padding-top:34px}.privacy-document>section:last-child{border-bottom:0;padding-bottom:0}.privacy-document>section>span{background:#171c20;border-radius:11px;color:#fff;display:grid;font-size:12px;font-weight:900;height:38px;place-items:center;width:38px}.privacy-document h2{font-size:clamp(23px,2.5vw,32px);letter-spacing:-.025em;margin:0 0 14px}.privacy-document p,.privacy-document li{color:#515c64;font-size:16px;line-height:1.75}.privacy-document p{margin:0 0 12px}.privacy-document ul{display:grid;gap:8px;margin:0;padding-left:22px}.privacy-note{background:#fff6f6;border-left:4px solid #d71920;border-radius:8px;margin-top:18px;padding:18px}.privacy-note strong{display:block;margin-bottom:6px}.privacy-note p{margin:0}.privacy-contact{align-items:center;background:#f3f5f6;border-radius:16px;display:flex;flex-wrap:wrap;gap:12px;margin-top:20px;padding:18px}.privacy-contact>div{margin-right:auto}.privacy-contact small{color:#68727a;display:block}.privacy-contact strong{font-size:22px}
@media(max-width:980px){.used-car-search-panel{grid-template-columns:1fr 1fr;margin-left:12px;margin-right:12px}.used-car-search-field{grid-column:1/-1}.privacy-layout{grid-template-columns:1fr}.privacy-nav{display:flex;overflow:auto;position:static}.privacy-nav strong{display:none}.privacy-nav a{white-space:nowrap}}
@media(max-width:720px){.used-cars-page,.privacy-page{padding-top:12px}.used-cars-hero,.privacy-hero{border-radius:20px;grid-template-columns:1fr;padding:28px 22px}.used-cars-hero-stat{text-align:left}.used-car-search-panel{grid-template-columns:1fr;margin:-18px 8px 24px;padding:15px}.used-car-search-field{grid-column:auto}.used-car-reset{width:100%}.used-cars-result-head{align-items:center}.privacy-hero aside{padding:18px}.privacy-layout{gap:18px;margin-top:20px}.privacy-document{border-radius:18px;padding:22px 18px}.privacy-document>section{gap:12px;grid-template-columns:34px minmax(0,1fr)}.privacy-document>section>span{border-radius:9px;height:30px;width:30px}.privacy-contact{align-items:stretch;flex-direction:column}.privacy-contact>div{margin:0}.privacy-contact .mmv-btn{text-align:center}}


/* V64 - Vietnamese phone verification and CRM used-car quote shortcut */
.phone-validation-hint {
  grid-column: 1 / -1;
  display: block;
  margin: -4px 0 4px;
  color: #5f6670;
  font-size: 12px;
  line-height: 1.45;
}
.phone-validation-hint.is-valid { color: #167447; font-weight: 700; }
.phone-validation-hint.is-invalid { color: #b42318; font-weight: 700; }
.ai-lead-form .phone-validation-hint { grid-column: 1 / -1; margin: 0; }
.crm-used-vehicle-card {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) minmax(220px, 1.25fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(230, 0, 18, .18);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #fff7f8 100%);
}
.crm-used-vehicle-card span { display: grid; gap: 4px; min-width: 0; }
.crm-used-vehicle-card small { color: #747b84; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.crm-used-vehicle-card strong { color: #15181c; font-size: 17px; overflow-wrap: anywhere; }
.crm-used-vehicle-card span:first-child strong { color: #c90012; font-size: 21px; letter-spacing: .035em; }
.crm-used-vehicle-card a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 10px;
  background: #d90016;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.crm-used-vehicle-card a:hover { background: #ad0011; }
.crm-used-vehicle-card em { color: #8a3b42; font-size: 12px; font-style: normal; }
@media (max-width: 760px) {
  .crm-used-vehicle-card { grid-template-columns: 1fr; }
  .crm-used-vehicle-card a { width: 100%; }
}

/* V65 - compact responsive used-car search panel */
.used-car-search-panel{
  align-items:end;
  gap:12px;
  grid-template-columns:minmax(320px,1.7fr) minmax(180px,.78fr) minmax(155px,.62fr) auto;
  margin:-38px 24px 28px;
  padding:16px;
  border-radius:18px;
  box-shadow:0 16px 42px rgba(20,24,28,.09);
}
.used-car-search-panel label{
  margin-bottom:6px;
  font-size:11px;
  line-height:1.25;
}
.used-car-search-field,
.used-car-filter-field{min-width:0}
.used-car-search-field>div,
.used-car-filter-field select,
.used-car-reset{
  height:46px;
  border-radius:11px;
}
.used-car-search-field>div{
  gap:10px;
  padding:0 14px;
}
.used-car-search-field input{
  height:44px;
  font-size:15px;
}
.used-car-search-icon{
  position:relative;
  flex:0 0 17px;
  width:17px;
  height:17px;
  transform:none!important;
}
.used-car-search-icon::before{
  content:"";
  position:absolute;
  left:1px;
  top:1px;
  width:10px;
  height:10px;
  border:2px solid #4f5961;
  border-radius:50%;
}
.used-car-search-icon::after{
  content:"";
  position:absolute;
  right:0;
  bottom:1px;
  width:7px;
  height:2px;
  border-radius:2px;
  background:#4f5961;
  transform:rotate(45deg);
  transform-origin:right center;
}
.used-car-filter-field select{
  height:46px;
  padding-left:13px;
  font-size:14px;
}
.used-car-reset{
  min-width:112px;
  height:46px;
  padding:0 16px;
  font-size:14px;
  transition:border-color .18s ease,color .18s ease,background-color .18s ease,transform .18s ease;
}
.used-car-reset:hover{
  background:#fff6f6;
  transform:translateY(-1px);
}
.used-car-reset:focus-visible,
.used-car-filter-field select:focus-visible{
  outline:3px solid rgba(215,25,32,.13);
  outline-offset:1px;
  border-color:#d71920;
}

@media (max-width:1100px){
  .used-car-search-panel{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
    gap:11px;
    margin:-32px 16px 26px;
  }
  .used-car-search-field{grid-column:1/-1}
  .used-car-reset{min-width:118px}
}

@media (max-width:720px){
  .used-car-search-panel{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:10px;
    margin:-16px 8px 22px;
    padding:13px;
    border-radius:16px;
  }
  .used-car-search-field{grid-column:1/-1}
  .used-car-reset{grid-column:1/-1;width:100%}
  .used-car-search-field>div,
  .used-car-filter-field select,
  .used-car-reset{height:44px}
  .used-car-search-field input{height:42px;font-size:16px}
  .used-car-filter-field select{font-size:14px}
}

@media (max-width:480px){
  .used-car-search-panel{
    grid-template-columns:1fr;
    margin:-12px 6px 20px;
    padding:12px;
  }
  .used-car-search-field,
  .used-car-reset{grid-column:auto}
  .used-car-search-panel label{margin-bottom:5px;font-size:10.5px}
  .used-car-search-field input{font-size:15px}
}



/* V67 - compact used-car page header */
.used-cars-titlebar{margin:0 0 16px;padding:0 4px}
.used-cars-titlebar p{color:#d71920;font-size:12px;font-weight:900;letter-spacing:.14em;margin:0 0 8px;text-transform:uppercase}
.used-cars-titlebar h1{color:#16191c;font-size:clamp(30px,4vw,46px);letter-spacing:-.04em;line-height:1.05;margin:0}
.used-car-search-panel{margin:0 0 26px}
.used-cars-result-head{justify-content:flex-start}

@media (max-width:720px){
  .used-cars-titlebar{margin-bottom:14px;padding:0 2px}
  .used-cars-titlebar h1{font-size:clamp(26px,8vw,34px);line-height:1.08}
  .used-car-search-panel{margin:0 0 22px}
}

@media (max-width:480px){
  .used-cars-titlebar{margin-bottom:12px;padding:0}
  .used-car-search-panel{margin:0 0 18px}
}


/* V68 - prevent title overlap and guarantee clean stacking */
.used-cars-titlebar{position:relative;z-index:3;padding-top:8px}
.used-car-search-panel{position:relative;z-index:1}
@media (max-width:720px){.used-cars-titlebar{padding-top:6px}}


/* V69 - hide legacy public gallery label */
.used-detail-page .used-detail-photo-type{display:none!important}


/* V70 - permanent used-car purge controls */
.admin-used-deleted-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.admin-used-purge-button{min-height:42px;padding:0 15px;border:1px solid #d71920;border-radius:10px;background:#fff;color:#b3141a;font:inherit;font-size:13px;font-weight:900;cursor:pointer;transition:background-color .18s ease,color .18s ease,transform .18s ease}
.admin-used-purge-button:hover{background:#d71920;color:#fff;transform:translateY(-1px)}
.admin-used-purge-button:focus-visible{outline:3px solid rgba(215,25,32,.18);outline-offset:2px}
.admin-used-purge-warning{display:grid;gap:7px;padding:15px;border:1px solid #f0b8bb;border-radius:12px;background:#fff5f5;color:#601217}
.admin-used-purge-warning strong{font-size:15px}
.admin-used-purge-warning p{margin:0;line-height:1.55}
.admin-used-purge-warning small{color:#8a3439;font-weight:700}
.admin-used-purge-dialog .admin-used-delete-confirm{background:#b3141a}
.admin-used-purge-dialog .admin-used-delete-confirm:not(:disabled):hover{background:#8f0f14}
@media(max-width:760px){.admin-used-deleted-actions,.admin-used-deleted-actions form,.admin-used-deleted-actions .secondary-button,.admin-used-purge-button{width:100%}}

/* V71 - global mobile stability and touch optimization */
html{overflow-x:hidden;-webkit-text-size-adjust:100%}body{overflow-x:hidden}img,svg,video,iframe{max-width:100%;height:auto}button,a,input,select,textarea{touch-action:manipulation}input,select,textarea{font-size:16px}.page-shell,.admin-main,.admin-content{min-width:0}.mmv-grid,.used-cars-grid,.admin-grid{min-width:0}.used-car-card,.quote-workspace>*{min-width:0}
@media(max-width:900px){.site-header-inner{gap:10px}.site-header nav{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.admin-shell{display:block}.admin-sidebar{position:relative;width:100%;max-height:none}.admin-main{width:100%}.quote-workspace{grid-template-columns:1fr!important}.used-detail-layout{grid-template-columns:1fr!important}.used-detail-aside{position:static!important}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}}
@media(max-width:720px){.page-shell{padding-left:14px!important;padding-right:14px!important}.used-cars-grid{grid-template-columns:1fr!important}.used-detail-gallery,.used-detail-card{border-radius:16px!important}.used-detail-main img{max-height:58vh;object-fit:contain}.admin-card,.admin-panel{border-radius:14px!important;padding:14px!important}.admin-form-grid{grid-template-columns:1fr!important}.admin-actions{display:flex;flex-wrap:wrap;gap:8px}.admin-actions .button,.admin-actions button{flex:1 1 140px;min-height:44px}.floating-actions{right:10px!important;bottom:74px!important}.site-footer{padding-bottom:90px}}

/* V74 - Live collapsible Google Drive folder tree */
.connection-drive-tree{gap:18px}
.connection-tree-header{align-items:flex-start;display:flex;gap:18px;justify-content:space-between}
.connection-tree-header>div:first-child{display:grid;gap:7px;max-width:820px}
.connection-tree-header h2,.connection-tree-header p{margin:0}
.connection-tree-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.connection-tree-actions .secondary-button{min-height:42px;padding:10px 14px;white-space:nowrap}
.connection-tree-tools{align-items:end;display:grid;gap:14px;grid-template-columns:minmax(260px,1fr) minmax(220px,.8fr)}
.connection-tree-search{display:grid;gap:6px;margin:0}
.connection-tree-search>span{color:#555f69;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.connection-tree-search input{background:#fff;border:1px solid #d7dde3;border-radius:12px;font-size:15px;height:44px;padding:0 14px;width:100%}
.connection-tree-search input:focus{border-color:#d71920;box-shadow:0 0 0 3px rgba(215,25,32,.1);outline:none}
.connection-tree-status{align-items:center;background:#f1f4f6;border:1px solid #e0e5e9;border-radius:12px;color:#56616b;display:flex;font-size:13px;line-height:1.45;min-height:44px;padding:10px 13px}
.connection-tree-status.is-loading{background:#fff8e9;border-color:#f1d69b;color:#845a00}
.connection-tree-status.is-success{background:#eef9f2;border-color:#c9ead4;color:#17683a}
.connection-tree-status.is-error{background:#fff0f0;border-color:#f0c4c4;color:#a3161c}
.connection-drive-tree .connection-tree-wrap{max-height:min(68vh,820px);overflow:auto;padding:14px}
.connection-drive-tree .connection-tree-list{min-width:0;padding-left:0}
.connection-drive-tree .connection-tree-list .connection-tree-list{border-left:1px solid #d6dce1;margin-left:17px;padding-left:24px}
.connection-drive-tree .connection-tree-list .connection-tree-list>li:before{left:-24px;top:23px;width:20px}
.connection-drive-tree .connection-tree-item{min-width:0}
.connection-drive-tree .connection-tree-item[hidden]{display:none}
.connection-drive-tree .connection-tree-node{align-items:center;display:flex;gap:10px;min-width:0;padding:9px 10px;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}
.connection-drive-tree .connection-tree-node:hover{background:#fff;border-color:#cbd3da;box-shadow:0 7px 20px rgba(22,29,35,.06)}
.connection-tree-toggle{align-items:center;background:#f1f3f5;border:1px solid #d9dee3;border-radius:8px;cursor:pointer;display:inline-flex;flex:0 0 30px;height:30px;justify-content:center;padding:0;width:30px}
.connection-tree-toggle span{border-bottom:2px solid #4f5962;border-right:2px solid #4f5962;height:7px;transform:rotate(-45deg);transition:transform .16s ease;width:7px}
.connection-tree-toggle[aria-expanded="true"] span{transform:rotate(45deg)}
.connection-tree-toggle:hover{background:#e7eaed}
.connection-tree-toggle:focus-visible{box-shadow:0 0 0 3px rgba(215,25,32,.14);outline:none}
.connection-tree-item.is-loading>.connection-tree-node>.connection-tree-toggle span{animation:connection-tree-spin .7s linear infinite;border:2px solid #c9ced3;border-top-color:#d71920;border-radius:50%;height:11px;transform:none;width:11px}
.connection-tree-item.is-leaf>.connection-tree-node>.connection-tree-toggle{cursor:default;opacity:.34}
.connection-tree-item.is-leaf>.connection-tree-node>.connection-tree-toggle span{border:0;height:4px;position:relative;transform:none;width:4px}
.connection-tree-item.is-leaf>.connection-tree-node>.connection-tree-toggle span:after{background:#66717a;border-radius:50%;content:"";height:4px;inset:0;position:absolute;width:4px}
.connection-tree-item.is-error>.connection-tree-node{background:#fff4f4;border-color:#e8b9bc}
.connection-tree-node-copy{display:grid;flex:1 1 260px;gap:2px;min-width:0}
.connection-tree-node-copy strong{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.connection-tree-node-copy small{color:#8a939c;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.connection-drive-tree .connection-tree-tag{flex:0 0 auto;margin-left:0}
.connection-tree-tag.is-shortcut{background:#f1ecff;color:#6145a5}
.connection-tree-drive-link{align-items:center;background:#15181b;border:1px solid #15181b;border-radius:9px;color:#fff;display:inline-flex;flex:0 0 auto;font-size:12px;font-weight:850;gap:5px;justify-content:center;min-height:34px;padding:7px 10px;text-decoration:none;white-space:nowrap}
.connection-tree-drive-link:hover{background:#d71920;border-color:#d71920;color:#fff}
.connection-tree-drive-link:focus-visible{box-shadow:0 0 0 3px rgba(215,25,32,.16);outline:none}
.connection-tree-footnote{color:#75808a;font-size:12px;line-height:1.55;margin:0!important}
.connection-drive-tree.is-busy .connection-tree-wrap{cursor:progress}
@keyframes connection-tree-spin{to{transform:rotate(360deg)}}

@media(max-width:900px){
  .connection-tree-header{display:grid}
  .connection-tree-actions{justify-content:flex-start}
  .connection-tree-tools{grid-template-columns:1fr}
  .connection-drive-tree .connection-tree-wrap{max-height:72vh}
}

@media(max-width:700px){
  .connection-tree-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .connection-tree-actions .secondary-button{width:100%}
  .connection-tree-actions .secondary-button:last-child{grid-column:1/-1}
  .connection-drive-tree .connection-tree-wrap{padding:9px}
  .connection-drive-tree .connection-tree-list .connection-tree-list{margin-left:10px;padding-left:13px}
  .connection-drive-tree .connection-tree-list .connection-tree-list>li:before{display:none}
  .connection-drive-tree .connection-tree-node{align-items:center;flex-wrap:wrap;min-width:0!important;padding:9px 8px}
  .connection-tree-toggle{flex-basis:28px;height:28px;width:28px}
  .connection-drive-tree .connection-tree-icon{flex:0 0 17px}
  .connection-tree-node-copy{flex:1 1 calc(100% - 70px)}
  .connection-drive-tree .connection-tree-tag{margin-left:38px}
  .connection-tree-drive-link{margin-left:auto;min-height:36px;padding:8px 11px}
}

@media(max-width:430px){
  .connection-tree-actions{grid-template-columns:1fr}
  .connection-tree-actions .secondary-button:last-child{grid-column:auto}
  .connection-drive-tree .connection-tree-list .connection-tree-list{margin-left:5px;padding-left:8px}
  .connection-tree-drive-link{margin-left:38px;width:calc(100% - 38px)}
}

/* V75 - enlarge used-car photos on the homepage without cropping the vehicle */
.used-home-grid .used-mini-card img {
  display: block;
  height: clamp(260px, 19vw, 290px);
  object-fit: contain;
  object-position: center center;
  padding: 8px 12px;
  width: 100%;
}

@media (max-width: 980px) {
  .used-home-grid .used-mini-card img {
    height: 270px;
    padding: 8px 10px;
  }
}

@media (max-width: 720px) {
  .used-home-grid .used-mini-card img {
    height: min(72vw, 330px);
    padding: 6px 8px;
  }
}

@media (max-width: 390px) {
  .used-home-grid .used-mini-card img {
    height: 270px;
  }
}

/* V76 - Accessory catalog, Excel reconciliation and price history */
.accessory-admin-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;border-left:4px solid #d71920}.accessory-admin-hero h2,.accessory-section-heading h2{margin:0}.accessory-admin-hero p:not(.eyebrow){max-width:760px;color:#68717a;line-height:1.65}.accessory-admin-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.accessory-admin-actions form{margin:0}.accessory-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:16px 0}.accessory-stat-card{background:#fff;border:1px solid #e0e4e8;border-radius:14px;padding:16px;box-shadow:0 8px 24px rgba(17,24,39,.05)}.accessory-stat-card span{display:block;color:#727a83;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.accessory-stat-card strong{display:block;margin-top:8px;font-size:28px;line-height:1}.accessory-stat-card.is-active{border-color:#bfe8cf;background:#f4fcf7}.accessory-stat-card.is-new{border-color:#f6d49a;background:#fffaf0}.accessory-stat-card.is-out,.accessory-stat-card.is-stop,.accessory-stat-card.is-removed{background:#fafafa}.accessory-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.accessory-section-heading p:not(.eyebrow){max-width:650px;margin:0;color:#68717a}.accessory-import-card{margin-top:16px}.accessory-import-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.accessory-import-form label{display:grid;gap:7px;font-weight:800;color:#343a40}.accessory-import-form input,.accessory-import-form select{width:100%;min-height:44px;border:1px solid #ccd2d9;border-radius:10px;padding:10px 12px;background:#fff}.accessory-import-file{grid-column:span 2}.accessory-import-file input{padding:7px}.accessory-import-form .primary-button{min-height:44px}.accessory-import-note{margin:14px 0 0;padding:12px 14px;border-radius:10px;background:#f5f7f8;color:#626b74;font-size:13px}.accessory-preview-card{margin-top:16px;border:1px solid #d6e1ff}.accessory-preview-mode{background:#edf3ff;color:#2251a8;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900}.accessory-preview-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:14px}.accessory-preview-stats span{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:10px;background:#f4f6f8;color:#5e6670;font-size:12px}.accessory-preview-stats strong{color:#111;font-size:16px}.accessory-import-errors{margin:12px 0;padding:14px;border:1px solid #f0b6b8;border-radius:10px;background:#fff5f5;color:#9f1c22}.accessory-import-errors ul{margin:8px 0 0;padding-left:20px}.accessory-preview-table{max-height:430px}.accessory-change-badge{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:900}.accessory-change-badge.is-new{background:#fff2cc;color:#7a5300}.accessory-change-badge.is-updated{background:#eaf2ff;color:#1d56a4}.accessory-change-badge.is-unchanged{background:#eef2f3;color:#59636c}.accessory-preview-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}.accessory-preview-actions form{margin:0}.accessory-admin-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(330px,.8fr);gap:18px;align-items:start;margin-top:18px}.accessory-list-card,.accessory-editor-card{min-width:0}.accessory-editor-card{position:sticky;top:16px}.accessory-filter-form{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(150px,.8fr) minmax(150px,.8fr) auto auto;gap:8px;align-items:center;margin-bottom:14px}.accessory-filter-form input[type=search],.accessory-filter-form select{min-height:42px;border:1px solid #ccd2d9;border-radius:9px;padding:9px 11px;background:#fff}.accessory-new-filter{display:flex!important;align-items:center;gap:7px!important;white-space:nowrap;font-size:13px}.accessory-new-filter input{width:18px;height:18px}.accessory-catalog-table{max-height:760px}.accessory-catalog-table table{min-width:850px}.accessory-catalog-table tr.is-new{background:#fffaf0}.accessory-catalog-table td small,.accessory-batch-history td small{display:block;color:#77808a;margin-top:4px}.accessory-name-cell{display:grid;gap:4px;min-width:250px}.accessory-name-cell>div{display:flex;align-items:center;gap:7px}.accessory-name-cell>div span{background:#f5c451;color:#4d3500;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:900;text-transform:uppercase}.accessory-name-cell b{font-size:14px}.accessory-status{display:inline-flex;white-space:nowrap;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900}.accessory-status.is-active{background:#e9f8ef;color:#17733f}.accessory-status.is-out_of_stock{background:#fff2cc;color:#765200}.accessory-status.is-discontinued,.accessory-status.is-removed{background:#fee9ea;color:#a01d23}.accessory-status.is-hidden{background:#edf0f2;color:#59616a}.accessory-editor-form{display:grid;grid-template-columns:1fr 1fr;gap:11px}.accessory-editor-form label{display:grid;gap:6px;font-weight:800;color:#343a40}.accessory-editor-form input,.accessory-editor-form select,.accessory-editor-form textarea{width:100%;border:1px solid #ccd2d9;border-radius:9px;padding:10px 11px;background:#fff}.accessory-editor-form .full{grid-column:1/-1}.accessory-price-preview{margin:0;padding:10px 12px;background:#f4f6f8;border-radius:9px;color:#66707a}.accessory-price-preview strong{color:#d71920}.accessory-new-checkbox{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important}.accessory-new-checkbox input{width:18px!important;height:18px}.accessory-danger-form{margin-top:14px;padding-top:14px;border-top:1px solid #eceff2}.accessory-price-history{margin-top:18px;padding-top:16px;border-top:1px solid #e7eaed}.accessory-price-history h3{margin:0 0 10px}.accessory-price-history article{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:9px 0;border-bottom:1px solid #edf0f2}.accessory-price-history article span,.accessory-price-history article small{font-size:11px;color:#737c85}.accessory-price-history article small{grid-column:1/-1}.accessory-batch-history{margin-top:18px}.accessory-batch-history table{min-width:780px}
@media(max-width:1250px){.accessory-stat-grid{grid-template-columns:repeat(3,1fr)}.accessory-import-form{grid-template-columns:repeat(2,1fr)}.accessory-admin-layout{grid-template-columns:1fr}.accessory-editor-card{position:static}.accessory-filter-form{grid-template-columns:1fr 1fr 1fr}.accessory-filter-form .accessory-new-filter,.accessory-filter-form button{grid-column:auto}}
@media(max-width:760px){.accessory-admin-hero,.accessory-section-heading{display:grid}.accessory-admin-actions{width:100%}.accessory-admin-actions>a,.accessory-admin-actions form,.accessory-admin-actions button{width:100%}.accessory-stat-grid{grid-template-columns:repeat(2,1fr)}.accessory-stat-card strong{font-size:24px}.accessory-import-form{grid-template-columns:1fr}.accessory-import-file{grid-column:1}.accessory-preview-stats{grid-template-columns:repeat(2,1fr)}.accessory-filter-form{grid-template-columns:1fr}.accessory-filter-form .accessory-new-filter,.accessory-filter-form button{grid-column:1}.accessory-editor-form{grid-template-columns:1fr}.accessory-editor-form .full{grid-column:1}.accessory-preview-actions{display:grid}.accessory-preview-actions form,.accessory-preview-actions button{width:100%}}
@media(max-width:430px){.accessory-stat-grid{grid-template-columns:1fr 1fr;gap:8px}.accessory-stat-card{padding:12px}.accessory-preview-stats{grid-template-columns:1fr}.accessory-admin-layout{gap:12px}}

.accessory-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.accessory-list-actions form{margin:0}
@media (max-width:720px){.accessory-list-actions{width:100%;justify-content:stretch}.accessory-list-actions form,.accessory-list-actions a,.accessory-list-actions button{width:100%}}

.accessory-source-history{border-top:1px solid #e7e9ee;margin-top:18px;padding-top:16px}
.accessory-source-history h3{font-size:15px;margin:0 0 10px}
.accessory-source-history article{align-items:center;background:#f7f8fa;border:1px solid #e3e5e9;border-radius:10px;display:flex;gap:10px;justify-content:space-between;margin-top:8px;padding:10px 12px}
.accessory-source-history article div{min-width:0}.accessory-source-history strong,.accessory-source-history small{display:block;overflow-wrap:anywhere}.accessory-source-history small{color:#68717d;margin-top:2px}
.accessory-source-history span{border-radius:999px;font-size:11px;font-weight:800;padding:5px 8px;white-space:nowrap}.accessory-source-history .is-present span{background:#e4f7ec;color:#167342}.accessory-source-history .is-missing span{background:#fff0f0;color:#b4232b}
@media (max-width:520px){.accessory-source-history article{align-items:flex-start;flex-direction:column}.accessory-source-history span{white-space:normal}}

/* V77 - Hồ sơ khách hàng, checklist giấy tờ và thư mục Drive */
.crm-directory-entry{position:relative;border-bottom:1px solid #eef0f3}
.crm-directory-entry:last-child{border-bottom:0}
.crm-directory-entry .crm-directory-row{border-bottom:0;padding-right:72px}
.crm-directory-drive-link{position:absolute;right:10px;bottom:10px;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 9px;border:1px solid #d7dce2;border-radius:9px;background:#fff;color:#1f2937;font-size:11px;font-weight:900;text-decoration:none}
.crm-directory-drive-link:hover{border-color:#d71920;color:#d71920}
.crm-purchase-badge{background:#edf7f1!important;color:#18794e!important}
.crm-document-mini{display:grid;gap:4px;margin-top:7px;max-width:240px}
.crm-document-mini>i{display:block;height:5px;overflow:hidden;border-radius:999px;background:#e5e7eb}
.crm-document-mini>i:after{content:"";display:block;width:var(--progress,0%);height:100%;border-radius:inherit;background:#d71920}
.crm-document-mini>small{font-size:10px;color:#6b7280}
.crm-profile-quick-actions .is-drive{border-color:#188038;color:#137333}
.crm-profile-summary-v77{grid-template-columns:repeat(3,minmax(0,1fr))}
.crm-drive-record,.crm-document-workspace{margin-top:18px;border:1px solid #e0e4e9;border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.05)}
.crm-drive-record{padding:18px;border-left:4px solid #e0a000}
.crm-drive-record.is-ready{border-left-color:#1a9b5f}
.crm-drive-record>header,.crm-document-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.crm-drive-record h3,.crm-document-heading h3{margin:3px 0 6px;font-size:20px}
.crm-drive-record p,.crm-document-heading p{margin:0;color:#677382;line-height:1.55}
.crm-drive-record-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.crm-drive-record-actions form{margin:0}
.crm-document-progress{display:grid;grid-template-columns:minmax(160px,1fr) auto;align-items:center;gap:6px 12px;margin-top:16px;padding-top:15px;border-top:1px solid #edf0f3}
.crm-document-progress>span{display:block;height:9px;border-radius:999px;background:#e8ebef;overflow:hidden}
.crm-document-progress>span i{display:block;width:var(--progress,0%);height:100%;border-radius:inherit;background:#d71920}
.crm-document-progress>strong{font-size:17px}
.crm-document-progress>small{grid-column:1/-1;color:#667085}
.crm-drive-subfolders{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.crm-drive-subfolders a{display:inline-flex;padding:7px 10px;border:1px solid #e2e5e9;border-radius:9px;background:#f8fafb;color:#30363d;font-size:12px;font-weight:800;text-decoration:none}
.crm-document-workspace{padding:20px}
.crm-document-heading{padding-bottom:16px;border-bottom:1px solid #edf0f3}
.crm-document-heading>strong{white-space:nowrap;padding:7px 11px;border-radius:999px;background:#fff0f0;color:#c5161d;font-size:13px}
.crm-document-checklist{display:grid;gap:10px;margin-top:16px}
.crm-document-checklist>h4{margin:14px 0 2px;padding:9px 12px;border-radius:10px;background:#17191c;color:#fff;font-size:13px;letter-spacing:.02em}
.crm-document-row{display:grid;grid-template-columns:minmax(260px,1.45fr) minmax(180px,.65fr) minmax(240px,1fr);gap:12px;align-items:start;padding:14px;border:1px solid #e2e6ea;border-radius:12px;background:#fbfcfd}
.crm-document-row.is-received,.crm-document-row.is-verified{border-color:#b8dfca;background:#f5fbf7}
.crm-document-row.is-requested{border-color:#f0d08a;background:#fffaf0}
.crm-document-row.is-not_applicable{opacity:.72}
.crm-document-label{display:grid;gap:5px}
.crm-document-label>span{width:max-content;padding:3px 7px;border-radius:999px;background:#fee2e2;color:#b91c1c;font-size:10px;font-weight:900;text-transform:uppercase}
.crm-document-label>strong{font-size:14px;line-height:1.4}
.crm-document-label>small{color:#8a94a2;font-size:11px}
.crm-document-row label{display:grid;gap:6px;font-size:11px;font-weight:900;color:#667085;text-transform:uppercase}
.crm-document-row select,.crm-document-row textarea{width:100%;min-height:42px;border:1px solid #dce1e7;border-radius:9px;background:#fff;color:#111827;font:inherit;font-size:13px;text-transform:none}
.crm-document-row textarea{min-height:64px;padding:9px;resize:vertical}
.crm-document-file-links{display:flex;flex-wrap:wrap;gap:5px}
.crm-document-file-links a{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 7px;border-radius:7px;background:#eef3f8;color:#344054;font-size:10px;font-weight:800;text-decoration:none}
.crm-document-checklist>.primary-button{justify-self:start;margin-top:8px}
.crm-document-tools{display:grid;grid-template-columns:1.25fr .75fr;gap:14px;margin-top:18px;padding-top:18px;border-top:1px solid #edf0f3}
.crm-document-upload,.crm-document-custom{display:grid;gap:10px;padding:16px;border:1px solid #e1e5ea;border-radius:13px;background:#f8fafb}
.crm-document-upload h4,.crm-document-custom h4{margin:0 0 2px;font-size:17px}
.crm-document-upload label,.crm-document-custom label{display:grid;gap:6px;font-size:12px;font-weight:850}
.crm-document-upload input,.crm-document-upload select,.crm-document-custom input,.crm-document-custom select{width:100%;min-height:43px;border:1px solid #d7dce2;border-radius:9px;background:#fff;padding:9px 10px;font-size:14px}
.crm-document-upload small{color:#6b7280;line-height:1.5}
.crm-document-required{display:flex!important;grid-template-columns:auto 1fr;align-items:center;justify-content:flex-start}
.crm-document-required input{width:18px!important;min-height:18px!important}
.crm-bank-field[hidden]{display:none!important}

@media (max-width:1100px){
  .crm-profile-summary-v77{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crm-document-row{grid-template-columns:1fr 220px}
  .crm-document-row>label:last-child{grid-column:1/-1}
}
@media (max-width:760px){
  .crm-directory-entry .crm-directory-row{padding-right:12px;padding-bottom:50px}
  .crm-directory-drive-link{left:14px;right:auto;bottom:10px}
  .crm-profile-summary-v77{grid-template-columns:1fr 1fr}
  .crm-drive-record>header,.crm-document-heading{display:grid;grid-template-columns:1fr}
  .crm-drive-record-actions{justify-content:flex-start}
  .crm-document-progress{grid-template-columns:1fr auto}
  .crm-document-workspace,.crm-drive-record{padding:15px;border-radius:13px}
  .crm-document-row{grid-template-columns:1fr;padding:12px}
  .crm-document-row>label:last-child{grid-column:auto}
  .crm-document-tools{grid-template-columns:1fr}
  .crm-drive-subfolders{display:grid;grid-template-columns:1fr}
  .crm-drive-subfolders a{width:100%}
}
@media (max-width:480px){
  .crm-profile-summary-v77{grid-template-columns:1fr}
  .crm-document-heading>strong{white-space:normal;width:max-content;max-width:100%}
  .crm-document-file-links{display:grid;grid-template-columns:1fr}
  .crm-document-file-links a{width:100%}
}

/* V78 - Quy trình Báo giá -> CRM -> Chuẩn bị hồ sơ -> Đã mua */
.quote-crm-transfer{align-items:center;background:#f6f8fa;border:1px solid #dde3e8;border-radius:12px;display:flex;gap:16px;justify-content:space-between;margin:0 14px 16px;padding:13px 14px}
.quote-crm-transfer>div{display:grid;gap:3px;min-width:0}.quote-crm-transfer strong{font-size:14px}.quote-crm-transfer small{color:#687380;line-height:1.45}.quote-crm-transfer-button{background:#d71920!important;border:1px solid #d71920!important;border-radius:10px!important;color:#fff!important;flex:0 0 auto;font-size:13px;font-weight:800;min-height:40px;padding:0 16px;white-space:nowrap}.quote-crm-transfer-button:hover{background:#b9151b!important;border-color:#b9151b!important;color:#fff!important}
.crm-stage-header{margin-bottom:12px}.crm-flow-tabs{align-items:center;background:#fff;border:1px solid #e0e4e8;border-radius:15px;display:grid;gap:10px;grid-template-columns:1fr auto 1fr auto 1fr;margin:0 0 14px;padding:10px;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.crm-flow-tabs>a{align-items:center;border:1px solid transparent;border-radius:11px;color:#313941;display:flex;gap:12px;justify-content:space-between;min-height:52px;padding:9px 12px;text-decoration:none}.crm-flow-tabs>a:hover{background:#f7f8fa}.crm-flow-tabs>a.is-active{background:#17191c;color:#fff}.crm-flow-tabs>a span{align-items:center;display:flex;font-size:13px;font-weight:900;gap:8px}.crm-flow-tabs>a b{align-items:center;background:#eef1f3;border-radius:50%;color:#323a42;display:inline-flex;font-size:11px;height:25px;justify-content:center;width:25px}.crm-flow-tabs>a.is-active b{background:#d71920;color:#fff}.crm-flow-tabs>a strong{align-items:center;background:#f1f3f5;border-radius:999px;color:#20262b;display:inline-flex;font-size:12px;justify-content:center;min-width:31px;padding:5px 8px}.crm-flow-tabs>a.is-active strong{background:#fff;color:#17191c}.crm-flow-tabs>i{color:#9099a2;font-style:normal;font-weight:900}
.crm-stage-filter{margin-bottom:14px}.crm-stage-workspace{align-items:start}.crm-profile-summary-v78{grid-template-columns:repeat(4,minmax(0,1fr))}
.crm-stage-action{align-items:center;border:1px solid #dce2e7;border-left:4px solid #d71920;border-radius:14px;display:flex;gap:18px;justify-content:space-between;margin:16px 0;padding:17px 18px}.crm-stage-action>div{display:grid;gap:5px;min-width:0}.crm-stage-action h3,.crm-stage-action p{margin:0}.crm-stage-action p:last-child{color:#66717c;line-height:1.55}.crm-stage-action form{flex:0 0 auto;margin:0}.crm-stage-action .primary-button{white-space:nowrap}.crm-stage-action.is-bought{border-left-color:#18864b;background:#f6fbf8}.crm-stage-action.is-complete{border-left-color:#18864b;background:#f2faf5}.crm-stage-action.is-complete>a{flex:0 0 auto}
.crm-preparation-editor{margin-top:16px}.crm-document-workspace-v78{padding:18px}.crm-document-checklist-v78{display:grid;gap:12px}.crm-document-group{background:#f8fafb;border:1px solid #e1e5e9;border-radius:13px;overflow:hidden}.crm-document-group>summary{align-items:center;background:#f2f4f6;cursor:pointer;display:flex;font-size:13px;font-weight:900;gap:12px;justify-content:space-between;list-style:none;padding:13px 14px}.crm-document-group>summary::-webkit-details-marker{display:none}.crm-document-group>summary:before{content:'›';font-size:21px;line-height:1;transform:rotate(0deg);transition:transform .15s ease}.crm-document-group[open]>summary:before{transform:rotate(90deg)}.crm-document-group>summary span{flex:1}.crm-document-group>summary strong{background:#fff;border-radius:999px;color:#d71920;font-size:11px;padding:5px 8px}.crm-document-group-grid{display:grid;gap:10px;padding:12px}.crm-document-checklist-v78 .crm-document-row{background:#fff;margin:0}.crm-document-checklist-v78>.primary-button{justify-self:start;margin-top:4px}
.crm-bought-summary{align-items:center;background:#f7faf8;border:1px solid #cfe7d8;border-radius:14px;display:flex;gap:16px;justify-content:space-between;margin-top:16px;padding:18px}.crm-bought-summary h3,.crm-bought-summary p{margin:0}.crm-bought-summary>div{display:grid;gap:5px}
.crm-legacy-drive-section{margin-top:18px}.crm-legacy-drive-section>header{align-items:start;display:flex;justify-content:space-between}.crm-legacy-drive-section h2,.crm-legacy-drive-section p{margin:0}.crm-legacy-drive-section header>div{display:grid;gap:6px}.crm-legacy-drive-grid{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}.crm-legacy-drive-grid article{align-items:center;background:#f8fafb;border:1px solid #e1e5e9;border-radius:12px;display:grid;gap:10px;grid-template-columns:auto minmax(0,1fr);padding:13px}.crm-legacy-drive-grid article>span{font-size:25px}.crm-legacy-drive-grid article>div{display:grid;gap:3px;min-width:0}.crm-legacy-drive-grid strong,.crm-legacy-drive-grid small{overflow-wrap:anywhere}.crm-legacy-drive-grid small{color:#727d87}.crm-legacy-drive-grid a{background:#17191c;border-radius:9px;color:#fff;font-size:11px;font-weight:900;grid-column:1/-1;padding:8px 10px;text-align:center;text-decoration:none}.crm-legacy-drive-grid a:hover{background:#d71920}
.crm-stage-workspace .crm-directory-row{min-height:112px}.crm-stage-workspace .crm-list-main em{line-height:1.4}.crm-stage-workspace .crm-directory-drive-link{bottom:9px}

@media(max-width:1150px){.crm-profile-summary-v78{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-legacy-drive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.quote-crm-transfer{align-items:stretch;display:grid;margin:0 10px 14px}.quote-crm-transfer-button{width:100%}.crm-flow-tabs{grid-template-columns:1fr}.crm-flow-tabs>i{display:none}.crm-flow-tabs>a{min-height:48px}.crm-stage-action,.crm-bought-summary{align-items:stretch;display:grid}.crm-stage-action form,.crm-stage-action .primary-button,.crm-stage-action.is-complete>a,.crm-bought-summary>a{width:100%}.crm-document-workspace-v78{padding:14px}.crm-document-group-grid{padding:9px}.crm-legacy-drive-grid{grid-template-columns:1fr}}
@media(max-width:520px){.crm-profile-summary-v78{grid-template-columns:1fr}.crm-flow-tabs{padding:8px}.crm-document-group>summary{align-items:flex-start}.crm-stage-action{padding:14px}.crm-legacy-drive-section{padding:14px!important}}

/* V79 - Checklist hồ sơ gọn, cấu trúc Drive chuẩn và kho khách đã mua */
.crm-document-workspace-v79{display:grid;gap:16px}
.crm-missing-summary{border:1px solid;border-radius:14px;display:grid;gap:12px;padding:15px 16px}
.crm-missing-summary>div:first-child{align-items:center;display:flex;gap:12px}
.crm-missing-summary>div:first-child>span{align-items:center;border-radius:50%;display:inline-flex;flex:0 0 auto;font-size:16px;font-weight:950;height:34px;justify-content:center;width:34px}
.crm-missing-summary>div:first-child>div{display:grid;gap:3px}.crm-missing-summary strong{font-size:15px}.crm-missing-summary small{color:#66717c;line-height:1.45}
.crm-missing-summary.is-missing{background:#fff9ef;border-color:#f1cf88}.crm-missing-summary.is-missing>div:first-child>span{background:#f59e0b;color:#fff}
.crm-missing-summary.is-complete{background:#f2faf5;border-color:#b9dfc8}.crm-missing-summary.is-complete>div:first-child>span{background:#17864b;color:#fff}
.crm-missing-list{display:flex;flex-wrap:wrap;gap:7px}.crm-missing-list span{background:#fff;border:1px solid #efd49e;border-radius:999px;color:#7a5410;font-size:11px;font-weight:850;padding:6px 9px}
.crm-folder-map{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.crm-folder-map article{align-items:center;background:#f8fafb;border:1px solid #e1e5e9;border-left:4px solid #d7dce1;border-radius:12px;display:grid;gap:10px;grid-template-columns:auto minmax(0,1fr) auto;padding:12px}
.crm-folder-map article.is-missing{border-left-color:#e3a31a}.crm-folder-map article.is-complete{border-left-color:#18864b}
.crm-folder-map article>span{font-size:22px}.crm-folder-map article>div{display:grid;gap:3px;min-width:0}.crm-folder-map strong{font-size:13px;line-height:1.35}.crm-folder-map small{color:#707b85;font-size:11px}.crm-folder-map a{background:#fff;border:1px solid #d9dee4;border-radius:8px;color:#27313a;font-size:10px;font-weight:900;padding:7px 8px;text-decoration:none;white-space:nowrap}.crm-folder-map a:hover{border-color:#d71920;color:#d71920}
.crm-document-group-toolbar{align-items:center;background:#fff;border-bottom:1px solid #e8ebef;display:flex;gap:12px;justify-content:space-between;padding:9px 12px}.crm-document-group-toolbar span{color:#68737d;font-size:11px;font-weight:800}.crm-document-group-toolbar a{color:#137333;font-size:11px;font-weight:900;text-decoration:none}.crm-document-group-toolbar a:hover{text-decoration:underline}
.crm-document-checklist-v79 .crm-document-row{align-items:center;grid-template-columns:minmax(0,1fr) minmax(175px,220px)}
.crm-document-checklist-v79 .crm-document-row>label:last-child{grid-column:auto}.crm-document-checklist-v79 .crm-document-label>small{color:#a32329;font-weight:750}
.crm-document-savebar{align-items:center;background:#f7f8fa;border:1px solid #e2e5e9;border-radius:12px;display:flex;gap:14px;justify-content:space-between;padding:12px 14px}.crm-document-savebar span{color:#68727c;font-size:12px;line-height:1.45}.crm-document-savebar .primary-button{flex:0 0 auto;white-space:nowrap}

.crm-bought-drive-catalog{margin-bottom:16px}
.crm-bought-drive-header{align-items:flex-start;display:flex;gap:18px;justify-content:space-between}.crm-bought-drive-header>div{display:grid;gap:5px}.crm-bought-drive-header h2,.crm-bought-drive-header p{margin:0}.crm-bought-drive-header p:last-child{color:#68727c;line-height:1.5}
.crm-bought-drive-stats{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0}.crm-bought-drive-stats span{background:#f7f8fa;border:1px solid #e2e5e9;border-radius:12px;display:grid;gap:5px;padding:12px 14px}.crm-bought-drive-stats small{color:#707982;font-size:11px;font-weight:850;text-transform:uppercase}.crm-bought-drive-stats strong{font-size:25px}
.crm-bought-drive-grid{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
.crm-bought-drive-grid article{background:#fff;border:1px solid #e0e4e8;border-left:4px solid #929ba4;border-radius:13px;display:grid;gap:12px;padding:14px}.crm-bought-drive-grid article.is-linked{border-left-color:#17864b}.crm-bought-drive-grid article.is-legacy{border-left-color:#e0a000}
.crm-bought-drive-card-head{align-items:center;display:flex;gap:9px;justify-content:space-between}.crm-bought-drive-card-head span{font-size:25px}.crm-bought-drive-card-head em{background:#f1f3f5;border-radius:999px;color:#5e6872;font-size:10px;font-style:normal;font-weight:900;padding:5px 8px}.crm-bought-drive-grid article.is-linked .crm-bought-drive-card-head em{background:#eaf7ef;color:#157443}.crm-bought-drive-grid article.is-legacy .crm-bought-drive-card-head em{background:#fff5dc;color:#7a5807}
.crm-bought-drive-card-body{display:grid;gap:4px;min-width:0}.crm-bought-drive-card-body strong{font-size:15px;overflow-wrap:anywhere}.crm-bought-drive-card-body small{color:#6e7882;line-height:1.45;overflow-wrap:anywhere}
.crm-bought-drive-actions{display:flex;flex-wrap:wrap;gap:7px}.crm-bought-drive-actions form{margin:0}.crm-bought-drive-actions .secondary-button{font-size:11px;min-height:36px;padding:8px 10px}

@media(max-width:1180px){.crm-bought-drive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-folder-map{grid-template-columns:1fr}}
@media(max-width:760px){
  .crm-document-checklist-v79 .crm-document-row{grid-template-columns:1fr}
  .crm-document-group-toolbar,.crm-document-savebar,.crm-bought-drive-header{align-items:stretch;display:grid}
  .crm-document-savebar .primary-button,.crm-bought-drive-header>a{width:100%}
  .crm-bought-drive-stats{grid-template-columns:1fr 1fr}.crm-bought-drive-stats span:first-child{grid-column:1/-1}
  .crm-bought-drive-grid{grid-template-columns:1fr}.crm-bought-drive-actions{display:grid;grid-template-columns:1fr}.crm-bought-drive-actions a,.crm-bought-drive-actions form,.crm-bought-drive-actions button{width:100%}
  .crm-folder-map article{grid-template-columns:auto minmax(0,1fr)}.crm-folder-map article>a{grid-column:1/-1;text-align:center;width:100%}
}
@media(max-width:460px){.crm-bought-drive-stats{grid-template-columns:1fr}.crm-bought-drive-stats span:first-child{grid-column:auto}.crm-missing-summary{padding:13px}.crm-missing-list{display:grid;grid-template-columns:1fr}.crm-missing-list span{border-radius:9px}}


/* V80 - checklist hồ sơ theo lưới Excel */
.quote-crm-transfer-compact{display:flex;justify-content:flex-end;padding-top:12px}
.crm-document-excel-wrap{overflow:auto;border:1px solid #dfe3e8;border-radius:14px;background:#fff}
.crm-document-excel-grid{width:100%;min-width:1050px;border-collapse:collapse;font-size:14px}
.crm-document-excel-grid th{position:sticky;top:0;z-index:1;background:#17191c;color:#fff;text-align:left;padding:12px;border-right:1px solid #35383d;white-space:nowrap}
.crm-document-excel-grid td{padding:11px 12px;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;vertical-align:top}
.crm-document-excel-grid tbody tr.is-missing,.crm-document-excel-grid tbody tr.is-requested{background:#fff6f6}
.crm-document-excel-grid tbody tr.is-received,.crm-document-excel-grid tbody tr.is-verified{background:#f2fbf5}
.crm-document-excel-grid td:nth-child(1){width:54px;text-align:center;font-weight:800}
.crm-document-excel-grid td:nth-child(2){width:210px}
.crm-document-excel-grid td:nth-child(3){min-width:330px}
.crm-document-excel-grid td:nth-child(4){width:190px}
.crm-document-excel-grid select{width:100%;min-width:165px}
.crm-required-badge{display:inline-block;margin:0 8px 5px 0;padding:3px 7px;border-radius:999px;background:#fee2e2;color:#b91c1c;font-size:11px;font-weight:800;text-transform:uppercase}
.crm-document-file-links{display:grid;gap:5px}.crm-document-file-links a,.crm-folder-link{font-weight:700;color:#d71920;text-decoration:none}.crm-file-missing{color:#b91c1c;font-weight:700}
@media(max-width:720px){.crm-document-excel-grid{min-width:920px}.crm-document-workspace{padding:14px}.quote-crm-transfer-compact{justify-content:stretch}.quote-crm-transfer-compact button{width:100%}}

/* V81 - customer purchased CRM list + official printable forms */
.customer-official-forms-panel{background:#fff;border:1px solid #e1e5e9;border-radius:16px;padding:20px;margin:18px 0;box-shadow:0 10px 30px rgba(20,25,30,.05)}
.customer-official-forms-panel h3{margin:4px 0 6px;font-size:22px}.customer-official-forms-panel p{margin:0 0 16px;color:#68717c}
.customer-official-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.customer-official-form-grid article{border:1px solid #e2e6ea;border-radius:12px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.customer-official-form-grid article div{display:flex;gap:8px;flex-wrap:wrap}.customer-official-form-grid .primary-button,.customer-official-form-grid .secondary-button{padding:9px 12px;font-size:13px;white-space:nowrap}
@media(max-width:800px){.customer-official-form-grid{grid-template-columns:1fr}.customer-official-form-grid article{align-items:flex-start;flex-direction:column}}


/* V82 - visible customer forms and CRM-style bought customer list */
.crm-bought-drive-strip{align-items:center;background:#fff;border:1px solid #e1e5e9;border-left:4px solid #d71920;border-radius:14px;display:flex;gap:18px;justify-content:space-between;margin:0 0 14px;padding:15px 18px}
.crm-bought-drive-strip>div{align-items:baseline;display:flex;flex-wrap:wrap;gap:8px 14px}
.crm-bought-drive-strip .eyebrow{flex-basis:100%;margin:0}
.crm-bought-drive-strip strong{font-size:20px}.crm-bought-drive-strip span{color:#69727c;font-size:13px}
.crm-directory-entry.is-drive-only .crm-directory-row{background:#f9fafb;border-style:dashed}
.crm-directory-row.is-drive-only:hover{background:#fff6f6;border-color:#d71920}
.customer-form-library{margin-top:16px;padding:20px}
.customer-form-library-head{align-items:flex-start;display:flex;gap:16px;justify-content:space-between;margin-bottom:14px}
.customer-form-library-head h3{font-size:22px;margin:3px 0 5px}.customer-form-library-head p{margin:0}.customer-form-library-head>span{background:#15181c;border-radius:999px;color:#fff;font-size:12px;font-weight:800;padding:7px 11px;white-space:nowrap}
.customer-form-card-grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.customer-form-card-grid article{align-items:center;background:#f8f9fa;border:1px solid #e0e4e8;border-radius:12px;display:grid;gap:12px;grid-template-columns:42px minmax(0,1fr);padding:14px}
.customer-form-card-icon{align-items:center;background:#fff;border:1px solid #d8dde2;border-radius:10px;display:flex;font-size:22px;height:40px;justify-content:center;width:40px}
.customer-form-card-grid article strong{display:block;font-size:15px;line-height:1.35}.customer-form-card-grid article small{color:#737c85;display:block;margin-top:4px}
.customer-form-card-actions{display:flex;gap:8px;grid-column:1/-1}.customer-form-card-actions a{align-items:center;display:inline-flex;justify-content:center;min-height:40px;padding:8px 12px}
@media(max-width:900px){.customer-form-card-grid{grid-template-columns:1fr}.crm-bought-drive-strip{align-items:stretch;flex-direction:column}.crm-bought-drive-strip>a{width:100%}}
@media(max-width:600px){.customer-form-library{padding:14px}.customer-form-library-head{display:grid}.customer-form-card-actions{display:grid}.customer-form-card-actions a{width:100%}}
/* V84 - Đưa nút Chuyển CRM xuống cuối biểu mẫu báo giá */
.quote-builder-actions-v12 + .quote-crm-transfer-compact{margin:0 10px 10px;padding-top:0}


/* V86 - add-customer popup and compact prepare-profile action. */
.crm-add-dialog{
  width:min(860px,calc(100vw - 32px));
  max-width:860px;
}
.crm-add-dialog-shell{height:min(760px,calc(100dvh - 32px))}
.crm-add-dialog-body{
  flex:1;
  min-height:0;
  padding:18px 20px 22px;
  overflow:auto;
  overscroll-behavior:contain;
}
.crm-add-dialog .is-crm-add-dialog-editor{
  margin:0;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.crm-add-dialog .is-crm-add-dialog-editor>summary{display:none}
.crm-add-dialog .is-crm-add-dialog-editor .crm-profile-form{padding:0}
.crm-profile-panel.is-crm-add-dialog-source{visibility:hidden}

@media(max-width:760px){
  .crm-add-dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 18px)}
  .crm-add-dialog-shell{height:calc(100dvh - 18px);max-height:calc(100dvh - 18px)}
  .crm-add-dialog-body{padding:14px 14px 18px}
  .crm-profile-prepare-button{font-size:10px;padding:8px 10px}
}

/* V122 - Enlarge vehicle imagery on every product detail page. */
.product-official-hero {
  gap: clamp(28px, 3vw, 48px);
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  min-height: 680px;
  padding: 72px clamp(40px, 5vw, 84px);
}

.product-official-hero > img {
  display: block;
  height: clamp(430px, 39vw, 560px);
  justify-self: stretch;
  max-height: none;
  object-fit: contain;
  object-position: center;
  padding: 0;
  width: 100%;
}

.variant-showcase {
  gap: clamp(24px, 2.5vw, 36px);
}

.variant-card-media {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 340px;
  padding: 10px 14px;
}

.variant-card-media img {
  height: 320px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  width: 100%;
}

@media (max-width: 1180px) {
  .product-official-hero {
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    min-height: 620px;
  }

  .product-official-hero > img {
    height: clamp(380px, 45vw, 500px);
    max-height: none;
    width: 100%;
  }

  .variant-card-media {
    min-height: 300px;
  }

  .variant-card-media img {
    height: 285px;
    padding: 8px;
  }
}

@media (max-width: 980px) {
  .product-official-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 58px 36px 48px;
  }

  .product-official-hero > img {
    height: clamp(360px, 58vw, 500px);
    max-height: none;
    width: 100%;
  }

  .variant-card-media {
    min-height: 290px;
  }

  .variant-card-media img {
    height: 275px;
  }
}

@media (max-width: 760px) {
  .product-official-hero {
    gap: 18px;
    padding: 44px 20px 34px;
  }

  .product-official-hero > img {
    height: clamp(300px, 78vw, 410px);
    max-height: none;
  }

  .variant-card-media {
    min-height: 260px;
    padding: 8px;
  }

  .variant-card-media img {
    height: 250px;
    padding: 6px;
  }
}

@media (max-width: 560px) {
  .product-official-hero > img {
    height: clamp(270px, 82vw, 350px);
    max-height: none;
  }

  .variant-card-media {
    min-height: 240px;
  }

  .variant-card-media img {
    height: 230px;
  }
}

@media (max-width: 390px) {
  .product-official-hero > img {
    height: 270px;
  }

  .variant-card-media {
    min-height: 220px;
  }

  .variant-card-media img {
    height: 210px;
  }
}

/* V126 - tải hồ sơ trực tiếp tại từng dòng checklist */
.crm-document-excel-grid.crm-document-excel-grid-v126{min-width:1120px}
.crm-document-excel-grid-v126 td:nth-child(2){width:205px}
.crm-document-excel-grid-v126 td:nth-child(3){min-width:470px}
.crm-document-excel-grid-v126 td:nth-child(4){width:205px}
.crm-document-excel-grid-v126 td:nth-child(5){min-width:270px}
.crm-document-title-v126{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.crm-document-title-v126>strong{font-size:14px;color:#16181d}
.crm-document-count-v126{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:850;white-space:nowrap}
.crm-document-count-v126.is-missing{background:#fee2e2;color:#b42318}
.crm-document-count-v126.is-complete{background:#dcfae6;color:#067647}
.crm-document-inline-upload-v126{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:9px}
.crm-document-file-picker-v126{display:grid;gap:5px;margin:0;font-size:11px;font-weight:850;color:#475467}
.crm-document-file-picker-v126 input[type=file]{width:100%;min-height:40px;padding:5px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;color:#344054;font-size:11px}
.crm-document-file-picker-v126 input[type=file]::file-selector-button{margin-right:8px;padding:7px 10px;border:0;border-radius:7px;background:#eef2f6;color:#101828;font-weight:800;cursor:pointer}
.crm-document-inline-upload-v126 button{min-height:40px;padding:8px 13px;border:1px solid #17191c;border-radius:9px;background:#17191c;color:#fff;font-size:12px;font-weight:850;cursor:pointer;white-space:nowrap}
.crm-document-inline-upload-v126 button:hover{background:#2b2f35}
.crm-document-status-lock-v126{display:block;margin-top:6px;color:#b42318;font-size:10px;line-height:1.35;font-weight:750}
.crm-document-tools.crm-document-tools-v126{grid-template-columns:1fr}
.crm-document-tools-v126 .crm-document-custom{width:100%;max-width:none}
@media(max-width:720px){.crm-document-excel-grid.crm-document-excel-grid-v126{min-width:980px}.crm-document-inline-upload-v126{grid-template-columns:1fr}.crm-document-inline-upload-v126 button{width:100%}}



/* V129 - Checklist gọn, trạng thái bằng màu và dấu tích bắt buộc */
.crm-document-excel-grid.crm-document-excel-grid-v129{min-width:820px}
.crm-document-excel-grid-v129 th:nth-child(1),.crm-document-excel-grid-v129 td:nth-child(1){width:56px;text-align:center}
.crm-document-excel-grid-v129 th:nth-child(2),.crm-document-excel-grid-v129 td:nth-child(2){min-width:500px}
.crm-document-excel-grid-v129 th:nth-child(3),.crm-document-excel-grid-v129 td:nth-child(3){min-width:270px}
.crm-document-excel-grid-v129 tbody tr{transition:background-color .15s ease,border-color .15s ease}
.crm-document-excel-grid-v129 tbody tr.is-missing{background:#fff4f4}
.crm-document-excel-grid-v129 tbody tr.is-partial{background:#fff8e8}
.crm-document-excel-grid-v129 tbody tr.is-complete{background:#effaf3}
.crm-document-excel-grid-v129 tbody tr.is-optional{background:#f4f6f8;color:#68727c}
.crm-document-row-main-v129{align-items:flex-start;display:grid;gap:10px;grid-template-columns:28px minmax(0,1fr)}
.crm-document-content-v129{display:grid;gap:7px;min-width:0}
.crm-document-required-toggle-v129{align-items:center;cursor:pointer;display:inline-flex;margin:1px 0 0;padding:0}
.crm-document-required-toggle-v129 input{position:absolute;opacity:0;pointer-events:none}
.crm-document-required-toggle-v129 span{align-items:center;background:#fff;border:2px solid #c9ced5;border-radius:7px;color:transparent;display:inline-flex;font-size:14px;font-weight:950;height:24px;justify-content:center;line-height:1;transition:.15s ease;width:24px}
.crm-document-required-toggle-v129 input:checked+span{background:#17864b;border-color:#17864b;color:#fff;box-shadow:0 0 0 3px rgba(23,134,75,.11)}
.crm-document-required-toggle-v129:hover span{border-color:#17864b}
.crm-document-title-v129{min-height:24px}
.crm-document-title-v129>strong{font-size:14px;line-height:1.35}
.crm-document-state-v129{border-radius:999px;display:inline-flex;font-size:10px;font-weight:900;line-height:1;padding:5px 8px;white-space:nowrap}
.crm-document-state-v129.is-missing{background:#fee2e2;color:#b42318}
.crm-document-state-v129.is-partial{background:#ffefc2;color:#8a5a00}
.crm-document-state-v129.is-complete{background:#d9f7e5;color:#067647}
.crm-document-state-v129.is-optional{background:#e7eaee;color:#5d6670}
.crm-document-inline-upload-v129{margin-top:0}
.crm-document-file-picker-v129{gap:0}
.crm-document-file-picker-v129 input[type=file]{min-height:36px;padding:4px}
.crm-document-file-picker-v129 input[type=file]::file-selector-button{padding:6px 9px}
.crm-document-inline-upload-v129 button{min-height:36px;padding:7px 12px}
.crm-document-excel-grid-v129 .crm-document-file-links{gap:5px}
.crm-document-excel-grid-v129 .crm-document-file-links a{font-size:10px;padding:6px 8px}
@media(max-width:720px){.crm-document-excel-grid.crm-document-excel-grid-v129{min-width:760px}.crm-document-excel-grid-v129 th:nth-child(2),.crm-document-excel-grid-v129 td:nth-child(2){min-width:430px}}

/* V131 - Checklist hồ sơ: cột giấy tờ rộng, toàn bộ thao tác trên một dòng */
.crm-document-excel-grid.crm-document-excel-grid-v129{
  min-width:1040px;
  table-layout:fixed;
}
.crm-document-excel-grid-v129 th:nth-child(1),
.crm-document-excel-grid-v129 td:nth-child(1){
  width:56px;
}
.crm-document-excel-grid-v129 th:nth-child(2),
.crm-document-excel-grid-v129 td:nth-child(2){
  width:auto;
  min-width:0;
}
.crm-document-excel-grid-v129 th:nth-child(3),
.crm-document-excel-grid-v129 td:nth-child(3){
  width:235px;
  min-width:235px;
  max-width:235px;
}
.crm-document-row-main-v129{
  align-items:center;
}
.crm-document-content-v129{
  align-items:center;
  display:grid;
  gap:10px;
  grid-template-columns:minmax(235px,.8fr) minmax(360px,1.2fr);
  min-width:0;
}
.crm-document-title-v126.crm-document-title-v129{
  flex-wrap:nowrap;
  justify-content:flex-start;
  min-width:0;
  white-space:nowrap;
}
.crm-document-title-v129>strong{
  flex:0 0 auto;
  white-space:nowrap;
}
.crm-document-title-v129 .crm-document-state-v129{
  flex:0 0 auto;
}
.crm-document-inline-upload-v126.crm-document-inline-upload-v129{
  align-items:center;
  grid-template-columns:minmax(250px,1fr) auto;
  margin:0;
  min-width:0;
}
.crm-document-file-picker-v129,
.crm-document-file-picker-v129 input[type=file]{
  min-width:0;
}
.crm-document-excel-grid-v129 .crm-document-file-links{
  min-width:0;
}
.crm-document-excel-grid-v129 .crm-document-file-links a{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.crm-document-excel-grid-v129 .crm-file-missing{
  white-space:nowrap;
}
@media(max-width:720px){
  .crm-document-excel-grid.crm-document-excel-grid-v129{min-width:1040px}
}


/* V133 - Checklist chỉ hiển thị số file và thu gọn chiều cao từng dòng */
.crm-document-excel-grid.crm-document-excel-grid-v129{
  min-width:960px;
}
.crm-document-excel-grid-v129 th{
  padding:8px 9px;
  font-size:12px;
}
.crm-document-excel-grid-v129 td{
  padding:6px 8px;
  line-height:1.2;
}
.crm-document-excel-grid-v129 th:nth-child(3),
.crm-document-excel-grid-v129 td:nth-child(3){
  width:205px;
  min-width:205px;
  max-width:205px;
}
.crm-document-row-main-v129{
  gap:7px;
  grid-template-columns:22px minmax(0,1fr);
}
.crm-document-required-toggle-v129{
  margin:0;
}
.crm-document-required-toggle-v129 span{
  border-width:1.5px;
  border-radius:6px;
  font-size:12px;
  height:20px;
  width:20px;
}
.crm-document-required-toggle-v129 input:checked+span{
  box-shadow:0 0 0 2px rgba(23,134,75,.10);
}
.crm-document-content-v129{
  gap:7px;
  grid-template-columns:minmax(190px,.68fr) minmax(315px,1.32fr);
}
.crm-document-title-v129{
  min-height:20px;
}
.crm-document-title-v129>strong{
  font-size:12.5px;
  line-height:1.15;
}
.crm-document-state-v129{
  align-items:center;
  justify-content:center;
  min-width:30px;
  padding:3px 6px;
  font-size:9px;
  line-height:1;
}
.crm-document-file-picker-v129 input[type=file]{
  min-height:30px;
  height:30px;
  padding:2px 4px;
  font-size:10px;
}
.crm-document-file-picker-v129 input[type=file]::file-selector-button{
  margin-right:6px;
  padding:4px 7px;
  font-size:10px;
}
.crm-document-inline-upload-v129 button{
  min-height:30px;
  height:30px;
  padding:5px 9px;
  font-size:10px;
}
.crm-document-inline-upload-v126.crm-document-inline-upload-v129{
  grid-template-columns:minmax(230px,1fr) auto;
}
.crm-document-excel-grid-v129 .crm-document-file-links{
  gap:3px;
}
.crm-document-excel-grid-v129 .crm-document-file-links a{
  padding:3px 5px;
  font-size:9px;
  line-height:1.15;
}
.crm-file-empty-v133{
  color:#9aa1aa;
  display:inline-block;
  font-size:12px;
  font-weight:800;
}
.crm-document-savebar{
  padding:8px 11px;
}
.crm-document-savebar span{
  font-size:10px;
  line-height:1.3;
}
@media(max-width:720px){
  .crm-document-excel-grid.crm-document-excel-grid-v129{min-width:960px}
}


/* V137 - Một nút tải toàn bộ hồ sơ + giao diện ưu tiên điện thoại */
.crm-document-bulk-upload-v137{display:grid;gap:12px}
.crm-document-excel-grid.crm-document-excel-grid-v137{min-width:760px;table-layout:fixed}
.crm-document-excel-grid-v137 th:nth-child(1),.crm-document-excel-grid-v137 td:nth-child(1){width:54px}
.crm-document-excel-grid-v137 th:nth-child(2),.crm-document-excel-grid-v137 td:nth-child(2){width:68%;min-width:0}
.crm-document-excel-grid-v137 th:nth-child(3),.crm-document-excel-grid-v137 td:nth-child(3){width:32%;min-width:0}
.crm-document-row-main-v137{align-items:center;grid-template-columns:28px minmax(0,1fr)}
.crm-document-content-v137{align-items:center;display:grid;gap:8px;grid-template-columns:minmax(160px,.72fr) minmax(260px,1.28fr)}
.crm-document-title-v137{align-items:center;display:flex;flex-wrap:nowrap;gap:8px;justify-content:flex-start;min-width:0}
.crm-document-title-v137>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-document-file-picker-v137{align-items:center;display:grid;gap:0;grid-template-columns:auto minmax(0,1fr);min-width:0}
.crm-document-file-picker-label-v137{color:#667085;font-size:10px;font-weight:850;margin-right:7px;white-space:nowrap}
.crm-document-file-picker-v137 input[type=file]{min-width:0;width:100%}
.crm-document-excel-grid-v137 tr.has-selected-files-v137{box-shadow:inset 4px 0 0 #147a43}
.crm-document-bulk-action-v137{align-items:center;background:#fff;border:1px solid #d8dde4;border-radius:14px;display:flex;gap:16px;justify-content:space-between;padding:12px 14px;position:relative;z-index:3}
.crm-document-bulk-status-v137{display:grid;gap:3px;min-width:0}
.crm-document-bulk-status-v137 strong{color:#17191c;font-size:14px}
.crm-document-bulk-status-v137 small{color:#697586;font-size:11px;line-height:1.35}
.crm-document-bulk-submit-v137{min-height:44px;min-width:230px;white-space:nowrap}
.crm-document-bulk-submit-v137:disabled{cursor:not-allowed;opacity:.48}
.crm-document-savebar-v137{padding:9px 12px}

@media(max-width:720px){
  .crm-document-workspace-v134{padding:0;background:transparent;border:0;box-shadow:none}
  .crm-document-excel-wrap-v137{background:transparent;border:0;border-radius:0;overflow:visible}
  .crm-document-excel-grid.crm-document-excel-grid-v137{border-collapse:separate;border-spacing:0;display:block;min-width:0!important;width:100%}
  .crm-document-excel-grid-v137 thead{display:none}
  .crm-document-excel-grid-v137 tbody{display:grid;gap:10px;width:100%}
  .crm-document-excel-grid-v137 tbody tr{border:1px solid #dfe3e8;border-radius:14px;display:grid;grid-template-columns:42px minmax(0,1fr);overflow:hidden;padding:0;width:100%}
  .crm-document-excel-grid-v137 tbody tr.is-missing{border-color:#f3c5c5}
  .crm-document-excel-grid-v137 tbody tr.is-partial{border-color:#efd17e}
  .crm-document-excel-grid-v137 tbody tr.is-complete{border-color:#9ed8b7}
  .crm-document-excel-grid-v137 tbody tr.is-optional{border-color:#d7dce2}
  .crm-document-excel-grid-v137 td{border:0!important;display:block;min-width:0!important;padding:10px!important;width:auto!important}
  .crm-document-excel-grid-v137 td:nth-child(1){align-items:flex-start;background:rgba(0,0,0,.035);display:flex;font-size:13px;grid-column:1;grid-row:1 / span 2;justify-content:center;padding-top:16px!important}
  .crm-document-excel-grid-v137 td:nth-child(2){grid-column:2;grid-row:1;padding-bottom:8px!important}
  .crm-document-excel-grid-v137 td:nth-child(3){border-top:1px solid rgba(17,24,39,.08)!important;grid-column:2;grid-row:2;padding-top:8px!important}
  .crm-document-row-main-v137{align-items:flex-start;gap:9px;grid-template-columns:30px minmax(0,1fr)}
  .crm-document-required-toggle-v129 span{height:27px;width:27px}
  .crm-document-content-v137{display:grid;gap:9px;grid-template-columns:1fr}
  .crm-document-title-v137{justify-content:space-between}
  .crm-document-title-v137>strong{font-size:14px;overflow:visible;text-overflow:clip;white-space:normal}
  .crm-document-state-v129{font-size:11px;padding:5px 8px}
  .crm-document-file-picker-v137{display:grid;gap:6px;grid-template-columns:1fr}
  .crm-document-file-picker-label-v137{font-size:11px;margin:0}
  .crm-document-file-picker-v137 input[type=file]{background:#fff;border:1px solid #cfd5dd;border-radius:10px;font-size:13px;min-height:50px;padding:6px;width:100%}
  .crm-document-file-picker-v137 input[type=file]::file-selector-button{font-size:13px;margin-right:8px;min-height:36px;padding:8px 12px}
  .crm-document-excel-grid-v137 .crm-document-file-links{display:flex;flex-wrap:wrap;gap:6px}
  .crm-document-excel-grid-v137 .crm-document-file-links a{font-size:11px;max-width:100%;overflow:hidden;padding:7px 9px;text-overflow:ellipsis;white-space:nowrap}
  .crm-document-bulk-action-v137{bottom:8px;box-shadow:0 10px 28px rgba(16,24,40,.18);display:grid;gap:9px;padding:10px;position:sticky}
  .crm-document-bulk-status-v137 small{display:none}
  .crm-document-bulk-submit-v137{font-size:14px;min-height:50px;min-width:0;width:100%}
  .crm-document-savebar-v137{margin-top:2px}
  .crm-document-savebar-v137 span{font-size:10px}
  .crm-document-tools-v126{margin-top:12px}
}


/* V139: purchased-customer contract/delivery dates and red delivery stamp. */
.crm-profile-identity-v139{min-width:0}
.crm-profile-title-line-v139{align-items:center;display:flex;flex-wrap:wrap;gap:10px 14px}
.crm-profile-title-line-v139 h2{margin:4px 0 5px}
.crm-delivered-stamp-v139{border:2px solid #d71920;border-radius:4px;color:#d71920;display:inline-flex;font-size:11px;font-weight:1000;letter-spacing:.1em;line-height:1;padding:6px 9px;text-transform:uppercase;transform:rotate(-2deg);white-space:nowrap}
.crm-profile-dates-v139{align-items:center;display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:1px}
.crm-profile-dates-v139 small{color:#747c87;display:inline-flex;gap:5px}
.crm-profile-dates-v139 strong{color:#353b43;font-weight:900}
@media(max-width:780px){.crm-profile-title-line-v139{align-items:flex-start;display:grid;gap:5px}.crm-delivered-stamp-v139{justify-self:start}.crm-profile-dates-v139{align-items:flex-start;display:grid;gap:4px}}


/* V143: approved compact overlay stamp — circle underneath, rectangular label above. */
.crm-customer-round-stamp-v140{
  --stamp-size:48px;
  --stamp-ink:#5c6570;
  align-items:center;
  aspect-ratio:1;
  background:
    radial-gradient(circle at 28% 24%,rgba(255,255,255,.92) 0 13%,transparent 31%),
    color-mix(in srgb,var(--stamp-ink) 6%,#fff);
  border:2px solid var(--stamp-ink);
  border-radius:50%;
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 3px var(--stamp-ink),
    0 2px 7px rgba(15,23,42,.11);
  color:var(--stamp-ink);
  display:inline-flex;
  flex:0 0 var(--stamp-size);
  height:var(--stamp-size);
  justify-content:center;
  margin-inline:calc(var(--stamp-size) * .16);
  overflow:visible;
  position:relative;
  transform:rotate(-4deg);
  transform-origin:center;
  width:var(--stamp-size);
}
.crm-customer-round-stamp-v140::before,
.crm-customer-round-stamp-v140::after{
  color:var(--stamp-ink);
  font-family:Arial,"Helvetica Neue",sans-serif;
  font-size:calc(var(--stamp-size) * .115);
  font-weight:900;
  left:50%;
  letter-spacing:-.02em;
  line-height:1;
  opacity:.88;
  pointer-events:none;
  position:absolute;
  text-align:center;
  text-transform:uppercase;
  transform:translateX(-50%);
  white-space:nowrap;
  z-index:1;
}
.crm-customer-round-stamp-v140::before{
  content:"MITSUBISHI";
  top:calc(var(--stamp-size) * .13);
}
.crm-customer-round-stamp-v140::after{
  content:"CRM • ★ •";
  bottom:calc(var(--stamp-size) * .12);
  font-size:calc(var(--stamp-size) * .10);
}
.crm-customer-round-stamp-v140 > span,
.crm-customer-round-stamp-v140 > strong{
  align-items:center;
  background:#fff;
  border:2px solid var(--stamp-ink);
  border-radius:4px;
  box-shadow:0 1px 2px rgba(15,23,42,.08);
  color:var(--stamp-ink);
  display:flex;
  font-family:Arial,"Helvetica Neue",sans-serif;
  font-size:calc(var(--stamp-size) * .31);
  font-weight:1000;
  height:calc(var(--stamp-size) * .47);
  justify-content:center;
  left:50%;
  letter-spacing:.015em;
  line-height:1;
  min-width:calc(var(--stamp-size) * 1.34);
  padding:0 calc(var(--stamp-size) * .10);
  position:absolute;
  text-align:center;
  text-shadow:.25px .25px 0 currentColor;
  text-transform:uppercase;
  top:50%;
  transform:translate(-50%,-50%) rotate(-4deg);
  transform-origin:center;
  white-space:nowrap;
  z-index:3;
}
.crm-customer-round-stamp-v140.is-hot{--stamp-ink:#b5121b}
.crm-customer-round-stamp-v140.is-warm{--stamp-ink:#b56700}
.crm-customer-round-stamp-v140.is-cool{--stamp-ink:#24549a}
.crm-customer-round-stamp-v140.is-stock{--stamp-ink:#41484f}
.crm-customer-round-stamp-v140.is-delivered{
  --stamp-size:56px;
  --stamp-ink:#b5121b;
  margin-inline:calc(var(--stamp-size) * .22);
  transform:rotate(-5deg);
}
.crm-customer-round-stamp-v140.is-delivered > span,
.crm-customer-round-stamp-v140.is-delivered > strong{
  font-size:calc(var(--stamp-size) * .205);
  min-width:calc(var(--stamp-size) * 1.58);
  padding-inline:calc(var(--stamp-size) * .09);
}
.crm-customer-round-stamp-v140.is-delivered::before{content:"MITSUBISHI"}
.crm-customer-round-stamp-v140.is-delivered::after{content:"ĐÃ BÀN GIAO"}
.crm-customer-round-stamp-v140:hover{filter:contrast(1.04) saturate(1.04)}
@media(max-width:780px){
  .crm-profile-title-line-v139{align-items:center;display:flex;flex-wrap:wrap;gap:6px 8px}
  .crm-customer-round-stamp-v140{
    --stamp-size:42px;
    margin-inline:7px;
  }
  .crm-customer-round-stamp-v140.is-delivered{
    --stamp-size:48px;
    margin-inline:9px;
  }
}

/* V145: remove care-stage text before customer names in all three CRM directories,
   and replace the broken multi-layer stamps with one deterministic label layer. */
.crm-directory-row-no-badges-v145{
  grid-template-columns:minmax(0,1fr) 72px!important;
  padding-left:14px!important;
}

/* The old stamp classes are no longer emitted by admin.php. Keep them suppressed
   inside the profile title so stale HTML cannot create a second/overlapping mark. */
.crm-profile-title-line-v139>.crm-customer-round-stamp-v140,
.crm-profile-title-line-v139>.crm-delivered-stamp-v139{
  display:none!important;
}

.crm-customer-stamp-v145{
  --stamp-size:50px;
  --stamp-ink:#5c6570;
  align-items:center;
  background:#fff;
  border:2px solid var(--stamp-ink);
  border-radius:50%;
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 3px var(--stamp-ink),
    0 2px 7px rgba(15,23,42,.12);
  box-sizing:border-box;
  color:var(--stamp-ink);
  display:inline-flex;
  flex:0 0 var(--stamp-size);
  height:var(--stamp-size);
  justify-content:center;
  margin:2px 16px 2px 12px;
  overflow:visible;
  position:relative;
  transform:rotate(-3deg);
  transform-origin:center;
  width:var(--stamp-size);
  writing-mode:horizontal-tb!important;
  isolation:isolate;
}
.crm-customer-stamp-v145::before,
.crm-customer-stamp-v145::after{
  color:var(--stamp-ink);
  display:block;
  font-family:Arial,"Helvetica Neue",sans-serif;
  font-size:5.7px;
  font-weight:900;
  left:50%;
  letter-spacing:.02em;
  line-height:1;
  opacity:.9;
  pointer-events:none;
  position:absolute;
  text-align:center;
  text-transform:uppercase;
  transform:translateX(-50%);
  white-space:nowrap;
  writing-mode:horizontal-tb!important;
  z-index:1;
}
.crm-customer-stamp-v145::before{
  content:"MITSUBISHI";
  top:7px;
}
.crm-customer-stamp-v145::after{
  bottom:6px;
  content:"CRM • ★ •";
  font-size:5px;
}
.crm-customer-stamp-label-v145{
  align-items:center;
  background:#fff;
  border:2px solid var(--stamp-ink);
  border-radius:4px;
  box-shadow:0 1px 2px rgba(15,23,42,.09);
  box-sizing:border-box;
  color:var(--stamp-ink);
  display:flex;
  font-family:Arial,"Helvetica Neue",sans-serif;
  font-size:14px;
  font-weight:1000;
  height:24px;
  justify-content:center;
  left:50%;
  letter-spacing:.015em;
  line-height:1!important;
  margin:0!important;
  max-width:none!important;
  min-width:68px;
  overflow:visible!important;
  overflow-wrap:normal!important;
  padding:0 8px;
  position:absolute;
  text-align:center;
  text-orientation:mixed!important;
  text-shadow:.2px .2px 0 currentColor;
  text-transform:uppercase;
  top:50%;
  transform:translate(-50%,-50%) rotate(-2deg);
  transform-origin:center;
  white-space:nowrap!important;
  width:auto!important;
  word-break:keep-all!important;
  writing-mode:horizontal-tb!important;
  z-index:3;
}
.crm-customer-stamp-v145.is-hot{--stamp-ink:#b5121b}
.crm-customer-stamp-v145.is-warm{--stamp-ink:#b56700}
.crm-customer-stamp-v145.is-cool{--stamp-ink:#24549a}
.crm-customer-stamp-v145.is-stock{--stamp-ink:#41484f}
.crm-customer-stamp-v145.is-delivered{
  --stamp-size:58px;
  --stamp-ink:#b5121b;
  margin-left:14px;
  margin-right:22px;
  transform:rotate(-4deg);
}
.crm-customer-stamp-v145.is-delivered::after{
  bottom:7px;
  content:"ĐÃ BÀN GIAO";
  font-size:4.8px;
}
.crm-customer-stamp-v145.is-delivered .crm-customer-stamp-label-v145{
  font-size:11px;
  height:25px;
  letter-spacing:.02em;
  min-width:98px;
  padding:0 7px;
}
.crm-customer-stamp-v145:hover{filter:contrast(1.04) saturate(1.04)}

@media(max-width:780px){
  .crm-directory-row-no-badges-v145{
    grid-template-columns:minmax(0,1fr) 64px!important;
    padding-left:12px!important;
  }
  .crm-profile-title-line-v139{
    align-items:center;
    display:flex;
    flex-wrap:wrap;
    gap:7px 9px;
  }
  .crm-customer-stamp-v145{
    --stamp-size:44px;
    margin:2px 13px 2px 9px;
  }
  .crm-customer-stamp-v145::before{top:6px;font-size:5px}
  .crm-customer-stamp-v145::after{bottom:5px;font-size:4.5px}
  .crm-customer-stamp-label-v145{
    font-size:12px;
    height:22px;
    min-width:61px;
    padding:0 7px;
  }
  .crm-customer-stamp-v145.is-delivered{
    --stamp-size:51px;
    margin-left:10px;
    margin-right:18px;
  }
  .crm-customer-stamp-v145.is-delivered .crm-customer-stamp-label-v145{
    font-size:10px;
    height:23px;
    min-width:90px;
  }
}

/* V146 - Public product image audit: stable local vehicle imagery, larger frames,
   and complete responsive sizing for every customer-facing Mitsubishi product page. */

/* Product cards: use the available frame instead of leaving the vehicle small. */
.official-product-image{
  align-items:center;
  background:linear-gradient(180deg,#fbfcfd 0%,#eef1f5 100%);
  display:flex;
  justify-content:center;
  min-height:clamp(290px,26vw,370px);
  overflow:hidden;
  padding:8px 12px;
}
.official-product-image img{
  display:block;
  height:clamp(270px,24vw,350px)!important;
  max-height:none!important;
  max-width:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:8px!important;
  transform:scale(1.06);
  width:100%!important;
}
.official-product-card:hover .official-product-image img{
  transform:translateY(-4px) scale(1.09)!important;
}

/* Product detail hero: keep the full car visible and remove legacy zoom/crop. */
.official-model-hero{
  min-height:clamp(680px,80vh,860px)!important;
}
.official-model-hero picture img{
  max-height:none!important;
  object-position:center center!important;
  transform:none!important;
}

/* Variant cards: larger vehicle, smaller dead space and no crop. */
.official-variant-media,
.variant-card-media.official-variant-media{
  align-items:center!important;
  display:flex!important;
  justify-content:center!important;
  min-height:clamp(350px,31vw,460px)!important;
  overflow:hidden!important;
  padding:10px 14px!important;
}
.official-variant-media img,
.variant-card-media.official-variant-media img{
  display:block!important;
  height:clamp(330px,29vw,435px)!important;
  max-height:none!important;
  max-width:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:6px!important;
  transform:scale(1.045);
  width:100%!important;
}

/* Exterior colors: each vehicle fills its card while staying fully visible. */
.model-color-grid article{
  align-content:center;
  min-height:350px;
  padding:16px 18px 20px!important;
}
.model-color-grid img{
  aspect-ratio:auto!important;
  display:block;
  height:285px!important;
  max-height:none!important;
  max-width:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:6px!important;
  width:100%!important;
}

/* Official remote image URLs can change or reject hotlinking. The customer site
   already has approved local images for all six models, so replace every remote
   product asset with its stable local counterpart. */

/* Destinator */
.official-model-hero img[src*="Product-page-DDNB.jpg"],
.official-model-hero img[src*="Cover-mobile_South_"]{
  content:url("/images/hero/destinator-hero.jpg")!important;
}
img[src*="full-trang-den-e1765439712316.png"],
img[src*="full-do-e1764727270316.png"],
img[src*="full-den-1-e1765439819248.png"],
img[src*="H03-Dau-xe.png"],
img[src*="noi-that-sang-trong-1.png"],
img[src*="diamond-sense.png"]{
  content:url("/images/cars/destinator/main.png")!important;
}

/* Attrage */
.official-model-hero img[src*="attrage-kv-banner.jpg"]{
  content:url("/images/hero/attrage-hero.webp")!important;
}
img[src*="attrage-cvt-premium.png"],
img[src*="attrage-variant-mt.png"],
img[src*="attrage_side_trang-min.png"],
img[src*="attrage_side_xam-min.png"],
img[src*="attrage_side_do-min.png"],
img[src*="attrage-exterior-section.jpg"],
img[src*="attrage-interior-section.jpg"],
img[src*="attrage-safety-section.jpg"]{
  content:url("/images/cars/attrage/main.webp")!important;
}

/* New Xforce */
.official-model-hero img[src*="Headbanner_Product-XFORCE_"],
.official-model-hero img[src*="XFORCE26_720x960.png"]{
  content:url("/images/hero/xforce-hero.jpg")!important;
}
img[src*="20260509_085556806_iOS.png"],
img[src*="LUXURY-DO.png"],
img[src*="GLX-DEN.png"],
img[src*="RV-P2-Trang-Den-F.png"],
img[src*="RV-Do-2.png"],
img[src*="RV-Den-2-1.png"],
img[src*="MMV_XForce_Website_ProductPage_"],
img[src*="MMV_X-Force_Website_FRONTPAGE_"],
img[src*="MMV_XForce_Website_Subpage_"]{
  content:url("/images/cars/new-xforce/main.png")!important;
}

/* New Xpander */
.official-model-hero img[src*="Websitecover23Sep-1.jpg"],
.official-model-hero img[src*="websiteHeadleftsubpage-1.png"]{
  content:url("/images/hero/xpander-hero.jpg")!important;
}
img[src*="26MY_XP_VNM_P2_side_"],
img[src*="RN-AT.png"],
img[src*="Xpander-MT-MY26-1-"],
img[src*="RN_Website_FRONTPAGE-2.jpg"],
img[src*="WebsiteNoi-that-223Sep.jpg"],
img[src*="WebsiteAYC23Sep-3.jpg"]{
  content:url("/images/cars/new-xpander/main.png")!important;
}

/* New Xpander Cross */
.official-model-hero img[src*="website-frontpage.jpg"]{
  background:
    radial-gradient(circle at 76% 48%,rgba(255,255,255,.19),transparent 34%),
    linear-gradient(135deg,#11161d 0%,#242b34 58%,#0d1014 100%)!important;
  box-sizing:border-box!important;
  content:url("/images/cars/new-xpander-cross/main.png")!important;
  object-fit:contain!important;
  object-position:76% center!important;
  padding:clamp(70px,8vw,118px) clamp(28px,5vw,80px) clamp(64px,7vw,105px) clamp(42%,47vw,54%)!important;
}
img[src*="26MY_XS_VNM_P2X_side_"],
img[src*="Websitecover23Sep.jpg"],
img[src*="Websitenoi-that23Sep-"],
img[src*="Websitean-toan23Sep-"]{
  content:url("/images/cars/new-xpander-cross/main.png")!important;
}

/* All-New Triton */
.official-model-hero img[src*="MAINPAGE-1920x1200-1.jpg"],
.official-model-hero img[src*="COVER-MOBILE-720x960-.jpg"]{
  content:url("/images/hero/triton-hero.jpg")!important;
}
img[src*="4WD-AT-Athlete-ORANGE"],
img[src*="2WD-AT-Premium-WHITE"],
img[src*="2WD-AT-Premium-BLACK"],
img[src*="UT_GLX_U28.png"],
img[src*="NGOAI-THAT-1920X1200-min-1.jpg"],
img[src*="7-DRIVE-MODE-1080X1080-min.jpg"],
img[src*="triton-ancap.png"]{
  content:url("/images/cars/all-new-triton/main.png")!important;
}

/* Replaced feature photographs become vehicle cut-outs; present them in a clean,
   intentional studio frame instead of cropping them like a full-bleed photo. */
.official-feature-stack img[src*="mitsubishi-motors.com.vn/w/wp-content/uploads/"]{
  background:
    radial-gradient(circle at 50% 46%,rgba(255,255,255,.98) 0 18%,rgba(238,241,245,.94) 58%,#dfe4ea 100%)!important;
  box-sizing:border-box!important;
  height:100%!important;
  min-height:560px!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:clamp(34px,5vw,82px)!important;
}

/* Broken image icons/alt text must never leak into the polished product frame. */
.official-model-hero img[src*="mitsubishi-motors.com.vn"],
.official-variant-media img[src*="mitsubishi-motors.com.vn"],
.model-color-grid img[src*="mitsubishi-motors.com.vn"],
.official-feature-stack img[src*="mitsubishi-motors.com.vn"]{
  color:transparent!important;
  font-size:0!important;
}

@media(max-width:1180px){
  .official-product-image{min-height:300px}
  .official-product-image img{height:285px!important}
  .official-variant-media,
  .variant-card-media.official-variant-media{min-height:330px!important}
  .official-variant-media img,
  .variant-card-media.official-variant-media img{height:310px!important}
  .model-color-grid article{min-height:320px}
  .model-color-grid img{height:255px!important}
}

@media(max-width:760px){
  .official-model-hero{min-height:640px!important}
  .official-model-hero__content{min-height:640px!important}
  .official-product-image{min-height:275px;padding:6px 8px}
  .official-product-image img{height:260px!important;padding:5px!important}
  .official-variant-media,
  .variant-card-media.official-variant-media{min-height:300px!important;padding:6px 8px!important}
  .official-variant-media img,
  .variant-card-media.official-variant-media img{height:285px!important;padding:4px!important}
  .model-color-grid article{min-height:300px;padding:12px 14px 18px!important}
  .model-color-grid img{height:245px!important;padding:4px!important}
  .official-feature-stack img[src*="mitsubishi-motors.com.vn/w/wp-content/uploads/"]{
    min-height:360px!important;
    padding:28px 18px!important;
  }
  .official-model-hero img[src*="website-frontpage.jpg"]{
    object-position:center 24%!important;
    padding:56px 16px 280px!important;
  }
}

@media(max-width:480px){
  .official-product-image{min-height:245px}
  .official-product-image img{height:232px!important}
  .official-variant-media,
  .variant-card-media.official-variant-media{min-height:270px!important}
  .official-variant-media img,
  .variant-card-media.official-variant-media img{height:255px!important}
  .model-color-grid article{min-height:270px}
  .model-color-grid img{height:220px!important}
  .official-model-hero img[src*="website-frontpage.jpg"]{
    padding:48px 12px 310px!important;
  }
}

/* V148 - Complete, scoped admin icon system */
.admin-body .ui-icon{display:block;width:1em;height:1em;flex:0 0 auto;overflow:visible}
.admin-body .ui-icon.inline-icon{display:inline-block;width:1.05em;height:1.05em;margin-left:4px;vertical-align:-.15em}
.admin-body .ui-icon.inline-separator{display:inline-block;width:14px;height:14px;margin:0 3px;vertical-align:-.12em;color:#8a939d}
.admin-body .ui-icon.button-icon{width:16px;height:16px}
.admin-body .admin-nav-icon{align-items:center!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#737d88;display:inline-flex!important;flex:0 0 24px!important;height:24px!important;justify-content:center!important;min-width:24px!important;padding:0!important;transition:color .16s ease,transform .16s ease;width:24px!important}
.admin-body .admin-nav-icon .ui-icon{height:20px;width:20px}
.admin-body .admin-nav-group>a{align-items:center;min-height:44px}
.admin-body .admin-nav-group>a.active .admin-nav-icon{color:#e60012}
.admin-body .admin-nav-group>a:hover .admin-nav-icon{color:#e60012;transform:translateY(-1px)}
.admin-body .admin-sidebar-toggle,.admin-body .admin-mobile-menu-toggle,.admin-body .admin-used-dialog-close,.admin-body .quote-dialog-close,.admin-body .admin-used-search-clear{align-items:center;display:inline-flex!important;justify-content:center;line-height:1;padding:0!important}
.admin-body .admin-sidebar-toggle .ui-icon{height:18px;width:18px}
.admin-body .admin-mobile-menu-toggle .ui-icon{height:22px;width:22px}
.admin-body .admin-used-dialog-close .ui-icon,.admin-body .quote-dialog-close .ui-icon,.admin-body .admin-used-search-clear .ui-icon{height:18px;width:18px}
.admin-body .admin-used-dropzone-icon,.admin-body .admin-used-search-icon,.admin-body .admin-tracking-platform-icon{align-items:center;display:inline-flex;justify-content:center}
.admin-body .admin-used-dropzone-icon .ui-icon{height:30px;width:30px}
.admin-body .admin-used-search-icon .ui-icon{height:18px;width:18px}
.admin-body .admin-tracking-platform-icon .ui-icon{height:24px;width:24px}
.admin-body .primary-button,.admin-body .secondary-button,.admin-body .admin-used-delete-button,.admin-body .admin-used-delete-confirm,.admin-body .crm-profile-actions-v109 button,.admin-body .crm-profile-actions-v109 a{align-items:center;display:inline-flex;gap:7px;justify-content:center}
.admin-body .crm-progress-tick-v112{align-items:center;display:inline-flex;justify-content:center}
.admin-body .crm-progress-tick-v112 .ui-icon{height:13px;width:13px}
.admin-body .crm-document-required-toggle-v129 span .ui-icon{height:14px;width:14px}
.admin-body .admin-inline-check{align-items:center;background:#159447;border-radius:999px;color:#fff;display:inline-flex;height:19px;justify-content:center;margin-right:5px;vertical-align:-4px;width:19px}
.admin-body .admin-inline-check .ui-icon{height:11px;width:11px}
.admin-body .quote-accessory-open-icon .ui-icon{height:18px;width:18px}
.admin-body .quote-accessory-open-button>b{align-items:center;display:inline-flex;justify-content:center}
.admin-body .quote-accessory-open-button>b .ui-icon{height:18px;width:18px}
.admin-body .quote-preview-zoom button{align-items:center;display:inline-flex;justify-content:center}
.admin-body .quote-preview-zoom button .ui-icon{height:16px;width:16px}
.admin-body .quote-ui-icon{align-items:center;display:inline-flex;justify-content:center}
.admin-body .quote-ui-icon .ui-icon{height:18px;width:18px}
.admin-body .crm-deleted-archive-v113>summary:before{border-bottom:2px solid #d91820;border-right:2px solid #d91820;box-sizing:border-box;content:""!important;display:block;height:8px;transform:rotate(-45deg);transition:transform .18s ease;width:8px}
.admin-body .crm-deleted-archive-v113[open]>summary:before{transform:rotate(45deg)}
@media(max-width:720px){
  .admin-body .admin-nav-icon{height:25px!important;min-width:25px!important;width:25px!important}
  .admin-body .admin-nav-icon .ui-icon{height:21px;width:21px}
  .admin-body .admin-mobile-menu-toggle{height:42px!important;width:42px!important}
}


/* V12 quick quote final controls: exact segment width and mode-specific preview zoom. */
.admin-body .quote-preview-segment{display:inline-flex!important;grid-template-columns:none!important;width:auto!important;min-width:0!important;max-width:max-content!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;gap:0!important;flex:0 0 auto!important}
.admin-body .quote-preview-segment [data-preview-mode]{width:auto!important;min-width:0!important;max-width:max-content!important;flex:0 0 auto!important;margin:0!important}
.admin-body .quote-preview-zoom{display:inline-grid!important;grid-template-columns:auto minmax(104px,auto)!important;align-items:center!important;gap:6px!important;padding:4px 6px!important}
.admin-body .quote-preview-zoom select{min-width:104px!important;height:32px!important;border:1px solid #d9dee3!important;border-radius:9px!important;background:#fff!important;padding:0 28px 0 9px!important;font-weight:800!important;color:#343b43!important}
@media (max-width:1180px){.admin-body .quote-preview-segment{max-width:100%!important}}

/* V18 PATCH 20260806 - hide used-car photo count and fit portrait images neatly inside frame */
.used-car-photo-count {
  display: none !important;
}

.used-car-media {
  align-items: center;
  background: linear-gradient(180deg, #f8f9fb, #eef1f5);
  display: flex;
  justify-content: center;
}

.used-car-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 18px;
}

.used-car-card:hover .used-car-media:not(.is-placeholder) img {
  transform: scale(1.01);
}

.used-car-media.is-placeholder img {
  object-fit: contain;
  padding: 34px;
}

@media (max-width: 680px) {
  .used-car-media img {
    padding: 14px;
  }
}

/* V19 PATCH 20260806 - used-car image orientation priority and visible photo count. */
.used-car-photo-count {
  display: inline-flex !important;
  z-index: 4;
  pointer-events: none;
}

.used-car-media {
  display: block;
  overflow: hidden;
}

.used-car-media img {
  width: 100%;
  height: 100%;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.used-car-media.is-landscape-photo img,
.used-car-media.is-square-photo img {
  object-fit: cover !important;
  object-position: center center !important;
}

.used-car-media.is-portrait-photo img {
  object-fit: cover !important;
  object-position: 50% 100% !important;
}

.used-detail-main img,
.used-detail-thumb img {
  object-fit: cover !important;
  object-position: center center !important;
}

.used-detail-main.is-landscape-photo img,
.used-detail-main.is-square-photo img,
.used-detail-thumb.is-landscape-photo img,
.used-detail-thumb.is-square-photo img {
  object-fit: cover !important;
  object-position: center center !important;
}

.used-detail-main.is-portrait-photo img,
.used-detail-thumb.is-portrait-photo img {
  object-fit: cover !important;
  object-position: 50% 100% !important;
}

.used-car-media.is-placeholder img,
.used-detail-main.is-placeholder img {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 34px !important;
}

@media (max-width: 680px) {
  .used-car-media img,
  .used-detail-main img,
  .used-detail-thumb img {
    padding: 0 !important;
  }

  .used-car-media.is-placeholder img,
  .used-detail-main.is-placeholder img {
    padding: 28px !important;
  }
}


/* V20 PATCH 20260806 - keep portrait used-car photos complete while landscape photos fill the frame. */
.used-car-media,
.used-detail-main,
.used-detail-thumb {
  isolation: isolate;
  position: relative;
}

.used-car-media.is-portrait-photo,
.used-detail-main.is-portrait-photo,
.used-detail-thumb.is-portrait-photo {
  background: linear-gradient(180deg, #eef1f4 0%, #dfe4e8 100%);
}

.used-car-media.is-portrait-photo::before,
.used-detail-main.is-portrait-photo::before {
  background-image: var(--used-car-photo-image);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  content: '';
  filter: blur(18px) saturate(.88);
  inset: -22px;
  opacity: .28;
  pointer-events: none;
  position: absolute;
  transform: scale(1.08);
  z-index: 0;
}

.used-car-media.is-portrait-photo::after {
  background: linear-gradient(90deg, rgba(244,247,249,.34), rgba(255,255,255,.08) 38%, rgba(255,255,255,.08) 62%, rgba(244,247,249,.34));
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.used-car-media.is-portrait-photo img,
.used-detail-main.is-portrait-photo img,
.used-detail-thumb.is-portrait-photo img {
  object-fit: contain !important;
  object-position: center bottom !important;
  padding: 0 !important;
  position: relative;
  transform: none !important;
  z-index: 1;
}

.used-car-media.is-landscape-photo img,
.used-car-media.is-square-photo img,
.used-detail-main.is-landscape-photo img,
.used-detail-main.is-square-photo img,
.used-detail-thumb.is-landscape-photo img,
.used-detail-thumb.is-square-photo img {
  object-fit: cover !important;
  object-position: center center !important;
}

.used-car-card:hover .used-car-media.is-portrait-photo img,
.used-detail-main.is-portrait-photo .used-detail-main-button:hover img {
  transform: none !important;
}

.used-car-media > span,
.used-car-media > small,
.used-detail-main > span,
.used-detail-main > button,
.used-detail-main-button {
  position: relative;
  z-index: 3;
}

.used-detail-main > .used-detail-status,
.used-detail-main > .used-detail-counter,
.used-detail-main > .used-detail-nav {
  position: absolute;
}

.used-detail-thumb.is-portrait-photo::before {
  background-image: var(--used-car-photo-image);
  background-position: center bottom;
  background-size: cover;
  content: '';
  filter: blur(8px);
  inset: -8px;
  opacity: .22;
  pointer-events: none;
  position: absolute;
  transform: scale(1.08);
  z-index: 0;
}

@media (max-width: 680px) {
  .used-car-media.is-portrait-photo::before,
  .used-detail-main.is-portrait-photo::before {
    filter: blur(14px) saturate(.9);
    opacity: .24;
  }
}

/* V21 PATCH 20260806 - keep the desktop product mega menu above every product-specific sticky navigation. */
@media (min-width: 1025px) {
  .mmv-header {
    isolation: isolate;
    overflow: visible !important;
    z-index: 5000 !important;
  }

  .mmv-nav,
  .mmv-nav-item,
  .mmv-nav-parent {
    overflow: visible !important;
  }

  .mmv-mega,
  .mmv-simple-menu {
    z-index: 5010 !important;
  }
}

/* V22 PATCH 20260806 - align the accessories admin spreadsheet grid and keep every row/column stable. */
.accessory-grid-card {
  min-width: 0;
  overflow: hidden;
}

.accessory-grid-heading {
  align-items: center;
  margin-bottom: 14px;
}

.accessory-grid-filter {
  grid-template-columns: minmax(300px, 1.6fr) minmax(180px, .75fr) minmax(180px, .75fr) auto auto;
  margin-bottom: 12px;
}

.accessory-grid-filter input[type="search"],
.accessory-grid-filter select {
  box-sizing: border-box;
  height: 44px;
  min-width: 0;
}

.accessory-grid-help {
  align-items: center;
  background: #f5f7f9;
  border: 1px solid #e1e5e9;
  border-radius: 10px;
  color: #5f6871;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px 18px;
  margin: 0 0 10px;
  padding: 9px 12px;
}

.accessory-grid-help span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  white-space: nowrap;
}

.accessory-grid-help b {
  color: #111;
  font-size: 14px;
}

.accessory-excel-wrap {
  background: #fff;
  border: 1px solid #d9dee3;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  max-height: calc(100vh - 265px);
  max-width: 100%;
  min-height: 390px;
  overflow: auto;
  overscroll-behavior: contain;
  position: relative;
  scrollbar-gutter: stable both-edges;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.accessory-excel-grid {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 2234px;
  table-layout: fixed;
  width: 2234px;
}

.accessory-excel-grid .col-no { width: 64px; }
.accessory-excel-grid .col-code { width: 170px; }
.accessory-excel-grid .col-name { width: 300px; }
.accessory-excel-grid .col-scope { width: 170px; }
.accessory-excel-grid .col-category { width: 180px; }
.accessory-excel-grid .col-unit { width: 100px; }
.accessory-excel-grid .col-source { width: 160px; }
.accessory-excel-grid .col-multiplier { width: 105px; }
.accessory-excel-grid .col-customer { width: 160px; }
.accessory-excel-grid .col-warranty { width: 150px; }
.accessory-excel-grid .col-status { width: 160px; }
.accessory-excel-grid .col-note { width: 300px; }
.accessory-excel-grid .col-action { width: 215px; }

.accessory-excel-grid th,
.accessory-excel-grid td {
  border-bottom: 1px solid #e5e8eb;
  border-right: 1px solid #e5e8eb;
  box-sizing: border-box;
  height: 54px;
  padding: 7px;
  text-align: left;
  vertical-align: middle;
}

.accessory-excel-grid th:first-child,
.accessory-excel-grid td:first-child {
  border-left: 0;
}

.accessory-excel-grid thead th {
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  height: 46px;
  letter-spacing: .045em;
  line-height: 1.2;
  padding: 8px 9px;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  white-space: normal;
  z-index: 30;
}

.accessory-grid-row {
  --accessory-row-bg: #fff;
}

.accessory-grid-row:nth-child(odd) {
  --accessory-row-bg: #fbfcfd;
}

.accessory-grid-row.accessory-grid-new-row {
  --accessory-row-bg: #eefbf4;
}

.accessory-grid-row.is-new:not(.accessory-grid-new-row) {
  --accessory-row-bg: #fff9ea;
}

.accessory-grid-row.is-removed {
  --accessory-row-bg: #f1f3f5;
  opacity: .76;
}

.accessory-grid-row.is-dirty {
  --accessory-row-bg: #fff4d6;
}

.accessory-grid-row.is-saved {
  --accessory-row-bg: #e9f7ff;
  animation: accessory-row-saved-v22 1.6s ease both;
}

@keyframes accessory-row-saved-v22 {
  0%, 45% { box-shadow: inset 0 0 0 2px #1688c8; }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}

.accessory-excel-grid tbody td {
  background: var(--accessory-row-bg);
}

.accessory-excel-grid tbody tr:hover {
  --accessory-row-bg: #f1f7fd;
}

.accessory-excel-grid input,
.accessory-excel-grid select {
  background: #fff;
  border: 1px solid #c8ced5;
  border-radius: 7px;
  box-sizing: border-box;
  color: #15191d;
  display: block;
  font-size: 13px !important;
  height: 38px;
  line-height: 1.2;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 8px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.accessory-excel-grid input:focus,
.accessory-excel-grid select:focus {
  border-color: #d71920;
  box-shadow: 0 0 0 3px rgba(215, 25, 32, .12);
  outline: 0;
}

.accessory-grid-new-row input,
.accessory-grid-new-row select {
  border-color: #98ceb0;
}

.accessory-grid-index {
  color: #59636d;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: center !important;
  white-space: nowrap;
}

/* Freeze STT, code and accessory name while scrolling horizontally. */
.accessory-excel-grid th:nth-child(1),
.accessory-excel-grid td:nth-child(1) {
  left: 0;
  position: sticky;
  width: 64px;
}

.accessory-excel-grid th:nth-child(2),
.accessory-excel-grid td:nth-child(2) {
  left: 64px;
  position: sticky;
  width: 170px;
}

.accessory-excel-grid th:nth-child(3),
.accessory-excel-grid td:nth-child(3) {
  box-shadow: 8px 0 12px -12px rgba(0, 0, 0, .75);
  left: 234px;
  position: sticky;
  width: 300px;
}

.accessory-excel-grid tbody td:nth-child(1),
.accessory-excel-grid tbody td:nth-child(2),
.accessory-excel-grid tbody td:nth-child(3) {
  background: var(--accessory-row-bg);
  z-index: 12;
}

.accessory-excel-grid thead th:nth-child(1),
.accessory-excel-grid thead th:nth-child(2),
.accessory-excel-grid thead th:nth-child(3) {
  background: #111;
  z-index: 40;
}

/* Keep row actions visible at the right edge. */
.accessory-excel-grid th:last-child,
.accessory-excel-grid td:last-child {
  box-shadow: -8px 0 12px -12px rgba(0, 0, 0, .75);
  position: sticky;
  right: 0;
  width: 215px;
}

.accessory-excel-grid thead th:last-child {
  background: #111;
  z-index: 40;
}

.accessory-excel-grid tbody td:last-child {
  background: var(--accessory-row-bg);
  z-index: 13;
}

.accessory-grid-note-cell {
  overflow: visible;
  position: relative;
  white-space: nowrap;
}

.accessory-grid-note-cell > input {
  display: inline-block;
  vertical-align: middle;
  width: calc(100% - 82px);
}

.accessory-grid-details {
  display: inline-block;
  margin-left: 6px;
  position: relative;
  vertical-align: middle;
}

.accessory-grid-details > summary {
  align-items: center;
  background: #f3f5f7;
  border: 1px solid #c8ced5;
  border-radius: 7px;
  color: #333a41;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  list-style: none;
  padding: 0 10px;
  white-space: nowrap;
}

.accessory-grid-details > summary::-webkit-details-marker {
  display: none;
}

.accessory-grid-details[open] > summary {
  background: #111;
  border-color: #111;
  color: #fff;
}

.accessory-grid-popover {
  background: #fff;
  border: 1px solid #d7dce1;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(18, 25, 32, .2);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  padding: 14px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: 440px;
  z-index: 80;
}

.accessory-grid-popover label {
  color: #4e5862;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
}

.accessory-grid-popover .wide {
  grid-column: 1 / -1;
}

.accessory-grid-popover .accessory-grid-check {
  align-items: center;
  display: flex;
  gap: 8px;
}

.accessory-grid-popover .accessory-grid-check input {
  height: 18px;
  margin: 0;
  width: 18px;
}

.accessory-grid-actions {
  text-align: center !important;
  white-space: nowrap;
}

.accessory-grid-actions form {
  display: none;
}

.accessory-grid-save,
.accessory-grid-delete {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  margin: 0 2px;
  padding: 0 12px;
  vertical-align: middle;
}

.accessory-grid-save {
  background: #111;
  color: #fff;
  min-width: 86px;
}

.accessory-grid-save.is-add {
  background: #0e8a4a;
}

.accessory-grid-save.is-restore {
  background: #176bb0;
}

.accessory-grid-delete {
  background: #fee9ea;
  color: #a21820;
  font-size: 20px;
  min-width: 38px;
  padding: 0;
}

.accessory-grid-empty td {
  background: #f7f8fa !important;
  color: #6c757d;
  font-weight: 700;
  height: 100px;
  text-align: center;
}

@media (max-width: 1250px) {
  .accessory-grid-filter {
    grid-template-columns: minmax(220px, 1fr) minmax(160px, .7fr) minmax(160px, .7fr);
  }

  .accessory-grid-filter .accessory-new-filter,
  .accessory-grid-filter button,
  .accessory-grid-filter .accessory-filter-reset {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .accessory-grid-card {
    padding: 12px !important;
  }

  .accessory-grid-filter {
    grid-template-columns: 1fr;
  }

  .accessory-grid-filter .accessory-new-filter,
  .accessory-grid-filter button,
  .accessory-grid-filter .accessory-filter-reset {
    grid-column: 1;
  }

  .accessory-grid-help {
    align-items: flex-start;
    display: grid;
  }

  .accessory-excel-wrap {
    max-height: none;
    min-height: 480px;
  }

  .accessory-excel-grid th:nth-child(2),
  .accessory-excel-grid td:nth-child(2),
  .accessory-excel-grid th:nth-child(3),
  .accessory-excel-grid td:nth-child(3) {
    position: static;
  }

  .accessory-excel-grid th:nth-child(3),
  .accessory-excel-grid td:nth-child(3) {
    box-shadow: none;
  }

  .accessory-grid-popover {
    left: auto;
    max-width: min(440px, calc(100vw - 48px));
    right: 0;
  }
}



/* V23 - Public visual correction for the current modular PHP website.
   Scope: homepage vehicle imagery and the News hero only. */

/* Preserve the native vehicle aspect ratio. Fixed width and fixed height together
   made some transparent PNG/WebP product images look compressed. */
.car-showcase article,
.official-product-card,
.price-overview-grid > a,
.price-overview-grid > article {
  min-width: 0;
}

.car-showcase article > img,
.official-product-image img,
.price-overview-grid img,
.official-price-table img {
  box-sizing: border-box !important;
  display: block !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-height: clamp(210px, 21vw, 315px) !important;
  max-width: calc(100% - 28px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  transform: none !important;
  width: auto !important;
}

.official-product-image {
  align-items: center !important;
  display: flex !important;
  justify-content: center !important;
  min-height: clamp(250px, 24vw, 340px) !important;
  padding: clamp(14px, 1.7vw, 24px) !important;
}

.car-showcase article:hover > img,
.official-product-card:hover .official-product-image img,
.price-overview-grid a:hover img,
.official-price-table a:hover img {
  transform: translateY(-4px) scale(1.025) !important;
}

/* Keep the lower half of the Destinator artwork visible on the News page. */
.news-hero {
  align-content: center;
  background-image:
    linear-gradient(100deg, rgba(5, 8, 12, 0.84) 0%, rgba(5, 8, 12, 0.54) 48%, rgba(5, 8, 12, 0.18) 100%),
    url('/images/hero/destinator-hero.jpg') !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  display: grid;
  min-height: clamp(430px, 34vw, 560px) !important;
  padding-bottom: clamp(82px, 7vw, 110px) !important;
  padding-top: clamp(92px, 8vw, 126px) !important;
}

@media (max-width: 980px) {
  .car-showcase article > img,
  .official-product-image img,
  .price-overview-grid img,
  .official-price-table img {
    max-height: 275px !important;
    max-width: calc(100% - 20px) !important;
  }

  .official-product-image {
    min-height: 285px !important;
  }

  .news-hero {
    background-position: 62% bottom !important;
    min-height: 470px !important;
  }
}

@media (max-width: 560px) {
  .car-showcase article > img,
  .official-product-image img,
  .price-overview-grid img,
  .official-price-table img {
    max-height: 225px !important;
    max-width: calc(100% - 14px) !important;
  }

  .official-product-image {
    min-height: 240px !important;
    padding: 12px !important;
  }

  .news-hero {
    background-position: 67% bottom !important;
    min-height: 430px !important;
    padding-bottom: 64px !important;
    padding-top: 76px !important;
  }
}

/* V32 - CRM customer report polish (07/08/2026)
   Keep report UI consistent with the current Mitsubishi Trường Chinh admin CRM. */
.admin-topbar-actions-v128 .crm-customer-report-top-button-v31 {
  align-items: center;
  background: #17191d;
  border: 1px solid #17191d;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(17, 19, 23, 0.10);
  color: #fff;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  margin: 0;
  min-height: 42px;
  min-width: 0;
  padding: 0 18px;
  white-space: nowrap;
}

.admin-topbar-actions-v128 .crm-customer-report-top-button-v31:hover {
  background: #2a2d32;
  border-color: #2a2d32;
  transform: translateY(-1px);
}

.crm-customer-report-v31 {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 16px;
  overflow: visible;
}

.crm-customer-report-head-v31 {
  align-items: center;
  background:
    radial-gradient(circle at 88% 0%, rgba(215, 25, 32, 0.10), transparent 30%),
    #fff;
  border: 1px solid #e3e6ea;
  border-top: 4px solid var(--red, #d71920);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(17, 19, 23, 0.07);
  color: #111;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 24px 26px;
}

.crm-customer-report-head-v31 > div:first-child {
  min-width: 0;
}

.crm-customer-report-head-v31 .eyebrow {
  color: var(--red, #d71920);
  font-size: 12px;
  letter-spacing: .10em;
  margin: 0 0 8px;
}

.crm-customer-report-head-v31 h2 {
  color: #111;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  margin: 0 0 8px;
}

.crm-customer-report-head-v31 p:not(.eyebrow) {
  color: #69717c;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.crm-customer-report-total-v31 {
  align-items: center;
  background: #17191d;
  border: 1px solid #17191d;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(17, 19, 23, 0.14);
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  min-height: 86px;
  min-width: 168px;
  padding: 14px 18px;
  text-align: right;
}

.crm-customer-report-total-v31 strong {
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.crm-customer-report-total-v31 span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  margin-top: 6px;
  text-transform: uppercase;
}

.crm-customer-report-filter-v31 {
  align-items: end;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(17, 19, 23, 0.05);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(170px, 1.10fr) minmax(165px, .90fr) minmax(165px, .90fr) auto auto;
  padding: 18px;
}

.crm-customer-report-filter-v31 label {
  color: #5f6772;
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 7px;
  letter-spacing: .04em;
  min-width: 0;
  text-transform: uppercase;
}

.crm-customer-report-filter-v31 select,
.crm-customer-report-filter-v31 input {
  background: #fff;
  border: 1px solid #d7dbe1;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(17, 19, 23, .02);
  color: #17191d;
  font-size: 14px;
  font-weight: 750;
  min-height: 48px;
  outline: 0;
  padding: 9px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.crm-customer-report-filter-v31 select:focus,
.crm-customer-report-filter-v31 input:focus {
  border-color: rgba(215, 25, 32, 0.62);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.09);
}

.crm-customer-report-filter-v31 .primary-button,
.crm-customer-report-filter-v31 .secondary-button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  margin: 0;
  min-height: 48px;
  min-width: 148px;
  padding: 0 18px;
  white-space: nowrap;
}

.crm-customer-report-filter-v31 .primary-button {
  box-shadow: 0 10px 22px rgba(215, 25, 32, 0.18);
}

.crm-customer-report-filter-v31 .secondary-button {
  background: #17191d;
  border-color: #17191d;
  color: #fff;
}

.crm-customer-report-note-v31 {
  background: #fff9eb;
  border: 1px solid #f0dfae;
  border-left: 4px solid #e0a314;
  border-radius: 10px;
  color: #655a39;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
  margin: 0;
  padding: 12px 15px;
}

.crm-customer-report-note-v31 strong {
  color: #3f3721;
}

.crm-customer-report-error-v31 {
  border-radius: 10px;
  margin: 0;
}

.crm-customer-report-table-wrap-v31 {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(17, 19, 23, 0.06);
  overflow-x: auto;
  padding: 0;
}

.crm-customer-report-table-v31 {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
  table-layout: fixed;
  width: 100%;
}

.crm-customer-report-table-v31 th,
.crm-customer-report-table-v31 td {
  border-bottom: 1px solid #e8eaee;
  padding: 15px 14px;
  text-align: left;
  vertical-align: top;
}

.crm-customer-report-table-v31 th {
  background: #17191d;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .045em;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.crm-customer-report-table-v31 th:first-child {
  border-top-left-radius: 13px;
}

.crm-customer-report-table-v31 th:last-child {
  border-top-right-radius: 13px;
}

.crm-customer-report-table-v31 td {
  color: #252b33;
  font-size: 13px;
  line-height: 1.48;
}

.crm-customer-report-table-v31 tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.crm-customer-report-table-v31 tbody tr:hover td {
  background: #fff6f6;
}

.crm-customer-report-table-v31 tbody tr:last-child td {
  border-bottom: 0;
}

.crm-customer-report-table-v31 th:nth-child(1),
.crm-customer-report-table-v31 td:nth-child(1) {
  text-align: center;
  width: 62px;
}

.crm-customer-report-table-v31 td:nth-child(1) {
  color: #858c96;
  font-weight: 800;
}

.crm-customer-report-table-v31 th:nth-child(2),
.crm-customer-report-table-v31 td:nth-child(2) {
  width: 20%;
}

.crm-customer-report-table-v31 td:nth-child(2) {
  color: #17191d;
  font-size: 14px;
  font-weight: 900;
}

.crm-customer-report-table-v31 th:nth-child(3),
.crm-customer-report-table-v31 td:nth-child(3) {
  width: 15%;
}

.crm-customer-report-table-v31 td:nth-child(3) {
  color: #3d444d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.crm-customer-report-table-v31 th:nth-child(4),
.crm-customer-report-table-v31 td:nth-child(4) {
  width: 38%;
}

.crm-customer-report-table-v31 td:nth-child(4) {
  color: #525a65;
}

.crm-customer-report-table-v31 th:nth-child(5),
.crm-customer-report-table-v31 td:nth-child(5) {
  width: 27%;
}

.crm-customer-report-table-v31 td:nth-child(5) {
  color: #262c34;
  font-weight: 750;
}

.crm-customer-report-empty-v31 {
  color: #777f89;
  font-weight: 750;
  margin: 0;
  padding: 50px 20px;
  text-align: center;
}

@media (max-width: 1180px) {
  .crm-customer-report-filter-v31 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .crm-customer-report-filter-v31 .primary-button,
  .crm-customer-report-filter-v31 .secondary-button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .crm-customer-report-head-v31 {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }
  .crm-customer-report-total-v31 {
    min-height: 72px;
    min-width: 0;
    text-align: left;
    width: 100%;
  }
  .crm-customer-report-filter-v31 {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .crm-customer-report-filter-v31 label,
  .crm-customer-report-filter-v31 label:first-child {
    grid-column: auto;
  }
  .crm-customer-report-note-v31 {
    font-size: 11px;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  html,
  body {
    background: #fff !important;
  }

  body * {
    visibility: hidden !important;
  }

  .crm-customer-report-v31,
  .crm-customer-report-v31 * {
    visibility: visible !important;
  }

  .crm-customer-report-v31 {
    display: block !important;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  .crm-customer-report-filter-v31 {
    display: none !important;
  }

  .crm-customer-report-head-v31 {
    background: #fff !important;
    border: 0 !important;
    border-bottom: 2px solid #111 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #111 !important;
    margin: 0 0 8mm !important;
    padding: 0 0 5mm !important;
  }

  .crm-customer-report-head-v31 h2 {
    font-size: 24px !important;
  }

  .crm-customer-report-head-v31 p:not(.eyebrow) {
    color: #555 !important;
  }

  .crm-customer-report-total-v31 {
    background: #fff !important;
    border: 1px solid #bbb !important;
    box-shadow: none !important;
    color: #111 !important;
    min-height: 0 !important;
  }

  .crm-customer-report-total-v31 strong {
    color: #111 !important;
    font-size: 26px !important;
  }

  .crm-customer-report-total-v31 span {
    color: #555 !important;
  }

  .crm-customer-report-note-v31 {
    background: #fff !important;
    border: 1px solid #bbb !important;
    border-left: 3px solid #777 !important;
    color: #444 !important;
    font-size: 9px !important;
    margin: 0 0 4mm !important;
    padding: 2.5mm 3mm !important;
  }

  .crm-customer-report-table-wrap-v31 {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .crm-customer-report-table-v31 {
    border-collapse: collapse !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .crm-customer-report-table-v31 th,
  .crm-customer-report-table-v31 td {
    border: 1px solid #d5d5d5 !important;
    font-size: 8.5px !important;
    line-height: 1.35 !important;
    padding: 2.2mm 2mm !important;
  }

  .crm-customer-report-table-v31 th {
    background: #f0f0f0 !important;
    color: #111 !important;
    position: static !important;
  }

  .crm-customer-report-table-v31 tbody tr:nth-child(even) td,
  .crm-customer-report-table-v31 tbody tr:hover td {
    background: #fff !important;
  }

  .crm-customer-report-table-v31 thead {
    display: table-header-group;
  }

  .crm-customer-report-table-v31 tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* V33 - automatic report filters + preparing customer finance/model fields (07/08/2026). */
.crm-customer-report-filter-v31 {
  grid-template-columns: minmax(170px, 1.05fr) minmax(170px, 1fr) minmax(155px, .82fr) minmax(155px, .82fr) auto;
}
.crm-customer-report-type-chip-v33 {
  background: #17191d;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 9px;
  vertical-align: 1px;
}
.crm-profile-form select[name="car"] {
  background-color: #fff;
  cursor: pointer;
  font-weight: 800;
}
.crm-profile-form [data-money-dot-v33] {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: .015em;
  text-align: right;
}
.crm-profile-form .crm-bank-field[hidden] {
  display: none !important;
}
@media (max-width: 1180px) {
  .crm-customer-report-filter-v31 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-customer-report-filter-v31 .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .crm-customer-report-filter-v31 {
    grid-template-columns: 1fr;
  }
  .crm-customer-report-filter-v31 .secondary-button {
    grid-column: auto;
  }
}

/* V34 - customer record synchronization for official forms */
.procedure-customer-sync-v34 {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(17, 19, 23, .06);
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
}
.procedure-customer-sync-head-v34 {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.procedure-customer-sync-head-v34 strong { font-size: 16px; }
.procedure-customer-sync-head-v34 span {
  background: #111;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}
.procedure-customer-sync-grid-v34 {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.procedure-customer-sync-grid-v34 > span {
  background: #f6f7f9;
  border: 1px solid #eceef1;
  border-radius: 6px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
}
.procedure-customer-sync-grid-v34 small {
  color: #747b85;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.procedure-customer-sync-grid-v34 b {
  color: #15181d;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.procedure-customer-sync-v34 p {
  color: #666e79;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 1100px) {
  .procedure-customer-sync-grid-v34 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .procedure-customer-sync-grid-v34 { grid-template-columns: 1fr; }
  .procedure-customer-sync-head-v34 { align-items: flex-start; flex-direction: column; }
}
