:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e8e8ed;
  --paper: #ffffff;
  --soft: #f5f5f7;
  --mint: #0071e3;
  --mint-dark: #005bbf;
  --amber: #f5a524;
  --rust: #bf4800;
  --blue: #0071e3;
  --graphite: #1d1d1f;
  --shadow: 0 24px 58px rgba(0, 0, 0, .12);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fbfbfd;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(16px, 4vw, 52px);
  border-bottom: 1px solid rgba(232, 232, 237, .82);
  background: rgba(251, 251, 253, .84);
  backdrop-filter: blur(22px);
}
.brand, .nav-actions, .main-nav, .language-switch, .hero-actions, .footer-links {
  display: flex;
  align-items: center;
}
.brand { gap: 11px; font-weight: 900; }
.brand span:last-child { white-space: nowrap; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: white;
  background: #1d1d1f;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
  font-size: 13px;
  letter-spacing: 0;
}
.brand-mark.has-logo-image {
  color: transparent;
  background-color: white;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px solid var(--line);
}
.brand-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
.main-nav { justify-content: center; gap: clamp(12px, 2vw, 24px); font-size: 14px; color: var(--muted); font-weight: 700; }
.main-nav a:hover, .text-link:hover { color: var(--mint-dark); }
.nav-actions { gap: 12px; }
.language-switch {
  gap: 4px;
  width: 166px;
  max-width: min(44vw, 166px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  border: 1px solid rgba(232, 232, 237, .95);
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}
.language-switch a {
  flex: 0 0 auto;
  scroll-snap-align: center;
  min-width: 34px;
  text-align: center;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.language-switch a[aria-current="true"] { background: var(--ink); color: white; box-shadow: 0 6px 15px rgba(0, 0, 0, .14); }
.language-switch.is-wheel {
  width: 166px;
  max-width: min(44vw, 166px);
  overflow: visible;
  scroll-snap-type: none;
}
.language-switch.is-wheel > a {
  display: none;
}
.language-wheel {
  display: grid;
  gap: 2px;
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.language-wheel select {
  min-height: 34px;
  padding: 5px 28px 5px 9px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.language-wheel span {
  padding-left: 4px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--mint);
  border-radius: 999px;
  background: var(--mint);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
}
.button:hover { transform: translateY(-1px); }
.button.secondary { color: var(--mint); background: transparent; border-color: transparent; box-shadow: none; }
.button.danger { color: var(--rust); border-color: rgba(191, 72, 0, .28); background: white; }
.button.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.button.tiny { min-height: 30px; padding: 0 10px; font-size: 12px; }
.locale-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  color: white;
  background: var(--graphite);
  font-size: 14px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 22px;
  cursor: pointer;
}
.hero {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 32px;
  min-height: 640px;
  min-height: min(640px, calc(100svh - 112px));
  padding: 58px clamp(16px, 5vw, 68px) 42px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  border-bottom: 1px solid var(--line);
}
.hero h1, .page-hero h1, .article h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1.03;
  letter-spacing: 0;
  max-width: 1100px;
}
.hero-copy { max-width: 980px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--rust);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.lead, .page-hero p, .section-heading p, .article .lead {
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}
.hero-actions { flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px auto 0;
  max-width: 900px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.stats-row div {
  padding: 22px;
  border: 0;
  border-radius: 0;
  background: white;
  box-shadow: none;
}
.stats-row strong { display: block; font-size: 34px; }
.stats-row span { color: var(--muted); font-size: 13px; }
.hero-media img, .detail-media img {
  width: 100%;
  min-height: 220px;
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 38px 45px rgba(0,0,0,.14));
}
.section, .page-hero, .vehicle-detail-hero, .detail-layout, .form-layout, .brand-grid, .content-block, .article {
  padding: clamp(36px, 6vw, 72px) clamp(16px, 5vw, 64px);
}
.page-hero {
  text-align: center;
}
.page-hero > * {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(16px, 5vw, 64px) 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.breadcrumbs a {
  color: var(--mint-dark);
}
.breadcrumbs span:last-child {
  color: var(--ink);
}
.page-hero.slim {
  padding-top: 82px;
  padding-bottom: 42px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f5f5f7);
  border-bottom: 1px solid var(--line);
}
.page-hero.slim h1, .vehicle-detail-hero h1 { font-size: 48px; }
.section-heading {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
}
.section-heading h2, .detail-main h2, .spec-panel h2, .content-block h2 {
  margin: 0 0 10px;
  font-size: 46px;
  letter-spacing: 0;
}
.muted-band { background: #f5f5f7; }
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.vehicle-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
.vehicle-grid.featured-eight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.vehicle-grid.listing { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 clamp(16px, 5vw, 64px) 78px; max-width: none; }
.vehicle-card, .guide-card, .brand-card, .spec-panel, .contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
  box-shadow: none;
}
.vehicle-card { display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.vehicle-card.is-pinned, .guide-card.is-pinned {
  border-color: rgba(0, 113, 227, .38);
  box-shadow: 0 14px 34px rgba(0, 113, 227, .08);
}
.vehicle-card:hover, .guide-card:hover, .brand-card:hover {
  transform: translateY(-3px);
  border-color: #d2d2d7;
  box-shadow: 0 18px 42px rgba(0,0,0,.08);
}
.brand-card {
  display: block;
}
.guide-card.is-clickable {
  cursor: pointer;
}
.guide-card.is-clickable:focus {
  outline: 2px solid rgba(0, 113, 227, .24);
  outline-offset: 3px;
}
.daily-guide-card {
  border-color: rgba(0, 113, 227, .24);
}
.vehicle-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 18px;
  background: #f5f5f7;
}
.vehicle-visual img { width: 100%; height: 100%; max-height: 190px; object-fit: contain; }
.vehicle-card-body, .guide-card, .brand-card, .spec-panel, .contact-panel { padding: 22px; }
.vehicle-card h3, .guide-card h3, .brand-card h3 { margin: 6px 0 10px; font-size: 24px; line-height: 1.18; }
.vehicle-card p, .guide-card p, .brand-card p, .contact-panel p, .article p { color: var(--muted); line-height: 1.65; }
.guide-card-image {
  margin: 14px 0 14px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f5f7;
}
.guide-card-image img,
.page-feature-media img,
.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meta { color: var(--rust); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.quick-specs, .spec-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.quick-specs div, .spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
dt { color: var(--muted); }
dd { margin: 0; font-weight: 800; text-align: end; }
.text-link { color: var(--mint-dark); font-weight: 900; }
.guide-grid, .brand-grid, .process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.guide-grid.wide { padding: 0 clamp(16px, 5vw, 64px) 72px; }
.listing-tools {
  display: grid;
  grid-template-columns: minmax(260px, 640px) auto;
  gap: 14px;
  align-items: end;
  max-width: 1180px;
  margin: 24px auto 18px;
  padding: 0 clamp(16px, 5vw, 64px);
}
.site-search {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.site-search input {
  min-height: 48px;
  font-size: 16px;
}
.listing-count {
  margin: 0;
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.listing-empty {
  display: grid;
  gap: 6px;
  max-width: 1180px;
  margin: -42px auto 72px;
  padding: 18px clamp(16px, 5vw, 64px);
  color: var(--muted);
  text-align: center;
}
.listing-empty strong {
  color: var(--ink);
  font-size: 18px;
}
.section-more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.section-more .button {
  min-width: min(100%, 260px);
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 0 clamp(16px, 5vw, 64px);
}
label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; }
select, input, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
  box-shadow: 0 1px 0 rgba(17, 28, 26, .03);
}
select:focus, input:focus, textarea:focus {
  outline: 2px solid rgba(0, 113, 227, .16);
  border-color: rgba(0, 113, 227, .42);
}
textarea { resize: vertical; }
.vehicle-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f5f5f7);
  border-bottom: 1px solid var(--line);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}
.detail-layout .spec-panel {
  position: sticky;
  top: 88px;
}
.detail-main {
  max-width: 860px;
}
.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding: 12px 12px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  color: var(--mint-dark);
  font-weight: 900;
}
.rtl .check-list li { padding: 12px 42px 12px 12px; }
.rtl .check-list li::before { left: auto; right: 14px; }
details {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
summary { cursor: pointer; font-weight: 900; }
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: none;
}
.lead-form .full, .lead-form button, .form-status { grid-column: 1 / -1; }
.small-copy { font-size: 13px; }
.content-block { max-width: 1100px; margin: 0 auto; }
.article { max-width: 900px; margin: 0 auto; background: white; }
.article h2 {
  margin: 42px 0 14px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.22;
}
.article p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.85;
}
.article .lead {
  margin-top: 14px;
  margin-bottom: 22px;
}
.page-feature-section {
  padding-top: 0;
  padding-bottom: clamp(28px, 4vw, 52px);
}
.page-feature-media {
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 21 / 8;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f5f7;
}
.content-block > .page-feature-media {
  margin-bottom: 28px;
  aspect-ratio: 16 / 7;
}
.contact-visual {
  margin: 0 0 16px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f5f7;
}
.article-media {
  margin: 24px 0;
}
.article-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}
.article-media figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f5f5f7;
}
.site-footer, .site-footer a { color: var(--muted); }
.footer-links { gap: 14px; flex-wrap: wrap; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}
.social-link:hover {
  background: white;
}
.review-admin {
  min-height: 100vh;
  background: #f5f5f7;
}
.review-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(14px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 253, .92);
  backdrop-filter: blur(18px);
}
.review-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.review-nav a {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.review-nav a[aria-current="page"],
.review-nav a:hover {
  color: var(--ink);
  background: white;
}
.review-workspace {
  display: grid;
  grid-template-columns: 292px minmax(360px, .9fr) minmax(460px, 1.1fr);
  gap: 14px;
  padding: 14px;
  min-height: calc(100vh - 64px);
}
.review-rail,
.review-queue,
.review-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  min-width: 0;
}
.review-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}
.review-rail h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}
.review-rail p {
  color: var(--muted);
  line-height: 1.55;
}
.review-role-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  color: white;
  background: #1d1d1f;
}
.review-role-card .eyebrow,
.review-role-card p {
  color: rgba(255, 255, 255, .72);
}
.review-role-card h1 {
  font-size: 28px;
}
.review-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.review-stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfbfd;
}
.review-stats span,
.review-stats small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.review-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  line-height: 1;
}
.pipeline-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pipeline-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pipeline-list li > span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
}
.pipeline-list small {
  color: var(--muted);
}
.agent-board {
  display: grid;
  gap: 8px;
}
.agent-card {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
}
.agent-card strong {
  font-size: 14px;
}
.agent-card small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.45;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
}
.status-dot.running { background: var(--mint); box-shadow: 0 0 0 4px rgba(0, 113, 227, .1); }
.status-dot.waiting { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 165, 36, .12); }
.status-dot.review { background: #0b6b3f; box-shadow: 0 0 0 4px rgba(11, 107, 63, .12); }
.review-links {
  display: grid;
  gap: 8px;
  margin-top: auto;
}
.review-links a {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--mint-dark);
  font-weight: 900;
}
.admin-security-note {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
}
.admin-security-note strong {
  font-size: 13px;
}
.admin-security-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.review-queue {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.review-toolbar {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.review-queue-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.review-queue-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.25;
}
.review-mode {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0b6b3f;
  background: rgba(11, 107, 63, .08);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.review-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.segmented {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.segmented button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  background: #f5f5f7;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.segmented button[aria-pressed="true"] {
  color: white;
  background: var(--ink);
}
.review-search {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: center;
}
.review-search span {
  color: var(--muted);
  font-size: 13px;
}
.review-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  overflow: auto;
}
.review-item {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  background: white;
  font: inherit;
  cursor: pointer;
}
.review-item[aria-current="true"] {
  border-color: rgba(0, 113, 227, .48);
  box-shadow: inset 3px 0 0 var(--mint);
}
.review-item h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.28;
}
.review-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.article-owner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f5f5f7;
}
.article-owner span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.article-owner strong {
  font-size: 13px;
}
.review-meta,
.review-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--muted);
  background: #fbfbfd;
  font-size: 12px;
  font-weight: 900;
}
.badge.review { color: #8a4b00; border-color: rgba(245, 165, 36, .34); background: rgba(245, 165, 36, .08); }
.badge.draft { color: #005bbf; border-color: rgba(0, 113, 227, .3); background: rgba(0, 113, 227, .07); }
.badge.image { color: #8f2f45; border-color: rgba(143, 47, 69, .28); background: rgba(143, 47, 69, .07); }
.badge.revision { color: #bf4800; border-color: rgba(191, 72, 0, .32); background: rgba(191, 72, 0, .07); }
.badge.approved { color: #0b6b3f; border-color: rgba(11, 107, 63, .26); background: rgba(11, 107, 63, .07); }
.badge.published { color: #4f2aa3; border-color: rgba(79, 42, 163, .28); background: rgba(79, 42, 163, .07); }
.badge.needs-confirmation,
.badge.price-change,
.badge.attention { color: #9b2f00; border-color: rgba(215, 80, 0, .3); background: rgba(215, 80, 0, .08); }
.link-badge {
  color: var(--mint-dark);
}
.review-detail {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.detail-head {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.detail-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
}
.supervisor-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.supervisor-summary span {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfbfd;
  font-size: 13px;
  font-weight: 800;
}
.detail-scroll {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  overflow: auto;
}
.review-section {
  display: grid;
  gap: 10px;
}
.review-section h3 {
  margin: 0;
  font-size: 16px;
}
.draft-box,
.source-list,
.audit-list,
.upload-box,
.activity-log {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfbfd;
}
.draft-box p,
.activity-log p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.source-list,
.audit-list,
.activity-log {
  display: grid;
  gap: 8px;
}
.editor-panel {
  padding: 12px;
  border: 1px solid rgba(0, 113, 227, .2);
  border-radius: 8px;
  background: rgba(0, 113, 227, .04);
}
.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.editor-grid label,
.review-search,
.decision-panel {
  min-width: 0;
}
.editor-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.editor-grid .full {
  grid-column: 1 / -1;
}
.editor-grid input,
.editor-grid textarea,
.review-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}
.editor-grid textarea {
  resize: vertical;
}
.fact-list {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}
.fact-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.automation-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.automation-step {
  display: grid;
  gap: 8px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
}
.automation-step span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--muted);
}
.automation-step strong {
  font-size: 13px;
  line-height: 1.3;
}
.automation-step.done span { background: #0b6b3f; }
.automation-step.running span { background: var(--mint); box-shadow: 0 0 0 4px rgba(0, 113, 227, .1); }
.automation-step.waiting span { background: var(--amber); }
.automation-step.review span { background: #7a3cff; }
.automation-step.blocked span { background: var(--rust); }
.source-list a {
  color: var(--mint-dark);
  font-weight: 900;
}
.audit-list label {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
}
.audit-list input {
  width: 18px;
  min-height: 18px;
}
.upload-box {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.upload-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.upload-box strong {
  display: block;
  margin-bottom: 6px;
}
.file-control {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--mint-dark);
  background: white;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.file-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.decision-panel textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  line-height: 1.5;
  background: #fbfbfd;
}
.content-preview {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}
.content-preview.is-live {
  border-color: rgba(0, 113, 227, .42);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .08);
}
.content-preview h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}
.preview-summary,
.preview-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.preview-body {
  display: grid;
  gap: 10px;
}
.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.review-actions .button {
  white-space: normal;
  text-align: center;
}
.review-actions .danger {
  border-color: rgba(191, 72, 0, .24);
  color: var(--rust);
  background: white;
}
.review-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(11, 107, 63, .22);
  border-radius: 8px;
  padding: 12px 14px;
  color: #0b6b3f;
  background: white;
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}
.content-admin {
  min-height: 100vh;
  background: #f5f5f7;
}
.studio-workspace {
  display: grid;
  grid-template-columns: 240px minmax(320px, .82fr) minmax(520px, 1.18fr);
  gap: 14px;
  padding: 14px;
  min-height: calc(100vh - 64px);
}
.studio-sidebar,
.studio-list-panel,
.studio-editor-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.studio-sidebar {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
  padding: 16px;
}
.studio-head h1,
.studio-toolbar h2 {
  margin: 0;
  line-height: 1.16;
}
.studio-head h1 { font-size: 28px; }
.studio-sections {
  display: grid;
  gap: 8px;
}
.studio-section-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  background: #fbfbfd;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.studio-section-button strong {
  font-size: 14px;
}
.studio-section-button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.studio-section-button[aria-current="true"] {
  border-color: rgba(0, 113, 227, .46);
  background: rgba(0, 113, 227, .07);
  box-shadow: inset 3px 0 0 var(--mint);
}
.studio-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.studio-stats article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
}
.studio-stats strong {
  display: block;
  font-size: 24px;
}
.studio-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.studio-list-panel {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
}
.studio-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.studio-list-panel > .review-search {
  margin: 12px;
}
.studio-search-tools {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 0 12px 12px;
}
.studio-search-tools p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.studio-search-scope {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: #fbfbfd;
}
.studio-search-scope button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.studio-search-scope button[aria-current="true"] {
  color: var(--ink);
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.studio-confirm-notice {
  display: grid;
  gap: 4px;
  margin: 12px 12px 0;
  border: 1px solid rgba(215, 80, 0, .28);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  color: #6f2400;
  background: #fff7f1;
  font: inherit;
  cursor: pointer;
}
.studio-confirm-notice strong {
  font-size: 15px;
}
.studio-confirm-notice span {
  color: #8c3c0b;
  font-size: 13px;
  line-height: 1.45;
}
.studio-record-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  overflow: auto;
}
.studio-record {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  background: white;
  font: inherit;
  cursor: pointer;
}
.studio-record[aria-current="true"] {
  border-color: rgba(0, 113, 227, .5);
  box-shadow: inset 3px 0 0 var(--mint);
}
.studio-record h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.28;
}
.studio-record p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.studio-editor-panel {
  display: grid;
  grid-template-rows: auto 1fr;
}
.studio-editor-head {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.studio-editor-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
}
.studio-editor-scroll {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  overflow: auto;
}
.studio-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.studio-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.studio-form .full {
  grid-column: 1 / -1;
}
.studio-form input,
.studio-form textarea,
.studio-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}
.studio-form textarea {
  resize: vertical;
}
.studio-language-grid {
  display: grid;
  gap: 12px;
}
.studio-language-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.studio-language-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: #fbfbfd;
  font-size: 12px;
  font-weight: 800;
}
.studio-language-summary .button {
  min-height: 30px;
}
.studio-language-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
}
.studio-language-card summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-weight: 900;
}
.studio-language-card summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.studio-language-card label {
  margin-top: 10px;
}
.studio-preview {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfbfd;
}
.studio-brand-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.studio-brand-preview span,
.studio-brand-preview img {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: white;
  background: #1d1d1f;
  font-size: 13px;
  font-weight: 900;
}
.studio-brand-preview img {
  object-fit: contain;
  padding: 5px;
  border: 1px solid var(--line);
  background: white;
}
.studio-monitor-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
}
.studio-monitor-preview span,
.studio-monitor-preview small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.studio-monitor-preview strong {
  font-size: 20px;
}
.studio-monitor-preview small {
  grid-column: 1 / -1;
}
.studio-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.studio-preview h3 {
  margin: 0;
  font-size: 22px;
}
.studio-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.studio-preview-body {
  display: grid;
  gap: 10px;
}
.studio-preview-body h4 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 18px;
}
.studio-preview-body p {
  margin: 0;
}
.studio-log {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfbfd;
}
.studio-version-list {
  display: grid;
  gap: 10px;
}
.studio-version-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: #fbfbfd;
  font-size: 13px;
  line-height: 1.55;
}
.studio-version-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfbfd;
}
.studio-version-item strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.35;
}
.studio-version-item p,
.studio-version-item small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}
.studio-version-item small {
  font-size: 12px;
}
.studio-log p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.studio-actions .button {
  white-space: normal;
}
.studio-ai-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfbfd;
}
.studio-ai-note,
.studio-ai-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.studio-ai-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}
.studio-ai-draft {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}
.studio-ai-draft h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.studio-ai-draft p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.studio-ai-draft details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfbfd;
}
.studio-ai-draft summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}
.studio-ai-reason {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.studio-ai-reason strong {
  color: var(--ink);
}
.studio-ai-draft ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}
[hidden] { display: none !important; }
@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr; }
  .main-nav { justify-content: flex-start; flex-wrap: wrap; }
  .nav-actions { justify-content: space-between; }
  .hero, .vehicle-detail-hero, .detail-layout, .form-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; gap: 34px; }
  .hero h1, .page-hero h1, .article h1 { font-size: 52px; }
  .vehicle-grid, .vehicle-grid.compact, .vehicle-grid.listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters, .guide-grid, .brand-grid, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout .spec-panel { position: static; }
  .review-topbar { grid-template-columns: 1fr; padding: 12px 14px; }
  .review-nav { justify-content: flex-start; }
  .review-workspace { grid-template-columns: 1fr; }
  .studio-workspace { grid-template-columns: 1fr; }
  .review-rail, .review-queue, .review-detail { overflow: visible; }
  .studio-sidebar, .studio-list-panel, .studio-editor-panel { overflow: visible; }
  .listing-tools { grid-template-columns: 1fr; }
  .listing-count { justify-self: start; }
  .automation-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-grid, .studio-form { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-header { position: static; padding: 12px 14px; }
  .brand span:last-child { white-space: normal; }
  .main-nav { gap: 10px 12px; font-size: 14px; }
  .nav-actions { align-items: flex-start; flex-direction: column; width: 100%; }
  .language-switch { max-width: 100%; flex-wrap: nowrap; }
  .hero { min-height: auto; padding-top: 42px; text-align: left; place-items: stretch; }
  .hero-actions { justify-content: flex-start; }
  .stats-row { margin-left: 0; }
  .hero h1, .page-hero h1, .article h1 { font-size: 36px; }
  .lead, .page-hero p, .section-heading p, .article .lead { font-size: 17px; }
  .section-heading h2, .detail-main h2, .spec-panel h2, .content-block h2 { font-size: 30px; }
  .stats-row, .vehicle-grid, .vehicle-grid.compact, .vehicle-grid.listing, .filters, .guide-grid, .brand-grid, .process-grid, .lead-form { grid-template-columns: 1fr; }
  .review-stats { grid-template-columns: 1fr 1fr; }
  .supervisor-summary,
  .automation-track { grid-template-columns: 1fr; }
  .review-queue-head { display: grid; }
  .upload-box { grid-template-columns: 1fr; }
  .studio-search-tools { align-items: flex-start; flex-direction: column; }
  .studio-version-item { grid-template-columns: 1fr; }
  .quick-specs div, .spec-list div { flex-direction: column; }
  dd { text-align: start; }
  .site-footer { flex-direction: column; }
}
