: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) {
  background:
    radial-gradient(circle at 12% 18%, rgba(169, 199, 170, 0.20), transparent 28rem),
    radial-gradient(circle at 88% 84%, rgba(40, 111, 60, 0.08), transparent 30rem),
    #f7f9f6;
}

: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 {
  height: 72px;
  border-bottom: 0;
  padding: 0 clamp(20px, 5vw, 72px);
  background: transparent;
  backdrop-filter: none;
}

:is(html.wedoc-account-page, body.wedoc-account-page) header.sticky [data-sidebar="trigger"],
:is(html.wedoc-account-page, body.wedoc-account-page) header.sticky nav[aria-label="Breadcrumb"] {
  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: 960px;
  padding-left: clamp(18px, 3vw, 44px);
  padding-right: clamp(18px, 3vw, 44px);
}

:is(html.wedoc-account-page, body.wedoc-account-page) main.scrollbar-thin {
  padding-bottom: 72px;
}

:is(html.wedoc-account-page, body.wedoc-account-page) main.scrollbar-thin > div > .space-y-4 {
  gap: 24px;
}

:is(html.wedoc-account-page, body.wedoc-account-page) main.scrollbar-thin > div > .space-y-4 > .sticky {
  position: static;
  z-index: auto;
  margin: 0;
  padding: clamp(42px, 7vw, 76px) 0 0;
  border: 0;
  background: transparent;
}

:is(html.wedoc-account-page, body.wedoc-account-page) main.scrollbar-thin h1 {
  color: #152219;
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

:is(html.wedoc-account-page, body.wedoc-account-page) main.scrollbar-thin h1::after {
  display: block;
  margin: 12px 0 0 42px;
  color: #717b74;
  content: "进入工作空间，维护头像与登录安全。";
  font-size: 15px;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.65;
}

:is(html.wedoc-account-page, body.wedoc-account-page) main.scrollbar-thin h1 button:first-child {
  display: none;
}

.wedoc-account-workspaces {
  display: grid;
  gap: 14px;
  padding: 4px 0 0;
}

.wedoc-account-workspaces-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wedoc-account-workspaces-heading span {
  color: #1d2c21;
  font-size: 16px;
  font-weight: 760;
}

.wedoc-account-workspaces-heading small {
  color: #7a827c;
  font-size: 12px;
}

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

.wedoc-account-workspace-grid > a {
  display: grid;
  min-width: 0;
  min-height: 94px;
  grid-template-columns: 54px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(24, 63, 39, 0.10);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(25, 52, 32, 0.05);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.wedoc-account-workspace-grid > a:hover,
.wedoc-account-workspace-grid > a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(40, 111, 60, 0.28);
  box-shadow: 0 16px 38px rgba(25, 52, 32, 0.10);
  outline: none;
}

.wedoc-account-workspace-grid img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: contain;
}

.wedoc-account-workspace-grid a > span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.wedoc-account-workspace-grid strong {
  color: #17231a;
  font-size: 18px;
}

.wedoc-account-workspace-grid small {
  overflow: hidden;
  color: #727a74;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wedoc-account-workspace-grid b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #edf3ec;
  color: #286f3c;
  font-size: 17px;
}

:is(html.wedoc-account-page, body.wedoc-account-page) main.scrollbar-thin [class~="rounded-xl"][class~="border"] {
  overflow: hidden;
  border-color: rgba(24, 63, 39, 0.10);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(25, 52, 32, 0.08);
}

:is(html.wedoc-account-page, body.wedoc-account-page) main.scrollbar-thin [class~="rounded-xl"] > [class~="pt-6"] {
  padding: clamp(24px, 4vw, 42px);
}

:is(html.wedoc-account-page, body.wedoc-account-page) main.scrollbar-thin [class~="grid-cols-1"] {
  gap: 18px 28px;
}

:is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-avatar {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  padding: 0 0 30px;
  border-bottom: 1px solid rgba(24, 63, 39, 0.10);
}

:is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-avatar::before {
  display: block;
  margin-bottom: 20px;
  color: #286f3c;
  content: "个人头像";
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

:is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-avatar > label {
  margin-bottom: 9px;
  color: #526059;
}

:is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-avatar > div > div {
  gap: 18px;
}

:is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-avatar [class~="h-16"][class~="w-16"] {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border: 6px solid #f0f5ef;
  box-shadow: 0 0 0 1px rgba(40, 111, 60, 0.14);
}

:is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-avatar input:not([type="file"]) {
  display: none;
}

:is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-avatar button,
:is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-password button,
:is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-email button {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 700;
}

:is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-avatar button {
  border-color: rgba(40, 111, 60, 0.28);
  background: #edf3ec;
  color: #286f3c;
}

:is(html.wedoc-account-page, body.wedoc-account-page) :is(.wedoc-account-field-email, .wedoc-account-field-password) {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(24, 63, 39, 0.10);
  border-radius: 18px;
  background: #fbfcfa;
}

:is(html.wedoc-account-page, body.wedoc-account-page) :is(.wedoc-account-field-email, .wedoc-account-field-password) > label {
  margin-bottom: 9px;
  color: #1d2c21;
  font-size: 15px;
  font-weight: 750;
}

:is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-email input {
  min-width: 0;
  background: #fff;
}

.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,
  body.wedoc-account-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;
  }

  :is(html.wedoc-account-page, body.wedoc-account-page) main.scrollbar-thin > div > .space-y-4 > .sticky {
    padding-top: 28px;
  }

  :is(html.wedoc-account-page, body.wedoc-account-page) main.scrollbar-thin h1::after {
    margin-left: 0;
  }

  :is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-avatar > div > div {
    flex-wrap: wrap;
  }

  :is(html.wedoc-account-page, body.wedoc-account-page) .wedoc-account-field-avatar [class~="h-16"][class~="w-16"] {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

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

@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;
  }
}
