/* KP wardrobe material with a compact, creation-first hierarchy. */
@container (width >= 720px) { .bot-editor-modal { width: min(660px, calc(100% - 32px)); } }
.bot-wardrobe .bot-appearance-preview { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--subtle); }
.wardrobe-randomizer { min-width: 0; flex: 1; }
.wardrobe-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wardrobe-name-ideas { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: -8px; margin-bottom: 8px; }
.wardrobe-name-ideas .text-button { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 20px; font-size: 12px; }
.wardrobe-name-ideas [aria-pressed="true"] { background: var(--selected); border-color: var(--muted); }
.bot-wardrobe details > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: inherit; }
.bot-wardrobe details > summary::before { content: '+'; color: var(--muted); font-size: 18px; }
.bot-wardrobe details[open] > summary::before { content: '−'; }
.bot-wardrobe summary > span { margin-left: auto; color: var(--muted); font-size: 12px; }
.bot-wardrobe details { border-top: 1px solid var(--line); }
.bot-wardrobe .color-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
.bot-wardrobe .color-option { position: relative; width: 44px; height: 44px; background: none; }
.bot-wardrobe .color-option circle { stroke: var(--muted); stroke-width: 1; }
.bot-wardrobe .color-option[aria-pressed="true"] { outline-offset: -2px; }
.bot-wardrobe .accessory-options { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.bot-wardrobe .accessory-options button { min-height: 76px; padding: 8px 4px; }
.bot-wardrobe .accessory-options button span { text-align: center; overflow-wrap: anywhere; }
.bot-wardrobe .panel-bottom { position: sticky; bottom: -20px; z-index: 1; background: var(--surface); padding: 12px 0 4px; margin-top: 12px; }
.bot-wardrobe #bot-error { flex-basis: 100%; margin: 0; }
.bot-wardrobe #bot-error:empty { display: none; }
.bot-wardrobe [aria-invalid="true"] { border-color: var(--danger); outline-color: var(--danger); }
@container (width < 480px) {
  .bot-wardrobe .bot-appearance-preview { padding: 12px; gap: 12px; align-items: flex-start; }
  .bot-wardrobe .avatar-preview > .bot-avatar { width: 72px; height: 72px; }
  .wardrobe-actions { flex-direction: column; align-items: stretch; }
  .wardrobe-name-ideas { gap: 0 8px; }
}
.bot-wardrobe { scroll-padding-block: 16px 96px; }

.bot-wardrobe legend { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; }
.bot-wardrobe legend .settings-note { margin: 0; }
.bot-wardrobe .color-option:focus-visible { outline-color: var(--accent); outline-offset: 1px; }

.bot-wardrobe .avatar-preview { padding: 0; }
.bot-wardrobe .bot-deal-field > .field { margin-bottom: 8px; }
.bot-wardrobe .bot-deal-field { margin: 16px 0; }
.bot-wardrobe .bot-deal-field > legend { margin-bottom: 0; }
