:root {
  --background: #050608;
  --foreground: #f5f7fb;
  --card: #0b0e13;
  --card-foreground: #f5f7fb;
  --popover: #0b0e13;
  --popover-foreground: #f5f7fb;
  --primary: #168dff;
  --primary-foreground: #fff;
  --secondary: #171a20;
  --secondary-foreground: #f5f7fb;
  --muted: #141820;
  --muted-foreground: #9ca3af;
  --accent: #e72b23;
  --accent-foreground: #fff;
  --destructive: #ef4444;
  --border: #252b34;
  --input: #252b34;
  --ring: #168dff;
  --radius: 0.5rem;
}

/* PHP runtime helpers */
[hidden] { display: none !important; }
.trust-strip article > b { width: 32px; flex: 0 0 32px; color: #168dff; font-size: 28px; font-weight: 400; text-align: center; }
.trust-strip article:nth-child(2) > b { color: #e72b23; }
.search-row > b { color: #818995; font-size: 25px; font-weight: 400; }
.subpage-heading > div > b { color: #168dff; font-size: 34px; font-weight: 400; }
.values-grid article > b { color: #168dff; font-size: 29px; font-weight: 400; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(1,4,8,.68); backdrop-filter: blur(11px); }
.modal-close { position: absolute; z-index: 8; top: 14px; right: 14px; width: 40px; height: 40px; border: 1px solid #3b4653; border-radius: 50%; background: rgba(3,7,12,.76); color: #fff; font-size: 25px; cursor: pointer; }
.vehicle-dialog { position: relative; }
.modal-description { color: #9aa2ad; line-height: 1.65; }
.rating-star { color: #343b45; font-size: 18px; }
.rating-star.filled { color: #168dff; filter: drop-shadow(0 0 5px rgba(22,141,255,.45)); }
.rating-grid > div > div { display: flex; gap: 4px; }
.gallery-dialog { position: relative; width: min(850px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden; border: 1px solid #34404d; border-radius: 18px; background: #090c10; color: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.55); }
.gallery-dialog > img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #030507; }
.gallery-dialog > div { padding: 24px 28px 32px; }
.gallery-dialog h2 { margin: 0 0 12px; font-size: 30px; text-transform: uppercase; }
.gallery-dialog p:last-child { color: #a1a8b2; line-height: 1.65; }
body.modal-open { overflow: hidden; }
.admin-sidebar > form { margin-top: auto; }
.admin-sidebar > form button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; background: none; color: #7f8793; cursor: pointer; }
.admin-toolbar > a { height: 43px; display: flex; align-items: center; padding: 0 14px; border: 1px solid #272e37; background: #0b0e13; color: #a1a9b4; font-size: 12px; }
.row-actions a, .row-actions button { display: flex; align-items: center; gap: 5px; padding: 8px; border: 1px solid #2a313a; background: #0d1116; color: #b4bbc4; font-size: 11px; cursor: pointer; white-space: nowrap; }
.row-actions form { margin: 0; }
.admin-empty { padding: 55px 20px; color: #8f98a4; text-align: center; }
.admin-message.error { border-left-color: #ef4444; background: rgba(239,68,68,.08); color: #f3aaaa; }
.admin-message.success { border-left-color: #22c55e; background: rgba(34,197,94,.08); color: #8fe0ad; }
.editor-page { min-height: 100vh; background: #07090c; }
.editor-standalone { width: min(1100px, calc(100% - 36px)); margin: 0 auto; padding: 44px 0 75px; }
.editor-standalone > header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.editor-standalone > header > a { color: #62b7ff; font-size: 13px; }
.editor-standalone h1 { font-size: clamp(34px, 5vw, 55px); }
.existing-images > strong { display: block; margin-bottom: 10px; color: #8d96a2; }
.existing-images > div { display: flex; flex-wrap: wrap; gap: 12px; }
.existing-images label { width: 170px; padding: 8px; border: 1px solid #29303a; background: #0e1217; }
.existing-images img { width: 100%; height: 105px; object-fit: cover; }
.existing-images span { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #e68a8a; }
.existing-images input { width: auto; margin: 0; }
code { color: #70bcff; }

@media (max-width: 850px) {
  .editor-standalone > header { align-items: start; flex-direction: column; }
  .admin-sidebar > form { margin: 0; }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--background);
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 92px;
  padding: 0 clamp(22px, 4vw, 72px);
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  background: linear-gradient(180deg, rgba(2, 3, 5, 0.98), rgba(2, 3, 5, 0.83));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(15px);
}
.site-logo {
  display: flex;
  align-items: center;
  width: 120px;
}
.site-logo img {
  display: block;
  width: 120px;
  height: 54px;
  object-fit: contain;
}
.pdm-mark {
  display: inline-flex;
  width: fit-content;
  font-size: 43px;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -8px;
  line-height: 1;
  filter: drop-shadow(0 3px 10px #000);
}
.pdm-mark span {
  padding-right: 7px;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}
.pdm-mark span:nth-child(1),
.pdm-mark span:nth-child(3) {
  color: #168dff;
}
.pdm-mark span:nth-child(2) {
  color: #e72b23;
}
.site-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(26px, 4vw, 66px);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-header nav a {
  position: relative;
  padding: 35px 0 28px;
  color: #c4c7ce;
  transition: color 0.2s;
}
.site-header nav a:hover,
.site-header nav .active {
  color: #fff;
}
.site-header nav .active::after {
  content: '';
  position: absolute;
  inset: auto 0 20px;
  height: 2px;
  background: #e72b23;
  box-shadow: 0 0 12px #e72b23;
}
.header-cta {
  justify-self: end;
  padding: 14px 27px;
  color: #5cb4ff;
  border: 1px solid #168dff;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero {
  position: relative;
  min-height: 790px;
  padding: 180px clamp(24px, 5.2vw, 92px) 130px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(
      90deg,
      rgba(1, 3, 6, 0.99) 0%,
      rgba(1, 3, 6, 0.9) 24%,
      rgba(1, 3, 6, 0.34) 58%,
      rgba(1, 3, 6, 0.13) 100%
    ),
    linear-gradient(0deg, #050608 0%, transparent 35%),
    url('../images/pdm-showroom-hero.png');
  background-size: cover;
  background-position: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 630px;
}
.eyebrow {
  margin: 0 0 20px;
  color: #168dff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
h1 {
  margin: 0;
  font-size: clamp(52px, 6vw, 92px);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: -0.045em;
}
h1 span {
  color: transparent;
  -webkit-text-stroke: 1px #e2e6ec;
}
.hero-copy {
  max-width: 540px;
  margin: 28px 0 32px;
  color: #c9ccd2;
  font-size: 22px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.button {
  min-height: 52px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: 0.2s;
}
.button svg,
.section-title a svg,
.preview-card svg {
  width: 17px;
  height: 17px;
}
.button-primary {
  background: #d72b22;
  border-color: #d72b22;
  box-shadow: 0 10px 35px rgba(215, 43, 34, 0.22);
}
.button-primary:hover {
  background: #ef3d33;
  transform: translateY(-2px);
}
.button-ghost {
  background: rgba(0, 0, 0, 0.36);
  border-color: #168dff;
  color: #65b9ff;
}
.button-ghost:hover {
  background: rgba(22, 141, 255, 0.13);
}
.trust-strip {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 5.2vw, 92px);
  right: clamp(24px, 5.2vw, 92px);
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 25px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.trust-strip article {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 58px;
  padding: 0 35px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}
.trust-strip article:first-child {
  padding-left: 0;
}
.trust-strip article:last-child {
  border-right: 0;
}
.trust-strip svg {
  width: 32px;
  height: 32px;
  color: #168dff;
  stroke-width: 1.5;
}
.trust-strip article:nth-child(2) svg {
  color: #e72b23;
}
.trust-strip strong,
.trust-strip span {
  display: block;
}
.trust-strip strong {
  margin-bottom: 5px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trust-strip span {
  color: #9299a5;
  font-size: 13px;
}
.inventory-preview {
  padding: 82px clamp(24px, 5.2vw, 92px) 100px;
  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(22, 141, 255, 0.07),
      transparent 35%
    ),
    #07090c;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-title .eyebrow {
  margin-bottom: 10px;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(32px, 3.7vw, 54px);
  text-transform: uppercase;
  letter-spacing: -0.035em;
}
.section-title > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #55b3ff;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.preview-card {
  overflow: hidden;
  border: 1px solid #242a32;
  border-radius: 6px;
  background: linear-gradient(145deg, #10141a, #080a0e);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.preview-card:hover {
  transform: translateY(-4px);
  border-color: #168dff;
}
.car-art {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      ellipse at center,
      rgba(22, 141, 255, 0.26),
      transparent 60%
    ),
    linear-gradient(180deg, #111720, #080a0e);
}
.preview-card.red .car-art {
  background:
    radial-gradient(
      ellipse at center,
      rgba(231, 43, 35, 0.25),
      transparent 60%
    ),
    linear-gradient(180deg, #171111, #080a0e);
}
.preview-card.black .car-art {
  background:
    radial-gradient(
      ellipse at center,
      rgba(160, 170, 185, 0.2),
      transparent 60%
    ),
    linear-gradient(180deg, #16191d, #080a0e);
}
.car-art > svg {
  width: 118px;
  height: 118px;
  color: #168dff;
  stroke-width: 0.65;
  filter: drop-shadow(0 8px 18px rgba(22, 141, 255, 0.35));
}
.red .car-art > svg {
  color: #e72b23;
  filter: drop-shadow(0 8px 18px rgba(231, 43, 35, 0.35));
}
.black .car-art > svg {
  color: #aab3c0;
}
.car-art span {
  position: absolute;
  left: 17px;
  top: 15px;
  padding: 6px 9px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: #c5cad2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.preview-card > div:nth-child(2) {
  padding: 20px 20px 17px;
}
.preview-card small {
  color: #6f7783;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.preview-card h3 {
  margin: 5px 0 13px;
  font-size: 23px;
  text-transform: uppercase;
}
.preview-card p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #aeb4bd;
  font-size: 13px;
}
.preview-card footer {
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #222730;
}
.preview-card footer strong {
  color: #53b1ff;
  font-size: 18px;
}
.preview-card footer button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  color: #e7eaf0;
  cursor: pointer;
}
@media (max-width: 850px) {
  .site-header {
    grid-template-columns: 110px 1fr;
    height: 76px;
  }
  .site-header nav {
    display: none;
  }
  .pdm-mark {
    font-size: 34px;
  }
  .hero {
    min-height: 760px;
    padding-top: 135px;
    background-position: 61% center;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
  }
  .trust-strip {
    grid-template-columns: 1fr;
    bottom: 22px;
  }
  .trust-strip article {
    display: none;
  }
  .trust-strip article:first-child {
    display: flex;
    border-right: 0;
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .site-header {
    padding: 0 18px;
  }
  .header-cta {
    padding: 11px 16px;
    font-size: 11px;
  }
  .hero {
    min-height: 720px;
    padding-left: 20px;
    padding-right: 20px;
  }
  h1 {
    font-size: 47px;
  }
  .hero-copy {
    font-size: 16px;
  }
  .button {
    width: 100%;
  }
  .section-title {
    align-items: start;
    flex-direction: column;
  }
}

/* Complete catalog */
.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  background: #10141a;
  border: 1px solid #262d37;
  border-radius: 3px;
  color: white;
}
.menu-toggle svg {
  width: 20px;
}
.catalog-section {
  padding: 92px clamp(24px, 5.2vw, 92px) 110px;
  background:
    radial-gradient(
      circle at 88% 0%,
      rgba(22, 141, 255, 0.08),
      transparent 28%
    ),
    #07090c;
  min-height: 700px;
}
.catalog-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 32px;
}
.catalog-intro .eyebrow {
  margin-bottom: 11px;
}
.catalog-intro h2,
.subpage-heading h2,
.team-story h2 {
  margin: 0;
  font-size: clamp(34px, 4.1vw, 59px);
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
.catalog-intro > div > p:last-child {
  margin: 14px 0 0;
  color: #9299a5;
}
.catalog-intro > span {
  padding: 9px 12px;
  border: 1px solid #272e38;
  color: #9da4af;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.search-row {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 18px;
  border: 1px solid #168dff;
  background: #0b0e13;
  box-shadow:
    0 0 0 1px rgba(22, 141, 255, 0.06),
    0 14px 35px rgba(0, 0, 0, 0.22);
}
.search-row svg {
  width: 23px;
  color: #818995;
}
.search-row input {
  width: 100%;
  height: 100%;
  background: none;
  border: 0;
  outline: 0;
  color: white;
  font-size: 16px;
}
.search-row input::placeholder {
  color: #727a86;
}
.category-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 22px 0 12px;
}
.category-chips button {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 10px 17px;
  border: 1px solid #2b313a;
  border-radius: 50px;
  background: #0a0c0f;
  color: #a8aeb8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  cursor: pointer;
}
.category-chips button svg {
  width: 15px;
  height: 15px;
}
.category-chips button.selected {
  border-color: #168dff;
  color: #55b3ff;
  background: rgba(22, 141, 255, 0.08);
}
.filter-row {
  display: flex;
  align-items: end;
  gap: 11px;
  padding: 10px 0 30px;
  border-bottom: 1px solid #1d222a;
}
.filter-select {
  min-width: 155px;
}
.filter-select > span {
  display: block;
  margin: 0 0 7px;
  color: #747d89;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.filter-select select {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid #272d36;
  border-radius: 3px;
  background: #0d1015;
  color: #d3d7dd;
  outline: 0;
}
.filter-select select:focus {
  border-color: #168dff;
}
.reset-button {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  margin-left: auto;
  border: 0;
  background: none;
  color: #8d949e;
  cursor: pointer;
}
.reset-button svg {
  width: 15px;
}
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-top: 27px;
}
.vehicle-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #252b34;
  border-radius: 5px;
  background: linear-gradient(145deg, #10141a, #080a0e);
  transition: 0.22s;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  border-color: #168dff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.vehicle-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #0b0e13;
}
.vehicle-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0b0e13, transparent 55%);
}
.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 0.35s;
  filter: saturate(0.9);
}
.vehicle-card:hover .vehicle-image img {
  transform: scale(1.17);
}
.vehicle-image > span {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 6px 8px;
  border-radius: 2px;
  background: rgba(4, 7, 9, 0.78);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vehicle-image > span::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.vehicle-image > span.sold::before {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}
.vehicle-image > span.onsite::before {
  background: #168dff;
  box-shadow: 0 0 8px #168dff;
}
.vehicle-image small {
  position: absolute;
  z-index: 1;
  right: 14px;
  top: 14px;
  padding: 6px 8px;
  background: rgba(4, 7, 9, 0.72);
  color: #9fa7b2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.vehicle-card-copy {
  padding: 17px 18px 14px;
}
.vehicle-card-copy > p {
  margin: 0;
  color: #777f8b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.vehicle-card-copy h3 {
  margin: 5px 0 14px;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.quick-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.quick-specs span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a1a8b2;
  font-size: 11px;
}
.quick-specs svg {
  width: 14px;
  height: 14px;
  color: #59616c;
}
.vehicle-card footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid #242a32;
}
.vehicle-card footer strong {
  color: #4baeff;
  font-size: 18px;
}
.vehicle-card footer button {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: #e5e8ec;
  font-size: 12px;
  cursor: pointer;
}
.vehicle-card footer svg {
  width: 14px;
}
.empty-state {
  margin-top: 28px;
  padding: 70px 25px;
  text-align: center;
  border: 1px dashed #303641;
  background: #0a0d11;
}
.empty-state > svg {
  width: 38px;
  height: 38px;
  color: #4b5563;
}
.empty-state h3 {
  margin: 15px 0 5px;
}
.empty-state p {
  color: #89919d;
}
.empty-state button {
  padding: 10px 15px;
  border: 1px solid #168dff;
  background: none;
  color: #55b3ff;
  cursor: pointer;
}
.vehicle-dialog {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, 0.85fr) !important;
  gap: 0 !important;
  width: min(1180px, calc(100% - 32px)) !important;
  height: min(640px, calc(100dvh - 32px)) !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid #34404d !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #0c1117, #070a0e) !important;
  color: white !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62), 0 0 45px rgba(22, 141, 255, 0.08) !important;
}
.vehicle-dialog > [data-slot='dialog-close'] {
  z-index: 5;
  background: rgba(0, 0, 0, 0.65);
  color: white;
}
.dialog-visual {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #151d26 0, #05070a 70%);
}
.dialog-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.dialog-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(2, 5, 9, 0.5), transparent 22%);
}
.dialog-visual > span {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  padding: 8px 11px;
  background: rgba(0, 0, 0, 0.72);
  border-left: 3px solid #22c55e;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.dialog-visual > span.sold {
  border-left-color: #ef4444;
}
.dialog-visual > span.onsite {
  border-left-color: #168dff;
}
.dialog-copy {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 32px;
}
.dialog-copy .eyebrow {
  margin-bottom: 9px;
}
.dialog-copy [data-slot='dialog-title'],
.dialog-copy h2 {
  margin: 0;
  font-size: 38px;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}
.dialog-copy [data-slot='dialog-description'],
.dialog-copy .modal-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: #9aa2ad;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.dialog-price {
  margin: 14px 0;
  padding: 11px 0;
  border-top: 1px solid #252b34;
  border-bottom: 1px solid #252b34;
  color: #4baeff;
  font-size: 25px;
  font-weight: 850;
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #252b34;
  border: 1px solid #252b34;
}
.spec-grid > div {
  padding: 10px;
  background: #0e1217;
}
.spec-grid span,
.spec-grid strong {
  display: block;
}
.spec-grid span {
  margin-bottom: 4px;
  color: #717a87;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.spec-grid strong {
  font-size: 13px;
}
.rating-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 15px 0;
}
.rating-grid > div > span {
  display: block;
  margin-bottom: 7px;
  color: #8e96a1;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rating-grid > div > div {
  display: flex;
  gap: 4px;
}
.rating-grid svg {
  width: 16px;
  height: 16px;
  color: #343b45;
  fill: #343b45;
}
.rating-grid svg.filled {
  color: #168dff;
  fill: #168dff;
  filter: drop-shadow(0 0 5px rgba(22, 141, 255, 0.45));
}
.dialog-action {
  width: 100%;
  margin-top: auto;
}
.modal-image-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 20px;
  display: flex;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(3, 7, 12, 0.68);
  transform: translateX(-50%);
  backdrop-filter: blur(7px);
}
.modal-image-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}
.modal-image-dots button.active {
  border-color: #168dff;
  background: #168dff;
  box-shadow: 0 0 9px rgba(22,141,255,.8);
}

/* Footer and secondary pages */
.site-footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, 1fr);
  gap: 35px;
  padding: 62px clamp(24px, 5.2vw, 92px) 26px;
  background: #030405;
  border-top: 1px solid #1f242b;
}
.site-footer > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: #9098a4;
  font-size: 13px;
}
.site-footer > div > strong {
  margin-bottom: 8px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.site-footer a,
.site-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.site-footer svg {
  width: 14px;
}
.site-footer .footer-brand {
  gap: 16px;
}
.footer-logo {
  display: block;
  width: 150px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}
.site-footer .footer-brand p {
  margin: 0;
  line-height: 1.6;
}
.site-footer small {
  grid-column: 1/-1;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #191d23;
  color: #626b77;
}
.site-footer small .footer-project-notice {
  display: block;
  margin-top: 7px;
  color: #747d89;
}
.subpage-hero {
  min-height: 590px;
  padding: 170px clamp(24px, 5.2vw, 92px) 90px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(
      90deg,
      rgba(1, 3, 6, 0.98),
      rgba(1, 3, 6, 0.72) 42%,
      rgba(1, 3, 6, 0.15)
    ),
    linear-gradient(0deg, #07090c, transparent 35%),
    url('../images/pdm-showroom-hero.png');
  background-size: cover;
  background-position: center;
}
.subpage-hero > div {
  max-width: 660px;
}
.subpage-hero > div > p:last-child {
  max-width: 580px;
  color: #b8bec7;
  font-size: 17px;
  line-height: 1.7;
}
.gallery-page,
.team-page {
  padding: 82px clamp(24px, 5.2vw, 92px) 110px;
  background: #07090c;
}
.subpage-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 30px;
}
.subpage-heading > div {
  display: flex;
  gap: 17px;
  align-items: flex-start;
}
.subpage-heading > div > svg {
  width: 35px;
  height: 35px;
  color: #168dff;
}
.subpage-heading .eyebrow {
  margin-bottom: 8px;
}
.gallery-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.gallery-filters button {
  padding: 8px 12px;
  border: 1px solid #282f38;
  background: #0b0e13;
  color: #939ba6;
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
}
.gallery-filters button.selected {
  border-color: #168dff;
  color: #55b3ff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 13px;
}
.gallery-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
  text-align: left;
}
.gallery-tile:first-child {
  grid-column: span 2;
}
.gallery-tile:nth-child(5) {
  grid-column: span 2;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  filter: brightness(0.72);
}
.gallery-tile:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}
.gallery-tile > span {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
  display: grid;
}
.gallery-tile small {
  color: #4fb1ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.gallery-tile strong {
  margin: 5px 0;
  font-size: 21px;
  text-transform: uppercase;
}
.gallery-tile em {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9fa7b2;
  font-size: 11px;
  font-style: normal;
}
.gallery-tile em svg,
.gallery-tile i svg {
  width: 13px;
}
.gallery-tile i {
  position: absolute;
  right: 18px;
  bottom: 19px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
}
.gallery-dialog {
  max-width: 850px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #090c10 !important;
  color: white !important;
}
.gallery-dialog > img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}
.gallery-dialog > [data-slot='dialog-header'] {
  padding: 10px 28px 30px;
}
.gallery-dialog [data-slot='dialog-title'] {
  font-size: 30px;
  text-transform: uppercase;
}
.gallery-dialog [data-slot='dialog-description'] {
  color: #a1a8b2;
}
.team-hero {
  background-position: 62% center;
}
.team-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 60px;
}
.team-story > p {
  margin: 0;
  color: #a4abb5;
  font-size: 16px;
  line-height: 1.8;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 72px;
}
.values-grid article {
  padding: 27px 23px;
  border: 1px solid #252b34;
  background: #0b0e13;
}
.values-grid svg {
  width: 29px;
  color: #168dff;
}
.values-grid strong {
  display: block;
  margin: 18px 0 8px;
  text-transform: uppercase;
}
.values-grid p {
  margin: 0;
  color: #8e96a1;
  font-size: 13px;
  line-height: 1.6;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.team-grid article {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 1.8vw, 28px);
  border: 1px solid #2a313c;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 22%, rgba(22, 141, 255, 0.12), transparent 40%),
    linear-gradient(145deg, #11161d, #090b0e 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 45px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.team-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 141, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 52px rgba(0, 0, 0, 0.3);
}
.team-grid .team-person-media {
  width: clamp(170px, 12vw, 204px);
  height: clamp(170px, 12vw, 204px);
  flex: 0 0 clamp(170px, 12vw, 204px);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 19px;
  border: 1px solid #168dff;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(22, 141, 255, 0.24), rgba(8, 12, 17, 0.9));
  box-shadow: 0 0 0 5px rgba(22, 141, 255, 0.06), 0 16px 32px rgba(0, 0, 0, 0.3);
  color: #5cb4ff;
  font-size: 40px;
  font-weight: 850;
}
.team-grid .team-person-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-grid small {
  color: #e72b23;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 750;
}
.team-grid h3 {
  margin: 9px 0 14px;
  font-size: clamp(27px, 2.25vw, 33px);
  line-height: 1.08;
  text-transform: uppercase;
}
.team-grid p {
  margin: 0;
  max-width: 34ch;
  color: #929aa5;
  font-size: 16px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

/* Hidden login and admin */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 35px;
  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(22, 141, 255, 0.12),
      transparent 28%
    ),
    radial-gradient(circle at 78% 80%, rgba(231, 43, 35, 0.1), transparent 26%),
    #050608;
}
.login-panel {
  width: min(440px, 100%);
  padding: 39px;
  border: 1px solid #29303a;
  background: rgba(9, 12, 16, 0.94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.login-panel > a:first-child {
  display: inline-block;
  margin-bottom: 35px;
}
.login-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid #168dff;
  color: #55b3ff;
}
.login-panel h1 {
  font-size: 35px;
}
.login-panel > p:not(.eyebrow) {
  color: #9098a4;
  line-height: 1.6;
}
.login-panel form {
  display: grid;
  gap: 16px;
  margin-top: 29px;
}
.login-panel label > span {
  display: block;
  margin-bottom: 7px;
  color: #929aa5;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.login-panel label > div {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #29303a;
  background: #080a0d;
}
.login-panel label svg {
  width: 17px;
  color: #68717e;
}
.login-panel input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}
.login-panel form .button {
  width: 100%;
  margin-top: 5px;
}
.back-link {
  display: block !important;
  margin: 24px 0 0 !important;
  color: #78818d;
  font-size: 12px;
}
.form-error {
  padding: 10px;
  border-left: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  font-size: 12px;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.admin-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px 1fr;
  background: #07090c;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #242a32;
  background: #050608;
}
.admin-sidebar > a {
  margin-bottom: 55px;
}
.admin-sidebar .admin-logo-link {
  display: block;
  width: 155px;
}
.admin-logo {
  display: block;
  width: 155px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
}
.admin-sidebar nav {
  display: grid;
  gap: 8px;
}
.admin-sidebar nav a,
.admin-sidebar > button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 0;
  background: none;
  color: #7f8793;
  font-size: 13px;
  text-align: left;
}
.admin-sidebar nav a.active {
  border-left: 2px solid #168dff;
  background: rgba(22, 141, 255, 0.08);
  color: #5eb6ff;
}
.admin-sidebar svg {
  width: 17px;
}
.admin-sidebar > button {
  margin-top: auto;
  cursor: pointer;
}
.admin-workspace {
  padding: 48px clamp(25px, 4vw, 65px);
}
.admin-workspace > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.admin-workspace h1 {
  font-size: 45px;
}
.admin-workspace > header p:last-child {
  margin: 8px 0 0;
  color: #858e9a;
}
.admin-message {
  margin-bottom: 16px;
  padding: 12px 15px;
  border-left: 3px solid #168dff;
  background: #0d1520;
  color: #a7cbed;
  font-size: 13px;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.admin-toolbar label {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  padding: 0 13px;
  border: 1px solid #272e37;
  background: #0b0e13;
}
.admin-toolbar label svg {
  width: 17px;
  color: #69727f;
}
.admin-toolbar input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}
.admin-toolbar > button {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #272e37;
  background: #0b0e13;
  color: #a1a9b4;
}
.admin-toolbar > button svg {
  width: 14px;
}
.admin-table {
  border: 1px solid #252b34;
  background: #0a0d11;
}
.admin-row {
  display: grid;
  grid-template-columns: 1.7fr 1fr 0.7fr 0.8fr 1.2fr;
  gap: 15px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid #20262e;
  color: #bec4cc;
  font-size: 13px;
}
.admin-table-head {
  color: #6f7885;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #0e1217;
}
.admin-vehicle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-vehicle > img {
  width: 78px;
  height: 52px;
  object-fit: cover;
}
.admin-vehicle strong,
.admin-vehicle small {
  display: block;
}
.admin-vehicle small,
.admin-row > span > small {
  margin-top: 4px;
  color: #727b87;
}
.admin-row i {
  padding: 5px 7px;
  border: 1px solid #265a3c;
  color: #54d98a;
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}
.admin-row i.sold {
  border-color: #6a2929;
  color: #f27474;
}
.admin-row i.onsite {
  border-color: #185ea0;
  color: #62b8ff;
}
.row-actions {
  display: flex;
  gap: 6px;
}
.row-actions button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border: 1px solid #2a313a;
  background: #0d1116;
  color: #b4bbc4;
  font-size: 11px;
  cursor: pointer;
}
.row-actions button.danger {
  color: #ef8181;
}
.row-actions svg {
  width: 13px;
}
.admin-loading {
  padding: 70px;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: #8d96a2;
}
.admin-loading svg {
  width: 18px;
}
.editor-dialog {
  width: min(980px, calc(100% - 30px)) !important;
  max-width: none !important;
  max-height: 92vh !important;
  overflow: auto !important;
  padding: 30px !important;
  background: #090c10 !important;
  color: white !important;
}
.editor-dialog [data-slot='dialog-title'] {
  font-size: 31px;
  text-transform: uppercase;
}
.vehicle-form {
  margin-top: 10px;
}
.editor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.editor-grid label {
  color: #8d96a2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.editor-grid input,
.editor-grid select,
.editor-grid textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #29303a;
  border-radius: 2px;
  background: #0e1217;
  color: white;
  outline: 0;
  text-transform: none;
  letter-spacing: normal;
}
.editor-grid input:focus,
.editor-grid select:focus,
.editor-grid textarea:focus {
  border-color: #168dff;
}
.editor-grid label.wide {
  grid-column: 1/-1;
}
.editor-grid label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
}
.editor-grid label.check input {
  width: auto;
  margin: 0;
}
.editor-save {
  width: 100%;
  margin-top: 22px;
}
.admin-card {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid #252b34;
  background: #0a0d11;
}
.admin-card h2 {
  margin: 0 0 20px;
  color: #f2f4f7;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.content-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.content-fields label > span {
  display: block;
  margin-bottom: 6px;
  color: #8d96a2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.content-fields input,
.content-fields select,
.content-fields textarea {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid #29303a;
  border-radius: 2px;
  background: #0e1217;
  color: white;
  outline: 0;
  font: inherit;
}
.content-fields input:focus,
.content-fields select:focus,
.content-fields textarea:focus {
  border-color: #168dff;
}
.content-fields .wide {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  gap: 10px;
}
.form-actions .button {
  min-width: 180px;
}
.admin-list {
  display: grid;
}
.admin-list > article {
  display: grid;
  grid-template-columns: 58px minmax(180px, 1fr) 70px auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #20262e;
}
.admin-list > article:first-child {
  border-top: 0;
}
.admin-list strong,
.admin-list small {
  display: block;
}
.admin-list small {
  margin-top: 4px;
  color: #727b87;
}
.admin-list > article > span {
  color: #727b87;
  font-size: 12px;
  text-align: center;
}
.admin-avatar,
.admin-thumb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #29445f;
  background: #0c1824;
  color: #55b3ff;
  font-weight: 800;
  object-fit: cover;
}
.current-gallery-image {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #29303a;
  background: #0e1217;
}
.current-gallery-image img {
  width: 150px;
  height: 95px;
  object-fit: cover;
}
.current-gallery-image label {
  color: #e68a8a;
  font-size: 12px;
}
.current-gallery-image input {
  display: inline-block;
  width: auto;
  margin-right: 6px;
}

@media (max-width: 1100px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-row {
    grid-template-columns: 1.5fr 0.8fr 0.7fr 0.8fr;
  }
  .admin-row > span:nth-child(2),
  .admin-table-head > span:nth-child(2) {
    display: none;
  }
  .editor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-fields {
    grid-template-columns: 1fr;
  }
  .content-fields .wide {
    grid-column: auto;
  }
}
@media (max-width: 850px) {
  .site-header {
    grid-template-columns: 110px 1fr;
  }
  .site-logo,
  .site-logo img {
    width: 105px;
  }
  .header-actions {
    justify-self: end;
  }
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
  .site-header nav {
    display: none;
    position: absolute;
    inset: 76px 0 auto;
    padding: 12px 20px 20px;
    background: #050608;
    border-bottom: 1px solid #29303a;
  }
  .site-header nav.open {
    display: grid;
    gap: 0;
  }
  .site-header nav a {
    padding: 15px 4px;
  }
  .site-header nav .active::after {
    inset: auto 0 6px;
  }
  .catalog-intro,
  .subpage-heading {
    align-items: start;
    flex-direction: column;
  }
  .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .filter-select {
    min-width: 0;
  }
  .reset-button {
    margin-left: 0;
  }
  .vehicle-grid {
    grid-template-columns: 1fr;
  }
  .vehicle-dialog {
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(180px, 34%) minmax(0, 66%) !important;
    width: min(680px, calc(100% - 20px)) !important;
    height: calc(100dvh - 20px) !important;
  }
  .dialog-visual {
    min-height: 0;
  }
  .dialog-copy {
    padding: 20px 22px;
  }
  .dialog-copy .modal-description {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  .dialog-price {
    margin: 8px 0;
    padding: 8px 0;
  }
  .spec-grid > div {
    padding: 7px 9px;
  }
  .rating-grid {
    gap: 7px;
    margin: 9px 0;
  }
  .rating-grid > div > span {
    margin-bottom: 3px;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
  .admin-list > article {
    grid-template-columns: 54px 1fr;
  }
  .admin-list > article > span {
    display: none;
  }
  .admin-list .row-actions {
    grid-column: 1 / -1;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery-tile:first-child,
  .gallery-tile:nth-child(5) {
    grid-column: auto;
  }
  .team-story {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-page {
    display: block;
  }
  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px 20px;
  }
  .admin-sidebar > a {
    margin: 0 auto 0 0;
  }
  .admin-sidebar nav {
    display: none;
  }
  .admin-sidebar > button {
    margin: 0;
  }
  .admin-workspace {
    padding: 30px 18px;
  }
  .admin-workspace > header {
    align-items: start;
    flex-direction: column;
  }
  .admin-table {
    overflow-x: auto;
  }
  .admin-row {
    min-width: 720px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-grid label.wide {
    grid-column: auto;
  }
}
@media (max-width: 520px) {
  .filter-row {
    grid-template-columns: 1fr;
  }
  .catalog-section,
  .gallery-page,
  .team-page {
    padding-left: 18px;
    padding-right: 18px;
  }
  .vehicle-image {
    height: 190px;
  }
  .site-footer {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-footer small {
    grid-column: auto;
  }
  .subpage-hero {
    min-height: 540px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-grid article {
    aspect-ratio: auto;
    min-height: 360px;
  }
  .login-page {
    padding: 16px;
  }
  .login-panel {
    padding: 27px 22px;
  }
  .rating-grid,
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dialog-copy [data-slot='dialog-title'],
  .dialog-copy h2 {
    font-size: 30px;
  }
  .editor-dialog {
    padding: 22px 17px !important;
  }
}
main[aria-busy="true"] { cursor: progress; }
form[aria-busy="true"] { opacity: .72; pointer-events: none; }
button:disabled { cursor: progress; opacity: .72; }
.admin-message.async-message { animation: admin-message-in .2s ease-out; }
@keyframes admin-message-in { from { opacity: 0; transform: translateY(-5px); } }
