/* Approved FECSE monitor: original artwork and live data, responsive typography, centered iPad map. */
.fecse-monitor-home{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;max-width:100%;padding:8px 16px;border:1px solid #9fc9e4;border-radius:12px;background:linear-gradient(145deg,#f5fcff,#d9efff);color:#164e72;font:700 16px/1.5 Tahoma,system-ui,sans-serif;text-decoration:none;box-shadow:0 3px 0 #c3dce9}
.fecse-monitor-home:hover{background:#cceaff}
.fecse-monitor-home:focus-visible{outline:3px solid #146caf;outline-offset:3px}
.fecse-monitor-app-name{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}
.fecse-monitor-app-logo{display:block;flex:none;width:48px;height:44px;object-fit:contain}
.fecse-monitor-app-name h1{min-width:0}
.fecse-overview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;min-width:0}
.panel .fecse-overview-heading h2{flex:1;min-width:0;margin:0!important;overflow-wrap:anywhere}
.fecse-farmer-directory{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:44px;max-width:100%;padding:10px 13px;border:1px solid #71b0d2;border-radius:12px;background:linear-gradient(145deg,#238bb8,#155d85);color:#fff;font:700 14px/1.5 Tahoma,system-ui,sans-serif;text-decoration:none;box-shadow:0 3px 0 #b5d7e9}
.fecse-farmer-directory:hover{background:#145c85}
.fecse-farmer-directory:focus-visible{outline:3px solid #146caf;outline-offset:3px}
@media(max-width:580px){.panel .fecse-overview-heading h2{font-size:16px!important}.fecse-farmer-directory{font-size:13px;padding:10px}.fecse-overview-heading{gap:8px}}
@media(min-width:581px) and (max-width:1366px){html[data-fecse-device="tablet"] .fecse-overview-heading{flex-wrap:wrap}html[data-fecse-device="tablet"] .fecse-overview-heading h2{flex-basis:100%}}
@media print{.fecse-farmer-directory{display:none}}
@media(max-width:850px){.fecse-monitor-app-name{gap:8px}.fecse-monitor-app-logo{width:38px;height:35px}}

:root{--ink:#153553;--line:#d3e7f5;--muted:#536f83;color-scheme:light}
*{box-sizing:border-box}html{background:#eaf6ff;-webkit-text-size-adjust:100%;scroll-padding-bottom:0}
body{padding-bottom:0!important;background:radial-gradient(ellipse at 88% 0,#b9e4ff 0,transparent 46rem),linear-gradient(160deg,#f5fcff,#e6f3ff 65%,#d9eefb)!important;color:var(--ink);min-height:100vh;min-height:100dvh}
body:before{display:none}body>header.top{padding:clamp(10px,1.5vw,22px) clamp(12px,2vw,30px)!important;background:linear-gradient(135deg,#fff,#edf9ff)!important;border-bottom:1px solid #c5e3f5;box-shadow:0 4px 14px #3277a516,inset 0 1px #fff}
.fecse-header-row{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr)!important;gap:clamp(6px,1.4vw,22px);width:100%;min-width:0}.fecse-header-title h1{color:#155889!important;font-size:clamp(13px,2.1vw,30px)!important}.fecse-header-title p{color:#4d7087!important;font-size:clamp(8px,1.05vw,14px)!important}.fecse-header-left,.fecse-header-title,.fecse-header-set{min-width:0}.fecse-header-left img,.fecse-header-set{max-width:100%;object-fit:contain}
.shell{width:min(1540px,100%);margin:0 auto;padding:clamp(14px,2vw,30px)}.toolbar{margin:0 0 20px;gap:12px;align-items:center}.tabs,.scope,.refresh,.panel,.map{border:1px solid #c5e0f2!important;background:linear-gradient(145deg,#fff,#edf8ff)!important;box-shadow:0 5px 0 #c3dce9,0 12px 24px #2d668c20,inset 0 1px #fff!important}.tabs,.scope,.refresh{border-radius:15px}.tabs{padding:6px;overflow:auto;scrollbar-width:none}.tabs a{min-height:42px;display:flex;align-items:center;justify-content:center;border-radius:11px;color:#2b5c7c!important;white-space:nowrap}.tabs a.selected{background:linear-gradient(140deg,#2aa9ec,#146caf)!important;color:#fff!important;box-shadow:inset 0 1px #ffffff80,0 3px 0 #105487}.scope{padding:7px 9px;color:#315d78!important}.scope button,.refresh{background:linear-gradient(145deg,#39b6f0,#1779bb)!important;color:#fff!important;border:0!important;box-shadow:0 3px 0 #126091,0 7px 14px #1a68952b!important}.refresh{min-height:44px;padding:10px 16px;text-decoration:none}
.grid{gap:clamp(14px,1.7vw,26px);align-items:start}.panel{border-radius:22px;padding:clamp(16px,2vw,28px);min-width:0}.panel h2{color:#1a5379}.stats{gap:clamp(10px,1.4vw,20px)}.stat{border:1px solid #c2e2f4;background:linear-gradient(145deg,#fff,#e8f7ff);box-shadow:0 4px 0 #b5d7e9,0 9px 18px #20587818,inset 0 1px #fff;border-radius:18px;padding:clamp(13px,1.5vw,20px);min-width:0}.stat strong{color:#146ea9;font-size:clamp(26px,3.1vw,44px)}.stat .icon{filter:drop-shadow(0 4px 3px #24608530)}
.bar{background:#d9edf8}.bar>i{background:linear-gradient(90deg,#249fdf,#1266a8);box-shadow:inset 0 1px #fff8}.donut{filter:drop-shadow(0 8px 7px #245b7c2a)}.map{background:radial-gradient(ellipse at 40% 20%,#bfeaff,#68b8ea 62%,#3f93ca)!important;border-radius:22px}.map:before{display:none}.map .maphead{color:#174e75;font-weight:700}.map svg{filter:drop-shadow(0 9px 5px #174e7559);max-width:100%}.map .attribution{background:#0e518c89;color:#fff}.bottom{color:#436a84;flex-wrap:wrap}.fecse-contact{border-color:#c5deef;background:#ffffffa6}.fecse-contact a{color:#195780}.linkbutton{border-color:#bddff5;background:linear-gradient(#f7fcff,#e3f3ff);color:#155b91;min-height:44px}
@media(min-width:851px){.grid{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1.05fr)}.tabs{flex:1 1 440px}.scope{flex:0 1 auto}.barrow{grid-template-columns:26px minmax(70px,1fr) minmax(35px,1fr) 78px;gap:6px}.barrow .amount{grid-column:auto}}
@media(min-width:581px) and (max-width:850px){.toolbar .tabs{flex-basis:100%}.grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.donutrow{flex-wrap:wrap}.legend{min-width:100px}}
@media(max-width:580px){.shell{padding:12px 10px}.fecse-header-row{gap:5px;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr)!important}.fecse-header-left img{max-height:30px;width:auto}.fecse-header-set{height:auto;max-height:32px}.fecse-header-title h1{font-size:clamp(11px,3.15vw,18px)!important}.toolbar{gap:9px;margin-bottom:14px}.tabs{flex-basis:100%;overflow:visible;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px}.tabs a{min-width:0!important;font-size:12px;line-height:1.4;padding:9px 4px}.tabs a:first-child{grid-column:span 2}.scope{flex:1;min-width:0;font-size:12px;padding:6px 8px}.refresh{padding:8px 12px;font-size:12px}.panel{padding:15px}.stats{gap:9px}.stat{padding:12px 10px;min-height:116px}.stat .icon{font-size:22px;margin-right:7px}.stat strong{font-size:clamp(24px,7vw,32px)}.barrow{grid-template-columns:24px minmax(75px,1fr) minmax(35px,.8fr) 72px;gap:5px}.map{min-height:0}.map svg{height:auto;max-height:580px;aspect-ratio:460/565}.map .maphead{font-size:11px}.donutrow{gap:12px}.legend p{font-size:11px}}
@media(max-width:360px){.donutrow{flex-wrap:wrap}.donut{margin:auto}.legend{min-width:140px}.stat .icon{display:none}.barrow{grid-template-columns:24px 85px minmax(0,1fr)}.barrow .amount{grid-column:3}}
@media print{body{background:#fff!important}.panel,.map{box-shadow:none}.toolbar{display:none}}

/* Typography preview: existing content and data are preserved. */
body{font-family:Tahoma,"Noto Sans Thai",system-ui,sans-serif;font-size:15px;line-height:1.6;color:#193e59}
.shell{padding:clamp(12px,1.8vw,26px)}
.fecse-header-title h1{font-size:clamp(20px,1.9vw,28px)!important;line-height:1.45!important;letter-spacing:0!important}
.fecse-header-title p{font-size:13px!important;line-height:1.6!important;color:#426176!important;display:block!important}
.tabs a{font-size:14px!important;line-height:1.5;min-height:44px}
.scope,.scope select,.scope button,.refresh{font-size:14px!important;line-height:1.5;min-height:44px}
.scope select{font-size:16px!important}
.tabs a.selected,.scope button,.refresh{background:linear-gradient(145deg,#1979ac,#11557f)!important;color:#fff!important}
.filtermeta{color:#284e6c!important;background:#f4faff;border:1px solid #c5dfef;border-radius:12px;padding:10px 14px;font-size:13px!important;font-weight:400;line-height:1.75;margin:0 0 16px!important}
.panel h2{font-size:clamp(17px,1.45vw,21px)!important;line-height:1.5;margin-bottom:16px}
.stats{gap:12px!important;align-items:stretch}
.stat{container-type:inline-size;display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:8px;row-gap:7px;align-content:start;padding:16px!important;min-height:182px!important;border-radius:16px!important}
.stat .icon{float:none!important;grid-column:1;grid-row:1;margin:0!important;font-size:22px!important;align-self:center;line-height:1.4}
.stat h3{grid-column:2;grid-row:1;font-size:14px!important;font-weight:700;line-height:1.5!important;min-height:42px;align-content:center;margin:0;overflow-wrap:normal}
.stat strong{grid-column:1/-1;font-size:clamp(25px,17cqi,32px)!important;line-height:1.2!important;letter-spacing:-.02em!important;font-variant-numeric:tabular-nums;white-space:nowrap;display:block;color:#146394!important;margin:2px 0 0}
.stat strong small{display:block!important;font-size:13px!important;font-weight:400;line-height:1.6;letter-spacing:0;white-space:normal}
.stat>small{grid-column:1/-1;font-size:13px!important;line-height:1.6!important;color:#415e73!important}
.stat .track,.stat .progressline{grid-column:1/-1}
.stat .track{height:7px;margin-top:3px}
.progressline{display:flex;justify-content:space-between;align-items:start;gap:8px;font-size:12px!important;line-height:1.6;color:#415e73}
.progressline span{min-width:0;flex:1}.progressline b{white-space:nowrap;font-size:12px}
.footnote,.panel .note,.legend p,.barrow,.barrow .amount,.bottom{font-size:12px!important;line-height:1.7!important;color:#415e73}
.footnote{margin-top:13px}
.map .maphead{font-size:13px!important;line-height:1.6;gap:8px;flex-wrap:wrap;padding:13px 14px 0;color:#173e5b!important}
.map .attribution{font-size:11px!important;line-height:1.5;background:#174e75!important}
.rankinfo h3{font-size:18px!important;line-height:1.5;margin-bottom:4px}
.rankinfo .area{font-size:clamp(19px,1.65vw,24px)!important;line-height:1.35;font-variant-numeric:tabular-nums}
.rankinfo p,.rankinfo small{font-size:13px!important;line-height:1.7!important}
.rankinfo .share{font-size:12px!important}
.ranking .num{font-size:20px!important}
.panel table{font-size:13px;line-height:1.6}
@media(min-width:851px) and (max-width:1100px){
 .grid{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr)!important;gap:18px!important}
 .left{grid-column:1}.center{grid-column:2;grid-row:1/span 2}
 .right{grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .fecse-header-title h1{font-size:22px!important}.fecse-header-title p{font-size:12px!important}
}
@media(min-width:581px) and (max-width:850px){
 .grid{gap:18px!important}.panel{padding:18px!important}.stat{padding:14px!important}
 .stat h3{font-size:13px!important}.stat strong{font-size:clamp(25px,17cqi,30px)!important}
 .fecse-header-title h1{font-size:20px!important}.fecse-header-title p{font-size:12px!important}
 .fecse-header-left{gap:5px!important}.fecse-header-left img{max-width:32%!important;object-fit:contain}
 .fecse-header-set{height:auto!important;max-height:40px!important}
}
@media(max-width:580px){
 body>header.top{padding:12px!important}
 .fecse-header-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important}
 .fecse-header-left{grid-column:1;grid-row:1;gap:6px!important;justify-content:flex-start}
 .fecse-header-left .fecse-header-province{width:26px!important;height:26px!important}
 .fecse-header-left .fecse-header-sandbox{width:auto!important;height:33px!important;max-width:76px!important}
 .fecse-header-left .fecse-header-fti{width:54px!important;height:27px!important}
 .fecse-header-set{grid-column:2;grid-row:1;width:100%!important;max-width:165px!important;height:auto!important;max-height:34px!important;justify-self:end}
 .fecse-header-title{grid-column:1/-1;grid-row:2;text-align:center}
 .fecse-header-title h1{font-size:21px!important;margin:0!important}
 .fecse-header-title p{font-size:12px!important;line-height:1.65!important;margin:3px 0 0!important}
 .toolbar{gap:10px!important}.tabs a{font-size:13px!important;padding:10px 5px!important}
 .scope{padding:6px 9px!important;gap:8px}.scope button{padding:8px 12px!important}.refresh{padding:10px 12px!important}
 .filtermeta{font-size:12px!important;line-height:1.75;padding:10px 12px}
 .panel{padding:16px!important}.panel h2{font-size:18px!important}
 .stat{padding:14px!important;min-height:178px!important}.stat h3{font-size:14px!important}
 .stat strong{font-size:clamp(25px,17cqi,30px)!important}
 .map .maphead{font-size:12px!important}.rankinfo p,.rankinfo small{font-size:13px!important}
}

/* iPad preview: equal side columns keep the map on the screen centerline. */
@media (min-width:581px) and (max-width:1366px){
 html[data-fecse-device="tablet"] .grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr)!important;gap:14px!important;align-items:start}
 html[data-fecse-device="tablet"] .left{display:grid!important;grid-column:1!important;grid-row:1!important;min-width:0;gap:14px}
 html[data-fecse-device="tablet"] .center{display:grid!important;grid-column:2!important;grid-row:1!important;min-width:0;gap:14px;justify-self:stretch}
 html[data-fecse-device="tablet"] .right{display:grid!important;grid-column:3!important;grid-row:1!important;grid-template-columns:minmax(0,1fr)!important;min-width:0;gap:14px}
 html[data-fecse-device="tablet"] .right>section:first-child{grid-row:auto!important}
 html[data-fecse-device="tablet"] .panel{padding:14px!important}
 html[data-fecse-device="tablet"] .panel h2{font-size:17px!important;line-height:1.55!important;margin-bottom:13px}
 html[data-fecse-device="tablet"] .map{width:100%;min-height:0!important;margin:0;box-sizing:border-box}
 html[data-fecse-device="tablet"] .map svg{display:block;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:600/680;margin:0 auto}
 html[data-fecse-device="tablet"] .map .maphead{justify-content:center;text-align:center;padding:12px 10px 0;font-size:13px!important}
 html[data-fecse-device="tablet"] .map .attribution{position:relative!important;font-size:11px!important}
 html[data-fecse-device="tablet"] .center .panel{margin-top:0!important}
 html[data-fecse-device="tablet"] .rankinfo h3{font-size:17px!important}
 html[data-fecse-device="tablet"] .rankinfo .area{font-size:20px!important}
}
@media (min-width:581px) and (max-width:1100px){
 html[data-fecse-device="tablet"] .grid{gap:12px!important}
 html[data-fecse-device="tablet"] .panel{padding:12px!important;border-radius:16px!important}
 html[data-fecse-device="tablet"] .panel h2{font-size:16px!important}
 html[data-fecse-device="tablet"] .stats{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 html[data-fecse-device="tablet"] .stat{padding:12px!important;min-height:138px!important;row-gap:5px}
 html[data-fecse-device="tablet"] .stat h3{font-size:13px!important;min-height:30px}
 html[data-fecse-device="tablet"] .stat strong{font-size:clamp(26px,17cqi,30px)!important}
 html[data-fecse-device="tablet"] .ranking{flex-wrap:wrap;gap:8px;padding:12px 0}
 html[data-fecse-device="tablet"] .ranknum{width:24px;height:30px;font-size:18px}
 html[data-fecse-device="tablet"] .thumb{width:auto!important;flex:1;min-height:64px;height:64px}
 html[data-fecse-device="tablet"] .rankinfo{flex:1 0 100%;width:100%;min-width:0}
 html[data-fecse-device="tablet"] .rankinfo h3{font-size:16px!important}
 html[data-fecse-device="tablet"] .rankinfo .area{font-size:19px!important}
 html[data-fecse-device="tablet"] .rankinfo p,html[data-fecse-device="tablet"] .rankinfo small{font-size:12px!important;line-height:1.7!important}
 html[data-fecse-device="tablet"] .barrow{grid-template-columns:20px minmax(0,1fr)!important;gap:4px 6px}
 html[data-fecse-device="tablet"] .barrow .bar{grid-column:2!important;min-width:0}
 html[data-fecse-device="tablet"] .barrow .amount{grid-column:2!important;text-align:left}
 html[data-fecse-device="tablet"] .donutrow{flex-wrap:wrap;justify-content:center}
 html[data-fecse-device="tablet"] .donut{width:120px;height:120px}
 html[data-fecse-device="tablet"] .donutcenter{width:84px;height:84px}
 html[data-fecse-device="tablet"] .legend{min-width:0;width:100%}
}

/* Approved compact controls: provinces, year, home, then refresh on one desktop/tablet row. */
.shell .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:10px!important;align-items:center;margin:0 0 20px}
.toolbar .tabs{display:flex;min-width:0;gap:3px;padding:5px;overflow:visible}
.toolbar .tabs a{flex:1 1 auto;min-width:0!important;padding:10px 7px!important;font-size:clamp(11px,1.1vw,14px)!important}
.toolbar .scope{min-width:0;gap:6px;padding:6px 8px!important}
.toolbar .scope,.toolbar .scope button,.toolbar .refresh,.toolbar .fecse-monitor-home{font-size:clamp(11px,1.1vw,14px)!important;white-space:nowrap}
.toolbar .scope select{min-width:0;font-size:clamp(13px,1.3vw,16px)!important}
.toolbar .scope button{padding:8px!important}
.toolbar .refresh,.toolbar .fecse-monitor-home{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 12px;line-height:1.5;border-radius:12px}
@media(min-width:900px) and (max-width:1100px){.shell .toolbar{gap:7px!important}.toolbar .tabs a{padding:10px 4px!important}.toolbar .refresh,.toolbar .fecse-monitor-home{padding:10px 8px}}
@media(max-width:899px){
 .shell .toolbar{grid-template-columns:minmax(0,1fr) auto auto;gap:9px!important}
 .toolbar .tabs{grid-column:1/-1}
 .toolbar .tabs a{font-size:clamp(10px,1.8vw,13px)!important;padding:10px 4px!important}
 .toolbar .scope,.toolbar .scope button,.toolbar .refresh,.toolbar .fecse-monitor-home{font-size:12px!important}
 .toolbar .refresh,.toolbar .fecse-monitor-home{padding:10px}
}
@media(max-width:480px){
 .shell .toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px!important}
 .toolbar .scope{grid-column:1/-1;justify-content:center}
 .toolbar .refresh,.toolbar .fecse-monitor-home{width:100%}
 .toolbar .tabs{padding:4px;gap:2px}
 .toolbar .tabs a{padding:10px 2px!important;font-size:clamp(9px,2.55vw,12px)!important}
}
