[data-px-verify-ok][hidden],
[data-px-verify-err][hidden],
[data-px-register-wrap][hidden],
[data-px-forgot-wrap][hidden],
[data-px-account-hint][hidden],
[data-px-company-admin][hidden],
[data-px-company-user][hidden],
[data-px-org-empty][hidden],
[data-px-account][hidden],
[data-px-account-menu][hidden],
.px-modal[hidden],
[data-px-ticket-new][hidden],
[data-px-token-request][hidden],
[data-px-collab-invite][hidden] {
  display: none !important;
}

.px-ec-loaded form[data-px-portal-login] {
  position: relative;
}

.px-portal,
.px-portal-inner {
  overflow: visible;
}

.px-portal-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: visible;
}

.px-portal.is-authed .px-portal-nav {
  display: flex;
  flex-wrap: nowrap;
}

.px-portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-width: 0;
  align-items: center;
}

.px-portal-account {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
  z-index: 30;
}

.px-portal-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: #0ea5d8;
  color: #0b1f3a;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.px-portal-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 260px;
  z-index: 40;
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.12);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.px-portal-menu .px-account-name {
  margin: 0;
  font-weight: 700;
  color: #0b1f3a;
}

.px-portal-menu .px-account-email {
  margin: 4px 0 8px;
  color: #5b6b7c;
  font-size: 13px;
}

.px-portal-menu button,
.px-portal-menu a {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #f4f7fb;
  color: #0b1f3a;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.px-portal-menu .is-danger {
  background: #fdecea;
  color: #9b1c1c;
}

.px-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(11, 31, 58, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.px-modal-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  width: min(460px, 100%);
  display: grid;
  gap: 12px;
}

.px-modal-card h3 {
  margin: 0;
  color: #0b1f3a;
}

.px-form label {
  font-size: 13px;
  font-weight: 600;
  color: #0b1f3a;
}

.px-form input,
.px-form select,
.px-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #ffffff;
  color: #0b1f3a;
}

.px-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
}

.px-btn-navy {
  background: #0b1f3a;
  color: #ffffff;
}

.px-btn-ghost {
  background: transparent;
  color: #0b1f3a;
  border: 1px solid #d7e0ea;
}

.px-portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.px-portal-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin: 0 0 8px;
}

.px-portal-alert.is-warn {
  background: #fff6e5;
  border: 1px solid #f3d19c;
  color: #8a5a00;
}

.px-portal-alert.is-err {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #9b1c1c;
}

@media (max-width: 768px) {
  .px-portal-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
}
