@layer legacy, tokens, components;
@layer tokens {
/* Big Heart's shared theme. The homepage illustrations use the same palette. */
:root {
  --bg-canvas: #fbf8ef;
  --bg-subpage: #FBF9F5;
  --banner-yellow: #FCE28B;
  --banner-blue: #B8E3FF;
  --banner-pink: #F7B5D1;
  --brand-pink-text: #9a3760;
  --brand-sky-text: #286387;
  --banner-green: #CBEF82;
  --banner-cream: #F3EFE6;
  --banner-accent-cream: #FFFDF9;
  --banner-ink: #1E1E1E;
  --bg-paper: #fffefa;
  --cream: var(--bg-canvas);
  --white: var(--bg-paper);
  --grid-size: 48px;
  --grid-pattern: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAASklEQVR42u3PsQkAMAwEsV/AQ6RI9h/RTWYwGFQcXKu8e2pz+ZOtAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMzV0YHRARHXiqQAAAAASUVORK5CYII="); /* 1px flat ink at 5% */
  --surface: #f5f1e8;
  --ink: #262521;
  --dim: #625e57;
  --line: #e7e0d5;
  --accent: #51364a;
  --brand-lime: #c6ec80;
  --brand-peach: #fac6a9;
  --brand-pink: #f6b4d2;
  --brand-sky: #b4e1fa;
  --brand-sun: #ffe49a;
  --brand-leaf: #a8cc91;
  --yellow: var(--brand-sun);
  --pink: var(--brand-pink);
  --blue: var(--brand-sky);
  --green: var(--brand-lime);
  --coral: var(--brand-peach);
  --action-primary: var(--brand-lime);
  --action-primary-text: #20271b;
  --action-primary-hover: #b6df6b;
  --action-sky-hover: #9dd6f8;
  --status-error-bg: #fce3e5;
  --status-error-text: #8b3040;
  --status-success-bg: #e7f2e2;
  --status-success-text: #256649;
  --status-warning-bg: #f9efd8;
  --status-warning-text: #865000;
  --status-info-text: #305d8b;
  --field-border: #8e8177;
  --field-surface: #fdfbf6;
  --control-ink: #1e1e1e;
  --control-border: #d6d1c7;
  --control-icon: #6b665e;
  --control-hover: #f6f4ee;
  --control-ring: rgb(203 239 130 / 45%);
  --focus-ring: #805070;
  --chart-total: #c44482;
  --chart-posted: #598d2d;
  --chart-independent: #277fa5;
  --chart-bar-width: clamp(14px, 24%, 24px);
  --chart-month-gap: 8px;
  --chart-grid: #e9e1d9;
  --bg-nav-active: var(--brand-sun);
  --bg-kpi-gmv: var(--brand-pink);
  --bg-kpi-video: var(--brand-sky);
  --bg-kpi-orders: var(--brand-sun);
  --bg-kpi-live: var(--brand-lime);
  --bg-row: var(--bg-paper);
  --bg-row-alt: var(--surface);
  --bg-row-active: #fff3cc;
  --row-gap: 8px;
  --layout-gap: clamp(16px, 2.5vw, 32px);
  --field-min-height: 52px;
  --field-border-width: 2px;
  --z-content: 1;
  --z-sticky: 10;
  --z-dock: 15;
  --z-popover: 20;
  --z-toast: 30;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-16: 64px;
  --accent-hover: #68445d;
  --rose-tint: #f8e7ef;
  --blue-tint: #e8effb;
  --leaf-tint: #edf2df;
  --sun-tint: #fcf1cf;
  --peach-tint: #fae9dc;
  --gutter: clamp(16px, 4vw, 56px);
  --card-padding: clamp(24px, 3vw, 32px);
  --panel-padding: var(--card-padding);
  --radius-card: 32px;
  --radius-row: 24px;
  --radius: var(--radius-card);
  --small-radius: var(--radius-row);
  --shadow-card: none;
  --shadow: 0 12px 32px rgb(38 37 33 / 8%);
  --heading: Manrope, 'Be Vietnam Pro', sans-serif;
}


}
@layer components {

body { line-height: 1.5; }
p { line-height: 1.55; }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; }
h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; overflow-wrap: anywhere; }
h2 { font-size: clamp(20px, 2vw, 28px); line-height: 1.25; }
h3 { letter-spacing: -.027em; }
small, .bh-small, .bh-panel .bh-small { color: var(--dim); font-size: 12px; }
.eyebrow, .bh-overline { color: #645a61; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Common rails, page headings and navigation */
#bh-wireframe {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-subpage);
  overflow-x: hidden;
  overflow-x: clip;
}
.bh-window {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
}
.bh-window > header {
  background: var(--white);
  display: block;
  flex-shrink: 0;
  padding: 0;
}
.bh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 16px 32px;
  gap: clamp(14px, 2vw, 30px);
  min-height: 71px;
}
.bh-brand { font-size: 27px; }
.bh-topnav { gap: clamp(5px, 1.05vw, 16px); }
.bh-topnav :is(button,a) {
  padding: 9px 12px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 650;
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}
.bh-topnav :is(button,a):hover { background: var(--surface); }
.bh-topnav :is(button,a)[aria-current="page"] { background: var(--bg-nav-active); color: var(--ink); }
.bh-topnav :is(button,a)[aria-current="page"]::after { display: none; }
.bh-header-actions > button {
  padding: 9px 12px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 650;
}
.bh-header-actions > button:not([data-variant]):hover { background: var(--surface); }
.bh-guest-header-actions { gap: 12px; }
.bh-guest-header-actions > :is(.bh-header-join,.bh-header-login) {
  display: inline-flex;
  align-items: center;
  height: 40px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  color: var(--control-ink);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.bh-guest-header-actions > .bh-header-join {
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1.5px solid var(--control-border);
  background: #fff;
}
.bh-guest-header-actions > .bh-header-join:not([data-variant]):hover {
  border-color: var(--control-ink);
  background: #e0f2fe;
  transform: translateY(-1px);
}
.bh-guest-header-actions > .bh-header-login {
  justify-content: space-between;
  gap: 10px;
  padding: 5px 6px 5px 18px;
  border: 0;
  background: var(--banner-green);
}
.bh-guest-header-actions > .bh-header-login:hover { background: #bce864; }
.bh-header-arrow {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border: 1.2px solid var(--control-ink);
  border-radius: 50%;
}
.bh-header-arrow svg { width: 13px; height: 13px; transition: transform .2s ease; }
.bh-header-login:hover .bh-header-arrow svg { transform: translateX(2px); }
@media (max-width: 520px) {
  .bh-guest-header-actions { gap: 6px; margin-left: auto; }
  .bh-guest-header-actions > :is(.bh-header-join,.bh-header-login) { font-size: 11px; }
  .bh-guest-header-actions > .bh-header-join { padding-inline: 10px; gap: 5px; }
  .bh-guest-header-actions > .bh-header-login { padding-inline-start: 10px; gap: 6px; }
}
.bh-custom-select { min-width: 0; max-width: 100%; }
:is(.bh-filters,.tap-report-filters,.rank-toolbar,.tap-kpi-toolbar) {
  align-items: center;
}
:is(.bh-filters,.tap-report-filters,.rank-toolbar,.tap-kpi-toolbar) > .bh-custom-select {
  min-width: min(100%,175px);
}
.bh-select-field { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.55; }
.bh-select-field > span { display: block; margin-bottom: 7px; }
.bh-custom-select > .bh-select-trigger {
  display: flex;
  width: 100%;
  min-height: 42px;
  height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  border: 1.5px solid var(--control-border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--control-ink);
  font-size: 13.5px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.bh-custom-select > .bh-select-trigger:hover:not(:disabled) { border-color: var(--control-icon); background: #fff; }
.bh-custom-select > .bh-select-trigger:is(:focus,[aria-expanded="true"]) {
  border-color: var(--control-ink);
  box-shadow: 0 0 0 3px var(--control-ring);
  outline: none;
}
.bh-custom-select > .bh-select-trigger[aria-invalid="true"] {
  border-color: var(--status-error-text);
  box-shadow: 0 0 0 2px var(--status-error-bg);
}
.bh-select-trigger:disabled { color: var(--dim); background: var(--control-hover); cursor: not-allowed; }
.bh-select-current { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-field-icon { width: 16px; height: 16px; color: var(--control-icon); flex: none; }
.bh-select-chevron { width: 15px; height: 15px; flex: none; transition: rotate .2s ease; }
.bh-select-trigger[aria-expanded="true"] .bh-select-chevron { rotate: 180deg; }
.bh-select-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  box-sizing: border-box;
  padding: 6px;
  width: max-content;
  border: 1.5px solid #eae4da;
  border-radius: 20px;
  background: #fff;
  color: var(--control-ink);
  box-shadow: 0 12px 32px rgb(30 30 30 / 8%);
  z-index: 50;
  overflow: auto;
  overscroll-behavior: contain;
}
.bh-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.bh-select-option span { min-width: 0; overflow-wrap: anywhere; }
.bh-select-option:is(:hover,.is-active) { background: var(--control-hover); }
.bh-select-option[aria-selected="true"] { background: var(--banner-green); font-weight: 700; }
.bh-select-option.is-active:not([aria-selected="true"]) { box-shadow: inset 0 0 0 1px var(--control-border); }
.bh-select-check { width: 15px; height: 15px; flex: none; visibility: hidden; }
.bh-select-option[aria-selected="true"] .bh-select-check { visibility: visible; }
.bh-select-compact > .bh-select-trigger { min-height: 34px; height: 34px; padding-inline: 10px; font-size: 12px; }
.bh-search-input {
  position: relative;
  flex: 1 1 250px;
  min-width: min(100%,250px);
  max-width: min(100%,320px);
}
.bh-search-input > .bh-field-icon {
  position: absolute;
  inset: 50% auto auto 16px;
  translate: 0 -50%;
  pointer-events: none;
}
.bh-search-input > input.bh-search-field[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  height: 42px;
  margin: 0;
  padding: 0 36px 0 41px;
  border: 1.5px solid var(--control-border);
  background: #fff;
  color: var(--control-ink);
  font-size: 13.5px;
}
.bh-search-input > input::placeholder { color: var(--control-icon); opacity: 1; }
.bh-search-input > input[type="search"]:focus {
  border-color: var(--control-ink);
  box-shadow: 0 0 0 3px var(--control-ring);
  outline: none;
}
.bh-search-input > input::-webkit-search-cancel-button { display: none; }
.bh-search-input > .bh-search-clear {
  position: absolute;
  inset: 50% 4px auto auto;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.bh-search-input > input:placeholder-shown + .bh-search-clear { display: none; }
.bh-search-input > .bh-search-clear:hover { background: var(--control-hover); }
@media (forced-colors: active) {
  .bh-custom-select > .bh-select-trigger:focus, .bh-search-input > input[type="search"]:focus { outline: 2px solid Highlight; }
  .bh-select-option:is([aria-selected="true"],.is-active) { outline: 1px solid Highlight; outline-offset: -1px; }
}
.bh-layout {
  flex: 1 0 auto;
  width: min(100%, 1536px);
  margin: 0 auto;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--layout-gap);
  padding: 32px var(--gutter) 64px;
}
.bh-public-layout, .bh-layout:has(.is-home) { display: flex; width: 100%; padding: 0; }
.bh-layout:has(.is-home) > #bh-nav { display: none; }
#bh-wireframe:has(#bh-main[data-screen]:not([data-screen="home"])) {
  background: var(--bg-subpage) var(--grid-pattern) 0 0 / var(--grid-size) var(--grid-size);
}
#bh-main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
}
.bh-public-layout #bh-main { max-width: 1312px; padding: 44px var(--gutter) 68px; }
#bh-main.is-home { max-width: none; padding: 0; }
#bh-nav {
  background: transparent;
  color: var(--ink);
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 4px;
  min-height: 0;
  align-self: start;
  position: sticky;
  top: 20px;
}
#bh-nav::before {
  content: 'QUẢN TRỊ';
  color: var(--dim);
  font: 750 10px var(--heading);
  letter-spacing: .13em;
  padding: 10px 12px 13px;
}
#bh-wireframe[data-role="creator"] #bh-nav::before { content: 'CREATOR'; }
#bh-nav :is(button,a) {
  border-radius: var(--radius-pill);
  color: var(--ink);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 650;
  margin: 2px 0;
  min-height: 44px;
  text-decoration: none;
}
#bh-nav :is(button,a)::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-inline: 4px;
  border-radius: 50%;
  background: #bdada2;
}
#bh-nav :is(button,a):hover { background: var(--surface); color: var(--ink); }
#bh-nav :is(button,a)[aria-current="page"] {
  background: var(--bg-nav-active);
  color: var(--ink);
  font-weight: 750;
}
#bh-nav :is(button,a)[aria-current="page"]::before { background: var(--ink); }
.page-breadcrumb { margin-bottom: 14px; font-size: 12px; }
.page-breadcrumb span { padding-inline: 7px; color: #83746b; }
#bh-main:has(.page-header-banner[data-theme="green"]) {
  --action-primary: var(--brand-sky);
  --action-primary-hover: var(--action-sky-hover);
}
.page-header-banner {
  --banner-fill: var(--banner-cream);
  --banner-accent: #76566b;
  --banner-rotation: -8deg;
  width: 100%;
  max-width: 1200px;
  min-height: 168px;
  margin: 0 auto 28px;
  padding: 30px 44px;
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--banner-fill);
  color: var(--banner-ink);
}
.page-header-banner[data-theme="yellow"] { --banner-fill: var(--banner-yellow); --banner-accent: #865610; }
.page-header-banner[data-theme="blue"] { --banner-fill: var(--banner-blue); --banner-accent: var(--brand-sky-text); }
.page-header-banner[data-theme="pink"] { --banner-fill: var(--banner-pink); --banner-accent: var(--brand-pink-text); }
.page-header-banner[data-theme="green"] { --banner-fill: var(--banner-green); --banner-accent: #4f691e; }
.page-header-banner[data-tilt="right"] { --banner-rotation: 8deg; }
.page-header-banner-copy { max-width: 60%; position: relative; z-index: 2; min-width: 0; }
.page-header-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  margin-bottom: 12px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: var(--banner-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.page-header-banner-eyebrow::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--banner-accent);
}
.page-header-banner h1 {
  margin: 0 0 8px;
  color: var(--banner-ink);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.page-header-banner-copy:has(.page-header-banner-subtitle[hidden]) h1 { margin-bottom: 0; }
.page-header-banner-subtitle {
  margin: 0;
  color: rgb(30 30 30 / 78%);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.page-header-banner-stage { position: absolute; inset: 0 0 0 auto; width: 35%; pointer-events: none; }
.page-header-banner-stage svg { position: absolute; display: block; }
.page-header-banner-character { width: 104px; height: 104px; bottom: -20px; right: 52px; transform: rotate(var(--banner-rotation)); }
.page-header-banner-star { width: 24px; height: 24px; top: 28px; right: 185px; transform: rotate(-12deg); }
.page-header-banner-dot { width: 11px; height: 11px; top: 38px; right: 36px; }
.page-header-banner-stage [data-color="cream"] { color: var(--banner-accent-cream); }
.page-header-banner-stage [data-color="pink"] { color: var(--banner-pink); }
.page-header-banner-stage [data-color="yellow"] { color: var(--banner-yellow); }
.page-header-banner :is(.page-header-banner-eyebrow,.page-header-banner-subtitle)[hidden] { display: none; }
.page-header-actions { margin-bottom: 16px; }
.page-header-actions:not(:has(button:not([hidden]))) { display: none; }
@media (width < 768px) {
  .page-header-banner { padding: 24px; }
  .page-header-banner-copy { max-width: 100%; }
  .page-header-banner-stage { display: none; }
}
.bh-footer {
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid rgb(30 30 30 / 8%);
  background: var(--bg-subpage);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 24px 32px;
}
.footer-inner p { margin: 6px 0 0; color: var(--control-icon); font-size: 13px; }
.bh-preview { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.bh-preview small { white-space: nowrap; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.bh-preview .bh-actions { flex-wrap: nowrap; gap: 6px; }
.bh-preview button {
  height: 38px;
  padding: 0 16px;
  border: 1.5px solid var(--control-border);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.bh-preview button[aria-pressed="true"] { border-color: var(--brand-pink); background: var(--brand-pink); }

/* Controls, forms and tables */
.bh-panel, dialog {
  background: var(--white);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.bh-panel, .registration-main .bh-panel { padding: var(--panel-padding); }
.bh-panel h2 { font-size: 20px; }
.bh-panel:where(form) > .bh-actions { margin-top: 18px; }
:is(.bh-primary, button[type="submit"], .pill-black, [data-variant="primary"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--action-primary);
  color: var(--action-primary-text);
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
}
:is(.bh-primary, button[type="submit"], .pill-black, [data-variant="primary"]):hover:not(:disabled) {
  background: var(--action-primary-hover);
}
.bh-button, .bh-filters button, .bh-panel button.bh-button:not([type="submit"]) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid #ded5cb;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.35;
}
.bh-button:hover, .bh-filters button:hover, .bh-panel button.bh-button:hover { background: var(--surface); }
.bh-filters button[aria-pressed="true"], .bh-panel .tap-scope-switch button[aria-pressed="true"],
.campaign-manager-tabs .bh-button[aria-pressed="true"] {
  border-color: #d5b3c6;
  background: var(--rose-tint);
  color: var(--accent);
}
.bh-notice { background: var(--leaf-tint); border: 1px solid #dce4c9; }
label, .bh-filters label { font-size: 13px; font-weight: 600; line-height: 1.55; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  background: var(--field-surface);
  border: var(--field-border-width) solid var(--field-border);
  border-radius: var(--radius-pill);
  min-height: var(--field-min-height);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 400;
}
textarea { min-height: 112px; border-radius: var(--radius-row); }
input:focus, select:focus, textarea:focus { border-color: #9d6c8a; }
input[type="checkbox"], input[type="radio"], #bh-application-rows input[type="checkbox"] { accent-color: var(--accent); }
input[readonly], .registration-work-form input[readonly] { background: #f0ebe3; color: #504b46; }
.bh-form { gap: 20px; }
.bh-filters, .tap-report-filters { gap: 12px; }
.bh-table {
  background: transparent;
  border: 0;
  border-radius: 0;
  overscroll-behavior-inline: contain;
}
.bh-table.bh-panel, .campaign-manager-table { padding: 0; }
.bh-table table { font-size: 12px; line-height: 1.55; }
:is(.bh-table table, .rank-table) {
  border-collapse: separate;
  border-spacing: 0 var(--row-gap);
}
:is(.bh-table, .rank-table-wrap) th {
  color: var(--dim);
  font-size: 11px;
  font-weight: 750;
}
:is(.bh-table, .rank-table-wrap) :is(th, td) { padding: 12px 16px; border: 0; }
:is(.bh-table, .rank-table-wrap) tbody tr { --row-surface: var(--bg-row); }
:is(.bh-table, .rank-table-wrap) tbody tr:nth-child(even) { --row-surface: var(--bg-row-alt); }
:is(.bh-table, .rank-table-wrap) tbody tr:is(:hover, :focus-within) { --row-surface: var(--bg-row-active); }
:is(.bh-table, .rank-table-wrap) tbody td { background: var(--row-surface); }
:is(.bh-table, .rank-table-wrap) tbody td:first-child { border-radius: var(--radius-row) 0 0 var(--radius-row); }
:is(.bh-table, .rank-table-wrap) tbody td:last-child { border-radius: 0 var(--radius-row) var(--radius-row) 0; }
:is(.bh-table, .rank-table-wrap) tbody td:only-child { border-radius: var(--radius-row); }
#bh-creator-account-results, #bh-admin-report { padding: 0; background: transparent; }
.bh-table td .bh-small { font-size: 11px; }
.bh-table .bh-metric-cell { font-variant-numeric: tabular-nums; }
.campaign-list-table :is(th, td):nth-child(n+3):nth-child(-n+5) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.bh-table + .bh-actions { margin-top: 14px; }
#bh-creator-account-status:empty { display: none; }
#bh-creator-account-results > .bh-filters { margin-top: 0; }
#bh-creator-account-results > .bh-row { margin-top: 14px; }
#bh-creator-account-page { margin: 0; }
.bh-account-actions { min-width: 0; width: max-content; flex-wrap: nowrap; }
.bh-panel button.admin-icon-button:not([type="submit"]), .admin-icon-button {
  min-width: 36px;
  min-height: 36px;
  padding: 0 !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--accent);
}
.bh-panel button.admin-icon-button:hover, .admin-icon-button:hover { background: var(--rose-tint); border-color: #dfc1d3; }
.admin-status {
  --status-bg: #eeece6;
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--status-bg);
  font-size: 11px;
  line-height: 1.4;
}
.admin-status[data-tone="green"] { --status-bg: var(--status-success-bg); }
.admin-status[data-tone="amber"] { --status-bg: var(--status-warning-bg); }
.admin-status[data-tone="red"] { --status-bg: var(--status-error-bg); }
.admin-status[data-tone="blue"] { --status-bg: var(--blue-tint); }
.admin-status[data-tone="green"] { color: var(--status-success-text); }
.admin-status[data-tone="amber"] { color: var(--status-warning-text); }
.admin-status[data-tone="red"] { color: var(--status-error-text); }
.admin-status[data-tone="blue"] { color: var(--status-info-text); }
dialog { padding: var(--panel-padding); }
dialog::backdrop { background: #2b25306b; backdrop-filter: blur(3px); }

/* Sample registration, live calendar and news */
.registration-main { container: registration-layout / inline-size; }
#bh-registration-steps,
#bh-registration-campaigns { width: 100%; max-width: 1200px; margin-inline: auto; }
.registration-steps {
  --step-connector: #E6E0D6;
  display: flex;
  list-style: none;
  margin-block: 0 28px;
  padding: 0;
}
.registration-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #8C857B;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}
.registration-steps li:not(:last-child) { flex: 1 0 auto; }
.registration-steps li:not(:last-child)::after {
  content: '';
  flex: 1 1 20px;
  height: 1.5px;
  margin-inline: 4px 14px;
  background: var(--step-connector);
}
.registration-step-marker {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F2EDE4;
}
.registration-steps li:is([aria-current="step"],.registration-step-done) { color: #1E1E1E; }
.registration-steps [aria-current="step"] { font-weight: 700; }
.registration-steps [aria-current="step"] .registration-step-marker { background: var(--banner-yellow); font-weight: 800; }
.registration-step-done .registration-step-marker { background: var(--banner-green); font-weight: 800; }
.registration-step-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.registration-main #bh-application-body { container: campaign-card-list / inline-size; }
.registration-campaign-grid { display: grid; gap: 16px; }
.registration-campaign-card {
  --card-border: #EAE4DA;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 16px 24px;
  min-width: 0;
  align-items: center;
  padding: 24px 28px;
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  background: #FFFFFF;
  color: #1E1E1E;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.registration-campaign-card:is(:hover,:focus-within,.is-selected) {
  --card-border: #A7CE8D;
  outline: .5px solid var(--card-border);
  box-shadow: 0 8px 24px rgb(30 30 30 / 5%);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .registration-campaign-card:is(:hover,.is-selected) { transform: translateY(-2px); }
}
/* Checkerboard colors keep adjacent titles distinct across column counts. */
.registration-campaign-card { --campaign-title-text: var(--brand-pink); }
.registration-campaign-card:nth-child(even) { --campaign-title-text: var(--brand-sky); }
.campaign-card-copy { min-width: 0; }
.campaign-card-title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }
.campaign-card-title-button {
  display: inline-block;
  min-height: 44px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--campaign-title-text);
  font: inherit;
  text-align: left;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.campaign-card-title-button:hover { text-decoration: underline; text-underline-offset: .15em; }
.campaign-terms { display: grid; gap: 4px; margin: 12px 0 0; }
.campaign-terms div { display: flex; align-items: baseline; gap: 6px; }
.campaign-terms dt, .campaign-terms dd { margin: 0; font-size: 13px; }
.campaign-terms dd { font-weight: 800; font-variant-numeric: tabular-nums; }
.campaign-card-actions { justify-self: start; }
.registration-campaign-card .campaign-card-cta {
  --action-primary: var(--banner-green);
  --action-primary-hover: #BCE864;
  --action-primary-text: #1E1E1E;
  border: 0;
  padding: 12px 24px;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
@container campaign-card-list (min-width: 620px) {
  .registration-campaign-grid-many { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .registration-campaign-grid:not(.registration-campaign-grid-many) .registration-campaign-card {
    grid-template-columns: minmax(0,1fr) auto;
  }
}
@container campaign-card-list (620px <= width < 1080px) {
  .registration-campaign-grid-many .registration-campaign-card:nth-child(4n) { --campaign-title-text: var(--brand-pink); }
  .registration-campaign-grid-many .registration-campaign-card:nth-child(4n + 3) { --campaign-title-text: var(--brand-sky); }
}
@container campaign-card-list (min-width: 1080px) {
  .registration-campaign-grid-many { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@container registration-layout (max-width: 700px) {
  .registration-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .registration-steps li { position: relative; flex-direction: column; gap: 6px; padding-inline: 3px; text-align: center; }
  .registration-steps li:not(:last-child)::after {
    position: absolute;
    top: 15px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    margin: 0;
  }
}
@media (max-width: 650px) {
  .registration-steps li { font-size: 12px; }
  .registration-campaign-card { padding: 18px; }
}
.campaign-info-product img { background: var(--white); }
.campaign-info-product { background: var(--surface); }
.registration-selected-campaign { padding: 16px 24px; border: 0; border-radius: var(--radius-card); background: var(--blue-tint); }
.registration-fieldset { border-color: var(--line); }
.registration-fieldset, .registration-agreements { padding: 13px 16px; background: #fdfbf7; border-radius: var(--small-radius); }
.registration-fieldset label:has(input:checked), .registration-agreements label:has(input:checked) { color: var(--accent); }
.registration-page-actions { border-top: 1px solid var(--line); padding-top: 18px; }
.live-event, .news-tile {
  background: var(--white);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.live-event:nth-child(even) { background: var(--blue-tint); }
#bh-upcoming-live .live-event:first-child { background: var(--rose-tint); }
.live-event p, .news-body p { font-size: 13px; }
.live-date {
  width: 72px;
  min-height: 88px;
  height: auto;
  padding: 12px 4px;
  border-radius: var(--radius-pill);
  background: var(--brand-sun);
}
.live-event:nth-child(2n) .live-date { background: var(--brand-pink); }
@media (min-width: 651px) {
  .news-grid > article:is(:nth-child(4n + 2),:nth-child(4n + 3)) { background: var(--rose-tint); }
}
@media (max-width: 650px) {
  .news-grid > article:nth-child(even) { background: var(--rose-tint); }
}
.news-grid > article { min-width: 0; }
.news-grid > article .bh-button { margin-top: var(--space-3); }
.post-excerpt { overflow-wrap: anywhere; color: var(--dim); }
.admin-post-image { border-radius: var(--radius-row); }
.post-reader {
  width: min(780px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: var(--panel-padding);
  overflow: auto;
}
.post-reader .dialog-top { margin-bottom: var(--space-4); }
.post-article { max-width: 66ch; margin-inline: auto; overflow-wrap: anywhere; }
.post-article h2 { font-size: clamp(24px, 4vw, 36px); line-height: 1.25; margin: 0 0 var(--space-4); }
.post-article .admin-post-image { max-height: 420px; }
.post-standfirst { font-size: 1.1em; font-weight: 650; color: var(--dim); }
dialog.post-reader-preview[open] {
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  background: #FBF9F5;
}
.post-reader-preview > .dialog-top {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-block: 8px;
  background: #FBF9F5;
}
.post-editor-field { min-width: 0; }
#bh-post-body-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.post-editor-canvas {
  border: 1.5px solid #D6D1C7;
  border-radius: 24px;
  background: #fff;
}
.post-editor-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}
.post-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  overflow-x: auto;
  background: #F6F4EE;
  border-bottom: 1px solid rgb(30 30 30 / 8%);
  border-radius: 23px 23px 0 0;
  scrollbar-width: thin;
}
.post-tool-group { display: flex; align-items: center; gap: 4px; flex: none; }
.post-tool-group + .post-tool-group::before {
  content: '';
  height: 18px;
  width: 1px;
  margin: 0 6px;
  background: rgb(30 30 30 / 12%);
}
.post-toolbar button.post-tool-button, .post-toolbar-popover .post-swatch {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1E1E1E;
}
.post-tool-button svg { width: 18px; height: 18px; stroke-width: 2; }
.post-toolbar button.post-tool-button:is(:hover,:focus-visible,[aria-expanded="true"]) { background: #fff; }
.post-toolbar button.post-tool-button:is([aria-pressed="true"],.is-active) { background: var(--banner-green); }
.post-toolbar-popover {
  position: absolute;
  inset: var(--post-popover-top,100%) var(--post-popover-right,8px) auto auto;
  width: min(360px,calc(100% - 16px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.post-toolbar-popover[hidden] { display: none; }
.post-toolbar-popover .bh-actions { justify-content: flex-end; margin-top: 10px; }
.post-toolbar-popover label { margin-bottom: 8px; }
.post-toolbar-popover :is(input:not([type="checkbox"]),select) { min-height: 38px; }
.post-popover-error { margin: 4px 0; color: var(--status-error-text); font-size: 13px; }
.post-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.post-toolbar-popover .post-swatch { border: 1px solid var(--line); background: var(--swatch); }
.post-figure-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.post-editor-canvas .post-editable.ql-container { border: 0; font-family: inherit; }
.post-editor-canvas .ql-editor {
  min-height: 380px;
  overflow: visible;
  padding: clamp(16px,3vw,28px);
  white-space: pre-wrap;
}
.post-editor-canvas .ql-editor:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -3px; }
.post-editor-canvas .ql-editor[aria-invalid="true"] { outline: 2px solid var(--status-error-text); outline-offset: -3px; }
.post-editor-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
}
.post-editor-footer [data-post-autosave] { margin-inline-start: auto; }
.post-rich-content { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.post-rich-content :is(p,h2,h3,ul,ol,blockquote) { margin-block: 0 14px; }
.post-rich-content :is(h2,h3) { font-size: 1.35em; line-height: 1.35; }
.post-rich-content h3 { font-size: 1.15em; }
.post-rich-content :is(ol,ul) { padding-inline-start: 1.6em; }
.post-rich-content blockquote {
  padding: 8px 16px;
  border-inline-start: 4px solid var(--brand-pink);
  background: var(--rose-tint);
  border-radius: 0 16px 16px 0;
}
.post-rich-content a { color: var(--status-info-text); text-decoration: underline; }
.post-rich-content img { display: block; max-width: 100%; max-height: 560px; object-fit: contain; border-radius: 16px; }
.post-rich-content [data-align="center"] { text-align: center; }
.post-rich-content [data-align="right"] { text-align: right; }
.post-rich-content [data-align="justify"] { text-align: justify; }
.post-rich-content .ql-font-serif { font-family: Georgia,serif; }
.post-rich-content .ql-size-small { font-size: 14px; }
.post-rich-content .ql-size-large { font-size: 18px; }
.post-rich-content hr { border: 0; border-top: 1px solid #D6D1C7; margin-block: 24px; }
.post-rich-content .post-figure {
  width: 100%;
  margin: 14px auto;
}
.post-rich-content .post-figure[data-width="50"] { width: 50%; }
.post-rich-content .post-figure[data-width="75"] { width: 75%; }
.post-rich-content .post-figure[data-align="left"] { margin-inline-start: 0; }
.post-rich-content .post-figure[data-align="right"] { margin-inline-end: 0; }
.post-rich-content .post-figure img { width: 100%; }
.post-quill-figure { cursor: pointer; }
.post-quill-figure:is(:hover,:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 16px; }
.post-rich-content figcaption { margin-top: 6px; font-size: 13px; font-style: italic; text-align: center; color: var(--dim); }
.post-video-frame { margin: 16px auto; text-align: center; }
.post-video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: var(--surface); }
.post-video-frame[data-provider="tiktok"] iframe { max-width: 360px; aspect-ratio: 9 / 16; margin-inline: auto; }
.post-cover-fields { margin-top: 12px; }
.post-cover-picker { padding: 12px; border-radius: 20px; background: #FBF9F5; }
.post-cover-picker.is-dragging { outline: 2px dashed var(--focus-ring); }
.post-cover-drop { display: grid; place-content: center; gap: 6px; width: 100%; min-height: 104px; padding: 16px; border: 1px dashed var(--field-border); border-radius: 16px; background: #fff; color: var(--ink); }
.post-cover-drop span { color: var(--dim); font-size: 12px; }
.post-cover-preview { display: block; width: 100%; max-height: 220px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.post-cover-actions { margin-top: 8px; }
.post-text-button { padding: 8px; min-height: 36px; color: var(--accent); background: transparent; text-decoration: underline; }
.post-editor-message { margin: 4px 0; }
@media (pointer: coarse) {
  .post-toolbar button.post-tool-button { min-width: 44px; min-height: 44px; }
}
.post-editor-actions { justify-content: flex-end; }
.news-visual { min-height: 130px; height: clamp(130px, 17vw, 215px); }

/* Reports */
.tap-kpi-dashboard {
  --report-gap: var(--layout-gap);
  container: report-layout / inline-size;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--report-gap);
  color: var(--ink);
}
.tap-kpi-dashboard > * { min-width: 0; }
.tap-kpi-intro, .tap-kpi-toolbar, .tap-kpi-section {
  background: var(--white);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.tap-kpi-intro { padding: 0; gap: 12px; }
.tap-kpi-intro h2 { font-size: 19px; overflow-wrap: anywhere; }
.tap-kpi-intro .tap-report-filters { margin: 0; }
.tap-kpi-intro .tap-report-filters .bh-custom-select { flex: 1 1 175px; }
.tap-kpi-toolbar { padding: 0; }
.tap-kpi-dashboard > :is(.tap-kpi-intro, .tap-kpi-toolbar), .tap-kpi-section:has(> .tap-kpi-grid) { background: transparent; }
.tap-kpi-section:has(> .tap-kpi-grid) { padding: 0; }
.tap-report-chapter { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--report-gap); }
@container report-layout (min-width: 780px) {
  .tap-report-chapter { grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr); }
}
@container report-layout (min-width: 610px) {
  .tap-kpi-intro:has(> .bh-row) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 2px 20px;
  }
  .tap-kpi-intro:has(> .bh-row) > .tap-report-filters { grid-area: 1 / 2 / span 2; }
  .tap-kpi-intro:has(> .bh-row) > .bh-small { grid-column: 1; }
  .tap-kpi-intro > .bh-button { grid-column: 1 / -1; margin-top: 9px; }
}
.tap-kpi-section { grid-template-columns: minmax(0, 1fr); padding: clamp(16px, 2vw, 24px); gap: 16px; align-content: start; }
.tap-kpi-header h2 { font: 800 clamp(17px, 1.55vw, 21px)/1.28 var(--heading); }
.tap-kpi-badge {
  background: var(--surface);
  color: var(--dim);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.tap-kpi-grid { grid-template-columns: repeat(var(--tap-card-columns), minmax(0, 1fr)); gap: 16px; }
.tap-kpi-card {
  padding: clamp(16px, 2vw, 24px);
  border: 0;
  border-radius: var(--radius-card);
  min-height: 92px;
  background: var(--bg-paper);
}
.tap-kpi-card[data-metric="gmv"] { background: var(--bg-kpi-gmv); }
.tap-kpi-card[data-metric="video"] { background: var(--bg-kpi-video); }
.tap-kpi-card[data-metric="orders"] { background: var(--bg-kpi-orders); }
.tap-kpi-card:is([data-metric="live"], [data-metric="showcase"]) { background: var(--bg-kpi-live); }
.tap-kpi-outlined .tap-kpi-card:is([data-metric="orders"], [data-metric="video"], [data-metric="live"], [data-metric="showcase"]) {
  background: var(--kpi-border);
  border: 2px solid var(--kpi-border);
}
.tap-kpi-outlined [data-metric="orders"] { --kpi-border: var(--brand-sun); }
.tap-kpi-outlined [data-metric="video"] { --kpi-border: var(--brand-sky); }
.tap-kpi-outlined :is([data-metric="live"], [data-metric="showcase"]) { --kpi-border: var(--brand-lime); }
.tap-kpi-feature { grid-column: span 2; }
.tap-kpi-full { grid-column: 1 / -1; }
.tap-kpi-card dt { color: var(--ink); font-size: 12px; font-weight: 650; }
.tap-kpi-card dd {
  color: var(--ink);
  font: 800 clamp(15px, 1.55vw, 22px)/1.2 var(--heading);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.tap-kpi-feature dd { font-size: clamp(22px, 3vw, 36px); }
.tap-kpi-pair .tap-kpi-line { gap: 5px 8px; }
.tap-kpi-pair .tap-kpi-line + .tap-kpi-line {
  padding-top: 4px;
}
.tap-kpi-pair .tap-kpi-line + .tap-kpi-line dd { font-size: 13px; }
.tap-kpi-pair dd { white-space: normal; }
.tap-kpi-chart { --tap-plot-height: 172px; gap: 7px; padding-top: 10px; }
.tap-kpi-chart-grid { position: relative; gap: var(--chart-month-gap); }
.tap-kpi-grid-lines { position: absolute; inset: 0 0 auto; height: var(--tap-plot-height); pointer-events: none; }
.tap-kpi-grid-lines i { position: absolute; inset-inline: 0; border-bottom: 1px solid var(--chart-grid); }
.tap-kpi-grid-lines .tap-kpi-zero-line { border-color: var(--field-border); }
.tap-kpi-month { position: relative; color: var(--dim); border-radius: var(--radius-row); font-size: 11px; }
.tap-kpi-month:is(:hover, [aria-current="date"]) { color: var(--ink); }
.tap-kpi-month-label { justify-self: center; padding: 2px 6px; border-radius: var(--radius-pill); white-space: nowrap; }
.tap-kpi-month:is(:hover,[aria-current="date"]) .tap-kpi-month-label { background: var(--brand-sun); }
.tap-kpi-month[aria-current="date"] .tap-kpi-month-label { font-weight: 800; }
.tap-kpi-bar-area { gap: 4px; }
.tap-kpi-bar { border-radius: var(--radius-pill); }
.tap-kpi-legend { margin-bottom: 12px; line-height: 1.5; color: #60534d; }
.tap-kpi-axis { color: #615952; }
[data-series="total"] { background: var(--chart-total); }
[data-series="posted"] { background: var(--chart-posted); }
[data-series="independent"] { background: var(--chart-independent); }
.tap-kpi-plot {
  --chart-total: var(--brand-pink);
  --chart-posted: var(--brand-leaf);
  --chart-independent: var(--brand-sky);
}
.tap-kpi-plot [data-series="total"] { border: 1px solid #a04776; }
.tap-kpi-plot [data-series="posted"] { border: 1px solid #527738; }
.tap-kpi-plot [data-series="independent"] { border: 1px solid #386a98; }
.tap-kpi-bar[data-zero] { min-height: 4px; }
.tap-kpi-lane { width: var(--chart-bar-width); }
.tap-kpi-tooltip {
  z-index: var(--z-popover);
  background: var(--ink);
  border-radius: var(--radius-row);
  padding: 12px 16px;
  font-size: 12px;
  pointer-events: auto;
  box-shadow: var(--shadow);
}
.tap-kpi-small-multiples { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.tap-kpi-small-plot { min-width: 0; }
.tap-kpi-small-plot + .tap-kpi-small-plot { padding-top: var(--space-4); border-top: 1px solid var(--line); }
.tap-kpi-small-plot .tap-kpi-chart { --tap-plot-height: 104px; }
.tap-kpi-chart-data { margin-top: 10px; }
.tap-kpi-chart-data summary { color: var(--accent); font-size: 12px; font-weight: 650; }
.report-table td:first-child { min-width: 138px; }
.report-table :is(th, td):first-child {
  position: sticky;
  z-index: var(--z-content);
  left: 0;
}

@container tap-kpi (max-width: 800px) {
  .tap-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container tap-kpi (max-width: 370px) {
  .tap-kpi-chart { --tap-plot-height: 125px; }
}

/* Leaderboard uses the same canvas and paper rows as the workspace. */
.rank-page { max-width: 940px; margin-inline: auto; }
.rank-page-body { padding: 0 0 32px; }
.rank-public-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.rank-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.rank-page .rank-public-controls .rank-toolbar { margin: 0; }
.rank-type {
  --rank-accent: var(--brand-sun);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: var(--bg-paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}
.rank-type[data-metric="videos"] { --rank-accent: var(--brand-pink); }
.rank-type[data-metric="views"] { --rank-accent: var(--brand-sky); }
.rank-type[aria-pressed="true"], .rank-type:hover { background: var(--rank-accent); }
.rank-type-icon { display: inline-flex; align-items: center; }
.rank-type-icon svg { width: 19px; height: 19px; }
.rank-position {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
[data-podium="1"] .rank-position { background: var(--brand-sun); }
[data-podium="2"] .rank-position { background: var(--brand-pink); }
[data-podium="3"] .rank-position { background: var(--brand-sky); }
.rank-admin-card { padding: 16px; border: 0; border-radius: var(--radius-card); }

@media (max-width: 1080px) {
  .bh-layout:not(.bh-public-layout) { grid-template-columns: 184px minmax(0, 1fr); }
}
@media (max-width: 1390px) {
  #bh-wireframe[data-role="admin"] .bh-topnav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    border-top: 1px solid var(--line);
    padding-top: 6px;
  }
}
@media (max-width: 950px) {
  .bh-header-inner { flex-wrap: wrap; gap: 10px 14px; }
  .bh-topnav { padding-top: 8px; }
  .bh-topnav :is(button,a) { padding: 8px; }
}
@media (max-width: 800px) {
  .bh-layout:not(.bh-public-layout):not(:has(.is-home)) { display: block; padding-top: 16px; }
  #bh-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    position: relative;
    top: auto;
    margin-bottom: 20px;
    padding: 5px;
    border-radius: var(--radius-row);
    scrollbar-width: thin;
  }
  #bh-nav::before { display: none; }
  #bh-nav :is(button,a) {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    margin: 0;
    padding: 8px 12px;
  }
  #bh-nav :is(button,a)::before { display: none; }
}
@media (max-width: 650px) {
  .bh-brand { font-size: 23px; }
  .bh-topnav { justify-content: start; gap: 4px; margin-top: 0; }
  .bh-topnav :is(button,a) { max-width: none; flex: 1; font-size: 11px; line-height: 1.35; }
  .bh-header-actions { gap: 3px; }
  .bh-header-actions > button { padding-inline: 8px; font-size: 11px; }
  .bh-public-layout #bh-main:not(.is-home) { padding-block: 24px 38px; }
  .bh-table :is(th, td) { padding: 10px; }
  .report-table td:first-child { min-width: 112px; }
  .report-table td:first-child a { min-width: 0; }
  .tap-kpi-toolbar .bh-button { font-size: 12px; }
  .tap-kpi-card dt { font-size: 11px; }
  .rank-type { padding-inline: 12px; }
}
@media (pointer: coarse) {
  .bh-panel button.admin-icon-button:not([type="submit"]), .admin-icon-button { min-width: 44px; min-height: 44px; }
}

/* Interaction states shared by public, Creator and admin pages. */
.legal-note, .dialog-error { font-size: 12px; }
.legal-note { color: var(--dim); }
.dialog-error, .registration-error { color: var(--status-error-text); }
:is(.bh-primary, .bh-button, .admin-icon-button, [data-variant], .rank-type, .portal) {
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.bh-primary, .bh-button, .admin-icon-button, [data-variant], .rank-type):hover:not(:disabled) {
    transform: translateY(-1px);
  }
}
:is(.bh-primary, .bh-button, .admin-icon-button, [data-variant], .rank-type):active:not(:disabled) {
  transform: scale(.98);
}
@media (prefers-reduced-motion: reduce) {
  :is(.bh-primary, .bh-button, .admin-icon-button, [data-variant], .rank-type, .portal) {
    transition: none;
  }
  :is(.bh-primary, .bh-button, .admin-icon-button, [data-variant], .rank-type, .portal):is(:hover,:active) {
    transform: none;
  }
}
:is(button, a)[data-variant="danger"],
.bh-panel button.admin-icon-button[data-variant="danger"] {
  background: var(--status-error-bg);
  color: var(--status-error-text);
  border-color: var(--status-error-text);
}
:is(button, a)[data-variant="danger"]:hover:not(:disabled),
.bh-panel button.admin-icon-button[data-variant="danger"]:hover {
  background: color-mix(in srgb, var(--status-error-bg) 87%, var(--status-error-text));
}
button[data-variant="secondary"] {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}
.site-confirm .bh-actions { justify-content: flex-end; }

.hero {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 0;
  padding: 0;
  background: var(--bg-canvas) var(--grid-pattern) 0 0 / var(--grid-size) var(--grid-size);
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-block: auto;
  padding: clamp(48px, 8vh, 88px) 24px 44px;
}
.hero-foot {
  position: static;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 20px;
  gap: 16px;
}
.hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.1; }
.hero p { font-size: 14px; color: var(--dim); line-height: 1.55; }
.orbit-blue { background: var(--brand-sky); }
.orbit-blue::before { clip-path: none; border-radius: inherit; }
.orbit-yellow { clip-path: none; border-radius: 50%; }
.orbit-coral { clip-path: none; border-radius: 48px 48px 24px 24px; }
.orbit-green { background: var(--brand-leaf); border-radius: 56% 24% 24% 56%; }
.stage-pink { background: var(--rose-tint); }
.stage-blue { background: var(--blue-tint); }
.stage-peach { background: var(--peach-tint); }
.stage-green, .community-banner { background: var(--leaf-tint); }
.hero-kicker {
  position: relative;
  isolation: isolate;
  padding: var(--space-2) var(--space-4);
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
}
.hero-kicker::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 42px;
  height: 20px;
  top: -8px;
  right: -14px;
  border-radius: var(--radius-pill);
  transform: rotate(24deg);
  background: var(--brand-pink);
  opacity: .72;
  pointer-events: none;
}
.hero-actions {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  width: min(100%, 594px);
  gap: var(--space-3);
  margin-top: 6px;
}
.hero-actions .hero-action { justify-content: space-between; text-align: start; gap: 10px; padding-inline: 19px; }
.hero-action-samples { --action-primary: var(--brand-lime); --action-primary-hover: #b8e366; }
.hero-action-live { --action-primary: var(--brand-sky); --action-primary-hover: var(--action-sky-hover); }
.hero-action-rank { --action-primary: var(--brand-pink); --action-primary-hover: #f2a2c7; }
.bh-header-actions :is(.bh-profile-icon,.bh-notice-bell):not([hidden]) { display: inline-grid; place-items: center; padding: 0; width: 44px; border: 1px solid var(--line); }
.bh-header-actions :is(.bh-profile-icon,.bh-notice-bell) svg { width: 21px; height: 21px; }
.bh-notice-bell { position: relative; }
.bh-notice-count {
  position: absolute;
  inset: -4px -4px auto auto;
  min-width: 19px;
  padding: 1px 4px;
  border-radius: var(--radius-pill);
  background: var(--brand-pink);
  color: var(--ink);
  font-size: 10px;
}
.campaign-manager-header.admin-list-actions { justify-content: flex-end; }
.admin-list-actions:not(:has(button:not([hidden]))) { display: none; }
#bh-nav .creator-sample-cta {
  background: var(--brand-lime);
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-weight: 800;
}
#bh-nav .creator-sample-cta::before { display: none; }
#bh-nav .creator-sample-cta:is(:hover,[aria-current="page"]) { background: var(--action-primary-hover); }
.bh-arrow-icon {
  --arrow-shape: url('/arrow-circle.svg');
  --arrow-size: 18px;
  display: inline-block;
  flex: none;
  inline-size: var(--arrow-size);
  block-size: var(--arrow-size);
  vertical-align: middle;
  background-color: currentColor;
  mask: var(--arrow-shape) center / contain no-repeat;
}
.bh-arrow-icon[data-arrow="left"] { rotate: 180deg; }
.bh-arrow-icon[data-arrow="up"] { rotate: -90deg; }
.bh-arrow-icon[data-arrow="down"] { rotate: 90deg; }
.bh-arrow-icon[data-arrow="both"] { --arrow-shape: url('/arrow-circle-both.svg'); rotate: 90deg; }
.hero-action .bh-arrow-icon, .bh-cta-arrow { --arrow-size: 22px; }
:is(.admin-icon-button, .post-tool-button) .bh-arrow-icon { --arrow-size: 20px; }
.bh-nav-group summary .bh-arrow-icon { --arrow-size: 16px; }
@media (forced-colors: active) {
  .bh-arrow-icon { forced-color-adjust: none; background-color: ButtonText; }
}
.hero h1 > span::after { background: var(--brand-sun); border-radius: var(--radius-pill); }

.registration-field { min-width: 0; }
.field-error:empty { display: none; }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  color: var(--status-error-text);
  font-size: 12px;
  font-weight: 650;
}
.field-error:not(:empty)::before {
  content: '!';
  display: grid;
  place-items: center;
  flex: 0 0 16px;
  height: 16px;
  color: var(--white);
  background: var(--status-error-text);
  border-radius: 50%;
}
:is(input,select,textarea)[aria-invalid="true"],
.registration-field.has-error > :is(fieldset,.registration-agreements) {
  border-color: var(--status-error-text);
  box-shadow: 0 0 0 2px var(--status-error-bg);
}
.registration-field label:has(input:is([type=radio],[type=checkbox])),
#bh-creator-account-options label { min-height: 44px; align-items: center; }

.site-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-row);
  background: var(--white);
  white-space: normal;
  min-width: 0;
}
.site-notice p { margin: 0; font-size: 13px; }
.site-notice .bh-button { margin-top: var(--space-2); }
.site-notice-mark {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-sun);
  color: var(--ink);
  font-size: 18px;
}
.site-notice[data-tone="error"] .site-notice-mark { background: var(--status-error-bg); color: var(--status-error-text); }

:is(.bh-table,.rank-table-wrap) {
  max-block-size: min(66vh, 38rem);
  overflow: auto;
  scroll-padding-block-start: 56px;
}
:is(.bh-table,.rank-table-wrap) thead th {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bg-canvas);
}
.report-table thead th:first-child { z-index: calc(var(--z-sticky) + 1); }
.report-table tbody td:first-child { z-index: var(--z-content); }
.rank-table-wrap { border-radius: var(--small-radius); }
.rank-table-wrap .rank-table th { padding-block: 8px; }
.report-load-status { margin-bottom: var(--space-3); }

@media (max-width: 650px), (pointer: coarse) {
  .bh-panel button.admin-icon-button:not([type="submit"]), .admin-icon-button {
    min-width: 44px;
    min-height: 44px;
  }
  :is(.bh-button, .bh-primary, .bh-filters button, .dialog-top > button, [data-account-close]) {
    min-height: 44px;
  }
  .dialog-top > button { min-width: 44px; }
  .hero-kicker { font-size: 10px; }
}

@media (max-width: 650px) {
  .hero h1 { font-size: clamp(34px, 9.7vw, 49px); }
  .bh-toast { bottom: 16px; }
}

#bh-main:not(.is-home) :is(.bh-kpi, .admin-stat-card, .report-metrics > div,
  .campaign-manager-choice, .campaign-form-builder, .campaign-builder-cover, .campaign-question-card,
  .campaign-info-product, .bh-account-fields, .bh-notice, .bh-thumb, .admin-post-image, .bh-chat) {
  border-radius: var(--radius-row);
}
#bh-main:not(.is-home) :is(.bh-tag, .date-chip, .status-chip) { border-radius: var(--radius-pill); }
#bh-main .live-event button.bh-button { min-height: 44px; padding: 8px 14px; }
#bh-main:not(.is-home) .bh-panel:has(> .bh-table) { box-shadow: none; }
.registration-work-form .registration-fieldset { border-radius: var(--radius-row); }
.tap-kpi-section:not(:has(> .tap-kpi-grid)) { padding: var(--card-padding); }
.rank-admin-card .rank-table tbody td { --row-surface: var(--bg-row-alt); }

@media (max-width: 650px) {
  :root { --card-padding: 16px; }
  .rank-table-wrap :is(th, td) { padding-inline: 8px; }
  .rank-table tbody td:last-child { overflow-wrap: anywhere; }
  .live-date { width: min(72px, 100%); min-height: 76px; }
  .tap-kpi-card { border-radius: var(--radius-row); }
}

/* Table controls and workspace navigation */
:is(.bh-table,.rank-table-wrap) table { width: max-content; min-width: 100%; }
:is(.bh-table,.rank-table-wrap) :is(th,td) { white-space: nowrap; min-inline-size: 88px; }
:is(.bh-table,.rank-table-wrap) :is(th,td):has(input[type="checkbox"]) { min-inline-size: 48px; }
:is(.bh-table,.rank-table-wrap) td:has(.site-notice) { white-space: normal; }
.bh-row-title {
  display: block;
  max-inline-size: clamp(145px,23vw,300px);
  min-inline-size: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
#bh-main button.bh-row-link, #bh-main button.bh-sort-header, #bh-main button.bh-copy-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 750;
  text-align: start;
  box-shadow: none;
  min-height: 32px;
}
#bh-main :is(.bh-row-link,.bh-sort-header):is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.bh-sort-header { white-space: nowrap; }
.bh-sort-header span { margin-inline-start: 5px; color: var(--dim); }
th[aria-sort] .bh-sort-header span { color: var(--accent); }
.bh-inline-identity, .bh-copy-cell, .bh-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.bh-copy-cell .bh-copy-button { opacity: 0; min-inline-size: 30px; text-align: center !important; }
:is(.bh-copy-cell,.bh-inline-identity):is(:hover,:focus-within) .bh-copy-button { opacity: 1; }
.bh-copy-id-only > span { display: none; }
.bh-action-menu { display: inline-flex; }
#bh-main .bh-menu-trigger { min-inline-size: 38px; min-block-size: 38px; padding: 6px 12px; }
.bh-action-popover {
  position: fixed;
  inset: var(--menu-edge,8px) var(--menu-right,8px) auto auto;
  margin: 0;
  padding: 6px;
  min-inline-size: min(188px,calc(100vw - 16px));
  max-inline-size: calc(100vw - 16px);
  max-block-size: min(55vh,420px);
  overflow: auto;
  color: var(--ink);
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-row);
  box-shadow: 0 12px 28px #3e2a3320;
}
.bh-action-popover.opens-above { inset-block: auto var(--menu-edge,8px); }
#bh-wireframe .bh-action-popover button.bh-menu-option {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: start;
  margin: 0;
  padding: 8px 12px;
  width: 100%;
  max-width: none;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  text-align: start;
  white-space: nowrap;
}
#bh-wireframe .bh-action-popover button.bh-menu-option:is(:hover,:focus-visible) { background: var(--surface); }
#bh-wireframe .bh-action-popover button.bh-menu-option[data-variant="danger"] { color: var(--status-error-text); }
#bh-nav .bh-action-popover button::before { display: none; }
.bh-menu-option svg { inline-size: 16px; block-size: 16px; flex: none; }
.bh-desktop-workspace > :is(a,details) { display: block; width: 100%; }
.bh-nav-group summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}
.bh-nav-group[open] summary .bh-arrow-icon { rotate: -90deg; }
.bh-nav-group:has([aria-current="page"]) summary { background: var(--surface); }
#bh-nav .bh-nav-group a { margin-inline-start: 8px; font-size: 11px; width: calc(100% - 8px); }
#bh-mobile-nav, .bh-mobile-filter-bar, .bh-mobile-login-icon,
.bh-header-actions > .bh-admin-mobile-account.bh-profile-icon:not([hidden]) { display: none; }
.bh-notice-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 8px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-row);
  text-align: start;
}
.bh-notice-link:has(small):is(:hover,:focus-visible) { background: var(--bg-row-active); }
.bh-notice-link small { color: var(--dim); }
#bh-application-selection { margin-block: 8px 12px; }
dialog.bh-drawer {
  inset: 0 0 0 auto;
  margin: 0;
  width: min(660px,100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  overscroll-behavior: contain;
}
dialog.bh-drawer .bh-drawer-actions {
  position: sticky;
  bottom: 0;
  padding: 12px 0;
  background: var(--bg-paper);
}
dialog.bh-drawer h1 { font-size: clamp(22px,4vw,32px); }
dialog.bh-drawer.post-editor-drawer[open] {
  display: flex;
  flex-direction: column;
  width: min(1080px,100vw);
  overflow: hidden;
}
.post-editor-drawer > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  margin-top: 0;
}
.post-editor-drawer > form > .bh-form {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  padding: 4px 4px var(--space-4);
}
.post-editor-drawer > form > .bh-form > * { margin-block: 0 16px; }
dialog.bh-drawer.post-editor-drawer .post-editor-actions {
  position: static;
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.post-editor-actions [data-post-submit="draft"] { background: var(--white); border: 1px solid var(--line); }
.post-editor-actions [data-post-submit="draft"]:hover:not(:disabled) { background: var(--surface); }
.bh-advanced-settings { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-row); }
.bh-advanced-settings summary { cursor: pointer; font-weight: 700; }
.bh-advanced-settings[open] label { margin-top: 12px; }
#bh-toast .bh-button { min-height: 36px; margin-inline-start: 8px; color: var(--ink); background: var(--brand-sun); }
.tap-kpi-card dt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tap-kpi-card dd { white-space: nowrap; }
.tap-kpi-pair .tap-kpi-line { flex-wrap: nowrap; }
.tap-kpi-pair .tap-kpi-line dd { flex: none; white-space: nowrap; }
.creator-report-toolbar {
  gap: 10px 12px;
}

@media (max-width: 650px) {
  .rank-public-controls { gap: 8px; }
  .rank-public-controls .rank-types { gap: 4px; }
  .rank-public-controls .rank-type { gap: 4px; padding-inline: 7px; font-size: 11px; }
  .rank-public-controls .rank-type-icon svg { width: 15px; height: 15px; }
  .hero-actions { width: min(100%, 250px); grid-template-columns: minmax(0,1fr); gap: var(--space-2); }
  .hero-actions .hero-action { padding-inline: var(--space-4); }
  .post-editor-actions .bh-primary { flex: 1 1 auto; }
}
@media (max-width: 800px), (pointer: coarse) {
  .bh-copy-cell .bh-copy-button { opacity: 1; }
  #bh-main :is(button.bh-row-link,button.bh-sort-header,button.bh-copy-button,.bh-menu-trigger) { min-block-size: 44px; }
  #bh-main .bh-copy-button { min-inline-size: 44px; }
}

@media (max-width: 767px) {
  :root { --mobile-safe-bottom: env(safe-area-inset-bottom, 0px); }
  body { overflow-x: hidden; }
  .bh-header-inner {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 55px;
    height: 55px;
    gap: 8px;
    padding: 0 16px;
  }
  .bh-window > header .bh-brand {
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 5px;
    min-height: 38px;
    padding: 0;
    font-size: 23px;
    line-height: 28px;
    white-space: nowrap;
  }
  .bh-window > header .brand-heart { width: 28px; height: 28px; font-size: 15px; }
  #bh-wireframe :is(#bh-nav,#bh-public-nav) { display: none; }
  #bh-header { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
  #bh-header > :is(.bh-small,.bh-header-logout), #bh-header .bh-header-label, #bh-header .bh-header-arrow { display: none; }
  #bh-header > :is(.bh-header-join,.bh-header-login,.bh-profile-icon,.bh-notice-bell):not([hidden]) {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
  }
  #bh-header .bh-mobile-login-icon { display: block; width: 20px; height: 20px; }
  .bh-profile-logout { margin-top: 12px; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 16px calc(96px + var(--mobile-safe-bottom));
  }
  .bh-preview { justify-content: flex-start; gap: 4px 8px; }
  .bh-preview .bh-actions { gap: 3px; }
  .bh-preview button { min-height: 44px; padding-inline: 9px; }

  #bh-mobile-nav {
    position: fixed;
    inset: auto 12px calc(12px + var(--mobile-safe-bottom));
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    align-items: stretch;
    height: 62px;
    padding: 6px;
    border: 1.5px solid #eae4da;
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow: 0 8px 28px rgb(30 30 30 / 10%);
  }
  #bh-mobile-nav .bh-action-menu { min-width: 0; }
  #bh-mobile-nav .bh-mobile-tab {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
  }
  #bh-mobile-nav .bh-mobile-tab svg { width: 18px; height: 18px; flex: none; }
  #bh-mobile-nav .bh-mobile-tab:is([aria-current],.is-current,[aria-expanded="true"]) { background: var(--banner-yellow); }
  #bh-mobile-nav .bh-mobile-tab[data-screen="register"][aria-current] { background: var(--banner-green); }
  #bh-toast { z-index: 110; bottom: calc(84px + var(--mobile-safe-bottom)); }
  #bh-toast:empty { display: none; }

  .bh-layout:not(.bh-public-layout) { padding: 16px 16px 0; }
  .bh-layout:has(.is-home) { display: flex; padding: 0; }
  .bh-public-layout #bh-main:not(.is-home) { padding: 16px 16px 0; }
  .page-header-banner {
    min-height: 0;
    margin-bottom: 20px;
    padding: 20px 22px;
    border-radius: 24px;
  }
  .page-header-banner h1 { font-size: 24px; line-height: 1.2; }
  .page-header-banner-subtitle { font-size: 13px; }
  .page-header-banner-eyebrow { margin-bottom: 8px; }
  .page-breadcrumb { margin-bottom: 8px; font-size: 11px; overflow-wrap: anywhere; }
  .hero-actions { width: min(100%, 250px); grid-template-columns: minmax(0,1fr); gap: 8px; }
  .hero-content { padding: 28px 16px 24px; }
  .hero-content h1 { margin-bottom: 16px; }
  .hero-content p { margin-bottom: 16px; }
  .registration-page-actions { position: static; }
  .registration-page-actions > :is(button,.bh-actions) { min-width: 0; }
  .registration-page-actions:has(> .bh-actions) { flex-wrap: wrap; }
  .registration-page-actions > .bh-actions { gap: 8px; }
  dialog.bh-drawer {
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
  }

  :is(.rank-types,.bh-live-switch) {
    display: grid;
    grid-template-columns: repeat(var(--segments,3),minmax(0,1fr));
    width: 100%;
    gap: 2px;
    padding: 4px;
    border: 1.5px solid #eae4da;
    border-radius: var(--radius-pill);
    background: #fff;
  }
  .bh-live-switch { --segments: 2; }
  .rank-types:empty { display: none; }
  .rank-types:has(> :first-child:last-child) { --segments: 1; }
  .rank-types:has(> :nth-child(2):last-child) { --segments: 2; }
  :is(.rank-types,.bh-live-switch) > button {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    gap: 5px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12.5px;
    white-space: nowrap;
  }
  :is(.rank-types,.bh-live-switch) > button[aria-pressed="true"] { background: var(--banner-yellow); color: var(--ink); }
  .campaign-manager-tabs, .registration-steps {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }
  .campaign-manager-tabs > button { flex: none; white-space: nowrap; }
  .registration-steps { margin-bottom: 16px; padding-bottom: 4px; }
  .registration-steps li { flex: 0 0 auto; flex-direction: row; padding: 0; white-space: nowrap; font-size: 12px; }
  .registration-steps li:not(:last-child)::after { position: static; width: 12px; flex: 0 0 12px; margin: 0; }
  .bh-filter-pair {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .bh-filter-pair > .bh-custom-select { min-width: 0; }
  .bh-filter-pair .bh-select-trigger { gap: 6px; padding-inline: 12px; font-size: 12.5px; }
  .bh-filter-pair .bh-select-chevron { width: 12px; }
  .bh-filter-pair .bh-field-icon { width: 13px; }
  .bh-mobile-filter-bar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
  .rank-public-controls { gap: 8px; }
  .rank-public-controls .bh-mobile-filter-bar { margin: 0 0 0 auto; }
  .bh-mobile-filter-trigger { min-height: 44px; padding-inline: 14px; white-space: nowrap; }
  .bh-mobile-filter-count {
    min-width: 21px;
    padding: 2px 5px;
    border-radius: var(--radius-pill);
    background: var(--banner-green);
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .bh-mobile-sheet-filters { display: none; }
  .bh-mobile-filter-sheet {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: min(78dvh,520px);
    margin: 0;
    padding: 18px 20px calc(20px + var(--mobile-safe-bottom));
    border: 0;
    border-radius: 24px 24px 0 0;
    background: var(--bg-subpage);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .bh-mobile-filter-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .bh-mobile-filter-heading h2 { margin: 0; }
  .bh-mobile-filter-close { width: 44px; padding: 0; }
  .bh-mobile-filter-sheet[open] > .bh-mobile-sheet-filters {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
    margin: 0 0 14px;
  }
  .bh-mobile-filter-sheet :is(.bh-search-input,.bh-custom-select) { min-width: 0; max-width: none; }
  .bh-mobile-filter-sheet :is(.bh-select-trigger,.bh-search-field) { height: auto; min-height: 44px; }
  .bh-mobile-filter-sheet .bh-search-input > input.bh-search-field[type="search"] { min-height: 44px; }
  .bh-mobile-filter-sheet .bh-select-current { white-space: normal; overflow-wrap: anywhere; }
  .bh-mobile-filter-sheet .bh-primary { width: 100%; }
  .bh-select-menu .bh-select-option { min-height: 44px; }
  .tap-kpi-toolbar > .bh-custom-select { max-width: 100%; }
  .tap-kpi-toolbar { gap: 8px; }

  :is(.tap-kpi-grid,.report-metrics,.bh-kpis) {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .tap-kpi-feature, .report-overview .report-metrics > :first-child { grid-column: 1 / -1; }
  #bh-main :is(.tap-kpi-card,.report-metrics > div,.bh-kpi) {
    border-radius: 20px;
    padding: 16px 12px;
    text-align: center;
  }
  .tap-kpi-card :is(dt,dd) { white-space: normal; overflow-wrap: anywhere; }
  .tap-kpi-card dd { font-size: clamp(16px,4.1vw,21px); }
  .tap-kpi-feature dd { font-size: 26px; }
  .tap-kpi-pair .tap-kpi-line { display: grid; justify-content: center; align-items: center; }
  .tap-kpi-pair .tap-kpi-line + .tap-kpi-line { margin-top: 4px; }

  .rank-table-wrap { max-block-size: none; overflow: visible; }
  .rank-table-wrap .rank-table { width: 100%; min-width: 0; table-layout: fixed; }
  .rank-table-wrap .rank-table :is(th,td) { min-inline-size: 0; padding-inline: 8px; }
  .rank-table-wrap .rank-table :is(th,td):first-child { width: 52px; }
  .rank-table-wrap .rank-table :is(th,td):last-child { width: 36%; text-align: right; }
  .rank-table .bh-row-title { max-width: min(145px,100%); }
  .rank-position { width: 32px; height: 32px; }

  .bh-table:has([data-mobile-rows]) {
    max-block-size: none;
    overflow: visible;
    margin-top: 8px;
  }
  .bh-table [data-mobile-rows] { display: block; width: 100%; min-width: 0; }
  .bh-table [data-mobile-rows] :is(thead,tbody) { display: block; }
  .bh-table [data-mobile-rows] thead tr {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
  }
  .bh-table [data-mobile-rows] thead th { position: static; min-width: 0; padding: 0; background: transparent; }
  .bh-table [data-mobile-rows] thead th:not(:has(button,input)) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .bh-table [data-mobile-rows] thead th:has(button,input) { flex: none; }
  .bh-table [data-mobile-rows] thead .bh-sort-header { padding: 4px 8px; }
  .bh-table [data-mobile-rows] tbody tr {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 6px;
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 20px;
    background: var(--row-surface);
  }
  .bh-table [data-mobile-rows] tbody td {
    position: static;
    display: block;
    min-width: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .bh-table [data-mobile-rows] td[data-mobile-label] {
    display: grid;
    grid-template-columns: minmax(0,1fr) fit-content(58%);
    align-items: center;
    gap: 8px;
    text-align: right;
  }
  .bh-table [data-mobile-rows] td[data-mobile-label]::before {
    content: attr(data-mobile-label);
    color: var(--dim);
    font-size: 11px;
    font-weight: 600;
    text-align: left;
  }
  .bh-table [data-mobile-rows] td :is(.bh-row-title,a) { max-width: min(145px,100%); }
  .bh-table [data-mobile-rows] .bh-row-actions { justify-content: flex-end; }
  .bh-table [data-mobile-rows] :is(.bh-copy-cell,.bh-inline-identity) { min-width: 0; justify-content: flex-end; }
}

}
