.vehicle-studio-screen h2, .vehicle-studio-screen h3, .vehicle-studio-screen h4 { margin: 0; }
.vehicle-studio-screen form { display: grid; gap: 12px; }
.vehicle-studio-screen label:not(.vehicle-selection) { display: grid; gap: 4px; min-width: 0; font-weight: 600; }
.vehicle-studio-screen :is(input:not([type="checkbox"]), select, textarea) {
  width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); background: var(--surface); font: inherit;
}
.vehicle-studio-screen :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.vehicle-studio-screen textarea { resize: vertical; }
.vehicle-studio-screen small, .vehicle-event { color: var(--ink-2); }
.vehicle-studio-screen a { color: var(--accent-text); }
.vehicle-studio-screen fieldset { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.vehicle-studio-screen .upload-set label { display: flex; align-items: baseline; }
.vehicle-start, .vehicle-workspace { display: grid; gap: 24px; align-items: start; margin-top: 20px; }
.vehicle-start { grid-template-columns: minmax(320px, 650px) minmax(240px, 1fr); }
.vehicle-start h2 { margin-bottom: 12px; }
.vehicle-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 12px; align-items: start; }
.vehicle-start form > button, .vehicle-publish > button { justify-self: start; }
.vehicle-run-list, .vehicle-references ul { list-style: none; padding: 0; margin: 0; }
.vehicle-run-list li { border-top: 1px solid var(--line); }
.vehicle-run-list button { display: grid; gap: 4px; width: 100%; padding: 12px 0; text-align: start; }
.vehicle-run-list button span { color: var(--ink-2); }
.vehicle-alert { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.vehicle-run-head, .vehicle-section-head, .vehicle-review-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vehicle-run-head, .vehicle-section-head { justify-content: space-between; }
.vehicle-run-head { margin-top: 24px; }
.vehicle-run-head p { margin: 4px 0 0; color: var(--ink-2); }
.vehicle-intake-summary, .vehicle-references { border-block: 1px solid var(--line); padding: 10px 0; margin-top: 16px; }
.vehicle-studio-screen summary { cursor: pointer; font-weight: 650; }
.vehicle-studio-screen .vehicle-share { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.vehicle-workspace { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; margin-top: 12px; }
.vehicle-shot { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.vehicle-shot:has(input:checked) { border-color: var(--accent-text); }
.vehicle-image-button { display: block; width: 100%; padding: 0; background: var(--surface-2); }
.vehicle-image-button img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.vehicle-shot-body { display: grid; gap: 8px; padding: 10px; }
.vehicle-shot-body .button { justify-self: start; }
.vehicle-selection { display: flex; gap: 6px; align-items: baseline; }
.vehicle-chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: clamp(360px, 64dvh, 800px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; background: var(--surface); }

.vehicle-chat > form { border-top: 1px solid var(--line); }
.vehicle-feed { min-height: 0; overflow: auto; overflow-wrap: anywhere; }
.vehicle-event { margin: 0; font-size: var(--text-sm); }
.vehicle-review { display: grid; gap: 12px; padding: 12px 0; margin-top: 16px; border-top: 1px solid var(--line); }
.vehicle-review p { margin: 0; }
.vehicle-review select { max-width: 320px; }
.vehicle-review-actions [aria-pressed="true"] { border-color: var(--accent-text); color: var(--accent-text); }
.vehicle-native { position: relative; width: fit-content; max-width: 100%; background: var(--surface-2); }
.vehicle-native img { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; }
.vehicle-native.is-marking img { cursor: crosshair; }
.vehicle-native span { position: absolute; transform: translate(-50%, -50%); color: #fff; background: #a31e36; border: 1px solid #fff; border-radius: 50%; padding-inline: .35em; pointer-events: none; }
.vehicle-publish { border-top: 1px solid var(--line); padding-top: 12px; }
.vehicle-references li { display: flex; justify-content: space-between; gap: 8px; padding-top: 6px; }

@media (min-width: 1120px) {
  .vehicle-chat { position: sticky; top: 12px; }
}
@media (max-width: 940px) {
  .vehicle-start, .vehicle-workspace { grid-template-columns: minmax(0, 1fr); }
  .vehicle-studio-screen { padding-inline: 16px; }
}
.vehicle-folder-picker { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; }
.vehicle-folder-picker ul { display: grid; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; }
.vehicle-folder-picker li { display: flex; justify-content: space-between; gap: 8px; }

.vehicle-studio-screen [hidden] { display: none; }
.vehicle-run-head h1 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.vehicle-studio-screen .ad-back { margin-bottom: 10px; }
.vehicle-run-head { margin-top: 0; }
.vehicle-spec { display: grid; gap: 8px; padding: 12px 16px; }
.vehicle-spec legend { font-weight: 650; }
.vehicle-grid:has(.vehicle-shot:nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vehicle-chat .ad-note { margin: 0; }
@media (max-width: 540px) {
  .vehicle-grid:has(.vehicle-shot:nth-child(3)) { grid-template-columns: minmax(0, 1fr); }
}

.vehicle-studio-screen .vehicle-mobile-jump { display: none; }
.vehicle-gallery { min-width: 0; }
@media (max-width: 940px) {
  .vehicle-studio-screen .vehicle-mobile-jump { display: inline-flex; }
  .vehicle-gallery > .vehicle-mobile-jump { margin-top: 12px; }
}

.vehicle-run-list button { background: transparent; color: var(--ink); border: 0; padding: 18px 12px; cursor: pointer; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.vehicle-run-list button:hover { background: var(--surface-2); }
.vehicle-run-list button strong { color: var(--accent-text); }
.vehicle-start { display: block; max-width: 820px; }
.vehicle-options { grid-column: 1 / -1; }
.vehicle-build-fields { display: grid; gap: 12px; padding-block: 14px; border-block: 1px solid var(--line); }
.vehicle-workspace { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); }
.vehicle-image-button { border: 0; cursor: zoom-in; }
.vehicle-studio-screen .vehicle-review { margin: 0; padding-top: 0; border: 0; }
.vehicle-review h3:focus:not(:focus-visible) { outline: none; }
.vehicle-gallery h3 small { margin-left: 4px; font-weight: 400; }
.vehicle-activity { color: var(--ink-2); font-size: var(--text-sm); }
.vehicle-activity ul { padding-left: 20px; line-height: 1.65; }
.vehicle-chat .ad-entries { margin: 0; }
.vehicle-native { width: 100%; }
.vehicle-native:has([data-corner-image]) { width: fit-content; }
.vehicle-native img { margin-inline: auto; }
@media (max-width: 940px) {
  .vehicle-workspace { grid-template-columns: minmax(0, 1fr); }
  .vehicle-run-list button { grid-template-columns: 1fr; }
}
.vehicle-run-list button { display: flex; }
.vehicle-run-list img { width: clamp(90px, 13vw, 195px); aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); }
.vehicle-run-list .vehicle-run-name { display: grid; gap: 5px; flex: 1; }
.vehicle-review > .button { justify-self: start; }
.vehicle-run-list .vehicle-run-status { font-size: var(--text-sm); }
@media (max-width: 600px) {
  .vehicle-run-list button { flex-wrap: wrap; }
  .vehicle-run-status { width: 100%; }
}

[data-quote-shots] details { padding-block: 8px; border-top: 1px solid var(--line); }
[data-quote-shots] pre, .vehicle-quoted-prompt { white-space: pre-wrap; overflow-wrap: anywhere; }

.vehicle-viewport { min-width: 0; }
.vehicle-viewport.is-zoomed { overflow: auto; max-height: 72vh; overscroll-behavior: contain; }
.vehicle-viewport.is-zoomed .vehicle-native { width: max-content; max-width: none; }
.vehicle-viewport.is-zoomed .vehicle-native img { width: revert; height: revert; max-width: none; max-height: none; }

.vehicle-plan:not(:empty) { display: grid; justify-items: start; gap: 8px; padding-block: 10px; border-block: 1px solid var(--line); }
.vehicle-plan p { margin: 0; }
.vehicle-plan ol { margin-block: 8px; padding-inline-start: 24px; }

.vehicle-inspection { display: grid; gap: 12px; align-items: start; min-width: 0; container-type: inline-size; }
.vehicle-inspection:has(.vehicle-reference-photo:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vehicle-reference-photo { margin: 0; display: grid; gap: 6px; min-width: 0; }
.vehicle-reference-photo img { display: block; width: 100%; height: auto; }
.vehicle-reference-photo figcaption { color: var(--ink-2); font-size: var(--text-sm); }
@container (max-width: 510px) {
  .vehicle-inspection:has(.vehicle-reference-photo:not([hidden])) > * { grid-column: 1 / -1; }
}

.vehicle-reference-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 8px; }
.vehicle-reference-grid:empty, .vehicle-reference-grid:empty + .vehicle-photo-hint { display: none; }
.vehicle-reference-card { padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; overflow-wrap: anywhere; }
.vehicle-reference-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface-2); }
.vehicle-reference-card:not(:has(:checked)) img { opacity: .45; }

.vehicle-review-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vehicle-review-nav span { margin-inline-start: auto; color: var(--ink-2); font-size: var(--text-sm); }
.vehicle-shot-status { font-size: var(--text-sm); }
