/* Telegram Subscriber Count page and embed (livecounts.nl). Standalone on purpose: no Bootstrap,
   no icon font, so the counter paints fast on phones. */
:root{--accent:#1877ad;--accent-dark:#135f8a;--soft:#e8f4fb;--accent-text:#115a83;--link:#135f8a;--bg:#eef5f9;--text:#1d2530;--muted:#566172;--line:#dfe5ec;--panel:#f4f7fa;--ok:#15803d;--bad:#b42318}
*,*::before,*::after{box-sizing:border-box}
/* System fonts only. Google's consent dialog injects a Roboto webfont; naming Roboto here
   would reflow every line of text when that font arrives. */
html{-webkit-text-size-adjust:100%;scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif}
a{color:var(--link)}
img{max-width:100%}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Hidden above the page rather than off to the side, so it never widens the page in either direction (RTL included) */
.skip{position:absolute;left:8px;top:8px;z-index:100;background:#fff;color:var(--text);padding:10px 14px;border-radius:8px;transform:translateY(-300%)}
.skip:focus{transform:none}
[dir="rtl"] .skip{left:auto;right:8px}

/* Top bar and sidebar, same layout as the other counters */
.topbar{position:fixed;top:0;left:0;right:0;height:56px;z-index:40;display:flex;align-items:center;gap:8px;padding:0 12px;color:#fff;background:linear-gradient(45deg,var(--accent) 0%,var(--accent) 50%,var(--accent-dark) 100%);box-shadow:0 1px 4px rgba(0,0,0,.18)}
.topbar h1{flex:1;min-width:0;margin:0;font-size:1.2rem;font-weight:500;display:flex;align-items:center;justify-content:center;gap:8px}
.topbar h1 span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar h1 svg{flex:none;width:24px;height:24px;fill:currentColor}
.brand{flex:none;width:150px;color:#fff;text-decoration:none;font-weight:500}
.brand:hover{text-decoration:underline}
.topbar-end{flex:none;width:150px}
.menu-btn{display:none;flex:none;width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:#fff;cursor:pointer;align-items:center;justify-content:center}
.menu-btn:hover{background:rgba(255,255,255,.16)}
.menu-btn svg{width:24px;height:24px;fill:currentColor}
.sidebar{position:fixed;top:56px;bottom:0;left:0;width:232px;z-index:30;overflow-y:auto;background:#fff;box-shadow:inset -1px 0 0 var(--line);padding:6px 0 28px}
.nav-label{margin:18px 20px 4px;font-size:.75rem;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.sidebar ul{list-style:none;margin:0;padding:0}
.sidebar a{display:block;padding:7px 20px 7px 17px;color:var(--text);text-decoration:none;font-size:.95rem;border-left:3px solid transparent}
.sidebar a:hover{background:var(--soft)}
.sidebar a[aria-current="page"]{border-left-color:var(--accent);background:var(--soft);font-weight:500}
.backdrop{display:none}
.wrap{margin:56px 0 0 232px;padding:24px 24px 8px}
.main{max-width:900px;margin:0 auto}

/* Cards and controls */
.intro{margin:0 0 16px;color:var(--muted)}
.card{background:#fff;border-radius:14px;box-shadow:0 1px 3px rgba(16,24,40,.08),0 1px 2px rgba(16,24,40,.04);padding:20px;margin:0 0 20px}
.card h2{font-size:1.3rem;font-weight:500;line-height:1.3;margin:0 0 12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:10px;border:1px solid transparent;font-weight:500;text-decoration:none;cursor:pointer;white-space:nowrap}
.btn svg{width:18px;height:18px;fill:currentColor;flex:none}
.btn-accent{background:var(--accent-dark);color:#fff}
.btn-accent:hover{filter:brightness(1.1)}
.btn-ghost{background:#fff;color:var(--text);border-color:#c3ccd7}
.btn-ghost:hover{background:var(--soft)}
.search{position:relative}
.search label,.field label,.field-label{display:block;font-weight:500;margin:0 0 6px}
.search-row{display:flex;gap:8px}
.search-row input{flex:1;min-width:0;height:48px;padding:0 14px;border:1px solid #9aa6b5;border-radius:10px;background:#fff}
.search-row input:focus{border-color:var(--accent-dark)}
.search-row input[aria-invalid="true"]{border-color:var(--bad)}
.search-row .btn{height:48px}
.help{margin:8px 0 0;font-size:.875rem;color:var(--muted)}
.field-err{margin:0;font-size:.9rem;color:var(--bad)}
.field-err:not(:empty){margin-top:6px}
.picks-label{margin:16px 0 8px;font-size:.875rem;font-weight:500;color:var(--muted)}
.picks{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.picks a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;background:var(--soft);color:var(--accent-text);font-size:.9rem;font-weight:500;text-decoration:none}
.picks a:hover{text-decoration:underline}
h2+.picks-label{margin-top:0}

/* The live counter card. Every box has a fixed size so nothing jumps when data lands. */
.counter{text-align:center;padding:22px 20px 16px}
.c-head{display:flex;align-items:center;gap:16px;text-align:left}
.c-icon{flex:none;width:88px;height:88px;border-radius:22px;object-fit:cover;background:#dde4ec;box-shadow:0 0 0 3px #fff,0 2px 14px rgba(0,0,0,.18)}
.c-meta{min-width:0;flex:1}
.c-name{margin:0;font-size:1.4rem;font-weight:500;line-height:1.3;height:1.3em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c-sub{margin:4px 0 0;color:var(--muted);font-size:.925rem;line-height:1.4;height:2.8em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.c-count{margin:18px 0 2px}
.c-num{display:block;font-size:clamp(2.6rem,11vw,4.4rem);font-weight:500;line-height:1.2;height:1.2em;overflow:hidden;font-variant-numeric:tabular-nums;transition:opacity .2s}
.is-loading .c-num{opacity:.35}
.c-label{margin:0;color:var(--muted);font-size:1rem}
.c-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 0}
.c-stats div{background:var(--panel);border-radius:10px;padding:10px 8px}
.c-stats dt{font-size:.75rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c-stats dd{margin:2px 0 0;font-size:1.05rem;font-weight:500;line-height:1.5;min-height:1.5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c-status{margin:14px 0 0;font-size:.875rem;line-height:1.45;color:var(--muted);min-height:2.9em}
.c-status.is-error{color:var(--bad)}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#16a34a;margin:0 7px 1px 0;vertical-align:middle;animation:lc-pulse 2s ease-in-out infinite}
@keyframes lc-pulse{50%{opacity:.3}}
.actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:0 0 24px}

/* Odometer, trimmed down from odometer.css */
.odometer{position:relative}
.odometer .odometer-inside{display:block}
.odometer .odometer-digit{display:inline-block;position:relative;vertical-align:top}
.odometer .odometer-digit-spacer{display:inline-block;visibility:hidden}
.odometer .odometer-digit-inner{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;text-align:left}
.odometer .odometer-ribbon,.odometer .odometer-ribbon-inner,.odometer .odometer-value{display:block}
.odometer .odometer-value.odometer-last-value{position:absolute}
.odometer .odometer-formatting-mark{display:inline-block;vertical-align:top}
.odometer.odometer-animating-up .odometer-ribbon-inner{transition:transform 1.8s}
.odometer.odometer-animating-up.odometer-animating .odometer-ribbon-inner{transform:translateY(-100%)}
.odometer.odometer-animating-down .odometer-ribbon-inner{transform:translateY(-100%)}
.odometer.odometer-animating-down.odometer-animating .odometer-ribbon-inner{transition:transform 1.8s;transform:translateY(0)}

/* Session chart */
.chart-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.chart-top h2{margin:0}
.tabs{display:inline-flex;gap:6px}
.tabs button{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid #c3ccd7;background:#fff;cursor:pointer;font-size:.9rem}
.tabs button[aria-pressed="true"]{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}
.chart{position:relative;height:170px;border-radius:10px;background:var(--panel);overflow:hidden;touch-action:pan-y}
.chart svg{position:absolute;left:0;right:0;top:22px;width:100%;height:126px}
.chart-line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round}
.chart-area{fill:var(--accent);opacity:.12}
.chart-max,.chart-min{position:absolute;left:10px;font-size:.75rem;color:var(--muted)}
.chart-max{top:4px}
.chart-min{bottom:4px}
.chart-empty{margin:0;padding:64px 16px 0;text-align:center;color:var(--muted);font-size:.9rem}
.chart-cursor{position:absolute;top:22px;height:126px;width:1px;background:rgba(0,0,0,.3);pointer-events:none}
.chart-tip{position:absolute;top:2px;transform:translateX(-50%);background:#1d2530;color:#fff;font-size:.78rem;padding:2px 8px;border-radius:6px;pointer-events:none;white-space:nowrap}
.chart-foot{margin:8px 0 0;font-size:.85rem;color:var(--muted);min-height:1.3em}
.chart-foot .up{color:var(--ok)}
.chart-foot .down{color:var(--bad)}

/* Long-term history chart (48 h / 30 d / 90 d), peaks and the live "popular" list */
.history-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.history-top h2{margin:0}
.range-tabs{display:inline-flex;gap:6px}
.range-tabs button{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid #c3ccd7;background:#fff;cursor:pointer;font-size:.9rem}
.range-tabs button[aria-pressed="true"]{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}
.hchart{position:relative;height:230px;border-radius:10px;background:var(--panel);overflow:hidden;touch-action:pan-y}
.hchart svg{position:absolute;left:0;right:0;top:24px;width:100%;height:170px}
.hc-line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round}
.hc-avg{fill:none;stroke:#8a96a6;stroke-width:1.5;stroke-dasharray:4 3}
.hc-area{fill:var(--accent);opacity:.12}
.hc-grid{stroke:#d5dbe3;stroke-width:1;fill:none}
.hc-max,.hc-min,.hc-x0,.hc-x1,.hc-legend{position:absolute;font-size:.75rem;color:var(--muted)}
.hc-max{top:4px;left:10px}
.hc-min{bottom:22px;left:10px}
.hc-x0{bottom:4px;left:10px}
.hc-x1{bottom:4px;right:10px}
.hc-legend{top:4px;right:10px}
.hc-legend i{display:inline-block;width:14px;height:0;border-top:2.5px solid var(--accent);vertical-align:middle;margin:0 4px 0 8px}
.hc-legend i.lg-avg{border-top:2px dashed #8a96a6}
.hc-cursor{position:absolute;top:24px;height:170px;width:1px;background:rgba(0,0,0,.3);pointer-events:none}
.hc-tip{position:absolute;top:2px;transform:translateX(-50%);background:#1d2530;color:#fff;font-size:.78rem;padding:2px 8px;border-radius:6px;white-space:nowrap;pointer-events:none}
.hchart-empty{margin:0;padding:90px 16px 0;text-align:center;color:var(--muted);font-size:.9rem}
.hchart-foot{margin:10px 0 0;font-size:.85rem;color:var(--muted)}

.peak-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px;padding:0}
.peak-grid div{background:var(--panel);border-radius:10px;padding:10px 8px;text-align:center}
.peak-grid dt{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.peak-grid dd{margin:2px 0 0;font-size:1.1rem;font-weight:600;min-height:1.5em}
.peak-grid dd.pk-sub{font-size:.75rem;font-weight:400;color:var(--muted);min-height:1.2em}
.popular-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;counter-reset:pop}
.popular-list li{counter-increment:pop}
.popular-list a{display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 10px;border-radius:8px;background:var(--panel);color:var(--text);text-decoration:none}
.popular-list a::before{content:counter(pop);font-weight:700;color:var(--muted);min-width:1.4em}
.popular-list a:hover{background:var(--soft)}
.pop-name{flex:1;min-width:0;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pop-count{font-size:.85rem;color:var(--muted);white-space:nowrap}
.popular-more{margin:12px 0 0;font-weight:500}
@media (max-width:640px){.peak-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.popular-list{grid-template-columns:minmax(0,1fr)}}

/* Ad slots reserve their space up front so they never push the page around */
.ad{margin:28px 0;min-height:250px;text-align:center;overflow:hidden}
.ad-h{min-height:100px}
.ad-fluid{min-height:160px}
.ad ins{display:block;width:100%}

/* Share and embed */
.field{margin:0 0 18px}
.copy-row{display:flex;gap:8px;align-items:flex-start}
.copy-row input,.copy-row textarea{flex:1;min-width:0;padding:11px 12px;border:1px solid #9aa6b5;border-radius:10px;background:var(--panel);font-size:.9rem}
.copy-row textarea{resize:vertical;min-height:88px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8rem;line-height:1.45}
.field select{min-height:44px;padding:0 12px;border:1px solid #9aa6b5;border-radius:10px;background:#fff;max-width:100%}
.field .help{margin-top:6px}

/* Space-Node card spacing on these pages */
.main .spacenode-promo-card{margin:0 0 24px}
.spacenode-promo-cta svg{width:14px;height:14px;fill:currentColor}

/* Long form text and FAQ */
.prose p{margin:0 0 12px}
.prose h3{font-size:1.08rem;font-weight:500;margin:22px 0 6px}
.prose ul{margin:0 0 12px;padding-left:22px}
.prose li{margin:0 0 4px}

/* Server-rendered creator spotlight (replaces the DYNAMIC_CREATOR_SPOTLIGHT comment) */
.creator-spotlight{background:#fff;border-radius:14px;box-shadow:0 1px 3px rgba(16,24,40,.08);padding:20px;margin:0 0 20px}
.creator-spotlight h2{font-size:1.2rem;font-weight:500;margin:0 0 8px}
.creator-spotlight p{margin:0 0 12px}
.creator-links{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.creator-links a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;background:var(--soft);color:var(--accent-text);font-weight:500;font-size:.9rem;text-decoration:none}

.footer{margin:32px 0 0;padding:18px 0 24px;border-top:1px solid var(--line);font-size:.875rem;color:var(--muted)}
.footer ul{display:flex;flex-wrap:wrap;gap:4px 18px;list-style:none;padding:0;margin:0 0 8px}
.footer a{display:inline-block;padding:8px 0;color:var(--muted)}
.footer p{margin:0}

@media (max-width:991px){
.menu-btn{display:inline-flex}
.brand{width:auto}
.topbar-end{width:44px}
.sidebar{transform:translateX(-100%);visibility:hidden;transition:transform .2s ease,visibility 0s linear .2s;box-shadow:4px 0 18px rgba(0,0,0,.18)}
.sidebar.open{transform:none;visibility:visible;transition:transform .2s ease}
.backdrop.open{display:block;position:fixed;top:56px;left:0;right:0;bottom:0;z-index:25;background:rgba(0,0,0,.35)}
.wrap{margin-left:0;padding:16px 12px 8px}
}
@media (max-width:640px){
.brand{display:none}
.topbar h1{font-size:1.05rem}
.card{padding:16px}
.counter{padding:18px 14px 14px}
.c-icon{width:72px;height:72px;border-radius:18px}
.c-name{font-size:1.2rem}
.c-stats{gap:6px}
.c-stats div{padding:8px 4px}
.c-stats dt{font-size:.68rem;letter-spacing:.02em}
.c-stats dd{font-size:.95rem}
.search-row .btn{padding:0 14px}
.copy-row{flex-direction:column;align-items:stretch}
}
@media (prefers-reduced-motion:reduce){
.dot{animation:none}
.odometer .odometer-ribbon-inner{transition:none!important}
.sidebar{transition:none!important}
}

/* Embed / OBS browser source */
html.lc-embed-doc,body.lc-embed{background:transparent}
body.lc-embed{margin:0;overflow:hidden;color:#1d2530}
.emb{position:relative;display:flex;align-items:center;gap:14px;margin:6px;padding:12px 16px 14px;min-height:100px;background:#fff;border-radius:14px;box-shadow:0 1px 4px rgba(0,0,0,.14)}
.emb .c-icon{width:64px;height:64px;border-radius:16px;box-shadow:none}
.emb-text{min-width:0;flex:1}
.emb .c-name{font-size:1rem;height:1.3em}
.emb .c-num{font-size:2.3rem;text-align:left}
.emb .c-label{font-size:.8rem;color:#566172}
.emb-credit{position:absolute;right:10px;bottom:4px;font-size:.68rem;color:#566172;text-decoration:none}
.theme-dark body.lc-embed{color:#f3f5f8}
.theme-dark .emb{background:#15191f}
.theme-dark .emb .c-label,.theme-dark .emb-credit{color:#b4bdc9}
.bg-transparent .emb{background:transparent;box-shadow:none}
.bg-transparent.theme-dark .emb{text-shadow:0 1px 3px rgba(0,0,0,.6)}
.c-icon{border-radius:50%}
.e-extra:not(:empty)::before{content:" \00b7  "}
