/* Generation review: the decision stays in view while details scroll. */
dialog:has(.generation-quote-sheet) { padding: 0; width: min(850px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden; }
dialog:has(.generation-quote-sheet) #close-modal { top: 14px; right: 14px; z-index: 3; }
.generation-quote-sheet { display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.generation-quote-header { padding: 26px 58px 18px 26px; flex: 0 0 auto; border-bottom: 1px solid #34343d; }
.generation-quote-header h2 { font-size: 24px; margin: 8px 0 0; }
.generation-quote-body { padding: 22px 26px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; overflow: auto; min-height: 0; overscroll-behavior: contain; }
.generation-quote-body .repurpose-preview { margin: 0; min-width: 0; display: flex; align-items: center; justify-content: center; }
.generation-quote-body .repurpose-preview video, .generation-quote-body .repurpose-preview img { width: 100%; max-width: 100%; max-height: min(440px,calc(100dvh - 280px)); object-fit: contain; border-radius: 12px; display: block; }
.generation-quote-body .carousel-preview { min-width: 0; margin: 0; }
.generation-quote-body .carousel-slides img { max-height: min(440px,calc(100dvh - 280px)); object-fit: contain; }
.generation-quote-details { min-width: 0; align-self: center; }
.generation-quote-details h3 { font-size: 14px; margin: 0 0 12px; }
.generation-quote-details .selected-references { margin: 0 0 14px; gap: 8px; }
.generation-quote-details .selected-references img { width: 58px; height: 76px; object-fit: cover; border-radius: 9px; }
.generation-quote-details p { font-size: 12px; line-height: 1.65; margin: 10px 0; }
.generation-quote-details .notice { font-size: 12px; padding: 12px; }
.generation-quote-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 26px; border-top: 1px solid #3c3747; background: #24212c; }
.generation-quote-price { display: grid; gap: 5px; }
.generation-quote-price strong { font-size: 21px; color: #f5f1ff; }
.generation-quote-price small { font-size: 11px; color: #bab4c5; }
.generation-quote-actions { display: flex; gap: 10px; }
.generation-quote-actions button { min-height: 46px; white-space: nowrap; }
@media(max-width:600px) {
  dialog:has(.generation-quote-sheet) { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .generation-quote-sheet { max-height: calc(100dvh - 22px); }
  .generation-quote-header { padding: 20px 50px 14px 18px; }
  .generation-quote-header h2 { font-size: 20px; }
  .generation-quote-body { grid-template-columns: minmax(0,1fr); gap: 16px; padding: 16px 18px; }
  .generation-quote-body .repurpose-preview video, .generation-quote-body .repurpose-preview img, .generation-quote-body .carousel-slides img { max-height: min(340px,38dvh); }
  .generation-quote-details { align-self: start; }
  .generation-quote-details .selected-references img { width: 46px; height: 60px; }
  .generation-quote-footer { flex-wrap: wrap; padding: 14px 18px max(14px,env(safe-area-inset-bottom)); gap: 12px; }
  .generation-quote-price { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; }
  .generation-quote-price strong { font-size: 19px; }
  .generation-quote-actions { width: 100%; display: grid; grid-template-columns: 1fr 1.6fr; }
  .generation-quote-actions button { min-width: 0; padding: 12px 8px; font-size: 12px; }
}

.generation-quote-preview { min-width: 0; }

.generation-quote-price #quote-status { font-size: 16px; white-space: nowrap; }

.recreation-outfit { margin-bottom: 20px; }
.outfit-choices { display: grid; gap: 8px; }
.outfit-choice { display: grid; gap: 5px; width: 100%; padding: 12px; text-align: left; white-space: normal; }
.outfit-choice strong { font-size: 12px; }
.outfit-choice small { font-size: 11px; line-height: 1.5; font-weight: 400; color: #bcb5cc; }
.outfit-choice[aria-pressed="true"] { opacity: 1; cursor: default; border-color: #b59bff; background: #322a43; color: #fff; }
.outfit-choice:focus-visible { outline: 2px solid #d0bdff; outline-offset: 3px; }
.generation-quote-details .outfit-reference-note { color: #d0bdff; }
