@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&display=swap');

/* RZ account interface: persistent navigation and unified NC9-inspired controls */
.app-shell{min-height:100vh;align-items:stretch;background:#f4f6f8}
.app-shell>.account-sidebar{position:sticky;top:0;align-self:flex-start;width:258px;min-width:258px;height:100vh;min-height:100vh;overflow-y:auto;overflow-x:hidden;padding:22px 14px 20px;background:#f1f2f4;border-right:1px solid #dfe2e5;gap:7px;z-index:120}
.app-shell .account-sidebar .brand{display:block;margin:0 8px 14px;color:#2563eb;font-size:27px;line-height:1.2}
.app-shell .account-sidebar .brand span{color:#172033;font-size:19px}
.app-shell .account-sidebar-back{width:100%;justify-content:flex-start;margin:0 0 13px;padding:10px 12px}
.app-shell .account-sidebar .side-label{padding:4px 10px 9px}
.app-shell .account-nav{display:flex;flex-direction:column;gap:4px}
.app-shell .account-nav .nav{display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 10px;border:1px solid transparent;border-radius:8px;color:#535b65;font-size:13px;font-weight:600;line-height:1.25;transition:background .15s,border-color .15s,color .15s}
.app-shell .account-nav .nav:hover{background:#fff;border-color:#e6e7e9;color:#263449}
.app-shell .account-nav .nav.active{background:#e7efff;border-color:#d3e1ff;box-shadow:inset 3px 0 #2563eb;color:#1d4ed8}
.app-shell .account-nav-icon{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border-radius:6px;background:#e5e8ec;color:#68717c;font-size:14px}
.app-shell .account-nav .nav.active .account-nav-icon{background:#d5e4ff;color:#1d4ed8}
.app-shell .nav-unread-badge{margin-left:auto;min-width:8px;height:8px;border-radius:50%;background:#ef4444}
.app-shell .account-role-switch{margin-top:auto;padding-top:16px}
.app-shell .account-role-switch .btn{width:100%;white-space:normal}
.app-shell>.content{min-width:0;flex:1;padding:0 30px 42px}
.app-shell .topbar{position:sticky;top:0;z-index:80;background:rgba(244,246,248,.96);backdrop-filter:blur(8px);gap:14px}
.app-shell .btn{min-height:38px;padding:9px 14px;border:1px solid transparent;border-radius:8px;font-size:13px;font-weight:700;line-height:1.2;transition:background .15s,border-color .15s,box-shadow .15s,color .15s}
.app-shell .btn.primary{background:#347fc9;border-color:#2d75bd;color:#fff;box-shadow:0 3px 8px rgba(37,99,235,.14)}
.app-shell .btn.primary:hover{background:#286eb7;border-color:#286eb7}
.app-shell .btn.ghost{background:#fff;border-color:#d9dee5;color:#3d4652;box-shadow:0 1px 2px rgba(20,30,45,.04)}
.app-shell .btn.ghost:hover{background:#f7f9fb;border-color:#bfc9d5;color:#202b3a}
.app-shell button:focus-visible,.app-shell a:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}
.account-menu-toggle{display:none}
@media(max-width:760px){
 .app-shell{display:block;min-height:100vh;overflow-x:hidden}
 .app-shell>.account-sidebar{position:fixed;top:0;bottom:0;left:0;width:min(84vw,300px);min-width:0;height:100dvh;min-height:0;padding:18px 14px 24px;overflow-y:auto;transform:translateX(-105%);transition:transform .22s ease;box-shadow:10px 0 30px rgba(25,40,60,.12);z-index:3001}
 .app-shell.account-menu-open>.account-sidebar{transform:translateX(0)}
 .app-shell.account-menu-open:after{content:"";position:fixed;inset:0;background:rgba(20,30,45,.35);z-index:3000}
 .app-shell>.content{padding:0 16px 28px}
 .app-shell .topbar{min-height:62px;height:auto;padding:10px 0;flex-wrap:nowrap;gap:10px}
 .account-menu-toggle{display:flex;flex:0 0 40px;width:40px;height:40px;padding:9px;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #d9e0e8;border-radius:8px;background:#fff;cursor:pointer}
 .account-menu-toggle span{display:block;width:18px;height:2px;border-radius:2px;background:#2563eb;transition:transform .18s,opacity .18s}
 .account-menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(7px) rotate(45deg)}
 .account-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
 .account-menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-7px) rotate(-45deg)}
 .app-shell .topbar>span:nth-of-type(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .app-shell .topbar-right{gap:7px}
 .app-shell .topbar-logout .btn{padding:8px 10px}
 .app-shell .welcome{align-items:flex-start;flex-wrap:wrap;padding:24px 0 20px}
}
@media(max-width:760px){
 .app-shell .topbar>span:first-of-type{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .app-shell .topbar>span:nth-of-type(2){display:none}
}
.app-shell .link-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border:1px solid #f0d5d5;border-radius:8px;background:#fff7f7;color:#b42318;font-size:12px;font-weight:700;line-height:1.2;cursor:pointer;transition:background .15s,border-color .15s}
.app-shell .link-button:hover{background:#ffeded;border-color:#eab7b7}

/* Use the project's Exo 2 typography consistently throughout the applicant account. */
.app-shell, .app-shell * { font-family: 'Exo 2', Arial, sans-serif !important; }


/* Keep the signed-in account visible beside the logout action. */
.app-shell .topbar>span:nth-of-type(2){
  display:inline-flex;
  align-items:center;
  flex:0 1 auto;
  min-width:0;
  max-width:min(38vw,360px);
  margin-left:auto;
  padding:7px 12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border:1px solid #cfe0fb;
  border-radius:8px;
  background:#edf4ff;
  color:#2459a8;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
}
.app-shell .topbar-right{margin-left:0}
@media(max-width:760px){
  .app-shell .topbar>span:nth-of-type(2){
    display:inline-flex;
    flex:0 1 auto;
    max-width:34vw;
    margin-left:auto;
    padding:6px 8px;
    font-size:10px;
  }
  .app-shell .topbar-right{margin-left:0;flex:0 0 auto}
}


/* Keep applicant account navigation labels beside their icons and left-aligned. */
.app-shell .account-sidebar .account-nav .nav{
  justify-content:flex-start !important;
  text-align:left !important;
}
.app-shell .account-sidebar .account-nav .nav > span:nth-child(2){
  flex:1 1 auto;
  min-width:0;
  text-align:left !important;
}


/* Applicant settings: clear sections and consistent form spacing. */
.app-shell .settings-section-title{margin:0 0 6px}
.app-shell .settings-readonly{background:#f5f7fb;color:#52627a}
