/* Buyer area (saved listings, saved searches, messages, AI search box, heart). Mobile first.
   Page-scoped classes only (.by-*); kit classes are used, never redefined. Colours from pt.css tokens (with v2 fallbacks). */
:root {
  --by-line: var(--pt-gray-200, var(--pt-border));
  --by-line-2: var(--pt-gray-300, var(--pt-border-strong));
  --by-bg: var(--pt-gray-50, var(--pt-surface-2));
  --by-soft: var(--pt-gray-100, var(--pt-surface-3));
  --by-ink: var(--pt-gray-900, var(--pt-text));
  --by-ink-2: var(--pt-gray-600, var(--pt-text-2));
  --by-ink-3: var(--pt-gray-500, var(--pt-text-3));
  --by-red: var(--pt-red-600, var(--pt-primary));
  --by-red-text: var(--pt-red-700, var(--pt-primary-500));
  --by-red-soft: var(--pt-red-50, var(--pt-primary-soft));
  --by-red-soft-2: var(--pt-red-100, var(--pt-primary-soft-2));
  --by-bar: calc(var(--pt-consent-h, 0px) + var(--pt-tabbar-h, 0px));
}

.by-page { padding-block: var(--pt-s5) var(--pt-s7); }
@media (min-width: 900px) { .by-page { padding-block: var(--pt-s6) 80px; } }
.by-head { margin-bottom: var(--pt-s4); }
.by-title { font-size: 1.75rem; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 4px; font-family: var(--pt-font-display, inherit); font-weight: 800; }
@media (min-width: 900px) { .by-title { font-size: 2.25rem; } }
.by-sub { margin: 0; color: var(--by-ink-2); }
.by-h2 { font-size: 1.125rem; margin: 0 0 var(--pt-s2); }
.by-note { font-size: .875rem; }

/* section switch (plain links with aria-current) */
.by-seg { display: flex; width: 100%; gap: 4px; padding: 4px; margin: var(--pt-s2) 0 var(--pt-s5); background: var(--by-soft); border-radius: var(--pt-r-pill); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.by-seg::-webkit-scrollbar { display: none; }
.by-seg__item { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 0; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--pt-r-pill); color: var(--by-ink-2); font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; transition: background-color .16s, color .16s, box-shadow .16s; }
.by-seg__item .pt-icon { width: 18px; height: 18px; }
.by-seg__item:hover { color: var(--by-ink); }
.by-seg__item.is-active { background: var(--pt-surface); color: var(--by-ink); box-shadow: var(--pt-shadow-1); }
.by-seg__item.is-active .pt-icon { color: var(--by-red); }
.by-seg__item:focus-visible { outline: 3px solid var(--pt-ring); outline-offset: 1px; }

.by-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--pt-r-pill); background: var(--by-red); color: #fff; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* shared small bits */
.by-iconbtn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--by-ink-2); cursor: pointer; text-decoration: none; transition: background-color .16s, color .16s; }
.by-iconbtn:hover { background: var(--by-soft); color: var(--by-ink); }
.by-iconbtn:focus-visible { outline: 3px solid var(--pt-ring); outline-offset: -1px; }
.by-iconbtn .pt-icon { width: 20px; height: 20px; }
.by-iconbtn svg:not(.pt-icon), .by-iconbtn .pt-icon[viewBox] { stroke: currentColor; }
.by-link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--by-ink-2); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; border-radius: var(--pt-r-sm); }
.by-link-btn:hover { color: var(--by-red-text); background: var(--by-red-soft); }
.by-link-btn:focus-visible { outline: 3px solid var(--pt-ring); outline-offset: 0; }
.by-link-btn .pt-icon { width: 16px; height: 16px; }
.by-avatar { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--by-red-soft); color: var(--by-red-text); font-weight: 700; font-size: 1rem; }
.by-avatar--lg { width: 44px; height: 44px; }

/* menu (kebab) */
.by-menu { position: relative; flex: none; }
.by-menu__panel { position: absolute; z-index: 40; top: calc(100% + 4px); min-width: 220px; padding: 6px; background: var(--pt-surface); border: 1px solid var(--by-line); border-radius: var(--pt-r); box-shadow: var(--pt-shadow-3); }
.by-menu--end .by-menu__panel { right: 0; }
.by-menu--start .by-menu__panel { left: 0; }
.by-menu__panel[hidden] { display: none; }
.by-menu__panel form { margin: 0; }
.by-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--pt-r-sm); background: transparent; color: var(--by-ink); font: inherit; font-size: .9375rem; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.by-menu__item .pt-icon { width: 18px; height: 18px; color: var(--by-ink-3); }
.by-menu__item:hover, .by-menu__item:focus-visible { background: var(--by-soft); outline: none; }
.by-menu__item:focus-visible { box-shadow: inset 0 0 0 2px var(--by-red); }
.by-menu__item--danger { color: var(--pt-danger); }
.by-menu__item--danger .pt-icon { color: var(--pt-danger); }

/* empty state with illustration */
.by-empty { text-align: center; padding: var(--pt-s7) var(--pt-s4); max-width: 460px; margin: 0 auto; }
.by-empty[hidden], .by-empty-slot[hidden] { display: none; }
.by-illus { width: 200px; max-width: 70%; height: auto; margin: 0 auto var(--pt-s4); display: block; }
.by-illus__shadow { fill: var(--by-soft); }
.by-illus__fill { fill: var(--pt-surface); }
.by-illus__card { fill: var(--by-red-soft); }
.by-illus__line { stroke: var(--by-ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.by-illus__line--thick { stroke-width: 5; }
.by-illus__dot { fill: var(--by-line-2); }
.by-illus__accent { fill: var(--by-red); stroke: var(--by-red); stroke-width: 1; stroke-linejoin: round; }
.by-empty__title { font-size: 1.375rem; letter-spacing: -.01em; margin: 0 0 6px; }
.by-empty__text { margin: 0 auto var(--pt-s4); color: var(--by-ink-2); }
.by-empty__btn { min-width: 180px; }

/* ---------- saved listings ---------- */
.by-grid { gap: var(--pt-s5) var(--pt-s4); }
.by-saved-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.by-saved-item.is-removing { opacity: .35; transition: opacity .2s; pointer-events: none; }
.by-remove { margin: 0; }
.by-gone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 240px; padding: var(--pt-s5); border: 1.5px dashed var(--by-line-2); border-radius: var(--pt-r-lg); background: var(--by-bg); text-align: center; }
.by-gone__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--by-soft); color: var(--by-ink-3); }
.by-gone__text { margin: 6px 0 0; color: var(--by-ink-2); }

/* ---------- saved searches ---------- */
.by-rows { list-style: none; margin: 0; padding: 0; background: var(--pt-surface); border: 1px solid var(--by-line); border-radius: var(--pt-r-lg); overflow: visible; }
.by-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--pt-s3) var(--pt-s3); align-items: start; padding: var(--pt-s4); }
.by-row + .by-row { border-top: 1px solid var(--by-line); }
.by-ss__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--pt-r); background: var(--by-soft); color: var(--by-ink-3); }
.by-ss__icon.is-on { background: var(--by-red-soft); color: var(--by-red-text); }
.by-ss__main { min-width: 0; }
.by-ss__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--pt-s2); }
.by-ss__name { margin: 0; font-size: 1.0625rem; line-height: 1.3; }
.by-ss__name a { color: var(--by-ink); text-decoration: none; display: inline-block; min-height: 24px; }
.by-ss__name a:hover { color: var(--by-red-text); text-decoration: underline; }
.by-ss__desc { margin: 4px 0 0; color: var(--by-ink-2); font-size: .9375rem; overflow-wrap: anywhere; }
.by-ss__meta { margin: 4px 0 0; color: var(--by-ink-3); font-size: .8125rem; }
.by-status { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 7px; border-radius: var(--pt-r-pill); font-size: .75rem; font-weight: 600; }
.by-status .pt-icon { width: 14px; height: 14px; }
.by-status--on { background: var(--pt-success-bg); color: var(--pt-success); }
.by-status--off { background: var(--by-soft); color: var(--by-ink-2); }
.by-ss__form { grid-column: 1 / -1; margin: 0; grid-row: 2; }
.by-ss .by-menu { grid-column: 3; grid-row: 1; margin: -6px -6px 0 0; }
.by-toggle { display: flex; width: 100%; max-width: 100%; margin: 0; padding: 3px; border: 0; background: var(--by-soft); border-radius: var(--pt-r-pill); min-width: 0; }
.by-toggle__opt { position: relative; flex: 1 1 auto; margin: 0; }
.by-toggle__opt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.by-toggle__opt span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 6px; border-radius: var(--pt-r-pill); color: var(--by-ink-2); font-size: .875rem; font-weight: 600; white-space: nowrap; transition: background-color .16s, color .16s; }
.by-toggle__opt input:checked + span { background: var(--pt-surface); color: var(--by-ink); box-shadow: var(--pt-shadow-1); }
.by-toggle__opt input:focus-visible + span { outline: 3px solid var(--pt-ring); outline-offset: 0; }
.by-ss__form.is-saving { opacity: .6; pointer-events: none; }
@media (min-width: 720px) {
  .by-row { grid-template-columns: auto 1fr auto auto; align-items: center; padding: var(--pt-s4) var(--pt-s5); }
  .by-ss__form { grid-column: 3; grid-row: 1; }
  .by-ss .by-menu { grid-column: 4; margin: 0; }
  .by-toggle { display: inline-flex; width: auto; }
  .by-toggle__opt span { padding: 0 12px; }
}

/* forms on the "save this search" page */
.by-select { width: auto; min-width: 140px; min-height: 44px; }
.by-form .pt-input, .by-reply .pt-input { width: 100%; }
.by-radios { border: 0; padding: 0; margin: 0; display: grid; gap: var(--pt-s2); }
.by-radio { display: flex; gap: var(--pt-s3); align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--by-line-2); border-radius: var(--pt-r); background: var(--pt-surface); cursor: pointer; }
.by-radio input { width: 20px; height: 20px; accent-color: var(--by-red); }
.by-filters { margin: var(--pt-s4) 0; }
.by-save-search { white-space: nowrap; }

/* ---------- messages: two-pane inbox ---------- */
.by-inbox { display: block; }
.by-inbox__side { background: var(--pt-surface); border: 1px solid var(--by-line); border-radius: var(--pt-r-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.by-inbox__main { min-width: 0; }
.by-roles { display: flex; gap: 4px; padding: 6px; margin: 0; border-bottom: 1px solid var(--by-line); background: var(--by-bg); }
.by-role { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--pt-r); color: var(--by-ink-2); font-size: .875rem; font-weight: 600; text-align: center; text-decoration: none; line-height: 1.2; }
.by-role:hover { color: var(--by-ink); }
.by-role.is-active { background: var(--pt-surface); color: var(--by-ink); box-shadow: var(--pt-shadow-1); }
.by-role:focus-visible { outline: 3px solid var(--pt-ring); outline-offset: -2px; }
.by-convs { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.by-convs li + li { border-top: 1px solid var(--by-line); }
.by-conv { display: flex; gap: var(--pt-s3); align-items: flex-start; padding: var(--pt-s3) var(--pt-s4); min-height: 44px; color: inherit; text-decoration: none; position: relative; transition: background-color .16s; }
.by-conv:hover { background: var(--by-bg); }
.by-conv:focus-visible { outline: 3px solid var(--pt-ring); outline-offset: -3px; }
.by-conv.is-current { background: var(--by-red-soft); }
.by-conv.is-current::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--by-red); }
.by-conv__main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.by-conv__top, .by-conv__bottom { display: flex; align-items: baseline; justify-content: space-between; gap: var(--pt-s2); min-width: 0; }
.by-conv__bottom { align-items: center; }
.by-conv__who { font-weight: 600; color: var(--by-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-conv.is-unread .by-conv__who, .by-conv.is-unread .by-conv__preview { font-weight: 700; color: var(--by-ink); }
.by-conv__when { flex: none; font-size: .75rem; color: var(--by-ink-2); font-variant-numeric: tabular-nums; }
.by-conv__about { font-size: .8125rem; color: var(--by-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-conv__preview { font-size: .9375rem; color: var(--by-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.by-side-empty { margin: 0; padding: var(--pt-s2) 0; }
@media (min-width: 900px) { .by-side-empty { display: none; } }

/* chat pane */
.by-chat { display: flex; flex-direction: column; background: var(--pt-surface); border: 1px solid var(--by-line); border-radius: var(--pt-r-lg); min-height: 60vh; position: relative; }
.by-chat__head { display: flex; align-items: center; gap: var(--pt-s3); padding: var(--pt-s3) var(--pt-s3) var(--pt-s3) var(--pt-s2); border-bottom: 1px solid var(--by-line); border-radius: var(--pt-r-lg) var(--pt-r-lg) 0 0; background: var(--pt-surface); position: sticky; top: var(--pt-header-h, 56px); z-index: 5; }
.by-chat__who { min-width: 0; flex: 1; }
.by-chat__name { margin: 0; font-size: 1rem; line-height: 1.3; }
.by-chat__about { margin: 0; font-size: .8125rem; color: var(--by-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-chat__about a { color: var(--by-red-text); text-decoration: underline; text-underline-offset: 2px; }
.by-chat__notices:not(:empty) { padding: var(--pt-s3) var(--pt-s4) 0; }
.by-chat__notices .pt-alert { margin: 0 0 var(--pt-s2); }
.by-chat__scroll { flex: 1; padding: var(--pt-s4); background: var(--by-bg); }
.by-chat__scroll:focus-visible { outline: 3px solid var(--pt-ring); outline-offset: -3px; }
.by-chat__privacy { display: flex; gap: var(--pt-s2); align-items: flex-start; margin: 0 auto var(--pt-s4); max-width: 34rem; padding: 8px 12px; background: var(--pt-surface); border: 1px solid var(--by-line); border-radius: var(--pt-r); font-size: .8125rem; color: var(--by-ink-2); }
.by-chat__privacy .pt-icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.by-messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.by-day { align-self: center; margin: var(--pt-s3) 0 var(--pt-s2); }
.by-day span { display: inline-block; padding: 3px 12px; border-radius: var(--pt-r-pill); background: var(--by-soft); color: var(--by-ink-2); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.by-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.by-msg--mine { align-items: flex-end; }
.by-msg__bubble { max-width: min(34rem, 86%); padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--pt-surface); border: 1px solid var(--by-line); color: var(--by-ink); }
.by-msg--mine .by-msg__bubble { border-radius: 18px 18px 6px 18px; background: var(--by-red); border-color: var(--by-red); color: #fff; }
.by-msg__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.by-msg__meta { display: inline-flex; align-items: center; gap: 8px; margin: 3px 6px 8px; font-size: .75rem; color: var(--by-ink-2); font-variant-numeric: tabular-nums; }
.by-msg__state { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.by-msg__state .pt-icon { width: 13px; height: 13px; }
.by-msg__state.is-read { color: var(--pt-success); }
.by-msg__flag { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 var(--pt-s2); padding: 8px 10px; border-radius: var(--pt-r-sm); background: var(--pt-warning-bg); color: var(--pt-warning); font-size: .8125rem; line-height: 1.4; }
.by-msg__flag .pt-icon { width: 16px; height: 16px; flex: none; }

/* composer pinned at the bottom */
.by-composer { display: grid; grid-template-columns: 1fr auto; gap: 8px var(--pt-s2); align-items: end; padding: var(--pt-s3); background: var(--pt-surface); border-top: 1px solid var(--by-line); border-radius: 0 0 var(--pt-r-lg) var(--pt-r-lg); position: sticky; bottom: var(--by-bar); z-index: 4; padding-bottom: calc(var(--pt-s3) + env(safe-area-inset-bottom, 0px)); }
.by-composer__input { width: 100%; min-height: 48px; max-height: 160px; padding: 12px 16px; border: 1px solid var(--by-line-2); border-radius: 24px; background: var(--pt-surface); color: var(--by-ink); font: inherit; line-height: 1.4; resize: none; transition: border-color .16s, box-shadow .16s; }
.by-composer__input:hover { border-color: var(--pt-gray-400, var(--by-ink-3)); }
.by-composer__input:focus { outline: none; border-color: var(--by-red); box-shadow: 0 0 0 3px var(--pt-ring); }
.by-composer__send { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--by-red); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background-color .16s, transform .16s; }
.by-composer__send:hover { background: var(--pt-red-700, var(--pt-primary-600)); }
.by-composer__send:focus-visible { outline: 3px solid var(--pt-ring); outline-offset: 2px; }
.by-composer__send .pt-icon { width: 22px; height: 22px; }
.by-composer__sendtxt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.by-composer__note { grid-column: 1 / -1; margin: 0; font-size: .75rem; line-height: 1.4; color: var(--by-ink-3); }

/* report dialog = sheet on phones, modal on desktop */
.by-dialog { border: 0; padding: 0; background: var(--pt-surface); color: var(--by-ink); width: min(480px, 100%); max-width: 100%; border-radius: var(--pt-r-xl) var(--pt-r-xl) 0 0; margin: auto 0 0; box-shadow: var(--pt-shadow-3); }
.by-dialog::backdrop { background: var(--pt-overlay, rgba(23, 23, 22, .55)); }
.by-dialog__form { display: grid; gap: var(--pt-s4); padding: var(--pt-s5) var(--pt-s4) calc(var(--pt-s5) + env(safe-area-inset-bottom, 0px)); }
.by-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--pt-s3); }
.by-dialog__title { margin: 0; font-size: 1.25rem; }
.by-dialog__foot { display: flex; flex-wrap: wrap; gap: var(--pt-s2); justify-content: flex-end; }
.by-dialog .pt-field { margin: 0; }
.by-dialog select, .by-dialog textarea { width: 100%; }
@media (min-width: 600px) { .by-dialog { margin: auto; border-radius: var(--pt-r-xl); } .by-dialog__form { padding: var(--pt-s5); } }

.by-msgbox { margin-block: var(--pt-s5); }
.by-msgbox textarea { width: 100%; }

/* phone: list and thread are separate screens */
@media (min-width: 600px) { .by-seg { display: inline-flex; width: auto; } .by-seg__item { flex: 0 0 auto; padding: 0 18px; gap: 8px; } }
@media (max-width: 899px) {
  body.buyer:has(.by-page--inbox.is-thread) .pt-footer { display: none; }
  .by-inbox.is-thread .by-inbox__side { display: none; }
  .by-inbox:not(.is-thread) .by-inbox__main { display: none; }
  .by-page--inbox.is-thread .by-head, .by-page--inbox.is-thread .by-inbox-nav { display: none; }
  .by-page--inbox.is-thread { padding-top: var(--pt-s3); }
  .by-chat { border-radius: var(--pt-r-lg); min-height: calc(100vh - var(--pt-header-h, 56px) - var(--by-bar) - 24px); }
  .by-chat__scroll { padding: var(--pt-s3); }
}
@media (min-width: 900px) {
  .by-inbox { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: var(--pt-s4); align-items: start; height: clamp(560px, calc(100vh - var(--pt-header-h, 72px) - 260px), 780px); }
  .by-inbox__side, .by-inbox__main, .by-chat { height: 100%; min-height: 0; }
  .by-chat__head { position: static; }
  .by-chat__scroll { overflow-y: auto; overscroll-behavior: contain; }
  .by-chat__back { display: none; }
  .by-composer { position: static; }
  .by-composer { grid-template-columns: 1fr auto; }
  .by-composer__send { width: auto; padding: 0 20px; }
  .by-composer__sendtxt { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .by-composer__send .pt-icon { display: none; }
  .by-inbox__main > .pt-empty { display: flex; flex-direction: column; justify-content: center; height: 100%; max-width: none; border: 1px solid var(--by-line); border-radius: var(--pt-r-lg); background: var(--pt-surface); }
  .by-page--inbox .pt-alert { margin-bottom: var(--pt-s3); }
}

/* ---------- AI search box (contract: form[data-by-ai], #by-ai-text, .by-ai__status) ---------- */
.by-ai { display: grid; gap: var(--pt-s2); width: 100%; }
.by-ai__label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; color: var(--by-ink); }
.by-ai__label .pt-icon { width: 18px; height: 18px; color: var(--by-red); }
.by-ai__row { display: flex; flex-direction: column; gap: var(--pt-s2); padding: 6px; background: var(--pt-surface); border: 1px solid var(--by-line-2); border-radius: 28px; box-shadow: var(--pt-shadow-1); transition: box-shadow .16s, border-color .16s; }
.by-ai__row:focus-within { border-color: var(--by-red); box-shadow: 0 0 0 3px var(--pt-ring); }
.by-ai__input, .by-ai .by-ai__input.pt-input { width: 100%; min-height: 48px; border: 0; background: transparent; box-shadow: none; padding-inline: 16px; font-size: 1rem; }
.by-ai .by-ai__input:focus { outline: none; box-shadow: none; }
.by-ai__btn { min-height: 48px; border-radius: 24px; }
.by-ai__hint { margin: 0 0 0 16px; font-size: .8125rem; }
.by-ai__status { margin: 0 0 0 16px; min-height: 1.4em; font-size: .9375rem; }
.by-ai__status.is-error { color: var(--pt-danger); }
.by-ai.is-busy .by-ai__btn { opacity: .7; pointer-events: none; }
@media (min-width: 600px) {
  .by-ai__row { flex-direction: row; align-items: center; }
  .by-ai__btn { flex: 0 0 auto; padding-inline: 24px; }
}

/* AI summary chip (dismissible) */
.by-ai-summary { display: flex; align-items: center; gap: var(--pt-s2); margin-block: var(--pt-s3); padding: 6px 6px 6px 14px; border: 1px solid var(--by-red-soft-2); border-radius: var(--pt-r-pill); background: var(--by-red-soft); color: var(--by-ink); font-size: .9375rem; width: fit-content; max-width: 100%; }
.by-ai-summary > .pt-icon { width: 18px; height: 18px; color: var(--by-red-text); flex: none; }
.by-ai-summary__text { min-width: 0; overflow-wrap: anywhere; }
.by-ai-summary__close { width: 44px; height: 44px; margin: -6px -6px -6px 0; }

/* heart */
.by-heart { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--by-line-2); border-radius: 50%; background: var(--pt-surface); color: var(--by-ink-2); cursor: pointer; transition: transform .16s, color .16s, border-color .16s; }
.by-heart:hover { border-color: var(--by-red); color: var(--by-red-text); }
.by-heart:active { transform: scale(.92); }
.by-heart[aria-pressed="true"], .pt-lcard__fav[aria-pressed="true"] { color: var(--by-red); }
.by-heart[aria-pressed="true"] svg, .pt-lcard__fav[aria-pressed="true"] svg { fill: currentColor; }
.by-heart:focus-visible { outline: 3px solid var(--pt-ring); outline-offset: 2px; }
.pt-lcard__media .pt-lcard__fav { position: absolute; right: 4px; top: 4px; }

/* "save this search" button */
.by-save-search { display: inline-flex; align-items: center; gap: 8px; }
.by-save-search .pt-icon { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) { .by-seg__item, .by-toggle__opt span, .by-heart, .by-composer__send, .by-conv { transition: none; } }

/* 44px touch targets on the buyer pages */
body.buyer .pt-btn--sm, body.buyer summary.pt-btn { min-height: 44px; }

/* ---------- Amara buyer concierge (owner: buy, 17 Nov) ---------- */
/* "Ask Amara" entry on the search results and listing pages */
.by-amara-ask { display: flex; align-items: center; gap: var(--pt-s3); flex-wrap: wrap; margin: var(--pt-s3) 0; padding: var(--pt-s3) var(--pt-s4);
  border: 1px solid var(--by-line); border-radius: var(--pt-r-lg, 16px); background: linear-gradient(135deg, var(--by-red-soft) 0%, var(--pt-bg, #fff) 70%); }
.by-amara-ask__av { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--by-red) 0%, #f08a5d 100%); }
.by-amara-ask__text { flex: 1 1 200px; min-width: 0; }
.by-amara-ask__t { margin: 0; font-weight: 700; color: var(--by-ink); }
.by-amara-ask__s { margin: 2px 0 0; font-size: .875rem; color: var(--by-ink-2); }
.by-amara-ask__btn { min-height: 44px; flex: 0 0 auto; }
@media (max-width: 480px) { .by-amara-ask__btn { flex: 1 1 100%; justify-content: center; } }
.by-amara-ask--listing { margin-top: var(--pt-s4); }

/* guests: "kept in this browser" + free account offer */
.by-offer { display: flex; gap: var(--pt-s3); align-items: flex-start; flex-wrap: wrap; margin: 0 0 var(--pt-s4); padding: var(--pt-s3) var(--pt-s4);
  border: 1px solid var(--by-line); border-radius: var(--pt-r-lg, 16px); background: var(--by-bg); }
.by-offer__ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--by-red-soft); color: var(--by-red-text); }
.by-offer__text { flex: 1 1 220px; min-width: 0; }
.by-offer__t { margin: 0; font-weight: 700; }
.by-offer__s { margin: 2px 0 0; font-size: .875rem; color: var(--by-ink-2); }
.by-offer__btns { display: flex; gap: var(--pt-s2); flex-wrap: wrap; align-items: center; }
.by-offer__btns .pt-btn { min-height: 44px; }
.by-local-note { font-size: .875rem; }
.by-ss__del { margin-left: auto; align-self: center; min-height: 44px; }

/* concierge page: the buyer-brief form (desktop right column, phone sheet) */
.by-brief { gap: var(--pt-s4); }
.by-brief__hero { height: 120px; border-radius: var(--pt-r-lg, 16px); background-color: var(--by-soft);
  background-image: var(--by-hero), linear-gradient(135deg, var(--by-red-soft) 0%, var(--by-soft) 100%); background-size: cover; background-position: center; }
.by-brief__t { margin: 0; font-size: 1.25rem; }
.by-brief__s { margin: 0; font-size: .9375rem; }
.by-brief__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.by-brief__group > legend { font-weight: 600; margin-bottom: var(--pt-s2); padding: 0; }
.by-chips { display: flex; flex-wrap: wrap; gap: var(--pt-s2); }
.by-chip > span { min-height: 44px; display: inline-flex; align-items: center; }
.by-brief__group .pt-field__help { margin: var(--pt-s2) 0 0; font-size: .8125rem; line-height: 1.4; color: var(--pt-text-2); }
.by-brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pt-s3); }
@media (max-width: 359px) { .by-brief__row { grid-template-columns: 1fr; } }
.by-brief__legal { font-size: .8125rem; margin: 0; }
.by-cc-all { min-height: 44px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .by-amara-ask, .by-offer { transition: none; } }
