:root {
  --bpba-accent: #0a66c2;
  --bpba-accent-hover: #004182;
  --bpba-accent-soft: #eaf3fc;
  --bpba-link: #0a66c2;
  --bpba-surface: #ffffff;
  --bpba-surface-alt: #f7f9fb;
  --bpba-surface-muted: #eef2f5;
  --bpba-text: #18222d;
  --bpba-muted: #65717d;
  --bpba-border: #d7dee5;
  --bpba-border-strong: #bdc7d1;
  --bpba-success: #16865e;
  --bpba-danger: #b42318;
  --bpba-radius: 8px;
  --bpba-shadow: 0 12px 34px rgba(24, 34, 45, 0.08);
}

.bpba-route-shell {
  min-height: 70vh;
  padding: 36px 16px 72px;
  background: #f2f4f6;
}

.bpba-route-shell__inner {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.bpba-widget {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 20px;
  padding: 28px;
  color: var(--bpba-text);
  background: var(--bpba-surface);
  border: 1px solid var(--bpba-border);
  border-radius: var(--bpba-radius);
  box-shadow: var(--bpba-shadow);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.bpba-widget *,
.bpba-widget *::before,
.bpba-widget *::after {
  box-sizing: border-box;
}

.bpba-widget :where(button, input, select, textarea) {
  font: inherit;
}

.bpba-widget__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--bpba-border);
}

.bpba-widget__heading {
  min-width: 0;
}

.bpba-widget__title {
  margin: 0;
  color: var(--bpba-text);
  font-size: 1.25rem;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: 0;
}

.bpba-widget__description,
.bpba-widget__footer-note,
.bpba-card__meta,
.bpba-inline-link,
.bpba-profile-hero__body p,
.bpba-upload-dropzone__requirements {
  color: var(--bpba-muted);
}

.bpba-widget__description,
.bpba-widget__footer-note {
  margin: 7px 0 0;
  font-size: 0.9rem;
}

.bpba-widget__empty {
  min-height: 156px;
  padding: 30px 22px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--bpba-muted);
  background: var(--bpba-surface-alt);
  border: 1px dashed var(--bpba-border-strong);
  border-radius: var(--bpba-radius);
  text-align: center;
}

.bpba-widget__empty::before {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--bpba-accent);
  background: var(--bpba-accent-soft);
  border-radius: 50%;
  content: "\2713";
  font-size: 1rem;
  font-weight: 800;
}

.bpba-widget__empty-message {
  margin: 0;
}

.bpba-widget__empty--login .bpba-widget__login-link {
  display: inline-block;
  margin-top: 2px;
}

.bpba-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.bpba-card {
  position: relative;
  min-width: 0;
  min-height: 124px;
  padding: 17px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  color: var(--bpba-text);
  background: var(--bpba-surface);
  border: 1px solid var(--bpba-border);
  border-radius: var(--bpba-radius);
  box-shadow: 0 3px 12px rgba(24, 34, 45, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.bpba-card:hover {
  border-color: var(--bpba-border-strong);
  box-shadow: 0 10px 24px rgba(24, 34, 45, 0.075);
  transform: translateY(-2px);
}

.bpba-card__avatar,
.bpba-upload-preview {
  width: 58px;
  height: 58px;
  display: block;
  flex: 0 0 58px;
  color: var(--bpba-accent-hover);
  background: var(--bpba-accent-soft);
  border: 1px solid #c8daec;
  border-radius: 50%;
  object-fit: cover;
}

.bpba-card__avatar--initials,
.bpba-activity-composer__avatar--initials,
.bpba-profile-hero__avatar--initials,
.bpba-thread-list__avatar--initials,
.bpba-chat-bubble__avatar--initials {
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0;
}

.bpba-card__avatar--initials {
  font-size: 0.95rem;
}

.bpba-card__body {
  min-width: 0;
}

.bpba-card__title {
  margin: 1px 0 4px;
  color: var(--bpba-text);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bpba-card__meta {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.bpba-card__description {
  margin-top: 9px;
  color: #34404b;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bpba-card__description p {
  margin: 0;
}

.bpba-card__link,
.bpba-inline-link {
  color: var(--bpba-link);
  font-weight: 720;
  text-decoration: none;
}

.bpba-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.86rem;
}

.bpba-card__link::after {
  content: "\2192";
  transition: transform 160ms ease;
}

.bpba-card__link:hover::after,
.bpba-card__link:focus-visible::after {
  transform: translateX(3px);
}

.bpba-card__link:hover,
.bpba-card__link:focus-visible,
.bpba-inline-link:hover,
.bpba-inline-link:focus-visible {
  color: var(--bpba-accent-hover);
  text-decoration: none;
}

.bpba-card--group {
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 156px;
  padding: 19px;
}

.bpba-card--group .bpba-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--bpba-radius);
}

.bpba-card--activity {
  grid-template-columns: 50px minmax(0, 1fr);
  min-height: 0;
  padding: 19px 20px;
}

.bpba-card--activity .bpba-card__avatar {
  width: 50px;
  height: 50px;
}

.bpba-card--activity .bpba-card__title {
  margin-bottom: 1px;
}

.bpba-card--activity .bpba-card__description {
  margin-top: 12px;
  color: #2d3742;
  font-size: 0.96rem;
  line-height: 1.58;
}

.bpba-composer,
.bpba-form-grid,
.bpba-upload-grid {
  display: grid;
  gap: 16px;
}

.bpba-composer {
  margin-bottom: 18px;
  padding: 18px;
  background: var(--bpba-surface-alt);
  border: 1px solid var(--bpba-border);
  border-radius: var(--bpba-radius);
}

.bpba-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bpba-form-grid__full,
.bpba-form-actions,
.bpba-registration-form__honeypot {
  grid-column: 1 / -1;
}

.bpba-form-field,
.bpba-messages__field {
  display: block;
  min-width: 0;
}

.bpba-form-field__label,
.bpba-messages__field-label,
.bpba-activity-composer__label {
  display: block;
  margin-bottom: 7px;
  color: var(--bpba-text);
  font-size: 0.84rem;
  font-weight: 720;
}

.bpba-composer textarea,
.bpba-messages__composer input,
.bpba-messages__composer select,
.bpba-messages__composer textarea,
.bpba-form-field__input,
.bpba-form-field__select,
.bpba-form-field__textarea,
.bpba-activation-form input[type="text"],
.bpba-activation-form input[type="password"] {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--bpba-text);
  background: #fff;
  border: 1px solid var(--bpba-border-strong);
  border-radius: 6px;
  font: inherit;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.bpba-form-field__textarea,
.bpba-messages__composer textarea,
.bpba-composer textarea {
  resize: vertical;
}

.bpba-composer textarea:focus,
.bpba-messages__composer input:focus,
.bpba-messages__composer select:focus,
.bpba-messages__composer textarea:focus,
.bpba-form-field__input:focus,
.bpba-form-field__select:focus,
.bpba-form-field__textarea:focus,
.bpba-activation-form input:focus {
  border-color: var(--bpba-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.14);
}

.bpba-form-actions,
.bpba-button-row,
.bpba-messages__composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bpba-button-row {
  margin-top: 15px;
}

.bpba-button {
  min-height: 42px;
  max-width: 100%;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--bpba-accent);
  border: 1px solid var(--bpba-accent);
  border-radius: 6px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bpba-button:hover,
.bpba-button:focus-visible {
  color: #fff;
  background: var(--bpba-accent-hover);
  border-color: var(--bpba-accent-hover);
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(10, 102, 194, 0.18);
  transform: translateY(-1px);
}

.bpba-button:focus-visible {
  outline: 3px solid rgba(10, 102, 194, 0.2);
  outline-offset: 2px;
}

.bpba-button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.bpba-button--secondary {
  color: var(--bpba-text);
  background: #fff;
  border-color: var(--bpba-border-strong);
}

.bpba-button--secondary:hover,
.bpba-button--secondary:focus-visible {
  color: var(--bpba-text);
  background: var(--bpba-surface-alt);
  border-color: #8796a5;
  box-shadow: none;
}

.bpba-activity-composer {
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: #fff;
}

.bpba-activity-composer__body {
  padding: 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}

.bpba-activity-composer__avatar {
  width: 46px;
  height: 46px;
  color: var(--bpba-accent-hover);
  background: var(--bpba-accent-soft);
  border: 1px solid #c8daec;
  border-radius: 50%;
  object-fit: cover;
}

.bpba-activity-composer__field {
  min-width: 0;
}

.bpba-activity-composer__label {
  margin-bottom: 5px;
}

.bpba-activity-composer .bpba-activity-composer__input {
  min-height: 74px;
  padding: 4px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.bpba-activity-composer .bpba-activity-composer__input:focus {
  box-shadow: none;
}

.bpba-activity-composer__actions {
  padding: 11px 16px;
  display: flex;
  justify-content: flex-end;
  background: var(--bpba-surface-alt);
  border-top: 1px solid var(--bpba-border);
}

.bpba-activity-composer__submit {
  min-width: 82px;
}

.bpba-widget--activity-feed .bpba-card-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.bpba-profile-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bpba-border);
  border-radius: var(--bpba-radius);
  box-shadow: 0 8px 24px rgba(24, 34, 45, 0.06);
}

.bpba-profile-hero__cover {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: cover;
}

.bpba-profile-hero__cover--placeholder {
  background: #dce9f5;
  border-bottom: 1px solid #ccdae7;
}

.bpba-profile-hero__identity {
  min-width: 0;
  padding: 0 24px 24px;
  display: flex;
  align-items: flex-start;
  gap: 19px;
}

.bpba-profile-hero__avatar {
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  margin-top: -42px;
  color: #fff;
  background: #405b75;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(24, 34, 45, 0.18);
  object-fit: cover;
}

.bpba-profile-hero__avatar--initials {
  font-size: 1.7rem;
}

.bpba-profile-hero__body {
  min-width: 0;
  padding-top: 16px;
}

.bpba-profile-hero__name {
  margin: 0 0 2px;
  color: var(--bpba-text);
  font-size: 1.42rem;
  font-weight: 780;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.bpba-profile-hero__body p {
  margin: 3px 0;
  font-size: 0.9rem;
}

.bpba-profile-hero__username {
  color: #4d5b68;
}

.bpba-profile-hero__activity {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bpba-profile-hero__presence {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--bpba-success);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #8bd1b8;
}

.bpba-profile-hero__actions {
  margin-top: 14px;
}

.bpba-profile-fields {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bpba-border);
  border-radius: var(--bpba-radius);
}

.bpba-profile-fields__item {
  min-width: 0;
  margin: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--bpba-border);
  border-bottom: 1px solid var(--bpba-border);
}

.bpba-profile-fields__label {
  color: var(--bpba-muted);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.bpba-profile-fields__value {
  margin: 5px 0 0;
  color: var(--bpba-text);
  overflow-wrap: anywhere;
}

.bpba-group-hero__avatar {
  border-radius: var(--bpba-radius);
}

.bpba-group-hero__meta,
.bpba-group-hero__description {
  max-width: 720px;
}

.bpba-messages {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bpba-border);
  border-radius: var(--bpba-radius);
  box-shadow: 0 8px 24px rgba(24, 34, 45, 0.06);
  transition: opacity 160ms ease;
}

.bpba-messages[aria-busy="true"] {
  opacity: 0.72;
}

.bpba-messages__sidebar {
  min-width: 0;
  background: var(--bpba-surface-alt);
  border-right: 1px solid var(--bpba-border);
}

.bpba-messages__sidebar-title {
  margin: 0;
  padding: 18px;
  color: var(--bpba-text);
  background: #fff;
  border-bottom: 1px solid var(--bpba-border);
  font-size: 0.94rem;
  font-weight: 760;
}

.bpba-messages__empty {
  margin: 0;
  padding: 20px;
  color: var(--bpba-muted);
  font-size: 0.9rem;
}

.bpba-thread-list {
  max-height: 620px;
  overflow-y: auto;
  transition: opacity 140ms ease, transform 140ms ease;
}

.bpba-thread-list.is-updating,
.bpba-chat-bubbles.is-updating {
  opacity: 0.45;
  transform: translateY(3px);
}

.bpba-thread-list__item {
  width: 100%;
  min-height: 92px;
  padding: 14px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  color: var(--bpba-text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bpba-border);
  box-shadow: inset 3px 0 0 transparent;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.bpba-thread-list__item:hover,
.bpba-thread-list__item:focus-visible {
  background: #f1f5f8;
  outline: 0;
}

.bpba-thread-list__item.is-active {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--bpba-accent);
}

.bpba-thread-list__avatar {
  width: 46px;
  height: 46px;
  color: var(--bpba-accent-hover);
  background: var(--bpba-accent-soft);
  border: 1px solid #c8daec;
  border-radius: 50%;
  object-fit: cover;
}

.bpba-thread-list__avatar--initials {
  font-size: 0.8rem;
}

.bpba-thread-list__body,
.bpba-thread-list__title,
.bpba-thread-list__details,
.bpba-thread-list__participants,
.bpba-thread-list__meta,
.bpba-thread-list__preview {
  display: block;
  min-width: 0;
}

.bpba-thread-list__title {
  color: var(--bpba-text);
  font-size: 0.92rem;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bpba-thread-list__details {
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.bpba-thread-list__participants,
.bpba-thread-list__meta,
.bpba-thread-list__preview {
  color: var(--bpba-muted);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bpba-thread-list__meta {
  flex: 0 1 auto;
  text-align: right;
}

.bpba-thread-list__preview {
  margin-top: 3px;
}

.bpba-thread-list__unread {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--bpba-accent);
  border-radius: 11px;
  font-size: 0.7rem;
  font-weight: 800;
}

.bpba-messages__thread {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(250px, 1fr) auto;
  background: #fff;
}

.bpba-messages__thread-header {
  min-height: 73px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--bpba-border);
}

.bpba-messages__thread-title {
  margin: 0;
  color: var(--bpba-text);
  font-size: 1rem;
  font-weight: 760;
}

.bpba-messages__participants {
  min-height: 1.2em;
  margin: 3px 0 0;
  color: var(--bpba-muted);
  font-size: 0.82rem;
}

.bpba-chat-bubbles {
  max-height: 520px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  background: #f5f7f9;
  transition: opacity 140ms ease, transform 140ms ease;
}

.bpba-chat-bubbles__empty {
  max-width: 310px;
  margin: auto;
  color: var(--bpba-muted);
  text-align: center;
}

.bpba-chat-bubble {
  width: min(80%, 600px);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  align-self: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--bpba-border);
  border-radius: var(--bpba-radius);
  box-shadow: 0 4px 14px rgba(24, 34, 45, 0.05);
  animation: bpba-message-enter 180ms ease both;
}

.bpba-chat-bubble--outbound {
  align-self: flex-end;
  background: var(--bpba-accent-soft);
  border-color: #b8d3ec;
}

.bpba-chat-bubble__avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: var(--bpba-accent-hover);
  background: #fff;
  border: 1px solid #c8daec;
  border-radius: 50%;
  object-fit: cover;
}

.bpba-chat-bubble__avatar--initials {
  font-size: 0.66rem;
}

.bpba-chat-bubble__body {
  min-width: 0;
  flex: 1;
}

.bpba-chat-bubble__header {
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.bpba-chat-bubble__sender {
  color: var(--bpba-text);
  font-size: 0.82rem;
}

.bpba-chat-bubble__date {
  color: var(--bpba-muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.bpba-chat-bubble__content {
  margin: 0;
  color: #2f3a45;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bpba-messages__composer {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: #fff;
  border-top: 1px solid var(--bpba-border);
}

.bpba-messages__field--message,
.bpba-messages__composer-actions {
  grid-column: 1 / -1;
}

.bpba-messages__recipients {
  min-height: 104px;
}

.bpba-messages__composer-actions {
  justify-content: flex-end;
}

.bpba-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  min-width: 116px;
  min-height: 44px;
  padding: 10px 16px;
  color: #fff;
  background: var(--bpba-accent);
  border: 1px solid var(--bpba-accent);
  border-radius: 22px;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(10, 102, 194, 0.24);
}

.bpba-notification-list {
  overflow: hidden;
  border: 1px solid var(--bpba-border);
  border-radius: var(--bpba-radius);
}

.bpba-notification-list__item {
  min-height: 78px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  background: #fff;
  border-bottom: 1px solid var(--bpba-border);
  transition: background 160ms ease;
}

.bpba-notification-list__item:last-child {
  border-bottom: 0;
}

.bpba-notification-list__item--unread {
  background: #f4f8fc;
}

.bpba-notification-list__indicator {
  width: 9px;
  height: 9px;
  background: #c3ccd4;
  border-radius: 50%;
}

.bpba-notification-list__item--unread .bpba-notification-list__indicator {
  background: var(--bpba-accent);
  box-shadow: 0 0 0 3px var(--bpba-accent-soft);
}

.bpba-notification-list__body {
  min-width: 0;
}

.bpba-notification-list__title,
.bpba-notification-list__meta {
  margin: 0;
}

.bpba-notification-list__title {
  color: var(--bpba-text);
  font-size: 0.94rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.bpba-notification-list__meta {
  margin-top: 4px;
  color: var(--bpba-muted);
  font-size: 0.8rem;
}

.bpba-notification-list__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.bpba-notification-list__read {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.8rem;
}

.bpba-upload-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.bpba-upload-dropzone {
  min-width: 0;
  padding: 17px;
  background: var(--bpba-surface-alt);
  border: 1px solid var(--bpba-border);
  border-radius: var(--bpba-radius);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.bpba-upload-dropzone.is-dragging {
  background: var(--bpba-accent-soft);
  border-color: var(--bpba-accent);
  box-shadow: inset 0 0 0 2px rgba(10, 102, 194, 0.1);
}

.bpba-upload-dropzone__content {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
}

.bpba-upload-dropzone--cover .bpba-upload-dropzone__content {
  grid-template-columns: 118px minmax(0, 1fr);
}

.bpba-upload-dropzone__preview-wrap {
  width: 76px;
  height: 76px;
  overflow: hidden;
  background: #e3e9ee;
  border: 1px solid var(--bpba-border-strong);
  border-radius: 50%;
}

.bpba-upload-dropzone--cover .bpba-upload-dropzone__preview-wrap {
  width: 118px;
  border-radius: 6px;
}

.bpba-upload-dropzone__preview {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
}

.bpba-upload-dropzone__details {
  min-width: 0;
}

.bpba-upload-dropzone__title {
  margin: 0 0 4px;
  color: var(--bpba-text);
  font-size: 0.98rem;
  font-weight: 760;
}

.bpba-upload-dropzone__requirements {
  margin: 0 0 11px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.bpba-upload-dropzone__button {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.8rem;
}

.bpba-upload-dropzone__progress {
  width: 100%;
  height: 4px;
  margin: 0;
  display: block;
  opacity: 0;
  transition: opacity 160ms ease;
}

.bpba-upload-dropzone.is-uploading .bpba-upload-dropzone__progress {
  margin-top: 14px;
  opacity: 1;
}

.bpba-registration-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bpba-registration-result {
  padding: 18px;
  color: #12583f;
  background: #edf8f4;
  border: 1px solid #9bcfbd;
  border-radius: var(--bpba-radius);
}

.bpba-registration-result__message {
  margin: 0;
}

.bpba-login-session__message {
  margin: 0;
  color: var(--bpba-text);
}

.bpba-login-form .login-username,
.bpba-login-form .login-password,
.bpba-login-form .login-remember,
.bpba-login-form .login-submit {
  margin: 0 0 14px;
}

.bpba-login-form label {
  color: var(--bpba-text);
  font-size: 0.84rem;
  font-weight: 720;
}

.bpba-login-form input[type="text"],
.bpba-login-form input[type="password"] {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 11px 13px;
  color: var(--bpba-text);
  background: #fff;
  border: 1px solid var(--bpba-border-strong);
  border-radius: 6px;
}

.bpba-login-form .button {
  min-height: 42px;
  padding: 9px 16px;
  color: #fff;
  background: var(--bpba-accent);
  border: 1px solid var(--bpba-accent);
  border-radius: 6px;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.bpba-feedback {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1001;
  width: min(calc(100% - 32px), 520px);
  padding: 13px 16px;
  color: #fff;
  background: #1f2933;
  border-radius: 7px;
  box-shadow: 0 14px 36px rgba(24, 34, 45, 0.24);
  text-align: center;
  transform: translateX(-50%);
  animation: bpba-feedback-enter 180ms ease both;
}

.bpba-feedback[data-error="1"] {
  background: var(--bpba-danger);
}

.bpba-license-required {
  padding: 18px;
  display: grid;
  gap: 12px;
  color: var(--bpba-text);
  background: #fff;
  border: 1px solid var(--bpba-border);
  border-radius: var(--bpba-radius);
}

.bpba-license-required__message {
  margin: 0;
  color: inherit;
}

.bpba-license-required__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.bpba-license-required__purchase-link {
  font-weight: 700;
}

.bpba-block-editor-preview {
  min-height: 120px;
  padding: 10px;
  background: #f2f4f6;
  border: 1px solid var(--bpba-border);
}

.bpba-block-editor-preview .bpba-widget {
  margin-bottom: 0;
}

[hidden] {
  display: none !important;
}

@keyframes bpba-feedback-enter {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes bpba-message-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .bpba-messages {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  }

  .bpba-thread-list__meta {
    display: none;
  }

  .bpba-upload-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .bpba-route-shell {
    padding: 20px 12px 48px;
  }

  .bpba-widget {
    padding: 20px;
  }

  .bpba-widget__header {
    margin-bottom: 19px;
  }

  .bpba-card-grid,
  .bpba-form-grid,
  .bpba-messages,
  .bpba-messages__composer {
    grid-template-columns: 1fr;
  }

  .bpba-card--group {
    min-height: 0;
  }

  .bpba-messages {
    min-height: 0;
  }

  .bpba-messages__sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--bpba-border);
  }

  .bpba-thread-list {
    max-height: 270px;
  }

  .bpba-messages__field--message,
  .bpba-messages__composer-actions {
    grid-column: auto;
  }

  .bpba-chat-bubble {
    width: 94%;
  }

  .bpba-profile-hero__cover {
    height: 132px;
  }

  .bpba-profile-hero__identity {
    padding: 0 18px 20px;
  }

  .bpba-profile-hero__avatar {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
    margin-top: -30px;
  }

  .bpba-profile-hero__avatar--initials {
    font-size: 1.25rem;
  }

  .bpba-profile-hero__body {
    padding-top: 12px;
  }

  .bpba-profile-hero__name {
    font-size: 1.2rem;
  }

  .bpba-notification-list__item {
    grid-template-columns: 9px minmax(0, 1fr);
  }

  .bpba-notification-list__actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .bpba-chat-launcher {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 520px) {
  .bpba-widget {
    padding: 16px;
  }

  .bpba-widget__title {
    font-size: 1.12rem;
  }

  .bpba-card,
  .bpba-card--group,
  .bpba-card--activity {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 15px;
  }

  .bpba-card__avatar,
  .bpba-card--group .bpba-card__avatar,
  .bpba-card--activity .bpba-card__avatar {
    width: 48px;
    height: 48px;
  }

  .bpba-activity-composer__body {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
  }

  .bpba-activity-composer__avatar {
    width: 42px;
    height: 42px;
  }

  .bpba-profile-hero__identity {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bpba-profile-hero__body {
    padding-top: 10px;
  }

  .bpba-upload-dropzone__content,
  .bpba-upload-dropzone--cover .bpba-upload-dropzone__content {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .bpba-upload-dropzone__preview-wrap,
  .bpba-upload-dropzone--cover .bpba-upload-dropzone__preview-wrap {
    width: 64px;
    height: 64px;
  }

  .bpba-thread-list__item {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 12px;
  }

  .bpba-thread-list__avatar {
    width: 42px;
    height: 42px;
  }

  .bpba-chat-bubbles,
  .bpba-messages__composer {
    padding: 16px;
  }

  .bpba-chat-bubble__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .bpba-button {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bpba-card,
  .bpba-button,
  .bpba-card__link::after,
  .bpba-thread-list,
  .bpba-thread-list__item,
  .bpba-chat-bubbles,
  .bpba-upload-dropzone,
  .bpba-feedback,
  .bpba-chat-bubble {
    animation: none;
    transition: none;
  }

  .bpba-card:hover,
  .bpba-button:hover,
  .bpba-button:focus-visible {
    transform: none;
  }
}
