/* Nov 14 2026: slab label system. One climb per company (PSA white+red, BGS metal, CGC blue), bold logo tabs,
   company-coloured numbers, gold only on 10s, and a layout + type per company (PSA classic, BGS subgrades, CGC centred).
   Loaded after every other stylesheet; html body prefixes win over the older label rules. */
/* PREVIEW ONLY: one climb per company, bold logo tabs, company-coloured numbers, gold only on 10s */
/* --- big labels: logo tabs --- */
html body .hbl.svc-psa .hbl-mark { background:#c20101 !important; color:#fff !important; padding:.12em .5em !important; border-radius:.22em; font-weight:900; opacity:1 !important; letter-spacing:.06em; text-shadow:none !important; }
html body .hbl.svc-bgs .hbl-mark { background:#121214 !important; color:#e2c06a !important; padding:.12em .5em !important; border-radius:.22em; opacity:1 !important; text-shadow:none !important; }
html body .hbl.svc-bgs.black .hbl-mark { background:linear-gradient(180deg,#e8c66a,#b8913a) !important; color:#111 !important; }
html body .hbl.svc-cgc .hbl-band .hbl-mark { background:#fff; color:#0a68b3 !important; padding:.05em .45em; border-radius:.2em; clip-path:polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%); }
/* --- PSA climb: plain (8-) > red stripe (9) > silver edge (9.5) > gold foil (10) --- */
html body .hbl.svc-psa .hbl-in { background:#fff !important; border-top:.2em solid #e2b0b0 !important; box-shadow:none !important; border-image:none !important; }
html body .hbl.svc-psa .hbl-num { color:#8a3a3a !important; text-shadow:none !important; }
html body .hbl.svc-psa.g9 .hbl-in { border-top:.42em solid #c20101 !important; }
html body .hbl.svc-psa.g9 .hbl-num { color:#c20101 !important; }
html body .hbl.svc-psa.g95 .hbl-in { border-top:.42em solid #c20101 !important; background:linear-gradient(120deg,#ffffff 0%,#eef1f6 45%,#ffffff 60%,#e3e7ee 100%) !important; box-shadow:0 0 0 .16em #aab2c0 !important; }
html body .hbl.svc-psa.g95 .hbl-num { color:#c20101 !important; }
html body .hbl.svc-psa.g10 .hbl-in { border-top:.42em solid #c20101 !important; box-shadow:0 0 0 .16em #c9a227, 0 0 1.2em rgba(212,165,20,.35) !important;
  background:linear-gradient(#d4a514,#d4a514) 0 0 / 100% .14em no-repeat, linear-gradient(115deg,#fffdf4 0%,#f8e7a6 22%,#fffaf0 38%,#efd27a 58%,#fff7dc 76%,#e9c866 100%) !important; }
html body .hbl.svc-psa.g10 .hbl-num { color:#c20101 !important; text-shadow:.07em .07em 0 #d4a514 !important; }
/* --- CGC climb: muted blue (8-) > blue (9) > silver band (9.5) > navy + gold (10) --- */
html body .hbl.svc-cgc .hbl-band { background:linear-gradient(180deg,#5b8fbd,#3f74a3) !important; }
html body .hbl.svc-cgc .hbl-num { color:#3f74a3 !important; border-color:#3f74a3 !important; }
html body .hbl.svc-cgc.g9 .hbl-band { background:linear-gradient(180deg,#1677c9,#0a4f8f) !important; }
html body .hbl.svc-cgc.g9 .hbl-num { color:#0a68b3 !important; border-color:#0a68b3 !important; }
html body .hbl.svc-cgc.g95 .hbl-band { background:linear-gradient(180deg,#dfe4ec,#9aa3b3) !important; }
html body .hbl.svc-cgc.g95 .hbl-band-t { color:#14284a !important; }
html body .hbl.svc-cgc.g95 .hbl-in { box-shadow:0 0 0 .16em #aab2c0 !important; }
html body .hbl.svc-cgc.g95 .hbl-num { color:#0a4f8f !important; border-color:#0a4f8f !important; }
html body .hbl.svc-cgc.g10 .hbl-band { background:linear-gradient(180deg,#14284a,#0b1a33) !important; }
/* --- small labels (binder): base colour always shows the company --- */
html body .bcard.slabbed .bslab-cap.svc-psa { background:#fff !important; border-top:2px solid #e2b0b0 !important; border-bottom:none !important; box-shadow:none !important; }
html body .bcard.slabbed .bslab-cap.svc-psa .gp { background:#c20101; color:#fff !important; padding:1px 5px; border-radius:3px; }
html body .bcard.slabbed .bslab-cap.svc-psa .gn { color:#8a3a3a !important; text-shadow:none !important; }
html body .bcard.slabbed.g9 .bslab-cap.svc-psa, html body .bcard.slabbed.g95 .bslab-cap.svc-psa, html body .bcard.slabbed.g10 .bslab-cap.svc-psa { border-top:4px solid #c20101 !important; }
html body .bcard.slabbed.g9 .bslab-cap.svc-psa .gn, html body .bcard.slabbed.g95 .bslab-cap.svc-psa .gn { color:#c20101 !important; }
html body .bcard.slabbed.g95 .bslab-cap.svc-psa { background:linear-gradient(120deg,#fff,#e9edf3 50%,#fff) !important; box-shadow:inset 0 -3px 0 #aab2c0 !important; }
html body .bcard.slabbed.g10 .bslab-cap.svc-psa { background:#fff !important; box-shadow:inset 0 0 0 3px #d4a514, inset 0 -3px 0 #d4a514 !important; }
html body .bcard.slabbed.g10 .bslab-cap.svc-psa .gn { color:#c20101 !important; text-shadow:1px 1px 0 #d4a514 !important; }
html body .bcard.slabbed .bslab-cap.svc-bgs .gp { background:#121214; color:#e2c06a !important; padding:1px 5px; border-radius:3px; }
html body .bcard.slabbed.g10 .bslab-cap.svc-bgs .gp { background:linear-gradient(180deg,#e8c66a,#b8913a); color:#111 !important; }
html body .bcard.slabbed.g95 .bslab-cap.svc-bgs .gp { background:#2a1f05; color:#f6e3a1 !important; }
html body .bcard.slabbed .bslab-cap.svc-cgc { background:linear-gradient(180deg,#5b8fbd,#3f74a3) !important; border-bottom:none !important; }
html body .bcard.slabbed .bslab-cap.svc-cgc .gp { background:#fff; color:#0a68b3 !important; padding:1px 6px; clip-path:polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%); }
html body .bcard.slabbed .bslab-cap.svc-cgc .gn { color:#fff !important; }
html body .bcard.slabbed.g9 .bslab-cap.svc-cgc { background:linear-gradient(180deg,#1677c9,#0a4f8f) !important; }
html body .bcard.slabbed.g95 .bslab-cap.svc-cgc { background:linear-gradient(180deg,#e6eaf1,#a3acbb) !important; }
html body .bcard.slabbed.g95 .bslab-cap.svc-cgc .gn { color:#14284a !important; }
html body .bcard.slabbed.g95 .bslab-cap.svc-cgc .gp { background:#14284a; color:#fff !important; }
html body .bcard.slabbed.g10 .bslab-cap.svc-cgc { background:linear-gradient(180deg,#14284a,#0b1a33) !important; border-bottom:3px solid #e2b84a !important; }
html body .bcard.slabbed.g10 .bslab-cap.svc-cgc .gn { color:#f2d27a !important; }
html body .bcard.slabbed.g10 .bslab-cap.svc-cgc .gp { background:#f2d27a; color:#0b1a33 !important; }
html body .hbl.svc-psa.g10 .hbl-in, html body .hbl.svc-psa.g95 .hbl-in, html body .hbl.svc-psa.g9 .hbl-in { border-image:none !important; }
html body .hbl.svc-psa.g10 .hbl-in { border:.16em solid #c9a227 !important; border-top:.42em solid #c20101 !important; }
html body .hbl.svc-psa.g95 .hbl-in, html body .hbl.svc-psa.g9 .hbl-in { border:.12em solid #c20101 !important; border-top:.42em solid #c20101 !important; }
html body .hbl.svc-psa.g95 .hbl-in { border-color:#aab2c0 !important; border-top-color:#c20101 !important; }
html body .hbl.svc-psa:not(.g9):not(.g95):not(.g10) .hbl-in { border:.12em solid #e2b0b0 !important; border-top:.2em solid #e2b0b0 !important; }
html body .bcard.slabbed.g95 .bslab-cap.svc-cgc { background:linear-gradient(180deg,#2a74c9,#0a3a7a) !important; border-bottom:3px solid #c9d2e0 !important; }
html body .bcard.slabbed.g95 .bslab-cap.svc-cgc .gn { color:#fff !important; }
html body .bcard.slabbed.g95 .bslab-cap.svc-cgc .gp { background:#fff; color:#0f4d9c !important; }
html body .bcard.slabbed:not(.g9):not(.g95):not(.g10) .bslab-cap.svc-cgc { background:linear-gradient(180deg,#9cc3ea,#6d9fd2) !important; }
/* PREVIEW ONLY: each company gets its own label layout + type. Builds on proposed.css colours. */
/* shared: the card name may take two lines, never cut mid-word */
html body .hbl .hbl-name { white-space:normal !important; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-overflow:clip; }

/* ---- PSA: classic. Condensed bold name, info left, big grade right, red tab bottom-left ---- */
html body .hbl.svc-psa .hbl-name { font:700 1.38em/1.02 'Oswald','Arial Narrow',sans-serif !important; letter-spacing:.02em !important; }
html body .hbl.svc-psa .hbl-top, html body .hbl.svc-psa .hbl-var { font:600 .74em/1.25 'Oswald','Arial Narrow',sans-serif !important; letter-spacing:.06em !important; }
html body .hbl.svc-psa .hbl-word { font:700 .9em/1 'Oswald','Arial Narrow',sans-serif !important; letter-spacing:.08em; }
html body .hbl.svc-psa .hbl .hbl-num, html body .hbl.svc-psa .hbl-num { font-size:2.5em !important; }

/* ---- BGS: built around the subgrades. Chips across the top, name full width in an engraved serif, grade in a metal box ---- */
html body .hbl.svc-bgs .hbl-in { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"subs r" "top r" "name name" "var var"; row-gap:.18em; }
html body .hbl.svc-bgs .hbl-l { display:contents; }
html body .hbl.svc-bgs .hbl-subs { grid-area:subs; display:flex !important; gap:.3em; margin:0 !important; flex-wrap:wrap; }
html body .hbl.svc-bgs .hbl-subs i { font:800 .62em/1 'Barlow','Segoe UI',sans-serif; font-style:normal; letter-spacing:.06em; padding:.32em .5em; border-radius:.3em; background:rgba(0,0,0,.18); color:inherit; }
html body .hbl.svc-bgs .hbl-subs i b { font-size:1.15em; margin-left:.15em; }
html body .hbl.svc-bgs .hbl-top { grid-area:top; align-self:end; }
html body .hbl.svc-bgs .hbl-name { grid-area:name; font:700 1.3em/1.1 'Cinzel','Georgia',serif !important; letter-spacing:.08em !important; margin-top:.1em; }
html body .hbl.svc-bgs .hbl-var { grid-area:var; }
html body .hbl.svc-bgs .hbl-r { grid-area:r; align-self:stretch; justify-content:center; align-items:center; padding:.35em .6em; border-radius:.35em; background:rgba(0,0,0,.22); box-shadow:inset 0 0 0 .1em rgba(255,255,255,.25); }
html body .hbl.svc-bgs .hbl-word { font:700 .8em/1 'Cinzel','Georgia',serif !important; letter-spacing:.14em; }
html body .hbl.svc-bgs .hbl-no { display:none; }
html body .hbl.svc-bgs .hbl-num { font-size:2.4em !important; }
html body .hbl.svc-bgs.black .hbl-name, html body .hbl.svc-bgs.black .hbl-word { color:#f1d27a !important; text-shadow:0 1px 0 rgba(0,0,0,.6); }
html body .hbl.svc-bgs.black .hbl-subs i { background:rgba(232,198,106,.16); color:#f1d27a; }

/* ---- CGC: modern and centred. Band on top, rounded name centred, grade in a pill with a big word ---- */
html body .hbl.svc-cgc .hbl-in { grid-template-columns:minmax(0,1fr) auto; }
html body .hbl.svc-cgc .hbl-band { grid-column:1 / -1; }
html body .hbl.svc-cgc .hbl-l { align-items:center; text-align:center; }
html body .hbl.svc-cgc .hbl-name { font:900 1.32em/1.08 'Nunito','Segoe UI',sans-serif !important; letter-spacing:.01em !important; text-transform:none !important; }
html body .hbl.svc-cgc .hbl-top, html body .hbl.svc-cgc .hbl-var { font:700 .72em/1.25 'Nunito','Segoe UI',sans-serif !important; letter-spacing:.05em !important; }
html body .hbl.svc-cgc .hbl-r { align-items:center; }
html body .hbl.svc-cgc .hbl-word { font:900 .95em/1 'Nunito','Segoe UI',sans-serif !important; letter-spacing:.12em; }
html body .hbl.svc-cgc .hbl-num { border-radius:999px !important; padding:.08em .55em !important; font-size:2.2em !important; }
html body .hbl.svc-bgs .hbl-subs i { font-size:.72em !important; background:rgba(20,14,0,.55) !important; color:#fff !important; padding:.36em .55em !important; }
html body .hbl.svc-bgs.gold .hbl-subs i { background:rgba(60,40,0,.72) !important; color:#f6e3a1 !important; }
html body .hbl.svc-bgs.black .hbl-subs i { background:rgba(232,198,106,.22) !important; color:#f1d27a !important; }
html body .hbl.svc-cgc .hbl-top, html body .hbl.svc-cgc .hbl-var { white-space:normal !important; text-overflow:clip !important; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
html body .hbl.svc-bgs .hbl-top, html body .hbl.svc-psa .hbl-top { white-space:normal !important; text-overflow:clip !important; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
/* CGC: the body is always blue (PSA is the only white label) */
html body .hbl.svc-cgc .hbl-in { background:linear-gradient(160deg,#eaf3fd,#cde2f7) !important; border-color:#3f7fc2 !important; }
html body .hbl.svc-cgc .hbl-num { background:#2a76c1 !important; color:#fff !important; border-color:#2a76c1 !important; }
html body .hbl.svc-cgc .hbl-top, html body .hbl.svc-cgc .hbl-var, html body .hbl.svc-cgc .hbl-no { color:#33507a !important; }
html body .hbl.svc-cgc .hbl-name, html body .hbl.svc-cgc .hbl-word { color:#0b2a52 !important; }
html body .hbl.svc-cgc.g9 .hbl-in { background:linear-gradient(160deg,#d8eafc,#a6ccf3) !important; border-color:#0a68b3 !important; }
html body .hbl.svc-cgc.g9 .hbl-num { background:#0a68b3 !important; border-color:#0a68b3 !important; }
html body .hbl.svc-cgc.g95 .hbl-in { background:linear-gradient(150deg,#2a74c9 0%,#0f4d9c 55%,#0a3a7a 100%) !important; border-color:#c9d2e0 !important; box-shadow:0 0 0 .16em #b9c3d3 !important; }
html body .hbl.svc-cgc.g95 .hbl-band { background:linear-gradient(180deg,#f1f4f9,#b8c2d2) !important; }
html body .hbl.svc-cgc.g95 .hbl-band-t { color:#0b2a52 !important; }
html body .hbl.svc-cgc.g95 .hbl-band .hbl-mark { background:#0b2a52 !important; color:#fff !important; }
html body .hbl.svc-cgc.g95 .hbl-top, html body .hbl.svc-cgc.g95 .hbl-var, html body .hbl.svc-cgc.g95 .hbl-no, html body .hbl.svc-cgc.g95 .hbl-cert { color:#cfe0f7 !important; }
html body .hbl.svc-cgc.g95 .hbl-name, html body .hbl.svc-cgc.g95 .hbl-word { color:#fff !important; }
html body .hbl.svc-cgc.g95 .hbl-num { background:#fff !important; color:#0f4d9c !important; border-color:#fff !important; }
html body .hbl.svc-cgc.g95 .hbl-bar { filter:invert(1); opacity:.7; }
html body .hbl.svc-cgc.g95 .hbl-foot { border-top-color:rgba(255,255,255,.2) !important; }
html body .hbl.svc-cgc.g10 .hbl-num { background:linear-gradient(180deg,#14284a,#0b1a33) !important; color:#f2d27a !important; }
html body .hbl.svc-cgc.g10 .hbl-name, html body .hbl.svc-cgc.g10 .hbl-word { color:#3a2a05 !important; }
html body .hbl.svc-cgc.g9 .hbl-num, html body .hbl.svc-cgc:not(.g9):not(.g95):not(.g10) .hbl-num { color:#fff !important; }
/* BGS subgrade chips: solid and readable; full word on hover/long-press (title set in JS) */
html body .hbl.svc-bgs .hbl-subs i { font-size:.74em !important; font-weight:800; }
html body .hbl.svc-bgs:not(.gold):not(.black) .hbl-subs i { background:rgba(10,12,18,.55) !important; color:#fff !important; }
/* tiny slabs (Trophy Room shelf, small displays): no subgrade chips, one-line name */
html body .slab .hbl .hbl-subs, html body .tr-slab .hbl .hbl-subs { display:none !important; }
html body .slab .hbl .hbl-name, html body .slab .hbl .hbl-top { -webkit-line-clamp:1 !important; }
html body .slab .hbl.svc-bgs .hbl-in { grid-template-areas:"top r" "name r" "var r" !important; }
/* small shelf slabs: simpler, left-aligned, smaller grade so nothing overlaps */
html body .slab .hbl.svc-cgc .hbl-l { align-items:flex-start !important; text-align:left !important; }
html body .slab .hbl .hbl-num { font-size:2.1em !important; }
html body .slab .hbl.svc-cgc .hbl-num { padding:.04em .32em !important; }
html body .slab .hbl .hbl-top, html body .slab .hbl .hbl-var { white-space:nowrap !important; display:block !important; text-overflow:ellipsis !important; }
html body .slab .hbl .hbl-name { font-size:1.15em !important; }
html body .slab .hbl .hbl-no { display:none !important; }
html body .slab .hbl.svc-cgc .hbl-num { font-size:1.75em !important; margin-top:.15em; }
html body .slab .hbl .hbl-r { gap:.15em !important; }
/* card view: the slab's glass glint stays off the label so it's readable */
html body .zoom-card.graded .zoom-slab-gloss::before { opacity:.45; clip-path:inset(28% 0 0 0); }
/* binder: CGC 9.5 gets a silver stripe so it stands apart from a 9 */
html body .bcard.slabbed.g95 .bslab-cap.svc-cgc { background:linear-gradient(180deg,#2a74c9 0 42%,#dfe4ec 42% 58%,#0a3a7a 58%) !important; }
