:is(html.wedoc-apps-page, body.wedoc-apps-page) {
  background:
    radial-gradient(circle at 18% 14%, rgba(169, 199, 170, 0.20), transparent 30rem),
    radial-gradient(circle at 88% 82%, rgba(40, 111, 60, 0.08), transparent 28rem),
    #f7f9f6;
}

:is(html.wedoc-apps-page, body.wedoc-apps-page) .group\/sidebar-wrapper > .group.peer {
  display: none !important;
}

:is(html.wedoc-apps-page, body.wedoc-apps-page) header.sticky {
  height: 72px;
  border-bottom: 0;
  padding: 0 clamp(20px, 5vw, 72px);
  background: transparent;
  backdrop-filter: none;
}

:is(html.wedoc-apps-page, body.wedoc-apps-page) header.sticky [data-sidebar="trigger"],
:is(html.wedoc-apps-page, body.wedoc-apps-page) header.sticky nav[aria-label="Breadcrumb"] {
  display: none !important;
}

:is(html.wedoc-apps-page, body.wedoc-apps-page) main.scrollbar-thin > div {
  max-width: none;
  padding: 0;
}

:is(html.wedoc-apps-page, body.wedoc-apps-page) #footer {
  display: none;
}

/* The self-service account editor is a product surface, not an admin screen.
   Keep its account controls while removing the empty console navigation and
   upstream vendor footer. */
:is(html.wedoc-account-page, body.wedoc-account-page) .group\/sidebar-wrapper > .group.peer {
  display: none !important;
}

:is(html.wedoc-account-page, body.wedoc-account-page) header.sticky [data-sidebar="trigger"] {
  display: none !important;
}

:is(html.wedoc-account-page, body.wedoc-account-page) #footer {
  display: none;
}

:is(html.wedoc-account-page, body.wedoc-account-page) main.scrollbar-thin > div {
  max-width: 1440px;
  padding-left: clamp(18px, 3vw, 44px);
  padding-right: clamp(18px, 3vw, 44px);
}

.wedoc-portal-shell {
  width: min(920px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) 0 88px;
}

.wedoc-portal-hero {
  max-width: 660px;
  margin-bottom: 34px;
}

.wedoc-portal-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(40, 111, 60, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #286f3c;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.wedoc-portal-hero h1 {
  margin: 18px 0 8px;
  color: #152219;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.wedoc-portal-hero p {
  margin: 0;
  color: #667069;
  font-size: 16px;
  line-height: 1.7;
}

.wedoc-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wedoc-portal-card {
  position: relative;
  display: flex;
  min-height: 164px;
  align-items: center;
  gap: 18px;
  padding: 26px 24px;
  overflow: hidden;
  border: 1px solid rgba(24, 63, 39, 0.10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 16px 44px rgba(25, 52, 32, 0.07);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.wedoc-portal-card::after {
  position: absolute;
  inset: auto -42px -54px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(169, 199, 170, 0.13);
  content: "";
  pointer-events: none;
}

.wedoc-portal-card:hover,
.wedoc-portal-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(40, 111, 60, 0.28);
  box-shadow: 0 22px 58px rgba(25, 52, 32, 0.12);
  outline: none;
}

.wedoc-portal-card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: #f3f6f1;
  box-shadow: inset 0 0 0 1px rgba(24, 63, 39, 0.05);
}

.wedoc-portal-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wedoc-portal-card-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 7px;
}

.wedoc-portal-card-copy strong {
  color: #17231a;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wedoc-portal-card-copy > span {
  color: #727a74;
  font-size: 14px;
  line-height: 1.55;
}

.wedoc-portal-card-action {
  position: relative;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 999px;
  background: #edf3ec;
  color: #286f3c;
  font-size: 20px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.wedoc-portal-card:hover .wedoc-portal-card-action,
.wedoc-portal-card:focus-visible .wedoc-portal-card-action {
  transform: translateX(3px);
  background: #286f3c;
  color: #fff;
}

.wedoc-portal-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: #7a827c;
  font-size: 13px;
}

.wedoc-portal-security {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #42975a;
  box-shadow: 0 0 0 4px rgba(66, 151, 90, 0.12);
}

.wedoc-portal-meta-divider {
  width: 1px;
  height: 14px;
  margin: 0 2px;
  background: rgba(24, 63, 39, 0.14);
}

.wedoc-portal-meta a {
  color: #286f3c;
  font-weight: 600;
  text-decoration: none;
}

.wedoc-portal-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  body.wedoc-apps-page header.sticky {
    height: 64px;
    padding: 0 18px;
  }

  .wedoc-portal-shell {
    width: min(100% - 32px, 540px);
    min-height: calc(100vh - 64px);
    padding: 34px 0 56px;
  }

  .wedoc-portal-hero {
    margin-bottom: 26px;
  }

  .wedoc-portal-grid {
    grid-template-columns: 1fr;
  }

  .wedoc-portal-card {
    min-height: 140px;
    padding: 22px 20px;
    border-radius: 20px;
  }

  .wedoc-portal-card-icon {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-radius: 17px;
  }
}

@media (max-width: 440px) {
  .wedoc-portal-card {
    gap: 14px;
  }

  .wedoc-portal-card-action {
    display: none;
  }

  .wedoc-portal-meta {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wedoc-portal-card,
  .wedoc-portal-card-action {
    transition: none;
  }
}
