/* V62: original stylesheet order preserved. */
/* Source: /assets/css/style.css */
:root{color-scheme:dark;
  --bg:#050d19;
  --panel:#101f32;
  --panel2:#14263c;
  --stroke:#57708b;
  --orange:#ff0017;
  --yellow:#ff0017;
  --text:#f6f8ff;
  --muted:#b9c8db}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:radial-gradient(ellipse at 50% 0%,#102745 0%,#06101e 45%,#040a14 100%);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);font-size:15px}
a{color:#fff;text-decoration:none}
button{font:inherit;cursor:pointer}
em{font-style:normal;color:var(--yellow)}
.top{background:linear-gradient(110deg,#0b1a2d,#ff0017 58%,#ed0015);
  box-shadow:0 5px 28px #0005}
.top-inner
{
  max-width:1500px;
  margin:auto;
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 30px;
  gap:18px}
.brand{display:flex;align-items:center;gap:12px}.brand img{width:70px;height:70px;object-fit:contain;filter:drop-shadow(0 4px 8px #3218)}
.brand strong{font-size:clamp(23px,2.5vw,38px);letter-spacing:-1.5px;white-space:nowrap;font-weight:900}
.brand small{display:block;font-size:14px;margin-top:2px}.head-right{display:flex;align-items:center;gap:18px}
.today{background:#b900112a;padding:10px 16px;border-radius:15px;font-weight:700}
.today small{display:block;font-weight:400;font-size:12px}
.head-right button{border:0;background:#12263a;color:#fff;border-radius:25px;padding:10px 14px;font-size:20px}
.head-right 
.bell,.head-right 
.hamb{background:transparent;font-size:27px}
.wrap{width:100%;max-width:1500px;min-width:0;margin:auto;padding:0 26px 30px}
.nav{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;background:#0b1a2d;border-radius:0 0 20px 20px;padding:8px;margin-bottom:16px}
.nav a{text-align:center;padding:15px 8px;font-weight:800;border-radius:12px;color:#e4ecf7;transition:.2s}
.nav a:hover{background:#1e344d}
.nav a.active{background:linear-gradient(110deg,#ff0017,#ff0017);
  box-shadow:inset 0 0 0 1px #ff4051,0 3px 14px #ff001750;color:white}
.hero{height:clamp(200px,22vw,300px);
  position:relative;border-radius:23px;overflow:hidden;border:1px solid #5b78a1;background:#07162e;margin-bottom:16px}
.hero>img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#020b20f2 0%,#06112cce 28%,#06112c35 62%,transparent)}
.hero-overlay{position:absolute;z-index:1;top:50%;left:5%;transform:translateY(-50%)}
.live-chip{background:#e91526;color:white;border-radius:40px;padding:6px 14px;font-weight:900;font-size:13px}
.hero h1{font-size:clamp(30px,4vw,54px);letter-spacing:-2px;margin:8px 0 2px;font-weight:900}
.hero p{font-size:clamp(15px,1.8vw,23px);margin:0 0 12px}
.hero ul{list-style:none;padding:0;margin:0;display:grid;gap:6px}.hero li:before{content:'✓';
  background:#ff0017;border-radius:50%;padding:2px 5px;margin-right:9px;font-weight:900}
.twocards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
.mini,
.panel,
.countdown{background:linear-gradient(125deg,#1a2d40,#09192b 62%,#10243a);
  border:1px solid var(--stroke);border-radius:20px;box-shadow:inset 0 1px #ffffff0c}
.mini{display:flex;align-items:center;gap:17px;padding:16px 24px;min-height:96px}
.miniicon{font-size:33px;color:#ff0017;background:#ff001725;padding:12px;border-radius:14px;text-shadow:0 0 16px #ff0017}
.mini h2{font-size:20px;margin:0 0 6px}
.mini p{margin:0;color:#d7e0ec}
.mini .arrow{margin-left:auto;font-size:30px;color:#a9bcd2}
.status.good{color:#58f6a3!important}
.status.warn{color:#ff7380!important}
.countdown{
  position:relative;
  overflow:hidden;
  text-align:center;
  padding:15px 15px 18px;
  margin-bottom:16px;
  border-color:#ff0017;
  background:radial-gradient(ellipse at 50% 130%,#b70010 0%,#1c2532 50%,#0a1727 85%)}
.countdown:before,
.countdown:after{content:'';
  position:absolute;
  width:50%;
  height:85px;
  bottom:-55px;
  border:8px solid #ff0017;
  border-radius:50%;
  filter:blur(7px);pointer-events:none}
.countdown:before{left:-10%}
.countdown:after{right:-10%}
.countdown h2{font-size:clamp(16px,1.7vw,23px);margin:0 0 13px}
.digits{display:flex;align-items:center;justify-content:center;gap:12px}
.digits>div{display:grid;gap:5px;min-width:100px}
.digits b{font-size:clamp(30px,4vw,55px);
  font-variant-numeric:tabular-nums;
  letter-spacing:2px;
  background:linear-gradient(#171923,#060b16);
  border:1px solid #ff0017;
  border-radius:14px;
  box-shadow:0 0 16px #ff0017aa,inset 0 0 14px #ff001740;
  padding:6px 15px}
.digits small{font-size:12px;font-weight:800}
.digits i{font-size:35px;font-style:normal;font-weight:900;transform:translateY(-12px)}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dashboard-main,.dashboard-side{min-width:0;display:flex;flex-direction:column;gap:16px}
.panel{padding:20px 22px;margin-bottom:16px}
.dashboard-grid 
.panel{margin-bottom:0}
.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.sectionhead h2,
.side-intro h2{margin:0;font-size:clamp(17px,1.7vw,23px);letter-spacing:-.5px}
.sectionhead p{margin:5px 0 0;color:#c5d5e7;font-size:13px}
.sectionhead a{color:#ff0017;font-weight:800;white-space:nowrap;font-size:13px}
.official
{
  background:#056e3b;
  border:1px solid #00e578;
  border-radius:12px;
  padding:9px 11px;
  white-space:nowrap;
  font-weight:700;
  font-size:12px}
.balls{display:flex;justify-content:center;gap:12px;margin:18px 0 15px}
.balls span
{
  display:grid;place-items:center;width:min(20%,100px);aspect-ratio:1.2;
  border-radius:16px;
  background:radial-gradient(ellipse at 50% 35%,#0a0d15,#0a0d15 75%);
  border:2px solid #ff0017;
  box-shadow:0 0 16px #ff0017aa,inset 0 0 16px #ff001744;
  font-size:clamp(33px,5vw,70px);
  font-weight:900;
  text-shadow:0 0 2px #fff9}
.resultsub{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.resultsub div{text-align:center;background:#172c43;border:1px solid #3b5876;border-radius:13px;padding:9px;font-weight:800}
.resultsub strong{display:block;color:var(--yellow);font-size:30px;line-height:1.1}
.tablewrap{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
th{background:#20354d;color:#dce7f5;padding:10px 8px;font-size:13px}
td{padding:9px 7px;text-align:center;border-bottom:1px solid #2a3b50;font-weight:650}
td:first-child,
th:first-child{text-align:left}
tr:last-child 
td{border-bottom:0}
.pill
{
  display:inline-block;
  background:linear-gradient(#9d000e,#ef0016,#9a000e);
  border:1px solid #ffb3bd;
  border-radius:22px;
  padding:5px 20px;
  box-shadow:0 0 12px #ff001765;
  font-weight:900;
  letter-spacing:1px}
.paito p,
.side-intro p{color:#486b86;font-size:13px;line-height:1.65}
.paitotable td,
.paitotable th{border:1px solid #456079;text-align:center;padding:7px 5px}
.paitodigit{display:inline-grid;place-items:center;width:29px;height:29px;border-radius:6px;color:#06111f;font-weight:900}
.side-intro{padding:14px 20px}.side-intro p{margin:7px 0 0}
.shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:18px 0 25px}
.shortcuts a{display:grid;place-items:center;text-align:center;gap:12px;padding:20px 10px;border:1px solid #ff0017;
  border-radius:20px;background:linear-gradient(145deg,#721e26,#281d21);font-weight:900;min-height:125px}
.shortcuts a:nth-child(2){background:linear-gradient(145deg, #023b19, #023b19);border-color:#87b5de}
.shortcuts a:nth-child(3){background:linear-gradient(145deg,#57161c,#211b17);border-color:#ff0017}
.shortcuts a span{font-size:42px;color:#ef233c}
.shortcuts a:nth-child(3) 
span{color:#ff0017}
.article{line-height:1.8;width:100%;max-width:none;min-width:0;margin:20px 0}
.article h1{font-size:30px}
.empty{color:#d3e0ed;text-align:center;padding:22px}
.sponsor{display:block;margin:12px auto;max-width:950px}
.sponsor img{max-width:100%;height:auto;display:block;margin:auto}
footer{border-top:1px solid #40546d;text-align:center;padding:22px 10px;color:#dce5f1}
footer strong{color:white}
footer p{font-size:12px;color:#8fa5bb;max-width:850px;margin:12px auto 0}
.light{--text:#102238;--muted:#435c76;background:#e7edf5;color:#102238}
.light .panel,
.light .mini{background:#fff;color:#14263d}
.light .mini p,
.light .sectionhead p,
.light .paito p{color:#425870}
.light .nav{background:#243850}
.light .resultsub div{color:white}
.light .countdown{color:white}
@media(min-width:1000px)
{
  .dashboard-grid .dashboard-side .paito{flex:1}
  .dashboard-grid 
  .dashboard-side 
  .side-intro{display:none}
  .dashboard-grid 
  .dashboard-side .paito .tablewrap{flex:1}.dashboard-grid .dashboard-side .paito p{margin-top:4px}}
@media(max-width:900px){.top-inner{padding:10px 16px}.brand img{width:55px;height:55px}.brand strong{font-size:25px}.head-right{gap:6px}.today,.theme,.bell{display:none!important}.wrap{padding:0 12px 20px}.nav{display:flex;overflow-x:auto;scrollbar-width:none}.nav a{flex:0 0 auto;padding:13px 16px;font-size:13px}.dashboard-grid{grid-template-columns:1fr}.dashboard-main,.dashboard-side{gap:13px}.panel{margin-bottom:13px}.hero{height:225px}.twocards{gap:10px}.mini{padding:12px;gap:9px;min-height:80px}.mini h2{font-size:14px}.mini p{font-size:11px}.miniicon{font-size:24px;padding:9px}.mini .arrow{display:none}.dashboard-grid .side-intro{display:none}.shortcuts{gap:9px}.shortcuts a{font-size:12px;min-height:100px}.shortcuts a span{font-size:30px}}
@media(max-width:520px){.brand strong{font-size:22px}.brand small{font-size:10px}.brand img{width:45px;height:45px}.top-inner{min-height:65px}.head-right .hamb{font-size:22px;padding:8px}.nav{margin-bottom:12px}.hero{height:205px;border-radius:15px}.hero-overlay{left:5%}.hero h1{font-size:29px;letter-spacing:-1px}.hero p{font-size:14px}.hero li{font-size:11px}.hero ul{gap:5px}.live-chip{font-size:10px}.mini{border-radius:14px}.mini h2{font-size:12px}.mini p{font-size:10px}.miniicon{font-size:20px;padding:7px}.countdown{border-radius:15px}.countdown h2{font-size:15px}.digits{gap:7px}.digits>div{min-width:75px}.digits b{font-size:34px;padding:6px 8px}.digits i{font-size:24px}.panel{padding:14px 12px;border-radius:15px}.sectionhead h2{font-size:16px}.sectionhead a,.official{font-size:10px}.official{padding:6px}.balls{gap:8px}.balls span{font-size:39px;border-radius:11px}.resultsub strong{font-size:25px}th,td{font-size:11px;padding:8px 5px}.pill{padding:5px 11px}.shortcuts a{padding:10px 4px;min-height:80px;font-size:10px;border-radius:12px}.shortcuts a span{font-size:23px}footer{font-size:12px}}

/* Paito manual painting */
.paito-tools{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0}.tool-label{font-size:13px;font-weight:800}.paito-palette{display:flex;flex-wrap:wrap;gap:7px}.paito-swatch{width:30px;height:30px;border-radius:8px;border:2px solid #6a8097;cursor:pointer}.paito-swatch.chosen{outline:3px solid #fff;outline-offset:2px}.paito-tool-btn{background:#172e47;color:#fff;border:1px solid #65809b;padding:8px 11px;border-radius:9px;font-weight:700}.paito-tool-btn.chosen{background:#c40012;border-color:#ff0017}.paito-hint{font-size:12px!important;color:#b7cce2!important}.paitodigit{border:1px solid #ffffff70;cursor:pointer;font:inherit;font-weight:900;transition:transform .12s}.paitodigit:hover,.paitodigit:focus-visible{transform:scale(1.12);outline:2px solid #fff;outline-offset:2px}.paitodigit.manual-colored{box-shadow:inset 0 0 0 2px #fff8}


/* App install promotion: separate module, preserves user's existing CSS */
.install-promo{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:13px 0 17px;padding:13px 19px;border:1px solid #ff2f42;border-radius:17px;background:linear-gradient(110deg,#853214 0%,#2b2134 37%,#102b48 78%,#0b1a2e 100%);box-shadow:0 5px 22px #ff00171b;color:#fff}
.install-promo[hidden],.install-guide[hidden]{display:none!important}
.install-promo-brand{display:flex;align-items:center;gap:13px;min-width:0;flex:1}
.install-promo-brand img{width:62px;height:62px;object-fit:contain;border-radius:13px;background:#0a2039;box-shadow:0 0 0 1px #ff4c5c,0 4px 16px #0007}
.install-promo-brand h2{font-size:clamp(16px,2vw,22px);margin:0 0 4px;font-weight:800;line-height:1.2;color:white}
.install-promo-brand h2 em{font-style:normal;color:#ff0017}
.install-promo-brand p{font-size:12px;color:#e0e8f3;margin:0;line-height:1.4}
.install-promo-benefits{display:flex;gap:16px;border-left:1px solid #ffffff55;padding-left:18px}
.install-promo-benefits span{display:flex;align-items:center;flex-direction:column;font-size:20px;color:#ff1b30;gap:2px}
.install-promo-benefits small{font-size:10px;color:white}
.install-promo-actions{display:flex;align-items:center;gap:12px}
.install-promo-btn{white-space:nowrap;border:1px solid #ff5b6a;border-radius:24px;padding:12px 21px;background:linear-gradient(180deg,#ff0017,#ff0017);color:white;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 3px 10px #ff001750}
.install-promo-btn:hover{filter:brightness(1.12)}
.install-promo-dismiss{border:0;background:transparent;color:#e2e8f1;text-decoration:underline;cursor:pointer;font-size:11px;white-space:nowrap}
.install-guide{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:#000b;padding:20px}
.install-guide-card{position:relative;width:min(420px,100%);background:#11243b;border:1px solid #ff182d;border-radius:17px;padding:27px;color:white;box-shadow:0 12px 45px #0009}
.install-guide-card h2{margin:0 0 12px;font-size:22px}.install-guide-card p{line-height:1.6;color:#e0e8f3}
.install-guide-close{position:absolute;right:14px;top:9px;font-size:27px;color:white;border:0;background:transparent;cursor:pointer}
.install-guide-ok{background:#ff0017;border:0;border-radius:10px;color:white;font-weight:800;padding:10px 20px;cursor:pointer}
@media(max-width:900px){.install-promo-benefits{display:none}.install-promo{padding:12px 14px}}
@media(max-width:600px){.install-promo{flex-wrap:wrap;gap:9px;margin:10px 0 13px;padding:11px 12px}.install-promo-brand{flex-basis:100%}.install-promo-brand img{width:48px;height:48px}.install-promo-brand h2{font-size:16px}.install-promo-brand p{font-size:11px}.install-promo-actions{width:100%;justify-content:center;gap:17px}.install-promo-btn{font-size:13px;padding:9px 25px}.install-promo-dismiss{font-size:11px}}

/* Web Partner drawer - isolated from existing design */
.partner-backdrop[hidden]{display:none!important}
.partner-backdrop{position:fixed;inset:0;background:rgba(1,8,19,.72);z-index:1200;backdrop-filter:blur(3px)}
.partner-drawer{position:fixed;top:0;right:0;bottom:0;width:min(390px,92vw);z-index:1201;overflow-y:auto;background:linear-gradient(155deg,#162a44,#071321 70%);border-left:1px solid rgba(255,142,19,.55);box-shadow:-15px 0 55px #0009;color:#fff;padding:22px;transform:translateX(105%);transition:transform .25s ease;visibility:hidden}
.partner-drawer.is-open{transform:translateX(0);visibility:visible}
.partner-drawer-head{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #ffffff25;padding-bottom:18px}
.partner-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.4px;color:#ff3648}
.partner-drawer h2{margin:5px 0;font-size:25px;color:#fff}
.partner-drawer p{margin:0;color:#b6c9dc;font-size:13px;line-height:1.5}
.partner-close{background:#ff0017;color:#fff;border:0;border-radius:12px;width:40px;height:40px;font-size:27px;cursor:pointer;flex:none}
.partner-links{display:grid;gap:10px;padding:20px 0}
.partner-link{display:flex;align-items:center;gap:12px;background:#172c44;border:1px solid #38516b;border-radius:13px;padding:13px;color:#fff;text-decoration:none;font-weight:700;font-size:14px;transition:background .15s,border-color .15s}
.partner-link:hover,.partner-link:focus-visible{background:#263e58;border-color:#ef233c;color:#fff}
.partner-link-icon{display:grid;place-items:center;background:#ff001724;color:#ff2b3e;border-radius:9px;width:35px;height:35px;font-size:18px}
.partner-external{margin-left:auto;color:#ff3648}
.partner-note{border-top:1px solid #ffffff25;padding-top:14px!important}
body.partner-menu-open{overflow:hidden}
@media(prefers-reduced-motion:reduce){.partner-drawer{transition:none}}

/* SEO editorial: preserve existing dashboard theme */
.seo-links,.seo-page-intro{margin:18px 0;padding:20px;border:1px solid #3b536e;border-radius:18px;background:#102036;color:#e8f1fc}
.seo-links h2,.seo-page-intro h1{margin:0 0 12px}.seo-links a,.article a{color:#056e3b;text-decoration:underline;text-underline-offset:3px}
.seo-links ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px 24px;padding-left:20px}
.seo-article-card{padding:15px 0;border-bottom:1px solid #34475f}.seo-article-card h2{margin:0 0 8px}.article article p{line-height:1.85}.article article h2{margin-top:24px}.article nav{margin-bottom:16px;line-height:1.7}

/* Hongkong identity: dark red and crimson accents */
:root{--orange:#e11d36;--yellow:#ffbac2}
.hero{background-image:linear-gradient(90deg,rgba(5,10,26,.72),rgba(10,12,29,.10)),url("/assets/hongkong-harbour.svg")!important;background-size:cover!important;background-position:center!important}

/* SGP premium blue identity overrides */
:root{--accent:#118bff;--orange:#118bff;--gold:#66d2ff;--hot:#008cff}
.top{background:linear-gradient(100deg,#064caa,#0878d9 55%,#083d94)!important}
.brand em,.hero em,.install-promo em{color:#9cdeff!important}
.nav a.active,.install-app-btn,.install-promo button.install-button{background:linear-gradient(130deg,#0076e8,#20b6ff)!important;border-color:#65d7ff!important}
.balls span{border-color:#16a7ff!important;box-shadow:0 0 14px #008fff99,inset 0 0 10px #0878d999!important}
.pill{background:linear-gradient(90deg,#0451ae,#168eff)!important;border-color:#47caff!important}
.countdown{border-color:#139eff!important;background:linear-gradient(140deg,#08162f,#042d65 70%,#0d63b4)!important}
.countdown .digits b{border-color:#24b5ff!important;box-shadow:0 0 13px #008fff99!important}
.install-promo{border-color:#20b5ff!important;background:linear-gradient(100deg,#052557,#064f9a,#101d38)!important}
.shortcuts a{border-color:#2498ee!important}
.hero{border-color:#348ee6!important}
.source-note{font-size:.82rem;color:#a9c5e8;margin:12px 0 0}
#totoResult{margin-top:14px;border-color:#2979ce}

/* v9: explicit accessible foreground colors for both themes */
body:not(.light){color-scheme:dark;color:var(--text)}
body:not(.light) .panel,body:not(.light) .mini,body:not(.light) .seo-page-intro,body:not(.light) .seo-links,body:not(.light) .article{color:#f6f8ff}
body:not(.light) .panel h1,body:not(.light) .panel h2,body:not(.light) .panel h3,body:not(.light) .seo-page-intro h1{color:#f6f8ff}
body:not(.light) .panel p,body:not(.light) .panel td,body:not(.light) .panel th,body:not(.light) .seo-page-intro p{color:#e4ecf7}
body:not(.light) .seo-links a,body:not(.light) .article a{color:#7ed0ff}
body.light{color-scheme:light;--text:#13263c;--muted:#425870;background:#e7edf5;color:#13263c}
body.light .panel,body.light .mini,body.light .seo-page-intro,body.light .seo-links,body.light .article{background:#fff;color:#13263c;border-color:#c9d5e4}
body.light .panel h1,body.light .panel h2,body.light .panel h3,body.light .seo-page-intro h1{color:#13263c}
body.light .panel p,body.light .panel td,body.light .panel th,body.light .seo-page-intro p,body.light .seo-links p{color:#243b54}
body.light .seo-links a,body.light .article a{color:#075eae}
body.light .nav a{color:#eef5ff}
body.light .nav a.active{color:#fff}
body.light .hero,body.light .hero h1,body.light .hero p,body.light .hero li{color:#fff}
body.light .countdown,body.light .countdown h2,body.light .countdown .digits{color:#fff}
body.light .resultsub div{color:#fff}
body.light .pill{color:#fff}
body.light .install-promo,body.light .install-promo h2,body.light .install-promo p{color:#fff}
body.light .partner-drawer,body.light .partner-drawer h2,body.light .partner-drawer p{color:#fff}

.paitodigit{background:#fff!important;color:#111827!important}
.paitodigit.manual-colored{background:var(--manual-color,#fff)!important}
.archive-pagination{display:flex;align-items:center;justify-content:center;gap:15px;margin:18px auto;flex-wrap:wrap}
.archive-pagination a{padding:10px 14px;border:1px solid currentColor;border-radius:9px}
.visitor-panel{margin:20px 0}.visitor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.visitor-item{border:1px solid #7c8ea055;border-radius:10px;padding:12px;min-width:0}
.visitor-item span{display:block;font-size:12px;opacity:.8}.visitor-item strong{display:block;font-size:clamp(18px,2vw,25px);margin-top:5px}
.visitor-note{font-size:12px;opacity:.75;margin:10px 0 0}
@media(max-width:600px){.visitor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Pagination Data & Paito SGP */
.archive-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin:18px 0 24px;padding:12px}
.archive-pagination a{display:inline-block;padding:9px 14px;border-radius:9px;background:#1674c5;color:#fff;text-decoration:none;font-weight:600}
.archive-pagination a:hover{background:#0b4e8d;color:#fff}
.archive-pagination span{font-size:14px;font-weight:600}

/* Navigasi di atas dan bawah tabel arsip */
.archive-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin:14px 0;padding:10px 0}
.archive-pagination a{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border:1px solid #93b4dc;border-radius:9px;text-decoration:none;font-weight:600}
.archive-pagination span{font-size:14px;font-weight:600}


/* v12: Result Singapura Terakhir + Result SGP Toto: WCAG-friendly
   foregrounds on dark number cards, independent of theme inheritance. */
body .panel.result .balls span,
body.light .panel.result .balls span,
body:not(.light) .panel.result .balls span {
  background:#091827!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  text-shadow:none!important;
  border:2px solid #48b8ff!important;
  box-shadow:0 0 0 1px #075985,inset 0 1px 8px #173e60!important;
  font-weight:900!important;
}
body .panel.result .resultsub div,
body.light .panel.result .resultsub div {
  background:#102a43!important;
  border:1px solid #4ca4e8!important;
  color:#ffffff!important;
}
body .panel.result .resultsub strong,
body.light .panel.result .resultsub strong {
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  text-shadow:none!important;
  font-weight:900!important;
}
body.light .panel.result .sectionhead h2,
body.light .panel.result .sectionhead p{color:#102238!important}
body:not(.light) .panel.result .sectionhead h2{color:#ffffff!important}
body:not(.light) .panel.result .sectionhead p{color:#dceafa!important}
body .panel.result .official{white-space:normal;overflow-wrap:anywhere;max-width:100%}
@media(max-width:520px){
 body .panel.result .balls span{font-size:clamp(29px,9vw,43px)!important;min-width:0}
 body .panel.result .balls{gap:7px}
 body .panel.result .resultsub strong{font-size:clamp(23px,7vw,30px)!important}
 body .panel.result .sectionhead{flex-wrap:wrap}
}

/* V30: keep partner links inside hamburger drawer; never occupy page flow. */
html body aside#partnerDrawer.partner-drawer:not(.is-open){display:none!important;visibility:hidden!important;position:fixed!important;transform:translateX(105%)!important}
html body aside#partnerDrawer.partner-drawer.is-open{display:block!important;visibility:visible!important;position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:min(390px,92vw)!important;max-height:100dvh!important;overflow-y:auto!important;transform:translateX(0)!important;z-index:3001!important}
html body div#partnerBackdrop:not([hidden]){position:fixed!important;inset:0!important;z-index:3000!important}
html body div#partnerBackdrop[hidden]{display:none!important}

/* V61: one vertical spacing rhythm for every canonical page.
   Fixed navigation, drawer and install dialog stay out of document flow. */
:root{--sgp-panel-gap:16px}
@media(max-width:760px){:root{--sgp-panel-gap:12px}}
body main.wrap{display:flex;flex-direction:column;gap:var(--sgp-panel-gap);padding-top:var(--sgp-panel-gap)!important}
body main.wrap>:is(section,footer,aside.sgp-ad-zone){margin-block:0!important;min-width:0}
body main.wrap>a.sponsor{margin-block:0!important;align-self:center;max-width:min(950px,100%)}
/* Only outer panel spacing; preserve all controls and internal content. */
body main.wrap>#sgpDataStudio{gap:var(--sgp-panel-gap)}
body main.wrap :is(.sgd-layout,.sgd-aside,.sgps-layout,.sgps-side){gap:var(--sgp-panel-gap)}
body main.wrap #sgpPaitoStudio>:is(.sgps-filters,.sgps-actions,.sgps-layout,.sgps-note){margin-top:var(--sgp-panel-gap)!important}
body.sgp-fusion main.wrap .fusion-grid{gap:var(--sgp-panel-gap)}
body.sgp-fusion main.wrap .fusion-grid>:is(.fusion-market,.fusion-tools,.fusion-calendar,.fusion-history){margin-block:0!important}
body.sgp-fusion main.wrap .fusion-calendar>.sgp-calendar{margin-block:0!important}
body.sgp-fusion main.wrap .fusion-toolbar{margin:0 0 var(--sgp-panel-gap)!important}
body.sgp-fusion main.wrap .fusion-metrics{gap:var(--sgp-panel-gap)}

/* Source: /assets/css/sgp-identitas-baru.css */
/* SGP 4D: blue and cyan identity, source-aware archives */
:root{--sgp-blue:#0756c9;--sgp-cyan:#16c9e7}
.sgp-source-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-weight:800;font-size:.78rem;background:#dbeafe;color:#123e8a;white-space:nowrap}
.sgp-source-badge.is-toto{background:#ccfbf1;color:#115e59}
.seo-page-intro{border-left:5px solid #06b6d4;padding:18px 22px;background:linear-gradient(120deg,#08234a,#063d79);color:white;border-radius:14px;margin:16px 0 22px}
.seo-page-intro h1{color:#fff}.seo-page-intro p{color:#d6eeff}
@media(max-width:600px){.sgp-source-badge{font-size:.68rem;padding:3px 6px}.tablewrap{overflow-x:auto}}

/* Source: /assets/css/analysis.css */

/* Dashboard analisis historis */
.ana-panel{margin:22px 0}.ana-panel h2{margin:27px 0 10px;font-size:1.2rem}.ana-panel p{line-height:1.65}
.ana-filters,.ana-search{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0;padding:14px;border:1px solid #e2e8f0;border-radius:12px}
.ana-filters select,.ana-search input{padding:10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#111827;max-width:220px}
.ana-filters button,.ana-search button{padding:10px 16px;background:#0877d7;color:#fff;border:0;border-radius:8px;cursor:pointer}
.ana-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px;margin:15px 0}
.ana-stats>div{padding:15px;border-radius:12px;background:#eff6ff;border:1px solid #bfdbfe;display:flex;flex-direction:column;gap:8px}
.ana-stats small{color:#1e40af}.ana-stats strong{font-size:1.35rem;color:#1d4ed8}
.ana-bars{display:grid;gap:10px;margin:16px 0}.ana-bar{display:grid;grid-template-columns:24px minmax(50px,1fr) 120px;align-items:center;gap:10px;font-size:.9rem}
.ana-track{height:13px;background:#dbeafe;border-radius:12px;overflow:hidden}.ana-track span{display:block;height:100%;background:#0877d7;border-radius:12px}
.ana-table{width:100%;border-collapse:collapse;text-align:center;min-width:470px}.ana-table th,.ana-table td{border:1px solid #e2e8f0;padding:9px 6px}.ana-table th{background:#eff6ff;color:#1e40af}.ana-table small{display:block;font-size:.72rem;color:#64748b}
.ana-pairs{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px}.ana-formula{padding:18px;border-left:4px solid #0877d7;background:#eff6ff;border-radius:8px;font-weight:600}
@media(max-width:600px){.ana-bar{grid-template-columns:18px minmax(50px,1fr) 95px;font-size:.8rem}.ana-panel h2{font-size:1.06rem}}

/* Kontras aksesibel untuk tema gelap SGP: seluruh area analisis menggunakan
   latar gelap dan teks terang, sedangkan elemen input memakai teks gelap. */
.ana-panel{color:#f4f8ff!important;background:#101f32!important}
.ana-panel h1,.ana-panel h2,.ana-panel h3,.ana-panel p,.ana-panel label,.ana-panel b,.ana-panel strong,.ana-panel span,.ana-panel div{color:inherit}
.ana-panel .sectionhead h1,.ana-panel h2,.ana-panel h3{color:#ffffff!important}
.ana-panel p,.ana-panel .sectionhead p{color:#dbe7f5!important}
.ana-panel a{color:#93c5fd!important;text-decoration:underline;text-underline-offset:2px}
.ana-panel a:hover{color:#dbeafe!important}
.ana-panel .ana-filters,.ana-panel .ana-search{background:#14263c!important;border-color:#57708b!important;color:#f4f8ff!important}
.ana-panel .ana-filters label,.ana-panel .ana-search label,.ana-panel .ana-filters span,.ana-panel .ana-search span{color:#f4f8ff!important}
.ana-panel .ana-filters select,.ana-panel .ana-search input{background:#fff!important;color:#111827!important;border-color:#94a3b8!important}
.ana-panel .ana-filters select option{color:#111827;background:#fff}
.ana-panel .ana-filters button,.ana-panel .ana-search button{background:#0877d7!important;color:#fff!important;border:1px solid #60a5fa!important;font-weight:700}
.ana-panel .ana-filters button:hover,.ana-panel .ana-search button:hover{background:#0759a2!important}
.ana-panel .ana-stats>div{background:#142d48!important;border-color:#456789!important;color:#f4f8ff!important}
.ana-panel .ana-stats small{color:#bfdbfe!important}
.ana-panel .ana-stats strong{color:#ffffff!important}
.ana-panel .ana-bars,.ana-panel .ana-bar,.ana-panel .ana-bar b,.ana-panel .ana-bar>span{color:#f4f8ff!important}
.ana-panel .ana-track{background:#29435e!important}
.ana-panel .ana-track span{background:#60a5fa!important}
.ana-panel .tablewrap{overflow-x:auto}
.ana-panel .ana-table{background:#102238!important;color:#f4f8ff!important}
.ana-panel .ana-table th{background:#1b3857!important;color:#ffffff!important;border-color:#55718e!important}
.ana-panel .ana-table td{background:#102238!important;color:#f4f8ff!important;border-color:#55718e!important}
.ana-panel .ana-table tr:nth-child(even) td{background:#162d46!important}
.ana-panel .ana-table small{color:#c5d7eb!important}
.ana-panel .ana-formula{background:#142d48!important;border-left-color:#60a5fa!important;color:#ffffff!important}
.ana-panel .ana-formula strong{color:#ffffff!important}
.ana-panel .empty{color:#f4f8ff!important}

/* Source: /assets/css/sgp-analytics-merged-v12.css */
/* Consolidated 4D analytics: SGP blue identity */
html{scroll-behavior:smooth;scroll-padding-top:24px}
.sgp-analytics-intro{background:linear-gradient(135deg,#0b2450,#0c5fb1)!important;border:1px solid #2d85e6!important;color:#f3f9ff!important;border-radius:20px;padding:26px!important;margin-bottom:20px}
.sgp-analytics-intro h1{color:#fff!important;font-size:clamp(24px,4vw,36px);line-height:1.2;margin:8px 0 12px}
.sgp-analytics-intro p{color:#d9eaff!important;max-width:850px;line-height:1.7}
.sgp-analytics-kicker{font-weight:800;letter-spacing:.1em;color:#8ee5ff;font-size:12px}
.sgp-analytics-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.sgp-analytics-tabs a{background:#fff!important;color:#07376d!important;padding:11px 15px;border-radius:12px;text-decoration:none;font-weight:800;border:1px solid #c4e6ff}
.sgp-analytics-tabs a:hover,.sgp-analytics-tabs a:focus-visible{background:#b9e6ff!important;color:#062c57!important}
.sgp-analytics-section{scroll-margin-top:24px;margin-bottom:24px}
.sgp-analytics-section>section{margin-top:0}
.sgp-analytics-section .cmp-hero,.sgp-analytics-section .sgpstat,.sgp-analytics-section .sgpcontrols button{border-color:#2e8cdd}
@media(max-width:640px){.sgp-analytics-intro{padding:18px!important}.sgp-analytics-tabs a{flex:1 1 100%;text-align:center}}

/* Source: /assets/css/sgp-analytics-panels-v13.css */
/* SGP432D V13: panel layout inspired by HK/SDY center, original Singapore blue identity */
.sgp-ac{max-width:100%;margin:0 0 26px;color:var(--text,#eaf4ff)}
.sgp-ac-hero{padding:clamp(20px,4vw,38px);border:1px solid #3b83e2;border-radius:20px 20px 0 0;background:radial-gradient(circle at 92% 10%,#166ec0 0,transparent 38%),linear-gradient(125deg,#071b3d,#0b3e85 75%,#08569e);color:#fff;box-shadow:0 12px 35px #071a3430}
.sgp-ac-kicker{font-size:12px;letter-spacing:.13em;font-weight:850;color:#83e7ff}
.sgp-ac-hero h1{margin:10px 0 13px;color:#fff;font-size:clamp(26px,4vw,42px);line-height:1.15}
.sgp-ac-hero h1 em{color:#86eaff;font-style:normal}
.sgp-ac-hero p{max-width:760px;line-height:1.75;color:#dceeff;margin:0}
.sgp-ac-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.sgp-ac-chips span{font-size:12px;font-weight:700;padding:6px 11px;border:1px solid #70c5f57a;border-radius:100px;background:#ffffff12;color:#dff8ff}
.sgp-ac-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;background:#071e3e;border:1px solid #3768a6;border-top:0}
.sgp-ac-tabs button{min-height:54px;border:1px solid #3769aa;border-radius:12px;background:#122d56;color:#dceeff;font:inherit;font-size:clamp(12px,1.6vw,15px);font-weight:800;cursor:pointer;padding:10px 6px;transition:background .15s,transform .15s}
.sgp-ac-tabs button[aria-selected="true"]{background:linear-gradient(110deg,#0874ce,#00a7d9);border-color:#9aefff;color:white;box-shadow:0 4px 14px #009dd33b}
.sgp-ac-tabs button:focus-visible{outline:3px solid #9aefff;outline-offset:2px}
.sgp-ac-tabs button:hover{background:#20588e}
.sgp-ac-panel{padding:18px 0 8px;min-width:0}
.sgp-ac-panel[hidden]{display:none!important}
.sgp-ac-panel>section{margin-top:0}
.sgp-ac-panel .cmp-header,.sgp-ac-panel .sectionhead{border-color:#1e78bf}
.sgp-ac-footnote{padding:15px 17px;background:#0d2c52;color:#c9e4fa;border:1px solid #2d659e;border-radius:12px;font-size:13px;line-height:1.65}
@media(max-width:650px){.sgp-ac-hero{border-radius:15px 15px 0 0}.sgp-ac-tabs{gap:5px;padding:8px}.sgp-ac-tabs button{font-size:11px;min-height:62px;padding:7px 3px}.sgp-ac-panel{padding-top:12px}}

/* Source: /assets/css/sgp-analytics-charts-v14.css */
/* SGP V14: grafik setara pola dashboard HK/SDY, identitas khusus Singapura */
#sgpAnalyticsCenter .sgp-chart-center{color:#eaf4ff}
#sgpAnalyticsCenter .sgp-chart-intro{padding:18px 20px;background:linear-gradient(120deg,#103e79,#086eaf);border-radius:14px;margin:0 0 14px}
#sgpAnalyticsCenter .sgp-chart-intro span{font-size:.75rem;font-weight:800;letter-spacing:.13em;color:#9deaff}
#sgpAnalyticsCenter .sgp-chart-intro h2{font-size:clamp(1.3rem,3vw,1.85rem);margin:6px 0;color:#fff}
#sgpAnalyticsCenter .sgp-chart-intro p{color:#d7efff;margin:0;line-height:1.6}
#sgpAnalyticsCenter .ac-filter{padding:14px;border:1px solid #315d89;border-radius:14px;background:#112b4b;margin-bottom:16px}
#sgpAnalyticsCenter .ac-filterform{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
#sgpAnalyticsCenter .ac-filterform label{display:grid;gap:6px;font-size:.82rem;color:#c7e6ff}
#sgpAnalyticsCenter .ac-filterform select,#sgpAnalyticsCenter .ana-search input{background:#fff;color:#14263b;border:1px solid #80b7e2;border-radius:9px;padding:10px;min-width:135px}
#sgpAnalyticsCenter .ac-filterform button,#sgpAnalyticsCenter .ana-search button{background:#0789da;color:white;border:0;border-radius:9px;padding:11px 15px;font-weight:800;cursor:pointer}
#sgpAnalyticsCenter .ac-filterform>span{font-size:.8rem;color:#b8d8ef}
#sgpAnalyticsCenter .ac-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
#sgpAnalyticsCenter .ac-kpis>div{display:flex;flex-direction:column;gap:7px;padding:16px;border-radius:13px;background:#153659;border:1px solid #37638d}
#sgpAnalyticsCenter .ac-kpis small,#sgpAnalyticsCenter .ac-kpis span{color:#a9d7f8;font-size:.77rem}
#sgpAnalyticsCenter .ac-kpis strong{font-size:clamp(1.2rem,2.8vw,1.9rem);color:#fff}
#sgpAnalyticsCenter .ac-chartgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#sgpAnalyticsCenter .ac-card{background:#102a48;border:1px solid #315a82;border-radius:15px;padding:18px;min-width:0;color:#e9f5ff}
#sgpAnalyticsCenter .ac-card h2{font-size:1.07rem;color:#fff;margin:0 0 14px}
#sgpAnalyticsCenter .ac-card p,#sgpAnalyticsCenter .ac-method{color:#c0d9ed;font-size:.86rem;line-height:1.6}
#sgpAnalyticsCenter .ac-verticalbars{height:210px;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;align-items:end}
#sgpAnalyticsCenter .ac-vbar{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:6px;min-width:0}
#sgpAnalyticsCenter .ac-vbar b,#sgpAnalyticsCenter .ac-vbar small{color:#e9f5ff;font-size:.75rem}
#sgpAnalyticsCenter .ac-vtrack{height:155px;width:100%;max-width:33px;background:#203e61;border-radius:8px 8px 2px 2px;display:flex;align-items:end;overflow:hidden}
#sgpAnalyticsCenter .ac-vtrack span{display:block;width:100%;background:linear-gradient(0deg,#1764cc,#38c9f4);border-radius:7px 7px 0 0}
#sgpAnalyticsCenter .tablewrap{overflow-x:auto}
#sgpAnalyticsCenter .ac-heat{width:100%;border-collapse:collapse;text-align:center;min-width:320px}
#sgpAnalyticsCenter .ac-heat th,#sgpAnalyticsCenter .ac-heat td{border:1px solid #527394;padding:8px 4px;color:#f7fbff}
#sgpAnalyticsCenter .ac-heat th{background:#20466d}
#sgpAnalyticsCenter .ac-ring{width:170px;height:170px;max-width:100%;margin:10px auto;border-radius:50%;background:conic-gradient(#1cc6ef calc(var(--pct)*1%),#2b4c70 0);display:grid;place-items:center}
#sgpAnalyticsCenter .ac-ring:before{content:'';grid-area:1/1;width:70%;height:70%;background:#102a48;border-radius:50%}
#sgpAnalyticsCenter .ac-ring b{grid-area:1/1;z-index:1;color:#fff;font-size:1.45rem}
#sgpAnalyticsCenter .ac-legend{text-align:center;color:#d3e9f9;font-size:.82rem}
#sgpAnalyticsCenter .ac-distance{display:grid;gap:9px}
#sgpAnalyticsCenter .ac-distance>div{display:grid;grid-template-columns:22px 1fr 26px;align-items:center;gap:9px}
#sgpAnalyticsCenter .ac-distance i{height:10px;border-radius:9px;background:#294969;overflow:hidden}
#sgpAnalyticsCenter .ac-distance em{display:block;height:100%;background:#20b9e9;border-radius:9px}
#sgpAnalyticsCenter .ac-distance b{font-size:.78rem;text-align:right}
#sgpAnalyticsCenter .ac-combos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#sgpAnalyticsCenter .ac-combos h3{font-size:.9rem;margin:0 0 9px}
#sgpAnalyticsCenter .ac-combos table{width:100%;border-collapse:collapse;font-size:.82rem}
#sgpAnalyticsCenter .ac-combos th,#sgpAnalyticsCenter .ac-combos td{border-bottom:1px solid #345879;padding:7px 3px;text-align:left;color:#eaf5ff}
#sgpAnalyticsCenter .ac-details{margin:15px 0;background:#112e4e;border:1px solid #3d6589;border-radius:13px;padding:14px}
#sgpAnalyticsCenter .ac-details summary{cursor:pointer;font-weight:700;color:#a5e9ff}
#sgpAnalyticsCenter .ana-search{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}
#sgpAnalyticsCenter .ac-method{margin:14px 0}
@media(max-width:800px){#sgpAnalyticsCenter .ac-chartgrid{grid-template-columns:1fr}#sgpAnalyticsCenter .ac-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:440px){#sgpAnalyticsCenter .ac-card{padding:12px}#sgpAnalyticsCenter .ac-vtrack{height:120px}#sgpAnalyticsCenter .ac-verticalbars{height:180px}#sgpAnalyticsCenter .ac-combos{gap:6px}#sgpAnalyticsCenter .ac-kpis>div{padding:10px}}

/* Source: /assets/css/sgp-bottom-nav.css */
/* SGP432D bottom app navigation: one existing menu, no duplicate links */
:root{--sgp-bottom-nav-height:76px}
html{scroll-padding-top:12px!important}
body{padding-bottom:calc(var(--sgp-bottom-nav-height) + env(safe-area-inset-bottom,0px) + 18px)!important}
/* Override older sticky patch without altering the top header appearance */
header.top{position:relative!important;top:auto!important}
nav#nav{position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;transform:translateX(-50%)!important;z-index:2140!important;display:flex!important;align-items:stretch!important;justify-content:space-around!important;flex-wrap:nowrap!important;gap:3px!important;width:min(96vw,1050px)!important;max-width:1050px!important;margin:0!important;padding:7px!important;border-radius:18px!important;background:#102b55!important;box-shadow:0 8px 28px rgba(0,0,0,.35)!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important;box-sizing:border-box!important}
nav#nav::-webkit-scrollbar{display:none}
nav#nav>a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;flex:1 0 0!important;min-width:0!important;max-width:none!important;padding:8px 5px!important;border-radius:11px!important;text-align:center!important;white-space:nowrap!important;color:#e8f1ff!important;font-size:17px!important;line-height:1.2!important;text-decoration:none!important}
nav#nav>a span{display:block!important;font-size:11px!important;line-height:1.25!important}
nav#nav>a.active,nav#nav>a[aria-current=page]{background:#246bd1!important;color:white!important}
nav#nav>a:focus-visible{outline:2px solid #fff!important;outline-offset:-2px!important}
@media(max-width:760px){nav#nav{width:calc(100vw - 12px)!important;bottom:calc(5px + env(safe-area-inset-bottom,0px))!important;border-radius:14px!important;justify-content:space-around!important;padding:5px!important}nav#nav>a{flex:1 1 0!important;min-width:0!important;padding:7px 3px!important}nav#nav>a span{font-size:10px!important;white-space:normal!important;overflow-wrap:anywhere!important}}
@media(prefers-reduced-motion:reduce){nav#nav{scroll-behavior:auto!important}}

/* V55: five equal-width navigation items, including narrow mobile screens. */
@media(max-width:360px){nav#nav{gap:2px!important}nav#nav>a{padding:7px 2px!important}nav#nav>a span{font-size:10px!important}}

/* Source: /assets/css/features.css */

.sgptools{color:#eaf2ff}.sgptools h1,.sgptools h2,.sgptools h3,.sgptools strong{color:#fff}.sgptools p,.sgptools label,.sgptools span{color:#dbeafe}.sgptools h2{font-size:1.2rem;margin:28px 0 10px}.sgpcontrols{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:15px 0}.sgpcontrols input,.sgpcontrols select{background:#fff!important;color:#111827!important;border:1px solid #94a3b8;border-radius:8px;padding:10px;min-height:42px}.sgpcontrols button{background:#2563eb!important;color:#fff!important;border:0;border-radius:8px;padding:11px 14px;cursor:pointer}.sgpcontrols button:disabled{opacity:.5}.sgptbl,.sgpheat{width:100%;border-collapse:collapse;min-width:480px;color:#f8fafc}.sgptbl th,.sgptbl td,.sgpheat th,.sgpheat td{border:1px solid #475569;padding:10px 8px;text-align:center;background:#17263f;color:#fff}.sgptbl th,.sgpheat th{background:#1e3a5f!important;color:#fff!important}.sgpheat td{min-width:45px}.sgpheat td strong{color:#fff;text-shadow:0 1px 2px #0f172a}.sgpstatusgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.sgpstat{display:flex;flex-direction:column;gap:8px;background:#152740;border:1px solid #426085;border-radius:12px;padding:16px}.sgpstat strong{font-size:1.05rem}.sgpstat span{font-size:.91rem}.sgpalert{border-left:4px solid #fbbf24;background:#422006;padding:12px;border-radius:6px}.sgpnote{font-size:.9rem;opacity:.9}.sgptools a{color:#93c5fd}

/* Mini heatmap homepage: legible on SGP dark theme */
.mini-heatmap-panel{margin:18px 0;color:#f8fafc}
.mini-heatmap-panel .sectionhead h2{color:#f8fafc}
.mini-heatmap-panel .sectionhead p,.mini-heatmap-caption{color:#cbd5e1}
.mini-heatmap-panel .sectionhead a{color:#93c5fd}
.mini-heatmap-table{width:100%;border-collapse:collapse;text-align:center;min-width:500px}
.mini-heatmap-table th,.mini-heatmap-table td{border:1px solid #475569;padding:9px 5px;color:#fff;font-weight:700;text-shadow:0 1px 2px #0f172a}
.mini-heatmap-table th{background:#1e293b;color:#f8fafc}
.mini-heatmap-caption{font-size:.85rem;margin:12px 0 0}
@media(max-width:600px){.mini-heatmap-table th,.mini-heatmap-table td{padding:7px 4px;font-size:.8rem}}

/* Source: /assets/css/compare.css */
.cmp{--cmp-blue:#1976d2;--cmp-gray:#64748b;--cmp-line:#d9e1ec;--cmp-surface:#fff;color:#17283d;max-width:100%;padding:12px 0 36px}.cmp *{box-sizing:border-box}.cmp-header{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:14px 0 22px}.cmp-header h1{font-size:clamp(25px,3vw,38px);line-height:1.2;margin:7px 0}.cmp-header h1 span{color:#176bd0}.cmp-header p,.cmp-panelhead p{color:#64748b;margin:4px 0}.cmp-eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:800;color:#2563eb}.cmp-pill{background:#eaf3ff;border:1px solid #bfd9ff;color:#165aab;border-radius:30px;padding:9px 12px;font-size:11px;font-weight:800;white-space:nowrap}.cmp-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.cmp-field,.cmp-periods fieldset,.cmp-panel,.cmp-metrics>div{background:var(--cmp-surface);border:1px solid var(--cmp-line);border-radius:13px}.cmp-field{padding:12px}.cmp-field label,.cmp-periods label{display:block;font-size:12px;font-weight:700;color:#4c5e74;margin-bottom:7px}.cmp select,.cmp input{width:100%;max-width:100%;background:#fff;color:#17283d;border:1px solid #cbd5e1;border-radius:8px;padding:10px;font:inherit;font-size:13px}.cmp-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.cmp-periods fieldset{padding:15px;min-width:0}.cmp-periods legend{font-size:12px;font-weight:800;color:#2366b5;padding:0 6px}.cmp-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cmp-periods fieldset>span{display:block;margin-top:10px;color:#64748b;font-size:12px}.cmp-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:12px 0 18px}.cmp-actions button{border:0;border-radius:9px;background:#196dc8;color:#fff;padding:10px 13px;cursor:pointer;font-size:13px;font-weight:700}.cmp-actions button+button{background:#eaf2fc;color:#15549d;border:1px solid #c9ddf5}.cmp-actions span{font-size:12px;color:#65758b}.cmp-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.cmp-metrics>div{padding:16px}.cmp-metrics small{display:block;color:#60718a;font-size:12px}.cmp-metrics strong{display:block;font-size:30px;line-height:1.3;color:#12395f;font-variant-numeric:tabular-nums}.cmp-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px}.cmp-panel{padding:18px;margin-bottom:14px;min-width:0}.cmp-panel h2{font-size:18px;margin:0 0 5px;color:#173a62}.cmp-panelhead{display:flex;justify-content:space-between;gap:12px;align-items:start}.cmp-panelhead label{font-size:12px;color:#526782;min-width:150px}.cmp-legend{display:flex;gap:20px;margin:18px 0;font-size:12px;color:#4e6078}.cmp-legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px}.cmp-a,.cmp-fill-a{background:#1d75d4}.cmp-b,.cmp-fill-b{background:#8b9aad}.cmp-bars{display:grid;gap:11px}.cmp-barrow{display:grid;grid-template-columns:18px minmax(0,1fr) 110px;gap:9px;align-items:center;font-size:12px}.cmp-barrow>b{font-size:13px}.cmp-barrow>div{display:grid;gap:3px}.cmp-barrow small{text-align:right;color:#526782}.cmp-track{height:8px;background:#edf1f6;border-radius:5px;overflow:hidden}.cmp-track span{display:block;height:100%;border-radius:5px}.cmp-panel table{width:100%;border-collapse:collapse;font-size:13px}.cmp-panel th,.cmp-panel td{padding:10px;border-bottom:1px solid #e4eaf2;text-align:left;color:#22364f}.cmp-panel thead th{color:#536982;font-size:12px;background:#f3f6fb}.cmp-tablewrap{overflow-x:auto}.cmp-table{min-width:560px}.cmp-table td:not(:first-child),.cmp-table th:not(:first-child){text-align:right}.cmp-positive{color:#116e4c!important;font-weight:700}.cmp-negative{color:#bb4d31!important;font-weight:700}.cmp-note{color:#66778d;font-size:12px;line-height:1.65}.cmp-archivecols{display:grid;grid-template-columns:1fr 1fr;gap:18px}.cmp-archivecols>div{min-width:0}.cmp-archivecols h3{font-size:14px;color:#325b8d}.cmp-archivecols table{font-variant-numeric:tabular-nums}.cmp-empty{color:#64748b;font-size:13px}.cmp-compact .cmp-insights,.cmp-compact .cmp-archive{display:none}.cmp-compact .cmp-layout{display:block}.cmp-compact .cmp-chart{width:100%}
@media(prefers-color-scheme:dark){body:not(.light) .cmp{--cmp-surface:#172438;--cmp-line:#3b4d66;color:#edf3fb}body:not(.light) .cmp select,body:not(.light) .cmp input{background:#1c2e45;border-color:#52637a;color:#f3f7ff}body:not(.light) .cmp h2,body:not(.light) .cmp-metrics strong,body:not(.light) .cmp-panel td,body:not(.light) .cmp-panel th{color:#f0f5fc}body:not(.light) .cmp-panel thead th{background:#25364c}body:not(.light) .cmp-panel td,body:not(.light) .cmp-panel th{border-color:#3b4d66}body:not(.light) .cmp-field label,body:not(.light) .cmp-periods label{color:#d3ddeb}}
@media(max-width:900px){.cmp-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.cmp-layout{grid-template-columns:1fr}}@media(max-width:580px){.cmp-header{align-items:start;flex-direction:column}.cmp-pill{font-size:10px}.cmp-controls,.cmp-periods,.cmp-archivecols{grid-template-columns:1fr}.cmp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.cmp-dates{grid-template-columns:repeat(2,minmax(0,1fr))}.cmp-panel{padding:12px}.cmp-barrow{grid-template-columns:16px minmax(0,1fr) 90px}.cmp-panelhead{flex-direction:column}}

/* Source: /assets/css/contrast.css */
/* SGP432D Compare PRO: centralized foreground/background contrast layer.
   Applies to live, archive, paito, heatmap, analysis, tools and compare tables.
   Intentionally preserves user-painted paito cells and result number cards. */
body:not(.light){--sgp-cell:#14263c;--sgp-cell-alt:#1b3049;--sgp-head:#234567;--sgp-ink:#f5f9ff;--sgp-sub:#d4e3f3;--sgp-grid:#55708d}
body.light{--sgp-cell:#ffffff;--sgp-cell-alt:#edf3fa;--sgp-head:#dce9f7;--sgp-ink:#15283f;--sgp-sub:#334d68;--sgp-grid:#a8bdd2}
/* Unpainted table surfaces: dark backgrounds get bright numbers and vice versa. */
body:not(.light) .panel table:not(.cmp-table) th,
body:not(.light) .ana-table th,
body:not(.light) .sgptbl th,body:not(.light) .sgpheat th,
body:not(.light) .mini-heatmap-table th{background:var(--sgp-head)!important;color:var(--sgp-ink)!important;border-color:var(--sgp-grid)!important}
body.light .panel table:not(.cmp-table) th,
body.light .ana-table th,
body.light .sgptbl th,body.light .sgpheat th,
body.light .mini-heatmap-table th{background:var(--sgp-head)!important;color:var(--sgp-ink)!important;border-color:var(--sgp-grid)!important}
body:not(.light) .panel table:not(.cmp-table) td:not([style*="background"]):not(.manual-colored),
body:not(.light) .ana-table td,body:not(.light) .sgptbl td,
body:not(.light) .sgpheat td:not([style*="background"]):not(.manual-colored),
body:not(.light) .mini-heatmap-table td:not([style*="background"]):not(.manual-colored){background:var(--sgp-cell)!important;color:var(--sgp-ink)!important;border-color:var(--sgp-grid)!important}
body.light .panel table:not(.cmp-table) td:not([style*="background"]):not(.manual-colored),
body.light .ana-table td,body.light .sgptbl td,
body.light .sgpheat td:not([style*="background"]):not(.manual-colored),
body.light .mini-heatmap-table td:not([style*="background"]):not(.manual-colored){background:var(--sgp-cell)!important;color:var(--sgp-ink)!important;border-color:var(--sgp-grid)!important}
body:not(.light) .panel table:not(.cmp-table) td:not([style*="background"]):not(.manual-colored) :is(span,strong,b,small,a),
body:not(.light) .sgptbl td :is(span,strong,b,small),
body:not(.light) .ana-table td :is(span,strong,b,small){color:var(--sgp-ink)!important}
body.light .panel table:not(.cmp-table) td:not([style*="background"]):not(.manual-colored) :is(span,strong,b,small,a),
body.light .sgptbl td :is(span,strong,b,small),
body.light .ana-table td :is(span,strong,b,small){color:var(--sgp-ink)!important}
/* Keep manual paito digit backgrounds and select foreground for readability. */
body .paitodigit:not(.manual-colored){background:#fff!important;color:#111827!important;-webkit-text-fill-color:#111827!important}
body .paitodigit.manual-colored{color:#111827!important;-webkit-text-fill-color:#111827!important;text-shadow:0 0 2px #fff,0 0 5px #fff!important}
/* Dark mode must follow the actual site toggle, not OS preference. */
body:not(.light) .cmp{--cmp-surface:#172438;--cmp-line:#526681;color:#edf3fb}
body:not(.light) .cmp :is(.cmp-panel,.cmp-field,.cmp-periods fieldset,.cmp-metrics>div){background:#172438;color:#edf3fb;border-color:#526681}
body:not(.light) .cmp :is(h1,h2,h3,.cmp-metrics strong,.cmp-barrow>b){color:#f5f9ff}
body:not(.light) .cmp :is(p,label,small,.cmp-note,.cmp-legend,.cmp-empty,.cmp-actions span,.cmp-periods fieldset>span){color:#d2e0f1}
body:not(.light) .cmp :is(input,select){background:#20354f!important;color:#fff!important;border-color:#7186a0!important}
body:not(.light) .cmp-panel :is(td,th){background:#172438!important;color:#f5f9ff!important;border-color:#526681!important}
body:not(.light) .cmp-panel thead th{background:#29425f!important}
body:not(.light) .cmp-panel .cmp-positive{color:#8af0be!important}
body:not(.light) .cmp-panel .cmp-negative{color:#ffb5a6!important}
body.light .cmp{--cmp-surface:#fff;--cmp-line:#b8c9dc;color:#17283d}
body.light .cmp :is(.cmp-panel,.cmp-field,.cmp-periods fieldset,.cmp-metrics>div){background:#fff;color:#17283d;border-color:#b8c9dc}
body.light .cmp-panel :is(td,th){background:#fff!important;color:#17283d!important;border-color:#cbd5e1!important}
body.light .cmp-panel thead th{background:#e9f1fa!important;color:#213d5b!important}
body.light .cmp :is(input,select){background:#fff!important;color:#17283d!important}
body.light .cmp-panel .cmp-positive{color:#086344!important}
body.light .cmp-panel .cmp-negative{color:#a8321b!important}
/* Historical analysis cards and tools follow theme instead of hardcoded dark. */
body.light .ana-panel{background:#fff!important;color:#17283d!important}
body.light .ana-panel :is(h1,h2,h3,p,label){color:#17283d!important}
body.light .ana-panel :is(.ana-filters,.ana-search){background:#f0f5fb!important;color:#17283d!important;border-color:#b8c9dc!important}
body.light .ana-panel :is(.ana-stats>div,.ana-formula){background:#eaf3ff!important;color:#17283d!important;border-color:#bfd5ef!important}
body.light .ana-panel .ana-stats :is(small,strong){color:#173e72!important}
body.light .sgptools{color:#17283d!important}
body.light .sgptools :is(h1,h2,h3,p,label,span,strong){color:#17283d}
body.light .sgpstat{background:#eef4fb!important;color:#17283d!important;border-color:#a9bfd7!important}
body.light .sgpalert{background:#fff3d6!important;color:#513600!important}
body.light .mini-heatmap-panel,body.light .mini-heatmap-panel .sectionhead h2{color:#17283d!important}
body.light .mini-heatmap-panel :is(.sectionhead p,.mini-heatmap-caption){color:#334d68!important}
body.light .sgpheat td strong,body.light .mini-heatmap-table td strong{color:inherit;text-shadow:none}
/* Buttons and fixed dark result cards retain a contrasting white foreground. */
body .panel.result .balls span,body .panel.result .resultsub strong{color:#fff!important;-webkit-text-fill-color:#fff!important}
body.light .archive-pagination a,body:not(.light) .archive-pagination a{color:#fff!important}

/* Source: /assets/css/page-guides.css */
.sgp-page-guide{margin-block:18px;padding:clamp(16px,2.5vw,26px)}.sgp-page-guide h2{margin:0 0 9px;font-size:clamp(1.1rem,2.5vw,1.45rem);color:var(--text,#e9eef8)}.sgp-page-guide p{margin:0 0 14px;line-height:1.7;color:var(--muted,#aab7cc)}.sgp-guide-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px}.sgp-guide-links a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;border:1px solid var(--border,rgba(128,145,165,.35));background:var(--panel,#17253a);color:var(--text,#f3f7ff);text-decoration:none;font-weight:650;line-height:1.5}.sgp-guide-links a:hover,.sgp-guide-links a:focus-visible{border-color:#2563eb;text-decoration:underline}.sgp-guide-links span{flex:none;color:#60a5fa}html[data-theme="light"] .sgp-page-guide h2,body.light .sgp-page-guide h2,[data-theme="light"] .sgp-page-guide h2{color:#17243b}html[data-theme="light"] .sgp-page-guide p,body.light .sgp-page-guide p,[data-theme="light"] .sgp-page-guide p{color:#46546a}html[data-theme="light"] .sgp-guide-links a,body.light .sgp-guide-links a,[data-theme="light"] .sgp-guide-links a{background:#f7faff;color:#17243b;border-color:#cbd5e1}@media(max-width:600px){.sgp-guide-links{grid-template-columns:1fr}}

/* Source: /assets/css/sgp-home-contrast-v2.css */
/* SGP homepage contrast v2. Theme switch uses body.light, not html[data-theme]. */
body:not(.light) .mini-compare-pro {
 --mcp-text:#f8fafc;--mcp-muted:#cbd5e1;--mcp-bg:#132239;--mcp-surface:#1c304b;--mcp-border:#526b89;--mcp-a:#7dd3fc;--mcp-b:#cbd5e1;
 background:var(--mcp-bg)!important;color:var(--mcp-text)!important;border-color:var(--mcp-border)!important
}
body:not(.light) .mini-compare-pro :is(h2,h3,strong,label,.mcp-row,.mcp-values){color:#f8fafc!important;-webkit-text-fill-color:#f8fafc!important}
body:not(.light) .mini-compare-pro :is(p,small,.mcp-stats span,.mcp-legend,.mcp-foot){color:#cbd5e1!important;-webkit-text-fill-color:#cbd5e1!important}
body:not(.light) .mini-compare-pro a{color:#7dd3fc!important;-webkit-text-fill-color:#7dd3fc!important}
body:not(.light) .mini-compare-pro :is(.mcp-stats>div,.mcp-chartbox){background:#1c304b!important;border-color:#526b89!important}
body:not(.light) .mini-compare-pro select{background:#263e5c!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#7590ad!important}
body:not(.light) .mini-compare-pro .mcp-track{background:#425a78!important}
body:not(.light) .mini-compare-pro .mcp-fill-a{background:#38bdf8!important}
body:not(.light) .mini-compare-pro .mcp-fill-b{background:#a5b4fc!important}
body:not(.light) .mini-compare-pro .mcp-key-a{background:#38bdf8!important}
body:not(.light) .mini-compare-pro .mcp-key-b{background:#a5b4fc!important}
body:not(.light) .mini-heatmap-panel{background:#132239!important;color:#f8fafc!important;border-color:#526b89!important}
body:not(.light) .mini-heatmap-panel .sectionhead h2{color:#fff!important;-webkit-text-fill-color:#fff!important}
body:not(.light) .mini-heatmap-panel :is(.sectionhead p,.mini-heatmap-caption){color:#cbd5e1!important;-webkit-text-fill-color:#cbd5e1!important}
body:not(.light) .mini-heatmap-panel .sectionhead a{color:#7dd3fc!important;-webkit-text-fill-color:#7dd3fc!important}
body .mini-heatmap-panel .tablewrap{overflow-x:auto!important}
body .mini-heatmap-panel .mini-heatmap-table{min-width:510px!important;border-collapse:separate!important;border-spacing:2px!important;width:100%!important;font-variant-numeric:tabular-nums}
body .mini-heatmap-panel .mini-heatmap-table :is(td,th){padding:9px 6px!important;text-align:center!important;font-weight:800!important;line-height:1.4!important;border:1px solid #6883a4!important;text-shadow:none!important;opacity:1!important}
body:not(.light) .mini-heatmap-panel .mini-heatmap-table th{background:#1e40af!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body .mini-heatmap-panel .mini-heatmap-table td[data-heat-level="0"]{background:#eff6ff!important;color:#172554!important;-webkit-text-fill-color:#172554!important}
body .mini-heatmap-panel .mini-heatmap-table td[data-heat-level="1"]{background:#dbeafe!important;color:#172554!important;-webkit-text-fill-color:#172554!important}
body .mini-heatmap-panel .mini-heatmap-table td[data-heat-level="2"]{background:#bfdbfe!important;color:#172554!important;-webkit-text-fill-color:#172554!important}
body .mini-heatmap-panel .mini-heatmap-table td[data-heat-level="3"]{background:#93c5fd!important;color:#172554!important;-webkit-text-fill-color:#172554!important}
body .mini-heatmap-panel .mini-heatmap-table td[data-heat-level="4"]{background:#3b82f6!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body .mini-heatmap-panel .mini-heatmap-table td[data-heat-level="5"]{background:#1d4ed8!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body.light footer{background:#f8fbff!important;color:#1e293b!important;border-top:2px solid #1d4ed8!important}
body.light footer strong{color:#1e40af!important;-webkit-text-fill-color:#1e40af!important}
body.light footer p{color:#334155!important;-webkit-text-fill-color:#334155!important;opacity:1!important}
body.light footer a.btn,body.light footer a.btn:visited{display:inline-block;background:#1d4ed8!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:2px solid #1e40af!important;font-weight:700!important;text-decoration:none!important;opacity:1!important}
body.light footer a.btn:hover{background:#1e40af!important}
body:not(.light) footer{background:#101e31!important;color:#f1f5f9!important;border-top:2px solid #60a5fa!important}
body:not(.light) footer strong{color:#fff!important;-webkit-text-fill-color:#fff!important}
body:not(.light) footer p{color:#cbd5e1!important;-webkit-text-fill-color:#cbd5e1!important;opacity:1!important}
body:not(.light) footer a.btn,body:not(.light) footer a.btn:visited{background:#1d4ed8!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:2px solid #60a5fa!important;font-weight:700!important}
footer a.btn:focus-visible{outline:3px solid #f59e0b!important;outline-offset:3px!important}
@media(max-width:520px){footer{padding:22px 12px!important}footer a.btn{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}}

/* Source: /sponsor/style.css */
/* Semua komponen sponsor memakai namespace sgp-ad agar tidak bentrok dengan UI */
.sgp-ad-zone{margin:14px 0 20px;clear:both}.sgp-ad-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.sgp-ad{position:relative;min-width:0;overflow:hidden;border-radius:12px;border:1px solid rgba(125,125,125,.25);background:#fff;color:#444;padding:19px 6px 6px;box-shadow:0 2px 12px rgba(0,0,0,.08)}
.sgp-ad a{display:block;line-height:0}.sgp-ad img{display:block;width:100%;height:auto;max-height:170px;object-fit:contain;aspect-ratio:728/90}
.sgp-ad-label{position:absolute;top:4px;left:9px;font-size:10px;letter-spacing:.02em;color:#5b6470;line-height:1.3}
.sgp-ad-close,.sgp-ad-popup-close{position:absolute;z-index:2;right:4px;top:3px;width:30px;height:30px;border:0;border-radius:8px;background:#f1f3f5;color:#1f2937;font:700 23px/1 Arial,sans-serif;cursor:pointer;display:grid;place-items:center}
.sgp-ad-close:hover,.sgp-ad-popup-close:hover{background:#fee2e2}.sgp-ad-close:focus-visible,.sgp-ad-popup-close:focus-visible{outline:3px solid #dc2626;outline-offset:2px}
.sgp-ad-floating{position:fixed;z-index:1000;left:50%;bottom:12px;transform:translateX(-50%);width:min(960px,calc(100vw - 28px));margin:0;pointer-events:none}
.sgp-ad-floating .sgp-ad-grid{pointer-events:auto}.sgp-ad-floating .sgp-ad{box-shadow:0 6px 22px rgba(0,0,0,.22)}.sgp-ad-floating .sgp-ad img{max-height:105px}
.sgp-ad-popup[hidden]{display:none!important}.sgp-ad-popup{position:fixed;z-index:1100;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.42);padding:18px;overflow:auto}
.sgp-ad-popup-inner{position:relative;width:min(560px,100%);max-height:85vh;overflow:auto;background:#fff;border-radius:16px;padding:42px 12px 12px;box-shadow:0 16px 60px rgba(0,0,0,.25)}
.sgp-ad-popup-close{right:9px;top:8px}.sgp-ad-popup .sgp-ad-grid{grid-template-columns:1fr}.sgp-ad-popup .sgp-ad img{max-height:330px;aspect-ratio:auto}
@media(max-width:650px){.sgp-ad-grid{grid-template-columns:1fr;gap:8px}.sgp-ad-zone{margin:10px 0 16px}.sgp-ad img{max-height:135px}.sgp-ad-floating{bottom:6px;width:min(350px,calc(100vw - 24px))}.sgp-ad-floating .sgp-ad-grid{gap:5px}.sgp-ad-floating .sgp-ad{padding:15px 4px 4px}.sgp-ad-floating .sgp-ad img{max-height:65px}.sgp-ad-floating .sgp-ad-close{height:25px;width:25px;font-size:20px}.sgp-ad-popup-inner{padding:43px 9px 9px}}
@media(prefers-reduced-motion:reduce){.sgp-ad-popup{scroll-behavior:auto}}

/* Source: /sgp-pro/style.css */
.sgp-pro{margin:18px 0}.sgp-pro-controls{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.sgp-pro-controls label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:var(--text,#17253d)}.sgp-pro-controls select{background:#fff!important;color:#17253d!important;border:1px solid #8da4c2;border-radius:9px;padding:10px;min-width:160px}.sgp-pro-controls option{background:#fff;color:#17253d}.sgp-pro-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.sgp-pro-cell{background:rgba(15,102,212,var(--heat));border:1px solid #b3c8e3;border-radius:8px;padding:12px 4px;text-align:center;font-weight:800;color:#0a2345}.sgp-pro .tablewrap{overflow-x:auto}.sgp-pro table{width:100%;min-width:650px}.sgp-pro-note{font-size:.85rem;opacity:.8}.sgp-pro-live .sgp-pro-prizes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.sgp-pro-live .sgp-pro-prizes span{display:block;text-align:center;border:1px solid #a8c2e6;border-radius:6px;padding:10px 3px;font-weight:800;letter-spacing:.02em}.sgp-pro-live h3{margin:16px 0 8px}.sgp-pro-live .sgp-pro-head{background:#1264b5;color:#fff;padding:10px;border-radius:7px}.sgp-pro-live .sgp-pro-group{margin:12px 0}.sgp-pro-live .sgp-pro-primary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.sgp-pro-live .sgp-pro-primary div{text-align:center;border:1px solid #a8c2e6;border-radius:8px;padding:10px}.sgp-pro-live strong{display:block;font-size:1.3em}.sgp-pro-live .sgp-pro-six{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.sgp-pro-live .sgp-pro-six span{background:#1264b5;color:#fff;text-align:center;border-radius:50px;padding:10px 0;font-weight:800}.sgp-pro-status{font-size:.9rem;opacity:.85}@media(max-width:600px){.sgp-pro-live .sgp-pro-primary{gap:4px}.sgp-pro-live strong{font-size:1em}.sgp-pro-live .sgp-pro-prizes{gap:4px}.sgp-pro-live .sgp-pro-prizes span{font-size:.8em;padding:8px 2px}.sgp-pro-grid{gap:4px}.sgp-pro-cell{font-size:.8em;padding:10px 2px}}

/* Source: /assets/css/sgp-sticky-header.css */
/* SGP432D sticky header + navigation. Scoped to existing .top and #nav. */
:root{--sgp-sticky-top:88px;--sgp-sticky-total:170px}
header.top{position:sticky!important;top:0!important;z-index:1050!important;isolation:isolate}
main.wrap>nav#nav{position:sticky!important;top:var(--sgp-sticky-top)!important;z-index:1040!important;box-shadow:0 8px 18px rgba(0,0,0,.22);background:#0b1a2d}
html{scroll-padding-top:var(--sgp-sticky-total)}
[id]{scroll-margin-top:var(--sgp-sticky-total)}
@media(max-width:900px){main.wrap>nav#nav{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:5px;border-radius:0 0 14px 14px;padding:5px;margin-bottom:12px}main.wrap>nav#nav::-webkit-scrollbar{display:none}main.wrap>nav#nav>a{flex:0 0 auto;white-space:nowrap;padding:10px 12px}}
@media(max-width:520px){header.top .top-inner{padding-top:6px;padding-bottom:6px}main.wrap>nav#nav>a{font-size:12px;padding:9px 11px}}
@media(prefers-reduced-motion:reduce){main.wrap>nav#nav{scroll-behavior:auto}}

/* SGP432D full-bleed sticky top header, preserve blue branding */
html,body{margin:0}
header.top{position:sticky!important;top:0!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box!important;border-radius:0 0 16px 16px!important;overflow:visible!important}
header.top .top-inner{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:max(14px,env(safe-area-inset-left))!important;padding-right:max(14px,env(safe-area-inset-right))!important}
@media(max-width:520px){header.top{border-radius:0 0 12px 12px!important}header.top .top-inner{padding-left:max(10px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important}}

/* PATCH SGP432D: top header remains full-width; app navigation fixed to bottom */
:root{--sgp-app-bottom-height:76px}
html{scroll-padding-top:var(--sgp-sticky-top,80px)!important}
[id]{scroll-margin-top:calc(var(--sgp-sticky-top,80px) + 12px)!important}
body{padding-bottom:calc(var(--sgp-app-bottom-height) + env(safe-area-inset-bottom,0px))!important}
main.wrap>nav#nav{
 position:fixed!important;top:auto!important;bottom:0!important;left:0!important;right:0!important;
 width:100%!important;max-width:none!important;box-sizing:border-box!important;
 display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
 justify-content:safe center!important;gap:4px!important;
 overflow-x:auto!important;overflow-y:hidden!important;
 overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important;
 scrollbar-width:none!important;margin:0!important;
 padding:7px max(10px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left))!important;
 min-height:var(--sgp-app-bottom-height)!important;height:auto!important;
 border-radius:16px 16px 0 0!important;
 background:#0b1a2d!important;box-shadow:0 -8px 25px rgba(0,0,0,.3)!important;
 z-index:1060!important;
}
main.wrap>nav#nav::-webkit-scrollbar{display:none!important}
main.wrap>nav#nav>a{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;flex:0 0 auto!important;min-width:75px!important;
 padding:8px 10px!important;line-height:1.3!important;font-size:13px!important;
 white-space:nowrap!important;text-align:center!important;
}
main.wrap>nav#nav>a span{display:block!important;font-size:11px!important}
body.light main.wrap>nav#nav{background:#243850!important}
@media(max-width:520px){
 main.wrap>nav#nav{border-radius:13px 13px 0 0!important;gap:2px!important}
 main.wrap>nav#nav>a{min-width:67px!important;padding:7px 8px!important;font-size:12px!important}
 main.wrap>nav#nav>a span{font-size:10px!important}
}

/* Center navigation as in HK/SDY while retaining horizontal scrolling when needed */
main.wrap>nav#nav{justify-content:safe center!important;}

/* V3: floating bottom navigation capsule sized and positioned like HK/SDY */
main.wrap>nav#nav{
  position:fixed!important;top:auto!important;
  bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
  left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  width:min(96vw,1050px)!important;max-width:1050px!important;
  min-height:0!important;height:auto!important;
  margin:0!important;padding:7px!important;
  border-radius:18px!important;
  display:flex!important;flex-flow:row nowrap!important;
  align-items:stretch!important;justify-content:space-around!important;
  gap:3px!important;overflow-x:auto!important;overflow-y:hidden!important;
  background:#0b1a2d!important;
  box-shadow:0 8px 28px rgba(0,0,0,.35)!important;
}
main.wrap>nav#nav>a{
  flex:1 0 0!important;min-width:74px!important;max-width:none!important;
  padding:8px 5px!important;gap:3px!important;
  border-radius:11px!important;font-size:17px!important;
}
main.wrap>nav#nav>a span{font-size:11px!important;line-height:1.25!important}
@media(max-width:760px){
  main.wrap>nav#nav{
    width:calc(100vw - 12px)!important;max-width:none!important;
    bottom:calc(5px + env(safe-area-inset-bottom,0px))!important;
    border-radius:14px!important;justify-content:flex-start!important;
    padding:5px!important;gap:3px!important;
  }
  main.wrap>nav#nav>a{
    flex:0 0 68px!important;min-width:68px!important;
    padding:7px 3px!important;
  }
  main.wrap>nav#nav>a span{font-size:10px!important}
}

/* V63: explicit foreground/background pairs, no text glow. */
body:not(.light){--v63-ink:#f4f8ff;--v63-muted:#cfdfef;--v63-focus:#8edaff;--v63-link:#9bd9ff;--v63-surface:#10263e;color-scheme:dark}
body.light{--v63-ink:#142b45;--v63-muted:#40536b;--v63-focus:#0754b3;--v63-link:#0754a0;--v63-surface:#fff;color-scheme:light}
body.light .sgp-guide-links span{color:#0754a0!important}
body .install-promo-btn{background:linear-gradient(180deg,#ca092a,#a90923)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body .install-promo-btn:hover{filter:none!important;background:#b70823!important}
body :is(a,button,input,select,summary):focus-visible{outline:2px solid var(--v63-focus)!important;outline-offset:2px}
/* Disabled paging remains visibly disabled, but its label is still legible. */
body #sgpDataStudio .sgd-btn:disabled,body .sgd-pages .sgd-btn:disabled{opacity:1!important;cursor:not-allowed;background:#435972!important;color:#f4f8ff!important;border-color:#6e8299!important}
body.light .sgd-pages .sgd-btn:disabled{background:#e5ecf5!important;color:#40536b!important;border-color:#879bb1!important}

/* Paito matrix and Analytics: legible numbers on all intensities. */
body #sgpPaitoStudio .sgps-heat th{background:#214466!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body.light #sgpPaitoStudio .sgps-heat th{background:#dce9f7!important;color:#142b45!important;-webkit-text-fill-color:#142b45!important}
body #sgpAnalyticsCenter .sgp-ac-hero{background:radial-gradient(circle at 92% 10%,#104e91 0,transparent 38%),linear-gradient(125deg,#071b3d,#0b366e 75%,#082b4c)}
body #sgpAnalyticsCenter .sgp-ac-kicker,body #sgpAnalyticsCenter .sgp-ac-hero p{color:#eef8ff!important}
body #sgpAnalyticsCenter .sgp-ac-chips span{background:#0b365e!important;color:#fff!important}
body #sgpAnalyticsCenter :is(.ac-filterform button,.ana-search button){background:#0755a5!important;color:#fff!important}
body.light #sgpAnalyticsCenter .ac-method{color:#334d68!important}
body #sgpAnalyticsCenter .ac-ring b{color:#fff!important;background:#102a48;border-radius:5px;padding:2px 4px}

/* Five intensity bands: preserve counts and relative intensity, explicit contrast pairs. */
body:not(.light) #sgpPaitoStudio .sgps-heat td[data-v63-heat="0"],body:not(.light) #sgpAnalyticsCenter .ac-heat td[data-v63-heat="0"]{background:#142c46!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;box-shadow:none!important;text-shadow:none!important}
body:not(.light) #sgpPaitoStudio .sgps-heat td[data-v63-heat="1"],body:not(.light) #sgpAnalyticsCenter .ac-heat td[data-v63-heat="1"]{background:#183b5c!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;box-shadow:none!important;text-shadow:none!important}
body:not(.light) #sgpPaitoStudio .sgps-heat td[data-v63-heat="2"],body:not(.light) #sgpAnalyticsCenter .ac-heat td[data-v63-heat="2"]{background:#1b4a73!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;box-shadow:none!important;text-shadow:none!important}
body:not(.light) #sgpPaitoStudio .sgps-heat td[data-v63-heat="3"],body:not(.light) #sgpAnalyticsCenter .ac-heat td[data-v63-heat="3"]{background:#175a87!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;box-shadow:none!important;text-shadow:none!important}
body:not(.light) #sgpPaitoStudio .sgps-heat td[data-v63-heat="4"],body:not(.light) #sgpAnalyticsCenter .ac-heat td[data-v63-heat="4"]{background:#08699c!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;box-shadow:none!important;text-shadow:none!important}
body.light #sgpPaitoStudio .sgps-heat td[data-v63-heat="0"],body.light #sgpAnalyticsCenter .ac-heat td[data-v63-heat="0"]{background:#f0f6fc!important;color:#10243a!important;-webkit-text-fill-color:#10243a!important;box-shadow:none!important;text-shadow:none!important}
body.light #sgpPaitoStudio .sgps-heat td[data-v63-heat="1"],body.light #sgpAnalyticsCenter .ac-heat td[data-v63-heat="1"]{background:#d9ebfa!important;color:#10243a!important;-webkit-text-fill-color:#10243a!important;box-shadow:none!important;text-shadow:none!important}
body.light #sgpPaitoStudio .sgps-heat td[data-v63-heat="2"],body.light #sgpAnalyticsCenter .ac-heat td[data-v63-heat="2"]{background:#b9dbf4!important;color:#10243a!important;-webkit-text-fill-color:#10243a!important;box-shadow:none!important;text-shadow:none!important}
body.light #sgpPaitoStudio .sgps-heat td[data-v63-heat="3"],body.light #sgpAnalyticsCenter .ac-heat td[data-v63-heat="3"]{background:#8dc8ed!important;color:#10243a!important;-webkit-text-fill-color:#10243a!important;box-shadow:none!important;text-shadow:none!important}
body.light #sgpPaitoStudio .sgps-heat td[data-v63-heat="4"],body.light #sgpAnalyticsCenter .ac-heat td[data-v63-heat="4"]{background:#65b4e3!important;color:#10243a!important;-webkit-text-fill-color:#10243a!important;box-shadow:none!important;text-shadow:none!important}
