/* styles for the garage screen only (prefix .v-garage-) */

/* hosts are layout-transparent so their children space out like direct children of .v-page */
.v-garage-host { display: contents; }

.v-garage-page { gap: 44px; }

/* ------------------------------------------------------------------ saved cars: the hero */
.v-garage-cars { gap: 0; margin-top: 4px; }
.v-garage-car { min-height: 96px; padding: 22px 0; gap: 16px; align-items: center; }
.v-garage-car-t { font: 600 26px/1.15 var(--v-display); letter-spacing: -0.025em; color: var(--v-text); }
.v-garage-car-s { margin-top: 4px; font: 500 15px/1.35 var(--v-font); color: var(--v-text-2); }
.v-garage-on { flex: none; display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--v-font); color: var(--v-text); }
.v-garage-on i { width: 8px; height: 8px; border-radius: 50%; background: var(--v-ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v-ok) 18%, transparent); }
.v-garage-editrow { cursor: default; }
.v-garage-editrow:active { opacity: 1; }
.v-garage-del {
  flex: none; width: 32px; height: 32px; padding: 0; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.v-garage-del i { position: relative; display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--v-crit); transition: transform 0.18s var(--v-ease); }
.v-garage-del i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: #fff; }
.v-garage-del:active i { transform: scale(0.88); }
.v-garage-cta { margin-top: -16px; }

/* recall check: flattened into the list, color only for the result */
.v-garage-recall { position: relative; }
.v-garage-recall::before { content: ""; display: block; height: 1px; background: var(--v-sep); transform: scaleY(0.6); }
.v-garage-recall .rc-card { background: none !important; border: 0 !important; border-radius: 0; }
.v-garage-recall .rc-details > summary,
.v-garage-recall .rc-row { min-height: 58px; padding: 12px 0; gap: 14px; }
.v-garage-recall .rc-icon { width: 32px; justify-content: center; }
.v-garage-recall .rc-text { gap: 2px; }
.v-garage-recall .rc-text strong { font-size: 17px; line-height: 1.3; font-weight: 500; }
.v-garage-recall .rc-text .muted { font-size: 14px; color: var(--v-text-2); }
.v-garage-recall .rc-bad .rc-text strong { color: var(--v-crit); }
.v-garage-recall .rc-body { padding: 0 0 12px 46px; gap: 12px; }
.v-garage-recall .rc-line { font-size: 15px; color: var(--v-text-2); }
.v-garage-recall .rc-list { gap: 0; }
.v-garage-recall .rc-item { padding: 12px 0; border: 0; border-top: 1px solid var(--v-sep); border-radius: 0; background: none; }
.v-garage-recall .rc-text a, .v-garage-recall .rc-note a { color: var(--v-tint); text-decoration: none; }
.v-garage-recall .rc-more > summary { color: var(--v-tint); font-weight: 500; }

/* ------------------------------------------------------------------ add a car */
.v-garage-form { gap: 22px; }
.v-garage-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.v-garage-label { font-size: 15px; font-weight: 500; color: var(--v-text-2); padding: 0 4px; }
.v-garage-hint { font-size: 13px; line-height: 1.45; color: var(--v-text-3); padding: 0 4px; }
.v-garage-hint.is-err { color: var(--v-crit); }
.v-garage-hint.is-warn { color: var(--v-warn); }
.v-garage-hint.is-ok { color: var(--v-ok); }
.v-garage-err { font-size: 14px; line-height: 1.4; color: var(--v-crit); padding: 0 4px; }

/* VIN: one filled field with the Decode pill inside it */
.v-garage-vin {
  display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 6px 6px 16px;
  border-radius: 16px; background: var(--v-surface); cursor: text; transition: box-shadow 0.2s;
}
.v-garage-vin:focus-within { box-shadow: 0 0 0 1.5px var(--v-text-3); }
.v-garage-vin .v-garage-vin-in {
  flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent !important;
  color: var(--v-text); font: 500 17px/1.2 var(--v-mono); letter-spacing: 0.04em;
}
.v-garage-vin .v-garage-vin-in::placeholder { color: var(--v-text-3); font-family: var(--v-font); letter-spacing: -0.01em; }
.v-garage-vin .v-garage-vin-in:focus { outline: none; }
.v-garage-vin .v-btn { flex: none; }
.v-garage-readvin { align-self: flex-start; padding: 2px 4px; }

.v-garage-result { display: flex; align-items: flex-start; gap: 12px; padding: 6px 4px 0; }
.v-garage-result[hidden] { display: none; }
.v-garage-result > .icon { margin-top: 1px; }
.v-garage-result.ok > .icon { color: var(--v-ok); }
.v-garage-result.bad > .icon { color: var(--v-warn); }
.v-garage-result-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--v-text-2); }
.v-garage-result-t strong { font-size: 16px; font-weight: 600; color: var(--v-text); }
.v-garage-result-t .is-warn { color: var(--v-warn); }

.v-garage-or { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--v-text-3); }
.v-garage-or::before, .v-garage-or::after { content: ""; flex: 1; height: 1px; background: var(--v-sep); transform: scaleY(0.6); }

.v-garage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 340px) { .v-garage-grid { grid-template-columns: 1fr; } }

/* native selects and text inputs as filled rounded fields */
.v-garage-select { position: relative; display: block; }
.v-garage-select select,
.v-garage-field .v-garage-input {
  display: block; width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px;
  background: var(--v-surface); color: var(--v-text); font: 400 17px/1.2 var(--v-font);
  -webkit-appearance: none; appearance: none; transition: box-shadow 0.2s, opacity 0.2s;
}
.v-garage-select select { padding-right: 40px; text-overflow: ellipsis; cursor: pointer; }
.v-garage-select > .icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--v-text-3); pointer-events: none;
}
.v-garage-select select:disabled { opacity: 0.5; cursor: default; }
.v-garage-select select:focus, .v-garage-field .v-garage-input:focus { outline: none; box-shadow: 0 0 0 1.5px var(--v-text-3); }
.v-garage-field .v-garage-input::placeholder { color: var(--v-text-3); }
.v-garage-field .v-garage-input[hidden] { display: none; }

.v-garage-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.v-garage-actions .v-note { text-align: center; padding: 0 12px; }

/* ------------------------------------------------------------------ supported cars sheet + footer notes */
.v-garage-sheet { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.v-garage-foot { display: flex; flex-direction: column; gap: 10px; }
