/* Brand-Owner Profile — a real profile page (view-first) with editing in a
   centered, section-nav modal. Built on tokens.css + base.css + app.css;
   reuses the pf-* form controls from profile.css inside the modal. */

.bp { width: 100%; }

/* ── Public preview mode ────────────────────────────────────────────── */
.bp-prevbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; padding: 11px 16px; background: var(--bc-dark); color: var(--bc-white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.bp-prevbar__label { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; }
.bp-prevbar__label i { width: 8px; height: 8px; border-radius: 50%; background: var(--bc-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc-primary) 28%, transparent); }
.bp-prevbar__exit { border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: var(--bc-white); font: inherit; font-size: .82rem; font-weight: 700; padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: background .15s ease; }
.bp-prevbar__exit:hover { background: rgba(255, 255, 255, .22); }
/* Strip every owner/editor affordance — show what a licensee actually sees. */
.bp--preview .bp-add,
.bp--preview .bp-feature-empty,
.bp--preview .bp-lead--ph,
.bp--preview .bp-hero__actions,
.bp--preview .bp-vis,
.bp--preview .bp-map-zoom { display: none; }
/* The display map stays interactive: clicking a country explores it below. */

/* ── Hero / masthead — card with a cover band (ready for an upload) ──── */
.bp-hero { background: var(--surface); border: 1px solid var(--bc-light-gray); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
/* Cover: brand gradient by default; an uploaded header image drops in as a
   background-image (set inline from profile.cover_url) and covers it. */
.bp-cover { height: 124px; background: var(--brand, var(--bc-dark)); }
.bp-hero__bar { display: flex; align-items: flex-end; gap: 20px; padding: 0 28px 22px; margin-top: -38px; }
.bp-logo { flex: none; width: 86px; height: 86px; border-radius: 20px; display: grid; place-items: center; font-size: 1.95rem; font-weight: 700; letter-spacing: .03em; color: var(--bc-white); border: 4px solid var(--surface); box-shadow: var(--shadow-card); overflow: hidden; text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  background: var(--brand, var(--bc-dark)); }
.bp-logo img { width: 100%; height: 100%; object-fit: cover; }
.bp-id { flex: 1; min-width: 0; padding-bottom: 3px; }
.bp-name { font-size: clamp(1.6rem, 2.8vw, 2.15rem); font-weight: 700; color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -.02em; }
.bp-name.is-ph { color: var(--bc-light-gray); }
.bp-tag { color: var(--bc-text); font-size: .98rem; line-height: 1.45; margin-top: 6px; max-width: 56ch; }
.bp-tag.is-ph { color: var(--bc-gray); }
.bp-meta { color: var(--bc-gray); font-size: .84rem; margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; }
.bp-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.bp-hero__actions { flex: none; align-self: flex-end; padding-bottom: 3px; display: flex; gap: 8px; }

/* About — full-width standfirst, divided from the masthead by a hairline */
.bp-lead { display: block; margin: 0; padding: 20px 28px 24px; border-top: 1px solid var(--bc-light-gray); color: var(--bc-text); font-size: 1.05rem; line-height: 1.65; white-space: pre-wrap; }
.bp-lead--ph { text-align: left; background: none; font-family: inherit; color: var(--bc-gray); cursor: pointer; border: none; border-top: 1px solid var(--bc-light-gray); }
.bp-lead--ph:hover { color: var(--bc-primary); }

/* visibility — editorial status dot + label (no pill) */
.bp-vis { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; }
.bp-vis i { width: 8px; height: 8px; border-radius: 50%; }
.bp-vis--live { color: var(--success); }
.bp-vis--live i { background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent); }
.bp-vis--hidden { color: var(--bc-gray); }
.bp-vis--hidden i { background: var(--bc-gray); }


.bp-prose { color: var(--bc-text); font-size: .9rem; line-height: 1.6; white-space: pre-wrap; max-width: 64ch; }

/* empty prompt inside a section — clean square add button */
.bp-add { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--bc-light-gray); background: var(--surface); color: var(--brand-ic, var(--bc-primary)); border-radius: var(--radius-sm); padding: 0; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.bp-add:hover { background: color-mix(in srgb, var(--brand-ic, var(--bc-primary)) 10%, transparent); border-color: var(--brand-ic, var(--bc-primary)); color: var(--brand-ic, var(--bc-primary)); box-shadow: 0 3px 10px color-mix(in srgb, var(--brand-ic, var(--bc-primary)) 16%, transparent); }
.bp-add svg { width: 22px; height: 22px; }

.bp-chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* ── Chips — axis-coded "tags" (on-brand, not generic status pills) ──── */
.ch { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 700; line-height: 1.5; border: 1px solid transparent; white-space: nowrap; }
.ch::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; }
.ch--cat { background: var(--bc-primary-light); color: color-mix(in srgb, var(--bc-primary) 82%, #000); border-color: color-mix(in srgb, var(--bc-primary) 24%, transparent); }
.ch--cat::before { background: var(--bc-primary); }
.ch--terr { background: color-mix(in srgb, var(--bc-dark) 8%, var(--surface)); color: var(--ink); border-color: color-mix(in srgb, var(--bc-dark) 20%, transparent); }
.ch--terr::before { background: var(--bc-dark); }
.ch--chan { background: var(--surface); color: var(--bc-text); border-color: var(--bc-light-gray); }
.ch--chan::before { background: var(--bc-gray); }

/* ── Footprints (display) ───────────────────────────────────────────── */
.bp-fp-sub { color: var(--bc-gray); font-size: .82rem; line-height: 1.5; margin-bottom: 14px; }
.bp-fp-list { display: flex; flex-direction: column; gap: 12px; }
.bp-fp { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; padding: 15px 16px 15px 17px; border: 1px solid var(--bc-light-gray); border-left: 3px solid var(--bc-primary); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--surface); transition: border-color .15s ease; }
.bp-fp:hover { border-color: var(--bc-gray); }
/* Looking-for vs covered — mirrors the map keys (orange = want, dark = have). */
.bp-fp--have { border-left-color: var(--ink); }
.bp-fp__status { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-right: 2px; }
.bp-fp__status i { width: 8px; height: 8px; border-radius: 2px; }
.bp-fp__status--want { color: var(--bc-primary); }
.bp-fp__status--want i { background: var(--bc-primary); }
.bp-fp__status--have { color: var(--ink); }
.bp-fp__status--have i { background: var(--bc-dark); }
.bp-fp__grp { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-fp__sep { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bc-light); color: var(--bc-gray); font-size: 12px; font-weight: 700; }
.bp-fp__any { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 7px; font-size: 12px; font-weight: 700; background: transparent; border: 1px dashed var(--bc-light-gray); color: var(--bc-gray); }

/* ── Footprint builder ─────────────────────────────────────── */
.fpb { display: flex; flex-direction: column; gap: 12px; }
.fpb-add { align-self: flex-start; }
.fp { border: 1px solid var(--bc-light-gray); border-radius: var(--radius-md); background: var(--surface); padding: 12px; }
.fp__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.fp__n { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bc-gray); }
.fp__del { border: none; background: none; color: var(--bc-gray); font-size: 18px; line-height: 1; cursor: pointer; width: 28px; height: 28px; border-radius: var(--radius-sm); }
.fp__del:hover { background: var(--danger-bg); color: var(--danger); }
.fp__axis + .fp__axis { margin-top: 9px; }
.fp__axis > label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bc-gray); margin-bottom: 5px; }
.fp__opt { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--bc-gray); font-size: .82em; }
.fp__note { width: 100%; box-sizing: border-box; }
.fp__list { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bc-light); cursor: pointer; }
.fp__list input { margin-top: 1px; flex: none; width: 16px; height: 16px; accent-color: var(--bc-primary); cursor: pointer; }
.fp__list-txt { font-size: .84rem; font-weight: 700; color: var(--ink); display: flex; flex-direction: column; gap: 1px; }
/* Read-view "Listed" indicator on a footprint that's public in the marketplace */
.bp-fp__listed { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 5px; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bc-primary); }
.bp-fp__listed::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bc-primary); }

/* ── Property / IP showcase (the profile centerpiece) ───────────────── */
.bp-feature { margin-top: 0; }
/* Gallery wall: a roster grid where the featured piece leads at 2x2 and the rest
   fill in (dense flow backfills the gap beside the lead). Flat media tiles — no
   border+shadow, no hover scale/lift; separation is the gap. */
.bp-wall-wrap { container-type: inline-size; }
.bp-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); grid-auto-rows: clamp(154px, 15vw, 196px); grid-auto-flow: dense; gap: 12px; }
.bp-wall--single { display: block; }

.bp-wall__item { position: relative; display: block; width: 100%; height: 100%; padding: 0; text-align: left; font: inherit; cursor: pointer; border: none; border-radius: 12px; overflow: hidden; background: #0d1218; isolation: isolate; }
.bp-wall__item--feature { grid-column: span 2; grid-row: span 2; }
.bp-wall--single .bp-wall__item { aspect-ratio: 21 / 9; height: auto; }
.bp-wall__item:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bc-primary); }

.bp-wall__media { position: absolute; inset: 0; z-index: 0; }
.bp-wall__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-wall__img--ph { display: grid; place-items: center; color: rgba(255,255,255,.92); font-weight: 700; font-size: 1.7rem; background: var(--brand, #415364); }
.bp-wall__item--feature .bp-wall__img--ph { font-size: 3rem; }

/* No permanent scrim — the caption fades in on hover/focus and rides on its own
   text-shadow, so the artwork stays crisp and un-fogged at rest. */
.bp-wall__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 13px 14px; color: #fff; opacity: 0; transition: opacity .2s cubic-bezier(.4,0,.2,1); }
.bp-wall__item:hover .bp-wall__cap, .bp-wall__item:focus-visible .bp-wall__cap { opacity: 1; }
.bp-wall__item--feature .bp-wall__cap { gap: 7px; padding: 22px 24px 20px; }
.bp-wall__type { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 1px 12px rgba(0,0,0,.5); }
.bp-wall__name { position: relative; font-size: 1rem; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 2px 16px rgba(0,0,0,.55); }
.bp-wall__item--feature .bp-wall__name { font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -.015em; }
.bp-wall__name::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 26px; height: 2px; border-radius: 2px; background: var(--brand, #FF6600); transform: scaleX(0); transform-origin: left; transition: transform .2s cubic-bezier(.4,0,.2,1); }
.bp-wall__item:hover .bp-wall__name::after, .bp-wall__item:focus-visible .bp-wall__name::after { transform: scaleX(1); }
.bp-wall__desc { margin: 2px 0 0; max-width: 42rem; font-size: .92rem; font-weight: 400; line-height: 1.5; color: rgba(255,255,255,.88); text-shadow: 0 1px 10px rgba(0,0,0,.4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-wall__cue { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: .82rem; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s cubic-bezier(.4,0,.2,1); }
.bp-wall__item--feature .bp-wall__cue { opacity: .9; }
.bp-wall__item:hover .bp-wall__cue, .bp-wall__item:focus-visible .bp-wall__cue { opacity: .9; }
.bp-wall__cue svg { width: 15px; height: 15px; }
.bp-wall__count { position: absolute; top: 11px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: .74rem; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.bp-wall__count svg { width: 14px; height: 14px; opacity: .95; }

/* Narrow container (e.g. dragged into a side column, or phone): 2-up grid and the
   lead becomes a full-width banner rather than a 2x2 that would overflow. */
@container (max-width: 440px) {
  .bp-wall { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(128px, 40cqw, 156px); }
  .bp-wall__item--feature { grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-wall__cue, .bp-wall__name::after { transition: none; }
}

/* ── Card marquee: a continuous horizontal drift through the pieces. The track
   holds two identical copies; translateX(-50%) loops seamlessly. Full-bleed with
   a mask fade at both edges; pauses on hover/focus; frozen (and scrollable)
   under reduced-motion. ─────────────────────────────────────────────── */
.bp-marq { margin: 0 -18px; overflow: hidden; }
/* JS-driven (see wireMarquee): the loop eases the speed down on hover instead of
   hard-stopping. Track holds two copies; JS wraps at one-copy width. */
.bp-marq__track { display: flex; width: max-content; padding: 4px 0; will-change: transform; }
.bp-marq__clone { display: contents; }
.bp-marq .bp-wall__item { flex: none; width: clamp(220px, 26vw, 300px); height: auto; aspect-ratio: 16 / 10; margin-right: 12px; }
@media (prefers-reduced-motion: reduce) {
  .bp-marq { overflow-x: auto; scrollbar-width: none; }
  .bp-marq::-webkit-scrollbar { display: none; }
  .bp-marq__clone { display: none; }
}

/* ── "View all" header action + the roster modal it opens ────────────── */
.bp-viewall { flex: none; display: inline-flex; align-items: center; gap: 5px; margin-right: 2px; padding: 4px 9px; border: none; border-radius: 6px; background: none; font: inherit; font-size: .78rem; font-weight: 600; color: var(--bc-gray); cursor: pointer; transition: color .15s ease, background .15s ease; }
.bp-viewall:hover { color: var(--ink); background: var(--bc-light); }
.bp-viewall svg { width: 13px; height: 13px; }

.bp-pm-ov { position: fixed; inset: 0; z-index: 66; display: grid; place-items: center; padding: 24px; background: rgba(11, 15, 20, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background .2s ease, backdrop-filter .2s ease; }
.bp-pm-ov.is-open { background: rgba(11, 15, 20, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bp-pm { width: min(920px, 100%); max-height: min(84vh, 760px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .5); overflow: hidden; opacity: 0; transform: translateY(10px) scale(.99); transition: opacity .2s ease, transform .2s cubic-bezier(.2, .7, .2, 1); }
.bp-pm-ov.is-open .bp-pm { opacity: 1; transform: none; }
.bp-pm__head { flex: none; display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--bc-light-gray); }
.bp-pm__title { flex: 1; min-width: 0; display: inline-flex; align-items: baseline; gap: 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.bp-pm__count { font-size: .8rem; font-weight: 600; color: var(--bc-gray); font-variant-numeric: tabular-nums; }
.bp-pm__close { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: none; border-radius: 8px; background: none; color: var(--bc-gray); cursor: pointer; transition: background .15s ease, color .15s ease; }
.bp-pm__close:hover { background: var(--bc-light); color: var(--ink); }
.bp-pm__close svg { width: 18px; height: 18px; }
.bp-pm__tools { flex: none; padding: 14px 20px; border-bottom: 1px solid var(--bc-light); }
.bp-pm__search { width: 100%; }
.bp-pm__body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 22px; }
.bp-pm__empty { color: var(--bc-gray); font-size: .95rem; padding: 22px 2px; }
@media (prefers-reduced-motion: reduce) { .bp-pm-ov, .bp-pm { transition: none; } }

/* Roster list: image left, info right, rows stacked and hairline-divided. Built
   for reading — room for the description now and per-IP context (footprints) next. */
.bp-plist { display: flex; flex-direction: column; }
.bp-prow { display: flex; gap: 16px; width: 100%; text-align: left; align-items: flex-start; padding: 15px 8px; border: none; border-bottom: 1px solid var(--bc-light); border-radius: 8px; background: none; font: inherit; cursor: pointer; transition: background .15s ease; }
.bp-prow:last-child { border-bottom: none; }
.bp-prow:hover, .bp-prow:focus-visible { outline: none; background: var(--bc-light); }
.bp-prow__media { position: relative; flex: none; width: 132px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #0d1218; }
.bp-prow__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-prow__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.92); font-weight: 700; font-size: 1.3rem; background: var(--brand, #415364); }
.bp-prow__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.bp-prow__type { font-size: .74rem; font-weight: 600; color: var(--bc-gray); }
.bp-prow__name { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.25; }
.bp-prow__desc { margin-top: 3px; font-size: .9rem; line-height: 1.55; color: var(--bc-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-prow__meta { display: inline-flex; align-items: center; gap: 14px; margin-top: 7px; font-size: .78rem; font-weight: 600; color: var(--bc-gray); }
.bp-prow__meta span { display: inline-flex; align-items: center; gap: 5px; }
.bp-prow__meta svg { width: 14px; height: 14px; }
.bp-prow:hover .bp-prow__view, .bp-prow:focus-visible .bp-prow__view { color: var(--ink); }
@media (max-width: 520px) { .bp-prow__media { width: 100px; } }

.bp-feature-empty { text-align: center; padding: 14px 10px 6px; }
.bp-feature-empty__title { font-weight: 700; color: var(--ink); font-size: 1rem; }
.bp-feature-empty__sub { color: var(--bc-gray); font-size: .85rem; line-height: 1.5; max-width: 34rem; margin: 5px auto 14px; }

/* ── Property editor ──────────────────────────────── */
.pe { display: flex; flex-direction: column; gap: 12px; }
.pe-prop { border: 1px solid var(--bc-light-gray); border-radius: var(--radius-md); padding: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 9px; }
.pe-prop__top { display: flex; gap: 8px; align-items: center; }
.pe-prop__top .input { flex: 1; min-width: 0; }
.pe-prop__del { flex: none; border: none; background: none; color: var(--bc-gray); font-size: 20px; line-height: 1; cursor: pointer; width: 30px; height: 30px; border-radius: var(--radius-sm); }
.pe-prop__del:hover { background: var(--danger-bg); color: var(--danger); }
.pe-prop__feat { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--bc-light-gray); background: var(--surface); font: inherit; font-size: .72rem; font-weight: 700; color: var(--bc-gray); cursor: pointer; white-space: nowrap; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.pe-prop__feat svg { width: 13px; height: 13px; fill: none; }
.pe-prop__feat:hover { border-color: var(--bc-primary); color: var(--bc-primary); }
.pe-prop__feat.is-on { border-color: transparent; background: var(--bc-primary-light); color: color-mix(in srgb, var(--bc-primary) 85%, #000); }
.pe-prop__feat.is-on svg { fill: currentColor; }
.pe-prop textarea.input { min-height: 52px; resize: vertical; }
.pe-cover { display: flex; flex-direction: column; gap: 8px; }
.pe-cover__frame { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--bc-light-gray); background: var(--bc-light); user-select: none; cursor: grab; touch-action: none; }
.pe-cover__frame.is-grabbing { cursor: grabbing; }
.pe-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-cover__hint { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 5px 8px; font-size: .68rem; font-weight: 700; letter-spacing: .02em; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.pe-cover__frame:hover .pe-cover__hint { opacity: 1; }
.pe-cover__zoom { display: flex; align-items: center; gap: 10px; }
.pe-cover__zoom > span { flex: none; width: 42px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bc-gray); }
.pe-cover__zoom input[type="range"] { flex: 1; min-width: 0; accent-color: var(--bc-primary); }
.pe-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-thumb { position: relative; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--bc-light-gray); }
.pe-thumb.is-cover { border-color: var(--bc-primary); box-shadow: 0 0 0 2px var(--bc-primary-light); }
.pe-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-thumb__cover { position: absolute; bottom: 0; left: 0; right: 0; background: var(--bc-primary); color: #fff; font-size: .58rem; font-weight: 700; text-align: center; padding: 1px 0; }
.pe-thumb__rm, .pe-thumb__set { position: absolute; top: 3px; width: 18px; height: 18px; border: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 11px; line-height: 1; padding: 0; }
.pe-thumb__rm { right: 3px; background: rgba(0,0,0,.6); color: #fff; }
.pe-thumb__set { left: 3px; background: rgba(255,255,255,.88); color: var(--ink); }
.pe-upload { width: 64px; height: 64px; border: 1px dashed var(--bc-light-gray); border-radius: var(--radius-sm); display: grid; place-content: center; justify-items: center; gap: 2px; color: var(--bc-gray); cursor: pointer; font-size: .64rem; font-weight: 700; }
.pe-upload:hover { border-color: var(--bc-primary); color: var(--bc-primary); }
.pe-upload svg { width: 16px; height: 16px; }
.pe-add { align-self: flex-start; }

/* ── Territory coverage map (interactive: click a country) ──────────── */
/* Coverage map sits inside the Footprints section, under a hairline sub-head. */
.bp-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 14px; padding-top: 20px; border-top: 1px solid var(--bc-light); }
.bp-subhead--flush { margin-top: 0; padding-top: 0; border-top: none; }
.bp-subhead__title { font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.bp-map-keys { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; font-size: 12.5px; color: var(--bc-gray); }
.bp-map-key { display: inline-flex; align-items: center; gap: 7px; }
.bp-map-key b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.bp-map-key__dot { width: 11px; height: 11px; border-radius: 3px; }
.bp-map-key__dot--have { background: var(--bc-dark); }
.bp-map-key__dot--want { background: var(--bc-primary); }
.bp-map-key__dot--both { background: repeating-linear-gradient(45deg, var(--bc-dark) 0 3px, var(--bc-primary) 3px 6px); }
.bp-map-hint { font-size: 11.5px; font-weight: 600; color: var(--bc-gray); }
.bp-region-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.bp-region-add__lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--bc-gray); }
/* Super minimal — no box, just text with a small state dot. Hovering a region
   previews it on the map (see .region-hi). Added = brand text + check. */
/* Region quick-set: plain names split by small dot dividers. Configured regions
   color by intent — slate for have/operate, orange for need/open. No checks. */
.bp-region-btn { border: none; background: none; color: var(--bc-gray); font: inherit; font-size: .82rem; font-weight: 600; padding: 4px 2px; cursor: pointer; transition: color .12s ease; }
.bp-region-btn:hover { color: var(--bc-primary); }
.bp-region-btn--have { color: var(--ink); }
.bp-region-btn--need { color: var(--bc-primary); }
.bp-region-sep { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--bc-light-gray); }

/* ── Footprint list (dashboard config surface) ─────────────────────────
   Territory-led rows: intent · place · products/channels · listed. Click to edit. */
.fp-list-head { display: flex; align-items: center; gap: 9px; margin: 24px 0 2px; font-weight: 700; color: var(--ink); font-size: 1rem; letter-spacing: -.01em; }
/* Footprints motif to the left of the "Your footprints" heading — solid, same slate as the text. */
.fp-list-head::before { content: ""; flex: none; width: 22px; height: 23px; background: var(--ink); transform: rotate(-8deg);
  -webkit-mask: url("../img/footprints-mark.ab47ef247f2f.png") center / contain no-repeat;
  mask: url("../img/footprints-mark.ab47ef247f2f.png") center / contain no-repeat; }
.fp-list-head__n { font-size: .8rem; font-weight: 700; color: var(--bc-gray); font-variant-numeric: tabular-nums; }

/* Filter row: intent as underline tabs (only when have + need coexist) + a
   hairline search. Same editorial language as the footprint explorer. */
.fp-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 13px 0 8px; }
.fp-filter__tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--bc-light); border-radius: var(--radius-md); }
.fp-filter__tab { border: none; background: none; font: inherit; font-size: .8rem; font-weight: 600; color: var(--bc-gray); padding: 5px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: color .12s ease, background .12s ease, box-shadow .12s ease; }
.fp-filter__tab:hover { color: var(--ink); }
.fp-filter__tab.is-active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-card); }
.fp-filter__search { position: relative; flex: 1 1 160px; max-width: 240px; display: flex; align-items: center; }
.fp-filter__search svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--bc-gray); pointer-events: none; }
.fp-filter__search input { width: 100%; font: inherit; font-size: .84rem; color: var(--ink); background: var(--surface); border: 1px solid var(--bc-light-gray); border-radius: var(--radius-sm); padding: 7px 11px 7px 32px; transition: border-color .12s ease, box-shadow .12s ease; }
.fp-filter__search input::placeholder { color: var(--bc-gray); }
.fp-filter__search input:focus { outline: none; border-color: var(--bc-primary); box-shadow: 0 0 0 3px var(--bc-primary-light); }
.fp-list-none { color: var(--bc-gray); font-size: .85rem; padding: 16px 4px; }

/* Cap the list at ~5 footprints, then scroll (thin, quiet). */
.fp-list { display: flex; flex-direction: column; max-height: 380px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--bc-light-gray) transparent; }
.fp-list::-webkit-scrollbar { width: 9px; }
.fp-list::-webkit-scrollbar-thumb { background: var(--bc-light-gray); border-radius: 999px; border: 3px solid var(--surface); }
.fp-list::-webkit-scrollbar-track { background: transparent; }
/* Two-tier row: territory headline on top; products & channels below as aligned
   labeled groups with bold values and dot separators. No chips, no ellipsis. */
.fp-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 10px; border: none; border-top: 1px solid var(--bc-light-gray); background: none; font: inherit; text-align: left; cursor: pointer; border-radius: 10px; transition: background .12s ease; }
.fp-item:first-child { border-top: none; }
.fp-item:hover { background: color-mix(in srgb, var(--bc-primary) 6%, transparent); }
.fp-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.fp-item__top { display: flex; align-items: baseline; gap: 11px; }
.fp-item__intent { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bc-gray); }
.fp-item__intent i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.fp-item--have .fp-item__intent i { background: var(--bc-dark); }
.fp-item--need .fp-item__intent i { background: var(--bc-primary); }
.fp-item__place { font-weight: 700; color: var(--ink); font-size: .98rem; letter-spacing: -.01em; }
.fp-item__listed { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bc-primary); }
.fp-item__listed::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--bc-primary); }
.fp-item__facets { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; }
.fp-item__flabel { font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bc-gray); }
.fp-item__fvals { font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.fp-item__any { font-weight: 600; color: var(--bc-gray); }
.fp-item__sep { margin: 0 8px; color: var(--bc-gray); opacity: .4; }
.fp-item__chev { flex: none; align-self: center; width: 17px; height: 17px; color: var(--bc-light-gray); transition: color .12s ease, transform .12s ease; }
.fp-item:hover .fp-item__chev { color: var(--bc-primary); transform: translateX(2px); }
.fp-list-empty { color: var(--bc-gray); font-size: .88rem; line-height: 1.55; padding: 16px 0 4px; }
@media (max-width: 560px) {
  .fp-item { flex-wrap: wrap; gap: 6px 10px; }
  .fp-item__place { min-width: 0; }
  .fp-item__meta { flex-basis: 100%; white-space: normal; }
}

/* ── Footprint explorer (public / display view) ───────────────────────────
   Search across every axis, or pivot by one. Values are quiet cross-links —
   click any to re-pivot. No pills; editorial inline text. */
.fpx { margin-top: 2px; }
.fpx__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 8px; }
.fpx__search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.fpx__search-ic { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--bc-gray); pointer-events: none; }
.fpx__search-in { width: 100%; font: inherit; font-size: .9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--bc-light-gray); border-radius: var(--radius-sm); padding: 9px 12px 9px 36px; transition: border-color .12s ease, box-shadow .12s ease; }
.fpx__search-in::placeholder { color: var(--bc-gray); }
.fpx__search-in:focus { outline: none; border-color: var(--bc-primary); box-shadow: 0 0 0 3px var(--bc-primary-light); }
.fpx__tabs { display: inline-flex; align-items: baseline; gap: 6px; }
.fpx__tabs-lbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bc-gray); margin-right: 4px; }
.fpx__tab { border: none; background: none; font: inherit; font-size: .85rem; font-weight: 600; color: var(--bc-gray); padding: 4px 2px; cursor: pointer; position: relative; transition: color .12s ease; }
.fpx__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--bc-dark); border-radius: 2px; transform: scaleX(0); transition: transform .14s ease; }
.fpx__tab:hover { color: var(--ink); }
.fpx__tab.is-active { color: var(--bc-dark); }
.fpx__tab.is-active::after { transform: scaleX(1); }
/* Operating / Seeking intent filter — a small segmented control (shown when mixed) */
.fpx__intent { display: inline-flex; gap: 2px; margin: 0 0 12px; padding: 3px; background: var(--bc-light); border-radius: var(--radius-md); }
.fpx__itab { border: none; background: none; font: inherit; font-size: .8rem; font-weight: 600; color: var(--bc-gray); padding: 5px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: color .12s ease, background .12s ease, box-shadow .12s ease; }
.fpx__itab:hover { color: var(--ink); }
.fpx__itab.is-active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-card); }

/* Cap the explorer at ~4 rows, then scroll (thin, quiet). */
.fpx__rows { display: flex; flex-direction: column; max-height: 340px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--bc-light-gray) transparent; }
.fpx__rows::-webkit-scrollbar { width: 9px; }
.fpx__rows::-webkit-scrollbar-thumb { background: var(--bc-light-gray); border-radius: 999px; border: 3px solid var(--surface); }
.fpx__rows::-webkit-scrollbar-track { background: transparent; }
/* Dashboard: the footprint card holds ONE size. Adding/removing footprints fills
   (and scrolls) a fixed frame instead of growing the card; empty reserves it too. */
/* One fixed-height panel: heading + filter bar + rows flex to fill it, so empty
   and filled match exactly (no growth on the first footprint). Content fades in. */
.dash-fpmap .fp-panel { display: flex; flex-direction: column; height: 460px; animation: fp-fade .2s ease both; }
/* Circular footprint button (bottom-left of the map) — opens the focused configurator. */
.bp-cfg-btn { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--bc-light-gray); background: var(--surface); box-shadow: var(--shadow-card); cursor: pointer; transition: border-color .12s ease, transform .12s ease; }
.bp-cfg-btn:hover { border-color: var(--bc-primary); transform: translateY(-1px); }
.bp-cfg-btn__mark { width: 24px; height: 25px; background: var(--bc-dark); transform: rotate(-8deg); transition: background .12s ease;
  -webkit-mask: url("../img/footprints-mark.ab47ef247f2f.png") center / contain no-repeat;
  mask: url("../img/footprints-mark.ab47ef247f2f.png") center / contain no-repeat; }
.bp-cfg-btn:hover .bp-cfg-btn__mark { background: var(--bc-primary); }

/* Focused configurator: the embed moved into the expand modal — a wide dialog with
   the map + footprints side by side, lifting in off the page. The map keeps its own
   aspect-ratio (no forced fill), so there's no vertical slack. */
.modal__dialog:has(.bp-embed--max) { max-width: none; width: min(1280px, 95vw); }
.bp-embed--max { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 32%, 440px); gap: 30px; align-items: start;
  animation: fp-lift .42s cubic-bezier(.2, .8, .2, 1) both; }
.bp-embed--max .bp-embed__map { min-width: 0; }
.bp-embed--max .fp-panel { height: min(560px, calc(100vh - 200px)); }
.bp-embed--max [data-map-max] { display: none; }   /* already maximized */
/* Search sits inline with the "Coverage map" heading instead of taking its own
   full-width row above the map, so the keys + map move up (mirrors the dashboard
   card). Grid keeps it in flow — no absolute overlap. */
.bp-embed--max .bp-embed__map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 34%, 320px);
  grid-template-areas: "title search" "keys keys" "map map" "region region";
  align-items: center; column-gap: 16px; row-gap: 10px;
}
.bp-embed--max .bp-embed__map > .bp-subhead--flush { grid-area: title; margin: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
.bp-embed--max .bp-embed__map > .bp-map-search { grid-area: search; margin: 0; width: 100%; }
.bp-embed--max .bp-embed__map > .bp-map-keys { grid-area: keys; }
.bp-embed--max .bp-embed__map > [data-map-mount] { grid-area: map; }
.bp-embed--max .bp-embed__map > .bp-region-add { grid-area: region; }
@keyframes fp-lift {
  from { opacity: 0; transform: perspective(1400px) translateY(34px) rotateX(7deg) scale(.965); }
  to { opacity: 1; transform: perspective(1400px) translateY(0) rotateX(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .bp-embed--max { animation: none; } }
.dash-fpmap .fpx { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* Profile footprints, expanded into the modal for any POV (read-only): the map on
   the left, the footprint explorer on the right — like the dashboard configurator. */
.modal__dialog:has(.bp-fp-block--max) { max-width: none; width: min(1280px, 95vw); }
.bp-fp-block--max { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 34%, 440px); gap: 30px; align-items: start; animation: fp-lift .42s cubic-bezier(.2, .8, .2, 1) both; }
.bp-fp-block--max .bp-fp-block__map { min-width: 0; }
.bp-fp-block--max .bp-map { max-height: 74vh; }
.bp-fp-block--max .bp-fp-block__side { height: min(74vh, calc(100vh - 150px)); overflow-y: auto; }
.bp-fp-block--max .bp-fp-block__side .bp-subhead:first-child { margin-top: 0; }
.bp-fp-block--max [data-map-max] { display: none; }   /* already maximized */
@media (max-width: 720px) { .bp-fp-block--max { grid-template-columns: 1fr; } .bp-fp-block--max .bp-fp-block__side { height: auto; } }
@media (prefers-reduced-motion: reduce) { .bp-fp-block--max { animation: none; } }
.dash-fpmap .fpx__rows { flex: 1; height: auto; max-height: none; min-height: 0; }
.dash-fpmap .fp-list-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; padding: 28px 20px; }
.fp-list-empty__mark { width: 58px; height: 60px; margin-bottom: 12px; background: var(--bc-gray); opacity: .3; transform: rotate(-8deg);
  -webkit-mask: url("../img/footprints-mark.ab47ef247f2f.png") center / contain no-repeat;
  mask: url("../img/footprints-mark.ab47ef247f2f.png") center / contain no-repeat; }
.fp-list-empty__title { font-weight: 700; color: var(--ink); font-size: 1.1rem; letter-spacing: -.015em; }
.fp-list-empty__text { color: var(--bc-gray); font-size: .9rem; line-height: 1.55; max-width: 36ch; }
@keyframes fp-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dash-fpmap .fp-panel { animation: none; } }
/* Fade the pivot rows in when switching Explore-by / intent tabs (or searching). */
.fpx__rows .fpx-row, .fpx__rows .fpx-none { animation: fp-fade .18s ease both; }
@media (prefers-reduced-motion: reduce) { .fpx__rows .fpx-row, .fpx__rows .fpx-none { animation: none; } }
.fpx-row { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 15px 36px 15px 12px; border-top: 1px solid var(--bc-light-gray); border-radius: 8px; cursor: pointer; transition: background .12s ease, box-shadow .12s ease; }
.fpx-row:first-child { border-top: none; }
.fpx-row:hover { background: color-mix(in srgb, var(--bc-dark) 9%, transparent); }
.fpx-row:focus-visible { outline: none; background: color-mix(in srgb, var(--bc-dark) 9%, transparent); box-shadow: inset 3px 0 0 var(--bc-dark); }
.fpx-row.is-focus { background: color-mix(in srgb, var(--bc-primary) 8%, transparent); box-shadow: inset 3px 0 0 var(--bc-primary); }
.fpx-row__go { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; color: var(--bc-light-gray); }
.fpx-row:hover .fpx-row__go { color: var(--bc-gray); }
.fpx-row__go svg { width: 18px; height: 18px; }
.fpx-row__key { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fpx-row__val { font-weight: 700; color: var(--ink); font-size: 1rem; letter-spacing: -.01em; }
.fpx-row__intent { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bc-gray); }
.fpx-row__intent i { width: 8px; height: 8px; border-radius: 50%; }
.fpx-row__intent--have i { background: var(--bc-dark); }
.fpx-row__intent--need i { background: var(--bc-primary); }
.fpx-row__intent--mixed i { background: linear-gradient(90deg, var(--bc-dark) 0 50%, var(--bc-primary) 50% 100%); }

.fpx-row__facets { display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; margin: 0; }
.fpx-row__facets dt { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bc-gray); padding-top: 3px; }
.fpx-row__facets dd { margin: 0; color: var(--bc-text); font-size: .9rem; line-height: 1.6; }
.fpx-val--any { color: var(--bc-gray); font-style: italic; font-size: .9rem; }
.fpx-none, .fpx-empty { color: var(--bc-gray); font-size: .9rem; line-height: 1.55; padding: 18px 4px; }

/* Footprint detail modal — opened by clicking a row (reuses the .bp-pm modal shell). */
.bp-pm.fpx-det { width: min(520px, 100%); }
.fpx-det .bp-pm__title { display: inline-flex; align-items: center; gap: 8px; }
.fpx-det .bp-pm__title .cov-pop__dot { width: 11px; height: 11px; flex: none; }
.fpd { border: 1px solid var(--bc-light-gray); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.fpd:last-child { margin-bottom: 0; }
.fpd__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.fpd__intent { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: var(--ink); }
.fpd__terr { font-size: .84rem; font-weight: 600; color: var(--bc-gray); }
.fpd__row { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--bc-light); }
.fpd__k { flex: none; width: 78px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--bc-gray); padding-top: 3px; }
.fpd__v { color: var(--ink); font-size: .9rem; font-weight: 600; }
.fpd__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fpd__chip { font-size: .8rem; font-weight: 600; color: var(--bc-text); background: var(--bc-light); border-radius: 6px; padding: 3px 9px; }
.fpd__any { color: var(--bc-gray); font-style: italic; font-size: .86rem; }
.fpd__note { margin-top: 10px; font-size: .88rem; line-height: 1.5; color: var(--bc-text); }
.fpd__listed { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--bc-primary); }
@media (max-width: 560px) {
  .fpx__bar { flex-direction: column; align-items: stretch; }
  .fpx__tabs { justify-content: flex-start; }
}

/* Glassy country search — a pressed "indent in the glass" at the top of the
   coverage card; the dropdown floats below it over the map. */
.bp-map-search { position: relative; z-index: 6; width: min(340px, 72%); margin: 0 auto 14px; }
.bp-map-search__field {
  display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 13px; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 52%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--bc-light-gray) 65%, transparent);
  box-shadow: inset 0 2px 4px rgba(15, 22, 31, .16), inset 0 -1px 0 rgba(255, 255, 255, .5), 0 6px 18px -8px rgba(20, 30, 40, .32);
}
.bp-map-search__field svg { width: 16px; height: 16px; flex: none; color: var(--bc-gray); }
.bp-map-search__input { flex: 1; min-width: 0; border: none; background: none; font: inherit; font-size: .9rem; color: var(--ink); outline: none; }
.bp-map-search__input::placeholder { color: var(--bc-gray); }
.bp-map-search__results {
  position: absolute; top: calc(100% + 7px); left: 0; right: 0;
  border-radius: 13px; overflow: hidden; max-height: 264px; overflow-y: auto;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--bc-light-gray) 65%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 32px -10px rgba(20, 30, 40, .42);
}
.bp-map-search__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 9px 13px; border: none; background: none; font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--ink); cursor: pointer; text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--bc-light-gray) 40%, transparent);
}
.bp-map-search__opt:last-child { border-bottom: none; }
.bp-map-search__opt:hover { background: color-mix(in srgb, var(--bc-primary) 13%, transparent); }
.bp-map-search__add { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--bc-primary) 16%, transparent); color: var(--bc-primary); }
.bp-map-search__add svg { width: 13px; height: 13px; }
.bp-map-search__empty { padding: 13px; text-align: center; color: var(--bc-gray); font-size: .85rem; }

.bp-map { position: relative; margin-top: 2px; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 950 / 620; background: var(--bc-light); cursor: grab; touch-action: none; }
.bp-map.is-panning { cursor: grabbing; }
.bp-map .worldmap { width: 100%; height: 100%; display: block; will-change: transform; }
.bp-map.is-panning .worldmap path { cursor: grabbing; }
.bp-map .worldmap path { cursor: pointer; transition: fill .12s ease; }

/* zoom controls */
.bp-map-zoom { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; flex-direction: column; gap: 5px; }
.bp-zoom-btn { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--bc-light-gray); background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); cursor: pointer; }
.bp-zoom-btn:hover { background: var(--bc-light); border-color: var(--bc-gray); }
.bp-zoom-btn svg { width: 16px; height: 16px; }
/* Multi-select toggle — a round button above the zoom cluster; on = brand-filled. */
.bp-multi-btn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; margin-bottom: 4px; border: 1px solid var(--bc-light-gray); background: var(--surface); color: var(--ink); border-radius: 50%; box-shadow: var(--shadow-card); cursor: pointer; transition: background .12s ease, color .12s ease, border-color .12s ease; }
.bp-multi-btn:hover { background: var(--bc-light); border-color: var(--bc-gray); }
.bp-multi-btn.is-on { background: var(--bc-primary); border-color: var(--bc-primary); color: #fff; }
.bp-multi-btn svg { width: 18px; height: 18px; }
.bp-map .worldmap path:hover { fill: color-mix(in srgb, var(--bc-primary) 30%, var(--bc-light-gray)); }
.bp-map .worldmap path.cov-have { fill: var(--bc-dark); }
.bp-map .worldmap path.cov-have:hover { fill: color-mix(in srgb, var(--bc-dark) 84%, #000); }
.bp-map .worldmap path.cov-want { fill: var(--bc-primary); }
.bp-map .worldmap path.cov-want:hover { fill: var(--bc-primary-hover); }
/* Both covered AND sought: diagonal stripes of the have + need colors (SVG pattern,
   injected per map). Semantic dual-state, not decoration. */
.worldmap path.cov-both { fill: url(#cov-both); }
.bp-map .worldmap path.cov-both:hover { fill: url(#cov-both); }   /* keep the stripes on hover — it's a configured state, not empty */
.worldmap .cov-both-a { fill: var(--bc-dark); }
.worldmap .cov-both-b { fill: var(--bc-primary); }
/* Region-button hover preview: the region's countries light up on the map. */
.bp-map .worldmap path.region-hi { fill: color-mix(in srgb, var(--bc-primary) 55%, var(--bc-light-gray)); }
/* Multi-select — a distinct fill + a screen-constant ring (non-scaling-stroke, so
   it stays visible at any map zoom). Overrides the have/need fill while selected. */
.bp-map .worldmap path.cov-sel { fill: color-mix(in srgb, var(--bc-primary) 42%, var(--surface)); stroke: var(--bc-primary); stroke-width: 2px; vector-effect: non-scaling-stroke; paint-order: stroke; }
.bp-map .worldmap path.cov-sel:hover { fill: color-mix(in srgb, var(--bc-primary) 52%, var(--surface)); }

.bp-map-tip { position: fixed; z-index: 66; pointer-events: none; display: flex; flex-direction: column; gap: 1px; max-width: 220px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--bc-dark); color: var(--bc-white); box-shadow: var(--shadow-lift); font-size: 12px; line-height: 1.3; opacity: 0; transform: translateY(3px); transition: opacity .1s ease, transform .1s ease; }
.bp-map-tip.is-on { opacity: 1; transform: none; }
.bp-map-tip__name { font-weight: 700; }
.bp-map-tip__st { font-size: 11px; opacity: .8; }

/* Display-map country bubble — a speech bubble anchored at the clicked country */
.ccard { position: fixed; z-index: 67; width: max-content; max-width: 340px; background: var(--surface); border-radius: 14px; box-shadow: 0 14px 44px rgba(15,23,42,.18), 0 3px 10px rgba(15,23,42,.09); padding: 13px 15px 14px; opacity: 0; transform: translateY(6px) scale(.97); transform-origin: var(--cc-ax, 50%) 100%; transition: opacity .18s cubic-bezier(.4,0,.2,1), transform .18s cubic-bezier(.4,0,.2,1); }
.ccard.ccard--below { transform-origin: var(--cc-ax, 50%) 0; transform: translateY(-6px) scale(.97); }
.ccard.is-open { opacity: 1; transform: none; }
.ccard__arrow { position: absolute; left: var(--cc-ax, 50%); bottom: -6px; width: 13px; height: 13px; margin-left: -7px; background: var(--surface); transform: rotate(45deg); box-shadow: 3px 3px 8px rgba(15,23,42,.05); }
.ccard--below .ccard__arrow { bottom: auto; top: -6px; box-shadow: -3px -3px 8px rgba(15,23,42,.04); }
.ccard__head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.ccard__head .bp-map-key__dot { flex: none; }
.ccard__name { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.ccard__x { margin-left: auto; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: none; background: none; color: var(--bc-gray); border-radius: 6px; cursor: pointer; transition: background .12s ease, color .12s ease; }
.ccard__x:hover { background: var(--bc-light); color: var(--ink); }
.ccard__x svg { width: 15px; height: 15px; }
.ccard__body { max-height: 44vh; overflow-y: auto; }
.ccard__empty { font-size: .88rem; color: var(--bc-gray); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .ccard { transition: none; transform: none; } }

/* ── Country popup (set what you have / need here) ───────────────────── */
.cov-pop { position: absolute; z-index: 9; width: 330px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--bc-light-gray); border-radius: 18px; overflow: hidden auto; overscroll-behavior: contain; box-shadow: 0 24px 60px -16px rgba(20, 30, 40, .4), 0 4px 14px rgba(20, 30, 40, .1); animation: cov-pop-in .16s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cov-pop-in { from { opacity: 0; transform: translateY(7px) scale(.97); } to { opacity: 1; transform: none; } }
/* display:flex above beats the UA [hidden] rule — re-assert it. */
.cov-pop[hidden], .cov-pop__fp[hidden], .cov-pop__need[hidden] { display: none; }
.cov-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 16px 11px; }
.cov-pop__name { font-weight: 700; color: var(--ink); font-size: 1.05rem; letter-spacing: -.01em; }
.cov-pop__x { flex: none; border: none; background: none; cursor: pointer; color: var(--bc-gray); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; transition: background .12s ease, color .12s ease; }
.cov-pop__x:hover { background: var(--bc-light); color: var(--ink); }
.cov-pop__x svg { width: 17px; height: 17px; }
/* Intent chooser — two clean, full-width rows (dot + label), refined select state */
.cov-pop__seg { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 2px 16px 15px; }
.cov-pop__opt { display: flex; flex-direction: row; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--bc-light-gray); background: var(--surface); border-radius: 12px; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 700; color: var(--ink); text-align: left; line-height: 1.2; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease; }
.cov-pop__opt:hover { border-color: var(--bc-gray); }
.cov-pop__opt:active { transform: scale(.995); }
.cov-pop__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: none; }
.cov-pop__dot--have { background: var(--bc-dark); }
.cov-pop__dot--want { background: var(--bc-primary); }
.cov-pop__opt--have.is-active { border-color: var(--bc-dark); background: color-mix(in srgb, var(--bc-dark) 6%, var(--surface)); box-shadow: inset 0 0 0 1px var(--bc-dark); }
.cov-pop__opt--want.is-active { border-color: var(--bc-primary); background: var(--bc-primary-light); box-shadow: inset 0 0 0 1px var(--bc-primary); }
/* Footprint config (products + channels, revealed once an intent is set) */
.cov-pop__fp { padding: 15px 16px 4px; display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--bc-light); }
.cov-pop__lead { font-size: .84rem; color: var(--bc-gray); line-height: 1.45; }
.cov-pop__lbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bc-gray); margin-top: 8px; }
.cov-pop__lbl:first-child { margin-top: 0; }
.cov-pop__need { margin-top: 12px; padding-top: 13px; border-top: 1px dashed var(--bc-light-gray); display: flex; flex-direction: column; gap: 6px; }
.cov-pop__listed { display: flex; align-items: center; gap: 9px; margin-top: 4px; font-size: .84rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.cov-pop__listed input { flex: none; width: 16px; height: 16px; accent-color: var(--bc-primary); cursor: pointer; }
.cov-pop__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; margin-top: 14px; border-top: 1px solid var(--bc-light); background: color-mix(in srgb, var(--bc-light) 55%, var(--surface)); }
.cov-pop__clear { border: none; background: none; cursor: pointer; color: var(--bc-gray); font: inherit; font-size: .82rem; font-weight: 700; padding: 5px 4px; border-radius: 6px; }
.cov-pop__clear:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }

/* Two-pane editor (Road B): left = add coverage / needs, right = the current
   configurations on this territory (coverage + each property-scoped need). */
.cov-pop--wide { width: 600px; }
.cov-pop__cols { display: grid; grid-template-columns: 178px 1fr; }
.cov-pop__add { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 18px; border-right: 1px solid var(--bc-light); }
.cov-pop__add-h { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bc-gray); margin: 2px 0; }
.cov-pop__addbtn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px; border: 1px solid var(--bc-light-gray); border-radius: 10px; background: var(--surface); font: inherit; font-size: .84rem; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease; }
.cov-pop__addbtn:hover { border-color: var(--bc-gray); }
.cov-pop__addbtn:active { transform: translateY(1px); }
.cov-pop__addbtn.is-on { border-color: var(--bc-dark); background: color-mix(in srgb, var(--bc-dark) 6%, var(--surface)); box-shadow: inset 0 0 0 1px var(--bc-dark); }
.cov-pop__addbtn--danger { color: var(--danger); border-color: transparent; font-weight: 600; }
.cov-pop__addbtn--danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: transparent; }
.cov-pop__clearlink { border: none; background: none; cursor: pointer; color: var(--bc-gray); font: inherit; font-size: .78rem; font-weight: 700; text-align: left; padding: 6px 4px; margin-top: 2px; border-radius: 6px; }
.cov-pop__clearlink:hover { color: var(--danger); }
.cov-pop__configs { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* Small card: each footprint is a summary row (click to open its edit card) + a trash. */
.cov-cfg { border: 1px solid var(--bc-light-gray); border-radius: 12px; overflow: hidden; background: var(--surface); transition: border-color .14s ease; }
.cov-cfg:hover { border-color: var(--bc-gray); }
.cov-cfg__bar { display: flex; align-items: center; }
.cov-cfg__open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: none; background: none; font: inherit; text-align: left; cursor: pointer; }
.cov-cfg__open:hover { background: var(--bc-light); }
.cov-cfg__tag { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: var(--ink); }
.cov-cfg__sum { flex: 1; min-width: 0; font-size: .8rem; color: var(--bc-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-cfg__go { flex: none; display: grid; place-items: center; color: var(--bc-gray); }
.cov-cfg__go svg { width: 16px; height: 16px; }
.cov-cfg__x { flex: none; align-self: stretch; width: 32px; border: none; background: none; cursor: pointer; color: var(--bc-gray); display: grid; place-items: center; transition: color .12s ease, background .12s ease; }
.cov-cfg__x:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.cov-cfg__x svg { width: 15px; height: 15px; }
.cov-cfg-empty { color: var(--bc-gray); font-size: .84rem; line-height: 1.5; padding: 10px 2px; }
/* Keep the "counts as any" hint's line reserved so picking an option doesn't shift the card. */
.pf-pick-hint.is-hidden { visibility: hidden; }

/* Edit card — a focused modal for one footprint (opens like the configurator). */
.cov-ed-ov { position: fixed; inset: 0; z-index: 72; display: grid; place-items: center; padding: 24px; background: rgba(11, 15, 20, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background .2s ease, backdrop-filter .2s ease; }
.cov-ed-ov[hidden] { display: none; }   /* class display:grid would otherwise beat the UA [hidden] rule → an invisible overlay eating clicks */
.cov-ed-ov.is-open { background: rgba(11, 15, 20, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cov-ed { width: min(520px, 100%); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .5); overflow: hidden; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .22s ease, transform .22s cubic-bezier(.2, .7, .2, 1); }
.cov-ed-ov.is-open .cov-ed { opacity: 1; transform: none; }
.cov-ed__head { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--bc-light-gray); }
.cov-ed__back, .cov-ed__x { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: none; border-radius: 8px; background: none; color: var(--bc-gray); cursor: pointer; transition: background .14s ease, color .14s ease; }
.cov-ed__back:hover, .cov-ed__x:hover { background: var(--bc-light); color: var(--ink); }
.cov-ed__back svg, .cov-ed__x svg { width: 18px; height: 18px; }
.cov-ed__title { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.cov-ed__title .cov-pop__dot { width: 11px; height: 11px; }
.cov-ed__where { color: var(--bc-gray); font-weight: 600; font-size: .88rem; }
.cov-ed__body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; }
.cov-ed__form { display: flex; flex-direction: column; gap: 6px; }
.cov-ed__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--bc-light); }
.cov-cfg__del { border: none; background: none; cursor: pointer; color: var(--bc-gray); font: inherit; font-size: .82rem; font-weight: 700; padding: 6px 8px; border-radius: 6px; }
.cov-cfg__del:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
@media (prefers-reduced-motion: reduce) { .cov-ed-ov, .cov-ed { transition: none; } }

.cov-pop__bulk { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 9px; }
.cov-pop__lead { font-size: .84rem; color: var(--bc-gray); line-height: 1.45; margin: 0; }
.cov-pop__lead--sub { font-size: .78rem; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--bc-light); }
@media (max-width: 430px) {
  .cov-pop--wide { width: auto; }
  .cov-pop__cols { grid-template-columns: 1fr; }
  .cov-pop__add { border-right: none; border-bottom: 1px solid var(--bc-light); }
}

/* ── Lightbox ───────────────────────────────────────────────────────── */
.bp-lb-ov { position: fixed; inset: 0; z-index: 65; background: rgba(11, 15, 20, .88); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 24px; opacity: 0; animation: bp-lb-in .2s ease forwards; }
@keyframes bp-lb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bp-lb-pop { from { transform: translateY(10px) scale(.985); } to { transform: none; } }
.bp-lb { display: flex; align-items: stretch; width: min(1180px, 100%); max-height: calc(100vh - 48px); overflow: hidden; background: var(--surface); border-radius: var(--radius-lg); position: relative; box-shadow: 0 30px 90px -20px rgba(0,0,0,.65); animation: bp-lb-pop .28s cubic-bezier(.2,.7,.2,1) both; }

.bp-lb__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: #0b0f14; }
.bp-lb__stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; max-height: 78vh; background: radial-gradient(120% 120% at 50% 0%, #12181f 0%, #0b0f14 72%); }
.bp-lb__img { width: 100%; height: 100%; background-size: contain; background-repeat: no-repeat; background-position: center; }
.bp-lb__img--ph { display: grid; place-items: center; color: #fff; font-size: 3rem; font-weight: 700; background: var(--brand, #415364); }
.bp-lb__counter { position: absolute; bottom: 14px; right: 16px; z-index: 2; color: rgba(255,255,255,.92); font-size: .78rem; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0,0,0,.65); }
.bp-lb__pnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.35); transition: background .15s ease, transform .15s ease; }
.bp-lb__pnav svg { width: 22px; height: 22px; }
.bp-lb__pnav:hover { background: #fff; }
.bp-lb__pnav--prev { left: 16px; }
.bp-lb__pnav--next { right: 16px; }

.bp-lb__thumbs { display: flex; gap: 8px; padding: 12px 14px; overflow-x: auto; background: rgba(0,0,0,.28); scrollbar-width: thin; }
.bp-lb__thumb { flex: none; width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; border: none; cursor: pointer; padding: 0; background: none; opacity: .55; box-shadow: 0 0 0 1px rgba(255,255,255,.12); transition: opacity .15s ease, box-shadow .15s ease, transform .15s ease; }
.bp-lb__thumb:hover { opacity: 1; }
.bp-lb__thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--bc-primary); transform: translateY(-1px); }
.bp-lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bp-lb__side { flex: 0 0 360px; padding: 32px 30px; overflow-y: auto; }
.bp-lb--noinfo .bp-lb__side { display: none; }
.bp-lb__eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bp-lb__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--bc-gray); }
.bp-lb__kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand, var(--bc-primary)); }
.bp-lb__pos { margin-left: auto; font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--bc-gray); }
.bp-lb__name { font-size: 1.65rem; font-weight: 700; letter-spacing: -.015em; color: var(--ink); line-height: 1.1; }
.bp-lb__desc { color: var(--bc-text); font-size: .95rem; line-height: 1.65; margin-top: 14px; white-space: pre-wrap; }
.bp-lb__seek { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--bc-light-gray); }
.bp-lb__seek-h { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--bc-gray); margin-bottom: 12px; }
.bp-lb__seek .fpd:last-child { margin-bottom: 0; }
.bp-prow__seek { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--bc-dark); }
.bp-prow__seek .cov-pop__dot { flex: none; }

.bp-lb__icon { position: absolute; top: 14px; z-index: 5; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); transition: background .15s ease, color .15s ease; }
.bp-lb__icon:hover { background: rgba(0,0,0,.72); }
.bp-lb__icon svg { width: 18px; height: 18px; }
.bp-lb__close { right: 14px; }
.bp-lb__info { right: 58px; }
.bp-lb__info.is-off { background: rgba(0,0,0,.3); color: rgba(255,255,255,.55); }

@media (max-width: 760px) {
  .bp-lb { flex-direction: column; }
  .bp-lb__side { flex: none; width: auto; max-height: 42vh; padding: 20px 22px 24px; }
  .bp-lb__stage { aspect-ratio: 16 / 11; max-height: 60vh; }
}
@media (prefers-reduced-motion: reduce) { .bp-lb { animation: none; } .bp-lb__pnav, .bp-lb__thumb, .bp-lb__icon { transition: none; } }

/* spec pairs (royalty / MG) */
.bp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
.bp-spec__k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bc-gray); }
.bp-spec__v { font-weight: 700; color: var(--ink); margin-top: 3px; font-size: 1.02rem; }

/* by-the-numbers — editorial pull-stats (no tiles) */
.bp-stats { display: flex; flex-wrap: wrap; gap: 18px 52px; }
.bp-stat { flex: 0 1 auto; min-width: 108px; }
.bp-stat__v { font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bp-stat__k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bc-gray); margin-top: 10px; }

/* looking-for highlight */
.bp-seek { color: var(--bc-text); font-size: 1.04rem; line-height: 1.7; max-width: 60ch; }

/* contact list (aside) */
.bp-contact { display: flex; flex-direction: column; gap: 11px; }
.bp-contact__row { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--bc-text); word-break: break-word; }
.bp-contact__row svg { width: 16px; height: 16px; color: var(--brand-ic, var(--bc-primary)); flex: none; }
.bp-contact__row a { color: var(--bc-primary); font-weight: 600; }
.bp-contact__note { font-size: .78rem; color: var(--bc-gray); margin-top: 2px; }

/* ── Edit modal (centered, section-nav) ─────────────────────────────── */
.pm-ov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 28px; background: rgba(40, 52, 64, 0); backdrop-filter: blur(0); pointer-events: none; transition: background .22s ease, backdrop-filter .22s ease; }
.pm-ov.is-open { background: rgba(40, 52, 64, .5); backdrop-filter: blur(3px); pointer-events: auto; }
.pm { width: min(960px, 100%); height: min(86vh, 760px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .22s ease, transform .22s cubic-bezier(.2,.7,.2,1); }
.pm-ov.is-open .pm { opacity: 1; transform: none; }

.pm__head { flex: none; display: flex; align-items: center; gap: 18px; padding: 16px 20px 16px 24px; border-bottom: 1px solid var(--bc-light); }
.pm__title { font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; margin-right: auto; }
.pm__close { flex: none; border: none; background: none; cursor: pointer; color: var(--bc-gray); width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-sm); }
.pm__close:hover { background: var(--bc-light); color: var(--ink); }
.pm__close svg { width: 20px; height: 20px; }

.pm__body { flex: 1; min-height: 0; display: flex; }
.pm__nav { flex: none; width: 224px; padding: 16px 12px; border-right: 1px solid var(--bc-light); background: var(--bc-light); overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.pm-nav__item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border: none; background: none; border-radius: var(--radius-sm); color: var(--bc-text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .12s ease; }
.pm-nav__item:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.pm-nav__item.is-active { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-card); }
.pm-nav__item.is-active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bc-primary); }
.pm-nav__label { flex: 1; min-width: 0; }

.pm__content { flex: 1; min-width: 0; overflow-y: auto; padding: 24px 28px; }
.pm-sec__title { font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.pm-sec__sub { color: var(--bc-gray); font-size: .85rem; line-height: 1.5; margin-top: 4px; margin-bottom: 20px; }
.pm-sec__title:only-child, .pm-sec__title + .pf-field, .pm-sec__title + .pf-grid2 { margin-top: 18px; }

/* Page-layout board: arrange sections across the three profile columns */
.pf-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.pf-lane { display: flex; flex-direction: column; min-width: 0; }
.pf-lane__head { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bc-gray); padding: 0 2px 8px; }
.pf-lane__drop { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 90px; padding: 10px; border: 1px dashed var(--bc-light-gray); border-radius: var(--radius-md); background: var(--bc-light); }
.pf-lane__drop:empty::after { content: "Drop here"; margin: auto; color: var(--bc-gray); font-size: .76rem; }
.pf-card { display: flex; align-items: center; gap: 8px; padding: 10px 11px 10px 7px; border: 1px solid var(--bc-light-gray); border-left: 3px solid var(--bc-primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface); cursor: grab; user-select: none; transition: box-shadow .12s ease, border-color .12s ease, opacity .12s ease; }
.pf-card:hover { box-shadow: var(--shadow-card); }
.pf-card:active { cursor: grabbing; }
.pf-card.is-dragging { opacity: .55; box-shadow: var(--shadow-lift); cursor: grabbing; }
.pf-card__grip { flex: none; display: grid; place-items: center; width: 16px; color: var(--bc-light-gray); }
.pf-card__grip svg { width: 16px; height: 16px; }
.pf-card:hover .pf-card__grip { color: var(--bc-gray); }
.pf-card__label { flex: 1; min-width: 0; font-weight: 700; color: var(--ink); font-size: .8rem; line-height: 1.3; }
@media (max-width: 640px) { .pf-board { grid-template-columns: 1fr; } }

.pm__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--bc-light); }
.pm__save { font-size: .82rem; color: var(--bc-gray); display: inline-flex; align-items: center; gap: 7px; }
.pm__save i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.pm__save--error { color: var(--danger); }
.pm__save--error i { background: var(--danger); }
.pm__done { padding-left: 26px; padding-right: 26px; }

@media (max-width: 760px) {
  .pm-ov { padding: 0; }
  .pm { width: 100%; height: 100%; border-radius: 0; }
  .pm__body { flex-direction: column; }
  .pm__nav { width: auto; flex-direction: row; gap: 4px; border-right: none; border-bottom: 1px solid var(--bc-light); overflow-x: auto; padding: 10px 12px; }
  .pm-nav__item { width: auto; white-space: nowrap; }
  .pm-nav__item.is-active::before { display: none; }
  .pm-nav__label { flex: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .bp-hero__bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bp-hero__actions { align-self: stretch; }
  .bp-hero__actions .btn { flex: 1; }
  .bp-specs { grid-template-columns: 1fr; }
}

/* ── Inquiry intake configurator (edit modal) ───────────────────────── */
.intake { display: flex; flex-direction: column; gap: 18px; }

.intake-seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.intake-seg__btn {
  text-align: left; padding: 14px 16px; border: 1px solid var(--bc-light-gray);
  border-radius: var(--radius-md); background: var(--surface); cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.intake-seg__btn:hover { border-color: var(--bc-gray); }
.intake-seg__btn.is-active { border-color: var(--bc-primary); background: var(--bc-primary-light); box-shadow: inset 0 0 0 1px var(--bc-primary); }
.intake-seg__name { font-weight: 700; color: var(--ink); font-size: .98rem; }
.intake-seg__desc { font-size: .8rem; color: var(--bc-gray); line-height: 1.4; }

.intake-config { border-top: 1px solid var(--bc-light-gray); padding-top: 16px; }
.intake-config[hidden] { display: none; }
.intake-config__head { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.intake-msg { margin-top: 14px; }
.intake-msg textarea { min-height: 64px; }

.iqb { display: flex; flex-direction: column; gap: 12px; }
.iq { border: 1px solid var(--bc-light-gray); border-radius: var(--radius-md); padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.iq__head { display: flex; align-items: center; justify-content: space-between; }
.iq__num { width: 24px; height: 24px; border-radius: 50%; background: var(--bc-dark); color: var(--bc-white); font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.iq__tools { display: flex; gap: 4px; }
.iq__tool { width: 28px; height: 28px; border: 1px solid var(--bc-light-gray); border-radius: var(--radius-sm); background: var(--surface); color: var(--bc-gray); cursor: pointer; font-size: 1rem; line-height: 1; }
.iq__tool:hover:not([disabled]) { border-color: var(--bc-gray); color: var(--ink); }
.iq__tool[disabled] { opacity: .35; cursor: default; }
.iq__tool--rm:hover:not([disabled]) { border-color: var(--danger); color: var(--danger); }
.iq__prompt { font-weight: 600; }
.iq__row { display: flex; align-items: center; gap: 14px; }
.iq__req { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--bc-text); white-space: nowrap; }
.iq-opts { display: flex; flex-direction: column; gap: 4px; }
.iq-opts label { font-size: .74rem; font-weight: 700; color: var(--bc-gray); text-transform: uppercase; letter-spacing: .03em; }
.input--sm { padding: 7px 10px; font-size: .9rem; }

/* Custom dropdown (.csel) inside editor forms */
.csel__btn.is-placeholder span { color: var(--bc-gray); font-weight: 400; }
.csel--sm .csel__btn { padding: 7px 10px; font-size: .9rem; }
.iq__row .csel { flex: none; width: 170px; }
.iq-ko__rule .csel { flex: 0 0 auto; min-width: 120px; }

/* Inline switch (contact reveal toggles) — smaller than the publish switch.
   Wrapped in .pf-reveal so .pf-field > label styling can't hijack the label. */
.pf-reveal { margin-top: 10px; }
.pf-switch--inline .pf-switch__track { width: 38px; height: 22px; }
.pf-switch--inline .pf-switch__track::after { width: 16px; height: 16px; }
.pf-switch--inline input:checked + .pf-switch__track::after { transform: translateX(16px); }
.pf-switch--inline .pf-switch__label { font-weight: 600; font-size: .85rem; color: var(--bc-text); }

.iq-ko { border-radius: var(--radius-sm); }
.iq-ko__toggle { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--bc-text); cursor: pointer; }
.iq-ko--on { background: var(--bc-primary-light); border: 1px solid color-mix(in srgb, var(--bc-primary) 30%, transparent); padding: 10px 12px; }
.iq-ko--na { font-size: .8rem; color: var(--bc-gray); font-style: italic; }
.iq-ko__rule { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.iq-ko__txt { font-size: .85rem; color: var(--bc-text); }
.iq-ko__hint { font-size: .8rem; color: var(--bc-gray); font-style: italic; }
.iq-ko__rule .input--sm { width: auto; min-width: 120px; }
.iqb__add { align-self: flex-start; }

.intake-preview { border: 1px dashed var(--bc-light-gray); border-radius: var(--radius-md); overflow: hidden; }
.intake-preview__head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--bc-gray); padding: 10px 14px; background: color-mix(in srgb, var(--bc-dark) 4%, var(--surface)); border-bottom: 1px solid var(--bc-light-gray); }
.intake-preview__body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ip-note { font-size: .9rem; color: var(--bc-gray); line-height: 1.5; }
.ip-field { display: flex; flex-direction: column; gap: 6px; }
.ip-q { font-weight: 600; color: var(--ink); font-size: .92rem; }
.ip-req { color: var(--bc-primary); }
.ip-choices { display: flex; flex-wrap: wrap; gap: 14px; }
.ip-choices label { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--bc-text); }
.intake-preview__body .input[disabled] { background: color-mix(in srgb, var(--bc-dark) 3%, var(--surface)); cursor: default; }

@media (max-width: 600px) {
  .intake-seg { grid-template-columns: 1fr; }
}

/* ── Profile page redesign: full-bleed hero + 3-column card body ──────── */
.profile-hero {
  margin: -28px -28px 0; min-height: 300px; padding: 88px clamp(24px, 4vw, 48px) 42px;
  position: relative; overflow: hidden; color: var(--hero-fg, #fff);
  background: var(--brand, #FF6600);
}
/* Visibility flag — a little white tab that drops from under the top nav; green
   when the profile is live, red when hidden. Clicking it toggles publish. */
.profile-flag { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 5px 15px 7px; border: none; cursor: pointer; font: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .02em; background: var(--surface); border-radius: 0 0 11px 11px; box-shadow: 0 5px 16px rgba(0, 0, 0, .2); }
.profile-flag__dot { width: 8px; height: 8px; border-radius: 50%; }
.profile-flag--on { color: var(--success); }
.profile-flag--on .profile-flag__dot { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.profile-flag--off { color: #b91c1c; }
.profile-flag--off .profile-flag__dot { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
.bp--preview .profile-flag { display: none; }
.bp--preview .profile-hero { margin-top: 0; }
/* Public view has no preview bar above the hero, so keep it flush to the top. */
.bp--public .profile-hero { margin-top: -28px; }
/* Cover image shows raw. Its backing is black, so lowering the Opacity control
   fades the image toward a black tint, never a color. Brand color backs the
   hero only when no image is set. */
.profile-hero.has-cover { background: #000; }
.profile-hero-cover { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.profile-hero-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-hero-inner, .profile-hero-stats { position: relative; z-index: 2; }
.profile-hero-inner { max-width: 1500px; margin: 0 auto; display: flex; align-items: center; gap: 22px; }
.profile-hero-logo {
  width: 108px; height: 108px; flex: none; border-radius: 18px; overflow: hidden;
  background: #fff; color: var(--brand, #415364); display: grid; place-items: center;
  font-weight: 700; font-size: 2.25rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 16px 36px rgba(0, 0, 0, .32);
}
.profile-hero-logo { position: relative; }
.profile-hero-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.profile-hero-logo.is-editable { cursor: pointer; }
.profile-hero-logo__edit { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; opacity: 0; transition: opacity .15s ease; }
.profile-hero-logo__edit svg { width: 24px; height: 24px; }
.profile-hero-logo.is-editable:hover .profile-hero-logo__edit,
.profile-hero-logo.is-editable:focus-within .profile-hero-logo__edit,
.profile-hero-logo.is-busy .profile-hero-logo__edit { opacity: 1; }
.profile-hero-info { flex: 1; min-width: 0; }
.profile-hero-name { margin: 0; font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; color: var(--hero-name, var(--hero-fg, #fff)); text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.profile-hero-tagline { margin: 6px 0 0; font-size: 1rem; color: var(--hero-fg-soft, rgba(255, 255, 255, .92)); }
.profile-hero-tagline.is-ph { color: var(--hero-fg-faint, rgba(255, 255, 255, .58)); }
.profile-hero-meta { margin-top: 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; font-size: .85rem; color: var(--hero-fg-soft, rgba(255, 255, 255, .85)); }
.profile-hero-dot { display: inline-block; width: 5px; height: 5px; margin: 0 11px; border-radius: 50%; background: currentColor; opacity: .55; vertical-align: middle; }
.profile-hero-vis { display: inline-flex; align-items: center; gap: 6px; }
.profile-hero-vis i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.profile-hero-vis--live { color: #7cf0b0; }
.profile-hero-vis--hidden { color: rgba(255, 255, 255, .7); }
.profile-hero-actions { flex: none; display: flex; align-items: center; gap: 10px; }
.profile-hero-btn { padding: .55em 1.05em; border-radius: var(--radius-sm); border: 1px solid var(--hero-rule, rgba(255, 255, 255, .4)); background: var(--hero-chip-bg, rgba(255, 255, 255, .08)); color: var(--hero-fg, #fff); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .15s ease; }
.profile-hero-btn:hover { background: var(--hero-chip-bg, rgba(255, 255, 255, .2)); filter: brightness(1.35); }

/* ── Featured opportunities — a strip at the foot of the hero ──────────────── */
.profile-hero-opps { position: relative; z-index: 2; max-width: 1500px; margin: 26px auto 0; padding-top: 22px; border-top: 1px solid var(--hero-rule, rgba(255, 255, 255, .22)); }
.profile-hero-opps--empty { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-hero-opps--empty .profile-hero-opps__label { margin-bottom: 0; }
.profile-hero-opps__label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--hero-fg-soft, rgba(255, 255, 255, .82)); margin-bottom: 13px; }
.profile-hero-opps__row { display: flex; flex-wrap: wrap; gap: 12px; }
.bp-oppcard { position: relative; flex: 1 1 220px; max-width: 320px; min-width: 0; padding: 13px 15px; border-radius: 14px; background: var(--hero-chip-bg, rgba(255, 255, 255, .1)); border: 1px solid var(--hero-rule, rgba(255, 255, 255, .22)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bp-oppcard__terr { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; color: var(--hero-fg, #fff); }
.bp-oppcard__ax { margin-top: 4px; font-size: .8rem; font-weight: 600; color: var(--hero-fg-soft, rgba(255, 255, 255, .85)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-oppcard__note { margin-top: 7px; font-size: .8rem; line-height: 1.45; color: var(--hero-fg-soft, rgba(255, 255, 255, .8)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-oppcard__rm { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: none; border-radius: 50%; background: rgba(0, 0, 0, .3); color: #fff; cursor: pointer; opacity: 0; transition: opacity .12s ease, background .12s ease; }
.bp-oppcard:hover .bp-oppcard__rm, .bp-oppcard__rm:focus-visible { opacity: 1; }
.bp-oppcard__rm:hover { background: rgba(0, 0, 0, .52); }
.bp-oppcard__rm svg { width: 13px; height: 13px; }
/* Clickable in the public view — a licensee can apply/inquire through the card */
.bp-oppcard--apply { display: block; width: 100%; text-align: left; font: inherit; cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.bp-oppcard--apply:hover { transform: translateY(-2px); background: var(--hero-chip-bg, rgba(255, 255, 255, .2)); border-color: var(--hero-fg, rgba(255, 255, 255, .55)); }
.bp-oppcard__cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--hero-fg, #fff); }
.bp-oppcard__cta svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .bp-oppcard--apply:hover { transform: none; } }
.bp-opp-add { display: inline-flex; align-items: center; gap: 6px; padding: 13px 16px; border-radius: 14px; border: 1px dashed var(--hero-rule, rgba(255, 255, 255, .42)); background: transparent; color: var(--hero-fg-soft, rgba(255, 255, 255, .9)); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; transition: background .12s ease, border-color .12s ease; }
.bp-opp-add:hover { background: var(--hero-chip-bg, rgba(255, 255, 255, .12)); border-color: var(--hero-fg, #fff); }
.bp-opp-add svg { width: 15px; height: 15px; }
.bp-opp-add--slot { flex: 1 1 150px; max-width: 200px; justify-content: center; }
.bp-opp-hint { font-size: .82rem; color: var(--hero-fg-faint, rgba(255, 255, 255, .6)); }

/* Feature-an-opportunity picker */
.bp-opppick-ov { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 18, 26, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: bp-opp-fade .14s ease both; }
.bp-opppick { width: 100%; max-width: 440px; max-height: 80vh; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; }
.bp-opppick__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--bc-light); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.bp-opppick__x { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: none; background: none; border-radius: var(--radius-sm); color: var(--bc-gray); cursor: pointer; }
.bp-opppick__x:hover { background: var(--bc-light); color: var(--ink); }
.bp-opppick__x svg { width: 18px; height: 18px; }
.bp-opppick__list { padding: 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.bp-opppick__opt { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 11px 12px; border: 1px solid var(--bc-light); border-radius: var(--radius-md); background: var(--surface); font: inherit; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.bp-opppick__opt:hover { border-color: var(--bc-dark); background: color-mix(in srgb, var(--bc-dark) 6%, transparent); }
.bp-opppick__terr { font-size: .95rem; font-weight: 700; color: var(--ink); }
.bp-opppick__ax { font-size: .82rem; font-weight: 600; color: var(--bc-gray); }
.bp-opppick__note { font-size: .8rem; color: var(--bc-gray); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-opppick__empty { padding: 28px 20px; text-align: center; color: var(--bc-gray); font-size: .9rem; line-height: 1.5; }
@keyframes bp-opp-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bp-opppick-ov { animation: none; } }
.profile-hero-cta { display: inline-flex; align-items: center; padding: .62em 1.4em; border-radius: var(--radius-sm); border: none; background: var(--hero-cta-bg, #fff); color: var(--hero-cta-fg, var(--bc-dark)); font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); transition: transform .15s ease; }
.profile-hero-cta:hover { transform: translateY(-1px); }
.profile-hero-cta:disabled { opacity: .85; cursor: default; transform: none; }

/* Follow — secondary to the Inquire CTA: outlined when not following, a filled
   translucent chip once you are. */
.profile-hero-follow { display: inline-flex; align-items: center; padding: .6em 1.25em; border-radius: var(--radius-sm); border: 1px solid var(--hero-cta-bg, #fff); background: transparent; color: var(--hero-fg, #fff); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.profile-hero-follow:hover { background: var(--hero-chip-bg, rgba(255, 255, 255, .14)); }
.profile-hero-follow.is-following { background: var(--hero-chip-bg, rgba(255, 255, 255, .18)); border-color: transparent; }
.profile-hero-follow:disabled { opacity: .6; cursor: default; }
/* Plain pull-figures separated by whitespace (wrap-safe — no sibling divider). */
.profile-hero-stats { max-width: 1500px; margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.profile-stat { min-width: 92px; }
.profile-stat-v { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.profile-stat-k { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--hero-fg-soft, rgba(255, 255, 255, .78)); margin-top: 4px; }

.profile-layout-3col { max-width: 1500px; margin: 0 auto; padding: 24px 0 8px; display: grid; grid-template-columns: 270px minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.profile-col { min-width: 0; }
/* Side columns ride along as the main column scrolls (like the dashboard rail). */
.profile-col--left, .profile-col--right { position: sticky; top: 90px; align-self: start; }

.profile-card { background: var(--glass-card-bg); border: 1px solid var(--glass-edge); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-card-shadow); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .profile-card { background: var(--surface); } }
.profile-card-header { padding: 13px 18px; display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; color: var(--ink); border-bottom: 1px solid rgba(0, 0, 0, .05); }
.profile-card-ic { width: 17px; height: 17px; flex: none; color: var(--brand-ic, var(--bc-primary)); }
.profile-card-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-card-edit { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 26px; height: 26px; margin: -4px -4px -4px 0; border-radius: 7px; background: none; border: none; color: var(--bc-gray); cursor: pointer; transition: background .15s ease, color .15s ease; }
.profile-card-edit:hover { color: var(--bc-primary); background: var(--bc-primary-light); }
.profile-card-edit svg { width: 14px; height: 14px; }
.profile-card-body { padding: 16px 18px; }
.profile-card--empty .profile-card-body { padding-top: 6px; }

/* Preview mode hides owner-only editing affordances. */
.bp--preview .profile-card-edit, .bp--preview .bp-add { display: none; }

/* "What we're looking for" — standout criteria manifest. Inverts the muted
   card chrome: brand-tinted glow + solid brand header. Honors --brand. */
.profile-card.profile-criteria-card {
  border: 1.5px solid color-mix(in srgb, var(--brand, var(--bc-primary)) 45%, var(--bc-light-gray));
  background: var(--surface);
}
.profile-criteria-card .profile-card-header {
  background: var(--brand, var(--bc-primary));
  border-bottom: none; color: #fff;
}
.profile-criteria-card .profile-card-ic { color: #fff; }
.profile-criteria-card .profile-card-edit { color: rgba(255, 255, 255, .82); }
.profile-criteria-card .profile-card-edit:hover { color: #fff; background: rgba(255, 255, 255, .18); }
.profile-criteria-lead {
  margin: 0 0 4px; padding-bottom: 11px; color: var(--bc-text); font-size: .86rem; line-height: 1.55;
  border-bottom: 1px solid color-mix(in srgb, var(--brand, var(--bc-primary)) 12%, transparent);
}
.profile-criteria-row {
  display: flex; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--brand, var(--bc-primary)) 12%, transparent);
}
.profile-criteria-row:first-child { padding-top: 2px; }
.profile-criteria-row:last-child { border-bottom: none; padding-bottom: 2px; }
.profile-criteria-icon {
  width: 28px; height: 28px; flex: none; border-radius: 7px;
  background: color-mix(in srgb, var(--brand, var(--bc-primary)) 11%, var(--surface));
  color: var(--brand, var(--bc-primary)); display: grid; place-items: center;
}
.profile-criteria-icon svg { width: 15px; height: 15px; }
.profile-criteria-content { flex: 1; min-width: 0; }
.profile-criteria-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--bc-gray); margin-bottom: 5px;
}
.profile-criteria-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.profile-criteria-tag {
  display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, var(--brand, var(--bc-primary)) 8%, var(--surface));
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--brand, var(--bc-primary)) 18%, #fff);
}
/* State variants — reserved for the public/match view (own profile shows plain tags). */
.profile-criteria-tag.matched { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.profile-criteria-tag.gap { background: rgba(239, 68, 68, .08); color: #dc2626; border-color: rgba(239, 68, 68, .2); }

@media (max-width: 1100px) {
  .profile-layout-3col { grid-template-columns: 1fr; gap: 0; }
  .profile-col--left, .profile-col--right { display: contents; }
}
@media (max-width: 768px) {
  .profile-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .profile-hero-actions { width: 100%; }
  .profile-hero-stats { flex-wrap: nowrap; overflow-x: auto; }
}