:root {
  --rm-dark: #232628;
  --rm-darker: #171a1d;
  --rm-red: #ae062f;
  --rm-red-dark: #8d0e0e;
  --rm-orange: #cc6119;
  --rm-paper: #f3f5f7;
  --rm-soft: #eaedf0;
  --rm-line: #d8dde3;
  --rm-ink: #232628;
  --rm-muted: #777f88;
  --rm-white: #ffffff;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--rm-white);
  color: var(--rm-ink);
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

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

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

.container {
  margin: 0 auto;
  max-width: 1140px;
  padding: 0 18px;
  width: 100%;
}

h1,
h2,
h3,
.heading-font,
.button,
.price,
.admin-sidebar,
.admin-topbar {
  font-family: "Montserrat", "Open Sans", sans-serif;
}

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

.site-header {
  background: var(--rm-dark);
  color: #fff;
}

.header-main {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 98px;
}

.brand img {
  height: auto;
  width: 230px;
}

.header-contact {
  align-items: center;
  display: flex;
  gap: 28px;
}

.header-contact span {
  color: rgba(255, 255, 255, .64);
  display: grid;
  gap: 2px;
  text-transform: uppercase;
}

.header-contact strong {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
}

.site-nav {
  background: var(--rm-darker);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.nav-inner {
  align-items: center;
  display: flex;
  min-height: 54px;
}

.nav-inner a {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 19px 18px;
  text-transform: uppercase;
}

.nav-inner a.active,
.nav-inner a:hover {
  background: var(--rm-red);
}

.nav-inner .admin-link {
  margin-left: auto;
  background: rgba(255, 255, 255, .08);
}

.hero {
  background: #171a1d;
  color: #fff;
  min-height: 560px;
  padding: 98px 0;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: .98;
  max-width: 760px;
}

.hero p {
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  max-width: 620px;
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.hero-visual img {
  filter: drop-shadow(0 30px 38px rgba(0, 0, 0, .34));
  margin-left: auto;
  width: min(520px, 100%);
}

.hero-card {
  background: rgba(255, 255, 255, .94);
  border-top: 5px solid var(--rm-red);
  color: var(--rm-ink);
  padding: 28px;
}

.hero-card span,
.admin-card span,
.eyebrow,
.vehicle-card span,
.listing-toolbar span,
.meta-grid span,
.import-paths span,
.mapping-grid span {
  color: var(--rm-muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 58px;
  line-height: 1;
  margin: 8px 0;
}

.eyebrow {
  color: var(--rm-orange);
  margin-bottom: 12px;
}

.eyebrow.dark {
  color: var(--rm-red);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  align-items: center;
  background: var(--rm-red);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-transform: uppercase;
}

.button:hover {
  background: var(--rm-red-dark);
  color: #fff;
}

.button.ghost,
.button.muted {
  background: var(--rm-dark);
}

.button.danger {
  background: #a82b16;
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
}

.button.full {
  width: 100%;
}

.section {
  padding: 56px 0;
}

.section-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 36px;
  margin-bottom: 0;
}

.text-link {
  color: var(--rm-red);
  font-weight: 800;
}

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

.vehicle-card,
.admin-card,
.admin-panel,
.filter-sidebar,
.listing-row,
.request-box,
.login-card {
  background: #fff;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(35, 38, 40, .08);
}

.vehicle-media,
.listing-image,
.detail-media {
  align-items: center;
  background: linear-gradient(135deg, #eceff3, #d9dee4);
  color: var(--rm-red);
  display: flex;
  font-family: "Montserrat", sans-serif;
  font-size: 54px;
  font-weight: 800;
  justify-content: center;
}

.vehicle-media img,
.listing-image img,
.detail-media img,
.admin-thumb img {
  height: 100%;
  object-fit: contain;
  padding: 14px;
  width: 100%;
}

.vehicle-media {
  aspect-ratio: 16 / 9;
}

.vehicle-body {
  padding: 18px;
}

.vehicle-body h3 {
  font-size: 18px;
  line-height: 1.25;
  min-height: 68px;
}

.vehicle-price,
.detail-price {
  color: var(--rm-red);
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 800;
  margin: 12px 0;
}

.vehicle-price small,
.detail-price small {
  color: var(--rm-muted);
  font-size: 13px;
  margin-left: 4px;
}

.page-title {
  background: var(--rm-soft);
  border-bottom: 1px solid var(--rm-line);
  padding: 44px 0;
}

.page-title h1 {
  font-size: 50px;
  margin-bottom: 4px;
}

.page-title p {
  color: var(--rm-muted);
  margin-bottom: 0;
}

.inventory {
  padding: 34px 0 58px;
}

.inventory-grid {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: 270px minmax(0, 1fr);
}

.filter-sidebar {
  padding: 20px;
}

.filter-title {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-icon {
  align-items: center;
  background: var(--rm-red);
  color: #fff;
  display: inline-flex;
  font-family: "Montserrat", sans-serif;
  height: 34px;
  justify-content: center;
  width: 34px;
}

input,
select,
textarea {
  background: #eceff3;
  border: 2px solid #eceff3;
  color: var(--rm-ink);
  display: block;
  font: inherit;
  min-height: 46px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  background: #fff;
  border-color: var(--rm-red);
}

label {
  color: var(--rm-muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin: 14px 0 5px;
  text-transform: uppercase;
}

.filter-sidebar form,
.request-box {
  display: grid;
  gap: 12px;
}

.listing-area {
  display: grid;
  gap: 16px;
}

.listing-toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.listing-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

.listing-row.compact {
  grid-template-columns: 130px minmax(0, 1fr);
  box-shadow: none;
}

.listing-image {
  min-height: 170px;
}

.listing-content {
  padding: 20px;
}

.listing-top {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.listing-top h2 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 0;
}

.listing-top h2 a:hover {
  color: var(--rm-red);
}

.price {
  color: var(--rm-red);
  font-size: 28px;
  font-weight: 800;
  white-space: nowrap;
}

.meta-grid {
  border-top: 1px solid var(--rm-line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  padding-top: 18px;
}

.meta-grid strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  margin-top: 3px;
}

.vehicle-detail-hero {
  background: var(--rm-dark);
  color: #fff;
  padding: 46px 0;
}

.detail-grid {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: 380px minmax(0, 1fr);
}

.detail-media {
  aspect-ratio: 16 / 10;
}

.image-edit-box {
  background: #f7f9fa;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
}

.image-edit-box small {
  color: var(--rm-muted);
  display: block;
  margin-top: 6px;
}

.check-line {
  align-items: center;
  color: var(--rm-ink);
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  margin: 2px 0 0;
  text-transform: none;
}

.check-line input {
  display: inline-block;
  min-height: 0;
  width: auto;
}

.admin-thumb {
  align-items: center;
  background: #eceff3;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  color: var(--rm-red);
  display: flex;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  width: 78px;
}

.admin-thumb span {
  font-size: 24px;
}

.vehicle-detail-hero h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.05;
}

.vehicle-detail-hero p {
  color: rgba(255, 255, 255, .72);
}

.detail-columns {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.request-box,
.public-panel {
  padding: 22px;
}

.request-box h2 {
  font-size: 22px;
}

.vehicle-features {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 4px 0 18px;
}

.feature-tile {
  align-items: center;
  background: #f7f9fa;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  display: grid;
  gap: 2px 11px;
  grid-template-areas:
    "icon label"
    "icon value";
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 76px;
  padding: 11px;
}

.feature-icon {
  align-items: center;
  background: #fff;
  border: 1px solid var(--rm-line);
  color: var(--rm-red);
  display: inline-flex;
  grid-area: icon;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.feature-icon svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.feature-tile span:not(.feature-icon) {
  color: var(--rm-muted);
  font-size: 11px;
  font-weight: 800;
  grid-area: label;
  line-height: 1.2;
  text-transform: uppercase;
}

.feature-tile strong {
  color: var(--rm-ink);
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  grid-area: value;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.canoni-table {
  min-width: 0;
}

.canoni-table .fee-price {
  color: var(--rm-red);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  white-space: nowrap;
}

.site-footer {
  background: var(--rm-dark);
  color: #fff;
  padding: 42px 0;
}

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

.footer-logo {
  margin-bottom: 12px;
  width: 210px;
}

.site-footer span,
.site-footer p {
  color: rgba(255, 255, 255, .68);
  display: block;
}

.site-footer strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 10px;
}

.site-footer a:hover {
  color: #fff;
}

.content-page {
  color: #3a3f44;
  font-size: 16px;
  max-width: 860px;
}

.content-page-wide {
  max-width: 1140px;
}

.content-page-full,
.content-page-embed {
  max-width: none;
  width: 100%;
}

.content-page-full {
  padding: 0 18px;
}

.content-page-embed {
  padding: 0;
}

.page-section-full {
  padding: 34px 0;
}

.page-section-embed {
  padding: 0;
}

.content-page-full iframe,
.content-page-embed iframe {
  border: 0;
  display: block;
  max-width: 100%;
  width: 100%;
}

.content-page-embed #renthubIframe {
  min-height: 1000px;
  min-width: 100%;
  width: 100%;
}

.content-page h2,
.content-page h3 {
  color: var(--rm-ink);
  margin-top: 28px;
}

.content-page p,
.content-page li {
  margin-bottom: 14px;
}

.cookie-banner {
  align-items: start;
  background: var(--rm-darker);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .24);
  color: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 18px;
  max-width: 960px;
  padding: 18px;
  position: fixed;
  right: 18px;
  z-index: 50;
}

.cookie-banner[hidden],
.cookie-options[hidden] {
  display: none;
}

.cookie-copy strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  margin-bottom: 4px;
}

.cookie-copy p {
  color: rgba(255, 255, 255, .76);
  margin-bottom: 6px;
}

.cookie-copy a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
}

.cookie-options {
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  grid-column: 1 / -1;
  padding-top: 4px;
}

.cookie-options .check-line {
  color: rgba(255, 255, 255, .86);
}

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

.admin-body {
  background: var(--rm-paper);
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--rm-dark);
  color: #fff;
  padding: 22px;
}

.admin-brand {
  display: block;
  padding: 8px 0 20px;
}

.admin-brand img {
  width: 210px;
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar nav form {
  margin: 0;
}

.admin-sidebar a,
.admin-sidebar nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, .76);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  text-align: left;
  text-transform: uppercase;
  width: 100%;
}

.admin-sidebar a span,
.admin-sidebar nav button span {
  align-items: center;
  background: rgba(255, 255, 255, .08);
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.admin-sidebar a.active,
.admin-sidebar a:hover,
.admin-sidebar nav button:hover {
  background: var(--rm-red);
  color: #fff;
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

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

.admin-topbar h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  margin-bottom: 0;
}

.admin-user {
  background: #fff;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: right;
}

.admin-user strong,
.admin-user span {
  display: block;
}

.admin-user span {
  color: var(--rm-muted);
  font-size: 12px;
  text-transform: uppercase;
}

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

.admin-card,
.admin-panel {
  padding: 20px;
}

.admin-card strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 42px;
  line-height: 1;
  margin: 8px 0 14px;
}

.admin-card.warning {
  border-top: 4px solid var(--rm-orange);
}

.admin-panel {
  overflow: hidden;
}

.mt {
  margin-top: 20px;
}

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

.panel-head h2 {
  font-size: 22px;
  margin-bottom: 0;
}

.panel-note {
  color: var(--rm-muted);
  margin: 4px 0 0;
}

.status-badge {
  background: #f0f3f5;
  border: 1px solid var(--rm-line);
  color: var(--rm-ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  text-transform: uppercase;
}

.status-badge.danger {
  background: #fff2f0;
  border-color: #f0b4a8;
  color: #a82b16;
}

.status-badge.success {
  background: #f0fbf5;
  border-color: #b9e7c9;
  color: #246b3c;
}

.status-badge.warning {
  background: #fff7e8;
  border-color: #f0c982;
  color: #8b5200;
}

.notice {
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  margin: 12px 0 16px;
  padding: 10px 12px;
}

.notice.success {
  background: #f0fbf5;
  border-color: #b9e7c9;
  color: #246b3c;
}

.notice.error {
  background: #fff2f0;
  border-color: #f0b4a8;
  color: #a82b16;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.workflow-grid,
.mapping-grid,
.import-paths {
  display: grid;
  gap: 12px;
}

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

.workflow-grid div,
.mapping-grid div,
.import-paths div,
.empty-state {
  background: #f7f9fa;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  padding: 14px;
}

.workflow-grid strong,
.workflow-grid span,
.import-paths span,
.import-paths strong,
.mapping-grid strong,
.mapping-grid em,
.empty-state strong,
.empty-state span {
  display: block;
}

.workflow-grid span,
.empty-state span {
  color: var(--rm-muted);
  margin-top: 4px;
}

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

.mapping-grid em {
  color: var(--rm-red);
  font-style: normal;
  font-weight: 800;
}

.admin-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1.6fr) repeat(3, minmax(150px, 1fr)) auto auto;
}

.image-sync-form {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.image-review-filters {
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto auto;
}

.table-wrap {
  overflow: auto;
}

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

th,
td {
  border-bottom: 1px solid var(--rm-line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--rm-muted);
  font-size: 12px;
  text-transform: uppercase;
}

td small {
  color: var(--rm-muted);
  display: block;
  font-size: 11px;
  margin-top: 4px;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

td a {
  color: var(--rm-red);
  font-weight: 800;
}

.edit-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 440px;
}

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

.content-form .button {
  margin-top: 16px;
}

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

.image-review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.image-compare span,
.suggestion-meta span {
  color: var(--rm-muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.image-choice {
  align-items: center;
  background: #f7f9fa;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  display: flex;
  height: 160px;
  justify-content: center;
  overflow: hidden;
}

.image-choice.suggested {
  background: #fff;
  border-color: #d4dbe2;
}

.image-choice img {
  height: 100%;
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

.image-choice strong {
  color: var(--rm-red);
  font-family: "Montserrat", sans-serif;
  font-size: 52px;
}

.suggestion-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1.4fr 90px;
}

.suggestion-meta div {
  background: #f7f9fa;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  padding: 10px;
}

.suggestion-meta strong {
  display: block;
  font-size: 13px;
}

.vehicle-suggestions {
  border-top: 1px solid var(--rm-line);
  margin-top: 22px;
  padding-top: 20px;
}

.vehicle-suggestion-grid {
  display: grid;
  gap: 12px;
}

.vehicle-suggestion-card {
  align-items: center;
  background: #f7f9fa;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  padding: 12px;
}

.vehicle-suggestion-card img {
  background: #fff;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  height: 92px;
  object-fit: contain;
  padding: 8px;
  width: 150px;
}

.vehicle-suggestion-card strong,
.vehicle-suggestion-card small {
  display: block;
}

.vehicle-suggestion-card strong {
  margin-top: 8px;
}

.vehicle-suggestion-card small {
  color: var(--rm-muted);
  margin-top: 3px;
}

.settings-form {
  display: block;
}

.sticky-actions {
  background: rgba(243, 245, 247, .94);
  bottom: 0;
  margin-top: 16px;
  padding: 14px 0;
  position: sticky;
  z-index: 5;
}

.admin-help {
  background: #f7f9fa;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  padding: 12px 14px;
}

.admin-help.compact {
  align-self: end;
  min-height: 46px;
}

.admin-help strong,
.admin-help span {
  display: block;
}

.admin-help span {
  color: var(--rm-muted);
  margin-top: 4px;
}

.seo-panel {
  border-top: 1px solid var(--rm-line);
  margin-top: 20px;
  padding-top: 20px;
}

.seo-meter {
  background: #e4e8ec;
  border-radius: 99px;
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
}

.seo-meter span {
  background: #a9b1ba;
  display: block;
  height: 100%;
  transition: width .18s ease;
  width: 0;
}

.seo-meter span.good,
.seo-score.good {
  background: #1e8d4d;
}

.seo-meter span.warn,
.seo-score.warn {
  background: var(--rm-orange);
}

.seo-meter span.bad {
  background: #a82b16;
}

.seo-count {
  color: var(--rm-muted);
  display: block;
  margin-top: 4px;
}

.seo-count.good {
  color: #1e8d4d;
}

.seo-count.warn {
  color: var(--rm-orange);
}

.seo-count.bad {
  color: #a82b16;
}

.seo-score {
  background: #f0f3f5;
  border: 1px solid var(--rm-line);
  color: var(--rm-ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  text-transform: uppercase;
}

.seo-score.good,
.seo-score.warn {
  border-color: transparent;
  color: #fff;
}

.google-preview {
  background: #fff;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  margin-top: 14px;
  padding: 14px;
}

.google-preview span {
  color: #27613b;
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.google-preview strong {
  color: #1a0dab;
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 3px;
}

.google-preview p {
  color: #4d5156;
  margin-bottom: 0;
}

.preview-panel .listing-row {
  margin-top: 12px;
}

.login-screen {
  align-items: center;
  background: var(--rm-dark);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 18px;
}

.login-card {
  padding: 30px;
  width: min(430px, 100%);
}

.login-card img {
  background: var(--rm-dark);
  margin-bottom: 18px;
  padding: 12px;
  width: 220px;
}

.login-card h1 {
  font-size: 28px;
}

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

.alert {
  background: #fff2f0;
  border: 1px solid #f0b4a8;
  color: #a82b16;
  margin: 14px 0;
  padding: 10px;
}

.empty-state {
  text-align: center;
}

@media (max-width: 1080px) {
  .admin-shell,
  .inventory-grid,
  .detail-grid,
  .detail-columns,
  .edit-layout,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid,
  .feature-grid,
  .workflow-grid,
  .mapping-grid,
  .image-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .header-main,
  .nav-inner,
  .admin-topbar,
  .section-head,
  .listing-top,
  .footer-grid,
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .nav-inner a,
  .nav-inner .admin-link {
    margin-left: 0;
  }

  .header-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .listing-row,
  .listing-row.compact {
    grid-template-columns: 1fr;
  }

  .meta-grid,
  .stats-grid,
  .feature-grid,
  .workflow-grid,
  .mapping-grid,
  .image-review-grid,
  .image-compare,
  .suggestion-meta,
  .form-grid,
  .admin-filters,
  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .vehicle-suggestion-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .vehicle-suggestion-card img {
    width: 100%;
  }

  .public-panel .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .canoni-wrap {
    overflow: visible;
  }

  .canoni-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 0;
  }

  .canoni-table thead {
    display: none;
  }

  .canoni-table,
  .canoni-table tbody,
  .canoni-table tr,
  .canoni-table td {
    display: block;
    width: 100%;
  }

  .canoni-table tr {
    background: #f7f9fa;
    border: 1px solid var(--rm-line);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
  }

  .canoni-table td {
    align-items: center;
    border-bottom: 1px solid var(--rm-line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-height: 48px;
    padding: 11px 13px;
    text-align: right;
  }

  .canoni-table td:last-child {
    border-bottom: 0;
  }

  .canoni-table td::before {
    color: var(--rm-muted);
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
  }

  .canoni-table .fee-price {
    background: #fff;
    font-size: 16px;
  }

  .admin-main {
    padding: 18px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .button {
    flex: 1 1 140px;
  }

  .page-title h1 {
    font-size: 38px;
  }
}

@media (max-width: 460px) {
  .vehicle-features {
    grid-template-columns: 1fr;
  }
}
