/* ==========================================================================
   Events page. Mobile-first; ≥900px adds the desktop hero chips, month
   calendar and filter bar. Shared bits live in pages/ce-shared.css.
   Matched to the design at 390 / 1100 / 1440.
   ========================================================================== */

/* Category colours (.pb-evcat--<key>) come from components/ev-categories.css */

.pb-content--events { gap: 20px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.pb-ehero {
  position: relative; min-height: 420px; border-radius: var(--pb-r-xl);
  background: radial-gradient(circle at 75% 30%, #6b5a18 0, rgba(107, 90, 24, 0) 55%), linear-gradient(120deg, #22180a 0%, #3a2c0e 60%, #4b3b12 100%);
}
.pb-ehero__bg { position: absolute; inset: 0; overflow: hidden; border-radius: var(--pb-r-xl); }
.pb-ehero__img { position: absolute; right: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.pb-ehero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34, 24, 10, .9) 0%, rgba(34, 24, 10, .6) 55%, rgba(34, 24, 10, .15) 100%); }
.pb-ehero__body { position: relative; padding: 26px 20px 0; }
.pb-ehero__eyebrow { font-family: var(--pb-font-head); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.pb-ehero h1 { margin-top: 8px; max-width: 78%; font-weight: 900; font-size: 32px; line-height: 1.1; letter-spacing: -.01em; color: #fff; }
.pb-ehero h1 span { color: var(--pb-amber); }
.pb-ehero p { margin-top: 12px; max-width: 78%; font-size: 16px; line-height: 1.5; color: #fff; text-wrap: pretty; }
.pb-ehero__search {
  display: flex; align-items: center; gap: 10px; height: 54px; margin-top: 22px; padding: 0 6px 0 18px;
  border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.pb-ehero__search > i { font-size: 16px; color: var(--pb-text-2); }
.pb-ehero__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15.5px; color: var(--pb-text); }
.pb-ehero__search input::-webkit-search-cancel-button { display: none; }
.pb-ehero__search:focus-within { box-shadow: 0 8px 24px rgba(0, 0, 0, .18), 0 0 0 3px rgba(251, 178, 49, .55); }
.pb-ehero__clear { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #ecebe7; color: var(--pb-text); font-size: 12px; }
.pb-ehero__search button {
  display: none; flex: none; height: 38px; padding: 0 18px; border: 0; border-radius: 10px; background: #c9900e; color: #fff;
  font-family: var(--pb-font-head); font-weight: 800; font-size: 15px;
}
.pb-ehero__search button:hover { background: #b07f06; }
.pb-ehero__chips { display: none; }

.pb-echip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 17px;
  background: rgba(255, 255, 255, .88); color: var(--pb-text); white-space: nowrap;
  font-family: var(--pb-font-head); font-weight: 800; font-size: 13.5px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pb-echip i { font-size: 12px; color: var(--c); }
.pb-echip:hover { background: #fff; }
.pb-echip[aria-pressed="true"] { background: var(--pb-amber); border-color: var(--pb-amber); }
.pb-echip[aria-pressed="true"] i { color: var(--pb-text); }

@media (max-width: 399px) {
  .pb-ehero { min-height: 400px; }
  .pb-ehero h1 { font-size: 29px; }
}
@media (min-width: 900px) {
  .pb-ehero { min-height: 276px; }
  .pb-ehero__img { width: 520px; object-position: center; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28%); mask-image: linear-gradient(to right, transparent 0, #000 28%); }
  .pb-ehero__shade { background: linear-gradient(90deg, rgba(34, 24, 10, .9) 0%, rgba(34, 24, 10, .7) 42%, rgba(34, 24, 10, 0) 68%); }
  .pb-ehero__body { padding: 26px 36px 22px; }
  .pb-ehero h1 { max-width: 62%; font-size: 34px; }
  .pb-ehero p { max-width: 62%; }
  .pb-ehero__search { max-width: 470px; height: 48px; margin-top: 18px; }
  .pb-ehero__search button { display: block; }
  .pb-ehero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
  @container pbce (max-width: 819px) {
    .pb-ehero__img { width: 55%; }
    .pb-ehero h1, .pb-ehero p { max-width: 80%; }
  }
  @container pbce (max-width: 759px) {
    .pb-ehero h1 { font-size: 30px; }
  }
}

/* ── Phone category tiles ───────────────────────────────────────────────── */
.pb-etiles { display: flex; gap: 10px; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 4px; }
.pb-etile { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; padding: 0; border: 0; background: none; --c: var(--pb-primary); }
.pb-etile__box {
  display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px;
  background: #fff; border: 1px solid #f1eee7; box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.pb-etile__box i { font-size: 22px; color: var(--c); }
.pb-etile__lbl { font-size: 13px; color: #2b2b30; white-space: nowrap; }
.pb-etile.is-active .pb-etile__box { background: #c9900e; border-color: transparent; box-shadow: 0 6px 14px rgba(144, 109, 2, .3); }
.pb-etile.is-active .pb-etile__box i { color: #fff; }
.pb-etile.is-active .pb-etile__lbl { font-weight: 800; color: #6d5000; }
@media (min-width: 900px) { .pb-etiles { display: none; } }

/* ── Month calendar (desktop) ───────────────────────────────────────────── */
.pb-ecal { display: none; scroll-margin-top: 90px; background: #fff; border-radius: var(--pb-r-lg); box-shadow: var(--pb-shadow-card); overflow: hidden; }
@media (min-width: 900px) { .pb-ecal { display: block; } }
.pb-ecal__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.pb-ecal__nav { display: flex; align-items: center; gap: 16px; }
.pb-ecal__nav .pb-round-btn { color: var(--pb-text); }
.pb-ecal__nav .pb-round-btn:hover { background: #fbe7bd; color: var(--pb-text); }
.pb-ecal__title { min-width: 170px; text-align: center; font-weight: 800; font-size: 21px; }
.pb-ecal__tools { display: flex; align-items: center; gap: 10px; }
.pb-ecal__today {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border: 1px solid var(--pb-border-3); border-radius: 10px;
  background: #f7f5f0; color: var(--pb-text); font-size: 14.5px; font-weight: 600;
}
.pb-ecal__today:hover { background: #f1ede3; color: var(--pb-text); }
.pb-ecal__ym, .pb-esel { position: relative; display: flex; align-items: center; }
.pb-ecal__ym select, .pb-esel select {
  appearance: none; -webkit-appearance: none; height: 38px; border: 1px solid var(--pb-border-3); border-radius: 10px; background: #fff;
  color: var(--pb-text); cursor: pointer; outline: 0; max-width: 100%;
}
.pb-ecal__ym select { min-width: 170px; padding: 0 36px 0 14px; font-size: 14.5px; font-weight: 500; }
.pb-esel select { padding: 0 34px 0 14px; font-size: 14px; }
.pb-ecal__ym select:focus-visible, .pb-esel select:focus-visible { border-color: var(--pb-primary); outline: 2px solid var(--pb-primary); outline-offset: 1px; }
.pb-ecal__ym > i { position: absolute; right: 14px; font-size: 11px; pointer-events: none; }
.pb-esel > i { position: absolute; right: 12px; font-size: 10px; pointer-events: none; }

.pb-ecal__dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #141414; }
.pb-ecal__dows div { padding: 11px 0; text-align: center; font-family: var(--pb-font-head); font-weight: 800; font-size: 13px; letter-spacing: .04em; color: #fff; }
.pb-ecal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pb-ecal__day {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; min-height: 76px; padding: 8px 8px 6px;
  border: 0; border-right: 1px solid #f1eee7; border-bottom: 1px solid #f1eee7; background: #fff; text-align: left; font: inherit; color: inherit;
}
button.pb-ecal__day { cursor: pointer; }
button.pb-ecal__day:hover { background: #fdf8ec; }
.pb-ecal__day.is-out { background: #fcfbf8; }
.pb-ecal__day[aria-pressed="true"] { background: var(--pb-amber-soft); box-shadow: inset 0 0 0 2px var(--pb-amber); }
.pb-ecal__num {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: -2px 0 1px -2px; border-radius: 50%;
  font-size: 13px; font-weight: 500; color: var(--pb-text);
}
.pb-ecal__day.is-out .pb-ecal__num { color: #c9c6be; }
.pb-ecal__day.is-today .pb-ecal__num { background: #c9900e; color: #fff; font-weight: 800; }
.pb-ecal__ev { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; font-size: 12px; color: #2b2b30; }
.pb-ecal__ev i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pb-ecal__ev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-ecal__more { padding-left: 13px; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--pb-link); }
.pb-ecal__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; }
.pb-ecal__legend li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #4a4a50; }
.pb-ecal__legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ── List header, filters, selected-day bar ─────────────────────────────── */
.pb-elist { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.pb-elist__hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 0 2px; }
.pb-elist__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-weight: 800; font-size: 21px; color: var(--pb-text); }
.pb-elist__count { font-family: var(--pb-font-body); font-weight: 500; font-size: 14px; color: var(--pb-text-muted); }
.pb-elist__filters { display: none; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .pb-elist__filters { display: flex; } }
.pb-elist__sel { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pb-elist__sel[hidden] { display: none; }
.pb-elist__pill {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 16px; border-radius: 23px; white-space: nowrap;
  background: var(--pb-amber-soft); border: 1px solid #fbe3a8; font-size: 15px; font-weight: 700;
}
.pb-elist__pill > i { color: #c9900e; }
.pb-elist__pill button { width: 30px; height: 30px; border: 1px solid #e9dfc5; border-radius: 50%; background: #fff; font-size: 12px; }
.pb-elist__clearall { border: 0; background: none; font-family: var(--pb-font-head); font-weight: 800; font-size: 15px; color: #c9900e; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.pb-egrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) {
  @container pbce (min-width: 560px) { .pb-egrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @container pbce (min-width: 640px) { .pb-egrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @container pbce (min-width: 900px) { .pb-egrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
}
.pb-ecard {
  position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #f1eee7; border-radius: 14px;
  box-shadow: var(--pb-shadow-card); transition: transform .2s ease, box-shadow .2s ease; animation: pb-fade-up .3s ease;
}
.pb-ecard:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(60, 40, 0, .1); }
.pb-ecard[hidden], .pb-ecard.is-hidden { display: none; }
.pb-ecard__img { position: relative; flex: none; display: flex; align-items: center; justify-content: center; height: 150px; overflow: hidden; background: var(--tint); }
.pb-ecard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-ecard__ph { font-size: 34px; color: var(--c); }
.pb-ecard__date {
  position: absolute; left: 10px; top: 10px; z-index: 1; width: 48px; padding: 5px 0 6px; border-radius: 10px; background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15); text-align: center; font-family: var(--pb-font-head); color: var(--pb-red);
}
.pb-ecard__date span { display: block; font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pb-ecard__date b { display: block; font-weight: 900; font-size: 21px; line-height: 1; }
.pb-ecard__fav {
  position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--pb-text); font-size: 14px; transition: color .15s, transform .1s;
}
.pb-ecard__fav:hover { color: var(--pb-red); }
.pb-ecard__fav:active { transform: scale(.92); }
.pb-ecard__fav.is-saved { color: var(--pb-red); }
.pb-ecard__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; min-width: 0; }
.pb-ecard__title { font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-ecard__link { color: var(--pb-text); }
.pb-ecard__link:hover { color: var(--pb-text); }
.pb-ecard__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pb-ecard__link:focus-visible { outline: 0; }
.pb-ecard__link:focus-visible::after { outline: 2px solid var(--pb-primary); outline-offset: -2px; border-radius: 14px; }
.pb-ecard__meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: #4a4a50; }
.pb-ecard__meta i { flex: none; width: 12px; font-size: 12px; color: var(--pb-text); }
.pb-ecard__meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-ecard__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.pb-ecard__cat, .pb-ecard__price { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 13px; font-size: 12px; font-weight: 700; }
.pb-ecard__cat { background: var(--tint); color: var(--pb-text-2); }
.pb-ecard__cat i { font-size: 11px; color: var(--c); }
.pb-ecard__price { padding: 0 10px; background: var(--pb-red-soft); color: var(--pb-red); }
.pb-ecard__price.is-free { background: var(--pb-green-soft); color: var(--pb-green); }
.pb-ecard__chev { display: none; }

@media (min-width: 900px) {
  .pb-ecard__img { height: 100px; }
}
/* Phones, one day picked: compact rows with a small photo */
@media (max-width: 899px) {
  .pb-egrid.is-rows { gap: 12px; }
  .pb-egrid.is-rows .pb-ecard { flex-direction: row; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; box-shadow: 0 2px 10px rgba(60, 40, 0, .05); }
  .pb-egrid.is-rows .pb-ecard__img { width: 84px; height: 104px; border-radius: 12px; }
  .pb-egrid.is-rows .pb-ecard__date, .pb-egrid.is-rows .pb-ecard__fav { display: none; }
  .pb-egrid.is-rows .pb-ecard__body { padding: 0; gap: 5px; }
  .pb-egrid.is-rows .pb-ecard__chev { display: block; flex: none; font-size: 13px; color: #2b2b30; }
  .pb-egrid.is-rows .pb-ecard__tags { margin-top: 0; }
}

/* ── Empty state ────────────────────────────────────────────────────────── */
.pb-eempty { padding: 34px 20px; border-radius: var(--pb-r-lg); background: #fff; box-shadow: var(--pb-shadow-card); text-align: center; }
.pb-eempty[hidden] { display: none; }
.pb-eempty > i { font-size: 32px; color: #e0a31c; }
.pb-eempty h3 { margin-top: 10px; font-size: 18px; }
.pb-eempty p { margin: 4px 0 14px; font-size: 14.5px; color: var(--pb-text-muted); }
.pb-eempty .pb-btn { margin-top: 2px; }

/* ── "Want to host an event?" (phones) ──────────────────────────────────── */
.pb-ehost { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #fbe3a8; border-radius: var(--pb-r-lg); background: #fff8e8; color: var(--pb-text); }
.pb-ehost:hover { color: var(--pb-text); }
.pb-ehost__ico { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--pb-r-md); background: #fff; }
.pb-ehost__ico i { font-size: 20px; color: #c9900e; }
.pb-ehost__txt { flex: 1; min-width: 0; }
.pb-ehost__txt b { display: block; font-family: var(--pb-font-head); font-weight: 800; font-size: 16.5px; }
.pb-ehost__txt span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--pb-text-3); }
.pb-ehost > i { flex: none; font-size: 14px; color: #c9900e; }
@media (min-width: 900px) { .pb-ehost { display: none; } }

/* ── Right rail ─────────────────────────────────────────────────────────── */
.pb-rcard .pb-sec-hd__title .fa-calendar-check, .pb-rcard .pb-sec-hd__title .fa-calendar-days { color: #e0a31c; font-size: 19px; }
.pb-rrow__img--ev { width: 70px; height: 64px; }
.pb-rrow__date { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; color: var(--pb-text-muted); }
.pb-rrow__date i { font-size: 11px; }

.pb-ecreate { flex: none; display: none; gap: 16px; padding: 22px 20px; border-radius: var(--pb-r-xl); background: #fff6e2; border: 1px solid #fbe9c4; }
.pb-ecreate > i { flex: none; margin-top: 2px; font-size: 34px; color: #c9900e; }
.pb-ecreate > div { flex: 1; min-width: 0; }
.pb-ecreate h3 { font-size: 18px; }
.pb-ecreate p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: #4a4a50; }
.pb-ecreate__btn { display: flex; width: 100%; height: 44px; margin-top: 14px; padding: 0; border-radius: 10px; font-size: 15.5px; gap: 8px; }
.pb-ecreate__btn i { font-size: 1em; }
@media (min-width: 900px) { .pb-ecreate { display: flex; } }

/* ── Phone calendar: floating button + bottom sheet ─────────────────────── */
.pb-efab {
  position: fixed; right: 18px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 40; width: 60px; height: 60px;
  border: 4px solid #fff; border-radius: 50%; background: #c9900e; box-shadow: 0 10px 24px rgba(144, 109, 2, .4); color: #fff; font-size: 22px;
}
.pb-esheet[hidden], .pb-emodal[hidden] { display: none; }
.pb-esheet__scrim { position: fixed; inset: 0; z-index: 80; background: rgba(20, 16, 8, .5); animation: pb-fade-up .2s ease; }
.pb-esheet__panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; max-height: 88vh; overflow-y: auto; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); animation: pb-fade-up .25s ease; outline: 0;
}
.pb-esheet__grab { width: 44px; height: 5px; margin: 0 auto; border-radius: 3px; background: #e3dfd5; }
.pb-esheet__x { display: flex; justify-content: flex-end; }
.pb-esheet__x button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; }
.pb-esheet__nav { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.pb-esheet__nav a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--pb-border-3); border-radius: 50%; background: #fff; color: var(--pb-text); font-size: 12px; }
.pb-esheet__month { font-family: var(--pb-font-head); font-weight: 800; font-size: 20px; }
.pb-esheet__dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 16px; }
.pb-esheet__dows div { padding-bottom: 8px; text-align: center; font-size: 13px; color: #4a4a50; }
.pb-esheet__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pb-esheet__day { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 52px; padding: 4px 0 0; border: 0; background: none; font: inherit; color: inherit; }
.pb-esheet__num {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1.5px solid transparent; border-radius: 50%;
  font-size: 15px; font-weight: 500;
}
.pb-esheet__day.is-out .pb-esheet__num { color: #c9c6be; }
.pb-esheet__day.is-today .pb-esheet__num { border-color: var(--pb-amber); font-weight: 800; }
.pb-esheet__day[aria-pressed="true"] .pb-esheet__num { background: #c9900e; border-color: transparent; color: #fff; font-weight: 800; }
.pb-esheet__dots { display: flex; gap: 3px; height: 6px; }
.pb-esheet__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.pb-ecal__legend--sheet { margin-top: 14px; padding: 0 4px; gap: 10px 18px; }
.pb-ecal__legend--sheet li { font-size: 14px; color: #2b2b30; gap: 8px; }
.pb-ecal__legend--sheet i { width: 9px; height: 9px; }
.pb-esheet__act { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; margin-top: 20px; }
.pb-esheet__act button { height: 52px; border-radius: 14px; font-size: 16px; }
.pb-esheet__clear { border: 1px solid var(--pb-border-3); background: #f7f5f0; font-weight: 600; }
.pb-esheet__apply { border: 0; background: var(--pb-primary); color: #fff; font-family: var(--pb-font-head); font-weight: 800; }
@media (min-width: 900px) { .pb-efab, .pb-esheet { display: none !important; } }

/* ── Create-event dialog ────────────────────────────────────────────────── */
.pb-emodal__scrim { position: fixed; inset: 0; z-index: 90; background: rgba(20, 16, 8, .5); }
.pb-emodal__box {
  position: fixed; z-index: 91; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 12px;
  width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px 22px 20px;
  border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); animation: pb-fade-up .25s ease;
}
.pb-emodal__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pb-emodal__hd h2 { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 20px; }
.pb-emodal__hd h2 i { color: #c9900e; }
.pb-emodal__x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--pb-surface-2); }
.pb-emodal__f { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--pb-text-2); }
.pb-emodal__f input { height: 46px; min-width: 0; padding: 0 12px; border: 1px solid var(--pb-border-3); border-radius: var(--pb-r-md); background: #fff; font-size: 15px; font-weight: 400; color: var(--pb-text); }
.pb-emodal__f input:focus { outline: 0; border-color: var(--pb-primary); box-shadow: 0 0 0 3px rgba(144, 109, 2, .15); }
.pb-emodal__f input.is-invalid { border-color: var(--pb-red); }
.pb-emodal__row { display: grid; gap: 10px; }
.pb-emodal__row--3 { grid-template-columns: 1.4fr 1fr 1fr; }
.pb-emodal__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pb-emodal__cats legend { width: 100%; padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--pb-text-2); }
.pb-emodal__chip { position: relative; }
.pb-emodal__chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pb-emodal__chip span { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--pb-border-3); border-radius: 17px; background: #fff; font-size: 13px; font-weight: 700; }
.pb-emodal__chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pb-emodal__chip input:checked + span { background: var(--pb-amber-soft); border-color: var(--pb-amber); }
.pb-emodal__chip input:focus-visible + span { outline: 2px solid var(--pb-primary); outline-offset: 2px; }
.pb-emodal__err { font-size: 13.5px; color: #d92d33; }
.pb-emodal__err[hidden] { display: none; }
.pb-emodal__submit { height: 50px; margin-top: 4px; border: 0; border-radius: 14px; background: var(--pb-primary); color: #fff; font-family: var(--pb-font-head); font-weight: 800; font-size: 16px; }
.pb-emodal__submit:hover { background: var(--pb-primary-hover); }
.pb-emodal__submit[disabled] { opacity: .6; cursor: default; }
.pb-emodal__note { font-size: 12.5px; line-height: 1.4; color: var(--pb-text-muted); text-align: center; }
.pb-egrid[hidden] { display: none; }
