@font-face {
  font-family: "Saira";
  src: url("assets/fonts/saira.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface: #ffffff;
  --canvas: #f6f6f4;
  --ink: #0b0c0e;
  --coal: #1a1d21;
  --red: #e2231a;
  --red-dark: #bd1711;
  --silver: #bfc3c7;
  --border: #d7d9dc;
  --border-strong: #afb3b8;
  --muted: #5f6368;
  --soft: #eceeed;
  --success: #087a49;
  --focus: #1677ff;
  --font-heading: "Saira", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --radius: 8px;
  --shell: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
}

body.has-order {
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  min-height: 44px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: 12px;
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand__copy {
  display: grid;
  min-width: 0;
  margin-left: 8px;
  line-height: 1.05;
}

.brand__copy strong {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand__copy > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

#catalogVersion {
  margin: 0;
  color: inherit;
  font: inherit;
}

.order-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  padding: 6px 8px 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.order-trigger__icon {
  font-size: 17px;
}

.order-trigger strong {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding-inline: 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
}

.seller-strip {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.seller-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
  padding-block: 8px;
}

.seller-strip__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  min-width: 0;
  column-gap: 6px;
  line-height: 1.15;
}

.seller-strip__identity > span:first-child {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#sellerRole {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

#sellerName {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sellerPhone {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.seller-strip__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.seller-strip__actions .button {
  min-height: 44px;
  padding-inline: 13px;
  white-space: nowrap;
}

.connection-status {
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
}

.compact-only {
  display: none;
}

.catalog {
  scroll-margin-top: 76px;
  padding-top: 16px;
  padding-bottom: 44px;
}

.finder {
  min-width: 0;
}

.finder__heading {
  margin-bottom: 14px;
}

.eyebrow,
.sheet__eyebrow {
  margin: 0 0 4px;
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.finder h1,
.results h2,
.sheet h2,
.sheet h3,
.empty-state h3,
.error-state h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.08;
}

.finder h1 {
  max-width: 620px;
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 850;
}

.finder__heading > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.search__icon {
  flex: 0 0 44px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.search input::placeholder {
  color: #777b80;
}

.search:has(input:disabled) {
  border-color: var(--border);
  background: #f1f1ef;
}

.search input:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.search__clear {
  min-height: 42px;
  padding-inline: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.quick-action {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}

.quick-action:hover {
  border-color: var(--ink);
}

.quick-action > span {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-family: var(--font-heading);
  font-weight: 800;
}

.quick-action strong {
  font-size: 13px;
  line-height: 1.2;
}

.catalog-nav {
  margin-top: 20px;
}

.catalog-nav__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.catalog-nav__label span {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
}

.catalog-nav__label small {
  color: var(--muted);
  font-size: 12px;
}

.brand-tabs,
.chapter-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.tab-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  scroll-snap-align: start;
}

.tab-button[aria-current="true"] {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.chapter-strip {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--coal);
}

.chapter-strip__heading {
  display: grid;
  gap: 2px;
}

.chapter-strip__heading span {
  color: var(--silver);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chapter-strip__heading strong {
  font-family: var(--font-heading);
  font-size: 14px;
}

.chapter-tabs {
  margin-inline: -4px;
  padding-bottom: 1px;
}

.chapter-tabs .tab-button {
  min-height: 44px;
  border-color: #3d4147;
  color: #d9dbde;
  background: #25292e;
  font-size: 11px;
}

.chapter-tabs .tab-button[aria-current="true"] {
  border-color: #fff;
  color: var(--ink);
  background: #fff;
}

.guided-flow {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.guided-flow__header,
.cabins__header,
.cabin-detail__header,
.reference-panel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.guided-flow h2,
.cabins h2,
.reference-panel h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.08;
}

.guided-flow h2 {
  font-size: 21px;
}

.pilot-badge,
.truth-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #f0c2bf;
  border-radius: 999px;
  color: #a3150f;
  background: #fff4f3;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.vehicle-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 340px));
  gap: 10px;
}

.guided-back {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.guided-back:hover {
  color: var(--ink);
  text-decoration: underline;
}

.vehicle-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 78px;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}

.vehicle-card:hover,
.vehicle-card[aria-current="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.vehicle-card__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
}

.vehicle-card--brand .vehicle-card__mark {
  border-radius: 12px;
  font-size: 14px;
}

.vehicle-card__copy {
  display: grid;
  gap: 2px;
}

.vehicle-card__copy strong {
  font-family: var(--font-heading);
  font-size: 16px;
}

.vehicle-card__copy span,
.vehicle-card__status {
  color: var(--muted);
  font-size: 11px;
}

.vehicle-card__status {
  color: var(--success);
  font-weight: 800;
}

.vehicle-selection {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--soft);
}

.vehicle-selection__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
}

.vehicle-selection__summary > span {
  color: var(--muted);
  font-size: 11px;
}

.vehicle-selection__summary > strong {
  font-family: var(--font-heading);
  font-size: 16px;
}

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

.mode-card {
  display: grid;
  min-height: 94px;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafaf8;
  cursor: pointer;
  text-align: left;
}

.mode-card:hover,
.mode-card[aria-current="true"] {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.mode-card strong {
  font-family: var(--font-heading);
  font-size: 16px;
}

.mode-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mode-card[aria-current="true"] span,
.mode-card:hover span {
  color: #d5d7da;
}

.cabins {
  margin-top: 26px;
}

.cabins__header {
  margin-bottom: 12px;
}

.cabins__header h2 {
  font-size: 24px;
}

.cabins__header > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.cabin-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  gap: 12px;
}

.cabin-option {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 152px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}

.cabin-option:hover,
.cabin-option[aria-current="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.cabin-option__media {
  display: grid;
  place-items: center;
  min-height: 152px;
  padding: 10px;
  border-right: 1px solid var(--soft);
  background: #f2f2ef;
}

.cabin-option__media img {
  width: 100%;
  height: 132px;
  object-fit: contain;
}

.cabin-option__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px;
}

.cabin-option__body > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.cabin-option__body strong {
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.15;
}

.cabin-option__body small {
  color: var(--muted);
  font-size: 11px;
}

.cabin-detail {
  overflow: hidden;
  scroll-margin-top: 88px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.cabin-detail__header {
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.cabin-detail__back {
  min-height: 32px;
  padding: 0;
  color: var(--red);
}

.cabin-detail__header h2 {
  margin-top: 4px;
  font-size: 25px;
}

.cabin-detail__header p {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cabin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(340px, 1fr);
  min-height: 680px;
}

.diagram-viewer {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--border);
  background: #efefec;
}

.diagram-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.diagram-toolbar .icon-button {
  position: static;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
  font-size: 22px;
}

.diagram-toolbar output {
  min-width: 54px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: center;
}

.button--compact {
  min-height: 44px;
  padding-inline: 12px;
  font-size: 11px;
}

.diagram-stage {
  height: 600px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: #fff;
  cursor: grab;
  scrollbar-color: #a5a8ac #eceeed;
}

.diagram-stage:active {
  cursor: grabbing;
}

.diagram-stage img {
  max-width: none;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.diagram-hint {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 10px;
}

.diagram-viewer:fullscreen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 16px;
  background: #efefec;
}

.diagram-viewer:fullscreen .diagram-stage {
  height: auto;
}

.reference-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  max-height: 680px;
  background: var(--surface);
}

.reference-panel__header {
  align-items: center;
  padding: 16px 16px 10px;
}

.reference-panel__header h3 {
  font-size: 17px;
}

.reference-panel__header > strong {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.reference-search {
  position: relative;
  margin: 0 16px 12px;
}

.reference-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 68px 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  outline: 0;
  background: #fbfbfa;
  font-size: 13px;
}

.reference-search input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.reference-search button {
  position: absolute;
  top: 1px;
  right: 2px;
  min-height: 44px;
  padding-inline: 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.reference-list {
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--soft);
}

.reference-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--soft);
}

.reference-row[aria-current="true"] {
  background: #fff4f3;
  box-shadow: inset 4px 0 0 var(--red);
}

.reference-row__callout {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  border: 0;
  cursor: pointer;
}

.reference-row__content {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.reference-row__content strong {
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.reference-row__content span {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
}

.reference-row__content small {
  color: var(--muted);
  font-size: 9px;
}

.reference-row__action {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.reference-row__action:hover {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.reference-empty {
  padding: 34px 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.exhaust-kits {
  margin-top: 26px;
}

.exhaust-diagrams {
  margin: 0 0 24px;
}

.exhaust-diagrams__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.exhaust-diagrams__header h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  text-wrap: balance;
}

.exhaust-diagrams__header p {
  max-width: 68ch;
  margin: 5px 0 0;
  color: #4f5358;
  font-size: 14px;
  line-height: 1.5;
}

.exhaust-diagrams__header > strong {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.exhaust-diagram-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.exhaust-diagram-option {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  min-height: 164px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}

.exhaust-diagram-option:hover,
.exhaust-diagram-option:focus-visible,
.exhaust-diagram-option[aria-current="true"] {
  border-color: var(--ink);
  outline: 2px solid transparent;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.exhaust-diagram-option__media {
  display: grid;
  place-items: center;
  min-height: 164px;
  padding: 10px;
  border-right: 1px solid var(--soft);
  background: #f2f2ef;
}

.exhaust-diagram-option__media img {
  width: 100%;
  height: 142px;
  object-fit: contain;
}

.exhaust-diagram-option__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 15px;
}

.exhaust-diagram-option__body strong {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.3;
  text-wrap: pretty;
}

.exhaust-diagram-option__body span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.exhaust-diagram-option__body small {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.exhaust-diagram-detail {
  overflow: hidden;
  scroll-margin-top: 88px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.exhaust-diagram-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.exhaust-diagram-detail__back {
  min-height: 32px;
  padding: 0;
  color: var(--red);
}

.exhaust-diagram-detail__header h3 {
  width: fit-content;
  max-width: 100%;
  margin: 4px 0 0;
  font-family: var(--font-heading);
  font-size: 22px;
  text-wrap: balance;
}

.exhaust-diagram-detail__header h3:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.exhaust-diagram-detail__header p {
  max-width: 72ch;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.exhaust-diagram-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr);
  min-height: 680px;
}

.exhaust-component-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--soft);
}

.exhaust-component-row[aria-current="true"] {
  background: #fff4f3;
  box-shadow: inset 0 0 0 1px var(--red);
}

.exhaust-component-row__code {
  min-width: 84px;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.exhaust-component-row__content {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.exhaust-component-row__content strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.exhaust-component-row__content span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.exhaust-component-row__content small {
  color: var(--muted);
  font-size: 11px;
}

.exhaust-component-row__action {
  min-width: 52px;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.exhaust-component-row__action:hover,
.exhaust-component-row__action:focus-visible {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.exhaust-diagram-empty {
  padding: 28px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.exhaust-diagram-empty h3 {
  margin: 0;
  font-size: 18px;
}

.exhaust-diagram-empty p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.results {
  margin-top: 26px;
}

.results__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.results h2 {
  font-size: 20px;
}

.results__count {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.product-filters {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-filters__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.product-filters__heading h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
}

.product-filters__heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.category-filter.tab-button {
  min-height: 44px;
  padding-inline: 13px;
}

.install-dialog {
  width: min(calc(100% - 24px), 520px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
}

.install-dialog::backdrop {
  background: rgba(11, 12, 14, 0.62);
}

.install-dialog__panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.install-dialog__panel > header span {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.install-dialog__panel h2 {
  max-width: 20ch;
  margin: 3px 0 0;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.12;
  text-wrap: balance;
}

.install-dialog__body {
  padding: 16px;
  font-size: 15px;
}

.install-dialog__body p {
  margin: 0;
}

.install-dialog__body ol {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding-left: 24px;
}

.install-dialog__note {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.product-filters__selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 700px;
}

.product-filters__selects label {
  display: grid;
  gap: 5px;
}

.product-filters__selects label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.product-filters__selects select {
  width: 100%;
  min-height: 44px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 13px;
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-card__open {
  display: flex;
  width: 100%;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.product-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--soft);
  background: var(--canvas);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.product-card__media.is-missing::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  content: "Imagem em conferência";
  font-size: 11px;
  text-align: center;
}

.product-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 10px;
}

.product-card__code {
  display: block;
  overflow: hidden;
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__codes {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 7px;
  min-width: 0;
}

.product-card__code-label {
  color: #5b5f64;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.product-card__code-value {
  min-width: 0;
  font-family: var(--font-heading);
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-card__code-value--original {
  color: var(--red);
  font-size: 11px;
}

.product-card__code-value--internal {
  color: var(--ink);
  font-size: 10px;
}

.product-card h3 {
  display: -webkit-box;
  min-height: 34px;
  margin: 4px 0 0;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__application {
  display: -webkit-box;
  min-height: 31px;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__add {
  min-height: 44px;
  margin: auto 10px 10px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.product-card__add:hover {
  border-color: var(--red);
  background: var(--red);
}

.skeleton-card {
  aspect-ratio: 0.68;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(100deg, #ededeb 20%, #f8f8f6 38%, #ededeb 56%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  to { background-position-x: -200%; }
}

.empty-state,
.error-state {
  padding: 44px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
  padding: 14px 0 2px;
  color: var(--muted);
  font-size: 11px;
}

.catalog-pagination[hidden] {
  display: none;
}

.empty-state > span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  color: var(--ink);
  background: #ececea;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
}

.empty-state[data-mode="structure-ready"] {
  border-style: solid;
  border-color: #cfd1ce;
  background: linear-gradient(145deg, #ffffff 0%, #f4f4f1 100%);
}

.empty-state[data-mode="structure-ready"] > span {
  color: #fff;
  background: var(--ink);
}

.empty-state h3,
.error-state h3 {
  margin-top: 8px;
  font-size: 20px;
}

.empty-state p,
.error-state p {
  max-width: 460px;
  margin: 8px auto 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.empty-state > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

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

.button--red:hover {
  background: var(--red-dark);
}

.button--whatsapp {
  color: #fff;
  background: var(--success);
}

.button--whatsapp:hover {
  background: #05643c;
}

.button--dark {
  color: #fff;
  background: var(--ink);
}

.button--ghost {
  border-color: var(--border-strong);
  background: var(--surface);
}

.button--wide {
  width: 100%;
}

.button[aria-disabled="true"],
.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-heading);
}

.site-footer p {
  max-width: 680px;
  margin: 5px 0 0;
  font-size: 11px;
}

.order-bar {
  position: fixed;
  z-index: 35;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid #35393f;
  color: #fff;
  background: rgba(11, 12, 14, 0.97);
}

.order-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-bar__inner > div {
  display: grid;
  line-height: 1.1;
}

.order-bar__inner strong {
  font-family: var(--font-heading);
  font-size: 16px;
}

.order-bar__inner span {
  color: var(--silver);
  font-size: 10px;
}

.order-bar .button {
  min-height: 44px;
}

.sheet {
  width: 100%;
  max-width: 600px;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.sheet::backdrop {
  background: rgba(4, 5, 7, 0.64);
}

.sheet__frame {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  background: var(--surface);
  box-shadow: -20px 0 52px rgba(0, 0, 0, 0.2);
}

.sheet__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
}

.sheet__eyebrow {
  display: block;
  margin-bottom: 2px;
  font-size: 9px;
}

.sheet h2 {
  font-size: 20px;
}

.icon-button {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 27px;
  line-height: 1;
}

.sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 14px calc(28px + env(safe-area-inset-bottom));
}

.product-detail__media {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
}

.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.product-detail__identity {
  padding: 16px 1px 12px;
}

.product-detail__identity > span {
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 850;
}

.product-detail__identity h3 {
  margin-top: 5px;
  font-size: 21px;
}

.product-detail__identity p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.confirm-note {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--canvas);
  font-size: 11px;
}

.confirm-note span {
  color: var(--muted);
}

.product-facts {
  display: grid;
  gap: 0;
  margin: 14px 0;
  border-block: 1px solid var(--border);
}

.product-facts > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 10px 0;
}

.product-facts > div + div {
  border-top: 1px solid var(--soft);
}

.product-facts dt {
  color: var(--muted);
  font-size: 11px;
}

.product-facts dd {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.form-section legend {
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid--two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.form-grid__full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

label > span {
  color: #45494e;
  font-size: 11px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
}

input,
select {
  min-height: 48px;
  padding: 0 11px;
}

textarea {
  min-height: 76px;
  padding: 10px 11px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  outline: 1px solid var(--ink);
}

.form-section > label {
  margin-top: 10px;
}

.sheet__actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.order-editor {
  padding-inline: 0;
}

.order-sheet {
  max-width: 520px;
}

.cart-context {
  display: grid;
  gap: 3px;
  padding: 14px;
  border-bottom: 8px solid var(--canvas);
}

.cart-context span {
  color: var(--muted);
  font-size: 12px;
}

.cart-context strong {
  font-size: 15px;
  line-height: 1.35;
}

.cart-items {
  padding: 16px 14px;
}

.cart-items__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-items__header h3 {
  margin: 0;
  font-size: 16px;
}

.cart-items__header small {
  color: var(--muted);
  font-size: 12px;
}

.order-items {
  display: grid;
  gap: 10px;
}

.order-empty {
  padding: 24px 14px;
  color: var(--muted);
  background: var(--canvas);
  font-size: 14px;
  text-align: center;
}

.order-item {
  padding: 14px 0;
  border-top: 1px solid var(--soft);
}

.order-item__content {
  min-width: 0;
}

.order-item__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.order-item__heading strong {
  font-size: 15px;
  line-height: 1.35;
}

.order-item__reference {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.order-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 44px 46px 44px;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  overflow: hidden;
}

.quantity-stepper button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: var(--surface);
  cursor: pointer;
  font-size: 20px;
}

.quantity-stepper button:disabled {
  color: var(--silver);
  cursor: not-allowed;
}

.quantity-stepper strong {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-inline: 1px solid var(--border);
  font-size: 15px;
}

.order-item__remove {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}

.order-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--coal);
  color: #fff;
}

.order-total span {
  color: var(--silver);
  font-size: 11px;
}

.order-total strong {
  font-family: var(--font-heading);
  font-size: 17px;
}

.order-total small {
  grid-column: 1 / -1;
  color: var(--silver);
  font-size: 9px;
}

.sheet__actions--sticky {
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.text-button {
  min-height: 44px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 12px;
  bottom: calc(90px + env(safe-area-inset-bottom));
  left: 12px;
  max-width: 420px;
  margin-inline: auto;
  padding: 12px 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 560px) {
  .shell {
    padding-inline: 20px;
  }

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

  .quick-action strong {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .topbar {
    height: 72px;
  }

  .catalog {
    padding-top: 24px;
  }

  .finder {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    gap: 14px 20px;
    align-items: end;
  }

  .finder__heading {
    grid-column: 1;
    margin-bottom: 0;
  }

  .guided-flow {
    grid-column: 1 / -1;
  }

  .search {
    grid-column: 1;
  }

  .quick-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    margin-top: 0;
  }

  .quick-action {
    min-height: 52px;
  }

  .catalog-nav,
  .chapter-strip {
    grid-column: 1 / -1;
  }

  .chapter-strip {
    grid-template-columns: minmax(190px, 0.3fr) minmax(0, 1fr);
    align-items: center;
  }

  .results {
    margin-top: 32px;
  }

  .exhaust-kits {
    margin-top: 32px;
  }

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

  .sheet__header,
  .sheet__body {
    padding-inline: 20px;
  }

  .cart-context,
  .cart-items,
  .sheet__actions--sticky {
    padding-inline: 20px;
  }

  body.has-order {
    padding-bottom: 0;
  }

  .order-bar {
    right: 24px;
    bottom: 24px;
    left: auto;
    width: 340px;
    padding: 10px;
    border: 1px solid #35393f;
    border-radius: var(--radius);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  }

  .order-bar__inner {
    width: 100%;
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .shell {
    padding-inline: 28px;
  }

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

  .product-card__body {
    padding: 11px;
  }

  .product-card__add {
    margin-inline: 11px;
  }
}

@media (max-width: 900px) {
  .cabin-workspace,
  .exhaust-diagram-workspace {
    grid-template-columns: 1fr;
  }

  .diagram-viewer {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .diagram-stage {
    height: min(62vh, 520px);
  }

  .reference-panel {
    max-height: none;
  }

  .reference-list {
    max-height: 620px;
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

}

@media (max-width: 559px) {
  .seller-strip__inner {
    min-height: 64px;
    gap: 8px;
    padding-block: 6px;
  }

  .seller-strip__identity {
    column-gap: 4px;
  }

  .seller-strip__identity > span:first-child {
    margin-bottom: 2px;
    font-size: 9px;
  }

  #sellerRole,
  #sellerPhone {
    font-size: 11px;
  }

  #sellerName {
    font-size: 14px;
  }

  .seller-strip__actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .seller-strip__actions .button {
    padding-inline: 10px;
    font-size: 11px;
  }

  .connection-status {
    order: 3;
    flex-basis: 100%;
    text-align: right;
  }

  .wide-only {
    display: none;
  }

  .compact-only {
    display: inline;
  }

  .product-filters__heading {
    align-items: flex-start;
  }

  .product-filters__selects {
    grid-template-columns: 1fr;
  }

  .category-filter.tab-button {
    flex: 1 1 calc(50% - 7px);
    justify-content: center;
  }
  .mode-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .brand__copy strong {
    font-size: 14px;
  }

  .order-trigger > span:not(.order-trigger__icon) {
    display: none;
  }

  .quick-action {
    padding-inline: 8px;
  }

  .quick-action > span {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
  }

  .product-card__body {
    padding: 8px;
  }

  .product-card__add {
    margin: auto 8px 8px;
  }

  .form-grid--two {
    gap: 8px;
  }

  .guided-flow {
    margin-inline: -2px;
    padding: 14px;
  }

  .guided-flow__header,
  .cabins__header,
  .exhaust-diagrams__header,
  .cabin-detail__header,
  .exhaust-diagram-detail__header,
  .reference-panel__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .vehicle-picker,
  .cabin-options,
  .exhaust-diagram-options {
    grid-template-columns: 1fr;
  }

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

  .vehicle-selection__summary {
    grid-template-columns: 1fr auto;
  }

  .vehicle-selection__summary > span {
    grid-column: 1 / -1;
  }

  .mode-card {
    min-height: 100px;
    padding: 12px;
  }

  .mode-card strong {
    font-size: 15px;
  }

  .mode-card span {
    font-size: 11px;
  }

  .cabin-detail__header {
    padding: 14px;
  }

  .exhaust-diagram-option {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .exhaust-diagram-option__media {
    min-height: 152px;
    padding: 8px;
  }

  .exhaust-diagram-option__media img {
    height: 128px;
  }

  .exhaust-diagram-detail__header {
    padding: 14px;
  }

  .truth-badge {
    white-space: normal;
  }

  .diagram-viewer {
    padding: 10px;
  }

  .diagram-toolbar {
    gap: 6px;
  }

  .diagram-toolbar .button--compact {
    flex: 1;
  }

  .diagram-stage {
    height: 420px;
  }

  .reference-row {
    grid-template-columns: 44px minmax(0, 1fr) 54px;
    padding-inline: 10px;
  }

  .reference-row__action {
    padding-inline: 5px;
  }

  .exhaust-component-row {
    grid-template-columns: 82px minmax(0, 1fr) 52px;
    padding-inline: 8px;
  }

  .exhaust-component-row__code {
    min-width: 78px;
    padding-inline: 5px;
  }

  .exhaust-component-row__action {
    min-width: 50px;
    padding-inline: 4px;
  }
}

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


/* ===== v13 · placa/cidade/urgência + confiança ===== */
a.quick-action {
  text-decoration: none;
  color: inherit;
}

.quick-action--urgent {
  border-color: var(--red);
}

.quick-action--urgent > span,
.quick-action--urgent strong {
  color: var(--red);
}

.trust-line {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  width: 100%;
}

.cart-context__heading {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  justify-content: space-between;
}

.cart-context__hint {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.cart-context__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cart-context__fields label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.cart-context__fields input {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
}

.input-plate {
  text-transform: uppercase;
}

.cart-context__stopped {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  font-size: 14px;
  cursor: pointer;
}

.cart-context__stopped input {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
}

@media (max-width: 560px) {
  .cart-context__fields {
    grid-template-columns: 1fr;
  }
}
