.bpd-shell {
  --bpd-ink: #545859;
  --bpd-ink-strong: #2c3133;
  --bpd-copy: #6b6f72;
  --bpd-line: rgba(84, 88, 89, 0.14);
  --bpd-line-strong: rgba(84, 88, 89, 0.22);
  --bpd-paper: rgba(255, 255, 255, 0.84);
  --bpd-paper-strong: #ffffff;
  --bpd-soft: #fff8f4;
  --bpd-soft-2: #f7f4f2;
  --bpd-accent: #fe5000;
  --bpd-accent-strong: #db4700;
  --bpd-accent-soft: rgba(254, 80, 0, 0.14);
  --bpd-accent-glow: rgba(254, 80, 0, 0.28);
  --bpd-shadow: 0 36px 90px rgba(44, 49, 51, 0.12);
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(254, 80, 0, 0.12), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(84, 88, 89, 0.08), transparent 26%),
    linear-gradient(180deg, #fffdfb 0%, #fffaf7 48%, #f8f6f4 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--bpd-shadow);
  margin: 32px 0;
  width: 100%;
  max-width: 100%;
}

.bpd-shell,
.bpd-shell * {
  box-sizing: border-box;
}

.bpd-shell.is-widget {
  margin: 0;
  border-radius: 28px;
}

.bpd-shell__backdrop {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(84, 88, 89, 0.025) 0,
      rgba(84, 88, 89, 0.025) 10px,
      transparent 10px,
      transparent 26px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.bpd-shell__frame {
  position: relative;
  padding: 32px;
}

.bpd-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.bpd-hero__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bpd-hero__logo {
  width: 144px;
  max-width: 100%;
  height: auto;
}

.bpd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(84, 88, 89, 0.1);
  color: var(--bpd-ink);
  font: 800 11px/1 "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bpd-hero__title {
  margin: 0;
  max-width: 14ch;
  color: var(--bpd-ink-strong);
  font: 700 clamp(2.45rem, 6vw, 5rem) / 0.92 "Syne", "Segoe UI", sans-serif;
  letter-spacing: -0.05em;
}

.bpd-hero__subtitle {
  margin: 0;
  max-width: 66ch;
  color: var(--bpd-copy);
  font: 600 16px/1.7 "Manrope", "Segoe UI", sans-serif;
}

.bpd-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bpd-filters-wrap {
  margin-bottom: 18px;
}

.bpd-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66)),
    linear-gradient(120deg, rgba(254, 80, 0, 0.05), rgba(84, 88, 89, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 44px rgba(84, 88, 89, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.bpd-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.bpd-field__label {
  color: var(--bpd-copy);
  font: 800 11px/1 "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bpd-field input,
.bpd-field select {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(84, 88, 89, 0.1);
  background: rgba(255, 255, 255, 0.94);
  padding: 14px 16px;
  color: var(--bpd-ink-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font: 700 14px/1.3 "Manrope", "Segoe UI", sans-serif;
}

.bpd-field--search input {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at left center, rgba(254, 80, 0, 0.06), transparent 34%);
}

.bpd-field input::placeholder {
  color: #8f9497;
}

.bpd-field input:focus,
.bpd-field select:focus {
  outline: none;
  border-color: rgba(254, 80, 0, 0.36);
  box-shadow: 0 0 0 4px rgba(254, 80, 0, 0.12);
}

.bpd-field select:disabled {
  cursor: not-allowed;
  color: #9da3a6;
  background: rgba(247, 244, 242, 0.92);
}

.bpd-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
}

.bpd-actions .bpd-button {
  width: auto;
  min-width: 132px;
}

.bpd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 20px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
  font: 800 14px/1 "Manrope", "Segoe UI", sans-serif;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

.bpd-shell a.bpd-button,
.bpd-shell button.bpd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bpd-button:hover,
.bpd-button:focus-visible {
  transform: translateY(-2px);
}

.bpd-button--primary {
  background: linear-gradient(135deg, var(--bpd-accent), var(--bpd-accent-strong));
  color: #fff;
  box-shadow: 0 20px 36px rgba(254, 80, 0, 0.28);
}

.bpd-button--ghost {
  background: rgba(255, 255, 255, 0.86);
  color: var(--bpd-ink-strong);
  border-color: rgba(84, 88, 89, 0.1);
}

.bpd-button[disabled] {
  opacity: 0.44;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bpd-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.bpd-toolbar__meta {
  color: var(--bpd-ink-strong);
  font: 800 13px/1.4 "Manrope", "Segoe UI", sans-serif;
}

.bpd-toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.bpd-chip,
.bpd-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(84, 88, 89, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--bpd-ink);
  font: 800 12px/1 "Manrope", "Segoe UI", sans-serif;
}

.bpd-chip--accent {
  background: rgba(254, 80, 0, 0.1);
  color: var(--bpd-accent-strong);
  border-color: rgba(254, 80, 0, 0.16);
}

.bpd-badge {
  background: rgba(44, 49, 51, 0.78);
  color: #fff;
  border: 0;
  backdrop-filter: blur(6px);
}

.bpd-badge--soft {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bpd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.bpd-grid > * {
  min-width: 0;
}

.bpd-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 26px 52px rgba(84, 88, 89, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.bpd-card:hover {
  transform: translateY(-6px);
  border-color: rgba(254, 80, 0, 0.16);
  box-shadow: 0 32px 64px rgba(84, 88, 89, 0.12);
}

.bpd-card__media {
  position: relative;
  min-height: 224px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(44, 49, 51, 0.9), rgba(84, 88, 89, 0.62)),
    var(--bpd-card-art);
  background-size: auto, auto, cover;
  background-position: center, center, center;
}

.bpd-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(44, 49, 51, 0.32));
}

.bpd-card__badges {
  position: relative;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 1;
}

.bpd-card__logo {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -46%);
  width: min(68%, 210px);
  opacity: 1;
  filter: drop-shadow(0 12px 24px rgba(254, 80, 0, 0.08));
}

.bpd-card.is-logo-card .bpd-card__media {
  background:
    radial-gradient(circle at top left, rgba(254, 80, 0, 0.08), transparent 42%),
    linear-gradient(145deg, #ffffff, #ffffff);
  border-bottom: 1px solid rgba(84, 88, 89, 0.08);
  min-height: 180px;
}

.bpd-card.is-logo-card .bpd-card__overlay {
  display: none;
}

.bpd-card__body {
  display: grid;
  gap: 11px;
  padding: 22px;
  min-width: 0;
  align-content: start;
}

.bpd-card__topline {
  color: var(--bpd-accent-strong);
  font: 800 11px/1.25 "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bpd-card__title {
  margin: 0;
  color: var(--bpd-ink-strong);
  font: 800 24px/1.12 "Syne", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.bpd-card__location {
  margin: 0;
  color: var(--bpd-copy);
  font: 700 15px/1.4 "Manrope", "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

.bpd-card__description {
  margin: 0;
  color: var(--bpd-copy);
  font: 600 14px/1.72 "Manrope", "Segoe UI", sans-serif;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.bpd-card__details {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--bpd-ink);
  font: 700 13px/1.65 "Manrope", "Segoe UI", sans-serif;
  min-width: 0;
}

.bpd-card__details li {
  overflow-wrap: anywhere;
}

.bpd-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 22px 22px;
  margin-top: auto;
}

.bpd-card__footer .bpd-button {
  flex: 0 0 auto;
  min-height: 50px;
  min-width: 138px;
}

.bpd-card__footer .bpd-button:only-child {
  min-width: 156px;
}

.bpd-pagination-wrap {
  margin-top: 22px;
}

.bpd-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(84, 88, 89, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bpd-pagination__status {
  color: var(--bpd-ink);
  font: 800 13px/1.3 "Manrope", "Segoe UI", sans-serif;
}

.bpd-empty {
  padding: 56px 24px;
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px dashed rgba(84, 88, 89, 0.18);
}

.bpd-empty h3 {
  margin: 0 0 10px;
  color: var(--bpd-ink-strong);
  font: 800 34px/1 "Syne", "Segoe UI", sans-serif;
}

.bpd-empty p {
  margin: 0;
  color: var(--bpd-copy);
  font: 600 15px/1.7 "Manrope", "Segoe UI", sans-serif;
}

.bpd-shell.is-loading .bpd-results,
.bpd-shell.is-loading .bpd-pagination-wrap,
.bpd-shell.is-loading .bpd-filters-wrap {
  opacity: 0.58;
  pointer-events: none;
}

.bpd-block-preview .bpd-shell {
  margin: 0;
}

@media (max-width: 1360px) {
  .bpd-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bpd-field--search {
    grid-column: span 2;
  }

  .bpd-actions {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

@media (max-width: 900px) {
  .bpd-shell__frame {
    padding: 18px;
  }

  .bpd-hero__brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .bpd-hero__logo {
    width: 130px;
  }

  .bpd-filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .bpd-field--search {
    grid-column: auto;
  }

  .bpd-actions {
    width: 100%;
    grid-column: auto;
    gap: 10px;
  }

  .bpd-actions .bpd-button {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .bpd-toolbar,
  .bpd-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .bpd-grid {
    grid-template-columns: 1fr;
  }

  .bpd-card__footer .bpd-button {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .bpd-shell {
    border-radius: 24px;
  }

  .bpd-shell__frame {
    padding: 14px;
  }

  .bpd-hero {
    gap: 14px;
    margin-bottom: 20px;
  }

  .bpd-hero__title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .bpd-hero__subtitle {
    font-size: 15px;
  }

  .bpd-chip {
    padding: 8px 12px;
    font-size: 11px;
  }

  .bpd-filters {
    padding: 12px;
    gap: 10px;
    border-radius: 22px;
  }

  .bpd-field__label {
    font-size: 10px;
  }

  .bpd-field input,
  .bpd-field select {
    min-height: 50px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .bpd-actions .bpd-button,
  .bpd-card__footer .bpd-button {
    flex-basis: 100%;
  }
}