/* T127 «قبل و بعد» library (member «تجربه‌ها» and customer Explore). Neutral colours: inherits the shell's text colour. */
.curated-ba { margin: 16px 0; direction: rtl; }
.curated-ba[hidden] { display: none; }
.curated-ba h2 { margin: 0 0 6px; font-size: 1.15rem; }
.curated-ba__note { margin: 0 0 12px; font-size: .86rem; line-height: 1.8; opacity: .8; }
.curated-ba__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.curated-ba__chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(160, 160, 160, .45); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.curated-ba__chip.is-active { border-color: currentColor; font-weight: 700; background: rgba(160, 160, 160, .16); }
.curated-ba__chips--tags .curated-ba__chip { min-height: 34px; font-size: .84rem; }
/* T135 (Owner, Figma 13:2 «طرح ج»): the question, one row of equal small circles (name + count), then the hashtags as a
   symmetric three-column grid of equal buttons. The row sizes itself (no inline style: the CSP forbids it). Gold (purple since T148) marks the
   chosen circle and hashtag by ring, border and background; their text keeps the theme's ink so it stays readable (≥ 4.5:1)
   in the member and customer shells, paper and dark. */
.curated-ba__ask { margin: 4px 0 12px; font-size: .95rem; font-weight: 800; text-align: center; }
.curated-ba__circles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 0 0 14px; }
.curated-ba__circle { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.curated-ba__ring { display: block; width: 100%; max-width: 54px; aspect-ratio: 1; padding: 2px; border-radius: 50%; background: rgba(160, 160, 160, .35); }
.curated-ba__ring > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--n-bg, transparent); background: var(--n-surface, rgba(160, 160, 160, .14)); font-size: 1.25rem; line-height: 1; }
.curated-ba__circle-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; font-weight: 600; }
.curated-ba__circle small { font-size: .68rem; opacity: .65; white-space: nowrap; }
.curated-ba__circle.is-active { font-weight: 800; }
.curated-ba__circle.is-active .curated-ba__ring { background: linear-gradient(135deg, #B9A8FF, #6F57F8); }
.curated-ba__circle.is-active small { opacity: .9; }
:is(.curated-ba__circle, .curated-ba__chip):focus-visible { outline: 3px solid currentColor; outline-offset: 2px; border-radius: 12px; }
.curated-ba__narrow { margin: 0 0 8px; font-size: .8rem; text-align: center; opacity: .7; }
.curated-ba__chips--tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.curated-ba__chips--tags .curated-ba__chip { min-width: 0; min-height: 44px; padding: 0 6px; border-radius: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.curated-ba__chips--tags .curated-ba__chip.is-active { border: 2px solid var(--n-gold, #7A62FF); background: var(--n-gold-l, rgba(122, 98, 255, .14)); color: inherit; font-weight: 800; }
.curated-ba__chips--admin .curated-ba__chip { min-height: 44px; }
.curated-ba__chips--admin { justify-content: center; }
/* T134 (Owner): one picture per row, full width, at every screen width (no 2/3-column grid); the card is the same rounded, softly shadowed card as a post. */
.curated-ba__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.curated-ba__item { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 22px; border: 1px solid rgba(160, 160, 160, .3); box-shadow: var(--n-post-shadow, 0 10px 28px rgba(0, 0, 0, .18)); min-width: 0; }
.curated-ba__img { display: block; width: 100%; height: auto; border-radius: 10px; background: rgba(160, 160, 160, .12); object-fit: cover; }
.curated-ba__label { margin: 0; font-size: .78rem; line-height: 1.7; opacity: .78; }
.curated-ba__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.curated-ba__tag { padding: 3px 10px; border-radius: 999px; font-size: .74rem; border: 1px solid var(--n-gold, rgba(122, 98, 255, .45)); background: var(--n-gold-l, rgba(122, 98, 255, .1)); color: inherit; }
.curated-ba__tag--category { font-weight: 700; border-color: transparent; background: linear-gradient(145deg, #C5B8FF, #9C88FF); color: #0E0C14; }
.curated-ba__tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.curated-ba__danger { border-color: rgba(220, 80, 80, .7); }
.curated-ba__remove { display: flex; flex-wrap: wrap; gap: 6px; align-items: end; }
.curated-ba__remove[hidden] { display: none; }
.curated-ba__empty, .curated-ba__message { margin: 8px 0; font-size: .9rem; }
.curated-ba__message:empty { display: none; }
.curated-ba__more { margin-top: 12px; }
.curated-ba__add-bar { margin: 4px 0 10px; }
.curated-ba__add-panel[hidden] { display: none; }
.curated-ba__add-form { display: grid; gap: 10px; padding: 12px; border-radius: 14px; border: 1px dashed rgba(160, 160, 160, .5); margin-bottom: 12px; }
.curated-ba__tag-picker { display: flex; flex-wrap: wrap; gap: 6px 12px; border: 0; padding: 0; margin: 0; }
.curated-ba__tag-picker legend { font-size: .86rem; margin-bottom: 4px; }
.curated-ba__tag-option { font-size: .84rem; white-space: nowrap; }
.curated-ba__hint { margin: 0; font-size: .8rem; line-height: 1.8; opacity: .75; }
.curated-ba__form-error:empty { display: none; }
.curated-ba__hold { margin: 0; font-size: .8rem; color: var(--n-muted, #6A667D); }
