.quote-workspace { padding-block: 36px 72px; }
.quote-workspace > p { max-width: 64ch; }
.quote-items { padding: 0; margin-block: 24px; list-style: none; }
.quote-items > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
}
.quote-items > li:has(> .quote-photo) { grid-template-columns: auto minmax(0, 1fr) auto; }
.quote-items img { object-fit: contain; }
.quote-items :is(h2,h3,p) { margin: 0 0 4px; overflow-wrap: anywhere; }
.quote-items strong { display: block; margin-top: 8px; }
.quote-variant { display: flex; align-items: center; gap: 8px; }
.quote-photo-missing { display: grid; place-items: center; width: 76px; min-height: 76px; padding: 4px; text-align: center; font-size: 11px; background: var(--panel, #f3f5f7); }
.quote-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quote-controls a, .quote-workspace .quote-return { color: var(--cta); }
.quote-workspace button { cursor: pointer; min-height: 44px; padding: 8px 14px; color: var(--ink); border: 0; }
.quote-workspace form { margin-top: 32px; }
.quote-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-width: 760px; }
.quote-form-grid label { display: grid; gap: 4px; }
.quote-form-grid :is(input,textarea) { padding: 10px; border: 1px solid var(--border); width: 100%; font: inherit; }
.quote-form-grid input[type="file"] { min-width: 0; }
.quote-workspace button:disabled { cursor: not-allowed; opacity: .65; }
.quote-wide { grid-column: 1 / -1; }
.quote-workspace .quote-primary { color: #fff; background: var(--cta); }
.v2-overlay.v2-quote-overlay { width: min(980px, calc(100% - 24px)); height: fit-content; max-height: calc(100dvh - 24px); margin: auto; border-radius: 12px; }
.v2-quote-overlay .v2-overlay-head h2 { font-size: clamp(1.125rem, 5vw, 1.75rem); }
.v2-quote-overlay .v2-overlay-head button { flex-shrink: 0; }
.v2-quote-overlay .v2-overlay-body { padding: 0 16px; }
.v2-quote-overlay .quote-items { margin: 0; }
.v2-quote-overlay .quote-items h3 { font-size: 1rem; }
.v2-quote-overlay .quote-items > li:last-child { border-bottom: 0; }
[data-quote-preview-status] { margin: 16px 0; }
[data-quote-preview-status]:empty { display: none; }
.quote-preview-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; flex-shrink: 0; padding: 16px; border-top: 1px solid var(--border); }
.quote-preview-footer p { margin: 0; }
@media (max-width: 600px) {
  .quote-items > li, .quote-items > li:has(> .quote-photo) { grid-template-columns: auto minmax(0,1fr); }
  .quote-items > li:not(:has(> .quote-photo)) > div:first-child { grid-column: 1 / -1; }
  .quote-controls { grid-column: 1 / -1; }
  .quote-form-grid { grid-template-columns: 1fr; }
}
