html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.sso-app {
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 32%, #f1f5f9 100%);
  color: #0f172a;
}

.sso-navbar {
  background: linear-gradient(90deg, #0b3d91 0%, #0d6efd 55%, #3d8bfd 100%);
}

.sso-brand-mark {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0b3d91;
  background: rgba(255, 255, 255, 0.92);
}

.sso-footer {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(6px);
}

.card.sso-card {
  border: none;
  border-radius: 0.75rem;
}

.sso-logo {
  font-size: 1.25rem;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.2rem rgba(13, 110, 253, 0.35);
}

/* 工作台 / 落地页（Home/Index） */
.portal-landing {
    --portal-primary: #1859a9;
    --portal-primary-hover: #134a8f;
    min-height: 100vh;
    margin: 0;
    font-family: Poppins;
    background: radial-gradient(ellipse 120% 80% at 50% 50%, #1a5cad 0%, #1859a9 42%, #2d7ec8 100%), radial-gradient(ellipse 60% 50% at 0% 0%, rgba(147, 210, 255, 0.45) 0%, transparent 55%), radial-gradient(ellipse 55% 45% at 100% 100%, rgba(147, 210, 255, 0.4) 0%, transparent 50%);
    color: #fff;
}

.portal-landing__wrap {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem 4rem;
}

.portal-landing__hero {
  flex: 1 1 320px;
  max-width: 480px;
}

.portal-landing__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background:#BDD3E6;
  color:#1859a9;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.portal-landing__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.portal-landing__title-line {
  display: block;
}

.portal-landing__title-line--emph {
  margin-top: 0.15rem;
}

.portal-landing__desc {
  margin: 0;
  max-width: 26rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.portal-landing__card {
  flex: 0 1 400px;
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 1.5rem;
  background: #fff;
  color: #1a1a1a;
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px rgba(8, 40, 88, 0.22);
}

.portal-landing__card-title {
  margin: 0 0 0.35rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: #111;
}

.portal-landing__card-sub {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

.portal-landing__card-sub strong {
  color: #333;
  font-weight: 600;
}

.portal-landing__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portal-landing__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portal-landing__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #d8dde3;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-landing__input::placeholder {
  color: #9ca3af;
}

.portal-landing__input:focus {
  border-color: var(--portal-primary);
  box-shadow: 0 0 0 3px rgba(24, 89, 169, 0.15);
}

.portal-landing__submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--portal-primary);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.portal-landing__submit:hover {
  background: var(--portal-primary-hover);
}

.portal-landing__card-foot--compact {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}

.portal-landing__sites {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-landing__site-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  text-align: left;
  color: #fff;
  background: var(--portal-primary);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.portal-landing__site-btn:hover:not(:disabled) {
  background: var(--portal-primary-hover);
}

.portal-landing__site-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.portal-landing__site-name {
  font-weight: 500;
}

.portal-landing__site-action {
  font-size: 0.8125rem;
  opacity: 0.9;
}

.portal-landing__empty {
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem 0;
}

.portal-landing__card-foot {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.portal-landing__logout-wrap {
  margin-bottom: 0.5rem;
}

.portal-landing__logout {
  padding: 0;
  font-size: 0.8125rem;
  color: #888;
  text-decoration: none;
}

.portal-landing__logout:hover {
  color: var(--portal-primary);
}

.portal-landing__copyright {
  font-size: 0.75rem;
  color: #999;
}

@media (max-width: 767.98px) {
  .portal-landing__wrap {
    padding: 2rem 1.25rem;
    gap: 2rem;
  }

  .portal-landing__hero {
    text-align: center;
  }

  .portal-landing__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .portal-landing__desc {
    margin-left: auto;
    margin-right: auto;
  }
}

/* 登录页 — 左右分栏 */
.portal-login {
  --portal-login-primary: #1a4d8f;
  --portal-login-primary-hover: #153f78;
  --portal-login-accent: #e67e22;
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  background: #fff;
}

.portal-login__layout {
  display: flex;
  min-height: 100vh;
}

.portal-login__brand {
  position: relative;
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  overflow: hidden;
  background: linear-gradient(145deg, #1a4d8f 0%, #1e5aa3 48%, #2268b8 100%);
  color: #fff;
}

.portal-login__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.portal-login__deco-circle {
  position: absolute;
  top: -8%;
  right: -6%;
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.portal-login__deco-square {
  position: absolute;
  bottom: 8%;
  left: -4%;
  width: min(38vw, 280px);
  height: min(38vw, 280px);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  transform: rotate(-18deg);
}

.portal-login__brand-inner {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  text-align: center;
}

.portal-login__logo img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 2rem;
}

.portal-login__tagline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.portal-login__tagline-en {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.portal-login__tagline-en span {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

.portal-login__panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: #fff;
}

.portal-login__panel-inner {
  width: 100%;
  max-width: 400px;
}

.portal-login__head {
  margin-bottom: 2rem;
}

.portal-login__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #111;
}

.portal-login__subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: #6b7280;
}

.portal-login__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portal-login__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.portal-login__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
}

.portal-login__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.portal-login__input-icon {
  position: absolute;
  left: 0.9rem;
  display: flex;
  color: #9ca3af;
  pointer-events: none;
}

.portal-login__input {
  width: 100%;
  padding: 0.8rem 2.75rem 0.8rem 2.65rem;
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.625rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-login__input::placeholder {
  color: #9ca3af;
}

.portal-login__input:focus {
  border-color: var(--portal-login-primary);
  box-shadow: 0 0 0 3px rgba(26, 77, 143, 0.12);
}

.portal-login__input--plain {
  padding: 0.8rem 1rem;
}

.portal-login__toggle-pwd {
  position: absolute;
  right: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: #9ca3af;
  background: none;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.portal-login__toggle-pwd:hover {
  color: #6b7280;
}

.portal-login__submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--portal-login-primary);
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.portal-login__submit:hover {
  background: var(--portal-login-primary-hover);
}

.portal-login__foot {
  margin-top: 2.5rem;
  text-align: center;
}

.portal-login__copyright {
  font-size: 0.75rem;
  color: #9ca3af;
}

@media (max-width: 991.98px) {
  .portal-login__layout {
    flex-direction: column;
  }

  .portal-login__brand {
    flex: 0 0 auto;
    min-height: 280px;
    padding: 2.5rem 1.5rem;
  }

  .portal-login__logo img {
    max-width: 220px;
    margin-bottom: 1.25rem;
  }

  .portal-login__panel {
    flex: 1 1 auto;
    padding: 2rem 1.5rem 2.5rem;
  }
}

/* 个人工作台（Home/Index 设计稿） */
.portal-workbench {
    --wb-primary: #005AA9;
    --wb-primary-dark: #134a8f;
    --wb-bg: #f5f7fa;
    --wb-text: #000;
    --wb-muted: #6b7280;
    --wb-success: #16a34a;
    --wb-success-bg: #dcfce7;
    --wb-warning: #F59E0B;
    --wb-warning-bg: #ffedd5;
    min-height: 100vh;
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    background: var(--wb-bg);
    color: var(--wb-text);
}

.portal-wb-header {
  background: var(--wb-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(8, 40, 88, 0.12);
}

.portal-wb-header__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portal-wb-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
}

.portal-wb-brand:hover {
  color: rgba(255, 255, 255, 0.92);
}

.portal-wb-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem 1.75rem;
  font-size: 0.875rem;
}

.portal-wb-header__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  white-space: nowrap;
}

.portal-wb-header__item--btn {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.portal-wb-header__item--btn:hover {
  opacity: 0.9;
}

.portal-wb-header__logout-form {
  margin: 0;
}

.portal-wb-header__icon {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  opacity: 0.95;
}

.portal-wb-header__icon--user {
  border-radius: 50%;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
}

.portal-wb-header__icon--globe {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E");
}

.portal-wb-header__icon--logout {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E");
}

.portal-wb-main {
  flex: 1;
}

.portal-wb-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.portal-wb-greeting {
  margin-bottom: 1.75rem;
}

.portal-wb-greeting__title {
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color: var(--wb-primary);
}

.portal-wb-greeting__desc {
    color: var(--wb-text);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.portal-wb-stat-card {
  height: 100%;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.portal-wb-stat-card__label {
  font-size: 0.875rem;
  color: var(--wb-muted);
  margin-bottom: 0.35rem;
}

.portal-wb-stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--wb-primary);
}

.portal-wb-stat-card__unit {
  font-size: 1rem;
  font-weight: 600;
}

.portal-wb-stat-card__hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.4;
}

.portal-wb-stat-card__hint--accent {
  color: var(--wb-warning);
}

.portal-wb-stat-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.portal-wb-chip {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
}

.portal-wb-section-title {
    color: var(--wb-text);
    font-size: 32px;
    font-weight: 700;
    margin-bottom:20px;
}

.portal-wb-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.portal-wb-filter__btn {
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wb-text);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.portal-wb-filter__btn:hover {
  color: var(--wb-primary);
  border-color: #c7d2fe;
}

.portal-wb-filter__btn.is-active {
  color: #fff;
  background: var(--wb-primary);
  border-color: var(--wb-primary);
}

.portal-wb-category {
  margin-bottom: 2rem;
}

.portal-wb-category:last-child {
  margin-bottom: 0;
}

.portal-wb-category__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--wb-text);
}

.portal-wb-sys-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.portal-wb-sys-card__head .portal-sys-icon {
  margin-bottom: 0;
}

.portal-wb-sys-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 11.5rem;
    padding: 1.25rem 1.35rem 1.1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    cursor: default;
}

.portal-wb-sys-card__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.75rem;
  text-align: center;
  color: #fff;
  background: #ef4444;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}

.portal-wb-sys-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
  color: inherit;
}

.portal-wb-sys-card.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.portal-sys-icon {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #F0FDFA 0%, #F0FDFA 100%);
    position: relative;
    flex-shrink: 0;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}
.portal-sys-icon-img {
    width: 1.25rem;
    height: 1.25rem;
}

    .portal-wb-sys-card__title {
        margin: 0 0 0.5rem;
        font-size: 1rem;
        font-weight: 700;
        color: var(--wb-text);
    }

.portal-wb-sys-card__desc {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--wb-muted);
}

.portal-wb-sys-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
}

.portal-wb-sys-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--wb-primary);
  border: none;
  border-radius: 0.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.portal-wb-sys-card__btn:hover {
  background: var(--wb-primary-dark);
  transform: translateX(2px);
  color: #fff;
}

.portal-wb-sys-card__btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.portal-wb-sys-card__btn-arrow {
  flex-shrink: 0;
}

.portal-wb-tag {
  align-self: flex-start;
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.35rem;
}

.portal-wb-tag--success {
  color: var(--wb-success);
  background: var(--wb-success-bg);
}

.portal-wb-tag--warning {
  color: var(--wb-warning);
  background: var(--wb-warning-bg);
}

.portal-wb-empty {
  padding: 2rem;
  text-align: center;
  background: #fff;
  border-radius: 0.75rem;
}

@media (max-width: 575.98px) {
  .portal-wb-header__inner {
    flex-wrap: wrap;
  }

  /* Hamburger toggle (visible only on mobile) */
  .portal-wb-header__menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.25rem;
    margin-left: auto;
    background: transparent;
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    gap: 3px;
    transition: background-color 0.15s ease;
  }

  .portal-wb-header__menu-toggle:hover,
  .portal-wb-header__menu-toggle:focus {
    background: rgba(255, 255, 255, 0.15);
  }

  .portal-wb-header__menu-toggle-bar {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .portal-wb-header__menu-toggle[aria-expanded="true"] .portal-wb-header__menu-toggle-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .portal-wb-header__menu-toggle[aria-expanded="true"] .portal-wb-header__menu-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .portal-wb-header__menu-toggle[aria-expanded="true"] .portal-wb-header__menu-toggle-bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  /* Actions panel hidden by default on mobile */
  .portal-wb-header__actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
    padding-top: 0;
    padding-bottom: 0;
  }

  .portal-wb-header__actions.is-open {
    max-height: 20rem;
    opacity: 1;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    gap: 0.75rem 1rem;
  }

  .portal-wb-header__item {
    width: 100%;
    padding: 0.35rem 0;
  }

  .portal-wb-header__item--btn {
    width: auto;
  }

  .portal-wb-header__logout-form {
    margin: 0;
  }

  .portal-wb-content {
    padding: 1.25rem 1rem 2rem;
  }

  .portal-wb-stat-card__value {
    font-size: 1.65rem;
  }
}

/* ── Desktop: hide hamburger ── */
@media (min-width: 576px) {
  .portal-wb-header__menu-toggle {
    display: none;
  }
}

/* ── Merged eForm card with dropdown ── */
.portal-wb-sys-card--eform {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 13.5rem;
  padding: 1.25rem 1.35rem 1.1rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  cursor: default;
  position: relative;
  overflow: visible;
}

.portal-wb-sys-card--eform:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.portal-wb-sys-card--eform .portal-wb-sys-card__title {
  color: var(--wb-primary);
}

.portal-wb-eform-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.portal-wb-eform-link:hover {
  opacity: 0.85;
}

.portal-wb-eform-link.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ── eForm card footer: tag + jump button ── */
.portal-wb-eform-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
}

.portal-wb-eform-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--wb-primary);
  border: none;
  border-radius: 0.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.portal-wb-eform-btn:hover {
  background: var(--wb-primary-dark);
  transform: translateX(2px);
  color: #fff;
}

.portal-wb-eform-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.portal-wb-eform-btn__arrow {
  flex-shrink: 0;
}

.portal-wb-eform-selector {
  position: relative;
  margin: 0 0 0.85rem;
}

.portal-wb-dropdown {
  z-index: 1;
}

.portal-wb-dropdown.is-open {
  z-index: 40;
}

.portal-wb-dropdown__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wb-text);
  line-height: 1.3;
}

.portal-wb-dropdown__control {
  position: relative;
}

.portal-wb-dropdown__trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.375rem;
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  color: var(--wb-text);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    border-radius 0.15s ease;
}

.portal-wb-dropdown__trigger:hover {
  border-color: #b8bcc4;
}

.portal-wb-dropdown__trigger:focus {
  outline: none;
}

    .portal-wb-dropdown__trigger:focus-visible {
        border-color: var(--wb-primary);
        box-shadow: 0 0 0 2px rgba(194, 120, 78, 0.15);
    }

.portal-wb-dropdown.is-open .portal-wb-dropdown__trigger {
    border-color: var(--wb-primary);
    border-bottom-color: var(--wb-primary);
    border-radius: 0.375rem 0.375rem 0 0;
    box-shadow: none;
}

.portal-wb-dropdown__value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-wb-dropdown__chevron {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.15rem;
  border-right: 1.5px solid #6b7280;
  border-bottom: 1.5px solid #6b7280;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
  pointer-events: none;
}

.portal-wb-dropdown.is-open .portal-wb-dropdown__chevron {
  margin-top: 0.1rem;
  transform: rotate(-135deg);
}

.portal-wb-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--wb-primary);
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
    max-height: 13.5rem;
    overflow-y: auto;
    z-index: 50;
}

.portal-wb-dropdown__menu[hidden] {
  display: none !important;
}

.portal-wb-dropdown__option {
  padding: 0.7rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--wb-text);
  cursor: pointer;
  border-bottom: 1px solid #eef0f2;
  transition: background-color 0.12s ease;
}

.portal-wb-dropdown__option:last-child {
  border-bottom: none;
}

.portal-wb-dropdown__option:hover,
.portal-wb-dropdown__option.is-highlighted,
.portal-wb-dropdown__option.is-selected,
.portal-wb-dropdown__option[aria-selected="true"] {
  background: #eef2f6;
}

.portal-wb-eform-select--native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Session expiration text in header ── */
.portal-wb-header__item--expires {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.8;
  white-space: nowrap;
}

.portal-wb-header__refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 0.25rem;
  transition: background-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.portal-wb-header__refresh-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.portal-wb-header__refresh-btn:disabled {
  cursor: wait;
  opacity: 0.5;
}

.portal-wb-header__refresh-icon {
  display: block;
  width: 13px;
  height: 13px;
  transform-origin: center;
  transition: transform 0.6s ease;
}

.portal-wb-header__refresh-btn.is-spinning .portal-wb-header__refresh-icon {
  animation: portal-refresh-spin 0.6s linear;
}

@keyframes portal-refresh-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.portal-wb-header__item--expires-text {
  display: inline;
}
