/* PRAJA SEVA KENDRA — VEERAPUR · November 2026 V9
   Shared presentation-only patch. Supabase/auth/database interfaces unchanged. */
:root{--psk-deep:#250638;--psk-purple:#4c0d6d;--psk-royal:#67108e;--psk-gold:#e6bd61;--psk-cream:#fff5d0}

/* Header — compact, readable, user's original logo, no duplicate image */
body .top.psk-final-top,
body.premium-login>.header.psk-final-login-top{
  position:relative!important;isolation:isolate;box-sizing:border-box!important;
  width:100%!important;height:94px!important;min-height:94px!important;max-height:94px!important;
  padding:7px clamp(12px,1.8vw,28px)!important;margin:0!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:clamp(8px,1.3vw,20px)!important;
  border:0!important;border-radius:0!important;border-bottom:4px solid var(--psk-gold)!important;
  overflow:visible!important;color:#fff!important;
  background:linear-gradient(108deg,#28063e 0%,#4b075f 36%,#581173 66%,#26063c 100%)!important;
  box-shadow:0 5px 16px rgba(38,3,53,.22)!important
}
body .top.psk-final-top::before,body.premium-login>.header.psk-final-login-top::before{
 content:""!important;position:absolute;inset:auto 0 0 38%;height:27px;
 background:linear-gradient(110deg,transparent 15%,rgba(242,194,105,.13) 38%,rgba(255,210,107,.07) 65%,transparent 90%);
 border-radius:50%;z-index:-1;pointer-events:none
}
body .top.psk-final-top::after,body.premium-login>.header.psk-final-login-top::after{
 content:""!important;position:absolute;right:0;bottom:-4px;width:22%;height:4px;
 background:linear-gradient(90deg,transparent,#ffe29b);pointer-events:none
}
.psk-final-brand{display:flex;align-items:center;gap:clamp(8px,1.2vw,17px);flex:1;min-width:0;height:100%}
.psk-final-logo{display:flex!important;align-items:center;justify-content:center;flex:none;box-sizing:border-box;
  width:clamp(165px,17vw,220px);height:76px;padding:4px 6px;
  background:#fff;border:1.5px solid #e5bb60;border-radius:15px;overflow:hidden;
  box-shadow:0 1px 5px rgba(17,2,31,.2);max-width:100%;}
.psk-final-logo img{display:block;width:100%!important;height:100%!important;min-width:0;max-width:100%!important;
  object-fit:contain!important;object-position:center!important;border:none!important;border-radius:0!important;
  background:#fff;box-shadow:none!important;filter:none!important;transform:none!important;margin:0!important}
.psk-final-rule{flex:none;display:block!important;height:48px;width:2px;background:linear-gradient(180deg,transparent,#f4cb72 18% 82%,transparent)}
.psk-final-headings{display:flex;flex:1;flex-direction:column;justify-content:center;gap:4px;min-width:0;
  font-family:Inter,'Noto Sans Kannada',system-ui,sans-serif!important;text-align:left!important}
.psk-final-kn{font-weight:900;font-size:clamp(18px,1.65vw,28px);line-height:1.34;color:#ffe0a0;
  text-shadow:0 1px 1px #210428;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.psk-final-english{font-size:clamp(11px,.98vw,16px);line-height:1.45;font-weight:800;letter-spacing:.02em;color:#fff;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.psk-final-english b{color:#ffe2a6;font-weight:850;margin-left:8px}
body .top.psk-final-top .toptools{position:relative!important;display:flex!important;align-items:center!important;flex:none!important;z-index:10!important}
body .top.psk-final-top .profile.psk-final-admin{border:1.5px solid #e8c26a!important;min-width:105px!important;min-height:40px!important;
  border-radius:999px!important;background:#fff!important;color:#3c0d5b!important;font-size:13px!important;font-weight:900!important;
  padding:8px 14px!important;box-shadow:0 2px 8px #1802235a!important;cursor:pointer}
body .top.psk-final-top .psk-admin-menu{position:absolute!important;right:0;top:calc(100% + 7px);
  min-width:215px;border:1.5px solid #e3bc63;border-radius:12px;background:#fff;box-shadow:0 12px 28px #20112b50;
  padding:8px;color:#351057;z-index:1000}
body .top.psk-final-top .psk-admin-menu[hidden]{display:none!important}
body .top.psk-final-top .psk-admin-menu>a,body .top.psk-final-top .psk-admin-menu>button{display:block;box-sizing:border-box;
  width:100%;border:0;border-radius:8px;padding:11px 9px;text-align:left;background:transparent;color:#351057;text-decoration:none;font-weight:750}
body .top.psk-final-top .psk-admin-menu>button:hover,body .top.psk-final-top .psk-admin-menu>a:hover{background:#f0e6fa}
body .top.psk-final-top .psk-menu-heading{font-size:11px;color:#6f5b7b;padding:7px 8px;border-bottom:1px solid #e5dbed}
/* Restore classic admin appearance, strengthen contrast without rebuilding charts or forms. */
body .workspace{background:linear-gradient(145deg,#f7f4ff,#f0ecf9)!important}
body .shell>aside{background:linear-gradient(180deg,#081733,#102452 65%,#16113d)!important}
body .shell>aside nav button.active{background:linear-gradient(115deg,#ffe7a3,#eeb94e)!important;color:#251638!important;border-color:#c79339!important}
body .workspace .panel,body .workspace .featureCard{border-color:#ddc8e9;box-shadow:0 3px 10px #3c145c13}
body #featurePage .featureHero{background:linear-gradient(115deg,#2a0647,#591078)!important;border:1px solid #e6bd61!important;border-radius:13px!important}
body #featurePage .statsLine.gok-cash-stats{display:grid!important;grid-template-columns:repeat(5,minmax(122px,1fr));gap:9px!important}
body #featurePage .statsLine.gok-cash-stats>div{min-width:0!important;margin:0!important;padding:10px 11px!important;border-radius:11px!important;font-size:11px!important;line-height:1.4!important}
body #featurePage .statsLine.gok-cash-stats strong{font-size:clamp(14px,1.3vw,19px)!important;line-height:1.25!important;margin:4px 0 0!important}
body #featurePage .statsLine.gok-cash-stats .gok-inline-diff{font-size:10px!important;line-height:1.35}
/* Applications: keep dedicated inbox and restrained detail modal. Remarks are the first editable fields. */
body #gokLiveRequestDialog{width:min(94vw,660px)!important;max-width:660px!important;max-height:82dvh!important;border-radius:15px!important;border-color:#e4b65f!important}
body #gokLiveRequestDialog .gok-live-app-top{background:linear-gradient(110deg,#25053e,#551072)!important;padding:9px 13px!important}
body #gokLiveRequestDialog .gok-live-app-body{max-height:calc(82dvh - 55px)!important;padding:9px!important}
body #gokLiveRequestDialog #applicationDetails{padding:11px!important;box-shadow:none!important}
body #gokLiveRequestDialog #applicationDetails form#appForm{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body #gokLiveRequestDialog #appForm>label{min-width:0}
body #gokLiveRequestDialog #appForm>label:has(textarea){grid-column:span 1!important;font-weight:750}
body #gokLiveRequestDialog #appForm textarea{height:84px!important;min-height:78px!important;resize:vertical}
body #gokLiveRequestDialog .gok-app-more{grid-column:1/-1;border:1px solid #dfd3e8;border-radius:10px;padding:8px 10px;background:#faf6ff}
body #gokLiveRequestDialog .gok-app-more summary{cursor:pointer;font-weight:800;color:#4e176b;font-size:12px}
body #gokLiveRequestDialog .gok-app-more-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
body #gokLiveRequestDialog #appForm>button{grid-column:1/-1!important;justify-self:start}
/* Login shell: existing form & features are intact, only unified header. */
body.premium-login>.header.psk-final-login-top{justify-content:flex-start!important;gap:14px!important}
body.premium-login>.header.psk-final-login-top .psk-final-logo{height:74px!important;width:clamp(165px,17vw,218px)!important}
body.premium-login>.header.psk-final-login-top .psk-final-headings{max-width:calc(100% - 245px);flex:1!important}
body.premium-login>.header.psk-final-login-top .psk-final-kn{font-size:clamp(19px,1.8vw,29px)}
body.premium-login>.header.psk-final-login-top .psk-final-english{font-size:clamp(11px,1.07vw,16px)}
body.premium-login footer{min-height:48px!important;padding:12px 8px!important;border-radius:16px 16px 0 0!important;font-size:12px!important;
  background:linear-gradient(112deg,#2a0441,#531070,#2a0441)!important;border-top:3px solid #e0bb64!important;color:#fff!important}
/* TOTP/Password Reset status page matches brand, no change to MFA enrollment/verification logic. */
body .header.psk-final-mfa-header{background:linear-gradient(106deg,#2a053c,#5c0e7b,#25053b)!important;border-bottom:4px solid #e6bd61!important;
  padding:10px 18px!important;min-height:88px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:14px!important}
body .header.psk-final-mfa-header>img{width:165px!important;height:64px!important;max-width:32vw!important;object-fit:contain!important;border-radius:10px!important;background:#fff!important;padding:3px!important}
body .header.psk-final-mfa-header h1{font-size:clamp(17px,1.65vw,24px)!important;line-height:1.35!important;color:#ffdfa2!important;margin:0!important}
body .header.psk-final-mfa-header p{color:#fff!important;margin:4px 0 0!important;font-size:12px!important}
@media(max-width:1150px){
 body #featurePage .statsLine.gok-cash-stats{grid-template-columns:repeat(3,minmax(122px,1fr))!important}
 .psk-final-kn{font-size:clamp(16px,2vw,22px)!important}
 .psk-final-english{font-size:clamp(10px,1.2vw,13px)!important}
}
@media(max-width:700px){
 body .top.psk-final-top,body.premium-login>.header.psk-final-login-top{height:70px!important;min-height:70px!important;max-height:70px!important;padding:5px 8px!important;gap:7px!important;border-bottom-width:3px!important}
 .psk-final-brand{gap:7px!important}
 .psk-final-logo,body.premium-login>.header.psk-final-login-top .psk-final-logo{width:67px!important;height:56px!important;min-width:67px!important;padding:3px!important;border-radius:9px!important}
 .psk-final-logo img{content:url('psk-user-original-icon.webp');object-fit:contain!important}
 .psk-final-rule{height:37px!important;width:1.5px!important}
 .psk-final-headings{gap:1px!important}
 .psk-final-kn,body.premium-login>.header.psk-final-login-top .psk-final-kn{font-size:clamp(10px,2.8vw,15px)!important;line-height:1.35!important}
 .psk-final-english,body.premium-login>.header.psk-final-login-top .psk-final-english{font-size:clamp(7px,1.9vw,10px)!important;letter-spacing:-.04em!important}
 .psk-final-english b{display:none!important} /* mobile: full brand line readable; Admin button already labels the role */
 body .top.psk-final-top .profile.psk-final-admin{min-width:69px!important;min-height:33px!important;font-size:10px!important;padding:5px 7px!important}
 body.premium-login>.header.psk-final-login-top .psk-final-headings{max-width:calc(100% - 88px)!important}
 body #featurePage .statsLine.gok-cash-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body #gokLiveRequestDialog{width:97vw!important;max-height:90dvh!important}
 body #gokLiveRequestDialog .gok-live-app-body{max-height:calc(90dvh - 50px)!important}
 body #gokLiveRequestDialog #applicationDetails form#appForm{grid-template-columns:1fr!important}
 body #gokLiveRequestDialog .gok-app-more-fields{grid-template-columns:1fr!important}
}
@media print{body .top.psk-final-top,body.premium-login>.header.psk-final-login-top{display:none!important}}

/* V10: original Praja Seva logo text visible with padding. */
body .top.psk-final-top .psk-final-logo{width:clamp(183px,18vw,236px)!important;height:76px!important;padding:5px 8px!important;overflow:hidden!important}
body .top.psk-final-top .psk-final-brand{gap:clamp(7px,1vw,14px)!important}
body .top.psk-final-top .psk-final-logo img{object-fit:contain!important;object-position:center center!important}
@media(max-width:700px){body .top.psk-final-top .psk-final-logo{width:70px!important;height:55px!important;padding:3px!important}body .top.psk-final-top .psk-final-logo img{content:url("psk-user-original-icon.webp")!important}}
