:root{
  --bg:whitesmoke;
  --card:#fff;
  --tx:#1f2a14;
  --mut:#6b7560;
  --pri:limegreen;
  --pri-d:limegreen;
  --pri-tx:#1f2a14;
  --acc:darkgreen;
  --bd:#e3e6dc;
  --err:#b3261e;
  --sb:#fff;
  --sbt:#3a4630;
  --sbm:#7d8873;
  --ring:limegreen
}

*{
  box-sizing:border-box
}

html,body{
  height:100%;
  margin:0
}

body{
  font:14px/1.55 "Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--bg);
  color:var(--tx)
}

h1,h2,h3,p,dl,dd{
  margin:0
}

button,input{
  font:inherit;
  color:inherit
}

a{
  color:inherit
}

:focus-visible{
  outline:3px solid var(--ring);
  outline-offset:2px
}

.mut{
  color:var(--mut)
}

.center{
  min-height:100vh;
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:20px;
  background:linear-gradient(160deg,whitesmoke 0 55%,rgba(154,205,50,.35))
}

.has-bg .center{
  background:var(--bg-img) center/cover no-repeat
}

.center .card{
  background:rgba(255,255,255,.35);
  border:1px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  box-shadow:0 10px 40px rgba(31,42,20,.18)
}

.center .card input{
  background:rgba(255,255,255,.6);
  border-color:rgba(255,255,255,.7)
}

.center .card .mut{
  color:var(--tx)
}

.card{
  background:var(--card);
  border:1px solid var(--bd);
  border-radius:14px;
  padding:22px
}

.login{
  width:100%;
  max-width:380px;
  display:grid;
  gap:14px
}

.logo-txt{
  display:block;
  width:max-content;
  margin:0 auto;
  font-weight:800;
  font-size:34px;
  letter-spacing:.14em;
  color:var(--acc)
}

.logo-img{
  display:block;
  max-height:64px;
  max-width:100%;
  width:auto;
  margin:0 auto;
  object-fit:contain
}

label{
  display:grid;
  gap:6px;
  font-weight:500
}

input[type=text],
input[type=password],
input[type=date],
input:not([type]){
  width:100%;
  padding:10px 12px;
  border:1px solid var(--bd);
  border-radius:10px;
  background:var(--bg)
}

input:focus{
  border-color:var(--pri)
}

.radio{
  display:flex;
  gap:8px;
  align-items:center;
  font-weight:500
}

.btn{
  display:inline-block;
  border:0;
  border-radius:10px;
  padding:10px 16px;
  background:var(--pri);
  color:var(--pri-tx);
  font-weight:700;
  cursor:pointer;
  text-align:center;
  text-decoration:none
}

.btn:hover{
  background:var(--pri-d)
}

.btn:disabled{
  opacity:.6;
  cursor:wait
}

.btn.ghost{
  background:transparent;
  color:var(--acc);
  border:1px solid var(--bd)
}

.btn.ghost:hover{
  background:var(--bg)
}

.btn.sm{
  padding:6px 12px;
  font-size:13px;
  width:auto;
  height:auto;
  white-space:nowrap
}

.link{
  background:none;
  border:0;
  color:var(--acc);
  cursor:pointer;
  font-weight:500;
  padding:0;
  justify-self:start
}

.err{
  color:var(--err);
  min-height:0
}

.err:empty{
  display:none
}

.note{
  background:var(--bg);
  border-left:3px solid var(--pri);
  padding:8px 12px;
  border-radius:6px
}

.shell{
  display:grid;
  grid-template-columns:260px 1fr;
  height:100vh;
  height:100dvh
}

.main{
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%
}

.sb{
  width:260px;
  min-width:260px;
  max-width:260px;
  background:var(--sb);
  color:var(--sbt);
  border-right:1px solid var(--bd);
  overflow-y:scroll;
  overflow-x:hidden;
  padding:18px 12px;
  box-sizing:border-box
}

.brand{
  padding:2px 12px 20px
}

.brand .logo-img{
  max-height:40px
}

.brand .logo-txt{
  font-size:22px;
  color:var(--acc)
}

.sb a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  margin:2px 0;
  border-radius:8px;
  color:var(--sbt);
  text-decoration:none;
  transition:.15s
}

.sb a:hover{
  background:rgba(154,205,50,.18)
}

.sb a.on{
  background:var(--pri);
  color:var(--pri-tx);
  font-weight:700
}

.nav-home{
  margin-bottom:8px
}

.nav-home a{
  font-weight:600
}

.grp{
  font-size:12px;
  font-weight:700;
  color:var(--sbm);
  margin:18px 12px 5px
}

.nav-group{
  margin-bottom:3px
}

.nav-group-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:9px 12px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--sbt);
  cursor:pointer;
  font-weight:600;
  text-align:left
}

.nav-group-btn:hover{
  background:rgba(154,205,50,.18)
}

.nav-chevron{
  font-size:17px;
  transition:transform .18s
}

.nav-group-btn.open .nav-chevron{
  transform:rotate(180deg)
}

.nav-sub{
  max-height:0;
  overflow:hidden;
  transition:max-height .2s ease;
  box-sizing:border-box
}

.nav-sub.open{
  max-height:500px
}

.nav-sub a{
  padding-left:30px;
  font-size:13px
}

.top{
  height:62px;
  flex:none;
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 20px;
  background:var(--card);
  border-bottom:1px solid var(--bd)
}

.top-title{
  flex:1;
  min-width:0
}

.top-label{
  display:block;
  font-size:9px;
  letter-spacing:.15em;
  font-weight:800;
  color:var(--acc);
  line-height:1
}

.top h1{
  font-size:16px;
  margin-top:3px
}

.burger{
  display:none;
  background:none;
  border:0;
  font-size:22px;
  cursor:pointer
}

.who{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none
}

.who span{
  display:grid;
  line-height:1.25
}

.who small{
  color:var(--mut)
}

#content{
  flex:1;
  min-height:0;
  overflow:auto;
  position:relative
}

.frame{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:#fff
}

.pad{
  padding:22px;
  display:grid;
  gap:18px;
  align-content:start;
  max-width:1000px
}

.pad.two{
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  max-width:900px
}

.dashboard{
  padding:24px;
  display:grid;
  gap:18px;
  max-width:1200px
}

.welcome{
  padding:24px;
  background:linear-gradient(135deg,var(--card),rgba(154,205,50,.22))
}

.welcome-info{
  display:flex;
  align-items:center;
  gap:18px
}

.eyebrow{
  display:block;
  color:var(--acc);
  font-size:10px;
  font-weight:800;
  letter-spacing:.13em;
  margin-bottom:4px
}

.welcome h2{
  font-size:23px;
  line-height:1.25
}

.welcome p{
  color:var(--mut);
  margin-top:5px
}

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px
}

.stat{
  display:flex;
  align-items:center;
  gap:13px;
  padding:17px
}

.stat-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(154,205,50,.22);
  font-size:18px
}

.stat span{
  display:block;
  color:var(--mut);
  font-size:12px
}

.stat strong{
  display:block;
  margin-top:2px;
  font-size:14px
}

.dashboard-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:18px
}

.section-head{
  margin-bottom:16px
}

.section-head h3{
  font-size:16px
}

.info-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  overflow:hidden;
  border:1px solid var(--bd);
  border-radius:10px
}

.info-list div{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:12px;
  background:var(--bg)
}

.info-list span{
  color:var(--mut);
  font-size:11px
}

.info-list b{
  font-size:13px
}

.quick-actions{
  display:grid;
  gap:8px
}

.quick-actions a{
  padding:12px 14px;
  border:1px solid var(--bd);
  border-radius:10px;
  text-decoration:none;
  font-weight:600
}

.quick-actions a:hover{
  border-color:var(--pri);
  color:var(--acc)
}

.announcement{
  padding:20px
}

.announcement h3{
  margin-bottom:5px
}

.hero{
  display:flex;
  align-items:center;
  gap:16px
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:10px;
  margin-top:8px
}

.tile{
  padding:14px;
  border:1px solid var(--bd);
  border-radius:12px;
  background:var(--card);
  text-decoration:none;
  font-weight:500
}

.tile:hover{
  border-color:var(--pri)
}

.ph{
  display:flex;
  gap:16px;
  align-items:center;
  margin-bottom:14px
}

dl{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:6px 18px
}

dt{
  color:var(--mut)
}

.pad form{
  display:grid;
  gap:12px;
  align-content:start
}

.narrow{
  max-width:420px;
  display:grid;
  gap:12px
}

.row{
  display:flex;
  gap:10px
}

.load{
  display:grid;
  place-items:center;
  height:100%;
  color:var(--mut)
}

.av{
  border-radius:50%;
  object-fit:cover;
  background:var(--pri);
  color:var(--pri-tx);
  display:inline-grid;
  place-items:center;
  font-weight:700;
  flex:none
}

.av.sm{
  width:34px;
  height:34px;
  font-size:13px
}

.lg{
  width:58px;
  height:58px;
  font-size:20px
}

.xl{
  width:88px;
  height:88px;
  font-size:30px
}

.modal{
  position:fixed;
  inset:0;
  background:#0008;
  display:grid;
  place-items:center;
  padding:16px;
  z-index:50
}

.dlg{
  width:100%;
  max-width:400px;
  position:relative;
  display:grid;
  gap:12px
}

.x{
  position:absolute;
  top:8px;
  right:12px;
  background:none;
  border:0;
  font-size:24px;
  cursor:pointer;
  color:var(--mut)
}

.idbox{
  font-size:26px;
  font-weight:800;
  letter-spacing:.04em;
  padding:14px;
  border-radius:10px;
  background:var(--bg);
  text-align:center;
  color:var(--acc);
  word-break:break-all
}

.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  background:var(--tx);
  color:#fff;
  padding:10px 18px;
  border-radius:10px;
  z-index:60
}

.ov{
  display:none
}

@media(max-width:1000px){
  .stats{
    grid-template-columns:repeat(2,1fr)
  }

  .dashboard-grid{
    grid-template-columns:1fr
  }
}

@media(max-width:800px){
  .shell{
    grid-template-columns:1fr
  }

  .sb{
    position:fixed;
    inset:0 auto 0 0;
    width:270px;
    transform:translateX(-100%);
    transition:transform .2s;
    z-index:30
  }

  .nav .sb{
    transform:none
  }

  .nav .ov{
    display:block;
    position:fixed;
    inset:0;
    background:#0006;
    z-index:20
  }

  .burger{
    display:block
  }

  .who span{
    display:none
  }

  .dashboard{
    padding:14px
  }

  .welcome h2{
    font-size:19px
  }
}

@media(max-width:560px){
  .stats{
    grid-template-columns:1fr
  }

  .welcome-info{
    align-items:flex-start
  }

  .welcome .xl{
    width:64px;
    height:64px;
    font-size:22px
  }

  .info-list{
    grid-template-columns:1fr
  }

  .top{
    padding:0 14px
  }
}

@media(prefers-reduced-motion:reduce){
  .sb,
  .nav-sub,
  .nav-chevron{
    transition:none
  }
}