:root{
  --ink:#172b42;--muted:#4b6478;--nav:#102237;--accent:#08736a;--mint:#83e1ca;
  --canvas:#edf2f6;--line:#d6e1e9;
  font-family:"Segoe UI",system-ui,sans-serif;
}
body:not(.active){
  min-height:100dvh;padding:clamp(1rem,4vw,3.5rem);
  background:radial-gradient(ellipse at 80% 15%,#1d4e50,transparent 50%),#102136;
}
body:not(.active) main{
  width:min(100%,1080px);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  border-radius:28px;overflow:hidden;background:#fbfdfd;box-shadow:0 24px 80px #020f206c;
}
.entry-intro{
  grid-row:1/3;display:flex;flex-direction:column;justify-content:space-between;
  min-height:520px;gap:3rem;padding:clamp(1.7rem,4vw,3.4rem);color:#eefaf9;
  background:
    radial-gradient(ellipse at 88% 86%,#317d7480,transparent 52%),
    repeating-linear-gradient(132deg,transparent 0 34px,#8ae7d115 35px,#8ae7d115 36px,transparent 37px 70px),
    linear-gradient(145deg,#12263e 8%,#164f55 100%);
}
.active .entry-intro{display:none}
.entry-brand{display:flex;align-items:center;gap:.75rem;font-size:1.15rem;font-weight:750}
.entry-brand img,.brand img{border-radius:10px}
.entry-message{max-width:440px}
.entry-message h1{font-size:clamp(2rem,4.7vw,3.5rem);line-height:1.04;letter-spacing:-.045em}
.entry-message p{margin:.9rem 0 0;color:#d6eceb;font-size:1.04rem;max-width:32ch}
body:not(.active) main>section.app-container{
  align-self:center;background:transparent;box-shadow:none;border-radius:0;margin:0;
  padding:clamp(1.45rem,4vw,3.2rem);
}
body:not(.active) main>p:last-child{
  padding:0 clamp(1.45rem,4vw,3.2rem) 1rem;margin:0;color:#4b6478;
}
#login .ivpa-login-brand{display:block;margin-bottom:1.4rem}
#login h2{font-size:clamp(1.7rem,3vw,2.1rem);margin:0;line-height:1.16}
#login .ivpa-login-brand p{margin:.4rem 0 0;color:var(--muted)}
#login input{min-height:48px;background:#fff}
.entry-password{position:relative}
#login .entry-password input{padding-inline-end:5.4rem}
.entry-password button{
  position:absolute;right:.35rem;top:.55rem;background:#edf4f6;color:#224b59;padding:.38rem .6rem;font-size:.8rem;
}
.entry-password button:hover{background:#dcebef}
#enter{min-height:46px}
#login .auth-links{gap:.45rem;margin-top:1rem}
#login .auth-links button{font-size:.85rem}
#login .offline-access{display:block;color:#156463;margin:.6rem 0 0}
.active #shell{grid-template-columns:256px minmax(0,1fr)}
.active #sidebar{background:linear-gradient(155deg,#101d30,#16364a);padding-inline:14px}
.active .brand{display:flex;align-items:center;gap:.7rem;line-height:1.15;padding:0 .55rem 1.1rem}
.active .brand small{margin-top:.15rem}
.active #menu{border-top:1px solid #a7c2d52b;padding-top:.55rem}
.active #menu summary{transition:background .15s ease}
.active #menu button.selected{background:#23574f;box-shadow:inset 3px 0 #8be6ce}
.active #workspace{padding:clamp(1rem,2.5vw,2.25rem)}
.active .workspace-header{
  border-radius:16px;border-top:3px solid #27887f;box-shadow:0 7px 24px #1530470d;
}
.active .workspace-header h2{font-size:clamp(1.55rem,3.2vw,2.35rem)}
.active .directory-form,.active .directory-table,.active .executive-panel{box-shadow:0 7px 22px #18354f0a}
.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem}
.admin-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1.2rem;box-shadow:0 7px 22px #18354f0a}
.admin-card h3{font-size:1.2rem;margin:0 0 .35rem}
.admin-card p{color:var(--muted);}
.admin-actions{display:flex;gap:.45rem;flex-wrap:wrap}
@media(max-width:760px){
  body:not(.active){padding:1rem}
  body:not(.active) main{grid-template-columns:1fr;border-radius:18px}
  .entry-intro{grid-row:auto;min-height:0;gap:1.25rem;padding:1.35rem}
  .entry-brand img{width:38px;height:38px}
  .entry-message h1{font-size:clamp(1.5rem,6.5vw,2.15rem)}
  .entry-message p{font-size:.9rem}
  .active #shell{display:block}
  .active .brand{padding:0}
  .active #menu{border-top:0}
}
