/* BizScoreAI directory + master-search cards, v3 (2026-10-07, Joe: "as polished as Clutch", then "very disjointed,
   does not look tight like Clutch": v3 is a 4-column integrated grid with a button rail).
   ONE stylesheet for every card: server-rendered directory pages (statesBrowse cardHTML, also used by cityBrowse,
   practicePages, verticalHubs, directory.js) and /business-search/ (the API returns the same server-rendered card).
   Change a ?v= on every page that links this file when editing it (Cloudflare caches ?v= assets for a year). */

/* Traffic-light score scale (Joe): >=90 green, 80s light green, 70s yellow-green, 60s yellow, 50s amber, 40s orange,
   <40 red. The class comes from scoreBand() in server/routes/statesBrowse.js. Overrides the admin no-rainbow rule for
   score colours only. --c = colour, --t = readable text on it. */
/* v3 shades: deeper, less neon, so the greens sit with the house navy (#0f2540) and red (#EE1B24); same meaning. */
.tl-g90{--c:#15803d;--t:#fff}
.tl-g80{--c:#2f9e55;--t:#fff}
.tl-g70{--c:#84b83a;--t:#0f2540}
.tl-g60{--c:#e3b505;--t:#0f2540}
.tl-g50{--c:#e98b13;--t:#0f2540}
.tl-g40{--c:#e2621b;--t:#fff}
.tl-g0{--c:#d7262e;--t:#fff}

/* ---- Filter bar (directory pages) ---- */
/* The whole filter row is ONE card (Joe: "white on a white background, it needs to stand out"): thin near-black
   outline, light gray fill, white fields inside. */
.bsai-fbar,.bsai-frow{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 14px;padding:14px 16px;background:#f3f4f6;border:1px solid #1f2937;border-radius:10px;box-sizing:border-box}
.bsai-dd{position:static}
.bsai-dd>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;border:1px solid #cfd8e3;border-radius:8px;background:#fff;color:#0f2540;font-weight:600;font-size:15px;user-select:none;white-space:nowrap;box-sizing:border-box}
.bsai-dd>summary::-webkit-details-marker{display:none}
.bsai-dd>summary::after{content:"";width:7px;height:7px;border-right:2px solid #0f2540;border-bottom:2px solid #0f2540;transform:rotate(45deg);margin:-4px 0 0 2px}
.bsai-dd[open]>summary{border-color:#0f2540;box-shadow:0 0 0 1px #0f2540}
.bsai-dd-panel{position:absolute;left:0;right:0;top:calc(100% - 6px);z-index:30;background:#fff;border:1px solid #cfd8e3;border-radius:10px;box-shadow:0 12px 32px rgba(15,37,64,.14);padding:14px 16px;max-height:70vh;overflow:auto}
.bsai-dd-all{display:inline-block;font-weight:700;color:#EE1B24;text-decoration:none;margin:0 0 10px}
.bsai-dd-cols{columns:4 200px;column-gap:24px}
.bsai-dd-grp{break-inside:avoid;margin:0 0 14px}
.bsai-dd-grp b{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#5b6b7c;margin:0 0 4px}
.bsai-dd-grp a{display:block;padding:3px 0;color:#0f2540;text-decoration:none;font-size:14px}
.bsai-dd-grp a:hover,.bsai-dd-all:hover{color:#EE1B24}
.bsai-dd-grp a .c{font-size:12px;color:#5b6b7c;margin-left:4px}
.bsai-dd-off{display:block;padding:3px 0;color:#9aa7b4;font-size:14px}
.bsai-about{margin:26px 0 8px;padding-top:18px;border-top:1px solid #e3e9ef}
.bsai-about .bsai-intro,.bsai-about p{margin:0 0 12px}
.bsai-empty{padding:30px;text-align:center;color:#5b6b7c}
.bsai-fld.bsai-fld-sort select{min-width:345px}
.bsai-fcount{margin-left:auto;color:#0f2540;font-size:15px;white-space:nowrap}
.bsai-fchips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 18px}
.bsai-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #0f2540;border-radius:6px;padding:5px 10px;color:#0f2540;font-weight:600;font-size:14px;background:#fff}
.bsai-chip a{color:#0f2540;text-decoration:none;font-size:16px;line-height:1}
.bsai-chip a:hover{color:#EE1B24}
.bsai-clear{color:#EE1B24;font-weight:700;text-decoration:none;font-size:14px}

/* ---- Master search filter row (/business-search/) ---- */
.bsai-frow{align-items:flex-end}
.bsai-fld{display:flex;flex-direction:column;gap:4px;margin:0}
.bsai-fld>label{font-size:12px;font-weight:700;color:#5b6b7c;letter-spacing:.02em;margin:0}
.bsai-fld input[type=text],.bsai-fld select{height:44px;border:1px solid #cfd8e3;border-radius:8px;padding:0 12px;font-size:15px;color:#0f2540;background:#fff;box-sizing:border-box;margin:0}
.bsai-fld input[type=text]:focus,.bsai-fld select:focus{outline:none;border-color:#0f2540;box-shadow:0 0 0 1px #0f2540}
.bsai-fld-loc input[type=text]{width:210px}
.bsai-fld-kw input[type=text]{width:180px}
.bsai-fld select{min-width:120px}
.bsai-chk{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px;border:1px solid #cfd8e3;border-radius:8px;font-weight:600;font-size:15px;color:#0f2540;background:#fff;cursor:pointer;margin:0;box-sizing:border-box;white-space:nowrap}
.bsai-chk input{width:16px;height:16px;margin:0;accent-color:#0f2540}
.bsai-frow .bsai-go{height:44px;padding:0 20px}
.bsai-frow .bsai-fcount{align-self:center}
.bsai-rhead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 16px}
.bsai-rhead h2{margin:0;font-size:22px;line-height:1.3;color:#0f2540;font-weight:700}
.bsai-sortwrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.bsai-sortwrap .bsai-fcount{margin:0 10px 0 0}
.bsai-sortwrap label{font-size:14px;color:#5b6b7c;margin:0;white-space:nowrap}
.bsai-sortwrap select{height:44px;border:1px solid #cfd8e3;border-radius:8px;padding:0 12px;font-size:15px;color:#0f2540;background:#fff;min-width:345px}
.bsai-hubtop{padding:18px 0 4px}
.bsai-hubtop .bsai-bc{font-size:14px;color:#5b6b7c;margin:0 0 8px}
.bsai-hubtop .bsai-bc a{color:#0f2540;text-decoration:none}
.bsai-hubtop .bsai-bc a:hover{color:#EE1B24}
.bsai-hubtop h1{font-size:34px;line-height:1.2;font-weight:800;color:#0f2540;margin:0 0 6px}

/* ---- Card v3 ----
   desktop: [screenshot + ring] | [name, rating, then score breakdown] | [facts + About] | [button rail]
   The left column and the button rail span the full card height; the name sits at the top of columns 2-3. */
.bsai-ccard{position:relative;background:#fff;border:2px solid #8a99ab;border-radius:12px;margin:0 0 26px;overflow:hidden}
.bsai-ccard.bsai-ccard-featured{border:2px solid #f59e0b}
.bsai-cgrid{display:grid;grid-template-columns:200px minmax(0,250px) minmax(0,1fr) 188px;grid-template-rows:auto 1fr;grid-template-areas:"media head head btns" "media subs info btns";column-gap:24px;row-gap:12px;padding:16px 18px;align-items:start}
.bsai-chead{grid-area:head;min-width:0}
.bsai-cname,main.browse-results .bsai-ccard h2.bsai-cname{margin:0;font-size:20px;line-height:1.3;font-weight:700;color:#0f2540}
.bsai-cname>a{color:#0f2540;text-decoration:none}.bsai-cname>a:hover{color:#EE1B24}
.bsai-crank{display:inline-block;background:#0f2540;color:#fff;font-size:12px;font-weight:700;border-radius:6px;padding:3px 8px;margin-right:8px;vertical-align:2px}
.bsai-crating{margin:3px 0 0;font-size:14px;color:#26405c}
.bsai-crating .st{color:#f59e0b;letter-spacing:1px}
.bsai-crating b{color:#0f2540}
.bsai-cbtns{grid-area:btns;display:flex;flex-direction:column;gap:8px;align-self:start}
.bsai-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 10px;border-radius:8px;font-weight:700;font-size:14px;text-decoration:none;white-space:nowrap;box-sizing:border-box;cursor:pointer;border:1.5px solid transparent}
.bsai-cbtns .bsai-btn{width:100%}
.bsai-btn svg{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bsai-btn-p{border-color:#EE1B24;background:#EE1B24;color:#fff}.bsai-btn-p:hover{background:#d3121b;border-color:#d3121b;color:#fff}
.bsai-btn-o{border-color:#0f2540;color:#0f2540;background:#fff}.bsai-btn-o:hover{background:#0f2540;color:#fff}
.bsai-btn-n{border-color:#0f2540;background:#0f2540;color:#fff}.bsai-btn-n:hover{background:#1c3a5e;border-color:#1c3a5e;color:#fff}
.bsai-cmedia{grid-area:media;display:flex;flex-direction:column;align-items:center;gap:12px}
.bsai-shot{width:200px;height:125px;border-radius:8px;overflow:hidden;border:1px solid #dfe5ec;background:#f3f6f9;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.bsai-shot img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}
.bsai-shot .ph{font-size:44px;font-weight:700;color:#9aa7b4}
.bsai-score{display:flex;flex-direction:column;align-items:center;gap:6px}
.bsai-ring{width:116px;height:116px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:conic-gradient(var(--c) calc(var(--v) * 1%),#e5e9ef 0)}
.bsai-ring>span{width:94px;height:94px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;color:#0f2540}
.bsai-ring b{font-size:38px;font-weight:800;color:#0f2540}
.bsai-ring small{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#5b6b7c;margin-top:4px}
.bsai-grade{display:inline-block;background:var(--c);color:var(--t);font-weight:800;font-size:12px;line-height:1;border-radius:999px;padding:5px 12px}
.bsai-subs{grid-area:subs;min-width:0}
.bsai-subs-h{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#5b6b7c;margin:2px 0 8px;font-weight:700;line-height:14px}
.bsai-sub{margin:0 0 10px}
.bsai-sub-row{display:flex;justify-content:space-between;align-items:center;height:24px;font-size:14px;color:#26405c;margin:0 0 4px}
.bsai-sub-row b{min-width:36px;text-align:center;border-radius:6px;padding:3px 6px;font-size:13px;font-weight:800;line-height:1.2;background:var(--c);color:var(--t);box-sizing:border-box}
.bsai-bar{height:7px;border-radius:4px;background:#e5e9ef;overflow:hidden}
.bsai-bar>i{display:block;height:100%;border-radius:4px;background:var(--c)}
.bsai-cinfo{grid-area:info;min-width:0}
.bsai-facts{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 22px;font-size:14px;color:#26405c}
.bsai-facts li{display:flex;align-items:flex-start;gap:8px;margin:0;max-width:100%;overflow-wrap:anywhere;line-height:1.4}
.bsai-facts svg{flex:0 0 16px;width:16px;height:16px;margin-top:2px;fill:none;stroke:#5b6b7c;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bsai-cdesc{font-size:14px;line-height:1.6;color:#26405c;margin:12px 0 0;padding-top:10px;border-top:1px solid #edf1f5}
.bsai-facts:empty+.bsai-cdesc,.bsai-cinfo>.bsai-cdesc:first-child{margin-top:0;padding-top:0;border-top:0}
.bsai-cfoot{display:flex;flex-wrap:wrap;gap:6px;padding:7px 18px;border-top:1px solid #edf1f5;background:#fafbfc}
.bsai-hl{display:inline-block;border:1px solid #dfe5ec;border-radius:6px;background:#fff;padding:4px 10px;font-size:14.5px;color:#26405c}
/* 2026-10-07: permanently closed listings (shown only with "Show closed businesses" or a name search) */
.bsai-closed{display:inline-block;font-size:12px;font-weight:700;line-height:1;border-radius:999px;padding:5px 10px;margin-left:8px;vertical-align:middle;color:#fff;background:#6b7280;border:1px solid #6b7280;white-space:nowrap}
.bsai-ccard-closed .bsai-shot img{filter:grayscale(1);opacity:.75}
.bsai-ccard-closed .bsai-cname>a{color:#4b5563}
/* claimed-first explanation */
.bsai-claimline{margin:-6px 0 16px;font-size:14px;color:#26405c}
.bsai-claimline a{color:#EE1B24;font-weight:700;text-decoration:none;white-space:nowrap}
.bsai-claim-note{display:block;margin:-3px 0 0;font-size:12px;color:#6b7280;text-align:center;line-height:1.3}
.bsai-hl b{color:#0f2540;white-space:nowrap}

@media (max-width:1180px){
 .bsai-cgrid{grid-template-columns:200px minmax(0,1fr);grid-template-rows:none;grid-template-areas:"media head" "media subs" "info info" "btns btns"}
 .bsai-cbtns{flex-direction:row;flex-wrap:wrap}
 .bsai-cbtns .bsai-btn{width:188px}
}
@media (max-width:720px){
 .bsai-fbar,.bsai-frow{padding:12px;gap:8px}
 .bsai-dd>summary{height:40px;padding:0 12px;font-size:14px}
 .bsai-fcount{font-size:14px}
 .bsai-dd-panel{position:fixed;left:16px;right:16px;top:auto;bottom:16px;max-height:65vh}
 .bsai-dd-cols{columns:1}
 .bsai-fld,.bsai-fld-loc,.bsai-fld-kw{flex:1 1 100%}
 .bsai-fld-loc input[type=text],.bsai-fld-kw input[type=text]{width:100%}
 .bsai-fld-sel{flex:1 1 calc(50% - 4px);min-width:0}
 .bsai-fld-sel select{width:100%;min-width:0}
 .bsai-fld-sort{flex:1 1 100%}.bsai-fld.bsai-fld-sort select{width:100%;min-width:0}
 .bsai-stats,.bsai-method{display:none}
 .bsai-chk,.bsai-frow .bsai-go{height:40px}
 .bsai-frow .bsai-fcount{flex:1 1 100%;margin-left:0}
 .bsai-rhead h2{font-size:19px}
 .bsai-sortwrap{flex:1 1 100%}.bsai-sortwrap select{flex:1;min-width:0}.bsai-sortwrap .bsai-fcount{flex:1 1 100%}
 .bsai-hubtop h1{font-size:26px}
 .bsai-cgrid{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"head" "media" "subs" "btns" "info";padding:14px;row-gap:12px}
 .bsai-cname,main.browse-results .bsai-ccard h2.bsai-cname{font-size:19px}
 .bsai-cmedia{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
 .bsai-shot{flex:1 1 0;min-width:0;max-width:200px;width:auto;height:auto;aspect-ratio:16/10}
 .bsai-ring{width:104px;height:104px}
 .bsai-ring>span{width:82px;height:82px}
 .bsai-ring b{font-size:32px}
 .bsai-cbtns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .bsai-claim-note{grid-column:1 / -1;margin:0}
 .bsai-hl{font-size:13.5px}
 .bsai-cbtns .bsai-btn{width:auto}
 .bsai-cbtns .bsai-btn{width:auto;min-width:0;font-size:12.5px;padding:0 4px;gap:4px}
 .bsai-cbtns .bsai-btn svg{width:13px;height:13px;flex-basis:13px}
 .bsai-facts{flex-direction:column}
 .bsai-cfoot{padding:7px 14px}
}
/* 2026-10-07 Joe: Claimed / Verified must be noticed at a glance. Solid filled badges, scoped to directory cards
   only (the listing page keeps TIER_CSS from badge-engine.js; it is a protected page). */
.bsai-ccard .bsai-tier{font-size:13px;font-weight:700;letter-spacing:.01em;padding:6px 12px 6px 10px;margin-left:10px;border:0;border-radius:999px;vertical-align:4px;box-shadow:0 1px 3px rgba(15,37,64,.25)}
.bsai-ccard .bsai-tier i{margin-right:5px;font-size:13px}
.bsai-ccard .bsai-tier-claimed{background:#15803d;color:#fff}
.bsai-ccard .bsai-tier-verified{background:#0369a1;color:#fff}
.bsai-ccard .bsai-tier-top-rated{background:#d97706;color:#fff}
.bsai-ccard .bsai-tier + .bsai-tier{margin-left:6px}
@media (max-width:640px){.bsai-ccard .bsai-tier{font-size:12px;padding:5px 10px 5px 8px;margin:6px 6px 0 0;vertical-align:middle}}

/* ---- 2026-10-07 mobile (Joe: "like Clutch on a phone"). Desktop never shows any of these. ---- */
.bsai-mbar,.bsai-sheet-head,.bsai-sheet-foot,.bsai-more{display:none}
.bsai-more[hidden]{display:none !important}
@media (max-width:720px){
 /* the shared site top bar was 3px wider than the phone */
 .et-topbar{overflow-x:clip}
 /* one compact row instead of the stacked filter card: count + filter icon (badge = active filters) */
 .bsai-mbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 12px}
 .bsai-mcount{font-size:16px;color:#0f2540}
 .bsai-mfilter{position:relative;width:46px;height:46px;flex:0 0 46px;border:1px solid #1f2937;border-radius:8px;background:#f3f4f6;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
 .bsai-mfilter svg{width:22px;height:22px;fill:none;stroke:#0f2540;stroke-width:2;stroke-linecap:round}
 .bsai-mbadge{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;border-radius:10px;background:#EE1B24;color:#fff;font-size:12px;font-weight:700;line-height:20px;text-align:center;padding:0 5px;box-sizing:border-box}
 /* the filter form becomes a full-height sheet */
 form.bsai-sheet{display:none}
 html.bsai-sheet-open,html.bsai-sheet-open body{overflow:hidden}
 html.bsai-sheet-open form.bsai-sheet{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000000;margin:0;border:0;border-radius:0;background:#f3f4f6;padding:0 16px;overflow-y:auto;gap:12px;-webkit-overflow-scrolling:touch}
 .bsai-sheet-head{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#f3f4f6;padding:12px 0 10px;border-bottom:1px solid #d1d5db;z-index:2;margin:0;flex:0 0 auto}
 .bsai-sheet-head b{font-size:20px;color:#0f2540}
 .bsai-sheet-x{width:44px;height:44px;border:1px solid #1f2937;border-radius:8px;background:#fff;font-size:26px;line-height:1;color:#0f2540;cursor:pointer;padding:0}
 .bsai-sheet-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;bottom:0;background:#f3f4f6;padding:12px 0 16px;border-top:1px solid #d1d5db;margin-top:auto;z-index:2;flex:0 0 auto}
 .bsai-sheet-clear{color:#EE1B24;font-weight:700;text-decoration:none;font-size:15px;padding:12px 4px;min-height:44px;display:inline-flex;align-items:center}
 .bsai-sheet-go{flex:1;height:48px;font-size:15px}
 form.bsai-sheet .bsai-fcount,form.bsai-sheet .bsai-go{display:none}
 form.bsai-sheet .bsai-fld,form.bsai-sheet .bsai-fld-sel,form.bsai-sheet .bsai-chk,form.bsai-sheet details.bsai-dd{flex:0 0 auto;width:100%;box-sizing:border-box}
 form.bsai-sheet .bsai-fld input[type=text],form.bsai-sheet .bsai-fld select{width:100%;height:48px;min-width:0}
 form.bsai-sheet .bsai-chk{height:48px}
 form.bsai-sheet .bsai-dd>summary{width:100%;justify-content:space-between;height:48px;font-size:15px}
 form.bsai-sheet .bsai-dd-panel{position:static;max-height:none;box-shadow:none;border:1px solid #d1d5db;margin-top:6px;padding:10px 12px}
 form.bsai-sheet .bsai-dd-grp a{padding:9px 0;font-size:15px}
 /* intro / About text: 2 lines, then "Read more" (the full text stays in the page) */
 .bsai-about:not(.bsai-open){max-height:3.4em;overflow:hidden;line-height:1.7}
 .bsai-about:not(.bsai-open) p{line-height:1.7}
 .bsai-more{display:inline-flex;align-items:center;background:none;border:0;color:#EE1B24;font-weight:700;padding:0;min-height:44px;cursor:pointer;font-size:14px;margin:0 0 6px}
 .bsai-more::before{content:"+";margin-right:6px;font-size:18px;line-height:1}
 .bsai-more[aria-expanded=true]::before{content:"-"}
 /* card order on phones: name, screenshot + ring, breakdown, About (3 lines + Show more), facts 2x2, buttons, chips */
 .bsai-cgrid{grid-template-areas:"head" "media" "subs" "info" "btns"}
 .bsai-cinfo{display:flex;flex-direction:column}
 .bsai-cinfo .bsai-cdesc{order:1;margin:0;padding:0;border:0}
 .bsai-cinfo .bsai-cdesc:not(.bsai-open){max-height:4.8em;overflow:hidden}
 .bsai-cinfo .bsai-more-card{order:2;align-self:flex-start}
 .bsai-cinfo .bsai-facts{order:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin:8px 0 0;padding-top:12px;border-top:1px solid #edf1f5;font-size:13.5px}
 .bsai-cbtns .bsai-btn{height:44px;font-size:13.5px}
 .bsai-dd>summary,.bsai-chk,.bsai-frow .bsai-go{height:44px}
 .bsai-sortwrap select{height:44px}
 .bsai-sortwrap .bsai-fcount{display:none}
 /* the chat bubble and scroll-to-top button sat on top of "Show N results" */
 html.bsai-sheet-open #closebotpro-bubble,html.bsai-sheet-open #closebotpro-scrolltop{display:none !important}
 .bsai-cinfo .bsai-facts li.bsai-f-web{grid-column:1 / -1}
}
@media (max-width:400px){.bsai-cbtns .bsai-btn{font-size:12.5px;gap:4px;padding:0 4px}.bsai-cbtns .bsai-btn svg{width:13px;height:13px;flex-basis:13px}}

/* ---- 2026-10-07 score popover on the BizScore ring (bsai-popover.js) ---- */
.bsai-ring-btn{border:0;padding:0;margin:0;cursor:pointer;position:relative;font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
.bsai-ring-btn:focus-visible{outline:3px solid #0f2540;outline-offset:3px}
.bsai-pop-cue{position:absolute;top:0;right:0;width:24px;height:24px;border-radius:50%;background:#0f2540;color:#fff;font-style:normal;font-size:14px;font-weight:800;line-height:24px;text-align:center;box-shadow:0 0 0 2px #fff}
.bsai-pop{position:absolute;z-index:99990;width:300px;max-width:calc(100vw - 16px);box-sizing:border-box;background:#fff;border:1px solid #1f2937;border-radius:10px;box-shadow:0 12px 32px rgba(15,37,64,.22);padding:14px 40px 10px 16px;color:#26405c;font-size:14px;line-height:1.5;text-align:left}
.bsai-pop[hidden]{display:none}
.bsai-pop-x{position:absolute;top:4px;right:4px;width:36px;height:36px;border:0;background:none;font-size:22px;line-height:1;color:#5b6b7c;cursor:pointer;padding:0}
.bsai-pop-score{margin:0 0 6px;font-weight:800;font-size:16px;color:#0f2540}
.bsai-pop-body{margin:0 0 6px}
.bsai-pop p{line-height:1.5;font-size:14px}.bsai-pop .bsai-pop-score{font-size:16px}
.bsai-pop-links{display:flex;flex-direction:column}
.bsai-pop-links a{color:#EE1B24;font-weight:700;text-decoration:none;min-height:40px;display:flex;align-items:center}
.bsai-pop-links a:hover{text-decoration:underline}
@media (max-width:720px){
 .bsai-pop-links a{min-height:44px}
 html.bsai-pop-open #closebotpro-bubble,html.bsai-pop-open #closebotpro-scrolltop{display:none !important}
}

/* ---- 2026-10-07 claimed / unclaimed grouping (Recommended order) ---- */
.bsai-claimtop{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:14px;font-weight:700;color:#15803d}
.bsai-claimtop svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;background:#15803d;border-radius:50%;padding:3px;box-sizing:border-box}
.bsai-claimdiv{display:flex;align-items:center;gap:14px;margin:6px 0 22px;color:#374151}
.bsai-claimdiv::before,.bsai-claimdiv::after{content:"";flex:1 1 0;min-width:16px;height:0;border-top:2px solid #cbd5e1}
.bsai-claimdiv-t{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:700;text-align:center;line-height:1.4;max-width:70%}
.bsai-claimdiv-t svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:#15803d;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:720px){.bsai-claimdiv{gap:10px}.bsai-claimdiv-t{font-size:13px;max-width:78%}}
