/* Garage: cards with badges, the order's road to delivery, and the photo uploader. */
.garage-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px;margin:0 0 20px}
.garage-card{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;align-items:center;min-height:0;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);text-align:left;font-weight:400}
.garage-card:hover{border-color:var(--red);background:var(--white)}
.garage-card.is-selected{border-color:var(--red);box-shadow:0 0 0 3px rgba(227,6,19,.16)}
.garage-card-photo{display:grid;place-items:center;width:88px;aspect-ratio:4/3;overflow:hidden;border-radius:10px;background:var(--soft);color:var(--muted)}
.garage-card-photo img{display:block;width:100%;height:100%;object-fit:cover}
.garage-card-body{display:grid;gap:3px;min-width:0}
.garage-card-body strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9375rem}
.garage-card-body small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.75rem}
.garage-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}
.garage-badge{border-radius:999px;padding:3px 9px;background:var(--soft);color:var(--muted);font-size:.75rem;font-weight:700;white-space:nowrap}
.garage-badge[data-tone=info]{background:#e8f0ff;color:#1d4ed8}
.garage-badge[data-tone=good]{background:#eaf7f0;color:var(--green)}
.garage-badge[data-tone=warn]{background:#fff4e7;color:#8a4a08}
.garage-badge[data-tone=bad]{background:#fff0f1;color:#a90918}
html[data-theme=dark] .garage-badge[data-tone=info]{background:#1f2a44;color:#9db8ff}
html[data-theme=dark] .garage-badge[data-tone=good]{background:#1b3a2b;color:#7fe0ad}
html[data-theme=dark] .garage-badge[data-tone=warn]{background:#493524;color:#ffc584}
html[data-theme=dark] .garage-badge[data-tone=bad]{background:#482830;color:#ff9099}

.garage-stage{display:grid;gap:10px;margin-bottom:14px}
.garage-track{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.garage-track li{border:1px solid var(--line);border-radius:999px;padding:4px 11px;color:var(--muted);font-size:.8125rem;font-weight:600}
.garage-track li.is-done{border-color:transparent;background:#eaf7f0;color:var(--green)}
.garage-track li.is-current{border-color:var(--green);font-weight:800}
.garage-track li.is-next{border:1px dashed var(--red);background:transparent;color:var(--red);font-weight:800}
html[data-theme=dark] .garage-track li.is-done{background:#1b3a2b;color:#7fe0ad}
.garage-next{justify-self:start;min-height:44px}
.garage-stage-preview{margin:0;color:var(--muted);font-size:.875rem}
.garage-stage-preview:empty{display:none}
.garage-order [type=submit].is-ready{box-shadow:0 0 0 4px rgba(227,6,19,.28)}

.photo-drop{position:relative;display:grid;gap:4px;justify-items:center;padding:22px 16px;border:2px dashed var(--line);border-radius:16px;background:transparent;color:var(--ink);text-align:center;cursor:pointer}
.photo-drop:hover,.photo-drop.is-over,.photo-drop:focus-within{border-color:var(--red);background:rgba(227,6,19,.05)}
.photo-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.photo-drop-title{font-size:1rem;font-weight:700}
.photo-drop-hint{color:var(--muted);font-size:.8125rem;font-weight:400}
.photo-queue{display:grid;gap:8px;margin:10px 0 0;padding:0;list-style:none}
.photo-queue:empty{display:none}
.photo-queue-item{display:grid;grid-template-columns:56px minmax(0,1fr) 40px;gap:12px;align-items:center;padding:6px 8px 6px 6px;border:1px solid var(--line);border-radius:12px}
.photo-queue-item[data-state=error]{border-color:#c0152a}
.photo-queue-thumb{display:grid;place-items:center;width:56px;height:42px;overflow:hidden;border-radius:8px;background:var(--soft)}
.photo-queue-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.photo-queue-text{display:grid;min-width:0}
.photo-queue-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem}
.photo-queue-text small{color:var(--muted);font-size:.8125rem}
.photo-queue-item[data-state=error] small{color:#c0152a}
html[data-theme=dark] .photo-queue-item[data-state=error] small{color:#ff9099}
.photo-queue-remove{display:grid;place-items:center;width:40px;min-height:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);font-size:1.25rem;line-height:1}
.photo-queue-remove:hover{border-color:var(--red);background:transparent}
.photo-spinner{width:18px;height:18px;border:2px solid var(--line);border-top-color:var(--red);border-radius:50%;animation:photo-spin .8s linear infinite}
@keyframes photo-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.photo-spinner{animation:none}}
@media(max-width:700px){.garage-cards{grid-template-columns:1fr}.photo-drop{padding:18px 12px}}
