@font-face {
  font-family: 'Instrument Sans';
  src: url('./assets/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('./assets/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #f6f5f0;
  --ink: #252c2f;
  --muted: #667074;
  --line: #dcdfd9;
  --white: #fffefb;
  --amber: #d5a45b;
  --amber-pale: #f3e8d5;
  --blue: #e7f0f0;
  --stage: #d5dfe0;
  font-family: 'Instrument Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.48;
}
button,
select,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
canvas:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #9c6623;
  outline-offset: 4px;
}
button,
select {
  border-radius: 6px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  display: block;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.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;
  left: 16px;
  top: -70px;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(20px, 3.4vw, 64px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.5px;
}
.brand svg {
  width: 26px;
  height: 26px;
}
.brand-divider {
  font-weight: 400;
  margin: 0 8px;
  color: #a4aaa9;
}
.brand-section {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}
.text-button {
  min-height: 44px;
  border: 0;
  padding: 8px 0;
  background: none;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.create-yours {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 11px 16px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 500;
}
.create-yours:hover {
  background: var(--ink);
  color: var(--white);
}
.foundry {
  max-width: 1660px;
  margin: 0 auto;
  padding: 28px clamp(20px, 3.4vw, 64px) 0;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
}
h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1.3px;
}
.intro > div > p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.intro-note {
  font-size: 13px;
  line-height: 1.75;
  text-align: right;
}
.intro-note span {
  color: var(--muted);
}
.garage {
  border: 1px solid #cfd5d1;
  border-radius: 12px;
  overflow: clip;
  background: var(--white);
  box-shadow: 0 14px 38px -32px #26343f80;
}
.mission-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 19px;
  min-height: 64px;
  border-bottom: 1px solid #cfd5d1;
}
.mission-label {
  font-size: 12px;
  color: var(--muted);
}
.presets {
  display: flex;
  gap: 5px;
}
.preset {
  border: 1px solid transparent;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
}
.preset:hover {
  background: #efefea;
}
.preset[aria-pressed='true'] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.preset .preset-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: middle;
  margin-right: 8px;
}
.reset-button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  font-size: 12px;
  min-height: 38px;
  padding: 5px 4px;
  white-space: nowrap;
}
.reset-button span {
  font-size: 21px;
}
.garage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
}
.vehicle-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.vehicle-stage {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 472px;
  background: var(--stage);
  overflow: hidden;
}
#rover-canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  touch-action: none;
  outline-offset: -4px;
}
.rover-poster {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  inset: 0;
  background: #d2d6d6;
}
.vehicle-stage[data-state='ready'] .rover-poster {
  visibility: hidden;
}
.vehicle-stage[data-state='error'] #rover-canvas {
  visibility: hidden;
}
.stage-heading {
  pointer-events: none;
  position: absolute;
  top: 25px;
  left: 26px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.stage-kicker {
  font-size: 11px;
  color: #4e6168;
  display: block;
  margin-bottom: 6px;
}
.stage-heading h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
}
.stage-heading p {
  font-size: 12px;
  color: #53656b;
  margin-top: 7px;
}
.build-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #55776e;
  background: #86a698;
  margin-top: 4px;
  box-shadow: 0 0 0 4px #ffffff38;
}
.stage-tools {
  position: absolute;
  top: 25px;
  right: 27px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.build-dot {
  display: none;
}
.lighting-control,
.stage-button {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 37px;
  background: #f4f8f5d9;
  border: 1px solid #7b90912b;
  border-radius: 6px;
  font-size: 12px;
}
.lighting-control {
  padding-left: 10px;
}
.lighting-control select {
  background: transparent;
  border: 0;
  min-height: 35px;
  padding: 7px 8px 7px 0;
  color: var(--ink);
  font-size: 12px;
  max-width: 100%;
}
.lighting-control svg,
.stage-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.stage-button {
  padding: 8px 10px;
}
.stage-button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.viewer-feedback {
  position: absolute;
  inset: auto 25px 80px;
  padding: 14px 18px;
  background: #fffefbec;
  border: 1px solid #bdc6bf;
  box-shadow: 0 6px 24px #293b4310;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 400px;
  margin: auto;
}
.viewer-feedback strong,
.viewer-feedback span:not(.loader-mark) {
  display: block;
}
.viewer-feedback strong {
  font-size: 13px;
  font-weight: 500;
}
.viewer-feedback #viewer-detail {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.4;
}
.loader-mark {
  width: 18px;
  height: 18px;
  border: 2px solid #c8d1cb;
  border-top-color: #89642f;
  border-radius: 50%;
  flex-shrink: 0;
  animation: loading 1s linear infinite;
}
@keyframes loading {
  to {
    transform: rotate(360deg);
  }
}
.vehicle-stage[data-state='ready'] .viewer-feedback {
  display: none;
}
.vehicle-stage[data-state='error'] .loader-mark {
  animation: none;
  border-radius: 3px;
  background: var(--amber-pale);
  border-color: #a27d45;
}
#retry-viewer {
  font-size: 12px;
  flex-shrink: 0;
  padding: 9px;
  min-height: 40px;
  background: var(--ink);
  color: white;
  border: 0;
  margin-left: auto;
}
.stage-bottom {
  position: absolute;
  inset: auto 25px 19px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.camera-controls {
  display: flex;
  flex-shrink: 0;
  border: 1px solid #86979244;
  background: #f9fbf4e0;
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
}
.camera-controls button {
  border: 0;
  padding: 8px 10px;
  min-height: 32px;
  background: transparent;
  border-radius: 4px;
  font-size: 11px;
}
.camera-controls button[aria-pressed='true'] {
  background: #3e5056;
  color: white;
}
.camera-controls #reset-view {
  font-size: 17px;
  line-height: 1;
  padding: 6px 10px;
  border-left: 1px solid #c7d1ca;
  border-radius: 0;
}
.orbit-hint {
  font-size: 10px;
  color: #52646a;
  white-space: nowrap;
}
.orbit-hint span {
  margin: 0 4px;
}
.build-stats {
  padding: 17px 24px 19px;
  border-top: 1px solid #cbd3ce;
  background: #edf0e9;
}
.stats-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 12px;
}
.stats-label > span + span {
  font-size: 10px;
  color: #68736d;
}
.stat-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.stat-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 11px;
}
.stat-title strong {
  font-size: 12px;
  font-weight: 500;
}
.stat-track {
  height: 4px;
  background: #d0d8cc;
  overflow: hidden;
  border-radius: 3px;
}
.stat-fill {
  height: 100%;
  background: #5e7062;
  border-radius: 3px;
  transition: width 0.24s ease;
}
.equipment {
  min-width: 0;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  outline-offset: -4px;
}
.equipment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 21px 17px;
}
.equipment-header h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}
.equipment-header > span {
  font-size: 10px;
  padding: 4px 7px;
  border: 1px solid #dce0d7;
  border-radius: 4px;
  color: #68706a;
}
.category-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 0 14px 17px;
  border-bottom: 1px solid var(--line);
}
.category-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  min-height: 59px;
  padding: 9px 1px 7px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 9px;
  line-height: 1.2;
  color: #63706d;
}
.category-tab svg {
  height: 21px;
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-tab:hover {
  background: #f1f2ed;
}
.category-tab[aria-selected='true'] {
  color: #6e5029;
  background: var(--amber-pale);
  border-color: #ddc49a;
}
.equipment-panel {
  padding: 20px 20px 16px;
  flex: 1;
  outline-offset: -4px;
}
.category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.category-heading h3 {
  font-size: 17px;
  font-weight: 500;
}
.category-heading span {
  color: var(--muted);
  font-size: 10px;
}
#category-description {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 16px;
}
.options {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.option-card {
  position: relative;
  display: block;
  cursor: pointer;
}
.option-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.option-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid #dee1d9;
  border-radius: 7px;
  min-height: 83px;
  background: #fdfcf9;
}
.option-card:hover .option-body {
  border-color: #afa98e;
}
.option-card input:checked + .option-body {
  background: #faf3e8;
  border-color: #be975d;
  box-shadow: inset 3px 0 #bd9353;
}
.option-card input:focus-visible + .option-body {
  outline: 3px solid #9c6623;
  outline-offset: 3px;
}
.option-symbol {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #d8ded7;
  background: #edf0e9;
  border-radius: 6px;
}
.option-symbol svg {
  width: 24px;
  height: 24px;
  stroke: #6a766d;
  stroke-width: 1.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.option-copy {
  flex: 1;
  min-width: 0;
}
.option-name {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.option-check {
  opacity: 0;
  color: #84602c;
  font-weight: 600;
}
.option-card input:checked + .option-body .option-check {
  opacity: 1;
}
.option-description {
  display: block;
  color: #65706c;
  font-size: 10px;
  line-height: 1.55;
  margin-top: 5px;
}
.option-character {
  display: block;
  font-size: 9px;
  color: #85744f;
  margin-top: 7px;
}
.paint-options {
  grid-template-columns: 1fr 1fr;
}
.paint-options .option-body {
  display: block;
  padding: 10px;
  min-height: 112px;
}
.paint-swatch {
  display: block;
  height: 39px;
  width: 100%;
  border-radius: 4px;
  border: 1px solid #0000000f;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.paint-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #ffffff33, transparent 50%, #00000012);
}
.paint-options .option-name {
  font-size: 11px;
  min-height: 29px;
}
.loadout-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 18px;
}
.loadout-actions button {
  flex: 1;
  font-size: 11px;
  min-height: 39px;
  padding: 8px;
}
.secondary-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #d4d9d0;
  background: var(--white);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}
.secondary-button:not(:disabled):hover {
  background: #edefe7;
  border-color: #afb8ad;
}
.primary-button {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.primary-button:not(:disabled):hover {
  background: #43524c;
  border-color: #43524c;
}
.secondary-button svg,
.primary-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.restore-button {
  border: 0;
  background: transparent;
  color: #66705d;
  font-size: 11px;
  min-height: 35px;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: -12px 20px 9px;
}
.garage-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
}
.garage-bottom > p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #627061;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #7e9271;
  border-radius: 50%;
  flex-shrink: 0;
}
.export-actions {
  display: flex;
  gap: 8px;
}
.file-type {
  border-left: 1px solid #ffffff38;
  padding-left: 9px;
  font-size: 9px;
  letter-spacing: 0.2px;
  color: #c6ccbf;
}
.workshop-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 1px;
}
.workshop-invite h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
}
.workshop-invite p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 5px;
}
.story-button {
  display: flex;
  gap: 20px;
  min-height: 44px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #adb6a8;
  border-radius: 0;
  background: none;
  padding: 9px 0;
  font-size: 12px;
  white-space: nowrap;
}
.story-button:hover {
  border-color: #3b4a3c;
}
.site-footer {
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 18px clamp(20px, 3.4vw, 64px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
  min-height: 66px;
  font-size: 11px;
  color: var(--muted);
}
.site-footer > a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.site-footer[data-experiment-controls] {
  position: static;
  flex-shrink: 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 12px);
  width: max-content;
  max-width: calc(100vw - 32px);
  border-radius: 8px;
  background: #29382f;
  color: #fffef5;
  padding: 13px 20px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 4px 20px #18201b25;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.toast[data-visible='true'] {
  opacity: 1;
  transform: translate(-50%, 0);
}
.noscript-note {
  padding: 20px;
  background: var(--amber-pale);
  line-height: 1.65;
  font-size: 14px;
  margin-bottom: 24px;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #b9c1b7;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 24px 100px #17251a55;
  max-height: min(90dvh, 1000px);
}
dialog::backdrop {
  background: #1e292ab8;
  backdrop-filter: blur(4px);
}
.workshop-dialog {
  width: min(980px, calc(100vw - 48px));
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 23px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 2;
}
.dialog-heading > span {
  font-size: 12px;
}
.close-dialog {
  border: 0;
  background: transparent;
  padding: 0;
  width: 40px;
  height: 40px;
  font-size: 28px;
  font-weight: 400;
}
.close-dialog:hover {
  background: #e8eae1;
}
.workshop-content {
  padding: 32px;
}
.workshop-content > h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}
.story-intro {
  max-width: 540px;
  line-height: 1.7;
  font-size: 14px;
  color: var(--muted);
  margin: 20px 0 30px;
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 22px;
}
.process-step {
  min-width: 0;
}
.process-step > img {
  width: 100%;
  aspect-ratio: 3/2;
  display: block;
  object-fit: cover;
  background: #dce1d9;
  border-radius: 7px;
  margin-bottom: 16px;
}
.step-index {
  font-size: 10px;
  color: #7b7058;
}
.process-step h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 29px;
  margin: 7px 0 10px;
}
.process-step p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}
.model-name {
  display: block;
  font-size: 11px;
  margin: 12px 0 4px;
}
.process-step a {
  display: inline-flex;
  align-items: center;
  min-height: 33px;
  font-size: 11px;
}
.sound-model-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
}
.workshop-downloads {
  border-top: 1px solid #d5dace;
  margin-top: 34px;
  padding-top: 27px;
}
.workshop-downloads h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
}
.workshop-downloads p {
  font-size: 12px;
  margin-top: 7px;
  color: var(--muted);
}
.download-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.download-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  border: 1px solid #d8dccc;
  padding: 15px;
  min-height: 55px;
  border-radius: 6px;
  font-size: 12px;
}
.download-grid a > span + span {
  white-space: nowrap;
  font-size: 10px;
  color: var(--muted);
}
.download-grid a:hover {
  background: #eaeee3;
  border-color: #b7c0ad;
}
.workshop-cta {
  margin-top: 25px;
  font-size: 13px;
}
.share-dialog {
  width: min(480px, calc(100vw - 32px));
  padding-bottom: 24px;
}
.share-dialog .dialog-heading {
  margin-bottom: 20px;
}
.share-dialog h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
}
.share-dialog > p,
.share-dialog > label,
.share-dialog > input,
.share-dialog > button {
  margin-left: 24px;
  margin-right: 24px;
}
.share-dialog > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.share-dialog > label {
  display: block;
  font-size: 12px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.share-dialog > input {
  width: calc(100% - 48px);
  border: 1px solid #bac7ba;
  padding: 12px;
  font-size: 13px;
  background: white;
}
.share-dialog > button {
  margin-top: 12px;
}
#share-status {
  margin-top: 10px;
  font-size: 12px;
}

@media (min-width: 1500px) {
  .vehicle-stage {
    min-height: 570px;
  }
  .garage-grid {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
}
@media (max-width: 1200px) {
  .stage-tools {
    top: 117px;
    left: 25px;
    right: auto;
  }
  .orbit-hint {
    display: none;
  }
  .mission-bar {
    gap: 13px;
  }
}
@media (max-width: 1000px) {
  .foundry {
    padding-left: 24px;
    padding-right: 24px;
  }
  .garage-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .stage-heading {
    top: 20px;
    left: 20px;
  }
  .stage-heading h2 {
    font-size: 32px;
  }
  .stage-tools {
    left: 20px;
    top: 110px;
  }
  .stage-bottom {
    left: 15px;
    right: 15px;
  }
  .camera-controls button {
    padding: 8px 7px;
  }
  .equipment-panel {
    padding: 18px 16px 14px;
  }
  .category-tabs {
    padding-left: 10px;
    padding-right: 10px;
    gap: 2px;
  }
  .stat-list {
    gap: 12px;
  }
  .stat-title {
    font-size: 10px;
  }
  .build-stats {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 800px) {
  .site-header {
    padding: 12px 22px;
  }
  .intro-note {
    display: none;
  }
  .garage-grid {
    display: flex;
    flex-direction: column;
  }
  .vehicle-stage {
    height: 440px;
    min-height: 440px;
    flex: auto;
  }
  .stage-tools {
    top: 22px;
    right: 22px;
    left: auto;
  }
  .stage-heading {
    top: 24px;
    left: 24px;
  }
  .equipment {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .equipment-header {
    padding: 17px 20px 13px;
  }
  .category-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    gap: 5px;
    padding: 0 16px 13px;
    scroll-padding-inline: 16px;
  }
  .category-tab {
    flex: 0 0 65px;
    font-size: 10px;
    min-height: 61px;
  }
  .equipment-panel {
    padding: 20px;
  }
  .options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .option-body {
    flex-direction: column;
    min-height: 164px;
    padding: 12px;
  }
  .option-name {
    font-size: 12px;
  }
  .option-description {
    font-size: 11px;
  }
  .option-character {
    font-size: 10px;
  }
  .paint-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .paint-options .option-body {
    min-height: 106px;
  }
  .paint-options .option-name {
    font-size: 12px;
  }
  .loadout-actions {
    max-width: 360px;
    width: 100%;
    padding: 0 20px 20px;
  }
  .loadout-actions button {
    min-height: 42px;
    font-size: 12px;
  }
  .restore-button {
    align-self: flex-start;
  }
  .stage-bottom {
    left: 24px;
    right: 24px;
  }
  .camera-controls button {
    min-height: 38px;
    padding: 9px 11px;
  }
  .orbit-hint {
    display: block;
  }
  .category-tab:focus-visible {
    outline-offset: -3px;
  }
}
@media (max-width: 560px) {
  .site-header {
    min-height: 67px;
    padding: 10px 17px;
    gap: 10px;
  }
  .brand {
    font-size: 17px;
    gap: 7px;
  }
  .brand svg {
    width: 23px;
    height: 23px;
  }
  .brand-divider,
  .brand-section {
    display: none;
  }
  .header-actions {
    gap: 10px;
    font-size: 11px;
  }
  .header-actions > .text-button {
    display: none;
  }
  .create-yours {
    padding: 10px 12px;
    gap: 9px;
    min-height: 40px;
  }
  .foundry {
    padding: 25px 14px 0;
  }
  .intro {
    margin: 0 4px 22px;
  }
  h1 {
    font-size: 45px;
  }
  .intro > div > p {
    font-size: 12px;
    margin-top: 8px;
  }
  .mission-bar {
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
  }
  .mission-label {
    order: 0;
    font-size: 11px;
  }
  .reset-button {
    order: 1;
    font-size: 11px;
    min-height: 30px;
  }
  .presets {
    order: 2;
    width: 100%;
    gap: 3px;
  }
  .preset {
    flex: 1;
    font-size: 12px;
    min-height: 39px;
    padding: 8px 6px;
  }
  .preset .preset-dot {
    margin-right: 5px;
  }
  .vehicle-stage {
    height: 355px;
    min-height: 355px;
  }
  .stage-heading {
    top: 19px;
    left: 17px;
  }
  .stage-heading h2 {
    font-size: 29px;
  }
  .stage-heading p {
    font-size: 10px;
    margin-top: 5px;
  }
  .stage-kicker {
    font-size: 10px;
    margin-bottom: 4px;
  }
  .stage-tools {
    left: auto;
    top: 17px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  .stage-button {
    font-size: 10px;
    min-height: 34px;
    padding: 7px;
    gap: 5px;
  }
  .lighting-control {
    min-height: 34px;
    padding-left: 7px;
    gap: 5px;
  }
  .lighting-control select {
    font-size: 10px;
    min-height: 32px;
    padding-right: 2px;
  }
  .stage-tools svg {
    width: 14px;
    height: 14px;
  }
  .stage-bottom {
    inset: auto 12px 13px;
    justify-content: center;
  }
  .camera-controls {
    justify-content: center;
    width: 100%;
    max-width: 345px;
  }
  .camera-controls button {
    flex: 1;
    font-size: 10px;
    min-height: 37px;
    padding: 8px 7px;
  }
  .camera-controls #reset-view {
    flex: 0 0 34px;
  }
  .orbit-hint {
    display: none;
  }
  .viewer-feedback {
    inset: auto 12px 72px;
    padding: 11px 12px;
    gap: 10px;
  }
  .viewer-feedback strong {
    font-size: 12px;
  }
  .viewer-feedback #viewer-detail {
    font-size: 10px;
  }
  #retry-viewer {
    font-size: 10px;
    padding: 8px;
  }
  .build-stats {
    padding: 15px;
  }
  .stat-list {
    gap: 11px;
  }
  .stat-title {
    font-size: 9px;
    gap: 3px;
  }
  .stat-title strong {
    font-size: 11px;
  }
  .stats-label > span + span {
    font-size: 9px;
  }
  .equipment-header {
    padding: 17px 16px 13px;
  }
  .equipment-header h2 {
    font-size: 27px;
  }
  .equipment-panel {
    padding: 18px 16px 15px;
  }
  .options {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .option-body {
    flex-direction: row;
    min-height: 89px;
    padding: 13px;
  }
  .option-symbol {
    width: 43px;
    height: 43px;
  }
  .option-name {
    font-size: 13px;
  }
  .option-description {
    font-size: 11px;
  }
  .option-character {
    font-size: 10px;
    margin-top: 5px;
  }
  .paint-options {
    grid-template-columns: 1fr 1fr;
  }
  .paint-options .option-body {
    min-height: 109px;
    padding: 10px;
  }
  .paint-options .option-name {
    font-size: 11px;
  }
  .loadout-actions {
    max-width: none;
    padding: 0 16px 18px;
  }
  .garage-bottom {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    gap: 14px;
  }
  .garage-bottom > p {
    font-size: 10px;
  }
  .export-actions {
    gap: 7px;
  }
  .export-actions button {
    padding: 11px 8px;
    flex: 1;
    font-size: 10px;
    min-height: 43px;
    gap: 6px;
  }
  .export-actions .primary-button {
    flex: 1.2;
  }
  .export-actions .file-type {
    font-size: 8px;
    padding-left: 5px;
  }
  .workshop-invite {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 25px 5px;
  }
  .workshop-invite h2 {
    font-size: 29px;
    max-width: 290px;
  }
  .workshop-invite p {
    font-size: 11px;
    max-width: 300px;
  }
  .story-button {
    min-height: 42px;
    font-size: 12px;
  }
  .site-footer {
    padding: 17px 19px;
    gap: 5px 18px;
    font-size: 10px;
    align-items: flex-start;
  }
  .workshop-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
  .dialog-heading {
    padding: 9px 14px;
  }
  .workshop-content {
    padding: 24px 18px;
  }
  .story-intro {
    font-size: 13px;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .process-step h3 {
    font-size: 30px;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .workshop-downloads h3 {
    font-size: 29px;
  }
  .share-dialog .dialog-heading {
    padding-left: 20px;
  }
  .share-dialog h2 {
    font-size: 27px;
  }
}
@media (max-width: 350px) {
  h1 {
    font-size: 40px;
  }
  .stage-heading h2 {
    font-size: 27px;
  }
  .stage-heading p {
    max-width: 145px;
  }
  .stat-list {
    gap: 8px;
  }
  .stat-title {
    font-size: 8px;
  }
  .file-type {
    display: none;
  }
  .vehicle-stage {
    height: 325px;
    min-height: 325px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

.brand-logo {
  width: 125px;
  height: auto;
  display: block;
}
.dialog-open {
  overflow: hidden;
}
.option-symbol {
  width: 66px;
  height: 56px;
  border: 0;
  background: #e8ece6;
  overflow: hidden;
}
.option-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.paint-swatch img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
@media (max-width: 560px) {
  .brand-logo {
    width: 112px;
  }
  .option-symbol {
    width: 68px;
    height: 60px;
  }
}

.inspect-finish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 36px;
  margin-top: 9px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #79603c;
  font-size: 11px;
}
.inspect-finish:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.category-heading .inspect-finish {
  width: auto;
  min-height: 30px;
  margin: 0;
  gap: 7px;
  padding: 4px 0;
  font-size: 10px;
}
.finish-details {
  border: 1px solid #cbd3c2;
  background: #edf1e8;
  border-radius: 9px;
  padding: 23px;
  margin: 0 0 30px;
  scroll-margin-top: 86px;
}
.finish-preview-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 23px;
  align-items: start;
}
.finish-preview {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #c6cfbc;
}
.finish-preview-grid h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  margin: 8px 0 12px;
}
.finish-caption {
  font-size: 12px;
  line-height: 1.65;
  color: #5c685b;
}
.finish-parameters {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 10px 12px;
  font-size: 11px;
  margin: 20px 0 0;
}
.finish-parameters dt {
  color: #66725f;
}
.finish-parameters dd {
  margin: 0;
  font-weight: 500;
}
.finish-prompt-label {
  display: block;
  font-size: 12px;
  margin: 20px 0 10px;
}
.finish-prompt {
  display: block;
  width: 100%;
  min-height: 145px;
  padding: 13px 15px;
  color: #495447;
  background: #fafbf6;
  border: 1px solid #cbd5c3;
  border-radius: 6px;
  resize: vertical;
  font: inherit;
  font-size: 12px;
  line-height: 1.75;
}
.finish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.finish-actions a {
  text-decoration: none;
  font-size: 11px;
}
.finish-actions button {
  font-size: 11px;
}
.finish-copy-status {
  color: #42593a;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 10px;
}
.finish-access-note {
  font-size: 11px;
  line-height: 1.7;
  color: #687162;
  margin-top: 10px;
}
.finish-model-link {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  font-size: 11px;
  margin-top: 3px;
}
@media (max-width: 700px) {
  .finish-preview-grid {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 15px;
  }
  .finish-parameters {
    grid-template-columns: 1fr auto;
    gap: 7px;
    margin-top: 13px;
  }
  .finish-preview-grid h3 {
    font-size: 30px;
  }
}
@media (max-width: 560px) {
  .finish-details {
    padding: 15px;
  }
  .finish-preview-grid {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px 14px;
  }
  .finish-preview-grid > div {
    display: contents;
  }
  .finish-preview {
    width: 84px;
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .finish-preview-grid .step-index {
    grid-column: 2;
    align-self: end;
  }
  .finish-preview-grid h3 {
    grid-column: 2;
    align-self: start;
    font-size: 26px;
    margin: 0;
  }
  .finish-caption,
  .finish-parameters {
    grid-column: 1 / -1;
  }
  .finish-parameters {
    grid-template-columns: 1fr auto 1fr auto;
    font-size: 10px;
    gap: 10px;
    margin-top: 3px;
  }
  .finish-prompt {
    min-height: 220px;
    font-size: 12px;
  }
  .finish-actions a {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 350px) {
  .finish-parameters {
    grid-template-columns: 1fr auto;
  }
  .finish-actions button {
    width: 100%;
  }
}

/* Mission controls keep the model central and the next action in reach. */
.header-actions .workshop-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid #c7ccc2;
  background: var(--white);
  font-weight: 500;
  text-decoration: none;
}
.header-actions .workshop-button:hover {
  background: var(--amber-pale);
  border-color: #bd9156;
}
.header-actions .create-yours {
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}
.header-actions .create-yours:hover {
  background: #43524c;
}
.shuffle-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #bb8a40;
  background: #eed3a7;
  color: #4d3618;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.shuffle-button:hover {
  background: #e6c28a;
}
.shuffle-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mission-bar {
  gap: 12px;
  flex-wrap: wrap;
}
.mission-label {
  display: none;
}
.presets {
  flex: 1;
  flex-wrap: wrap;
}
.preset {
  padding: 8px 10px;
}
.media-status {
  margin: 0 0 9px;
  font-size: 11px;
  line-height: 1.5;
  color: #536145;
}
.media-status button {
  min-height: 30px;
  padding: 6px 9px;
  margin-left: 4px;
  font-size: 10px;
}
.sound-toggle {
  white-space: nowrap;
}
.sound-toggle .sound-waves {
  display: none;
}
.sound-toggle[aria-pressed='true'] .sound-waves {
  display: block;
}
.sound-toggle[aria-pressed='true'] .sound-muted {
  display: none;
}
.sound-toggle[aria-pressed='true'] {
  background: #e8eee1;
  border-color: #9ca98e;
}
.sound-toggle[data-state='loading'] {
  opacity: 0.7;
}

.paint-material-swatches {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 2px;
  background: #d4d9cf;
}
.paint-material-swatches::after {
  display: none;
}
.paint-material-swatch {
  display: block;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.finish-set-heading h3 {
  margin: 7px 0 8px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
}
.finish-set-heading > p {
  margin: 0;
  color: #5c685b;
  font-size: 12px;
  line-height: 1.6;
}
.finish-materials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 19px 0;
}
.finish-material-choice {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
  padding: 10px;
  background: #fafbf6;
  border: 1px solid #cbd3c2;
  text-align: left;
}
.finish-material-choice[aria-pressed='true'] {
  border-color: #a77938;
  background: #faf3e8;
  box-shadow: inset 0 -3px #bd9353;
}
.finish-material-choice img {
  width: 48px;
  height: 48px;
  grid-row: 1 / span 2;
  object-fit: cover;
  border-radius: 4px;
}
.finish-material-choice strong {
  font-size: 12px;
  font-weight: 500;
}
.finish-material-choice span {
  color: #65705f;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.finish-preview-grid h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  margin: 7px 0 10px;
}
#finish-calibration {
  margin-top: 8px;
  font-size: 11px;
}
#copy-finish-set {
  padding: 0;
  border: 0;
  border-bottom: 1px solid #a5b19b;
  border-radius: 0;
  background: transparent;
  text-underline-offset: 4px;
}
.finish-parameters dd {
  overflow-wrap: anywhere;
  min-width: 0;
}
@media (max-width: 700px) {
  .finish-material-choice {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 6px;
  }
  .finish-material-choice img {
    width: 100%;
    height: 45px;
  }
  .finish-material-choice span {
    font-size: 10px;
  }
}
@media (max-width: 560px) {
  .finish-set-heading h3 {
    font-size: 29px;
  }
  .finish-materials {
    gap: 6px;
  }
  .finish-material-choice {
    padding: 6px;
  }
  .finish-material-choice strong {
    font-size: 10px;
  }
  .finish-preview-grid h4 {
    grid-column: 2;
    font-size: 25px;
    margin: 0;
    overflow-wrap: anywhere;
  }
}

/* The title belongs to the workshop. Keep controls comfortable on short screens. */
.stage-heading h1 {
  font-size: clamp(38px, 3.6vw, 52px);
  letter-spacing: -1px;
  line-height: 1.05;
}
.stage-heading > div > p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.vehicle-stage:has(#lighting option:checked:not([value='studio']))
  .stage-heading
  > div {
  position: relative;
  isolation: isolate;
}
.vehicle-stage:has(#lighting option:checked:not([value='studio']))
  .stage-heading
  > div::before {
  content: '';
  position: absolute;
  inset: -10px -12px;
  z-index: -1;
  border-radius: 7px;
  background: #f6f8f2ed;
  border: 1px solid #ffffff70;
  backdrop-filter: blur(8px);
}
.vehicle-stage:has(#lighting option:checked:not([value='studio'])) .orbit-hint {
  border-radius: 5px;
  background: #f6f8f2ed;
  padding: 7px 10px;
}
.build-identity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.build-identity strong {
  font-size: 13px;
  font-weight: 600;
}
.build-identity span {
  color: #657269;
  font-size: 11px;
}
.stats-label > span:last-child {
  flex-shrink: 0;
  color: #68736d;
  font-size: 10px;
}
@media (min-width: 1100px) {
  .site-header {
    min-height: 66px;
    padding: 10px 28px;
  }
  .header-actions {
    gap: 12px;
  }
  .header-actions .workshop-button,
  .header-actions .create-yours {
    min-height: 44px;
    padding: 11px 18px;
    font-size: 13px;
  }
  .foundry {
    width: 100%;
    max-width: 1960px;
    padding: 18px 28px 0;
  }
  .mission-bar {
    min-height: 64px;
    padding: 10px 20px;
    gap: 16px;
    flex-wrap: nowrap;
  }
  .presets {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .preset {
    font-size: 13px;
    min-height: 41px;
    padding: 9px 12px;
  }
  .shuffle-button {
    min-height: 42px;
    padding: 11px 16px;
    font-size: 13px;
  }
  .reset-button {
    min-height: 41px;
    font-size: 12px;
  }
  .garage-grid {
    height: clamp(640px, calc(100dvh - 286px), 790px);
    grid-template-columns: minmax(0, 1fr) clamp(360px, 27vw, 410px);
  }
  .vehicle-section,
  .equipment {
    min-height: 0;
  }
  .vehicle-stage {
    min-height: 450px;
  }
  .stage-heading {
    top: 28px;
    left: 28px;
    right: 28px;
  }
  .stage-tools {
    left: auto;
    top: 28px;
    right: 26px;
    gap: 9px;
  }
  .stage-button,
  .lighting-control {
    min-height: 41px;
    font-size: 13px;
  }
  .lighting-control select {
    min-height: 39px;
    font-size: 13px;
  }
  .stage-bottom {
    left: 26px;
    right: 26px;
    bottom: 24px;
  }
  .camera-controls button {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 12px;
  }
  .orbit-hint {
    font-size: 11px;
  }
  .build-stats {
    flex: 0 0 auto;
    max-height: 170px;
    overflow: auto;
    padding: 15px 26px 17px;
  }
  .stats-label {
    margin-bottom: 13px;
  }
  .stat-title {
    font-size: 12px;
    margin-bottom: 7px;
  }
  .equipment-header {
    flex: 0 0 auto;
    padding: 18px 24px 13px;
  }
  .equipment-header h2 {
    font-size: 31px;
  }
  .equipment-header > span {
    font-size: 11px;
  }
  .category-tabs {
    flex: 0 0 auto;
    gap: 5px;
    padding: 0 17px 15px;
  }
  .category-tab {
    min-height: 57px;
    padding: 9px 2px;
    gap: 7px;
    font-size: 10px;
  }
  .category-tab svg {
    width: 21px;
    height: 21px;
  }
  .equipment-panel {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 18px 22px;
  }
  .category-heading h3 {
    font-size: 20px;
  }
  .category-heading .inspect-finish {
    font-size: 11px;
    min-height: 34px;
  }
  #category-description {
    margin: 7px 0 15px;
    font-size: 12px;
  }
  .options {
    gap: 10px;
    margin: 0;
  }
  .option-body {
    min-height: 86px;
    padding: 12px;
    gap: 12px;
  }
  .option-symbol {
    width: 68px;
    height: 58px;
    flex-basis: 68px;
  }
  .option-name {
    font-size: 14px;
  }
  .option-description {
    font-size: 12px;
    line-height: 1.45;
    margin-top: 5px;
  }
  .option-character {
    display: none;
  }
  .paint-options .option-body {
    min-height: 86px;
    padding: 10px;
  }
  .paint-swatch {
    height: 32px;
    margin-bottom: 8px;
  }
  .paint-options .option-name {
    font-size: 12px;
    min-height: 18px;
  }
  .loadout-actions {
    flex-shrink: 0;
    padding: 8px 22px 18px;
    gap: 10px;
  }
  .loadout-actions button {
    min-height: 42px;
    padding: 10px;
    font-size: 12px;
  }
  .restore-button {
    flex-shrink: 0;
    margin: -8px 22px 8px;
    min-height: 30px;
    font-size: 12px;
  }
  .garage-bottom {
    padding: 12px 22px;
    min-height: 68px;
  }
  .garage-bottom > p {
    font-size: 12px;
  }
  .garage-bottom .secondary-button,
  .garage-bottom .primary-button {
    min-height: 43px;
    padding: 11px 16px;
    font-size: 13px;
  }
  .workshop-invite {
    padding: 16px 2px;
    gap: 20px;
  }
  .workshop-invite > div {
    display: flex;
    align-items: baseline;
    gap: 16px;
  }
  .workshop-invite h2 {
    font-size: 23px;
  }
  .workshop-invite p {
    margin: 0;
    font-size: 12px;
  }
  .story-button {
    min-height: 34px;
    font-size: 12px;
    padding: 6px 0;
  }
  .site-footer {
    min-height: 52px;
    padding: 9px 28px;
    gap: 8px 22px;
    font-size: 11px;
  }
}
@media (max-width: 1099px) {
  .mission-bar {
    flex-wrap: wrap;
  }
  .presets {
    order: 3;
    flex-basis: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .preset {
    padding: 8px 4px;
  }
  .reset-button {
    margin-left: auto;
  }
}
@media (max-width: 560px) {
  .site-header {
    flex-wrap: wrap;
    padding: 10px 15px;
    gap: 9px;
  }
  .brand-logo {
    width: 106px;
    height: auto;
  }
  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .header-actions .workshop-button,
  .header-actions .create-yours {
    font-size: 11px;
    min-height: 38px;
    padding: 8px 7px;
    gap: 5px;
  }
  .foundry {
    padding-top: 18px;
  }
  .intro {
    margin-bottom: 17px;
  }
  .shuffle-button {
    order: 0;
    min-height: 38px;
    font-size: 11px;
  }
  .reset-button {
    order: 1;
  }
  .presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }
  .preset {
    font-size: 11px;
  }
  .sound-toggle {
    grid-column: 1 / -1;
  }
  .export-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .export-actions .sound-toggle {
    min-height: 35px;
  }
  .media-status {
    font-size: 11px;
  }
}

@media (max-width: 1099px) {
  .foundry {
    padding-top: 18px;
  }
  .stage-heading {
    right: 24px;
  }
  .stage-heading h1 {
    font-size: 41px;
  }
  .stage-heading > div > p {
    font-size: 12px;
  }
}
@media (max-width: 560px) {
  .vehicle-stage {
    height: 440px;
    min-height: 440px;
  }
  .stage-heading {
    left: 17px;
    right: 110px;
    top: 21px;
  }
  .stage-heading h1 {
    font-size: clamp(31px, 9vw, 37px);
    letter-spacing: -0.8px;
  }
  .stage-heading > div > p {
    max-width: 205px;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 8px;
  }
  .build-identity {
    flex-direction: column;
    gap: 3px;
  }
  .build-identity strong {
    font-size: 12px;
  }
  .build-identity span {
    font-size: 10px;
  }
  .stats-label {
    align-items: flex-start;
    gap: 10px;
  }
  .stats-label > span:last-child {
    font-size: 9px;
    padding-top: 2px;
  }
}

/* A dedicated canvas keeps the rover large and stable while status changes. */
.garage-grid {
  height: auto;
}
.vehicle-stage {
  display: flex;
  flex-direction: column;
  flex: none;
  height: auto;
  min-height: 0;
  overflow: visible;
  background: var(--stage);
}
.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 15px 25px;
  background: #eef2ed;
  border-bottom: 1px solid #cbd3ce;
}
.viewer-toolbar .stage-heading {
  position: static;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 20px;
  min-width: 0;
}
.viewer-toolbar .stage-heading > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.viewer-toolbar .stage-heading h1 {
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.05;
}
.viewer-toolbar .stage-button {
  flex-shrink: 0;
}
.viewer-viewport {
  position: relative;
  isolation: isolate;
  height: clamp(650px, 70dvh, 800px);
  min-height: 0;
  overflow: hidden;
}
.viewer-viewport .stage-tools {
  top: 20px;
  left: 24px;
  right: 24px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.viewer-viewport .stage-bottom {
  left: 24px;
  right: 24px;
  bottom: 20px;
}
.viewer-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 68px;
  padding: 12px 24px;
  border-top: 1px solid #cbd3ce;
  background: #f5f6f0;
}
.viewer-actions .export-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.viewer-actions .sound-toggle {
  margin-right: auto;
}
.viewer-actions button {
  min-height: 43px;
  padding: 10px 14px;
  font-size: 12px;
}
.viewer-notices {
  position: absolute;
  bottom: 136px;
  left: 24px;
  right: 24px;
  z-index: 4;
  pointer-events: none;
}
.viewer-notices > p:not([hidden]) {
  width: fit-content;
  max-width: 100%;
  padding: 11px 14px;
  margin: 8px 0 0;
  border: 1px solid #bfcbba;
  border-radius: 6px;
  background: #fffefbf2;
  box-shadow: 0 3px 12px #27352a12;
  color: #394a36;
  font-size: 12px;
  line-height: 1.5;
  pointer-events: auto;
}
.viewer-notices button {
  margin-top: 5px;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
}
.build-stats {
  max-height: none;
  overflow: visible;
  padding: 0;
  flex: none;
}
.build-stats summary {
  padding: 13px 24px;
  cursor: pointer;
  font-size: 12px;
  color: #516256;
}
.build-stats summary span {
  margin-left: 12px;
  font-size: 11px;
  color: #68756c;
}
.build-profile-content {
  padding: 4px 24px 20px;
}
.viewer-fullscreen-open {
  overflow: hidden;
}
.vehicle-stage:fullscreen,
.vehicle-stage.viewer-expanded {
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.vehicle-stage.viewer-expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.viewer-fullscreen .viewer-viewport {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
}
.viewer-fullscreen .toast {
  max-width: min(540px, calc(100vw - 32px));
  bottom: 88px;
}
@media (max-width: 1099px) {
  .viewer-toolbar .stage-heading > p {
    display: none;
  }
  .viewer-viewport {
    height: 590px;
  }
}
@media (max-width: 560px) {
  .viewer-toolbar {
    min-height: 64px;
    padding: 13px 15px;
    gap: 10px;
  }
  .viewer-toolbar .stage-heading h1 {
    font-size: clamp(27px, 7.5vw, 33px);
    letter-spacing: -0.7px;
  }
  .viewer-toolbar .stage-button {
    padding: 8px;
    min-height: 37px;
    font-size: 10px;
    gap: 5px;
  }
  .viewer-viewport {
    height: 480px;
  }
  .viewer-viewport .stage-tools {
    left: 13px;
    right: 13px;
    top: 14px;
    flex-direction: row;
    justify-content: space-between;
    gap: 6px;
  }
  .stage-tools .stage-button,
  .stage-tools .lighting-control {
    min-height: 37px;
    font-size: 11px;
  }
  .stage-tools .stage-button {
    padding: 7px 8px;
  }
  .viewer-viewport .stage-bottom {
    left: 13px;
    right: 13px;
    bottom: 15px;
  }
  .viewer-actions {
    padding: 10px 12px;
    min-height: 68px;
  }
  .viewer-actions .export-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 7px;
  }
  .viewer-actions .sound-toggle {
    margin: 0;
    grid-column: 1 / -1;
  }
  .viewer-actions button {
    padding: 9px 7px;
    min-height: 39px;
    font-size: 11px;
  }
  .viewer-notices {
    left: 13px;
    right: 13px;
    bottom: 176px;
  }
  .viewer-notices > p:not([hidden]) {
    font-size: 11px;
    padding: 9px 11px;
  }
  .build-stats summary {
    padding: 12px 15px;
    font-size: 11px;
  }
  .build-stats summary span {
    margin-left: 7px;
    font-size: 10px;
  }
  .build-profile-content {
    padding: 4px 15px 17px;
  }
  .viewer-fullscreen .toast {
    bottom: 114px;
  }
}
@media (max-height: 500px) {
  .viewer-fullscreen .viewer-toolbar {
    min-height: 52px;
    padding: 8px 16px;
  }
  .viewer-fullscreen .stage-heading h1 {
    font-size: 29px;
  }
  .viewer-fullscreen .viewer-actions {
    min-height: 54px;
    padding: 7px 16px;
  }
  .viewer-fullscreen .stage-tools {
    top: 10px;
  }
  .viewer-fullscreen .stage-bottom {
    bottom: 10px;
  }
  .viewer-fullscreen .orbit-hint {
    display: none;
  }
}

/* Worlds and equipment flank a tall viewer with one control row. */
.workshop-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  grid-template-rows: auto auto;
  grid-template-areas: 'heading heading heading' 'worlds viewer build';
  align-items: stretch;
}
.workshop-shell[data-build-panel='closed'] {
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-areas: 'heading heading' 'worlds viewer';
}
.workshop-shell[data-world-panel='closed'] {
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas: 'heading heading' 'viewer build';
}
.workshop-shell[data-build-panel='closed'][data-world-panel='closed'] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'heading' 'viewer';
}
.workshop-heading {
  grid-area: heading;
}
.workshop-shell > .vehicle-section {
  grid-area: viewer;
  min-width: 0;
}
.workshop-shell .vehicle-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.workshop-shell .viewer-viewport {
  flex: 1;
  min-height: 650px;
  max-height: 800px;
  height: clamp(650px, 70dvh, 800px);
}
.workshop-panel {
  min-width: 0;
  background: #fffefb;
}
.build-panel {
  grid-area: build;
  border-left: 1px solid var(--line);
}
.world-panel {
  grid-area: worlds;
  border-right: 1px solid var(--line);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}
.panel-heading h2 {
  font:
    400 29px/1.1 'Instrument Serif',
    Georgia,
    serif;
}
.panel-heading .panel-toggle {
  flex: 0 0 36px;
  min-height: 36px;
  width: 36px;
  padding: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #657169;
}
.panel-heading .panel-toggle > span {
  display: none;
}
.panel-heading .panel-toggle:hover {
  border-color: var(--line);
  background: #edf0e9;
}
.workshop-shell .mission-toolbar {
  position: absolute;
  top: 12px;
  left: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.viewer-controls-scroll {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px;
  scrollbar-width: thin;
  scrollbar-color: #9ba99e transparent;
  overscroll-behavior-x: contain;
}
.mission-toolbar button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.mission-toolbar .shuffle-button,
.mission-toolbar .reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  min-height: 38px;
  margin: 0;
  padding: 9px;
  order: 0;
}
.mission-toolbar .reset-button {
  border: 1px solid #7b90912b;
  background: #f4f8f5ed;
}
.mission-toolbar .icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mission-toolbar .presets {
  display: flex;
  width: max-content;
  min-width: max-content;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  order: 0;
}
.mission-toolbar .preset {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid #d4dbd0;
  background: #f8faf4;
  font-size: 11px;
}
.mission-toolbar .preset[aria-pressed='true'] {
  border-color: #293435;
  background: #293435;
  color: white;
}
.mission-toolbar .preset-dot {
  width: 4px;
  height: 4px;
  margin-right: 4px;
}
.mission-toolbar .stage-tools {
  position: static;
  inset: auto;
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.mission-toolbar .stage-button {
  min-height: 38px;
  padding: 8px 9px;
  gap: 5px;
  font-size: 11px;
}
.mission-toolbar .stage-button svg {
  display: block;
  width: 15px;
  height: 15px;
}
@media (min-width: 1200px) and (max-width: 1350px) {
  .mission-toolbar .preset {
    padding-inline: 5px;
  }
  .mission-toolbar .presets {
    gap: 3px;
  }
}
.build-panel .equipment {
  border: 0;
  min-height: 0;
}
.build-panel .equipment-header {
  padding: 16px 18px 12px;
}
.build-panel .equipment-header h2 {
  font-size: 25px;
}
.build-panel .category-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: visible;
  padding: 0 11px 12px;
  gap: 3px;
}
.build-panel .category-tab {
  min-width: 0;
  min-height: 53px;
  gap: 6px;
  padding: 7px 1px;
  font-size: 9px;
}
.build-panel .category-tab svg {
  width: 19px;
  height: 19px;
}
.build-panel .equipment-panel {
  flex: none;
  padding: 16px 17px;
  overflow: visible;
}
.build-panel .category-heading h3 {
  font-size: 19px;
}
.build-panel #category-description {
  font-size: 11px;
  line-height: 1.6;
  margin: 6px 0 13px;
}
.build-panel .category-heading .inspect-finish {
  max-width: 157px;
  font-size: 10px;
  gap: 5px;
}
.build-panel .options {
  grid-template-columns: 1fr;
  gap: 8px;
}
.build-panel .option-body {
  min-height: 84px;
  padding: 11px;
  gap: 10px;
  flex-direction: row;
  align-items: center;
}
.build-panel .option-symbol {
  width: 56px;
  height: 52px;
  flex-basis: 56px;
}
.build-panel .option-name {
  font-size: 12px;
}
.build-panel .option-description {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 5px;
}
.build-panel .option-character {
  display: none;
}
.build-panel .paint-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.build-panel .paint-options .option-body {
  flex-direction: column;
  align-items: stretch;
  min-height: 92px;
  gap: 0;
  padding: 9px;
}
.build-panel .paint-options .option-name {
  font-size: 11px;
  line-height: 1.4;
}
.build-panel .paint-swatch {
  height: 34px;
  margin-bottom: 8px;
}
.build-actions {
  padding: 0 17px 17px;
}
.build-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
}
.build-action-buttons > button {
  min-height: 43px;
  padding: 11px 14px;
  gap: 12px;
  font-size: 12px;
}
#download-build > .download-chevron {
  margin-left: auto;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-options {
  padding: 5px;
  margin-top: 8px;
  border: 1px solid #cbd2c6;
  border-radius: 7px;
  background: #f5f7f0;
}
.download-options > button,
.download-options > a {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  min-height: 66px;
  padding: 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  text-decoration: none;
  text-align: left;
}
.download-options > button:hover,
.download-options > a:hover {
  background: #e5ebdd;
}
.download-options > button > span:first-child,
.download-options > a > span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  font-size: 22px;
}
.download-options svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.download-options strong,
.download-options > * > span:last-child > span {
  display: block;
}
.download-options strong {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}
.download-options small {
  font-size: 10px;
  color: #647063;
  margin-left: 6px;
}
.download-options > * > span:last-child > span {
  font-size: 10px;
  line-height: 1.6;
  color: #6c7468;
}
.autosave-error {
  margin-top: 12px;
  color: #925828;
  font-size: 11px;
  line-height: 1.6;
}
.systems-count {
  margin-left: auto;
  flex: none;
  padding: 5px 6px;
  border: 1px solid #d6ddce;
  border-radius: 4px;
  color: #6a7569;
  font-size: 10px;
  white-space: nowrap;
}
.workshop-heading-actions {
  position: relative;
  z-index: 20;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
.workshop-heading-actions .sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  min-width: 38px;
  width: 38px;
  min-height: 38px;
  margin: 0;
  padding: 9px;
}
.workshop-heading-actions .sound-toggle svg {
  width: 18px;
  height: 18px;
}
.build-panel .build-stats {
  background: #f0f3eb;
}
.build-panel .build-stats summary {
  padding: 13px 17px;
  font-size: 11px;
}
.build-panel .build-stats summary span {
  display: none;
}
.build-panel .stats-label {
  display: block;
}
.build-panel .stats-label > span {
  display: block;
  margin-top: 8px;
}
.build-panel .stat-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.workshop-shell .workshop-heading {
  min-height: 84px;
  padding: 18px 22px;
  gap: 20px;
}
.workshop-shell .stage-heading {
  flex: 1 1 auto;
  gap: 18px;
}
.workshop-shell .stage-heading h1 {
  font-size: 38px;
}
.workshop-shell .stage-heading > p {
  display: block;
  font-size: 12px;
}
.workshop-shell #fullscreen-viewer {
  min-height: 38px;
  padding: 9px 13px;
  gap: 8px;
  font-size: 11px;
}
.panel-restore-slot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}
.panel-restore-slot:empty {
  display: none;
}
.panel-restore-slot .panel-toggle {
  min-height: 38px;
  padding: 8px 10px;
  gap: 6px;
  border-color: #a9b7a2;
  background: #fffefbf2;
  font-size: 11px;
}
.world-intro {
  margin: 0 18px 13px;
  color: #718071;
  font-size: 11px;
  line-height: 1.5;
}
.world-options {
  display: grid;
  gap: 7px;
  padding: 0 13px 17px;
}
.world-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 73px;
  padding: 7px;
  border: 1px solid transparent;
  background: #f2f4ee;
  text-align: left;
}
.world-card:hover {
  background: #e8eddf;
}
.world-card[aria-checked='true'] {
  border-color: #ad854a;
  background: #f6eddf;
  box-shadow: inset 3px 0 #c39b5d;
}
.world-card img {
  width: 62px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  background: #dfe6da;
}
.world-card > span {
  grid-column: 2;
  min-width: 0;
}
.world-card strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.world-card > span > span {
  display: block;
  color: #76806e;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 4px;
}
.workshop-shell .viewer-notices {
  bottom: 76px;
}
.vehicle-stage[data-world]:not([data-world='studio']) .orbit-hint {
  border-radius: 5px;
  background: #f6f8f2ed;
  padding: 7px 10px;
}
.workshop-shell:fullscreen,
.workshop-shell.viewer-expanded {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.workshop-shell.viewer-expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.workshop-shell.viewer-fullscreen {
  grid-template-rows: auto minmax(0, 1fr);
}
.workshop-shell.viewer-fullscreen > .workshop-panel {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.workshop-shell.viewer-fullscreen > .vehicle-section,
.workshop-shell.viewer-fullscreen .vehicle-stage {
  height: 100%;
  min-height: 0;
}
.workshop-shell.viewer-fullscreen .viewer-viewport {
  min-height: 0;
  max-height: none;
  height: auto;
  flex: 1 1 0;
}
.workshop-shell.viewer-fullscreen .toast {
  bottom: 78px;
}
/* Grow with the desktop viewport; short screens keep normal document scrolling. */
@media (min-width: 1200px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }
  .site-header {
    flex-shrink: 0;
  }
  .foundry {
    display: flex;
    flex: 1;
    flex-direction: column;
    max-width: none;
  }
  .workshop-shell {
    flex: 1;
    grid-template-rows: auto minmax(650px, 1fr);
  }
  .workshop-shell .viewer-viewport {
    height: auto;
    max-height: none;
  }
}
@media (max-width: 1199px) {
  .workshop-shell,
  .workshop-shell[data-build-panel='closed'],
  .workshop-shell[data-world-panel='closed'],
  .workshop-shell[data-build-panel='closed'][data-world-panel='closed'] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: 'heading heading' 'viewer viewer' 'worlds build';
    align-items: start;
  }
  .workshop-shell[data-build-panel='closed'] {
    grid-template-areas: 'heading heading' 'viewer viewer' 'worlds worlds';
  }
  .workshop-shell[data-world-panel='closed'] {
    grid-template-areas: 'heading heading' 'viewer viewer' 'build build';
  }
  .workshop-shell[data-build-panel='closed'][data-world-panel='closed'] {
    grid-template-areas: 'heading heading' 'viewer viewer';
  }
  .workshop-shell .viewer-viewport {
    min-height: 590px;
    height: 590px;
    flex: none;
  }
  .workshop-panel {
    border-top: 1px solid var(--line);
  }
  .world-panel {
    border-right: 0;
  }
  .world-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .world-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .world-card img {
    width: 100%;
    height: 78px;
  }
  .world-card > span {
    grid-column: 1;
  }
  .workshop-shell.viewer-fullscreen {
    grid-template-rows: max-content max-content max-content;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .workshop-shell.viewer-fullscreen > .vehicle-section {
    height: max(290px, calc(100dvh - var(--workshop-chrome-height, 84px)));
  }
  .workshop-shell.viewer-fullscreen > .workshop-panel {
    height: auto;
    overflow: visible;
  }
  .workshop-shell.viewer-fullscreen .viewer-viewport {
    min-height: 230px;
  }
}
@media (max-width: 650px) {
  .workshop-shell,
  .workshop-shell[data-build-panel='closed'],
  .workshop-shell[data-world-panel='closed'],
  .workshop-shell[data-build-panel='closed'][data-world-panel='closed'] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .workshop-heading {
    order: 0;
  }
  .workshop-shell > .vehicle-section {
    order: 2;
  }
  .build-panel {
    order: 3;
    border-left: 0;
  }
  .world-panel {
    order: 4;
  }
  .workshop-shell .workshop-heading {
    min-height: 88px;
    padding: 14px 13px;
    gap: 8px;
  }
  .workshop-shell .stage-heading {
    display: block;
  }
  .workshop-shell .stage-heading h1 {
    font-size: clamp(30px, 8vw, 37px);
  }
  .workshop-shell .stage-heading > p {
    display: block;
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.4;
  }
  .workshop-shell #fullscreen-viewer {
    min-height: 36px;
    padding: 9px;
  }
  .workshop-shell #fullscreen-viewer > span {
    display: none;
  }
  .workshop-shell .mission-toolbar {
    top: 10px;
    left: 7px;
    right: 7px;
    gap: 5px;
    padding: 0;
  }
  .panel-restore-slot .panel-toggle {
    width: 38px;
    padding: 9px;
  }
  .panel-restore-slot .panel-toggle > span {
    display: none;
  }
  .workshop-shell .viewer-viewport {
    height: 480px;
    min-height: 480px;
  }
  .workshop-shell .stage-tools {
    justify-content: flex-end;
  }
  .build-panel .option-body {
    min-height: 90px;
  }
  .build-panel .option-name {
    font-size: 13px;
  }
  .build-panel .option-description {
    font-size: 12px;
  }
  .workshop-shell.viewer-fullscreen {
    display: flex;
    overflow-y: auto;
  }
  .workshop-shell.viewer-fullscreen > .workshop-heading,
  .workshop-shell.viewer-fullscreen > .workshop-panel,
  .workshop-shell.viewer-fullscreen > .vehicle-section {
    flex: none;
  }
}

.build-actions {
  position: relative;
}
.download-options {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 8px);
  left: 17px;
  right: 17px;
  margin: 0;
  background: #f7f9f2;
  box-shadow: 0 8px 28px #2a3c3024;
}
.download-grid .complete-kit-download {
  grid-column: 1 / -1;
  background: #f2dfb9;
  border-color: #b9955c;
}
.soundtrack-control {
  display: flex;
  align-items: center;
}
.workshop-heading-actions #soundtrack-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 38px;
  padding: 9px;
}
#soundtrack-toggle[aria-expanded='true'] {
  background: #e4ebdf;
  border-color: #a6b39d;
}
.soundtrack-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 286px;
  max-width: calc(100vw - 58px);
  max-height: min(470px, var(--soundtrack-popover-height, 60dvh));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 15px;
  border: 1px solid #becbbb;
  border-radius: 9px;
  background: #fbfcf6;
  box-shadow: 0 12px 36px #253a3129;
  scrollbar-width: thin;
}
#soundtrack-heading {
  display: block;
  margin-bottom: 11px;
  font-size: 13px;
  font-weight: 500;
}
#soundtrack-tracks {
  display: grid;
  gap: 4px;
}
#soundtrack-tracks button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
}
#soundtrack-tracks button:hover {
  background: #edf1e7;
}
#soundtrack-tracks button[aria-checked='true'] {
  background: #f2e3c7;
  border-color: #c39b5d;
}
.soundtrack-indicator {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 1px solid #8e9e87;
  border-radius: 50%;
}
[aria-checked='true'] > .soundtrack-indicator {
  border: 4px solid #88612b;
  background: #fffaf0;
}
#soundtrack-tracks strong,
#soundtrack-tracks button > span > span {
  display: block;
}
#soundtrack-tracks strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
#soundtrack-tracks [data-track-model] {
  color: #4c6049;
  font-weight: 500;
}
#soundtrack-tracks button > span > span {
  margin-top: 3px;
  color: #6b7868;
  font-size: 10px;
  line-height: 1.4;
}
#soundtrack-status {
  margin-top: 12px;
  color: #667562;
  font-size: 10px;
  line-height: 1.6;
}
@media (max-width: 380px) {
  .workshop-shell .stage-heading h1 {
    font-size: 28px;
  }
  .workshop-heading-actions {
    gap: 4px;
  }
  .workshop-heading-actions .sound-toggle,
  .workshop-heading-actions #soundtrack-toggle,
  .workshop-shell #fullscreen-viewer {
    width: 34px;
    min-width: 34px;
    min-height: 36px;
    flex-basis: 34px;
    padding: 8px;
  }
}
.download-note {
  margin: 14px 0 0;
  max-width: 740px;
  color: #667266;
  font-size: 12px;
  line-height: 1.7;
}
