/* LAMPID LIVE V12: public-facing visual refresh. No changes to data or publication rules. */
:root {
  color-scheme:light;
  --navy:#112b50;
  --ink:#15345a;
  --muted:#607a98;
  --sea:#079aa5;
  --teal:#009f99;
  --green:#0eac78;
  --mint:#def8f0;
  --line:#d9eaf2;
  --shadow:0 10px 28px rgba(15,66,103,.075);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;background:#eff8fd;color:var(--ink);font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:#007c9c;text-decoration:none}
a:hover{text-decoration:none;color:#005c88}
a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #efb12e;outline-offset:3px}
button,input,select{font:inherit}
button{cursor:pointer}
.live-wrap{width:min(100% - 44px,1330px);margin-inline:auto}
.live-icon-svg,svg[viewBox="0 0 24 24"]{display:inline-block;width:1.35em;height:1.35em;flex:none;vertical-align:middle}
/* A clear, airy official-information header replaces the old dark navbar. */
.live-header{background:linear-gradient(105deg,#f3faff 0%,#e8f6ff 56%,#d6f4f8 100%);border-bottom:1px solid rgba(181,217,230,.62);position:relative;z-index:2}
.live-header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:84px}
.live-brand{display:flex;gap:11px;align-items:center;color:var(--navy)}
.live-brand:hover{color:var(--navy)}
.live-brand img{width:49px;height:49px;flex:none;object-fit:contain;padding:4px;background:white;border:1px solid #e0eff3;border-radius:14px;box-shadow:0 7px 18px rgba(15,97,114,.11)}
.live-brand strong{display:block;font-size:22px;font-weight:850;line-height:1.15;letter-spacing:-.045em}
.live-brand small{display:block;font-size:11px;line-height:1.4;color:#617b9c}
.live-header-actions{display:flex;align-items:center;gap:13px}
.live-pill{display:inline-flex;align-items:center;gap:7px;border-radius:50px;padding:8px 12px;background:#e4f9f1;color:#067e5f;font-size:10px;font-weight:820;letter-spacing:.055em;white-space:nowrap;border:1px solid #c5eedf}
.live-dot{display:block;width:8px;height:8px;border-radius:100%;background:#0fb887;box-shadow:0 0 0 4px rgba(15,184,135,.13)}
.live-login{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:800;color:#1b6383;background:#fff;padding:9px 14px;border-radius:10px;border:1px solid #c8e3ed;box-shadow:0 3px 10px rgba(22,86,115,.045);white-space:nowrap}
.live-login svg{width:15px;height:15px}
.live-login:hover{color:#006a8a;background:#efffff;border-color:#9bcfd7}
/* Landscape hero is inline decorative SVG; no external images, scripts or fonts. */
.live-main{position:relative;padding-top:0;padding-bottom:35px}
.live-hero{position:relative;isolation:isolate;min-height:253px;padding:30px 25px 33px;background:linear-gradient(114deg,#e9f8ff 0%,#e6f8ff 40%,#b7eaf6 82%,#a9e5ea 100%);border-radius:0 0 29px 29px;overflow:hidden}
.live-hero::before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse at 2% 20%,rgba(255,255,255,.94),transparent 60%),radial-gradient(ellipse at 75% 12%,rgba(255,255,255,.7),transparent 50%);pointer-events:none}
.live-village-art{position:absolute;right:-15px;bottom:-6px;width:min(60%,730px);height:235px;z-index:-1;pointer-events:none;opacity:.9;-webkit-mask-image:linear-gradient(90deg,transparent,black 30%);mask-image:linear-gradient(90deg,transparent,black 30%)}
.live-village-art svg{height:100%;width:100%;display:block}
.live-headline{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 29px;z-index:1}
.live-hero-copy{max-width:min(73%,740px)}
.live-eyebrow,.live-subtitle{display:inline-block;font-size:11px;font-weight:900;color:#008b91;letter-spacing:.17em}
.live-headline h1{font-size:clamp(29px,3.8vw,48px);line-height:1.12;letter-spacing:-.055em;color:#0f2750;margin:7px 0 9px;font-weight:860}
.live-headline h1 span{color:#008f99}
.live-headline p{font-size:14px;line-height:1.5;color:#5a7495;margin:0}
.live-hero-sep{padding:0 3px}
.live-period{display:flex;align-items:center;gap:12px;min-width:209px;background:rgba(255,255,255,.94);border:1px solid rgba(216,233,240,.98);border-radius:16px;padding:15px 17px;box-shadow:0 12px 24px rgba(26,79,114,.09);backdrop-filter:blur(8px)}
.live-period-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:#0b8cbd;background:#e9f6fd;flex:none}
.live-period-icon svg{width:23px;height:23px}
.live-period span:not(.live-period-icon),.live-period small{display:block;color:#637fa1;font-size:10px;font-weight:750;line-height:1.5;white-space:nowrap}
.live-period strong{display:block;color:#102a51;font-size:17px;line-height:1.3;letter-spacing:-.025em;margin:3px 0}
.live-switch{position:relative;display:flex;align-items:center;gap:5px;width:min(100%,535px);background:rgba(255,255,255,.86);padding:6px;border-radius:16px;border:1px solid rgba(212,232,242,.88);box-shadow:0 10px 22px rgba(27,95,130,.075);z-index:1}
.live-switch a{display:flex;justify-content:center;align-items:center;gap:11px;flex:1;min-width:0;text-align:center;border-radius:12px;color:#456889;font-size:13px;font-weight:780;padding:11px 13px;white-space:nowrap}
.live-switch svg{width:18px;height:18px}
.live-switch a:hover{background:#f0fafc;color:#087d9a}
.live-switch a.active,.live-switch a.active:hover{background:linear-gradient(100deg,#02a9aa,#078eaa);color:#fff;box-shadow:0 7px 15px rgba(0,155,167,.24)}
.live-filter{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;position:relative;z-index:1;margin-top:14px;background:rgba(255,255,255,.91);padding:11px;border:1px solid #deecf4;border-radius:15px;max-width:750px}
.live-filter label{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#52758f;font-weight:760;min-width:0}
.live-filter select{min-width:170px;padding:10px 33px 10px 11px;border:1px solid #cadddf;color:#294763;border-radius:9px;background:#fff}
.live-filter button,.live-action{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(110deg,#0b9d99,#0883b4);color:white;border:0;border-radius:10px;font-weight:790;font-size:12px;padding:12px 19px;min-height:43px}
.live-filter button:hover,.live-action:hover{color:#fff;filter:brightness(.96)}
/* Main report surface frames the colored cards in one clear section. */
.live-report-shell{position:relative;margin-top:-20px;border:1px solid rgba(211,232,241,.9);background:linear-gradient(155deg,#f6fbff 0%,#edf8ff 42%,#f9fcff 100%);padding:26px 28px 31px;border-radius:23px;box-shadow:0 14px 35px rgba(31,83,116,.07);z-index:1}
.live-scope-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 13px;padding:0 3px}
.live-scope-row>div{padding-left:16px;position:relative}
.live-scope-row>div::before{content:"";position:absolute;left:0;top:6px;bottom:4px;width:5px;border-radius:4px;background:linear-gradient(#12bfa6,#078bc6)}
.live-scope-row h2{color:#0e2a4b;margin:1px 0 0;font-size:27px;letter-spacing:-.05em;line-height:1.25}
.live-scope-tag{display:inline-flex;align-items:center;gap:7px;background:#e4f8ee;color:#057d57;padding:9px 13px;border-radius:99px;font-weight:830;font-size:12px;white-space:nowrap}
.live-scope-tag svg{height:20px;width:20px}
.live-progress{display:flex;gap:20px;align-items:center;background:rgba(255,255,255,.96);border:1px solid #dcecf4;border-radius:19px;padding:19px 22px;margin-bottom:17px;box-shadow:var(--shadow)}
.live-progress-mark{width:72px;height:72px;border-radius:20px;background:linear-gradient(150deg,#e5faf4,#d6f0fc);color:#039787;display:grid;place-items:center;flex:none}
.live-progress-mark svg{width:37px;height:37px}
.live-progress-body{flex:1;min-width:0}
.live-progress-top{display:flex;justify-content:space-between;align-items:center;gap:15px;color:#153057;font-size:15px}
.live-progress-top strong:last-child{font-size:27px;line-height:1;color:#078f95;letter-spacing:-.04em}
.live-progress progress,.live-age-row progress{display:block;width:100%;appearance:none;-webkit-appearance:none;border:none;overflow:hidden;border-radius:50px;background:#e0e9f2}
.live-progress progress{height:12px;margin:10px 0 7px}
.live-progress progress::-webkit-progress-bar,.live-age-row progress::-webkit-progress-bar{background:#e0e9f2;border-radius:50px}
.live-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#00a8b9 0%,#21bd9c 64%,#5bd37e 100%);border-radius:50px}
.live-progress progress::-moz-progress-bar{background:linear-gradient(90deg,#00a8b9,#5bd37e);border-radius:50px}
.live-progress p{font-size:12px;color:#6881a0;margin:0;line-height:1.6}
.live-progress p strong{color:#254d65}
.live-notice{background:#fff6e7;border:1px solid #f7d6a0;border-radius:13px;color:#8e5920;padding:14px 18px;margin:11px 0 16px;font-size:13px}
.live-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.live-stat{--stat-color:#0c88ec;--stat-soft:#e6f4ff;--stat-wave:#90cdf8;position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(125deg,#fff 43%,var(--stat-soft) 170%);border:1px solid #dcecf5;border-radius:18px;padding:21px 21px 18px;min-width:0;min-height:160px;box-shadow:0 8px 18px rgba(27,83,119,.06)}
.live-stat::before{content:"";position:absolute;z-index:-1;width:175px;height:91px;right:-30px;bottom:-56px;background:var(--stat-wave);opacity:.24;border-radius:65% 55% 0 0;transform:rotate(-13deg)}
.live-stat::after{content:"";position:absolute;z-index:-1;width:148px;height:148px;right:-55px;top:-67px;border-radius:50%;background:var(--stat-soft);opacity:.55}
.live-stat-akhir{--stat-color:#069b6f;--stat-soft:#e1faef;--stat-wave:#66dfa5;background:linear-gradient(130deg,#fff 25%,#eafbf1 100%);border-color:#bceede}
.live-stat-lahir{--stat-color:#e78300;--stat-soft:#fff3db;--stat-wave:#ffcd7c}
.live-stat-mati{--stat-color:#df4655;--stat-soft:#ffeaf0;--stat-wave:#f9a2b1}
.live-stat-datang{--stat-color:#8954d6;--stat-soft:#f2eaff;--stat-wave:#b29af3}
.live-stat-pindah{--stat-color:#087ec5;--stat-soft:#e7f4ff;--stat-wave:#86c9ff}
.live-stat-top{display:flex;align-items:center;gap:12px;font-size:13px;line-height:1.3;font-weight:780;color:var(--stat-color);position:relative;z-index:1}
.live-stat-icon{height:48px;width:48px;display:grid;place-items:center;flex:none;border-radius:14px;background:var(--stat-soft);color:var(--stat-color)}
.live-stat-icon svg{width:24px;height:24px;stroke-width:2}
.live-stat strong{display:block;color:#102b51;line-height:1.15;margin:12px 0 6px;font-weight:860;font-size:clamp(25px,2.8vw,36px);letter-spacing:-.06em;font-variant-numeric:tabular-nums;position:relative;z-index:1}
.live-stat small{display:block;font-size:11px;color:#6480a0;line-height:1.6;position:relative;z-index:1}
.live-gender{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0 0}
.live-gender span{border:1px solid #dcecf5;border-radius:11px;background:rgba(255,255,255,.85);padding:9px 14px;font-size:12px;color:#56748e}
.live-gender strong{font-weight:800;color:#174161;margin-right:6px}
.live-section{margin-top:27px}
.live-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.live-section-heading h2{margin:0;color:var(--navy);font-size:21px;font-weight:840;letter-spacing:-.035em}
.live-section-heading span{font-size:12px;color:#6a839c}
.live-grid-secondary{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.live-stat-secondary{min-height:126px;padding:16px;background:#fff}
.live-stat-secondary .live-stat-top{font-size:11px;gap:10px}
.live-stat-secondary .live-stat-icon{width:36px;height:36px;border-radius:11px}
.live-stat-secondary .live-stat-icon svg{width:19px;height:19px}
.live-stat-secondary strong{font-size:27px;margin:11px 0 3px}
.live-stat-rumah{--stat-color:#078d9f;--stat-soft:#e4f9f7;--stat-wave:#b0e4e3}
.live-stat-usia{--stat-color:#5a83cf;--stat-soft:#eef2ff;--stat-wave:#b5c5f9}
.live-stat-memiliki_ktp{--stat-color:#008e71;--stat-soft:#e4f9ee;--stat-wave:#b2ecca}
.live-stat-belum_ktp{--stat-color:#a776cf;--stat-soft:#f6ebfb;--stat-wave:#d3b3f2}
.live-house-sub{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}
.live-house-sub span{background:rgba(255,255,255,.9);border:1px solid #dcecf4;color:#56738d;border-radius:11px;padding:9px 12px;font-size:12px}
.live-house-sub strong{color:var(--ink)}
.live-age-panel{background:#fff;border:1px solid #dcecf4;border-radius:18px;padding:22px 24px;box-shadow:var(--shadow)}
.live-age-row{display:grid;grid-template-columns:135px minmax(0,1fr) 65px;align-items:center;gap:15px;margin:12px 0;font-size:12px;color:#5e7d9b}
.live-age-row progress{height:9px}
.live-age-row progress::-webkit-progress-value{background:linear-gradient(90deg,#069eb1,#53bddd);border-radius:50px}
.live-age-row progress::-moz-progress-bar{background:#16abba;border-radius:50px}
.live-age-row strong{font-size:13px;color:#2c5370;text-align:right}
.live-age-foot{font-size:12px;color:#65809c;margin:12px 0 0}
.live-age-private{padding:3px 10px;border-radius:8px;background:#f3f7fa;font-size:11px;color:#668097}
.live-table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;background:#fff;border:1px solid #deedf3;border-radius:15px;box-shadow:0 6px 13px rgba(27,83,119,.03)}
.live-table{border-collapse:collapse;width:100%;min-width:520px;font-size:13px}
.live-table th,.live-table td{text-align:left;padding:12px 15px;white-space:nowrap;border-bottom:1px solid #ecf3f7}
.live-table th{font-size:11px;color:#4b7191;background:linear-gradient(90deg,#eaf7fc,#f3fafc);font-weight:850;letter-spacing:.025em}
.live-table tr:last-child td{border-bottom:0}
.live-table tbody tr:hover{background:#f6fcff}
.live-table a{font-weight:800;color:#078e9b}
.live-rw-summary-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.live-rw-summary-list details{min-width:0;background:rgba(255,255,255,.96);border:1px solid #dcecf4;border-radius:15px;overflow:hidden;box-shadow:0 5px 11px rgba(27,83,119,.025)}
.live-rw-summary-list summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:9px;padding:14px 17px;font-size:13px;font-weight:830;color:#234c69;list-style-position:inside}
.live-rw-summary-list summary:hover{background:#f3fafc}
.live-rw-summary-list summary small{color:#56819a;font-weight:600;text-align:right}
.live-rw-summary-list details[open] summary{border-bottom:1px solid #dcecf4}
.live-rw-summary-list .live-table-wrap{border:0;border-radius:0;box-shadow:none}
.live-rw-summary-list .live-table{min-width:450px}
.live-status{display:inline-block;white-space:nowrap;font-size:11px;font-weight:790;border-radius:8px;padding:5px 9px}
.live-status.disahkan{background:#dcf8e9;color:#047c51}
.live-status.menunggu{background:#fff2cf;color:#926115}
.live-status.belum_disahkan{background:#ffede5;color:#9b532d}
.live-status.belum_melapor{background:#ffedf0;color:#a04658}
.live-bottom-note{display:flex;align-items:center;gap:12px;padding:15px 17px;margin-top:28px;background:#e2f6f3;border:1px solid #ccebe6;border-radius:13px;color:#4f7584;font-size:12px;line-height:1.65}
.live-bottom-note>svg{width:24px;height:24px;flex:none;color:#04866d}
.live-bottom-note p{flex:1;margin:0}
.live-bottom-note a{display:inline-flex;align-items:center;gap:5px;font-weight:800;white-space:nowrap}
.live-bottom-note a svg{width:15px;height:15px}
.live-empty{max-width:560px;margin:65px auto;padding:43px 38px;text-align:center;border:1px solid #dbedf3;background:white;border-radius:23px;box-shadow:var(--shadow)}
.live-empty-mark{color:#00a09e;font-size:44px}
.live-empty h1{font-size:24px;color:var(--navy);line-height:1.3}
.live-empty p{font-size:14px;color:#6a8097;margin-bottom:20px}
.live-footer{background:#e6f3fa;border-top:1px solid #d3eaf1}
.live-footer .live-wrap{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:64px;color:#6a849e;font-size:12px}
@media(max-width:1120px){
 .live-wrap{width:calc(100% - 32px)}
 .live-hero{padding-inline:21px}
 .live-report-shell{padding:23px 22px}
 .live-stat{padding:17px 18px;min-height:151px}
 .live-stat-top{font-size:12px}
 .live-stat-icon{height:42px;width:42px}
 .live-stat-icon svg{width:21px;height:21px}
 .live-stat strong{font-size:30px}
 .live-grid{gap:11px}
 .live-grid-secondary{grid-template-columns:repeat(4,minmax(0,1fr))}
 .live-stat-secondary{min-height:132px;padding:12px}
 .live-stat-secondary .live-stat-top{font-size:10px}
 .live-stat-secondary strong{font-size:26px}
}
@media(max-width:890px){
 .live-hero-copy{max-width:74%}
 .live-headline h1{font-size:34px}
 .live-headline p{font-size:12px}
 .live-period{min-width:190px;padding:12px}
 .live-village-art{width:55%;opacity:.65}
 .live-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .live-grid-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .live-rw-summary-list{grid-template-columns:minmax(0,1fr)}
 .live-stat{min-height:148px}
 .live-section-heading{align-items:flex-start;flex-direction:column;gap:2px}
}
@media(max-width:650px){
 .live-wrap{width:calc(100% - 22px)}
 .live-header-inner{min-height:72px;gap:8px}
 .live-brand img{height:39px;width:39px;border-radius:10px}
 .live-brand strong{font-size:18px}
 .live-brand small{font-size:10px}
 .live-login{font-size:11px;padding:8px}
 .live-pill{display:none}
 .live-hero{padding:22px 15px 32px;min-height:265px;border-radius:0 0 20px 20px}
 .live-headline{flex-direction:column;gap:16px;margin-bottom:18px}
 .live-headline h1{font-size:clamp(26px,7vw,36px)}
 .live-headline p{font-size:12px}
 .live-hero-copy{max-width:100%}
 .live-period{min-width:0;width:max-content;max-width:100%;padding:10px 13px;gap:8px}
 .live-period-icon{width:33px;height:33px}
 .live-period-icon svg{height:18px;width:18px}
 .live-period strong{font-size:14px}
 .live-period span:not(.live-period-icon),.live-period small{font-size:9px}
 .live-village-art{opacity:.28;width:100%;height:190px}
 .live-switch{width:100%}
 .live-switch a{font-size:12px;gap:6px;padding:9px 3px}
 .live-switch svg{width:15px;height:15px}
 .live-filter{padding:10px;gap:8px}
 .live-filter label{flex:1;min-width:100px}
 .live-filter select{width:100%;min-width:0}
 .live-filter button{flex:1}
 .live-report-shell{margin-top:-15px;border-radius:17px;padding:19px 14px}
 .live-scope-row{align-items:flex-start;flex-direction:column;gap:12px}
 .live-scope-row h2{font-size:23px}
 .live-progress{padding:15px;gap:11px;border-radius:15px}
 .live-progress-mark{width:47px;height:47px;border-radius:13px}
 .live-progress-mark svg{width:27px;height:27px}
 .live-progress-top{font-size:12px}
 .live-progress-top strong:last-child{font-size:23px}
 .live-progress p{font-size:11px}
 .live-stat{padding:15px;min-height:144px;border-radius:15px}
 .live-stat-icon{height:36px;width:36px;border-radius:11px}
 .live-stat-icon svg{height:19px;width:19px}
 .live-stat strong{font-size:29px}
 .live-stat-top{font-size:11px;gap:8px}
 .live-stat small{font-size:10px}
 .live-section{margin-top:23px}
 .live-section-heading h2{font-size:19px}
 .live-age-panel{padding:17px}
 .live-age-row{grid-template-columns:108px minmax(0,1fr) 55px;gap:8px}
 .live-bottom-note{align-items:flex-start;flex-wrap:wrap}
 .live-bottom-note a{margin-left:36px}
}
@media(max-width:410px){
 .live-brand strong{font-size:16px}
 .live-brand small{font-size:9px}
 .live-header-actions{gap:5px}
 .live-login{font-size:10px;padding:7px}
 .live-login svg{display:none}
 .live-grid{gap:9px}
 .live-stat{padding:12px;min-height:135px}
 .live-stat-top{font-size:10px;line-height:1.25}
 .live-stat-icon{width:31px;height:31px}
 .live-stat-icon svg{width:17px;height:17px}
 .live-stat strong{font-size:25px}
 .live-stat-secondary{min-height:127px}
 .live-age-row{grid-template-columns:90px minmax(0,1fr) 40px;gap:7px;font-size:11px}
 .live-footer .live-wrap{padding:14px 0;flex-direction:column;align-items:flex-start;gap:3px}
}
@media(max-width:335px){.live-grid{grid-template-columns:1fr}.live-hero{padding-inline:10px}.live-switch a{font-size:10px}}
@media(prefers-reduced-motion:no-preference){.live-stat,.live-switch a,.live-login,.live-filter button{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease}.live-stat:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(28,86,127,.10)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* V13: one viewport per desktop menu (Desa / RW / RT).
   Only the detail area scrolls on laptops; phones keep natural page scroll. */
.live-detail-area{margin-top:16px;background:rgba(255,255,255,.91);border:1px solid #d9e9f2;border-radius:16px;box-shadow:0 5px 16px rgba(26,84,117,.04);min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.live-detail-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 15px;padding:10px 13px;border-bottom:1px solid #e2edf5;flex:none}
.live-detail-bar h2{font-size:16px;letter-spacing:-.025em;line-height:1.3;margin:0;color:#164368}
.live-detail-tabs{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.live-detail-tab{border:1px solid #dceaf3;background:#f4fafd;border-radius:9px;padding:6px 11px;color:#48728f;font-weight:780;font-size:11px;line-height:1.3;min-height:31px}
.live-detail-tab:hover{background:#e8f8f7;border-color:#8dcfcf;color:#087986}
.live-detail-tab.is-active{background:linear-gradient(105deg,#079f9e,#0a85ad);color:#fff;border-color:transparent;box-shadow:0 3px 9px rgba(5,141,156,.15)}
.live-detail-viewport{flex:1;min-height:0;overflow:hidden}
.live-detail-pane{min-width:0;padding:12px 14px;max-height:460px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain}
.live-detail-pane[hidden]{display:none!important}
.live-detail-pane .live-section-heading{margin-bottom:8px}
.live-detail-pane .live-section-heading h2{font-size:15px}
.live-detail-pane .live-section-heading span{font-size:11px}
.live-detail-pane .live-table-wrap{border-radius:9px;box-shadow:none}
.live-detail-pane .live-table{font-size:12px}
.live-detail-pane .live-table th,.live-detail-pane .live-table td{padding:8px 11px}
.live-detail-pane .live-rw-summary-list{gap:8px}
.live-detail-pane .live-rw-summary-list summary{padding:9px 11px;font-size:12px}
.live-detail-pane .live-age-panel{padding:4px 5px 8px;box-shadow:none;border:0;background:transparent}
.live-detail-pane .live-age-row{margin:8px 0}
.live-detail-pane .live-gender{margin:10px 0}
.live-detail-pane .live-notice{padding:10px 12px;font-size:12px;margin:8px 0}
.live-detail-pane .live-house-sub{margin-top:3px}
.live-detail-disclaimer{font-size:12px;color:#587b91;line-height:1.55;margin:10px 0}
.live-detail-empty{padding:17px;background:#f3f9fc;border:1px dashed #d9e9f1;border-radius:10px;color:#637e95;font-size:12px}
.live-rt-status-card{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:5px 2px}
.live-rt-status-card strong{font-size:14px}
.live-rt-status-card p{font-size:12px;flex-basis:100%;margin:1px 0 0;color:#637e95}

@media(min-width:900px) and (min-height:570px){
 html{height:100%;overflow:hidden;scroll-behavior:auto}
 body{height:100vh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column;font-size:12px;line-height:1.35}
 .live-header{flex:none}
 .live-header-inner{min-height:51px}
 .live-brand{gap:7px}
 .live-brand img{width:35px;height:35px;border-radius:9px;padding:2px}
 .live-brand strong{font-size:17px}
 .live-brand small{font-size:9px}
 .live-pill{font-size:9px;padding:6px 10px}
 .live-login{font-size:10px;padding:6px 10px}
 .live-main{flex:1;min-height:0;padding-top:0;padding-bottom:5px;display:flex;flex-direction:column}
 .live-hero{flex:none;min-height:0;padding:9px 16px 10px;border-radius:0 0 16px 16px}
 .live-village-art{height:114px;width:49%;opacity:.63;bottom:0}
 .live-headline{align-items:center;gap:12px;margin:0 0 7px}
 .live-hero-copy{max-width:calc(100% - 174px)}
 .live-headline h1{font-size:clamp(21px,2.2vw,28px);margin:2px 0 2px;line-height:1.12}
 .live-headline p{font-size:10px;line-height:1.3}
 .live-eyebrow{font-size:8px;letter-spacing:.13em}
 .live-period{min-width:165px;gap:7px;padding:6px 9px;border-radius:10px}
 .live-period-icon{width:28px;height:28px;border-radius:8px}
 .live-period-icon svg{width:16px;height:16px}
 .live-period span:not(.live-period-icon),.live-period small{font-size:8px}
 .live-period strong{font-size:12px;margin:1px 0}
 .live-switch{width:min(100%,440px);border-radius:10px;padding:2px;gap:3px}
 .live-switch a{font-size:11px;padding:5px 9px;gap:6px;border-radius:8px}
 .live-switch svg{width:14px;height:14px}
 .live-filter{margin-top:5px;padding:4px 7px;gap:6px;max-width:620px;border-radius:9px}
 .live-filter label{font-size:9px;gap:2px}
 .live-filter select{min-width:125px;font-size:10px;padding:4px 21px 4px 8px;border-radius:6px}
 .live-filter button{min-height:28px;font-size:10px;padding:5px 12px;border-radius:6px}
 .live-report-shell{flex:1;min-height:0;margin-top:4px;padding:9px 11px 7px;border-radius:14px;display:flex;flex-direction:column;overflow:hidden}
 .live-scope-row{flex:none;margin:0 0 5px;gap:8px}
 .live-scope-row>div{padding-left:9px}
 .live-scope-row>div::before{width:3px;top:3px;bottom:2px}
 .live-subtitle{font-size:8px;letter-spacing:.1em}
 .live-scope-row h2{font-size:17px;line-height:1.2;margin:0}
 .live-scope-tag{font-size:10px;padding:5px 9px;gap:4px}
 .live-scope-tag svg{width:14px;height:14px}
 .live-progress{flex:none;gap:9px;padding:5px 9px;margin-bottom:6px;border-radius:10px}
 .live-progress-mark{width:28px;height:28px;border-radius:8px}
 .live-progress-mark svg{width:18px;height:18px}
 .live-progress-top{font-size:11px;gap:5px}
 .live-progress-top strong:last-child{font-size:17px}
 .live-progress progress{height:5px;margin:3px 0}
 .live-progress p{font-size:9px;line-height:1.3}
 .live-notice{flex:none;padding:6px 10px;margin:0 0 5px;font-size:10px}
 .live-grid:not(.live-grid-secondary){grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;flex:none}
 .live-stat{min-height:83px;padding:8px 9px;border-radius:11px;box-shadow:0 4px 10px rgba(27,83,119,.045)}
 .live-stat-top{font-size:10px;gap:5px;line-height:1.25}
 .live-stat-icon{width:27px;height:27px;border-radius:8px}
 .live-stat-icon svg{width:16px;height:16px}
 .live-stat strong{font-size:23px;letter-spacing:-.045em;margin:4px 0 1px;line-height:1}
 .live-stat small{font-size:9px;line-height:1.2}
 .live-secondary-section{flex:none;margin-top:6px}
 .live-secondary-section .live-section-heading{margin-bottom:4px;flex-direction:row;align-items:center}
 .live-secondary-section .live-section-heading h2{font-size:12px}
 .live-secondary-section .live-section-heading span{font-size:9px}
 .live-grid-secondary{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 .live-grid-secondary .live-stat{min-height:62px;padding:5px 8px}
 .live-grid-secondary .live-stat-top{font-size:9px;gap:6px}
 .live-grid-secondary .live-stat-icon{width:22px;height:22px}
 .live-grid-secondary .live-stat-icon svg{width:13px;height:13px}
 .live-grid-secondary .live-stat strong{font-size:19px;margin:2px 0 0}
 .live-grid-secondary .live-stat small{font-size:8px}
 .live-detail-area{flex:1;min-height:65px;margin-top:6px;border-radius:10px}
 .live-detail-bar{padding:5px 8px;gap:5px}
 .live-detail-bar h2{font-size:12px}
 .live-detail-tabs{gap:3px}
 .live-detail-tab{min-height:23px;font-size:9px;padding:4px 8px;border-radius:6px}
 .live-detail-pane{height:100%;max-height:none;padding:5px 8px}
 .live-detail-pane .live-table{font-size:10px}
 .live-detail-pane .live-table th,.live-detail-pane .live-table td{padding:5px 8px}
 .live-detail-pane .live-rw-summary-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .live-detail-pane .live-rw-summary-list summary{padding:7px 8px;font-size:10px}
 .live-detail-pane .live-rw-summary-list summary small{font-size:9px}
 .live-detail-pane .live-age-panel{padding:0 3px}
 .live-detail-pane .live-age-row{margin:6px 0;font-size:10px}
 .live-detail-pane .live-section-heading h2{font-size:12px}
 .live-bottom-note{flex:none;margin-top:5px;padding:4px 7px;gap:5px;border-radius:7px;font-size:9px;line-height:1.2}
 .live-bottom-note>svg{width:13px;height:13px}
 .live-bottom-note a{font-size:9px;gap:3px}
 .live-bottom-note a svg{width:11px;height:11px}
 .live-footer{display:none}
}
@media(min-width:900px) and (max-width:1120px) and (min-height:570px){
 .live-wrap{width:calc(100% - 22px)}
 .live-hero{padding:7px 11px}
 .live-village-art{height:108px}
 .live-grid:not(.live-grid-secondary){grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .live-grid:not(.live-grid-secondary) .live-stat{min-height:51px;padding:5px 8px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 6px}
 .live-grid:not(.live-grid-secondary) .live-stat-top{grid-column:1;gap:5px}
 .live-grid:not(.live-grid-secondary) .live-stat strong{grid-column:2;grid-row:1;font-size:21px;margin:0}
 .live-grid:not(.live-grid-secondary) .live-stat small{grid-column:1/-1;font-size:8px}
 .live-report-shell{padding:7px}
 .live-detail-pane .live-rw-summary-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* For very short browser windows and mobile, allow natural page scroll rather than clipping text. */
@media(max-width:899px), (max-height:569px){
 .live-detail-pane{max-height:400px}
 .live-detail-bar{align-items:flex-start}
 .live-detail-bar h2{font-size:14px}
 .live-detail-tabs{gap:4px}
 .live-detail-tab{font-size:11px;padding:6px 9px}
}
@media(max-width:650px){
 .live-detail-area{margin-top:13px}
 .live-detail-tabs{width:100%}
 .live-detail-tab{flex:1}
 .live-detail-pane{max-height:340px;padding:10px}
 .live-detail-pane .live-rw-summary-list{grid-template-columns:1fr}
}
/* Place region filters beside the menu instead of consuming an extra dashboard row. */
@media(min-width:900px) and (min-height:570px){
 .live-hero{display:grid;grid-template-columns:minmax(270px,440px) minmax(0,1fr);column-gap:8px;row-gap:5px;align-items:center}
 .live-headline{grid-column:1/-1;grid-row:1}
 .live-switch{grid-column:1;grid-row:2;width:100%;max-width:100%;align-self:center}
 .live-filter{grid-column:2;grid-row:2;width:100%;max-width:100%;margin:0;display:flex;flex-wrap:nowrap;align-items:center}
 .live-filter label{flex:1;min-width:0}
 .live-filter select{width:100%;min-width:0;max-width:100%}
 .live-filter button{flex:none;white-space:nowrap}
}
@media(min-width:900px) and (max-width:1000px) and (min-height:570px){
 .live-hero{grid-template-columns:minmax(270px,380px) minmax(0,1fr)}
 .live-switch a{padding-inline:3px;gap:4px}
 .live-filter{gap:4px}
 .live-filter button{padding-inline:7px}
}
@media(min-width:1150px) and (min-height:700px){
 .live-stat-top{font-size:11px}
 .live-stat small{font-size:10px}
 .live-grid-secondary .live-stat-top{font-size:10px}
 .live-grid-secondary .live-stat small{font-size:9px}
 .live-detail-tab{font-size:10px}
 .live-detail-pane .live-table{font-size:11px}
 .live-detail-pane .live-table th,.live-detail-pane .live-table td{font-size:11px}
 .live-bottom-note{font-size:10px}
}

/* LAMPID LIVE V14 - the entire RW's RT list visible in the available laptop viewport.
   Avoid the narrow, vertically-scrolling table introduced by V13. */
.live-rt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.live-rt-grid-many{grid-template-columns:repeat(4,minmax(0,1fr))}
.live-rt-card{display:flex;align-items:center;gap:6px;min-width:0;min-height:34px;padding:5px 8px;
  border:1px solid #d5e7f2;background:linear-gradient(115deg,#fff,#f1faff);border-radius:9px;
  color:#204668;box-shadow:0 2px 6px rgba(25,91,119,.035);text-decoration:none}
.live-rt-card:hover,.live-rt-card:focus-visible{color:#075f83;border-color:#7bcbd1;background:#eafbfa;box-shadow:0 4px 9px rgba(25,91,119,.12)}
.live-rt-code{flex:none;font-size:11px;white-space:nowrap}
.live-rt-card .live-status{flex:0 1 auto;min-width:0;padding:3px 5px;font-size:10px;line-height:1.2;text-align:center;white-space:normal}
.live-rt-people{flex:1;min-width:20px;text-align:right;font-weight:850;color:#173d61;font-variant-numeric:tabular-nums;font-size:12px}
.live-rt-arrow{flex:none;color:#008e9a;font-size:15px;line-height:1}
@media(min-width:900px) and (min-height:570px){
 /* Let the RT cards use the vertical space previously spent on four tall secondary cards. */
 .live-screen-rw .live-secondary-section{margin-top:4px}
 .live-screen-rw .live-secondary-section .live-section-heading{display:none}
 .live-screen-rw .live-grid-secondary .live-stat{min-height:35px;padding:4px 7px;display:flex;align-items:center;gap:5px}
 .live-screen-rw .live-grid-secondary .live-stat-top{font-size:10px;gap:5px;min-width:0}
 .live-screen-rw .live-grid-secondary .live-stat-icon{width:21px;height:21px}
 .live-screen-rw .live-grid-secondary .live-stat strong{font-size:16px;margin:0 0 0 auto;white-space:nowrap}
 .live-screen-rw .live-grid-secondary .live-stat small{display:none}
 .live-screen-rw .live-detail-area{margin-top:5px}
 .live-screen-rw .live-detail-pane{padding:5px 7px}
 .live-screen-rw .live-progress{margin-bottom:4px}
 .live-screen-rw .live-bottom-note{margin-top:4px}
 .live-screen-rw .live-rt-grid{gap:5px}
 .live-screen-rw .live-rt-card{min-height:31px;padding:4px 6px}
 .live-screen-rw .live-rt-card .live-status{padding:2px 5px}
}
@media(min-width:900px) and (max-width:1120px) and (min-height:570px){
 /* Six compact headline cards free another row for the RT list on smaller laptops. */
 .live-screen-rw .live-grid:not(.live-grid-secondary){grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
 .live-screen-rw .live-grid:not(.live-grid-secondary) .live-stat{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;min-height:68px;padding:5px}
 .live-screen-rw .live-grid:not(.live-grid-secondary) .live-stat-top{display:flex;align-items:center;gap:3px;font-size:9px;min-width:0;grid-column:auto;line-height:1.15}
 .live-screen-rw .live-grid:not(.live-grid-secondary) .live-stat-icon{width:20px;height:20px;flex:none}
 .live-screen-rw .live-grid:not(.live-grid-secondary) .live-stat-icon svg{width:13px;height:13px}
 .live-screen-rw .live-grid:not(.live-grid-secondary) .live-stat strong{font-size:19px;line-height:1;grid-column:auto;grid-row:auto;margin:1px 0 0}
 .live-screen-rw .live-grid:not(.live-grid-secondary) .live-stat small{font-size:8px;line-height:1.1;grid-column:auto}
}
@media(min-width:900px) and (max-width:1040px){
 .live-rt-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .live-rt-grid-many{grid-template-columns:repeat(4,minmax(0,1fr))}
 .live-rt-card{gap:4px}
 .live-rt-code{font-size:10px}
 .live-rt-card .live-status{font-size:9px}
 .live-rt-people{font-size:11px}
}
@media(max-width:899px){
 .live-rt-grid,.live-rt-grid-many{grid-template-columns:repeat(2,minmax(0,1fr))}
 .live-rt-card{min-height:41px}
}
@media(max-width:540px){
 .live-rt-grid,.live-rt-grid-many{grid-template-columns:1fr}
 .live-rt-card{min-height:42px}
}
/* On very short laptop windows, keep the RT list in full view.
   Extra Rumah/Usia/KTP breakdown remains available in its detail tabs. */
@media(min-width:900px) and (min-height:570px) and (max-height:620px){
 .live-screen-rw .live-secondary-section{display:none}
}
@media(min-width:900px) and (min-height:570px) and (max-height:600px){
 .live-screen-rw .live-rt-grid-many{gap:3px}
 .live-screen-rw .live-rt-grid-many .live-rt-card{min-height:25px;padding:2px 5px;gap:3px}
 .live-screen-rw .live-rt-grid-many .live-rt-card .live-status{font-size:9px;padding:1px 3px}
}
/* Phones/tablets: a normal page scroll is preferable to a second, hidden list scroll. */
@media(max-width:899px){
 .live-screen-rw .live-detail-area,.live-screen-rw .live-detail-viewport{overflow:visible}
 .live-screen-rw .live-detail-viewport{flex:none}
 .live-screen-rw .live-detail-pane{max-height:none;overflow:visible}
}

/* Jumlah KK pada kartu RT LIVE */
.live-rt-kk{flex:none;color:#078d9f;font-size:10px;font-weight:800;white-space:nowrap;padding:3px 6px;border-radius:6px;background:#e8f8f6}
