/* Brands directory — 3 colors + semantic tokens. Mobile-first. */
.bd-app .sr-only,
.bd-submit .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bd-app,
.bd-submit {
  --bd-ink: #111827;
  --bd-muted: #6b7280;
  --bd-primary: #494bd6;
  --bd-surface: #ffffff;
  --bd-wash: #f9fafb;
  --bd-border: #e5e7eb;
  --bd-radius: 1rem;
  color: var(--bd-ink);
}

.content-inner.bd-app {
  max-width: none;
}

.bd-app h1,
.bd-submit h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--bd-ink);
}

.bd-lead {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  color: var(--bd-muted);
  line-height: 1.5;
}

.bd-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem;
  background: var(--bd-surface);
  border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.bd-search {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--bd-border);
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
}

.bd-search:focus {
  outline: 3px solid var(--bd-primary);
  outline-offset: 2px;
  border-color: var(--bd-primary);
}

.bd-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.bd-filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bd-muted);
  width: 100%;
}

.bd-chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bd-chip-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--bd-border);
  background: #fff;
  color: var(--bd-ink);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
}

.bd-chip-input:focus-visible + .bd-chip-toggle {
  outline: 3px solid var(--bd-primary);
  outline-offset: 2px;
}

.bd-chip-input:checked + .bd-chip-toggle {
  background: var(--bd-primary);
  border-color: var(--bd-primary);
  color: #fff;
}

.bd-loc {
  flex: 1 1 12rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--bd-border);
  border-radius: 12px;
  font-size: 0.9375rem;
}

.bd-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 1rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: none;
  background: var(--bd-primary);
  color: #fff;
}

.bd-btn:hover { filter: brightness(1.05); }
.bd-btn:focus-visible {
  outline: 3px solid var(--bd-primary);
  outline-offset: 2px;
}

.bd-btn--ghost {
  background: #fff;
  color: var(--bd-ink);
  border-color: var(--bd-border);
}

.bd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .bd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bd-tile {
  display: flex;
  flex-direction: column;
  background: var(--bd-surface);
  border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 1.1rem 1.15rem 1.15rem;
  min-height: 100%;
}

.bd-tile.is-open {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 2px rgba(73, 75, 214, 0.15);
}

.bd-tile__name {
  display: block;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bd-ink);
  text-align: left;
}

.bd-tile__open {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
}

.bd-tile__open:focus-visible {
  outline: 3px solid var(--bd-primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.bd-tile__summary {
  margin: 0.5rem 0 0;
  color: var(--bd-ink);
  line-height: 1.45;
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bd-tile.is-open .bd-tile__body > .bd-tile__summary {
  display: none;
}

.bd-tile__detail {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bd-border);
}

.bd-tile__detail .bd-tile__summary {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.bd-tile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.bd-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eef2ff;
  color: var(--bd-primary);
}

.bd-chip--muted {
  background: var(--bd-wash);
  color: var(--bd-muted);
}

.bd-chip--gifted { background: #ecfdf5; color: #047857; }
.bd-chip--paid { background: #eef2ff; color: var(--bd-primary); }
.bd-chip--commission { background: #ecfdf5; color: #047857; }
.bd-chip--paid_and_gifted { background: #fff7ed; color: #c2410c; }
.bd-chip--exposure { background: #f3f4f6; color: #374151; }

.bd-tile__listed {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: var(--bd-muted);
}

.bd-tile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.bd-tile__actions .bd-btn {
  font-size: 0.8125rem;
  padding: 0 0.85rem;
}

.bd-tile__contact {
  margin: 0.5rem 0 0;
  font-weight: 600;
}

.bd-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: var(--bd-surface);
  border: 1px dashed var(--bd-border);
  border-radius: var(--bd-radius);
}

.bd-empty h2 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
}

.bd-empty p {
  margin: 0;
  color: var(--bd-muted);
}

.bd-note {
  margin: 0 0 1rem;
  color: var(--bd-muted);
  font-size: 0.9375rem;
}

.bd-pro-gate {
  max-width: 28rem;
  padding: 1.5rem;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--bd-radius);
}

.bd-pro-gate a {
  color: var(--bd-primary);
  font-weight: 700;
}

/* Public invite form + brand portal shell */
.bd-submit-page {
  --bd-ink: #111827;
  --bd-muted: #6b7280;
  --bd-primary: #494bd6;
  --bd-surface: #ffffff;
  --bd-wash: #f9fafb;
  --bd-border: #e5e7eb;
  --bd-radius: 1rem;
  min-height: 100vh;
  margin: 0;
  background: #f4f6fb;
  color: #1c2430;
  font-family: "Be Vietnam Pro", Inter, system-ui, sans-serif;
  line-height: 1.5;
}

.bd-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e6e8f0;
  backdrop-filter: blur(12px);
}

.bd-site-header__inner {
  display: flex;
  align-items: center;
  max-width: 72rem;
  min-height: 4rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.bd-logo {
  color: #1c2430;
  font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.bd-logo span {
  color: #7531ff;
}

.bd-logo:focus-visible {
  outline: 3px solid #494bd6;
  outline-offset: 4px;
  border-radius: 6px;
}

.bd-submit-shell {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.75rem 1rem 4rem;
}

.bd-submit h1 {
  font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.bd-submit .bd-lead {
  margin-top: 0.85rem;
  max-width: none;
  color: #3d4756;
  font-size: 1.02rem;
  line-height: 1.6;
}

.bd-submit .bd-count-line {
  color: #2a2778;
  font-weight: 700;
}

.bd-submit .bd-invite-line {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #eef0ff;
  color: #2a2778;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

.bd-submit .bd-form {
  margin-top: 1.5rem;
  padding: 1.25rem 1.1rem 1.35rem;
  background: #fff;
  border: 1px solid #e6e8f0;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.05);
}

.bd-submit .bd-form > label,
.bd-choice legend {
  display: block;
  margin: 0 0 1.15rem;
  color: #1c2430;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.bd-choice {
  border: 0;
  margin: 0 0 1.15rem;
  padding: 0;
}

.bd-choice legend {
  margin-bottom: 0.55rem;
  padding: 0;
}

.bd-submit .bd-form input[type="text"],
.bd-submit .bd-form input[type="email"],
.bd-submit .bd-form input[type="url"],
.bd-submit .bd-form input[type="password"],
.bd-submit .bd-form textarea {
  margin-top: 0.45rem;
  border: 1px solid #d5d9e2;
  border-radius: 12px;
  background: #fff;
  color: #1c2430;
  font-family: inherit;
}

.bd-submit .bd-hint {
  margin-top: 0.4rem;
  color: #5c6778;
  font-size: 0.875rem;
  line-height: 1.45;
}

.bd-submit .bd-filter-row--stack .bd-chip-toggle {
  font-weight: 500;
  font-size: 0.95rem;
}

.bd-submit-actions {
  margin: 1.35rem 0 0;
}

.bd-submit .bd-btn {
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
}

.bd-submit .bd-preview-label {
  margin-top: 0.25rem;
  color: #5c6778;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.bd-submit-brand {
  font-weight: 700;
  color: #494bd6;
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  padding-top: 0.5rem;
}

.bd-promo-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0.25rem 0 0.75rem;
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #494bd6;
  font-size: 0.8125rem;
  font-weight: 700;
}

.bd-invite-line {
  margin: 0.35rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #eef2ff;
  color: #312e81;
  font-weight: 700;
  line-height: 1.45;
}

.bd-form .bd-filter-label {
  margin: 0.25rem 0 0.45rem;
}

.bd-form .bd-filter-row {
  margin-bottom: 1rem;
}

.bd-form .bd-filter-row label {
  position: relative;
  margin: 0;
}

.bd-filter-row--stack {
  flex-direction: column;
  align-items: stretch;
}

.bd-filter-row--stack label {
  margin: 0;
}

.bd-filter-row--stack label {
  width: 100%;
}

.bd-filter-row--stack .bd-chip-toggle {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  text-align: left;
  border-radius: 12px;
}

.bd-form input[readonly] {
  background: #f3f4f6;
}

.bd-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.bd-form input[type="text"],
.bd-form input[type="email"],
.bd-form input[type="url"],
.bd-form input[type="password"],
.bd-form input[type="date"],
.bd-form input[type="datetime-local"],
.bd-form textarea,
.bd-form select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin-top: 0.3rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
}

.bd-form textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.bd-form input:focus,
.bd-form textarea:focus,
.bd-form select:focus {
  outline: 3px solid #494bd6;
  outline-offset: 2px;
  border-color: #494bd6;
}

.bd-foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: #5c6778;
}

.bd-foot-links a {
  color: #2a2778;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.bd-foot-links a:hover,
.bd-foot-links a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.bd-foot-links__sep {
  color: #c0c6d4;
  user-select: none;
}

.bd-hint {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

.bd-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  font-weight: 600;
}

.bd-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.bd-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.bd-dead,
.bd-thanks {
  max-width: 28rem;
  margin: 3rem auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  text-align: center;
}

.bd-preview-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 1.5rem 0 0.5rem;
}

.bd-time-limited-fields[hidden] {
  display: none !important;
}

.bd-submit .bd-chip-toggle {
  border-width: 1px;
  border-color: #d5d9e2;
  font-size: 0.95rem;
  font-weight: 500;
}

.bd-submit .bd-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
}

.bd-dead h1,
.bd-thanks h1 {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.bd-dead p,
.bd-thanks p {
  margin: 0.65rem 0 0;
  color: #3d4756;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .bd-submit-shell { padding: 2.25rem 1.25rem 4.5rem; }
  .bd-submit .bd-form { padding: 1.5rem 1.5rem 1.6rem; }
}

/* Brand portal dashboard */
.bd-brand-portal .bd-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bd-brand-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.bd-brand-nav a {
  color: #2a2778;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.bd-brand-nav a:hover {
  text-decoration: underline;
}

.bd-brand-dash h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.bd-brand-section {
  margin-top: 2rem;
}

.bd-flash {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  line-height: 1.45;
}

.bd-flash--ok {
  background: #ecfdf5;
  color: #065f46;
}

.bd-empty {
  margin-top: 0.5rem;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid #e6e8f0;
  border-radius: 16px;
}

.bd-empty p {
  margin: 0;
  color: #3d4756;
  line-height: 1.5;
}

.bd-empty p + p {
  margin-top: 0.65rem;
}

.bd-listing-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bd-listing-card {
  padding: 1.15rem 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid #e6e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.bd-listing-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.bd-listing-card h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.bd-listing-card__offer {
  margin: 0.65rem 0 0;
  color: #1c2430;
  line-height: 1.5;
}

.bd-listing-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bd-btn--ghost {
  background: #fff;
  color: #2a2778;
  border: 2px solid #c7c9f0;
}

.bd-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: #f3f4f6;
  color: #374151;
}

.bd-status--live {
  background: #ecfdf5;
  color: #065f46;
}

.bd-status--waitlist {
  background: #fff7ed;
  color: #9a3412;
}

.bd-status--paused {
  background: #eef2ff;
  color: #3730a3;
}

.bd-status--removed {
  background: #fef2f2;
  color: #991b1b;
}

.bd-status--pitch-new {
  background: #fff7ed;
  color: #9a3412;
}

.bd-status--pitch-shared {
  background: #ecfdf5;
  color: #065f46;
}

.bd-status--pitch-rejected {
  background: #f3f4f6;
  color: #4b5563;
}

.bd-list-wiz .bd-promo {
  margin-bottom: 0.25rem;
}

.bd-wiz-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: #5c6778;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.bd-wiz-trust li {
  position: relative;
  padding-left: 0.95rem;
}

.bd-wiz-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #494bd6;
}

.bd-wiz-progress {
  margin: 1.35rem 0 0.35rem;
}

.bd-wiz-progress__label {
  margin: 0 0 0.45rem;
  color: #5c6778;
  font-size: 0.875rem;
  font-weight: 600;
}

.bd-wiz-progress__track {
  height: 8px;
  border-radius: 999px;
  background: #e8eaf2;
  overflow: hidden;
}

.bd-wiz-progress__bar {
  height: 100%;
  border-radius: 999px;
  background: #494bd6;
  transition: width 0.2s ease;
}

.bd-wiz-step__title {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1c2430;
}

.bd-wiz-encourage {
  margin: -0.4rem 0 1.15rem;
  color: #2a2778;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.bd-wiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.35rem 0 0;
}

.bd-wiz-actions .bd-btn {
  min-height: 48px;
}

.bd-wiz-step-error {
  margin: 1.1rem 0 0;
}

.bd-place-fields {
  margin: 0 0 1rem;
}

.bd-place-fields[hidden] {
  display: none;
}

.bd-pitch-pass {
  margin-top: 0.75rem;
}

.bd-pitch-pass .bd-form {
  max-width: 28rem;
}

.bd-listing-edit {
  margin-top: 1rem;
}

.bd-listing-edit summary {
  cursor: pointer;
  font-weight: 600;
  color: #2a2778;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.bd-listing-edit .bd-form {
  margin-top: 0.85rem;
}

.bd-review {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #f5f6ff;
  border: 1px solid #e0e3f8;
}

.bd-review__title {
  margin: 0;
  font-weight: 700;
  color: #2a2778;
}

.bd-review__issues {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: #9a3412;
  font-size: 0.92rem;
  line-height: 1.45;
}

.bd-review .bd-listing-card__actions {
  margin-top: 0.75rem;
}

.bd-listing-edit select.bd-search,
.bd-submit select.bd-search {
  width: 100%;
  min-height: 44px;
}
