/* OATE Road-Vehicle Converter Studio — White High-Contrast + Blueprint Grid */
:root {
  --studio-bg: #fafafa;
  --studio-surface: #ffffff;
  --studio-ink: #09090b;
  --studio-muted: #52525b;
  --studio-subtle: #71717a;
  --studio-line: #e4e4e7;
  --studio-line-strong: #d4d4d8;
  --studio-grid: rgba(9, 9, 11, 0.045);
  --studio-ready-bg: #ecfdf5;
  --studio-ready-fg: #065f46;
  --studio-ready-bd: #a7f3d0;
  --studio-warn-bg: #fffbeb;
  --studio-warn-fg: #92400e;
  --studio-warn-bd: #fde68a;
  --studio-err-bg: #fef2f2;
  --studio-err-fg: #991b1b;
  --studio-err-bd: #fecaca;
}

.oate-car-body {
  background: var(--studio-bg);
  background-image:
    linear-gradient(to right, var(--studio-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--studio-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--studio-ink);
}

.oate-car-body .oate-converter-header {
  background: rgba(9, 9, 11, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fafafa;
}

.oate-car-body .oate-header-brand,
.oate-car-body .oate-header-nav a {
  color: #e4e4e7;
}

.oate-car-body .oate-header-nav a:hover,
.oate-car-body .oate-header-nav a:focus-visible {
  color: #ffffff;
}

.oate-car-body .oate-header-brand img {
  filter: none;
}

.oate-car-body .oate-menu-toggle {
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid rgba(250, 250, 250, 0.28);
}

.oate-car-body .oate-menu-toggle span {
  background: #fafafa;
}

.oate-car-body .oate-site-menu {
  background: #111114;
  border: 1px solid rgba(250, 250, 250, 0.22);
  color: #fafafa;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.oate-car-body .oate-site-menu a,
.oate-car-body .oate-site-menu label {
  color: #fafafa;
}

.oate-car-studio {
  padding-bottom: 96px;
}

/* Hero */
.oate-car-hero {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #09090b;
  color: #fafafa;
  border-bottom: 0;
  overflow: hidden;
}

.oate-car-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.oate-car-hero-bg img {
  display: block;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.oate-car-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(9, 9, 11, 0.96) 0%,
    rgba(9, 9, 11, 0.88) 32%,
    rgba(9, 9, 11, 0.18) 48%,
    rgba(9, 9, 11, 0) 64%
  );
}

.oate-car-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 34px) clamp(22px, 4.5vw, 72px) 92px;
}

.oate-car-hero-dissolve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0) 0%,
    rgba(24, 24, 27, 0.36) 36%,
    rgba(113, 113, 122, 0.56) 66%,
    rgba(228, 228, 231, 0.88) 88%,
    #fafafa 100%
  );
}

.oate-car-hero .oate-converter-kicker {
  align-items: center;
  flex-wrap: wrap;
  color: #a1a1aa;
}

.oate-car-hero .oate-converter-kicker > span:first-child {
  color: #f4f4f5;
  font-weight: 600;
}

.oate-car-hero-controls {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.oate-car-back {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #d4d4d8;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(9, 9, 11, 0.92);
}

.oate-car-back:hover,
.oate-car-back:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.oate-pro-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(250, 250, 250, 0.42);
  background: rgba(24, 24, 27, 0.86);
  color: #fafafa;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.oate-car-hero .oate-converter-kicker .oate-pro-toggle span {
  display: inline;
  color: #fafafa;
}

.oate-pro-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #fafafa;
  cursor: pointer;
}

.oate-car-hero .oate-converter-hero-grid {
  display: block;
  margin-top: clamp(22px, 2.8vw, 30px);
}

.oate-car-hero-copy {
  max-width: 520px;
}

.oate-car-hero .oate-converter-eyebrow {
  color: #a1a1aa;
}

.oate-car-form .oate-converter-step-head p {
  color: var(--studio-subtle);
}

.oate-car-hero h1 {
  margin-top: 12px;
  color: #fafafa;
  font-size: clamp(25px, 2.95vw, 39px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.oate-car-hero h1 em {
  color: #a1a1aa;
  font-weight: 500;
}

.oate-car-hero-rule {
  width: 44px;
  height: 1.5px;
  margin: 18px 0 14px;
  background: rgba(250, 250, 250, 0.55);
}

.oate-car-hero .oate-converter-hero-lead {
  margin: 0;
  max-width: 420px;
  padding-left: 0;
  border-left: 0;
  color: #d4d4d8;
  font-size: 13.5px;
  line-height: 1.72;
}

.oate-car-hero code,
.oate-hero-import-trigger {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(24, 24, 27, 0.92);
  border: 1px solid rgba(250, 250, 250, 0.3);
  color: #fafafa;
  font-family: var(--font-mono);
  font-size: 0.9em;
  line-height: 1.35;
}

.oate-hero-import-trigger {
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.oate-hero-import-trigger:hover,
.oate-hero-import-trigger:focus-visible {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.oate-car-form code,
.oate-car-reference code,
.oate-check-drawer code {
  padding: 2px 5px;
  background: #f4f4f5;
  border: 1px solid var(--studio-line);
  color: var(--studio-ink);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.oate-car-player-note {
  margin-top: 20px;
  max-width: 480px;
  padding-left: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  text-shadow: 0 1px 10px rgba(9, 9, 11, 0.92);
}

.oate-car-addon-cta {
  display: inline-flex;
  align-items: center;
  margin: 0 3px;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.oate-car-addon-cta:hover,
.oate-car-addon-cta:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  text-decoration: none;
}

/* Main Form & Steps */
.oate-car-section {
  padding-top: 10px;
  padding-bottom: 40px;
}

.oate-car-form {
  border-top: 0;
}

.oate-car-form .oate-converter-step {
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--studio-line);
}

.oate-car-form .oate-converter-step-head {
  margin-bottom: 24px;
}

.oate-car-form .oate-converter-step-head > span {
  color: var(--studio-ink);
  font-weight: 600;
}

.oate-car-form .oate-converter-step-head h2,
.oate-car-reference .oate-converter-step-head h2 {
  color: var(--studio-ink);
  font-size: clamp(24px, 3.2vw, 36px);
}

/* Dropzone */
.oate-car-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 154px;
  padding: 28px 24px;
  border: 2px dashed #27272a;
  background: #f4f4f5;
  background-image:
    linear-gradient(to right, rgba(9, 9, 11, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9, 9, 11, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  box-shadow: 0 3px 12px rgba(9, 9, 11, 0.06), inset 0 0 0 1px rgba(9, 9, 11, 0.05);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.oate-car-dropzone:hover,
.oate-car-dropzone:focus-visible,
.oate-car-dropzone:focus-within,
.oate-car-dropzone.is-dragover {
  border-style: solid;
  border-color: var(--studio-ink);
  background-color: #ffffff;
  box-shadow: 0 6px 20px rgba(9, 9, 11, 0.1);
  outline: none;
}

.oate-car-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.oate-car-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.oate-car-dropzone-badge {
  padding: 3px 9px;
  border: 1px solid var(--studio-ink);
  background: var(--studio-ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.oate-car-dropzone-inner strong {
  color: var(--studio-ink);
  font-size: 15px;
  font-weight: 600;
}

.oate-car-dropzone-inner small {
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.6;
}

.oate-car-source-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.oate-car-source-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.oate-car-import-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--studio-ink);
  background: var(--studio-surface);
  color: var(--studio-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.oate-car-import-btn:hover {
  background: var(--studio-ink);
  color: #ffffff;
}

.oate-car-import-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.oate-car-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--studio-line-strong);
  background: var(--studio-surface);
  color: var(--studio-ink);
  font-family: var(--font-mono);
  font-size: 11px;
}

.oate-car-chip.is-template {
  border-color: var(--studio-ink);
  background: #f4f4f5;
}

.oate-car-inline-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--studio-line);
  background: var(--studio-surface);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.oate-car-inline-check.has-blocker {
  border-color: #dc2626;
  border-left: 4px solid #dc2626;
  background: var(--studio-err-bg);
}

.oate-car-inline-check.has-optional {
  border-color: #d97706;
  border-left: 4px solid #d97706;
  background: var(--studio-warn-bg);
}

.oate-car-inline-check.has-ready {
  border-color: #16a34a;
  border-left: 4px solid #16a34a;
  background: var(--studio-ready-bg);
}

#model-check-status {
  color: var(--studio-ink);
  font-size: 13px;
  font-weight: 500;
}

#model-warnings {
  flex-basis: 100%;
  margin: 4px 0 0;
  padding: 10px 14px 10px 30px;
  border-left: 3px solid #d97706;
  background: var(--studio-warn-bg);
  color: var(--studio-warn-fg);
  font-size: 12px;
  line-height: 1.6;
}

#model-warnings[hidden],
#download[hidden],
[hidden] {
  display: none !important;
}

.oate-car-link-btn {
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: var(--studio-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.oate-car-link-btn:hover {
  color: var(--studio-muted);
}

/* Form Fields */
.oate-car-identity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.oate-car-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: var(--studio-ink);
  font-size: 12px;
}

.oate-car-field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: var(--studio-ink);
  font-size: 12px;
  font-weight: 600;
}

.oate-car-field-label > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.oate-req-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  background: var(--studio-ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.oate-car-field-label small {
  color: var(--studio-subtle);
  font-weight: 400;
  font-size: 11px;
}

.oate-car-form input:not([type="checkbox"]):not([type="file"]),
.oate-car-form textarea,
.oate-template-modal input:not([type="checkbox"]) {
  display: block;
}

.oate-car-form input:not([type="checkbox"]):not([type="file"]),
.oate-car-form select,
.oate-car-form textarea,
.oate-template-modal input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1.5px solid #a1a1aa;
  border-radius: 0;
  background: var(--studio-surface);
  color: var(--studio-ink);
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.oate-car-form select {
  display: inline-block;
  height: 44px;
  padding-right: 36px;
  line-height: 1.3;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--studio-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%2309090b' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.oate-car-form select::picker-icon {
  display: none;
}

.oate-car-form select::-ms-expand {
  display: none;
}

.oate-car-form input[required]:not([type="checkbox"]):not([type="file"]),
.oate-car-form #transmission {
  border: 1.5px solid #3f3f46;
  border-left: 3.5px solid var(--studio-ink);
  box-shadow: 0 1px 4px rgba(9, 9, 11, 0.06);
}

.oate-car-form input:not([type="checkbox"]):hover,
.oate-car-form select:hover,
.oate-car-form textarea:hover {
  border-color: var(--studio-ink);
}

.oate-car-form input:not([type="checkbox"]):focus-visible,
.oate-car-form select:focus-visible,
.oate-car-form textarea:focus-visible {
  outline: 2px solid var(--studio-ink);
  outline-offset: 1px;
}

.oate-car-form input[required]:not([type="checkbox"]):not([type="file"]).is-valid,
.oate-car-form #transmission.is-valid,
.oate-car-form input:not([type="checkbox"]):not([type="file"]).is-valid,
.oate-car-form select.is-valid,
.oate-car-form textarea.is-valid {
  border-color: #3f3f46;
  border-left: 3.5px solid #16a34a;
}

.oate-car-form input[required]:not([type="checkbox"]):not([type="file"]).is-invalid,
.oate-car-form #transmission.is-invalid,
.oate-car-form input:not([type="checkbox"]):not([type="file"]).is-invalid,
.oate-car-form select.is-invalid,
.oate-car-form textarea.is-invalid {
  border-color: #dc2626;
  border-left: 3.5px solid #dc2626;
  background: var(--studio-err-bg);
}

.oate-field-valid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #15803d;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.oate-field-error {
  color: var(--studio-err-fg);
  font-size: 11px;
  font-weight: 500;
}

.oate-field-guide {
  color: var(--studio-subtle);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.45;
}

.oate-car-core-flags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--studio-line);
  background: var(--studio-surface);
}

.oate-car-template-flag-note {
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.5;
}

.oate-car-version-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--studio-ink);
}

.oate-car-version-inline > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.oate-car-version-inline input {
  width: 118px !important;
  min-height: 40px !important;
  font-family: var(--font-mono) !important;
}

.oate-car-pack-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.oate-car-pack-meta textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}

.oate-pack-icon-card {
  gap: 8px;
}

.oate-pack-icon-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1.5px solid #a1a1aa;
  background: var(--studio-surface);
  min-height: 92px;
}

.oate-pack-icon-frame {
  flex: none;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--studio-line-strong);
  background:
    linear-gradient(45deg, #f4f4f5 25%, transparent 25%),
    linear-gradient(-45deg, #f4f4f5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f4f4f5 75%),
    linear-gradient(-45deg, transparent 75%, #f4f4f5 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  overflow: hidden;
}

.oate-pack-icon-frame img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
}

.oate-pack-icon-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.oate-pack-icon-meta {
  margin: 0;
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.oate-pack-icon-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.oate-car-form .inline-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--studio-ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.oate-car-form .inline-check input[type="checkbox"],
.oate-template-modal input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--studio-ink);
}

.oate-car-version-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--studio-muted);
}

.oate-car-version-inline input {
  width: 110px !important;
  min-height: 36px !important;
  padding: 6px 10px !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
}

/* Preset Tabs & Blueprint Grid */
.oate-preset-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.oate-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.oate-category-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--studio-line-strong);
  background: var(--studio-surface);
  color: var(--studio-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.oate-category-tab span {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.7;
}

.oate-category-tab.is-active {
  border-color: var(--studio-ink);
  background: var(--studio-ink);
  color: #ffffff;
}

.oate-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.oate-preset-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--studio-line-strong);
  background: var(--studio-surface);
  color: var(--studio-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.oate-preset-card:hover {
  border-color: var(--studio-ink);
  transform: translateY(-1px);
}

.oate-preset-card.is-selected {
  border: 2px solid var(--studio-ink);
  box-shadow: 0 8px 24px rgba(9, 9, 11, 0.08);
}

.oate-preset-blueprint {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  margin-bottom: 12px;
  border: 1px solid var(--studio-line);
  background-color: #fafafa;
  background-image:
    linear-gradient(to right, rgba(9, 9, 11, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9, 9, 11, 0.04) 1px, transparent 1px);
  background-size: 12px 12px;
  overflow: hidden;
}

.oate-preset-blueprint img {
  max-width: 94%;
  max-height: 82px;
  object-fit: contain;
}

.oate-preset-custom-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--studio-ink);
}

.oate-preset-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.oate-preset-card-head strong {
  font-size: 14px;
  font-weight: 700;
}

.oate-preset-badge {
  padding: 2px 6px;
  border: 1px solid var(--studio-line-strong);
  background: #f4f4f5;
  color: var(--studio-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.oate-preset-card.is-selected .oate-preset-badge {
  border-color: var(--studio-ink);
  background: var(--studio-ink);
  color: #ffffff;
}

.oate-preset-card small {
  display: block;
  margin-top: 6px;
  color: var(--studio-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
}

.oate-preset-summary {
  margin-top: 12px;
  color: var(--studio-muted);
  font-size: 12px;
}

/* Pro Mode Panel */
.oate-pro-panel {
  margin-top: 26px;
  padding: 22px;
  border: 1.5px solid var(--studio-ink);
  background: var(--studio-surface);
}

.oate-pro-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--studio-line);
}

.oate-pro-eyebrow {
  display: block;
  color: var(--studio-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.oate-pro-header h3 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.oate-pro-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.oate-pro-tab {
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--studio-line-strong);
  background: #fafafa;
  color: var(--studio-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.oate-pro-tab.is-active {
  border-color: var(--studio-ink);
  background: var(--studio-ink);
  color: #ffffff;
}

.oate-pro-pane {
  padding-top: 20px;
}

.oate-pro-pane-note {
  margin: 0 0 16px;
  color: var(--studio-muted);
  font-size: 12px;
}

#parameters,
#kinematic-parameters,
#visual,
#sounds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
}

.oate-param-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--studio-line);
  background: #fafafa;
  transition: opacity 0.15s ease;
}

.oate-param-card.is-unused {
  opacity: 0.45;
  background: #f4f4f5;
}

.oate-param-unused-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 6px;
  border: 1px solid var(--studio-line-strong);
  background: #ffffff;
  color: var(--studio-muted);
  font-size: 10px;
  font-weight: 600;
}

.oate-kinematic-box,
.oate-car-subbox {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--studio-line);
}

.oate-kinematic-box h4,
.oate-car-subbox h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.oate-kinematic-box > p,
.oate-car-subbox > p {
  margin: 0 0 14px;
  color: var(--studio-muted);
  font-size: 12px;
}

.oate-car-visual-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.oate-seats-field {
  margin-top: 18px;
}

#doors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

#doors fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--studio-line-strong);
  background: #fafafa;
}

#doors fieldset legend {
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

#doors label,
#custom-animations label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
}

.oate-dest-labels-wrap {
  margin-top: 16px;
}

.oate-dest-labels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.oate-dest-labels-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--studio-muted);
}

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

/* Sound Capacity Meter & Slots */
.oate-sound-meter-card {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--studio-line-strong);
  background: #fafafa;
}

.oate-sound-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.oate-sound-meter-head span {
  font-family: var(--font-mono);
  font-weight: 700;
}

.oate-sound-meter-track {
  height: 8px;
  margin: 10px 0 8px;
  background: var(--studio-line);
  overflow: hidden;
}

.oate-sound-meter-fill {
  height: 100%;
  background: var(--studio-ink);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.oate-sound-meter-fill.is-warn {
  background: #d97706;
}

.oate-sound-meter-fill.is-over {
  background: #dc2626;
}

.oate-sound-slot-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--studio-line);
  background: #fafafa;
}

.oate-sound-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.oate-sound-slot-head strong {
  font-size: 13px;
}

.oate-sound-slot-head code {
  font-size: 10px;
}

.oate-sound-slot-card small {
  color: var(--studio-subtle);
  font-size: 11px;
}

.oate-sound-slot-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 4px 8px;
  background: var(--studio-surface);
  border: 1px solid var(--studio-line);
  font-family: var(--font-mono);
  font-size: 11px;
}

.oate-sound-clear-btn {
  border: 1px solid var(--studio-line-strong);
  background: var(--studio-surface);
  color: var(--studio-ink);
  padding: 2px 7px;
  font-size: 11px;
  cursor: pointer;
}

.oate-engine-loop-field {
  margin-top: 18px;
  max-width: 420px;
}

/* Dual Output Boxes */
.oate-output-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.oate-output-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1.5px solid var(--studio-line-strong);
  background: var(--studio-surface);
}

.oate-output-box.is-primary {
  border-color: var(--studio-ink);
}

.oate-output-meta > span {
  display: block;
  color: var(--studio-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.oate-output-meta h3 {
  margin: 6px 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.oate-output-meta p {
  margin: 0;
  color: var(--studio-muted);
  font-size: 13px;
  line-height: 1.65;
}

.oate-output-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oate-car-body .oate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--studio-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.oate-car-body .oate-btn-primary {
  background: var(--studio-ink);
  color: #ffffff;
}

.oate-car-body .oate-btn-primary:hover:not(:disabled) {
  background: #27272a;
}

.oate-car-body .oate-btn-secondary {
  background: var(--studio-surface);
  color: var(--studio-ink);
}

.oate-car-body .oate-btn-secondary:hover:not(:disabled) {
  background: #f4f4f5;
}

.oate-car-body .oate-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.oate-output-hint {
  color: var(--studio-muted);
  font-size: 12px;
}

#status {
  margin: 0;
  white-space: pre-wrap;
  color: var(--studio-ink);
  font-size: 12px;
  line-height: 1.6;
}

#download:not([hidden]) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--studio-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Private Feedback Card */
.oate-feedback-card {
  margin-top: 22px;
  padding: 22px;
  border: 1.5px solid var(--studio-ink);
  background: var(--studio-surface);
  animation: oateFeedbackFadeIn 0.28s ease-out both;
}

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

.oate-feedback-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.oate-feedback-eyebrow {
  display: block;
  color: var(--studio-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.oate-feedback-head h3 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.oate-feedback-desc {
  margin: 8px 0 14px;
  color: var(--studio-muted);
  font-size: 12px;
}

.oate-feedback-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.oate-feedback-tag {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--studio-line-strong);
  background: #fafafa;
  color: var(--studio-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.oate-feedback-tag.is-active {
  border-color: var(--studio-ink);
  background: var(--studio-ink);
  color: #ffffff;
}

.oate-feedback-inputs {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}

.oate-feedback-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

#feedback-status {
  font-size: 12px;
  color: var(--studio-muted);
}

/* Tables & Specification Accordion */
.oate-car-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.oate-car-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--studio-muted);
  font-size: 12px;
}

.oate-car-table th,
.oate-car-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--studio-line);
  text-align: left;
  vertical-align: top;
}

.oate-car-table th {
  width: 24%;
  color: var(--studio-ink);
  font-weight: 600;
}

.oate-spec-accordion {
  border: 1px solid var(--studio-line-strong);
  background: var(--studio-surface);
  padding: 16px 20px;
}

.oate-spec-accordion summary {
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.oate-spec-accordion[open] summary {
  margin-bottom: 16px;
}

.oate-car-install h3 {
  margin: 20px 0 10px;
  font-size: 15px;
}

.oate-car-install ol {
  margin: 0;
  padding-left: 20px;
  color: var(--studio-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Right-edge ☰ Check Diagnostic Drawer */
.oate-check-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1200;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 11px;
  border: 2px solid var(--studio-ink);
  border-right: 0;
  background: var(--studio-surface);
  color: var(--studio-ink);
  box-shadow: -4px 6px 20px rgba(9, 9, 11, 0.14);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.oate-check-tab.has-optional {
  border-color: #d97706;
  background: #fffbeb;
  color: #92400e;
  box-shadow: -6px 6px 24px rgba(217, 119, 6, 0.28);
  animation: oateCheckWarnPulse 2.4s ease-in-out infinite;
}

.oate-check-tab.has-blocker {
  border-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
  box-shadow: -6px 6px 24px rgba(220, 38, 38, 0.32);
  animation: oateCheckWarnPulse 1.8s ease-in-out infinite;
}

.oate-check-tab.has-ready {
  border-color: #16a34a;
  background: #ecfdf5;
  color: #065f46;
}

@keyframes oateCheckWarnPulse {
  0%, 100% { box-shadow: -5px 6px 20px rgba(217, 119, 6, 0.24); }
  50% { box-shadow: -8px 6px 30px rgba(217, 119, 6, 0.48); }
}

.oate-check-tab-icon {
  font-size: 15px;
  line-height: 1;
}

.oate-check-tab-label {
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
}

.oate-check-badge {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.oate-check-badge.is-neutral {
  background: #f4f4f5;
  color: var(--studio-muted);
}

.oate-check-badge.is-ready {
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #15803d;
}

.oate-check-badge.is-optional {
  background: #d97706;
  color: #ffffff;
  border: 1px solid #b45309;
}

.oate-check-badge.is-blocker {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #b91c1c;
}

.oate-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: rgba(9, 9, 11, 0.35);
}

.oate-check-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  width: min(440px, 94vw);
  display: flex;
  flex-direction: column;
  background: var(--studio-surface);
  border-left: 2px solid var(--studio-ink);
  box-shadow: -12px 0 40px rgba(9, 9, 11, 0.16);
  transform: translateX(100%);
  transition: transform 0.22s ease-out;
}

.oate-check-drawer.is-open {
  transform: translateX(0);
}

.oate-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--studio-line);
}

.oate-drawer-head h2 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.oate-drawer-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--studio-line-strong);
  background: var(--studio-surface);
  color: var(--studio-ink);
  font-size: 15px;
  cursor: pointer;
}

.oate-drawer-summary {
  padding: 12px 22px;
  border-bottom: 1px solid var(--studio-line);
  background: #fafafa;
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.6;
}

.oate-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.oate-diag-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.oate-diag-title.is-blocker {
  background: var(--studio-err-bg);
  color: var(--studio-err-fg);
  border-left: 3px solid #dc2626;
}

.oate-diag-title.is-optional {
  background: var(--studio-warn-bg);
  color: var(--studio-warn-fg);
  border-left: 3px solid #d97706;
}

.oate-diag-title.is-ready {
  background: var(--studio-ready-bg);
  color: var(--studio-ready-fg);
  border-left: 3px solid #059669;
}

.oate-diag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oate-diag-empty {
  color: var(--studio-subtle);
  font-size: 12px;
  padding: 4px 2px;
}

.oate-diag-item {
  padding: 10px 12px;
  border: 1px solid var(--studio-line);
  background: var(--studio-surface);
  font-size: 12px;
}

.oate-diag-item summary {
  font-weight: 600;
  cursor: pointer;
}

.oate-diag-item p {
  margin: 8px 0 0;
  color: var(--studio-muted);
  line-height: 1.6;
}

.oate-diag-jump {
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid var(--studio-ink);
  background: var(--studio-ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

/* Template Export Modal */
.oate-template-modal {
  margin: auto;
  width: min(500px, calc(100vw - 32px));
  padding: 0;
  border: 2px solid var(--studio-ink);
  background: var(--studio-surface);
  color: var(--studio-ink);
  box-shadow: 0 24px 64px rgba(9, 9, 11, 0.25);
}

.oate-template-modal::backdrop {
  background: rgba(9, 9, 11, 0.45);
}

.oate-template-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.oate-template-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.oate-template-modal-head h2 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.oate-template-includes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--studio-line);
  background: #fafafa;
}

.oate-template-includes legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
}

.oate-template-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .oate-check-tab,
  .oate-check-drawer,
  .oate-preset-card,
  .oate-feedback-card {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1000px) {
  .oate-car-hero .oate-converter-hero-lead {
    margin-left: 0;
  }
  .oate-car-hero-bg img {
    object-position: 86% center;
    opacity: 0.78;
  }
  .oate-car-hero-scrim {
    background: linear-gradient(
      90deg,
      rgba(9, 9, 11, 0.96) 0%,
      rgba(9, 9, 11, 0.84) 48%,
      rgba(9, 9, 11, 0.24) 74%,
      rgba(9, 9, 11, 0) 100%
    );
  }
  .oate-car-identity,
  #parameters,
  #kinematic-parameters,
  #visual,
  #sounds,
  .oate-output-dual,
  .oate-feedback-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .oate-output-dual,
  .oate-car-pack-meta,
  .oate-feedback-inputs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .oate-car-hero-bg {
    top: auto;
    bottom: 0;
    height: 250px;
  }
  .oate-car-hero-bg img {
    object-position: 92% bottom;
    opacity: 0.92;
  }
  .oate-car-hero-scrim {
    background: linear-gradient(
      180deg,
      #09090b 0%,
      rgba(9, 9, 11, 0.95) 48%,
      rgba(9, 9, 11, 0.14) 68%,
      rgba(9, 9, 11, 0) 100%
    );
  }
  .oate-car-hero-inner {
    padding-bottom: 205px;
  }
  .oate-car-hero-dissolve {
    height: 52px;
  }
}

@media (max-width: 620px) {
  .oate-car-body .oate-converter-header .oate-header-nav a:first-child {
    display: inline-flex;
  }
  .oate-car-body .oate-converter-header .oate-header-nav a:not(:first-child) {
    display: none;
  }
  .oate-car-identity,
  #parameters,
  #kinematic-parameters,
  #visual,
  #sounds,
  .oate-car-visual-extra,
  #custom-animations {
    grid-template-columns: minmax(0, 1fr);
  }
  .oate-pro-panel {
    padding: 16px;
  }
  .oate-check-tab {
    top: auto;
    bottom: 18px;
    right: 12px;
    transform: none;
    flex-direction: row;
    border: 1.5px solid var(--studio-ink);
    padding: 8px 12px;
  }
  .oate-check-tab-label {
    writing-mode: horizontal-tb;
  }
}
