.employee-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:2rem 1.5rem;
  position:relative;
  overflow:hidden;
}

.employee-shell::before{
  content:"";
  position:absolute;
  inset:5vh auto auto -14vw;
  width:36vw;
  min-width:280px;
  aspect-ratio:1;
  border-radius:999px;
  background:radial-gradient(circle, color-mix(in srgb,var(--color-primary) 22%, transparent), transparent 68%);
  pointer-events:none;
}

.employee-shell::after{
  content:"";
  position:absolute;
  inset:auto -12vw 3vh auto;
  width:42vw;
  min-width:300px;
  aspect-ratio:1;
  border-radius:999px;
  background:radial-gradient(circle, color-mix(in srgb,var(--color-accent) 20%, transparent), transparent 70%);
  pointer-events:none;
}

.employee-shell__inner{
  width:min(100%, 960px);
  display:grid;
  gap:1.05rem;
  position:relative;
  z-index:1;
}

.employee-hero{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:end;
  gap:1.25rem;
  padding:1.05rem 1.2rem 1.25rem;
  border:1px solid rgba(255,255,255,.78);
  border-radius:24px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.94),rgba(255,255,255,.72)),
    linear-gradient(135deg, color-mix(in srgb,var(--color-primary) 18%, #ffffff), color-mix(in srgb,var(--color-accent) 10%, #ffffff) 72%);
  box-shadow:0 24px 54px rgba(13,44,77,.11);
  backdrop-filter:blur(14px);
  position:relative;
  overflow:hidden;
}

.employee-hero::after{
  content:"";
  position:absolute;
  inset:auto -52px -78px auto;
  width:220px;
  height:220px;
  border-radius:999px;
  background:
    linear-gradient(135deg,rgba(11,99,188,.12),rgba(47,154,71,.15));
  pointer-events:none;
}

.employee-hero > *{
  position:relative;
  z-index:1;
}

.employee-hero__brand{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-width:0;
  padding:0 0 .95rem;
  border-bottom:1px solid color-mix(in srgb,var(--color-primary) 14%, var(--color-border));
}

.employee-hero__logos{
  display:flex;
  align-items:center;
  gap:.65rem;
  flex:0 0 auto;
  min-width:0;
  padding:.48rem .62rem;
  border-radius:999px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.96),rgba(244,248,251,.92));
  border:1px solid rgba(255,255,255,.86);
  box-shadow:0 14px 30px rgba(13,44,77,.11);
}

.employee-hero__logo{
  width:72px;
  height:58px;
  object-fit:contain;
  padding:.28rem .38rem;
  border-radius:0;
  background:transparent;
  border:0;
  box-shadow:none;
}

.employee-hero__logo--client{
  width:128px;
}

.employee-hero__tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.42rem .72rem;
  border-radius:999px;
  background:var(--color-primary-soft);
  border:1px solid color-mix(in srgb,var(--color-primary) 18%, var(--color-border));
  color:var(--color-primary-600);
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}

.employee-hero__content{
  max-width:680px;
}

.employee-hero__eyebrow{
  margin:0 0 .35rem 0;
  font-size:.76rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--color-primary-600);
}

.employee-hero__title{
  margin:0;
  font-size:clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing:-.04em;
  color:var(--color-fg);
}

.employee-hero__copy{
  margin:.45rem 0 0 0;
  max-width:640px;
  color:var(--color-muted);
  line-height:1.5;
}

.employee-hero__badges{
  display:flex;
  gap:.45rem;
  flex-wrap:wrap;
  margin-top:.8rem;
}

.employee-hero__badges span{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  padding:.34rem .62rem;
  border-radius:999px;
  background:rgba(255,255,255,.74);
  border:1px solid color-mix(in srgb,var(--color-primary) 16%, var(--color-border));
  color:var(--color-primary-600);
  font-size:.76rem;
  font-weight:700;
}

.employee-hero__badges span::before{
  content:"";
  width:.42rem;
  height:.42rem;
  border-radius:999px;
  background:var(--color-accent);
  box-shadow:0 0 0 4px var(--color-accent-soft);
}

.employee-card{
  background:
    linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.88)),
    var(--color-surface);
  border:1px solid rgba(255,255,255,.76);
  border-radius:24px;
  box-shadow:0 22px 48px rgba(13,44,77,.1);
  backdrop-filter:blur(12px);
}

.employee-card__heading{
  display:flex;
  align-items:flex-start;
  gap:.9rem;
}

.employee-card__heading h2{
  margin:.05rem 0 .25rem;
  letter-spacing:-.02em;
}

.employee-card__icon{
  width:46px;
  height:46px;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:16px;
  color:#fff;
  font-weight:800;
  background:linear-gradient(135deg,var(--color-primary),var(--color-accent));
  box-shadow:0 14px 26px rgba(11,99,188,.18);
}

.employee-card__kicker{
  margin:0;
  color:var(--color-primary-600);
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.employee-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:.75rem;
}

.employee-form{
  display:grid;
  gap:.9rem;
  margin-top:1.05rem;
}

.employee-form__actions{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
  align-items:center;
}

.employee-form .input{
  max-width:none;
  width:100%;
  min-height:46px;
  background:rgba(255,255,255,.92);
  border-color:color-mix(in srgb,var(--color-primary) 12%, var(--color-border));
}

.employee-help-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin-top:1.1rem;
  padding:.8rem .95rem;
  border-radius:18px;
  background:
    linear-gradient(135deg,var(--color-primary-soft),rgba(255,255,255,.66));
  border:1px solid color-mix(in srgb,var(--color-primary) 16%, var(--color-border));
  color:var(--color-muted);
  font-size:.88rem;
}

.employee-help-strip strong{
  color:var(--color-fg);
  font-weight:700;
}

.employee-message{
  min-height:1.4rem;
  margin:0;
}

.employee-message[data-state="error"]{
  color:#b91c1c;
}

.employee-message[data-state="ok"]{
  color:#047857;
}

.employee-dashboard-overview{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(280px, 360px);
  gap:1rem;
  align-items:center;
}

.employee-dashboard-stack{
  display:grid;
  gap:1rem;
}

.employee-session-copy{
  min-width:0;
}

.employee-session-titlebar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.85rem;
}

.employee-session-titlebar h2{
  margin:.08rem 0 0;
  line-height:1.15;
  letter-spacing:-.02em;
}

.employee-session-titlebar .btn{
  flex:0 0 auto;
}

.employee-session-copy > .text-muted{
  margin:.38rem 0 0;
  max-width:680px;
}

.employee-session-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin-top:.78rem;
}

.employee-session-meta__item{
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  min-height:34px;
  padding:.42rem .64rem;
  border-radius:999px;
  background:color-mix(in srgb,var(--color-primary) 7%, rgba(255,255,255,.82));
  border:1px solid color-mix(in srgb,var(--color-primary) 12%, var(--color-border));
  max-width:100%;
}

.employee-session-meta__label{
  color:var(--color-muted);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  white-space:nowrap;
}

.employee-session-meta__value{
  color:var(--color-fg);
  font-size:.88rem;
  overflow-wrap:anywhere;
}

.employee-cert-actions{
  display:grid;
  gap:.55rem;
  align-content:center;
  padding-left:1rem;
  border-left:1px solid color-mix(in srgb,var(--color-primary) 14%, var(--color-border));
}

.employee-cert-actions h3{
  margin:0;
  font-size:1rem;
  line-height:1.2;
  color:var(--color-fg);
}

.employee-cert-actions p{
  margin:0;
  line-height:1.35;
}

.employee-cert-actions .employee-form__actions{
  gap:.45rem;
}

.employee-cert-actions .btn{
  padding:.55rem .78rem;
  white-space:nowrap;
}

.employee-cert-actions .employee-message{
  min-height:1.15rem;
  font-size:.84rem;
}

.employee-incapacity-card{
  display:grid;
  gap:1rem;
}

.employee-incapacity-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}

.employee-incapacity-header h2{
  margin:.08rem 0 .35rem;
  letter-spacing:-.02em;
}

.employee-incapacity-header .text-muted{
  margin:0;
  line-height:1.45;
}

.employee-incapacity-title{
  font-size:1.12rem;
  line-height:1.2;
}

.employee-incapacity-filters{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 180px)) auto;
  gap:.65rem;
  align-items:end;
  padding-top:.9rem;
  border-top:1px solid color-mix(in srgb,var(--color-primary) 10%, var(--color-border));
}

.employee-incapacity-filters .input{
  max-width:none;
  width:100%;
}

.employee-incapacity-message{
  min-height:1.35rem;
  margin:0;
}

.employee-incapacity-message[data-state="error"]{
  color:#b91c1c;
}

.employee-incapacity-message[data-state="ok"]{
  color:#047857;
}

.employee-incapacity-list{
  display:grid;
  gap:.72rem;
}

.employee-incapacity-empty{
  padding:.95rem;
  border:1px dashed color-mix(in srgb,var(--color-muted) 28%,var(--color-border));
  border-radius:8px;
  background:color-mix(in srgb,var(--color-surface-alt) 72%,#fff);
  color:var(--color-muted);
}

.employee-incapacity-item{
  --support-accent:var(--color-primary);
  --support-bg:rgba(248,251,253,.92);
  --support-detail-bg:color-mix(in srgb,var(--color-primary) 5%, rgba(255,255,255,.8));
  --support-detail-border:color-mix(in srgb,var(--color-primary) 10%, var(--color-border));
  display:grid;
  gap:.72rem;
  padding:.9rem;
  border:1px solid color-mix(in srgb,var(--support-accent) 24%, var(--color-border));
  border-left:6px solid var(--support-accent);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),var(--support-bg));
}

.employee-incapacity-item.has-support{
  --support-accent:#15803d;
  --support-bg:#f0fdf4;
  --support-detail-bg:rgba(240,253,244,.82);
  --support-detail-border:rgba(21,128,61,.18);
}

.employee-incapacity-item.missing-support{
  --support-accent:#b91c1c;
  --support-bg:#fef2f2;
  --support-detail-bg:rgba(254,242,242,.82);
  --support-detail-border:rgba(185,28,28,.18);
}

.employee-incapacity-item__main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.75rem;
}

.employee-incapacity-item__main h3{
  margin:.12rem 0 0;
  font-size:1.02rem;
  line-height:1.2;
}

.employee-incapacity-item__type{
  margin:0;
  color:var(--support-accent);
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.employee-incapacity-details{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:.55rem;
  margin:0;
}

.employee-incapacity-details div{
  min-width:0;
  padding:.55rem .65rem;
  border-radius:8px;
  background:var(--support-detail-bg);
  border:1px solid var(--support-detail-border);
}

.employee-incapacity-details dt{
  margin:0 0 .14rem;
  color:var(--color-muted);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.employee-incapacity-details dd{
  margin:0;
  color:var(--color-fg);
  overflow-wrap:anywhere;
}

.employee-incapacity-actions{
  display:flex;
  justify-content:flex-end;
  gap:.5rem;
  flex-wrap:wrap;
}

@media (max-width:720px){
  .employee-shell{
    padding:1rem;
    place-items:start center;
  }

  .employee-hero{
    grid-template-columns:1fr;
    padding:1.1rem;
  }

  .employee-hero__brand{
    align-items:flex-start;
    flex-direction:column;
  }

  .employee-hero__logo{
    width:58px;
    height:48px;
  }

  .employee-hero__logo--client{
    width:96px;
  }

  .employee-grid{
    grid-template-columns:1fr;
  }

  .employee-dashboard-overview{
    grid-template-columns:1fr;
    gap:.95rem;
  }

  .employee-session-titlebar{
    align-items:stretch;
    flex-direction:column;
    gap:.7rem;
  }

  .employee-session-titlebar .btn{
    align-self:flex-start;
  }

  .employee-cert-actions{
    padding:1rem 0 0;
    border-left:0;
    border-top:1px solid color-mix(in srgb,var(--color-primary) 14%, var(--color-border));
  }

  .employee-help-strip{
    align-items:flex-start;
    flex-direction:column;
  }

  .employee-incapacity-header{
    flex-direction:column;
    align-items:stretch;
  }

  .employee-incapacity-header .btn{
    align-self:flex-start;
  }

  .employee-incapacity-filters{
    grid-template-columns:1fr;
  }

  .employee-incapacity-filters .btn{
    width:100%;
  }

  .employee-incapacity-item__main{
    flex-direction:column;
  }

  .employee-incapacity-details{
    grid-template-columns:1fr;
  }

  .employee-incapacity-actions{
    justify-content:stretch;
  }

  .employee-incapacity-actions .btn{
    flex:1 1 160px;
  }
}
