/* Brand pages (public sign-up, public listing, brand account). Uses the
   tokens from fbc-ui.css. */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
.bpTop { background: var(--navy); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bpTop a { color: #fff; text-decoration: none; }
.bpLogo { width: 34px; height: 34px; border-radius: 9px; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bpLogo img { width: 26px; height: 26px; }
.bpTitle { font-weight: 800; font-size: 15px; }
.bpNav { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.bpNav a { color: rgba(255,255,255,.88); }
.bpNav a:hover { color: #fff; text-decoration: underline; }
.bpNav a[aria-current="page"] { color: #fff; font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); }
.bpTop a:visited { color: inherit; }
.fbcContact { font-size: 14.5px; line-height: 1.7; }
.fbcContact a { font-weight: 700; overflow-wrap: anywhere; }
.bpJump { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; margin: 0 0 12px; background: var(--bg); scrollbar-width: thin; }
.bpJump a { flex: none; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; }
.bpJump a:hover { border-color: var(--navy-700); }
.bpSection[id] { scroll-margin-top: 56px; }
.bpMain { max-width: 1040px; margin: 0 auto; padding: 22px 16px 48px; }
.bpNarrow { max-width: 560px; }
.bpH1 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.bpLead { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; }
.bpForm { display: grid; gap: 12px; }
.bpForm label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.bpForm input, .bpForm select, .bpForm textarea { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 10px; font: inherit; font-size: 15px; background: var(--surface); min-height: 44px; }
.bpForm textarea { min-height: 90px; resize: vertical; }
.bpForm input:focus, .bpForm select:focus, .bpForm textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.bpRow2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bpHint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bpNotice { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.bpCheck { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.bpCheck input { width: 20px; height: 20px; min-height: 0; margin-top: 1px; flex: none; }
.bpMsg { font-size: 13.5px; min-height: 18px; }
.bpMsg.bad { color: var(--bad); } .bpMsg.ok { color: var(--ok); }
.bpMsg.warn { background: #fff4d6; color: #6b4e00; border-radius: 8px; padding: 8px 12px; font-weight: 600; }
.bpHoney { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bpGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.bpCard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bpCardLogo { width: 64px; height: 64px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 800; color: var(--navy); font-size: 22px; }
.bpCardLogo img { width: 100%; height: 100%; object-fit: contain; }
.bpCardName { font-weight: 800; font-size: 16px; color: var(--navy); overflow-wrap: anywhere; }
.bpCardMeta { font-size: 12.5px; color: var(--muted); }
.bpCardDesc { font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.bpFilters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 560px) { .bpFilters { grid-template-columns: 1fr; } }
.bpFilters input, .bpFilters select { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 10px; font: inherit; font-size: 15px; background: var(--surface); min-height: 44px; }
.bpSection { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.bpSection h2 { font-size: 16px; margin: 0 0 10px; color: var(--navy); }
.bpItem { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.bpStatus { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bpTimeline { list-style: none; margin: 0; padding: 0; }
.bpTimeline li { padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.bpTimeline li:first-child { border-top: 0; }
.bpNote { background: var(--gold-50); border-left: 3px solid var(--gold); padding: 8px 10px; border-radius: 6px; margin-top: 4px; white-space: pre-wrap; }
.bpActions { display: flex; flex-wrap: wrap; gap: 8px; }
.bpThumb { max-width: 120px; max-height: 80px; border-radius: 8px; border: 1px solid var(--border); background: #fff; }

/* Onboarding progress bar (brand.html) */
.bpStages { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 10px 0 4px; }
.bpStages li { flex: 1 1 110px; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--off); font-size: 12px; color: var(--muted); }
.bpStages li span { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--border); color: var(--ink); font-weight: 700; font-size: 11px; }
.bpStages li.done { color: var(--ink); }
.bpStages li.done span { background: var(--ok); color: #fff; }
.bpStages li.cur { background: var(--info-bg); color: var(--ink); font-weight: 700; }
.bpStages li.cur span { background: var(--info); color: #fff; }

/* The hidden attribute must win over component display rules (e.g. .fx-btn is inline-flex). */
[hidden] { display: none !important; }

/* Phase 3: brand dashboard stats and tables */
.bpTiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.bpTile { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.bpTile b { font-size: 22px; font-variant-numeric: tabular-nums; }
.bpTile span { font-size: 12.5px; color: var(--muted); }
.bpTable { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0; }
.bpTable th, .bpTable td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* App footer: company name and policy links (investor and seminar pages) */
.bpFoot { border-top: 1px solid var(--border); margin-top: 8px; padding: 18px 16px 28px; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.bpFoot b { color: var(--ink); font-weight: 700; }
.bpFoot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; }
.bpFoot a { color: var(--navy); font-weight: 600; }

/* Signed-in investor on a seminar page: hide the public header until we know, hide sign-in prompts after. */
.ivMaybe .bpNav { visibility: hidden; }
.ivIn .pubOnly { display: none !important; }

/* Investor account: side menu (desktop) / scrolling top menu (phone) */
.ivShell { max-width: 1180px; margin: 0 auto; padding: 22px 16px 32px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
.ivShell > main { min-width: 0; }
.ivMenu { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; }
.ivMenu a { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.ivMenu a:hover { background: var(--surface-2); }
.ivMenu a[aria-current="page"] { background: var(--navy); color: #fff; }
.ivBadge { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: var(--gold); color: var(--navy); font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 820px) {
  .ivShell { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 12px; }
  .ivMenu { position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; border-radius: 12px; padding: 6px; scrollbar-width: thin; }
  .ivMenu a { flex: none; padding: 8px 12px; font-size: 13.5px; }
}
.ivCards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.ivCard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ivCard h2 { font-size: 15px; margin: 0; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ivCard .ivMore { margin-top: auto; padding-top: 4px; }
.ivRow { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; min-width: 0; }
.ivRow:first-of-type { border-top: 0; }
.ivRow > div { min-width: 0; overflow-wrap: anywhere; }
.ivBig { font-size: 26px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ivSteps { list-style: none; display: flex; gap: 4px; padding: 0; margin: 2px 0; }
.ivSteps li { flex: 1 1 0; min-width: 0; text-align: center; font-size: 11px; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--border); }
.ivSteps li.done { border-top-color: var(--ok); color: var(--ink); }
.ivSteps li.cur { border-top-color: var(--navy); color: var(--navy); font-weight: 800; }
.ivNext { background: var(--surface-2); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; line-height: 1.45; }
.ivShell.noMenu { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
.ivList { display: flex; flex-direction: column; }
