*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Tahoma,"Noto Sans Thai",Arial,sans-serif}
html{text-size-adjust:100%;-webkit-text-size-adjust:100%}
body{color:#edffff;background:radial-gradient(ellipse at 100% 100%,#5ce49f99,transparent 60%),linear-gradient(135deg,#14397d,#078eaf 68%,#0ba597)}
button,a{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid #ffc94a;outline-offset:3px}
[hidden]{display:none!important}
.welcome{max-width:1080px;margin:auto;padding:8px 12px;display:grid;grid-template-rows:82px minmax(0,1fr) 76px;gap:8px;height:100svh}
.brand{display:flex;align-items:center;justify-content:center;gap:12px}
.mascot-box{position:relative}
.mascot{width:64px;height:64px;object-fit:contain;display:block}
.brand p{font:10px Arial;letter-spacing:2px;margin:0 0 5px}
.brand h1{font-size:clamp(21px,3.4vw,34px);margin:0;line-height:1.5}
.brand small{font:9px Arial;letter-spacing:1px;color:#c9f5f8}
.report{border:1px solid #83b6c5;background:#082e45;border-radius:23px;padding:16px 16px 12px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;overflow:auto}
.report-heading{text-align:center}
.report-heading h2{font-size:20px;margin:0;line-height:1.5}
.report-heading p{font-size:12px;margin:4px 0;color:#c6e5ed}
.gold{color:#ffd451}
.aqua{color:#75ebda}
.report-layout{display:flex;flex-direction:column;justify-content:center;gap:10px;min-height:min-content;padding:10px 0}
.ring{position:relative;width:min(100%,300px);aspect-ratio:1;margin:0 auto;flex:none}
.ring svg{display:block;width:100%;height:100%}
.center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;pointer-events:none;color:#c6e5ed;font-size:13px}
.center strong{font-family:Arial,sans-serif;font-size:34px;color:white;font-weight:700}
.center small{font-size:12px}
.tick{position:absolute;color:#c6e5ed;font:12px Arial}
.tick.top{top:0;left:50%;transform:translateX(-50%)}
.tick.right{right:0;top:50%}
.tick.left{left:0;top:50%}
.tick.bottom{bottom:0;left:50%}
.totals{width:100%;max-width:460px;margin:auto}
.totals>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-top:1px solid #315669;font-size:13px}
.totals b{font:700 27px Arial;white-space:nowrap;font-variant-numeric:tabular-nums}
.totals small{display:block;text-align:right;color:#bbdbe6;font-size:12px}
.report-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.status{font-size:12px;color:#c5e6ec;margin:0;line-height:1.5}
.info-button{color:inherit;background:transparent;border:1px solid #688c9c;border-radius:8px;min-width:36px;min-height:36px;font-size:15px}
.sector-link{display:flex;align-items:center;justify-content:center;gap:16px;border:1px solid #7db0b8;color:#e2fffa;text-decoration:none;min-height:44px;border-radius:12px;padding:6px 13px;font-size:14px;font-weight:700}
.entry{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.entry .enter{color:#145976;background:linear-gradient(135deg,#fff,#dffdf9);border:0;border-radius:14px;padding:10px 30px;min-height:48px;box-shadow:0 5px 0 #176f80;font-size:19px;font-weight:700;display:flex;align-items:center;gap:30px}
.pppp{color:#d0f4ef;font:10px Arial}
.welcome .preview-chip{text-align:right}
.dark-info{display:flex;align-items:center;gap:7px}
.compact-fresh{display:block;color:#a9d7e2;font-size:11px}
.sector-summary .info-button{color:#355a6a;border-color:#adcbd8}
dialog{max-width:min(90vw,560px);max-height:85svh;padding:22px;background:#f7fcff;color:#183e4e;border:1px solid #7ba5b7;border-radius:16px;font-size:15px;line-height:1.7}
dialog::backdrop{background:#03232dbb}
dialog h2{font-size:21px;margin-top:0}
dialog button{min-height:44px;background:#155b75;color:white;border:0;border-radius:8px;padding:8px 18px}
dialog p{margin:9px 0}
a{color:inherit}
@media(min-width:600px) and (min-height:601px){.welcome{grid-template-rows:100px minmax(0,1fr) 76px;padding:14px 24px}
.report{padding:24px 30px}
.report-heading h2{font-size:27px}
.report-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:28px;max-width:820px;width:100%;margin:auto}
.ring{width:100%;max-width:390px}
.center{font-size:15px}
.center strong{font-size:41px}
.center small{font-size:14px}
.totals>div{display:block;font-size:16px;padding:18px 0}
.totals b{display:block;font-size:34px;margin-top:12px}
.report-actions{max-width:820px;width:100%;margin:auto}
.sector-link{font-size:16px}}
@media(orientation:portrait) and (max-height:720px){.welcome{grid-template-rows:67px minmax(0,1fr) 67px;gap:6px}
.mascot{width:50px;height:50px}
.brand h1{font-size:20px}
.brand p{font-size:9px}
.brand small{font-size:8px}
.report{padding:10px 13px}
.report-heading h2{font-size:18px}
.report-layout{padding:6px 0;gap:5px}
.ring{width:220px}
.center{font-size:11px}
.center strong{font-size:28px}
.center small{font-size:11px}
.totals>div{padding:7px 0;font-size:12px}
.totals b{font-size:24px}
.sector-link{font-size:13px;min-height:40px}
.status{font-size:11px}
.compact-fresh{font-size:10px}
.entry .enter{font-size:17px;min-height:44px;padding:8px 28px}}
@media(orientation:landscape) and (max-height:600px){.welcome{padding:6px max(14px,env(safe-area-inset-right)) 6px max(14px,env(safe-area-inset-left));grid-template-rows:40px minmax(0,1fr) 44px;gap:6px}
.brand{gap:10px}
.mascot{width:37px;height:37px}
.brand>div:last-child{display:flex;align-items:center;gap:12px}
.brand p{font-size:9px;margin:0}
.brand h1{font-size:22px;margin:0}
.brand small{font-size:9px}
.report{padding:9px 16px;border-radius:18px;grid-template-columns:minmax(0,1fr) 205px;grid-template-rows:auto minmax(0,1fr);column-gap:20px}
.report-heading{grid-column:1/-1;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:10px}
.report-heading h2{font-size:18px}
.report-heading p{font-size:11px;margin:0}
.report-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(190px,1.1fr);gap:14px;padding:0}
.ring{width:100%;max-width:205px}
.center{font-size:10px;gap:2px}
.center strong{font-size:24px}
.center small{font-size:10px}
.tick{font-size:10px}
.totals>div{display:block;padding:7px 0;font-size:12px}
.totals b{display:block;font-size:26px;margin-top:5px}
.totals small{font-size:11px}
.report-actions{flex-direction:column;justify-content:center;align-items:stretch;gap:12px}
.dark-info{justify-content:space-between}
.sector-link{font-size:13px;min-height:44px}
.status{font-size:11px}
.compact-fresh{font-size:10px}
.entry{flex-direction:row;gap:18px}
.entry .enter{font-size:16px;min-height:40px;padding:6px 24px}
.entry .pppp{font-size:10px}
.sector-summary .info-button{min-height:30px;min-width:30px}}
@media(orientation:landscape) and (max-height:340px){.welcome{grid-template-rows:32px minmax(0,1fr) 38px;gap:4px;padding-top:4px;padding-bottom:4px}
.brand .mascot{width:30px;height:30px}
.brand h1{font-size:18px}
.brand p{font-size:8px}
.brand small{display:none}
.report{padding:6px 12px;grid-template-columns:minmax(0,1fr) 180px;column-gap:12px}
.report-heading h2{font-size:16px}
.report-heading p{font-size:10px}
.report-layout{grid-template-columns:minmax(0,.8fr) minmax(162px,1.2fr);gap:6px}
.ring{max-width:170px}
.center{font-size:9px}
.center strong{font-size:21px}
.center small{font-size:9px}
.totals>div{font-size:11px;padding:5px 0}
.totals b{font-size:23px;margin-top:3px}
.totals small{font-size:10px}
.sector-link{font-size:12px;min-height:40px;padding:4px 9px}
.report-actions{gap:7px}
.status{font-size:10px}
.compact-fresh{font-size:9px}
.entry .enter{font-size:15px;min-height:36px}
.entry .pppp{font-size:9px}
.sector-summary .info-button{min-height:26px;min-width:28px;font-size:13px}}
@media(max-width:350px) and (orientation:portrait){.brand h1{font-size:18px}
.report-heading h2{font-size:16px}
.report-heading p{font-size:10px}
.ring{width:210px}
.totals b{font-size:22px}
.totals>div{font-size:11px}
.report-actions{gap:6px}
.sector-link{font-size:12px;padding:5px 8px}
.status{font-size:10px}}
@media(orientation:portrait){.report-actions{justify-content:center}
.dark-info{width:100%;justify-content:center}
.sector-link{width:100%;max-width:280px}}
@media(orientation:landscape) and (max-height:600px){.sector-summary .info-button{position:absolute;right:4px;top:-32px;background:#f8fdfff0}}
@media(orientation:landscape) and (max-height:340px){.sector-summary .info-button{top:-29px;min-height:25px}}
.mascot-toggle{font-size:9px;color:#d5fcff;background:#0d426b66;border:1px solid #9cdeee70;border-radius:9px;padding:2px 5px;display:block;margin:auto}
.mascot{height:53px;width:53px}
@media(orientation:portrait) and (max-height:720px){.mascot{height:42px;width:42px}
.mascot-toggle{font-size:8px;padding:0 4px}}
@media(orientation:landscape) and (max-height:600px){.mascot-toggle{position:absolute;left:-35px;top:9px;font-size:0;width:24px;height:24px;padding:0}
.mascot-toggle:after{content:"▷";font-size:12px}}
@media(orientation:portrait){.report{display:flex;flex-direction:column}
.report-layout{flex:1 0 auto}
.report-heading,.report-actions{flex:none}}
@media(orientation:portrait) and (max-height:620px){.ring{width:160px}
.center{font-size:9px;gap:2px}
.center strong{font-size:23px}
.center small{font-size:9px}
.report-layout{gap:3px;padding:4px 0}
.report-heading h2{font-size:16px}
.report-heading p{font-size:10px}
.totals>div{padding:5px 0;font-size:11px}
.totals b{font-size:22px}
.totals small{font-size:10px}
.report-actions{gap:4px}
.dark-info .info-button{min-height:28px;min-width:30px}
.sector-link{min-height:36px;font-size:12px}
.status{font-size:10px}
.compact-fresh{font-size:9px}}
.welcome{grid-template-rows:132px minmax(0,1fr) 76px}
.welcome .brand{position:relative;overflow:visible}
.welcome .mascot{width:104px;height:104px}
.welcome .ring{max-width:350px}
.welcome .mascot-box{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;overflow:visible}
.welcome .mascot{object-fit:contain;object-position:center;flex:none;filter:drop-shadow(0 6px 5px #093d4820)}
.welcome .report{box-shadow:0 12px 28px #073d5520}
@media(orientation:portrait){.welcome{grid-template-rows:132px minmax(0,1fr) 76px;gap:8px;padding-top:8px}
.welcome .brand{gap:12px}
.welcome .mascot-box{width:104px}
.welcome .mascot{width:104px;height:104px}
.welcome .mascot-toggle{min-height:20px;line-height:1.3;font-size:9px;padding:2px 7px}
.welcome .brand p{letter-spacing:1.8px;font-size:9px}
.welcome .brand h1{font-size:22px;line-height:1.45}
.welcome .brand small{font-size:8px;letter-spacing:.7px}
.welcome .ring{width:270px}
.welcome .report-layout{padding-top:12px}}
@media(orientation:portrait) and (min-width:600px){.welcome{grid-template-rows:156px minmax(0,1fr) 76px}
.welcome .mascot-box{width:128px}
.welcome .mascot{width:128px;height:128px}
.welcome .brand p{font-size:12px;letter-spacing:3px}
.welcome .brand h1{font-size:34px}
.welcome .brand small{font-size:11px;letter-spacing:1px}
.welcome .ring{width:100%;max-width:350px}}
@media(orientation:portrait) and (max-height:720px){.welcome{grid-template-rows:98px minmax(0,1fr) 67px;gap:6px}
.welcome .mascot-box{width:80px}
.welcome .mascot{width:78px;height:78px}
.welcome .mascot-toggle{min-height:18px;font-size:8px;padding:1px 6px}
.welcome .brand h1{font-size:20px}
.welcome .brand p{font-size:8px;letter-spacing:1.8px}
.welcome .brand small{font-size:8px}
.welcome .ring{width:190px}
.welcome .report-layout{padding-top:6px}
.welcome .center{font-size:10px}
.welcome .center strong{font-size:25px}
.welcome .center small{font-size:10px}}
@media(orientation:portrait) and (max-height:620px){.welcome{grid-template-rows:88px minmax(0,1fr) 61px;gap:5px}
.welcome .mascot-box{width:68px}
.welcome .mascot{width:66px;height:66px}
.welcome .brand{gap:9px}
.welcome .brand h1{font-size:18px}
.welcome .brand p{font-size:8px;letter-spacing:1.2px}
.welcome .brand small{font-size:7px}
.welcome .ring{width:150px}
.welcome .report{padding-top:8px;padding-bottom:8px}
.welcome .report-layout{padding-top:4px}
.welcome .totals>div{padding:4px 0}
.welcome .center{font-size:9px}
.welcome .center strong{font-size:21px}
.welcome .center small{font-size:9px}}
@media(orientation:landscape) and (max-height:600px){.welcome{grid-template-rows:76px minmax(0,1fr) 44px;gap:6px}
.welcome .mascot-box{width:68px}
.welcome .mascot{width:66px;height:66px}
.welcome .mascot-toggle{top:25px;left:-28px}
.welcome .brand{gap:16px}
.welcome .brand>div:last-child{gap:12px}
.welcome .report{padding-top:8px;padding-bottom:8px}
.welcome .report-layout{padding-top:5px}
.welcome .ring{max-width:190px}}
@media(orientation:landscape) and (max-height:340px){.welcome{grid-template-rows:64px minmax(0,1fr) 38px;gap:4px}
.welcome .mascot-box{width:58px}
.welcome .mascot{width:56px;height:56px}
.welcome .brand .mascot{width:56px;height:56px}
.welcome .mascot-toggle{top:18px;left:-28px}
.welcome .report{padding-top:5px;padding-bottom:5px}
.welcome .report-layout{padding-top:2px}
.welcome .ring{max-width:142px}
.welcome .center{font-size:8px;gap:2px}
.welcome .center strong{font-size:20px}
.welcome .center small{font-size:8px}
.welcome .tick{font-size:9px}}
@media(orientation:portrait) and (max-height:620px){.welcome{grid-template-rows:88px minmax(0,1fr) 65px}
.welcome .report{padding-top:7px;padding-bottom:7px}
.welcome .ring{width:148px}
.welcome .entry{gap:3px}
.welcome .entry .enter{min-height:40px;padding:6px 25px}
.welcome .entry .pppp{font-size:8px}
.welcome .entry .preview-chip{font-size:9px;line-height:1.2}}
/* Live source status remains visible; explanatory detail is available without crowding the rings. */
.entry .enter{text-decoration:none}.report .verification{display:block}.compact-state{display:block;color:#d8eaf1;font-size:11px;line-height:1.5;margin-top:2px}.report[data-state="live"] .compact-state{display:none}.report[data-state="cached"] .compact-state,.report[data-state="error"] .compact-state{color:#ffe09a}.report[data-state="loading"] .ring svg{opacity:.5}.report[data-state="error"] .ring svg{opacity:.35}.report .status{font-weight:400}.report .info-button{flex:none}.report .dark-info{min-width:0}.report .report-actions{position:relative}.report-noscript{font-size:12px;color:#e2eff7}.report-noscript a{color:#fff}.report-details{width:min(92vw,560px);max-height:85svh;font-size:15px;line-height:1.7}.report-details .report-sync{display:block;color:#254e61;border-top:1px solid #bad2de;margin-top:14px;padding-top:14px}.report-details .report-sync p{margin:6px 0}.report-details .report-sync button{margin-top:8px}.report-details button:disabled{opacity:.55;cursor:wait}.report-details .dialog-actions{display:flex;justify-content:space-between;gap:10px;margin-top:16px}.report-details .caption,.report-details .verification{color:#183e4e;font-size:15px;text-align:left}.report-details a{color:#155b75}.compact-fresh{white-space:normal}.welcome{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
@media(orientation:landscape) and (max-height:600px){.welcome{padding-top:max(6px,env(safe-area-inset-top));padding-bottom:max(6px,env(safe-area-inset-bottom));padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}.compact-state{font-size:10px}}
@media(orientation:landscape) and (max-height:340px){.welcome{padding-top:max(4px,env(safe-area-inset-top));padding-bottom:max(4px,env(safe-area-inset-bottom))}.compact-state{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Keep report content in intrinsic rows so units cannot overlap the action row. */
.welcome .report{grid-template-rows:auto minmax(min-content,1fr) auto;row-gap:12px}
.welcome .report-layout{min-width:0;min-height:min-content;flex-shrink:0}
.welcome .report-actions{align-self:end;flex-shrink:0}
.welcome .totals small{line-height:1.5;overflow-wrap:anywhere}
@media(orientation:landscape) and (max-height:600px){.welcome .report{grid-template-rows:auto minmax(min-content,1fr);row-gap:8px}.welcome .report-actions{align-self:center}}

/* Let short viewports scroll the whole welcome page instead of clipping the
   report actions inside a second scrollbar. Keep all figures and both links. */
.welcome{height:auto;min-height:100svh}
.welcome .report{min-height:min-content;overflow:visible}

/* Center the existing welcome brand as one group, without vacant logo columns. */
.welcome .brand{display:flex;align-items:center;justify-content:center;gap:16px}
.welcome .brand>.mascot-box{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;gap:4px}
.welcome .brand>div:last-child{text-align:center;min-width:0;pointer-events:auto}
.welcome .brand h1,.welcome .brand p,.welcome .brand small{text-align:center}
.welcome .mascot-toggle{position:static;inset:auto;transform:none;width:auto;height:auto;align-self:center;white-space:nowrap}
.welcome .mascot-toggle:after{content:none}
@media(min-width:600px){.welcome .brand h1{font-size:clamp(21px,2.6vw,34px)}}
@media(max-width:599px){.welcome{grid-template-rows:190px minmax(0,1fr) 76px}.welcome .brand{flex-direction:column;gap:8px}.welcome .brand>.mascot-box{width:82px}.welcome .brand .mascot{width:82px;height:82px}.welcome .brand>div:last-child{width:100%}.welcome .brand h1{font-size:clamp(20px,5.2vw,26px)}.welcome .brand p{font-size:9px}.welcome .brand small{font-size:8px}}
@media(orientation:landscape) and (max-height:600px){.welcome .brand{flex-direction:row;gap:12px}.welcome .mascot-toggle{min-height:16px;font-size:7px;line-height:1.3;padding:0 4px}.welcome .brand h1{font-size:22px}}

/* Phone portrait: keep every welcome element and the entry button on screen. */
@media(max-width:599px) and (orientation:portrait){
.welcome{min-height:100svh;height:auto;grid-template-rows:144px minmax(min-content,1fr) 68px;gap:6px;padding-top:max(6px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}
.welcome .brand{gap:4px}
.welcome .brand>.mascot-box{width:58px;gap:2px}
.welcome .brand .mascot{width:58px;height:58px}
.welcome .mascot-toggle{min-height:20px;font-size:9px;padding:1px 5px}
.welcome .brand h1{font-size:clamp(20px,5.2vw,26px);line-height:1.4}
.welcome .brand p{margin:0 0 3px}
.welcome .report{display:flex;flex-direction:column;padding:10px 12px;gap:6px;border-radius:20px}
.welcome .report-heading h2{font-size:clamp(16px,4.4vw,19px);line-height:1.4}
.welcome .report-heading p{font-size:10px;margin:3px 0}
.welcome .report-layout{flex:1 0 auto;min-height:min-content;gap:4px;padding:0;justify-content:center}
.welcome .ring{width:clamp(120px,calc(100svh - 520px),230px);max-width:100%}
.welcome .center{font-size:10px;gap:2px}
.welcome .center strong{font-size:25px}
.welcome .center small,.welcome .tick{font-size:10px}
.welcome .totals>div{padding:6px 0;font-size:12px}
.welcome .totals b{font-size:24px}
.welcome .totals small{font-size:10px;line-height:1.3}
.welcome .report-actions{gap:5px}
.welcome .status,.welcome .compact-fresh,.welcome .compact-state{font-size:10px;line-height:1.35}
.welcome .info-button{min-width:36px;min-height:36px}
.welcome .sector-link{min-height:40px;padding:5px 10px;font-size:13px}
.welcome .entry{gap:5px}
.welcome .entry .enter{min-height:48px;font-size:18px;padding:8px 28px}
.welcome .entry .pppp{font-size:9px;text-align:center}
}
@media(max-width:599px) and (orientation:portrait) and (max-height:600px){
.welcome{grid-template-rows:124px minmax(min-content,1fr) 64px;gap:4px}
.welcome .brand .mascot{width:44px;height:44px}
.welcome .brand h1{font-size:20px}
.welcome .report{padding:7px 10px;gap:4px}
.welcome .ring{width:120px}
.welcome .center{font-size:8px}.welcome .center strong{font-size:21px}.welcome .center small{font-size:8px}
.welcome .totals>div{padding:4px 0;font-size:11px}.welcome .totals b{font-size:22px}
}

/* Plain visitor text follows the subtitle; no badge, panel or background. */
.welcome .welcome-subtitle{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:2px 8px}
.welcome .welcome-visitors{display:inline;white-space:nowrap;font:11px Tahoma,Arial,sans-serif;line-height:1.4;letter-spacing:0;color:#c9f5f8;background:none;border:0;box-shadow:none;padding:0}
.welcome .welcome-visitors b{font-weight:600;font-variant-numeric:tabular-nums}
@media(max-width:599px){.welcome .welcome-visitors{font-size:10px}.welcome .welcome-subtitle{column-gap:6px}}
