:root{--cms-navy:#0b1f3a;--cms-navy-2:#12345b;--cms-blue:#2f6faa;--cms-green:#159668;--cms-red:#d84a55;--cms-gold:#e4a83b;--cms-ink:#172033;--cms-muted:#68758a;--cms-line:#dbe4ee;--cms-surface:#fff;--cms-bg:#edf2f7}
body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}

/* Login */
body.auth-page{min-height:100vh;background:linear-gradient(125deg,rgba(6,24,45,.96),rgba(10,42,73,.9)),url("../../bg.jpg") center/cover fixed;color:var(--cms-ink)}
body.auth-page .auth-shell{min-height:100vh;display:grid;place-items:center;padding:clamp(18px,4vw,48px)}
.cms-login-card{width:min(1080px,100%);min-height:640px;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:24px;background:#fff;box-shadow:0 32px 90px rgba(0,10,25,.38)}
.cms-login-brand{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;padding:48px;color:#fff;background:linear-gradient(150deg,#0c2848 0%,#123c65 58%,#08724f 130%)}
.cms-login-brand:before,.cms-login-brand:after{content:"";position:absolute;z-index:-1;border-radius:50%;border:1px solid rgba(255,255,255,.12)}
.cms-login-brand:before{width:430px;height:430px;right:-180px;top:-160px;box-shadow:0 0 0 75px rgba(255,255,255,.025),0 0 0 150px rgba(255,255,255,.018)}
.cms-login-brand:after{width:270px;height:270px;left:-155px;bottom:-135px;background:rgba(20,177,119,.12)}
.cms-login-logo{display:inline-flex;width:max-content;padding:13px 16px;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 15px 35px rgba(0,0,0,.16)}
.cms-login-logo img{display:block;width:min(285px,72vw);height:auto}
.cms-login-brand-copy{max-width:530px;margin:50px 0}
.cms-login-eyebrow,.cms-login-heading>span,.cms-eyebrow,.cms-section-head>div>span{display:block;color:#6edbb4;font-size:11px;font-weight:900;letter-spacing:.18em;text-transform:uppercase}
.cms-login-brand h1{max-width:520px;margin:14px 0 18px;font-size:clamp(34px,4.3vw,54px);line-height:1.06;letter-spacing:-.035em}
.cms-login-brand-copy p{max-width:500px;margin:0;color:#c9d8e8;font-size:16px;line-height:1.7}
.cms-login-security{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cms-login-security span{padding:14px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:rgba(255,255,255,.06);backdrop-filter:blur(8px)}
.cms-login-security b,.cms-login-security small{display:block}.cms-login-security b{font-size:12px}.cms-login-security small{margin-top:4px;color:#aebfd1;font-size:10px}
.cms-login-panel{display:flex;flex-direction:column;justify-content:center;padding:clamp(34px,5vw,68px)}
.cms-login-heading>span{color:var(--cms-green)}
.cms-login-heading h2{margin:10px 0 8px;color:var(--cms-navy);font-size:32px;letter-spacing:-.025em}
.cms-login-heading p{margin:0 0 30px;color:var(--cms-muted);line-height:1.5}
.cms-login-form{display:grid;gap:19px}.cms-login-form label{display:grid;gap:8px;color:#25344a;font-size:13px;font-weight:800}
.cms-login-form input{height:52px;border:1px solid #cbd7e3;border-radius:10px;padding:0 14px;background:#f9fbfd;color:var(--cms-ink);transition:border-color .18s,box-shadow .18s,background .18s}
.cms-login-form input::placeholder{color:#9aa8b8}.cms-login-form input:focus{outline:0;border-color:#4386bd;background:#fff;box-shadow:0 0 0 4px rgba(47,111,170,.13)}
.cms-password-wrap{position:relative;display:block}.cms-password-wrap input{padding-right:72px}.cms-password-wrap button{position:absolute;right:7px;top:7px;height:38px;border:0;border-radius:7px;padding:0 11px;background:#eaf1f7;color:#25466a;font-size:11px;font-weight:900;cursor:pointer}
.cms-login-submit{height:52px;display:flex;align-items:center;justify-content:space-between;margin-top:4px;border:0;border-radius:10px;padding:0 18px;background:linear-gradient(110deg,#123d69,#17614f);box-shadow:0 13px 28px rgba(15,66,79,.22);color:#fff;font-weight:900;cursor:pointer;transition:transform .18s,box-shadow .18s}.cms-login-submit:hover{transform:translateY(-2px);box-shadow:0 17px 34px rgba(15,66,79,.28)}.cms-login-submit span{font-size:20px}
.cms-login-help{margin:22px 0 0;color:#78869a;font-size:11px;line-height:1.5}.cms-login-panel>footer{margin-top:36px;padding-top:17px;border-top:1px solid #edf1f5;color:#9aa6b5;font-size:10px}
body.auth-page .alert{margin:0 0 18px;border:1px solid #f2b9bf;border-radius:10px;background:#fff0f1;color:#9f2430;font-size:12px;text-align:left}
body.auth-page .auth-card{border:0;border-radius:18px;box-shadow:0 28px 75px rgba(0,10,25,.32)}

/* Dashboard */
.cms-home{position:relative;isolation:isolate;min-height:100vh;overflow:hidden;padding:24px clamp(18px,4.8vw,72px) 28px;background:var(--cms-bg);color:var(--cms-ink)}
.cms-home-backdrop{position:fixed;inset:0;z-index:-2;background:linear-gradient(115deg,rgba(236,243,249,.98),rgba(242,246,249,.9)),url("../../bg.jpg") center/cover no-repeat}
.cms-home-backdrop:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 92% 0,rgba(47,111,170,.13),transparent 31%),radial-gradient(circle at 0 90%,rgba(21,150,104,.1),transparent 27%)}
.cms-topbar{position:relative;z-index:20;max-width:1500px;height:82px;display:flex;align-items:center;justify-content:space-between;gap:28px;margin:0 auto;padding:13px 16px 13px 20px;border:1px solid rgba(184,201,217,.78);border-radius:18px;background:rgba(255,255,255,.88);box-shadow:0 12px 38px rgba(30,54,80,.09);backdrop-filter:blur(16px)}
.cms-brand{display:flex;align-items:center;gap:15px;min-width:0}.cms-brand img{width:210px;max-height:54px;object-fit:contain}.cms-brand>span{padding-left:15px;border-left:1px solid var(--cms-line)}.cms-brand b,.cms-brand small{display:block}.cms-brand b{color:var(--cms-navy);font-size:13px;letter-spacing:.11em}.cms-brand small{margin-top:4px;color:var(--cms-muted);font-size:10px}
.cms-account{display:flex;align-items:center;gap:9px}.cms-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,var(--cms-navy-2),var(--cms-green));color:#fff;font-weight:900}.cms-account-copy{min-width:120px;margin-right:6px}.cms-account-copy b,.cms-account-copy small{display:block}.cms-account-copy b{max-width:180px;overflow:hidden;color:#213148;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.cms-account-copy small{margin-top:4px;color:var(--cms-muted);font-size:9px}
.cms-action{height:39px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:9px;padding:0 13px;font-size:11px;font-weight:900;cursor:pointer}.cms-action.secondary{border-color:#d7e1ea;background:#f7f9fb;color:#31445c}.cms-action.danger{background:#fff0f1;color:#a62d38}.cms-account-menu{position:relative}.cms-account-menu summary{list-style:none}.cms-account-menu summary::-webkit-details-marker{display:none}.cms-account-menu>div{position:absolute;right:0;top:47px;min-width:190px;display:grid;overflow:hidden;border:1px solid var(--cms-line);border-radius:11px;background:#fff;box-shadow:0 18px 45px rgba(18,39,63,.16)}.cms-account-menu>div a{padding:12px 14px;color:#31445c;font-size:11px;font-weight:800}.cms-account-menu>div a:hover{background:#edf4fa}
.cms-hero{max-width:1500px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:40px;margin:clamp(44px,6vw,84px) auto 42px}.cms-eyebrow{color:var(--cms-green)}.cms-hero h1{max-width:880px;margin:12px 0 12px;color:var(--cms-navy);font-size:clamp(34px,4.3vw,62px);line-height:1.04;letter-spacing:-.045em}.cms-hero>div>p{max-width:760px;margin:0;color:#5d6d80;font-size:15px;line-height:1.7}
.cms-trust{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid #ccd9e5;border-radius:14px;background:rgba(255,255,255,.7)}.cms-trust span{min-width:145px;padding:14px 16px}.cms-trust span+span{border-left:1px solid #d7e1ea}.cms-trust b,.cms-trust small{display:block}.cms-trust b{color:var(--cms-navy);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.cms-trust small{margin-top:5px;color:var(--cms-muted);font-size:10px}
.cms-module-section{max-width:1500px;margin:0 auto}.cms-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:17px}.cms-section-head>div>span{color:var(--cms-blue)}.cms-section-head h2{margin:7px 0 0;color:var(--cms-navy);font-size:25px;letter-spacing:-.02em}.cms-section-head>p{margin:0;color:var(--cms-muted);font-size:11px}
.cms-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cms-module-card{--card-accent:var(--cms-blue);position:relative;min-height:210px;display:flex;flex-direction:column;overflow:hidden;padding:21px;border:1px solid #d5e0e9;border-radius:16px;background:rgba(255,255,255,.92);box-shadow:0 8px 28px rgba(32,56,82,.07);transition:transform .2s,border-color .2s,box-shadow .2s}.cms-module-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--card-accent)}.cms-module-card.is-enabled:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--card-accent) 48%,#d5e0e9);box-shadow:0 18px 40px rgba(25,52,80,.13)}
.cms-module-card[data-module="desa_digital"],.cms-module-card[data-module="incoming_letters"]{--card-accent:#b43d4e}.cms-module-card[data-module="sensus_umk"],.cms-module-card[data-module="rt_rw"]{--card-accent:#d29a2f}.cms-module-card[data-module="lapor"]{--card-accent:#b02f86}.cms-module-card[data-module="asset_management"],.cms-module-card[data-module="file_manager"]{--card-accent:#16815f}.cms-module-card[data-module="outgoing_letters"]{--card-accent:#315f99}.cms-module-card[data-module="cms_settings"]{--card-accent:#58647a}
.cms-module-top{display:flex;align-items:flex-start;justify-content:space-between}.cms-module-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;background:color-mix(in srgb,var(--card-accent) 11%,#fff);color:var(--card-accent)}.cms-module-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.cms-module-badge{padding:5px 8px;border-radius:20px;background:#edf7f3;color:#14724f;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.cms-module-copy{display:block;margin:17px 0 15px}.cms-module-copy strong,.cms-module-copy small{display:block}.cms-module-copy strong{color:#182a41;font-size:18px;line-height:1.25}.cms-module-copy small{margin-top:7px;color:#6c7a8d;font-size:11px;line-height:1.55}.cms-module-open{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:14px;border-top:1px solid #edf1f5;color:var(--card-accent);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.cms-module-open b{font-size:18px;transition:transform .2s}.cms-module-card:hover .cms-module-open b{transform:translateX(4px)}.cms-module-card.is-disabled{filter:grayscale(.5);opacity:.62}.cms-module-card.is-disabled .cms-module-badge{background:#f0f2f4;color:#7a8490}.cms-module-card.is-disabled .cms-module-open{color:#7a8490}
.cms-footer{max-width:1500px;display:flex;justify-content:space-between;gap:20px;margin:34px auto 0;padding-top:20px;border-top:1px solid #d2dde7;color:#7a8798;font-size:9px;letter-spacing:.03em}

@media(max-width:1100px){.cms-login-card{grid-template-columns:1fr 430px}.cms-login-brand{padding:38px}.cms-brand>span{display:none}.cms-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-hero{grid-template-columns:1fr}.cms-trust{width:max-content}.cms-account-copy{display:none}}
@media(max-width:760px){body.auth-page .auth-shell{padding:0}.cms-login-card{min-height:100vh;grid-template-columns:1fr;border:0;border-radius:0}.cms-login-brand{min-height:285px;padding:26px}.cms-login-brand-copy{margin:32px 0 10px}.cms-login-brand h1{font-size:32px}.cms-login-brand-copy p{font-size:13px}.cms-login-security{display:none}.cms-login-logo img{width:220px}.cms-login-panel{padding:34px 24px}.cms-login-heading h2{font-size:27px}.cms-login-panel>footer{margin-top:28px}.cms-home{padding:12px 14px 24px}.cms-topbar{height:auto;align-items:flex-start;border-radius:14px;padding:12px}.cms-brand img{width:175px}.cms-account{flex-wrap:wrap;justify-content:flex-end}.cms-avatar{width:36px;height:36px}.cms-action{height:35px;padding:0 10px}.cms-hero{margin:42px 4px 32px}.cms-hero h1{font-size:38px}.cms-trust{width:100%}.cms-trust span{min-width:0}.cms-module-grid{grid-template-columns:1fr}.cms-section-head{align-items:flex-start;flex-direction:column}.cms-section-head>p{display:none}.cms-module-card{min-height:195px}.cms-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:460px){.cms-topbar{display:grid;grid-template-columns:1fr}.cms-account{justify-content:flex-start;padding-top:10px;border-top:1px solid #e4eaf0}.cms-avatar{display:none}.cms-brand img{width:200px}.cms-login-brand{min-height:245px}.cms-login-brand-copy p{display:none}.cms-login-brand h1{font-size:28px}.cms-login-panel{padding:30px 20px}.cms-trust{grid-template-columns:1fr}.cms-trust span+span{border-top:1px solid #d7e1ea;border-left:0}}
@media(prefers-reduced-motion:reduce){.cms-module-card,.cms-login-submit,.cms-module-open b{transition:none!important}.cms-module-card.is-enabled:hover,.cms-login-submit:hover{transform:none}}
.cms-module-card:focus-visible,.cms-action:focus-visible,.cms-brand:focus-visible,.cms-login-submit:focus-visible,.cms-password-wrap button:focus-visible,.cms-login-logo:focus-visible{outline:3px solid rgba(60,139,199,.42);outline-offset:3px}

/* Identitas Dashboard: logo desa dan logo aplikasi sebagai tautan terpisah. */
.cms-topbar{height:116px;padding-top:10px;padding-bottom:10px}
.cms-brand-group{min-width:0;align-self:stretch;display:flex;align-items:center;gap:16px}
.cms-brand-group .cms-brand{flex:none;padding:5px;border-radius:11px;transition:background .18s,transform .18s}
.cms-brand-group .cms-brand:hover{background:#f2f6f9;transform:translateY(-1px)}
.cms-brand-village img{display:block;width:210px;height:auto;max-height:62px;object-fit:contain;object-position:left center}
.cms-brand-sadaya img{display:block;width:auto;height:88px;max-height:88px;object-fit:contain;object-position:center}
.cms-brand-divider{width:1px;height:58px;flex:none;background:#d7e1ea}
@media(max-width:760px){.cms-topbar{height:auto;min-height:102px}.cms-brand-group{align-self:center;gap:9px}.cms-brand-group .cms-brand{padding:3px}.cms-brand-village img{width:158px;max-height:50px}.cms-brand-sadaya img{height:66px;max-height:66px}.cms-brand-divider{height:44px}}
@media(max-width:460px){.cms-brand-group{width:100%;justify-content:center}.cms-brand-village img{width:min(47vw,165px)}.cms-brand-sadaya img{height:68px;max-height:68px}.cms-brand-divider{height:42px}}

/* KPI card, actionable notifications, and explicit logout */
.cms-module-card[data-module="kpi_management"]{--card-accent:#0f8a83}
.cms-account-menu,.cms-notification-menu{position:relative}
.cms-notification-menu>summary,.cms-account-menu>summary{list-style:none}
.cms-notification-menu>summary::-webkit-details-marker,.cms-account-menu>summary::-webkit-details-marker{display:none}
.cms-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cms-notification-trigger{gap:7px;border-color:#cbd9e6;background:#f8fbfd;color:#243e59}
.cms-notification-trigger>b{min-width:19px;height:19px;display:grid;place-items:center;border-radius:999px;padding:0 5px;background:var(--cms-red);color:#fff;font-size:9px}
.cms-notification-menu[open] .cms-notification-trigger{border-color:#87aeca;background:#edf6fc;color:#123d66}
.cms-notification-panel{position:absolute;right:0;top:48px;z-index:80;width:min(390px,calc(100vw - 28px));overflow:hidden;border:1px solid #cfdae5;border-radius:14px;background:#fff;box-shadow:0 24px 60px rgba(13,38,63,.22)}
.cms-notification-panel>header{padding:15px 16px;border-bottom:1px solid #e5ebf1;background:#f8fafc}.cms-notification-panel>header span{display:grid;gap:4px}.cms-notification-panel>header strong{color:var(--cms-navy);font-size:13px}.cms-notification-panel>header small{color:var(--cms-muted);font-size:10px}
.cms-notification-list{max-height:min(480px,62vh);overflow-y:auto}.cms-notification-list>a{position:relative;display:grid;gap:4px;padding:13px 16px;border-bottom:1px solid #edf1f5;color:#263b52;text-decoration:none}.cms-notification-list>a:hover{background:#f1f7fb}.cms-notification-list>a strong{font-size:11px}.cms-notification-list>a small{color:#607186;font-size:10px;line-height:1.45}.cms-notification-list time{color:#8896a7;font-size:9px}.cms-notification-source{width:max-content;padding:3px 6px;border-radius:999px;background:#eaf6f4;color:#087766;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.cms-notification-empty{display:grid;gap:5px;margin:0;padding:28px 18px;text-align:center}.cms-notification-empty strong{color:#25415e;font-size:12px}.cms-notification-empty small{color:#78889a;font-size:10px}.cms-notification-panel>footer{padding:10px 15px;background:#fff9e9;color:#7b5a16;font-size:9px;line-height:1.45}
.cms-action.danger.cms-logout{gap:7px;border-color:#b91c2a;background:linear-gradient(135deg,#d63d4a,#a91929);color:#fff;box-shadow:0 8px 18px rgba(173,28,43,.2)}.cms-action.danger.cms-logout:hover{background:linear-gradient(135deg,#bf2635,#8e1321);box-shadow:0 10px 22px rgba(173,28,43,.29)}
@media(max-width:760px){.cms-notification-trigger>span{display:none}.cms-notification-panel{position:fixed;top:74px;right:14px;left:14px;width:auto}.cms-logout>span{display:inline}}
@media(max-width:460px){.cms-notification-panel{top:132px}.cms-logout>span{display:none}}
