/* Builder-only compact controls. No truncation or reduced control hit targets. */
.builder-selection-compact .selected-card .selected-copy {
  display:flex; flex-direction:column; gap:5px; min-width:0;
}
.builder-selection-compact .selected-card { grid-template-columns:54px minmax(0,1fr) 32px; padding:8px; gap:8px; }
.builder-selection-compact .selected-card > img { width:54px; height:60px; object-fit:contain; }
.builder-selection-compact .selected-card b { font-size:13px; line-height:1.4; white-space:normal; overflow:visible; overflow-wrap:anywhere; }
.builder-selection-compact .selected-card .selected-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
.builder-selection-compact .selected-card .selected-meta > span { font-size:12px; line-height:1.4; }
.builder-selection-compact .selected-card .selected-role-switch,
.builder-selection-compact .selected-card .selected-use-package { min-height:32px; padding:4px 7px; font-size:12px; }
.builder-selection-compact .selected-card .selected-controls { display:grid; grid-template-columns:84px minmax(0,1fr); align-items:start; gap:8px; }
.builder-selection-compact .selected-card .selected-quantity,
.builder-selection-compact .selected-card .selected-color { display:flex; flex-direction:column; align-items:stretch; gap:3px; margin:0; min-width:0; font-size:12px; }
.builder-selection-compact .selected-card .selected-quantity input,
.builder-selection-compact .selected-card .selected-color select { box-sizing:border-box; width:100%; max-width:100%; min-width:0; min-height:34px; padding:5px; font-size:13px; }
.builder-selection-compact .selected-card .selected-color::after { content:none; }
.builder-selection-compact .selected-card .selected-color-name { white-space:normal; overflow-wrap:anywhere; font-size:12px; line-height:1.35; color:#53685b; }
.builder-selection-compact .builder-management-tools { grid-column:1 / -1; margin:0; font-size:12px; }
.builder-selection-compact .builder-management-tools > summary { min-height:32px; line-height:32px; cursor:pointer; color:#31553b; }
.builder-selection-compact .builder-management-actions { display:flex; flex-wrap:wrap; align-items:center; gap:5px; padding:4px 0; }
.builder-selection-compact .builder-management-actions > [role=status] { flex-basis:100%; }
.builder-selection-compact .selected-card .selected-no-colors { align-self:center; font-size:12px; color:#53685b; }
.builder-selection-compact .selected-card .selected-specs { margin:0; padding:0; font-size:12px; }
.builder-selection-compact .selected-card .selected-specs > summary { min-height:28px; line-height:28px; cursor:pointer; color:#31553b; }
.builder-selection-compact .selected-card .selected-specs small { max-height:none; white-space:normal; line-height:1.5; font-size:12px; }
.builder-selection-compact .selected-card .selected-color-images { margin-top:4px; min-height:34px; }
.builder-selection-compact .selected-card > [data-remove] { width:32px; min-height:36px; height:36px; padding:0; font-size:22px; }
.builder-selection-compact #builderMessage { max-height:none; overflow:visible; font-size:12px; line-height:1.45; }
.builder-selection-compact #retryStage { min-height:36px; padding:5px 10px; cursor:pointer; }
.builder-selection-compact #combinationCustomizationNote { margin:4px 0; padding:0; font-size:12px; line-height:1.5; }
.builder-selection-compact [hidden] { display:none !important; }
@media(min-width:1121px) {
  .builder-selection-compact .review-panel { overflow-y:auto; }
  .builder-selection-compact .review-showcase { flex:1 1 auto !important; min-height:0 !important; grid-template-rows:minmax(0,1fr) auto auto !important; }
  .builder-selection-compact .review-showcase .stage-preview-actions { grid-column:1; grid-row:2; margin:4px 0; }
  .builder-selection-compact .review-showcase #combinationCustomizationNote { grid-column:1; grid-row:3; }
  .builder-selection-compact .review-showcase .review-details { grid-column:2; grid-row:1 / span 3; min-height:0; }
  .builder-selection-compact .review-details .selected-items { flex:1 1 280px; min-height:240px; max-height:none !important; gap:7px; padding-bottom:4px; scrollbar-width:thin; }
  .builder-selection-compact .review-action { flex:0 0 auto; }
  .builder-selection-compact .review-action #guestCustomPlan,
  .builder-selection-compact .review-action #submitDesign,
  .builder-selection-compact .review-action #designWorktable,
  .builder-selection-compact .review-action #downloadDesignPackage { min-height:36px; padding:6px 8px; margin:0; font-size:13px; line-height:1.4; border-radius:4px; }
  .builder-selection-compact .review-action #submitScheme,
  .builder-selection-compact .review-action #submissionShortcut { min-height:32px; font-size:12px; padding:4px; }
  .builder-selection-compact .review-action .quote-notice { font-size:12px; }
  .builder-selection-compact .review-action .quote-notice p { position:static; width:auto; box-shadow:none; }
}
@media(max-width:600px) {
  .builder-selection-compact .selected-card { grid-template-columns:44px minmax(0,1fr) 32px; gap:6px; }
  .builder-selection-compact .selected-card > img { width:44px; height:54px; }
  .builder-selection-compact .selected-card .selected-controls { grid-template-columns:72px minmax(0,1fr); }
}
