/* Shared selected state for visual choices. Read existing state only. */
#builder-app :is(.pose-card,.lighting-card,.setting-preset-card,.art-style-card,.effects-card,.jeans-card,.tops-card,.swimwear-card,.activewear-card,.sleepwear-card,.outerwear-card):is([aria-pressed="true"],[aria-current="true"]){
  border-color:var(--gold);
  outline:2px solid var(--gold);
  outline-offset:2px;
}
/* Put the explicit label below each card title, never on filters or tabs. */
#builder-app :is(.pose-card[aria-pressed="true"]>span:last-child,
.lighting-card[aria-pressed="true"]>.lighting-card-label,
.setting-preset-card[aria-pressed="true"]>span:not(.setting-selected-mark),
.art-style-card[aria-pressed="true"]>span,
.effects-card[aria-pressed="true"]>span,
.jeans-card[aria-current="true"]>strong,
.tops-card[aria-current="true"]>strong,
.swimwear-card[aria-pressed="true"]>strong,
.activewear-card[aria-pressed="true"]>strong,
.sleepwear-card[aria-pressed="true"]>strong,
.outerwear-card[aria-pressed="true"]>strong)::after{
  content:'✓ Selected';
  display:block;
  width:max-content;max-width:100%;margin-top:4px;line-height:1.4;overflow-wrap:normal;word-break:normal;
  color:var(--gold);
  font-size:12px;
  font-weight:650;
  white-space:nowrap;
}
/* Replace the older check-only badges with the shared text treatment. */
#builder-app .setting-preset-card .setting-selected-mark{display:none}
#builder-app #art-style-studio .art-style-card[aria-pressed="true"]::after{content:none}
/* Keyboard focus remains distinct from the persistent selection outline. */
#builder-app :is(.pose-card,.lighting-card,.setting-preset-card,.art-style-card,.effects-card,.jeans-card,.tops-card,.swimwear-card,.activewear-card,.sleepwear-card,.outerwear-card):focus-visible,
#builder-app #expression-studio #expression-examples .lighting-card:focus-visible{
  outline:3px dashed var(--gold);
  outline-offset:4px;
}
/* The modular wardrobe has its own card markup. Keep its status intact too. */
#builder-app #simple-outfit-flow .simple-outfit-card[aria-pressed=true]>span::after{content:'✓ Selected';display:block;width:max-content;max-width:100%;margin-top:4px;line-height:1.4;white-space:nowrap;word-break:normal;overflow-wrap:normal}
