/* REV003 M4 broker directory (web/brokerdir.js). Works on the dark public site (site.css tokens) and both workspace themes (style.css tokens). */
.bd{--bd-panel:var(--panel,var(--card,#fff));--bd-line:var(--line,#dce5ec);--bd-ink:var(--ink,#10263d);--bd-muted:var(--muted,#52677a);--bd-accent:var(--blue,var(--brand,#087466));
--bd-ok:var(--mint,var(--good,#096752));--bd-risk:var(--risk,var(--bad,#a82434));color:var(--bd-ink)}
.bd-filters{display:grid;grid-template-columns:1fr;gap:12px;align-items:end;border:1px solid var(--bd-line);border-radius:14px;padding:14px;background:var(--bd-panel)}
.bd-field{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:650;margin:0}
.bd-field input,.bd-field select,.bd-form input{min-height:44px;border:1px solid var(--bd-line);border-radius:9px;background:transparent;color:inherit;padding:6px 10px;font:inherit}
.bd-field select option{color:#10263d;background:#fff}
.bd-toggles{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px 18px;border:0;margin:0;padding:0}.bd-toggles legend{font-size:.85rem;font-weight:650;padding:0;margin-bottom:4px;float:left;width:100%}
.bd-check{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:500;margin:0;cursor:pointer}
.bd-check input{appearance:none;width:20px;height:20px;margin:0;border:2px solid var(--bd-muted);border-radius:5px;background:transparent;cursor:pointer;flex:none}
.bd-check input:checked{background:var(--bd-accent);border-color:var(--bd-accent);box-shadow:inset 0 0 0 3px var(--bd-panel)}
.bd-searchrow{display:flex;gap:10px;align-items:end}.bd-searchrow .bd-search{flex:1;min-width:0}
.bd-more{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-items:end}.bd-sheethead,.bd-sheetdone,.bd-sheetbtn,.bd-sheetscrim{display:none}
.bd-count{font-size:.85rem;color:var(--bd-muted);margin:12px 0 4px}
.bd-note{font-size:.82rem;color:var(--bd-muted);margin:4px 0 10px}.bd-muted{color:var(--bd-muted)}
.bd-group{margin:22px 0}.bd-gtitle{font-size:1rem;margin:0 0 10px;letter-spacing:.01em}
.bd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.bd-card{border:1px solid var(--bd-line);border-radius:14px;background:var(--bd-panel);padding:14px;display:flex;flex-direction:column;gap:8px;min-width:0}
.bd-top{display:flex;gap:12px;align-items:center}.bd-top>div{min-width:0}
.bd-mark{flex:none;width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,#2c4580,#4b3a86);color:#e8eeff;font-weight:850;letter-spacing:.02em}
.bd-name{font-size:1rem;margin:0;line-height:1.25;overflow-wrap:anywhere}.bd-cat{font-size:.8rem;color:var(--bd-muted);margin:2px 0 0}
.bd-pill{align-self:flex-start;border:1px solid currentColor;border-radius:999px;padding:2px 10px;font-size:.78rem;font-weight:700}
.bd-pill.ok{color:var(--bd-ok)}.bd-pill.risk{color:var(--bd-risk)}.bd-pill.dev{color:var(--bd-accent)}.bd-pill.plan{color:var(--bd-muted)}
.bd-assets,.bd-ver{font-size:.85rem;margin:0}.bd-k{font-weight:650}.bd-ver.none{color:var(--bd-muted);font-style:italic}
.bd-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.bd-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 14px;border:1px solid var(--bd-line);border-radius:10px;background:transparent;color:inherit;font:inherit;font-weight:650;text-decoration:none;cursor:pointer}
.bd-btn.bd-primary{background:var(--bd-accent);border-color:var(--bd-accent);color:#fff}
.bd-btn:focus-visible,.bd-field input:focus-visible,.bd-field select:focus-visible,.bd-check input:focus-visible,.bd-form input:focus-visible{outline:3px solid var(--focus,#6aa9ff);outline-offset:2px}
body.bd-lock{overflow:hidden}
.bd-overlay{position:fixed;inset:0;z-index:1000}.bd-scrim{position:absolute;inset:0;background:#02050cb3}
.bd-drawer{position:absolute;top:0;right:0;bottom:0;width:min(480px,100%);overflow-y:auto;background:var(--bd-panel);border-left:1px solid var(--bd-line);padding:16px 20px 28px;box-shadow:-12px 0 40px #0008}
.bd-site .bd-drawer,.site .bd-drawer{background:#101827}
.bd-dhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.bd-kicker{font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;color:var(--bd-muted);font-weight:700}
.bd-close{width:44px;padding:0}
.bd-drawer h2{margin:0;font-size:1.3rem}.bd-drawer h3{font-size:1rem;margin:18px 0 6px}
.bd-dl{display:grid;grid-template-columns:minmax(120px,40%) 1fr;gap:8px 12px;margin:12px 0;font-size:.9rem}.bd-dl dt{font-weight:650;color:var(--bd-muted)}.bd-dl dd{margin:0;overflow-wrap:anywhere}
.bd-form{margin:14px 0;display:flex;flex-direction:column;gap:6px}.bd-form label{font-size:.85rem;font-weight:650;margin:0}.bd-row{display:flex;gap:8px;flex-wrap:wrap}.bd-row input{flex:1;min-width:180px}
.bd-msg{font-size:.85rem;margin:4px 0 0;min-height:1.2em}.bd-msg.ok{color:var(--bd-ok)}.bd-msg.bad{color:var(--bd-risk)}
@media(max-width:900px){.bd-more{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.bd-filters{border:0;padding:0;background:none}.bd-sheetbtn{display:inline-flex;white-space:nowrap}.bd-count{margin:6px 0 2px}
.bd-more{display:none;position:fixed;left:0;right:0;bottom:0;z-index:1001;max-height:85vh;overflow-y:auto;grid-template-columns:1fr;gap:10px;background:var(--bd-panel);border-top:1px solid var(--bd-line);border-radius:18px 18px 0 0;padding:14px 20px 20px;box-shadow:0 -12px 40px #0008}
.bd-sheet-open .bd-more,.bd-sheet-open .bd-sheethead,.bd-sheet-open .bd-sheetdone{display:flex}.bd-sheet-open .bd-more{display:grid}
.bd-sheethead{justify-content:space-between;align-items:center}.bd-sheetdone{position:sticky;bottom:0;box-shadow:0 8px 0 var(--bd-panel)}.bd-more{padding-bottom:max(16px,env(safe-area-inset-bottom))}.bd-sheet-open .bd-sheetscrim{display:block;position:fixed;z-index:1000}
.bd .bd-note{font-size:.78rem}.bd-group{margin:14px 0}}
@media(max-width:520px){.bd-dl{grid-template-columns:1fr}.bd-dl dt{margin-top:4px}}
@media(prefers-reduced-motion:reduce){.bd *{transition:none!important;animation:none!important}}
/* REV003 M8 Q5: deeper primary fill (white text 5.11:1), compact sticky search + Filters row on phone */
.bd-btn.bd-primary{background:#3563e9;border-color:#3563e9;color:#fff}.bd-pill.bd-unver{font-weight:650}
@media(max-width:640px){.bd-filters{position:sticky;top:var(--bd-stick,56px);z-index:15;background:var(--bg,#070b16);padding:8px 0;margin:0 -2px;border-bottom:1px solid var(--bd-line)}
.site .bd-filters{--bd-stick:59px}.bd-search>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.bd-searchrow{align-items:center}}
@media(max-width:640px){.bd-sheet-open .bd-filters{z-index:1001;background:transparent;border-color:transparent}.bd-sheet-open .bd-searchrow{opacity:.3;pointer-events:none}}
/* M9 R3: status = non-interactive tinted pill with a dot (no border), pill sits in the card head; compact cards (>= 3 visible at 390x844) */
.bd-pill{border:0;display:inline-flex;align-items:center;gap:6px;padding:3px 10px;background:color-mix(in srgb,currentColor 14%,transparent);cursor:default;white-space:nowrap}
.bd-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.bd-top .bd-pill{margin-left:auto;align-self:center}.bd-top>div{flex:1}
@media(max-width:640px){.bd-card{padding:12px 14px;gap:6px}.bd-mark{width:36px;height:36px;border-radius:10px}.bd-top{flex-wrap:wrap;gap:4px 10px}
.bd-top .bd-pill{margin-left:46px}.bd-card .bd-btn{min-height:44px}}
/* M9 R4: sticky search row is one solid band joined to the header (full-bleed, tucked 1px under it) with a bottom border + shadow */
@media(max-width:640px){.bd-filters{border-bottom:1px solid var(--bd-line);box-shadow:0 6px 14px #0007}
.site .bd-filters{--bd-stick:58px;background:#070b16;margin-inline:-20px;padding:8px 20px 10px}.bd-btn[data-ptr]:focus-visible{outline:none}}
@media(max-width:640px){.bd-top>div{flex:1 1 150px}.bd-top .bd-pill{margin-left:46px;margin-top:-2px}.bd-assets{line-height:1.35}.bd-card .bd-actions{gap:6px}.bd-card .bd-actions .bd-btn{min-height:44px;padding-block:4px}}
/* M10 S3: one section-level status line replaces the identical per-card pill; cards without a type label keep the name centred on the monogram */
.bd-gstatus{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-4px 0 10px;font-size:.85rem;color:var(--bd-muted)}.bd-gstatus .bd-pill{margin:0}
.bd-top{min-height:36px}.bd-card .bd-assets,.bd-card .bd-note,.bd-card .bd-actions{margin-left:0;padding-left:0}
/* M10 S4: header + search/filters read as ONE solid bar (no seam between them, single bottom divider); sections snap fully under it, so no clipped intro line shows */
@media(max-width:640px){.site:has(.bd-filters) .s-nav{border-bottom-color:transparent;background:#070b16}.site .bd-filters{top:57px;padding-top:9px}
.bd-group{scroll-margin-top:66px}}
/* M11 U3: readable section note banner, asset tag chips, per-broker monogram hue (text monogram, never a logo), full-width 2-column action row */
.bd-gstatus{display:block;margin:0 0 12px;padding:10px 12px;font-size:.875rem;line-height:1.4;color:var(--bd-ink);border:1px solid var(--bd-line);border-left:3px solid var(--bd-accent);border-radius:10px;background:color-mix(in srgb,var(--bd-accent) 8%,transparent)}
.bd-tags{display:flex;flex-wrap:wrap;gap:5px;margin:0;padding:0;list-style:none}
.bd-tag{font-size:.8125rem;line-height:1.2;padding:3px 8px;border-radius:999px;border:1px solid var(--bd-line);color:var(--bd-ink);background:color-mix(in srgb,var(--bd-line) 35%,transparent)}
.bd-tag[data-asset=futures]{border-color:#c79a3a;color:#ffd789;background:#3d322044}.bd-tag[data-asset=forex]{border-color:#3fa7c9;color:#9fe3ff;background:#16384a44}
.bd-tag[data-asset=crypto]{border-color:#9b7be8;color:#d7c6ff;background:#2e225244}
html[data-theme=light] .bd-tag[data-asset=futures]{color:#7a4f00;background:#fff4dc}html[data-theme=light] .bd-tag[data-asset=forex]{color:#0a5a78;background:#e3f6fd}html[data-theme=light] .bd-tag[data-asset=crypto]{color:#5530a8;background:#f0eaff}
.bd-mark.bd-hue0{background:#24508c}.bd-mark.bd-hue1{background:#1f6a5c}.bd-mark.bd-hue2{background:#6a3d8c}.bd-mark.bd-hue3{background:#8a4a24}
.bd-mark.bd-hue4{background:#2f5f2a}.bd-mark.bd-hue5{background:#8c2f4c}.bd-mark.bd-hue6{background:#265c7a}.bd-mark.bd-hue7{background:#5a4a8f}.bd-mark{color:#fff}
.bd-card .bd-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bd-card .bd-actions .bd-btn{width:100%;justify-content:center}.bd-card .bd-actions>:only-child{grid-column:1/-1}
@media(max-width:640px){.bd-card{gap:8px;padding:10px 12px}.bd-mark{width:32px;height:32px;font-size:.85rem}.bd-top{min-height:32px}.bd-grid{gap:8px}.bd-group{margin:10px 0}}
@media(max-width:640px){.s-page:has(.s-dir) .s-lead{font-size:.9375rem;white-space:nowrap}}
/* M12 V1: compact ROW list. One neutral monogram colour, name 16px/600 + one chip line, trailing chevron; the whole row is the (stretched) detail button.
   Add-on asset chips share ONE neutral-accent style (no amber/status colours). Desktop >= 1024: 2-3 column grid of the same compact tiles. */
.bd-grid{display:flex;flex-direction:column;gap:0;border:1px solid var(--bd-line);border-radius:14px;background:var(--bd-panel);overflow:hidden}
.bd-card,.bd-site .bd-card{position:relative;flex-direction:row;align-items:center;gap:12px;min-height:60px;padding:10px 12px 10px 14px;border:0;border-radius:0;border-top:1px solid var(--bd-line);background:none}
.bd-grid>.bd-card:first-child{border-top:0}
.bd-card .bd-mark,.bd-mark{width:36px;height:36px;border-radius:10px;font-size:.8125rem;background:#2a3550;color:#e3e9f7;font-weight:700}
html[data-theme=light] .bd-card .bd-mark,html[data-theme=light] .bd-drawer .bd-mark{background:#e3e9f2;color:#1d2c44}
.bd-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.bd-card .bd-name{font-size:1rem;font-weight:600;line-height:1.25;margin:0}
.bd-open{all:unset;cursor:pointer;color:inherit}.bd-open::after{content:"";position:absolute;inset:0;z-index:1}
.bd-open:focus-visible{outline:none}.bd-card:has(.bd-open:focus-visible){outline:3px solid var(--focus,#6aa9ff);outline-offset:-3px}
.bd-card .bd-open[data-ptr]:focus-visible{outline:none}
@media(hover:hover){.bd-card:hover{background:color-mix(in srgb,var(--bd-accent) 7%,transparent)}}
.bd-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-width:0}.bd-card .bd-cat{font-size:.8125rem;margin:0}
.bd-tags{gap:4px}.bd-tag,.bd-tag[data-asset]{font-size:.75rem;line-height:1.2;padding:2px 7px;border-radius:999px;border:1px solid var(--bd-line);color:var(--bd-muted);background:none}
.bd-tag.bd-base,.bd-tag.bd-base[data-asset]{border:0;padding-left:0;padding-right:2px}
.bd-tag.bd-add,.bd-tag.bd-add[data-asset]{border-color:color-mix(in srgb,var(--bd-accent) 55%,var(--bd-line));color:var(--bd-ink);background:color-mix(in srgb,var(--bd-accent) 12%,transparent)}
html[data-theme=light] .bd-tag.bd-add[data-asset]{color:#1d2c44;background:color-mix(in srgb,var(--bd-accent) 10%,#fff)}
.bd-card>.bd-pill{margin-left:auto;flex:none;font-size:.75rem}.bd-card>.bd-btn{position:relative;z-index:2;flex:none;min-height:44px}
.bd-chev{flex:none;font-size:1.4rem;line-height:1;color:var(--bd-muted);margin-left:2px}
.bd-gstatus{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}.bd-gstatus p{margin:0;flex:1 1 260px}.bd-wlany{flex:none;min-height:44px}
@media(min-width:1024px){.bd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px;border:0;background:none;overflow:visible}
.bd-grid>.bd-card{border:1px solid var(--bd-line);border-radius:12px;background:var(--bd-panel)}}
@media(min-width:1280px){.bd-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.bd-card,.bd-site .bd-card{padding:8px 8px 8px 12px;gap:10px;min-height:56px}.bd-card .bd-mark{width:32px;height:32px}
.bd-gstatus{gap:8px;padding:10px 12px}.bd-gstatus p{flex-basis:100%}.bd-wlany{width:100%}.bd-group{margin:8px 0 14px}.bd-gtitle{margin-bottom:8px}}
@media(max-width:640px){.bd-card:has(>.bd-pill){flex-wrap:wrap;row-gap:4px}.bd-card>.bd-pill{order:9;margin-left:42px}}
html[data-theme=light] .bd-tag.bd-add[data-asset]{background:#e8eefb;border-color:#9db3e0;color:#1d2c44}
/* M13 W3: section labels are real headings (ink, 600, no breadcrumb slashes); rows carry only extra-asset pills + a small neutral "Planned" chip */
.bd-gtitle{font-size:1.125rem;font-weight:600;color:var(--bd-ink);letter-spacing:0}
.bd-planchip{margin-left:auto;flex:none;font-size:.75rem;font-weight:600;line-height:1.2;padding:3px 8px;border-radius:999px;border:1px solid var(--bd-line);color:var(--bd-ink);background:color-mix(in srgb,var(--bd-line) 45%,transparent)}
.bd-card .bd-line:empty{display:none}
/* M14 X4: no per-row "Planned" chip; a small status line inside the sticky search bar keeps the caveat on screen; one 60px row rhythm (with or
   without tags); 12px tags with brighter text/border; search placeholder >= 4.5:1 */
.bd-stickstat{margin:0;font-size:.8125rem;line-height:1.3;color:#c3cbdd;display:flex;align-items:center;gap:6px}.bd-stickstat:empty{display:none}
.bd-stickstat::before{content:"";width:6px;height:6px;border-radius:50%;background:#f5b94a;flex:none}
html[data-theme=light] .bd-stickstat{color:#3a4a63}
.bd-card,.bd-site .bd-card{min-height:60px;box-sizing:border-box}
@media(max-width:640px){.bd-card,.bd-site .bd-card{min-height:60px}.bd-stickstat{margin-top:6px}}
.bd-tag,.bd-tag[data-asset],.bd-tag.bd-add,.bd-tag.bd-add[data-asset]{font-size:.75rem;color:#dfe6f3;border-color:#7d8fb3}
html[data-theme=light] .bd-tag,html[data-theme=light] .bd-tag[data-asset],html[data-theme=light] .bd-tag.bd-add[data-asset]{color:#1d2c44;border-color:#6d82a8}
.bd-search input::placeholder{color:#a3aec4;opacity:1}html[data-theme=light] .bd-search input::placeholder{color:#5b6880}
.bd-card,.bd-site .bd-card,.bd-grid>.bd-card{height:60px;min-height:60px}@media(min-width:1024px){.bd-grid>.bd-card{height:auto}}
@media(max-width:640px){.bd-card,.bd-site .bd-card{height:60px}.bd-grid>.bd-card:has(>.bd-pill){height:auto}
 .site .bd-filters{padding-bottom:8px}.bd-stickstat{margin-top:4px}.bd-group{scroll-margin-top:96px}}
/* M15 Y3: one caveat (sticky line); heading row = section title + ghost "Join waitlist" button (no callout paragraph); filled-tint 12.5px capability chips;
   on phones the long intro note moves below the list so the rows start near the top */
.bd-ghead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:0;border:0;background:none}
.bd-ghead .bd-gtitle{margin:0}.bd-btn.bd-ghost.bd-wlany{flex:none;width:auto;min-height:36px;padding:4px 12px;font-size:.875rem;font-weight:600;color:#cfdcff;border-color:#4a5f8f;background:transparent}
.bd-btn.bd-ghost.bd-wlany:hover{background:#ffffff0d}html[data-theme=light] .bd-btn.bd-ghost.bd-wlany{color:#1f3f9a;border-color:#8aa0cf}
.bd-tag,.bd-tag[data-asset],.bd-tag.bd-add,.bd-tag.bd-add[data-asset]{font-size:12.5px;color:#e4eaf7;background:#24365e;border:1px solid #24365e;padding:2px 8px;border-radius:999px}
html[data-theme=light] .bd-tag,html[data-theme=light] .bd-tag[data-asset],html[data-theme=light] .bd-tag.bd-add[data-asset]{color:#1d2c44;background:#dfe7f8;border-color:#dfe7f8}
@media(max-width:640px){.bd{display:flex;flex-direction:column}.bd>.bd-intro{order:9;margin-top:16px}.bd-ghead{margin-bottom:8px}.bd-ghead .bd-btn.bd-ghost.bd-wlany{min-height:44px}}
@media(max-width:640px){.site .s-page:has(.s-dir)>.s-kicker{margin:6px 0 0;line-height:16px}.site .s-page:has(.s-dir)>h1{font-size:1.625rem;line-height:1.15;margin:2px 0 6px}
 .site .bd-filters{padding-block:6px}.bd-stickstat{margin-top:4px}.bd-count{margin:4px 0 0;line-height:18px}.bd-group:first-child{margin-top:4px}
 .bd-ghead{gap:8px;margin-bottom:4px}.bd-ghead .bd-gtitle{font-size:1rem;line-height:1.25}.bd-ghead .bd-btn.bd-ghost.bd-wlany{min-height:36px;padding:2px 10px;font-size:.8125rem}}
@media(max-width:640px){.site .s-page:has(.s-dir){display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;align-items:baseline}
 .site .s-page:has(.s-dir)>h1{grid-column:1;grid-row:1;margin:8px 0 6px}.site .s-page:has(.s-dir)>.s-kicker{grid-column:2;grid-row:1;margin:0;justify-self:end}.site .s-page:has(.s-dir)>.s-dir{grid-column:1/-1}.bd-group{scroll-margin-top:90px}}
/* M15 Y6: 360px — waitlist button stays on the heading row (title shrinks/wraps instead of pushing the button to its own line) */
.bd-ghead.bd-gstatus{flex-wrap:nowrap}.bd-ghead .bd-gtitle{min-width:0;flex:1 1 auto}
/* M16 Z5: waitlist button >= 44px tall, >= 12px from the heading, wraps below the heading on < 400px; "Also offers:" legend once above the list */
@media(max-width:640px){.bd-ghead.bd-gstatus{column-gap:12px}.bd-ghead .bd-btn.bd-ghost.bd-wlany{min-height:44px;padding:4px 14px}}
@media(max-width:399px){.bd-ghead.bd-gstatus{flex-wrap:wrap;row-gap:12px}.bd-ghead .bd-gtitle{flex:1 1 100%}.bd-ghead .bd-btn.bd-ghost.bd-wlany{margin:0}}
.bd-legend{margin:4px 0 8px;font-size:.8125rem;line-height:1.5;color:#c3cbdd}.bd-legend strong{color:#e4eaf7;font-weight:600}.bd-legend .bd-tag{display:inline-block;margin:0 2px}
html[data-theme=light] .bd-legend{color:#46596b}html[data-theme=light] .bd-legend strong{color:#1d2c44}
@media(max-width:640px){.bd-legend{margin:2px 0 4px;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bd-legend .bd-tag{padding:0 6px}.bd-group:first-of-type{margin-top:2px}}
/* M17 Q1: legend sits in the first section under its heading (visible below the sticky bar at scrollY 0); waitlist button keeps >= 12px above and below */
@media(max-width:640px){.bd-ghead.bd-gstatus{margin-bottom:12px}.bd-group .bd-legend{margin:0 0 8px;white-space:normal}}
/* M18 T2: legend "[Futures] Chips = extra asset classes beyond stocks, ETFs & options" >= 12.5px and >= 4.5:1 at every width (no ellipsis) */
.bd-legend,.bd-group .bd-legend{font-size:.8125rem;white-space:normal;overflow:visible}.bd-legend .bd-tag{margin:0 4px 0 0}
/* M19 W3: phones: >= 24px between the sticky panel (and the count under it) and the first section heading, also when a section is scrolled under the bar;
   legend = one-line caption whose sample is a non-interactive dotted outline (no fill, no hover/cursor), so it cannot read as a filter */
@media(max-width:640px){.bd-group:first-child,.bd-group:first-of-type{margin-top:24px}.bd-group{scroll-margin-top:171px}
 .bd-legend,.bd-group .bd-legend{white-space:nowrap;overflow:visible;font-size:12.5px;letter-spacing:-.1px}}
.bd-legsample{display:inline-block;margin:0 6px 0 0;cursor:default;pointer-events:none;user-select:none}
@media(max-width:379px){.bd-legend,.bd-group .bd-legend{white-space:normal}}
/* M20 X2: legend sample = the row tags' filled style (no dotted outline), inert; caption wraps with 16px right padding. Phones: the section waitlist button
   leaves the heading -> list gap and sits on the right of the sticky status line (ghost, 44px), so each heading sits directly above its list */
.bd-legend .bd-tag.bd-legsample{padding:2px 8px;margin:0 6px 0 0}
@media(max-width:640px){.bd-legend,.bd-group .bd-legend{white-space:normal;padding-right:16px}}
.bd-stickrow{display:contents}.bd-stickwl{display:none}
@media(max-width:640px){.bd-stickrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}.bd-stickrow .bd-stickstat{margin:0;min-width:0}
 .bd-stickrow .bd-btn.bd-ghost.bd-stickwl{display:inline-flex;align-items:center;flex:none;min-height:44px;padding:4px 12px;font-size:.8125rem;margin:0}
 .bd-stickrow .bd-stickwl[hidden]{display:none}.bd-ghead .bd-btn.bd-ghost.bd-wlany{display:none}}
/* M21 Y2: legend = plain one-line caption (no sample chip); sticky status stays one line with a short "Notify me" ghost on its right (>= 44px) */
@media(max-width:640px){.bd-legend,.bd-group .bd-legend{white-space:nowrap;font-size:12.5px;letter-spacing:-.1px;padding-right:0}
 .bd-stickrow .bd-stickstat{white-space:nowrap;flex:1 1 auto}.bd-stickrow .bd-btn.bd-ghost.bd-stickwl{padding:4px 14px}}
/* M22 Z3: phones: the sticky status row is a compact amber-tinted notice (~12% amber, 13px, >= 4.5:1); "Notify me" is a small ghost whose 44px hit area
   comes from transparent padding (the visible pill is the ::before); asset tags 12.5px / 600 */
@media(max-width:640px){.bd-stickrow{background:#2c2a26;border:1px solid #f5b94a59;border-radius:10px;padding:0 4px 0 10px;gap:8px}
 .bd-stickrow .bd-stickstat{font-size:13px;color:#f1e6cf}
 .bd-stickrow .bd-btn.bd-ghost.bd-stickwl{position:relative;isolation:isolate;min-height:44px;padding:0 10px;font-size:.75rem;border:0;background:none;color:#ffd789}
 .bd-stickrow .bd-btn.bd-ghost.bd-stickwl::before{content:"";position:absolute;inset:9px 0;z-index:-1;border:1px solid #f5b94a99;border-radius:999px}}
html[data-theme=light] .bd-stickrow{background:#fff4dc;border-color:#d99a1e80}
html[data-theme=light] .bd-stickrow .bd-stickstat{color:#3a2c0a}html[data-theme=light] .bd-stickrow .bd-btn.bd-ghost.bd-stickwl{color:#7a4f00}
.bd-tag,.bd-tag[data-asset],.bd-tag.bd-add,.bd-tag.bd-add[data-asset]{font-size:12.5px;font-weight:600}
/* M23 Y6: phones: "Notify me" visible pill >= 36px inside its 44px hit area; asset tags 13px / 600 at >= 4.5:1; legend caption >= 4.5:1 */
@media(max-width:640px){.bd-stickrow .bd-btn.bd-ghost.bd-stickwl::before{inset:4px 0}.bd-legend,.bd-group .bd-legend{color:#c3cbdd}}
.bd-tag,.bd-tag[data-asset],.bd-tag.bd-add,.bd-tag.bd-add[data-asset]{font-size:13px}
/* M24 X4: notice row scrolls with the content (outside the sticky .bd-filters); "Notify me" pill itself is 44px tall (no inset hit-area trick) */
.bd-stickrow{margin:8px 0 0}@media(min-width:641px){.bd-stickrow{display:flex;align-items:center;gap:12px}}
@media(max-width:640px){.bd-stickrow .bd-btn.bd-ghost.bd-stickwl::before{inset:0}.bd-stickrow{padding-right:0}}
/* M24 X5: 6-colour monogram palette (white / light letter >= 4.5:1 on each tile), dark + light theme */
.bd-card .bd-mark.bd-mh0,.bd-mark.bd-mh0{background:#24467a;color:#fff}.bd-card .bd-mark.bd-mh1,.bd-mark.bd-mh1{background:#1d5c52;color:#fff}.bd-card .bd-mark.bd-mh2,.bd-mark.bd-mh2{background:#553a7d;color:#fff}
.bd-card .bd-mark.bd-mh3,.bd-mark.bd-mh3{background:#7a4422;color:#fff}.bd-card .bd-mark.bd-mh4,.bd-mark.bd-mh4{background:#30562c;color:#fff}.bd-card .bd-mark.bd-mh5,.bd-mark.bd-mh5{background:#7a2f48;color:#fff}
html[data-theme=light] .bd-card .bd-mark.bd-mh0,html[data-theme=light] .bd-drawer .bd-mark.bd-mh0{background:#dbe6f7;color:#1c3561}html[data-theme=light] .bd-card .bd-mark.bd-mh1,html[data-theme=light] .bd-drawer .bd-mark.bd-mh1{background:#d6eee8;color:#164a41}
html[data-theme=light] .bd-card .bd-mark.bd-mh2,html[data-theme=light] .bd-drawer .bd-mark.bd-mh2{background:#e6def4;color:#432d66}html[data-theme=light] .bd-card .bd-mark.bd-mh3,html[data-theme=light] .bd-drawer .bd-mark.bd-mh3{background:#f5e2d3;color:#61341a}
html[data-theme=light] .bd-card .bd-mark.bd-mh4,html[data-theme=light] .bd-drawer .bd-mark.bd-mh4{background:#dcecd8;color:#264522}html[data-theme=light] .bd-card .bd-mark.bd-mh5,html[data-theme=light] .bd-drawer .bd-mark.bd-mh5{background:#f3dbe3;color:#61253a}
/* M25 W5: with the self-hosted Inter face the phone legend + search row are a few px wider than the old fallback; keep both inside the 16px gutter at 360 */
@media(max-width:379px){.bd-searchrow .bd-search,.bd-searchrow .bd-search input{min-width:0;width:100%}.bd-searchrow .bd-sheetbtn{padding-inline:10px;flex:none}
 .bd-legend,.bd-group .bd-legend{letter-spacing:-.5px;word-spacing:-1px}}
/* M25 W6: 10 monogram hues (OKLCH L .42 / C .085, 36deg apart; light theme L .93 tile + L .36 letter), white letters >= 7.9:1; adjacent tiles never share one (brokerdir.js:9) */
.bd-card .bd-mark.bd-mh0,.bd-mark.bd-mh0{background:#2b4e7a;color:#fff}.bd-card .bd-mark.bd-mh1,.bd-mark.bd-mh1{background:#4e4478;color:#fff}.bd-card .bd-mark.bd-mh2,.bd-mark.bd-mh2{background:#653b65;color:#fff}.bd-card .bd-mark.bd-mh3,.bd-mark.bd-mh3{background:#723748;color:#fff}.bd-card .bd-mark.bd-mh4,.bd-mark.bd-mh4{background:#743b28;color:#fff}.bd-card .bd-mark.bd-mh5,.bd-mark.bd-mh5{background:#684507;color:#fff}.bd-card .bd-mark.bd-mh6,.bd-mark.bd-mh6{background:#4f510e;color:#fff}.bd-card .bd-mark.bd-mh7,.bd-mark.bd-mh7{background:#295930;color:#fff}.bd-card .bd-mark.bd-mh8,.bd-mark.bd-mh8{background:#005c51;color:#fff}.bd-card .bd-mark.bd-mh9,.bd-mark.bd-mh9{background:#00576c;color:#fff}
html[data-theme=light] .bd-card .bd-mark.bd-mh0,html[data-theme=light] .bd-drawer .bd-mark.bd-mh0{background:#d9eaff;color:#183d6b}html[data-theme=light] .bd-card .bd-mark.bd-mh1,html[data-theme=light] .bd-drawer .bd-mark.bd-mh1{background:#e7e4fe;color:#3e3368}html[data-theme=light] .bd-card .bd-mark.bd-mh2,html[data-theme=light] .bd-drawer .bd-mark.bd-mh2{background:#f5e0f4;color:#552a55}html[data-theme=light] .bd-card .bd-mark.bd-mh3,html[data-theme=light] .bd-drawer .bd-mark.bd-mh3{background:#fddfe5;color:#622538}html[data-theme=light] .bd-card .bd-mark.bd-mh4,html[data-theme=light] .bd-drawer .bd-mark.bd-mh4{background:#fee1d7;color:#632915}html[data-theme=light] .bd-card .bd-mark.bd-mh5,html[data-theme=light] .bd-drawer .bd-mark.bd-mh5{background:#f6e5cf;color:#583400}html[data-theme=light] .bd-card .bd-mark.bd-mh6,html[data-theme=light] .bd-drawer .bd-mark.bd-mh6{background:#e8ebd0;color:#404100}html[data-theme=light] .bd-card .bd-mark.bd-mh7,html[data-theme=light] .bd-drawer .bd-mark.bd-mh7{background:#d9efdb;color:#14491f}html[data-theme=light] .bd-card .bd-mark.bd-mh8,html[data-theme=light] .bd-drawer .bd-mark.bd-mh8{background:#cff0ea;color:#004b42}html[data-theme=light] .bd-card .bd-mark.bd-mh9,html[data-theme=light] .bd-drawer .bd-mark.bd-mh9{background:#cfeef8;color:#00475d}
/* M25 W6: asset-class chips = 13px, one subtle tint per class (text >= 4.5:1 on the chip, border = fill) */
.bd-card .bd-tag.bd-add[data-asset=futures],.bd-drawer .bd-tag[data-asset=futures]{background:#3a2f17;border-color:#3a2f17;color:#fde68a}
.bd-card .bd-tag.bd-add[data-asset=forex],.bd-drawer .bd-tag[data-asset=forex]{background:#123845;border-color:#123845;color:#a5f3fc}
.bd-card .bd-tag.bd-add[data-asset=crypto],.bd-drawer .bd-tag[data-asset=crypto]{background:#2d2350;border-color:#2d2350;color:#ddd6fe}
html[data-theme=light] .bd-card .bd-tag.bd-add[data-asset=futures],html[data-theme=light] .bd-drawer .bd-tag[data-asset=futures]{background:#fdf0d2;border-color:#fdf0d2;color:#6b4500}
html[data-theme=light] .bd-card .bd-tag.bd-add[data-asset=forex],html[data-theme=light] .bd-drawer .bd-tag[data-asset=forex]{background:#dcf3fa;border-color:#dcf3fa;color:#0a4f66}
html[data-theme=light] .bd-card .bd-tag.bd-add[data-asset=crypto],html[data-theme=light] .bd-drawer .bd-tag[data-asset=crypto]{background:#ede7fb;border-color:#ede7fb;color:#4a2a95}
/* M26 B2 owner broker logos: 140x48 logo area, contain, never upscale a raster (width/height auto = natural size, capped by the chip) */
.bd-logo{flex:none;width:140px;height:48px;box-sizing:border-box;padding:6px 12px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#f4f5fa;border:1px solid rgba(20,23,51,.08);overflow:hidden}
.bd-logo.bd-tone-dark{background:#151a38;border-color:rgba(255,255,255,.10)}
.bd-logoimg{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.bd-logo-wide .bd-logoimg[data-natural=vector]{width:100%;height:100%}
.bd-logo-sm .bd-logoimg{max-width:32px;max-height:32px}
@media(max-width:640px){.bd-logo{width:112px;height:44px;padding:5px 10px}}
/* M27 C4: uniform light tile for every logo (one tone, 96x36 optical box); icons <= 28px, wordmarks <= 88x28; IBKR-style short names as a small tag */
.bd-logo,.bd-logo.bd-tone-dark{width:96px;height:36px;padding:4px;background:#F5F6FA;border:1px solid rgba(20,23,51,.10);border-radius:9px}
.bd-logo .bd-logoimg{max-width:28px;max-height:28px;object-fit:contain}
.bd-logo.bd-k-wordmark .bd-logoimg{max-width:88px;max-height:28px}
.bd-logo.bd-k-wordmark .bd-logoimg[data-natural=vector]{width:auto;height:auto;max-height:24px;max-width:88px}
.bd-card .bd-logo.bd-k-icon .bd-logoimg[data-natural=vector]{width:30px;height:30px;max-width:30px;max-height:30px}
@media(max-width:640px){.bd-card .bd-logo.bd-k-icon .bd-logoimg[data-natural=vector]{width:32px;height:32px;max-width:32px;max-height:32px}}
@media(max-width:374px){.bd-card .bd-logo,.bd-card .bd-logo.bd-tone-dark,.bd-card .bd-mark{width:68px}.bd-card .bd-logo.bd-k-wordmark .bd-logoimg,.bd-card .bd-logo.bd-k-wordmark .bd-logoimg[data-natural=vector]{max-width:58px}}
@media(min-width:641px){.bd-card .bd-logo.bd-k-wordmark .bd-logoimg[data-natural=vector]{max-width:80px}}
.bd-logo.bd-logo-sm .bd-logoimg{max-width:24px;max-height:24px}
@media(max-width:640px){.bd-logo,.bd-logo.bd-tone-dark{width:96px;height:36px;padding:4px}}
.bd-ntag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:6px;border:1px solid var(--bd-line);font-size:.6875rem;font-weight:600;letter-spacing:.02em;color:var(--bd-muted);vertical-align:2px}
.bd-card,.bd-site .bd-card,.bd-grid>.bd-card{height:auto;min-height:60px}
.bd-card .bd-main{padding-block:2px 8px}
/* M27 C7: phone rows keep one rhythm (M14 X4) now that tag rows grow for the C4 8px pill padding; below 375px the IBKR tag folds away (its title keeps it) so "Interactive Brokers" stays one 16px line */
@media(max-width:1023px){.bd-card,.bd-site .bd-card,.bd-grid>.bd-card{height:76px;min-height:76px}}
@media(max-width:374px){.bd-card .bd-ntag{display:none}}
/* M28 A7: phones: ONE uniform 44x44 square tile (rgba(255,255,255,.92), radius 10) for every row logo; square marks ~28px, wordmarks height-bound (max 32 wide), >= 6px padding; monogram rows use the same box */
@media(max-width:640px){
 .bd-card .bd-logo,.bd-card .bd-logo.bd-tone-dark,.bd-top .bd-logo{width:44px;height:44px;padding:6px;border-radius:10px;background:rgba(255,255,255,.92);border:0;box-sizing:border-box}
 .bd-card .bd-logo .bd-logoimg,.bd-top .bd-logo .bd-logoimg,.bd-card .bd-logo.bd-k-icon .bd-logoimg[data-natural=vector]{max-width:28px;max-height:28px}
 .bd-card .bd-logo.bd-k-wordmark .bd-logoimg,.bd-card .bd-logo.bd-k-wordmark .bd-logoimg[data-natural=vector],.bd-top .bd-logo.bd-k-wordmark .bd-logoimg{width:auto;height:auto;max-width:32px;max-height:28px}
 .bd-card .bd-logo.bd-logo-sm .bd-logoimg{max-width:24px;max-height:24px}
 .bd-card .bd-mark{width:44px;height:44px;border-radius:10px;flex:none}
}

/* HOTFIX card layout 15 Nov (owner/Ahmed phone shot): cards with a status pill or a Connect button put pill + button + name in one flex
   row, so the name column shrank to ~23px ("SnapTra/de", one tag per line, chevron mid-card). These cards now use a grid: logo | name | chevron
   on row 1, pill and button on their own full-width rows under the name. Names never break inside a word. */
.bd-card .bd-name,.bd-card .bd-open{overflow-wrap:normal;word-break:normal;hyphens:none}
.bd-card:has(>.bd-pill),.bd-card:has(>.bd-btn),.bd-site .bd-card:has(>.bd-pill),.bd-site .bd-card:has(>.bd-btn),.bd-grid>.bd-card:has(>.bd-pill),.bd-grid>.bd-card:has(>.bd-btn){
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"mk main chev" ". pill pill" ". act act";align-items:center;column-gap:12px;row-gap:8px;height:auto;min-height:60px;padding-block:12px 10px}
.bd-card:has(>.bd-pill)>:first-child,.bd-card:has(>.bd-btn)>:first-child{grid-area:mk;align-self:start}
.bd-card:has(>.bd-pill)>.bd-main,.bd-card:has(>.bd-btn)>.bd-main{grid-area:main;padding-block:0}
.bd-card:has(>.bd-pill)>.bd-chev,.bd-card:has(>.bd-btn)>.bd-chev{grid-area:chev;align-self:start;margin:6px 0 0}
.bd-card>.bd-pill,.bd-site .bd-card>.bd-pill{grid-area:pill;justify-self:start;margin:0;order:0;max-width:100%;white-space:normal}
.bd-card>.bd-btn,.bd-site .bd-card>.bd-btn{grid-area:act;justify-self:stretch;width:100%;margin:0;min-height:44px}
@media(max-width:640px){.bd-card:has(>.bd-pill),.bd-card:has(>.bd-btn){column-gap:10px}}
/* HOTFIX logos 15 Nov (owner): phones get ONE uniform 84x44 tile so wordmark logos (CQG, OrderIQT, OANDA, Tradier, Fidelity...) are readable
   instead of 32 px wide; square icons up to 32 px, centred. */
@media(max-width:640px){
 .bd-card .bd-logo,.bd-card .bd-logo.bd-tone-dark,.bd-top .bd-logo{width:84px;height:44px;padding:5px 6px}
 .bd-card .bd-logo .bd-logoimg,.bd-top .bd-logo .bd-logoimg,.bd-card .bd-logo.bd-k-icon .bd-logoimg[data-natural=vector]{max-width:32px;max-height:32px}
 .bd-card .bd-logo.bd-k-icon .bd-logoimg[data-natural=vector]{width:32px;height:32px}
 .bd-card .bd-logo.bd-k-wordmark .bd-logoimg,.bd-card .bd-logo.bd-k-wordmark .bd-logoimg[data-natural=vector],.bd-top .bd-logo.bd-k-wordmark .bd-logoimg{max-width:72px;max-height:30px}
 .bd-card .bd-mark{width:84px;height:44px}
}
/* desktop: square vector icons fill their 28 px box (SnapTrade rendered tiny) */
.bd-logo.bd-k-icon .bd-logoimg[data-natural=vector]{width:28px;height:28px}
@media(max-width:374px){.bd-card,.bd-site .bd-card,.bd-grid>.bd-card{height:auto;min-height:76px}}
