/* SELLER STANDING · COMMUNITY RANK · LEADERBOARDS (brief 64, 18 Oct 2026; mockup Plan/Jobs/64-standing-and-rank.html).
   Account › Your standing (.pt-sd), Community › Leaderboards (.pt-lb), the seller standing badges (.pt-ssb), the profile badges row
   and its popovers / bottom sheets (.pt-bdg, .pt-sd-panel). Reads the site's tokens (css/header-footer-global.css); declares none.
   Square corners; mono for numbers; amber only for the Top helper mark, prizes and the rank bar; Trusted = ink outline, Top seller
   = solid ink. Every button sets background AND colour in :hover, :focus and :active (CLAUDE.md rule 5a). Toggles are square. */

/* ── shared ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.pt-sd, .pt-lb { color: var(--pt-ink); font-size: 15px; line-height: 1.5; }
.pt-sd *, .pt-lb * { box-sizing: border-box; }
.pt-sd a, .pt-lb a { color: var(--pt-accent); text-decoration: none; }
.pt-sd a:hover, .pt-sd a:focus, .pt-lb a:hover, .pt-lb a:focus { text-decoration: underline; }
.pt-sd .pt-mono, .pt-lb .pt-mono, .pt-sd-ptab .pt-mono { font-family: var(--pt-mono); font-variant-numeric: tabular-nums; }
.pt-sd-ic, .pt-lb-ic { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }

.pt-sd .pt-sd-btn, .pt-lb .pt-lb-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--pt-border-strong); border-radius: 0; background: var(--pt-surface); color: var(--pt-ink); font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none; box-shadow: none; }
.pt-sd .pt-sd-btn:hover, .pt-sd .pt-sd-btn:focus, .pt-sd .pt-sd-btn:active, .pt-lb .pt-lb-btn:hover, .pt-lb .pt-lb-btn:focus, .pt-lb .pt-lb-btn:active { border-color: var(--pt-ink); background: #F2F1EC; color: var(--pt-ink); text-decoration: none; outline: none; box-shadow: none; }
.pt-sd .pt-sd-btn:focus-visible, .pt-lb .pt-lb-btn:focus-visible { box-shadow: 0 0 0 2px var(--pt-surface-dim), 0 0 0 4px var(--pt-ink); }
.pt-sd .pt-sd-lnk, .pt-sd .pt-sd-lnk:hover, .pt-sd .pt-sd-lnk:focus, .pt-sd .pt-sd-lnk:active { display: inline; padding: 0; margin: 0; border: 0; background: none; color: var(--pt-accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: none; }
.pt-sd .pt-sd-lnk:hover, .pt-sd .pt-sd-lnk:focus { text-decoration: underline; outline: none; }

/* ── Account › Your standing ───────────────────────────────────────────────────────────────────────────────────────────── */
/* The account sheet styles every content h2/h3 as a small grey uppercase label with a rule under it, !important (account-page-
   styles.css "Sub-page section headings"), capitalises h1 and borders table cells; this page sets its own, inside .pt-sd only. */
body.woocommerce-account .woocommerce-MyAccount-content .pt-sd h1, body.woocommerce-account .woocommerce-MyAccount-content .pt-sd h2, body.woocommerce-account .woocommerce-MyAccount-content .pt-sd h3, body.woocommerce-account .woocommerce-MyAccount-content .pt-sd h4 { text-transform: none !important; letter-spacing: normal !important; color: var(--pt-ink) !important; border: 0 !important; padding: 0 !important; display: block !important; width: auto !important; font-family: inherit !important; }
body.woocommerce-account .woocommerce-MyAccount-content .pt-sd h1 { font-size: 30px !important; font-weight: 700 !important; margin: 0 0 6px !important; }
body.woocommerce-account .woocommerce-MyAccount-content .pt-sd .pt-sd-hero h2 { font-size: 26px !important; font-weight: 700 !important; margin: 0 0 4px !important; }
body.woocommerce-account .woocommerce-MyAccount-content .pt-sd h3 { font-size: 16px !important; font-weight: 700 !important; margin: 0 0 10px !important; }
body.woocommerce-account .woocommerce-MyAccount-content .pt-sd h4 { font-size: 13px !important; font-weight: 600 !important; color: var(--pt-ink-2) !important; margin: 0 0 8px !important; }
body.woocommerce-account .pt-sd-panel h2 { font-size: 20px !important; text-transform: none !important; letter-spacing: normal !important; color: var(--pt-ink) !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
body.woocommerce-account .pt-sd-panel h3 { font-size: 16px !important; text-transform: none !important; letter-spacing: normal !important; color: var(--pt-ink) !important; border: 0 !important; padding: 0 !important; margin: 18px 0 8px !important; }
.pt-sd table, .pt-sd th, .pt-sd td, .pt-sd-panel table, .pt-sd-panel th, .pt-sd-panel td { border-left: 0 !important; border-right: 0 !important; background: none !important; }
.pt-sd table, .pt-sd-panel table { border: 0 !important; margin: 0; }
.pt-sd { max-width: 1208px; margin: 0 auto; padding: 8px 0 40px; }
.pt-sd-crumb { font-size: 13.5px; color: var(--pt-ink-2); margin: 0 0 14px; }
.pt-sd-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pt-sd-h h1 { font-size: 30px; line-height: 1.15; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; }
.pt-sd-h p { margin: 0; color: var(--pt-ink-2); font-size: 15px; }
.pt-sd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pt-sd-card { background: var(--pt-surface); border: 1px solid var(--pt-border); }
.pt-sd-card > * { padding-left: 20px; padding-right: 20px; }
.pt-sd-card__k { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--pt-border); font-size: 13.5px; font-weight: 600; color: var(--pt-ink-2); }
.pt-sd-card__k a { font-size: 14px; font-weight: 600; }
.pt-sd-hero { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--pt-border); }
.pt-sd-hero h2 { font-size: 26px; line-height: 1.15; margin: 0 0 4px; font-weight: 700; }
.pt-sd-hero p { margin: 0; font-size: 14px; color: var(--pt-ink-2); }
.pt-sd-hero p b { color: var(--pt-ink); }
.pt-sd-ibox { width: 56px; height: 56px; border: 1px solid var(--pt-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pt-sd-ibox .pt-sd-ic { width: 24px; height: 24px; }
.pt-sd-ibox--amber { border-color: var(--pt-amber-border); background: var(--pt-amber-bg); color: var(--pt-amber-deep); }
.pt-sd-pts { margin-left: auto; text-align: right; }
.pt-sd-pts b { display: block; font-size: 28px; line-height: 1.1; }
.pt-sd-pts span { font-size: 13px; color: var(--pt-ink-2); }
.pt-sd-grace { display: flex; gap: 10px; margin: 14px 20px 0 !important; padding: 12px 14px !important; background: var(--pt-amber-bg); border: 1px solid var(--pt-amber-border); font-size: 14px; }
.pt-sd-grace .pt-sd-ic { color: var(--pt-amber-deep); margin-top: 2px; }

/* the ladder: square markers on a line; past = ink, now = big ink square, future = grey outline */
.pt-sd-ladder { list-style: none; margin: 0; display: grid; padding-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--pt-border); position: relative; }
.pt-sd-ladder--4 { grid-template-columns: repeat(4, 1fr); }
.pt-sd-ladder--7 { grid-template-columns: repeat(7, 1fr); border-bottom: 0; padding-bottom: 6px; }
.pt-sd-ladder li { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.pt-sd-ladder li::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--pt-border-strong); }
.pt-sd-ladder li:first-child::before { display: none; }
.pt-sd-ladder li.is-past::before, .pt-sd-ladder li.is-now::before { background: var(--pt-ink); }
.pt-sd-ladder span { width: 12px; height: 12px; border: 1px solid var(--pt-border-strong); background: var(--pt-surface); position: relative; z-index: 1; margin-top: 2px; }
.pt-sd-ladder li.is-past span { background: var(--pt-ink); border-color: var(--pt-ink); }
.pt-sd-ladder li.is-now span { width: 18px; height: 18px; margin-top: -1px; background: var(--pt-ink); border-color: var(--pt-ink); box-shadow: 0 0 0 2px var(--pt-surface), 0 0 0 3px var(--pt-ink); }
.pt-sd-ladder b { font-size: 13px; font-weight: 600; color: var(--pt-ink); }
.pt-sd-ladder li:not(.is-past):not(.is-now) b { color: var(--pt-ink-2); font-weight: 500; }
.pt-sd-ladder small { font-size: 11.5px; color: var(--pt-ink-3); }

.pt-sd-reqs, .pt-sd-gets { padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--pt-border); }
.pt-sd-reqs h3, .pt-sd-gets h3, .pt-sd-log h3 { font-size: 16px; margin: 0 0 10px; font-weight: 700; }
.pt-sd-reqs h3 small { font-size: 13px; font-weight: 400; color: var(--pt-ink-2); margin-left: 6px; }
.pt-sd-reqs table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-sd-reqs th, .pt-sd-reqs td { padding: 9px 0; border-top: 1px solid var(--pt-border); text-align: left; font-weight: 400; vertical-align: middle; }
.pt-sd-reqs tr:first-child th, .pt-sd-reqs tr:first-child td { border-top: 0; }
.pt-sd-reqs td.pt-mono { text-align: right; white-space: nowrap; padding-right: 18px; font-size: 13px; }
.pt-sd-reqs td.pt-mono span { color: var(--pt-ink-3); font-size: 11.5px; }
.pt-sd-reqs td:last-child { width: 80px; text-align: right; }
.pt-sd-done { display: inline-flex; align-items: center; gap: 4px; color: var(--pt-green-text); font-size: 13px; }
.pt-sd-done .pt-sd-ic { width: 14px; height: 14px; }
.pt-sd-bar { display: inline-block; width: 70px; height: 6px; background: var(--pt-fill-control); vertical-align: middle; }
.pt-sd-bar i { display: block; height: 100%; background: var(--pt-ink); }
.pt-sd-bar--amber { width: 100%; height: 8px; display: block; }
.pt-sd-bar--amber i { background: var(--pt-amber-deep); }
.pt-sd-gets__c { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pt-sd-gets h4 { font-size: 13px; color: var(--pt-ink-2); margin: 0 0 8px; font-weight: 600; }
.pt-sd-gets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.pt-sd-gets li { display: flex; gap: 8px; align-items: flex-start; }
.pt-sd-gets li .pt-sd-ic { color: var(--pt-ink-2); margin-top: 2px; width: 14px; height: 14px; }
.pt-sd-later { font-style: normal; font-family: var(--pt-mono); font-size: 11px; border: 1px dashed var(--pt-border-strong); padding: 0 4px; margin-left: 4px; color: var(--pt-ink-2); }
.pt-sd-deals { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--pt-border); font-size: 14px; }
.pt-sd-deals summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: center; }
.pt-sd-deals summary::-webkit-details-marker { display: none; }
.pt-sd-deals summary::after { content: "+"; margin-left: auto; font-family: var(--pt-mono); color: var(--pt-ink-2); }
.pt-sd-deals[open] summary::after { content: "−"; }
.pt-sd-deals summary span { color: var(--pt-ink-3); font-size: 12px; }
.pt-sd-deals ul { list-style: none; margin: 10px 0 0; padding: 0; }
.pt-sd-deals li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; border-top: 1px solid var(--pt-border); align-items: baseline; }
.pt-sd-deals li > span:first-child { color: var(--pt-ink-2); font-size: 12.5px; }
.pt-sd-why { font-size: 12.5px; color: var(--pt-ink-2); }
.pt-sd-foot { margin: 0; padding-top: 14px; padding-bottom: 16px; font-size: 13.5px; color: var(--pt-ink-2); }
.pt-sd-foot b { color: var(--pt-ink); }

.pt-sd-prog { padding-top: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--pt-border); }
.pt-sd-prog p { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 0; font-size: 13.5px; color: var(--pt-ink-2); }
.pt-sd-prog p b { color: var(--pt-ink); }
.pt-sd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 !important; border-bottom: 1px solid var(--pt-border); }
.pt-sd-stats > div { padding: 14px 20px; border-left: 1px solid var(--pt-border); min-width: 0; }
.pt-sd-stats > div:first-child { border-left: 0; }
.pt-sd-stats b { display: block; font-size: 22px; line-height: 1.2; font-weight: 700; }
.pt-sd-stats span { font-size: 13.5px; color: var(--pt-ink-2); }

.pt-sd-log { padding-top: 16px; padding-bottom: 10px; }
.pt-sd-log .pt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.pt-sd-lines { list-style: none; margin: 8px 0 0; padding: 0; }
.pt-sd-lines li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--pt-border); align-items: baseline; }
.pt-sd-ld { font-size: 13px; color: var(--pt-ink-2); white-space: nowrap; }
.pt-sd-lt b { font-weight: 600; }
.pt-sd-lt small { display: block; font-size: 13.5px; color: var(--pt-ink-2); margin-top: 2px; }
.pt-sd-lp { font-weight: 700; font-size: 14.5px; }
.pt-sd-lines li.is-rev .pt-sd-lp { text-decoration: line-through; color: var(--pt-ink-3); font-weight: 400; }
.pt-sd-rev { font-style: normal; font-family: var(--pt-mono); font-size: 11px; border: 1px solid var(--pt-border-strong); padding: 0 5px; margin-left: 6px; color: var(--pt-ink-2); }
.pt-sd-lines li.is-co { background: var(--pt-surface-dim); padding-left: 8px; padding-right: 8px; }
.pt-sd-lines li.is-adj .pt-sd-lt b { border-left: 3px solid var(--pt-ink); padding-left: 6px; }
.pt-sd-more { display: block !important; text-align: center; }
.pt-sd-more a, .pt-sd-more a:visited { color: var(--pt-ink); font-weight: 600; }
.pt-sd-empty { font-size: 14.5px; color: var(--pt-ink-2); margin: 4px 0 8px; }
.pt-sd-note { display: flex; gap: 10px; margin: 6px 20px 18px !important; padding: 12px 14px !important; border: 1px dashed var(--pt-border-strong); font-size: 14px; color: var(--pt-ink-2); }
.pt-sd-note b { color: var(--pt-ink); }
.pt-sd-note .pt-sd-ic { margin-top: 2px; }

/* "How points work": a side panel; a bottom sheet on phones */
.pt-sd-panel { position: fixed; inset: 0; z-index: 100050; }
.pt-sd-panel[hidden] { display: none; }
.pt-sd-panel__bg { position: absolute; inset: 0; background: rgba(26, 26, 26, .45); }
.pt-sd-panel__p { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--pt-surface); overflow-y: auto; padding: 20px 24px 28px; box-shadow: -14px 0 34px rgba(0, 0, 0, .14); font-size: 14.5px; color: var(--pt-ink); }
.pt-sd-panel__p header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pt-sd-panel__p h2 { font-size: 20px; margin: 0; }
.pt-sd-panel__p h3 { font-size: 16px; margin: 18px 0 8px; }
.pt-sd-panel__grab { display: none; }
.pt-sd-x, .pt-sd-x:hover, .pt-sd-x:focus, .pt-sd-x:active { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--pt-border); background: var(--pt-surface); color: var(--pt-ink); padding: 0; cursor: pointer; border-radius: 0; box-shadow: none; }
.pt-sd-x:hover, .pt-sd-x:focus { border-color: var(--pt-ink); background: #F2F1EC; color: var(--pt-ink); outline: none; }
.pt-sd-ptab { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0 10px; }
.pt-sd-ptab th, .pt-sd-ptab td { text-align: left; padding: 7px 8px 7px 0; border-top: 1px solid var(--pt-border); vertical-align: top; }
.pt-sd-ptab th { font-size: 12.5px; color: var(--pt-ink-2); font-weight: 600; border-top: 0; }

/* the profile badges row and its popovers / sheets */
.pt-bdg-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 2px; }
.pt-bdg-row .pt-bdg, .pt-bdg-row .pt-bdg:visited { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--pt-border-strong); border-radius: 0; background: var(--pt-surface); color: var(--pt-ink); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: none; text-decoration: none; }
.pt-bdg-row .pt-bdg:hover, .pt-bdg-row .pt-bdg:focus, .pt-bdg-row .pt-bdg:active { border-color: var(--pt-ink); background: #F2F1EC; color: var(--pt-ink); outline: none; box-shadow: none; }
.pt-bdg-row .pt-bdg svg { width: 14px; height: 14px; }
.pt-bdg-row .pt-bdg small { font-family: var(--pt-mono); font-size: 12px; color: var(--pt-ink-2); font-weight: 500; }
.pt-bdg-row .pt-bdg--trusted { border-color: var(--pt-ink); }
.pt-bdg-row .pt-bdg--top, .pt-bdg-row .pt-bdg--top:hover, .pt-bdg-row .pt-bdg--top:focus, .pt-bdg-row .pt-bdg--top:active { background: var(--pt-ink); border-color: var(--pt-ink); color: #fff; }
.pt-bdg-row .pt-bdg--top:hover, .pt-bdg-row .pt-bdg--top:focus { background: #1f1f1f; }
.pt-bdg-row .pt-bdg--rank { font-weight: 500; }
.pt-bdg-row .pt-bdg--id { border-color: transparent; background: none; padding-left: 0; color: var(--pt-ink-2); font-weight: 500; }
.pt-bdg-row .pt-bdg--id:hover, .pt-bdg-row .pt-bdg--id:focus, .pt-bdg-row .pt-bdg--id:active { border-color: transparent; background: none; color: var(--pt-ink); }
.pt-bdg-row .pt-bdg--id svg { color: var(--pt-green-dot); }
.pt-bdg-row .pt-bdg--amber, .pt-bdg-row .pt-bdg--amber:visited { background: var(--pt-amber-bg); border-color: var(--pt-amber-border); color: var(--pt-amber-text); }
.pt-bdg-row .pt-bdg--amber:hover, .pt-bdg-row .pt-bdg--amber:focus, .pt-bdg-row .pt-bdg--amber:active { background: var(--pt-amber-bg); border-color: var(--pt-amber-deep); color: var(--pt-amber-text); }
.pt-bdg-pop { position: absolute; z-index: 100040; width: 320px; background: var(--pt-surface); border: 1px solid var(--pt-ink); box-shadow: 0 10px 28px rgba(0, 0, 0, .16); padding: 14px 16px; font-size: 14px; color: var(--pt-ink); }
.pt-bdg-pop[hidden] { display: none; }
.pt-bdg-pop h4 { margin: 0 0 6px; font-size: 15px; text-transform: none; letter-spacing: normal; }
.pt-bdg-pop p { margin: 0 0 6px; }
.pt-bdg-pop ul { margin: 4px 0 8px 18px; padding: 0; }
.pt-bdg-pop a { color: var(--pt-accent); font-weight: 600; }
.pt-trophies { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; font-size: 13px; color: var(--pt-ink-2); }
.pt-trophies span { display: inline-flex; gap: 5px; align-items: center; }
.pt-trophies svg { width: 13px; height: 13px; color: var(--pt-amber-deep); }

/* the review split on the profile (As a seller / As a buyer) */
.pt-rvsplit { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 0 12px; }
.pt-rvsplit__avg { font-size: 15px; }
.pt-rvsplit__avg b { font-family: var(--pt-mono); }
.pt-rvsplit__seg { display: inline-flex; border: 1px solid var(--pt-border-strong); }
.pt-rvsplit__seg a, .pt-rvsplit__seg a:visited { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--pt-surface); color: var(--pt-ink); font-size: 14px; text-decoration: none; }
.pt-rvsplit__seg a + a { border-left: 1px solid var(--pt-border-strong); }
.pt-rvsplit__seg a small { font-family: var(--pt-mono); font-size: 11.5px; color: var(--pt-ink-3); }
.pt-rvsplit__seg a:hover, .pt-rvsplit__seg a:focus { background: #F2F1EC; color: var(--pt-ink); text-decoration: none; outline: none; }
.pt-rvsplit__seg a.is-on, .pt-rvsplit__seg a.is-on:hover, .pt-rvsplit__seg a.is-on:focus { background: var(--pt-ink); color: #fff; }
.pt-rvsplit__seg a.is-on small { color: #BDB6A8; }

/* ── Community › Leaderboards ──────────────────────────────────────────────────────────────────────────────────────────── */
.pt-lb { max-width: 1280px; margin: 0 auto; padding: 22px 36px 48px; }
.pt-lb-crumb { font-size: 13.5px; color: var(--pt-ink-2); margin-bottom: 14px; }
.pt-lb-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.pt-lb h1, .pt-lb h2, .pt-lb h3 { text-transform: none; letter-spacing: normal; }
.pt-lb-h h1 { font-size: 30px; line-height: 1.15; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; }
.pt-lb-h p { margin: 0; font-size: 15px; color: var(--pt-ink-2); }
.pt-lb-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pt-lb-upd { margin-left: auto; font-size: 13px; color: var(--pt-ink-2); }
.pt-lb-seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pt-lb-seg a, .pt-lb-seg a:visited { display: inline-flex; align-items: center; height: 36px; padding: 0 13px; border: 1px solid var(--pt-border-strong); background: var(--pt-surface); color: var(--pt-ink); font-size: 14px; text-decoration: none; }
.pt-lb-seg a:hover, .pt-lb-seg a:focus { border-color: var(--pt-ink); color: var(--pt-ink); text-decoration: none; outline: none; }
.pt-lb-seg a.is-on, .pt-lb-seg a.is-on:hover, .pt-lb-seg a.is-on:focus { background: var(--pt-ink); border-color: var(--pt-ink); color: #fff; }
.pt-lb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pt-lb-card { background: var(--pt-surface); border: 1px solid var(--pt-border); padding: 16px; display: flex; flex-direction: column; }
.pt-lb-card__h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.pt-lb-ibox { width: 34px; height: 34px; border: 1px solid var(--pt-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pt-lb-card__h h2 { font-size: 17px; margin: 0; line-height: 1.25; }
.pt-lb-card__h h2 a, .pt-lb-card__h h2 a:visited { color: var(--pt-ink); }
.pt-lb-card__h p { margin: 2px 0 0; font-size: 13.5px; color: var(--pt-ink-2); }
.pt-lb-prize { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; padding: 9px 12px; border: 1px solid var(--pt-border); background: var(--pt-surface-dim); font-size: 13.5px; color: var(--pt-ink-2); }
.pt-lb-prize.is-on { background: var(--pt-amber-bg); border-color: var(--pt-amber-border); color: var(--pt-ink); }
.pt-lb-prize .pt-lb-ic { color: var(--pt-amber-deep); }
.pt-lb-prize--h { margin: 0; flex: none; }
.pt-lb-rows { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.pt-lb-rows li { display: grid; grid-template-columns: 22px 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--pt-border); }
.pt-lb-rows li:first-child { border-top: 0; }
.pt-lb-pos { font-size: 13.5px; color: var(--pt-ink-2); }
.pt-lb-pos.is-first { color: var(--pt-amber-deep); font-weight: 700; }
.pt-lb .pt-lb-av { width: 32px; height: 32px; border-radius: 50%; display: block; object-fit: cover; }
.pt-lb-nm { min-width: 0; }
.pt-lb-nm a, .pt-lb-nm a:visited { color: var(--pt-ink); font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-lb-nm small { display: block; font-size: 12.5px; color: var(--pt-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-lb-v { text-align: right; white-space: nowrap; }
.pt-lb-v b { font-size: 14.5px; }
.pt-lb-v small { font-size: 11.5px; color: var(--pt-ink-3); }
.pt-lb-you { margin: 8px 0 0; padding: 9px 12px; border-left: 3px solid var(--pt-ink); background: var(--pt-surface-dim); font-size: 14px; }
.pt-lb-none { margin: 4px 0; font-size: 14px; color: var(--pt-ink-2); }
.pt-lb-card__f { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13.5px; color: var(--pt-ink-2); }
.pt-lb-card__f a { font-weight: 600; }
.pt-lb-dim { color: var(--pt-ink-3); }
.pt-lb-hof { background: var(--pt-surface); border: 1px solid var(--pt-border); margin-top: 20px; }
.pt-lb-hof__h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--pt-border); }
.pt-lb-hof__h h2 { font-size: 18px; margin: 0; }
.pt-lb-hof__h > span { font-size: 13.5px; color: var(--pt-ink-2); }
.pt-lb-hof__h .pt-lb-seg { margin-left: auto; gap: 0; }
.pt-lb-hof__h .pt-lb-seg a + a { border-left: 0; }
.pt-lb-hof__g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pt-lb-hof__g > div { padding: 12px 14px; border-left: 1px solid var(--pt-border); display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.pt-lb-hof__g > div:first-child { border-left: 0; }
.pt-lb-hof__b { display: inline-flex; align-items: center; gap: 4px; color: var(--pt-amber-deep); font-size: 12.5px; font-weight: 600; }
.pt-lb-hof__b .pt-lb-ic { width: 13px; height: 13px; }
.pt-lb-hof__g a, .pt-lb-hof__g a:visited { color: var(--pt-ink); font-weight: 700; }
.pt-lb-hof__g small { color: var(--pt-ink-2); font-size: 12.5px; }
.pt-lb-hof > .pt-lb-none { padding: 14px 16px; margin: 0; }
.pt-lb .pt-lb-lnk { font-weight: 600; }
.pt-lb-legends { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--pt-border); font-size: 14px; }
.pt-lb-legends a { display: inline-flex; gap: 6px; align-items: center; color: var(--pt-ink); }
.pt-lb-legends .pt-lb-av { width: 24px; height: 24px; }
.pt-lb-show { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; }
.pt-lb-show p { margin: 0; color: var(--pt-ink-2); }
.pt-lb-show p b { color: var(--pt-ink); }
/* the square switch (Leon, 15 Oct): bordered square track, square knob; off = grey, on = ink, knob right */
.pt-lb .pt-lb-sw, .pt-lb .pt-lb-sw:hover, .pt-lb .pt-lb-sw:focus, .pt-lb .pt-lb-sw:active { position: relative; flex: none; width: 40px; height: 22px; padding: 0; border: 1px solid var(--pt-border-strong); border-radius: 0; background: var(--pt-surface); color: var(--pt-ink); cursor: pointer; box-shadow: none; }
.pt-lb .pt-lb-sw .pt-lb-sw__t { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--pt-border-strong); transition: left .15s; }
.pt-lb .pt-lb-sw.is-on, .pt-lb .pt-lb-sw.is-on:hover, .pt-lb .pt-lb-sw.is-on:focus, .pt-lb .pt-lb-sw.is-on:active { border-color: var(--pt-ink); background: var(--pt-surface); }
.pt-lb .pt-lb-sw.is-on .pt-lb-sw__t { left: 21px; background: var(--pt-ink); }
.pt-lb .pt-lb-sw:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--pt-surface-dim), 0 0 0 4px var(--pt-ink); }

/* one board in full (3b) */
.pt-lb-full { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.pt-lb-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.pt-lb-podium > div { display: grid; grid-template-columns: auto 48px minmax(0, 1fr); grid-template-areas: "pos av pv" "nm nm nm"; gap: 10px 12px; align-items: center; padding: 16px; background: var(--pt-surface); border: 1px solid var(--pt-border); }
.pt-lb-podium .pt-lb-pos { grid-area: pos; }
.pt-lb-podium .pt-lb-av { grid-area: av; }
.pt-lb-podium .pt-lb-pv { grid-area: pv; }
.pt-lb-podium .pt-lb-nm { grid-area: nm; }
.pt-lb-podium .pt-lb-nm a { white-space: normal; }
.pt-lb-podium > div.is-first { border: 2px solid var(--pt-ink); }
.pt-lb-podium .pt-lb-pos { font-size: 24px; font-weight: 700; color: var(--pt-ink); }
.pt-lb-podium .pt-lb-av { width: 48px; height: 48px; }
.pt-lb-podium .pt-lb-nm small { white-space: normal; }
.pt-lb-pv { text-align: right; }
.pt-lb-pv b { display: block; font-size: 20px; }
.pt-lb-pv small { font-size: 11.5px; color: var(--pt-ink-3); }
.pt-lb-table { background: var(--pt-surface); border: 1px solid var(--pt-border); }
.pt-lb-tr { display: grid; grid-template-columns: 50px 34px minmax(0, 1fr) minmax(0, 1fr) 70px; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--pt-border); font-size: 14px; }
.pt-lb-tr:first-child { border-top: 0; }
.pt-lb-tr--h { font-size: 13px; font-weight: 600; color: var(--pt-ink-2); background: var(--pt-surface-dim); }
.pt-lb-tr--h span:last-child, .pt-lb-tr > b { text-align: right; }
.pt-lb-tr .pt-lb-av { width: 30px; height: 30px; }
.pt-lb-tr .pt-lb-nm small { display: inline; font-size: 12px; }
.pt-lb-w { color: var(--pt-ink-2); font-size: 13.5px; }
.pt-lb-tr.is-you { box-shadow: inset 3px 0 0 var(--pt-ink); background: var(--pt-surface-dim); }
.pt-lb-tr--gap { justify-content: center; color: var(--pt-ink-3); display: block; text-align: center; padding: 4px; }
.pt-lb-side { display: grid; gap: 14px; }
.pt-lb-box { background: var(--pt-surface); border: 1px solid var(--pt-border); padding: 16px 18px; font-size: 14px; }
.pt-lb-box h3 { font-size: 16px; margin: 0 0 8px; }
.pt-lb-box ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.pt-lb-lastr { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--pt-border); color: var(--pt-ink) !important; }
.pt-lb-lastr .pt-lb-av { width: 24px; height: 24px; }
.pt-lb-lastr span { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--pt-ink-2); }
.pt-lb-lastr .pt-lb-ic { color: var(--pt-amber-deep); width: 13px; height: 13px; }
.pt-lb-menu { position: relative; }
.pt-lb-menu__l { position: absolute; top: 44px; left: 0; z-index: 50; min-width: 240px; max-height: 320px; overflow-y: auto; background: var(--pt-surface); border: 1px solid var(--pt-ink); box-shadow: 0 10px 28px rgba(0, 0, 0, .14); }
.pt-lb-menu__l[hidden] { display: none; }
.pt-lb-menu__l a, .pt-lb-menu__l a:visited { display: block; padding: 10px 14px; color: var(--pt-ink); border-top: 1px solid var(--pt-border); font-size: 14px; }
.pt-lb-menu__l a:first-child { border-top: 0; }
.pt-lb-menu__l a:hover, .pt-lb-menu__l a:focus { background: var(--pt-surface-dim); text-decoration: none; }
.pt-lb-menu__l a.is-on { font-weight: 700; }
.pt-lb-terms__b { max-width: 820px; }
.pt-lb-terms__b h2 { font-size: 18px; margin: 18px 0 6px; }
.pt-lb-terms__b h2:first-child { margin-top: 0; }

/* ── phones (frame 7) ──────────────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.pt-lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pt-lb-hof__g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pt-lb-hof__g > div:nth-child(4n+1) { border-left: 0; }
	.pt-lb-full { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.pt-sd-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.pt-sd { padding: 0 0 28px; }
	.pt-sd-h { flex-direction: column; gap: 12px; }
	.pt-sd-h h1, .pt-lb-h h1 { font-size: 26px; }
	.pt-sd-h p { display: none; }
	.pt-sd-card > * { padding-left: 14px; padding-right: 14px; }
	.pt-sd-hero h2 { font-size: 22px; }
	.pt-sd-ibox { width: 44px; height: 44px; }
	.pt-sd-ladder b { font-size: 11px; }
	.pt-sd-ladder--7 small { display: none; }
	.pt-sd-ladder--7 b { font-size: 10px; }
	.pt-sd-reqs td:last-child .pt-sd-bar { display: none; }
	.pt-sd-gets__c { grid-template-columns: 1fr; }
	.pt-sd-stats > div { padding: 12px 14px; }
	.pt-sd-stats b { font-size: 18px; }
	.pt-sd-prog p { flex-direction: column; gap: 2px; }
	.pt-sd-lines li { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 8px; }
	.pt-sd-grace, .pt-sd-note { margin-left: 14px !important; margin-right: 14px !important; }
	.pt-sd-panel__p { top: auto; left: 0; width: 100%; max-height: 86vh; padding: 10px 16px 24px; box-shadow: 0 -14px 34px rgba(0, 0, 0, .16); }
	.pt-sd-panel__grab { display: block; width: 40px; height: 4px; background: var(--pt-border-strong); margin: 0 auto 10px; }
	.pt-bdg-pop { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; border: 0; border-top: 1px solid var(--pt-border); padding: 16px 16px 26px; box-shadow: 0 -14px 34px rgba(0, 0, 0, .18); }
	.pt-lb { padding: 14px 16px 32px; }
	.pt-lb-h { flex-direction: column; gap: 10px; }
	.pt-lb-h p { font-size: 14px; }
	.pt-lb-grid { grid-template-columns: 1fr; }
	.pt-lb-upd { margin-left: 0; width: 100%; }
	.pt-lb-hof__g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pt-lb-hof__g > div { border-left: 0; border-top: 1px solid var(--pt-border); }
	.pt-lb-hof__h .pt-lb-seg { margin-left: 0; }
	.pt-lb-podium { grid-template-columns: 1fr; }
	.pt-lb-tr { grid-template-columns: 34px 30px minmax(0, 1fr) 56px; }
	.pt-lb-tr .pt-lb-w, .pt-lb-tr--h span:nth-child(4) { display: none; }
	.pt-lb-show { align-items: flex-start; }
}
