:root {
  --hou-navy: #0f172a;
  --hou-blue: #2563eb;
  --hou-cyan: #0ea5e9;
  --hou-orange: #f58200;
  --hou-text: #1e293b;
  --hou-muted: #64748b;
  --hou-border: #e2e8f0;
  --hou-white: #fff;
  --hou-bg: #f1f5f9;
  --hou-radius: 16px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--hou-text);
  background: var(--hou-bg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--hou-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(37, 99, 235, .09), transparent 35%),
    linear-gradient(145deg, #f0f6ff 0%, #f8fafc 55%, #fff 100%);
}

a {
  color: #0754c5;
}

.member-app {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.member-layout {
  width: min(100%, 1000px);
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  overflow: hidden;
  background: var(--hou-white);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .13);
}

.member-welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(32px, 6vh, 64px);
  padding: clamp(28px, 4vw, 52px);
  color: var(--hou-white);
  background:
    radial-gradient(circle at 90% 15%, rgba(14, 165, 233, .25), transparent 32%),
    linear-gradient(145deg, #0f172a, #1e3a6e);
}

.member-brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.hou-brand-lockup {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.hou-brand-name,
.auth-brand-name {
  display: flex;
  gap: 0;
  color: #0754c5;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
}

.hou-brand-name > :last-child,
.auth-brand-name > :last-child {
  color: #f58200;
}

.hou-brand-subtitle,
.auth-brand-subtitle {
  color: #123f78;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .015em;
  line-height: 1.2;
}

.member-brand img,
.mobile-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 4px;
  object-fit: contain;
  background: var(--hou-white);
  border-radius: 12px;
}

.member-brand:hover,
.mobile-brand:hover {
  color: inherit;
}

.welcome-copy {
  margin: 0;
}

.eyebrow {
  color: #ffb35c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.welcome-copy h1 {
  margin: 14px 0;
  color: var(--hou-white);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
}

.welcome-copy h1[hidden] {
  display: none;
}

.welcome-copy p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  line-height: 1.7;
}

.welcome-benefits {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-layout[data-auth-view="login"] .welcome-benefits {
  display: none;
}

.auth-form label {
  color: var(--hou-text);
  font-size: 12px;
  font-weight: 700;
}

.welcome-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
}

.welcome-benefits i {
  color: #ffab45;
}

.member-access {
  width: 100%;
  max-width: 510px;
  align-self: center;
  justify-self: center;
  padding: clamp(26px, 4vw, 48px);
}

.auth-hero {
  display: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 30px;
  background: #f1f5f9;
  border: 1px solid var(--hou-border);
  border-radius: 13px;
}

.auth-tab {
  flex: 1;
  padding: 12px 16px;
  color: var(--hou-muted);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.auth-tab:hover {
  color: var(--hou-navy);
}

.auth-tab.active {
  color: var(--hou-white);
  background: var(--hou-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .22);
}

.auth-heading {
  margin-bottom: 20px;
}

.auth-heading h2 {
  margin: 0 0 5px;
  color: var(--hou-navy);
  font-size: 27px;
  font-weight: 800;
}

.auth-heading p {
  margin: 0;
  color: var(--hou-muted);
  font-size: 13px;
  line-height: 1.6;
}

.account-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  margin-bottom: 18px;
  color: #174078;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.55;
}

.account-notice > i {
  margin-top: 2px;
  color: var(--hou-blue);
}

.account-notice a,
.auth-switch a {
  color: #0754c5;
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.signup-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--hou-muted);
  font-size: 12px;
  font-weight: 700;
}

.signup-progress-track {
  height: 5px;
  overflow: hidden;
  background: #e8eef7;
  border-radius: 99px;
}

.signup-progress-track > span {
  display: block;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, var(--hou-blue), var(--hou-cyan));
  border-radius: inherit;
  transition: width .2s ease;
}

.signup-step {
  display: grid;
  gap: 8px;
}

.signup-step-heading {
  margin: 0 0 6px;
  color: var(--hou-muted);
  font-size: 13px;
  line-height: 1.5;
}

.signup-step-heading strong {
  color: var(--hou-navy);
  overflow-wrap: anywhere;
}

.signup-step-actions {
  display: flex;
  gap: 10px;
}

.signup-step-actions .auth-submit {
  flex: 1;
}

.signup-resend {
  justify-self: center;
  padding: 7px 10px;
  margin-top: 2px;
  color: var(--hou-blue);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.signup-resend:hover,
.signup-resend:focus-visible {
  color: var(--hou-navy);
  text-decoration: underline;
}

.auth-submit:disabled,
.auth-secondary:disabled,
.signup-resend:disabled {
  opacity: .65;
  cursor: wait;
}

.auth-secondary {
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  margin-top: 4px;
  color: var(--hou-blue);
  background: var(--hou-white);
  border: 1.5px solid var(--hou-border);
  border-radius: 16px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.auth-secondary:hover,
.auth-secondary:focus-visible {
  background: #f1f5f9;
  border-color: var(--hou-blue);
}

.input-wrap {
  position: relative;
}

.input-wrap > i {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--hou-muted);
  font-size: 14px;
  pointer-events: none;
  transform: translateY(-50%);
}

.input-wrap input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px 12px 43px;
  color: var(--hou-navy);
  background: #fafbfc;
  border: 1.5px solid var(--hou-border);
  border-radius: 12px;
  outline: none;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.input-wrap input::placeholder {
  color: #8a93a2;
}

.input-wrap input:focus {
  background: var(--hou-white);
  border-color: var(--hou-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.forgot-link {
  justify-self: end;
  margin: 2px 0 8px;
  color: var(--hou-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.forgot-link:hover {
  color: var(--hou-navy);
}

.auth-submit {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--hou-navy);
  background: var(--hou-orange);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 7px 20px rgba(245, 130, 0, .24);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  color: var(--hou-white);
  background: var(--hou-blue);
  box-shadow: 0 7px 20px rgba(37, 99, 235, .28);
}

.auth-submit:active {
  transform: scale(.985);
}

.auth-switch {
  margin: 25px 0 0;
  color: var(--hou-muted);
  font-size: 14px;
  text-align: center;
}

.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--hou-muted);
  font-size: 14px;
}

.social-divider::before,
.social-divider::after {
  height: 1px;
  flex: 1;
  background: var(--hou-border);
  content: '';
}

.social-login {
  display: flex;
  gap: 12px;
}

.social-login button {
  display: flex;
  min-height: 58px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--hou-text);
  background: #fafbfc;
  border: 1.5px solid var(--hou-border);
  border-radius: 15px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  opacity: .72;
  cursor: not-allowed;
}

.social-login button:first-child i {
  color: #ea4335;
  font-size: 18px;
}

.social-login button:last-child i {
  color: #1877f2;
  font-size: 19px;
}

.social-login button:disabled {
  opacity: .72;
}

.form-feedback {
  padding: 12px 13px;
  margin: 0 0 18px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.5;
}

.form-feedback.is-success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--hou-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  color: var(--hou-blue);
}

.member-app [hidden] {
  display: none !important;
}

.portal-app {
  width: min(100%, 1080px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 30px 32px 64px;
}

.portal-header,
.portal-brand {
  display: flex;
  align-items: center;
}

.portal-header {
  justify-content: space-between;
  gap: 20px;
}

.portal-brand {
  gap: 12px;
  color: var(--hou-navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.portal-brand img {
  width: 44px;
  height: 44px;
  padding: 4px;
  object-fit: contain;
  background: var(--hou-white);
  border-radius: 12px;
}

.portal-logout {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--hou-blue);
  background: var(--hou-white);
  border: 1px solid var(--hou-border);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.portal-logout:hover,
.portal-logout:focus-visible {
  color: var(--hou-white);
  background: var(--hou-blue);
}

.portal-content {
  width: min(100%, 760px);
  margin: clamp(44px, 9vh, 92px) auto 0;
}

.portal-content > h1 {
  margin: 12px 0 8px;
  color: var(--hou-navy);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.portal-intro {
  margin: 0 0 28px;
  color: var(--hou-muted);
  font-size: 15px;
  line-height: 1.6;
}

.portal-card {
  padding: clamp(20px, 4vw, 32px);
  background: var(--hou-white);
  border: 1px solid var(--hou-border);
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, .08);
}

.portal-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hou-border);
}

.portal-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: var(--hou-blue);
  background: #eff6ff;
  border-radius: 14px;
}

.portal-card-heading h2 {
  margin: 0 0 4px;
  color: var(--hou-navy);
  font-size: 18px;
  font-weight: 800;
}

.portal-card-heading p {
  margin: 0;
  color: var(--hou-muted);
  font-size: 13px;
  line-height: 1.5;
}

.portal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin: 0;
  padding-top: 24px;
}

.portal-details > div {
  min-width: 0;
}

.portal-details dt {
  margin-bottom: 6px;
  color: var(--hou-muted);
  font-size: 12px;
  font-weight: 600;
}

.portal-details dd {
  margin: 0;
  color: var(--hou-text);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.portal-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--hou-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.portal-contact:hover {
  color: var(--hou-navy);
}

@media (max-width: 760px) {
  body {
    background: var(--hou-navy);
  }

  .portal-app {
    min-height: 100vh;
    min-height: 100svh;
    padding: max(18px, env(safe-area-inset-top)) 18px 40px;
    background:
      radial-gradient(ellipse at 15% 10%, rgba(37, 99, 235, .09), transparent 35%),
      linear-gradient(145deg, #f0f6ff 0%, #f8fafc 55%, #fff 100%);
  }

  .portal-header {
    gap: 12px;
  }

  .portal-brand {
    gap: 8px;
    font-size: 12px;
  }

  .portal-brand img {
    width: 38px;
    height: 38px;
  }

  .portal-logout {
    min-height: 40px;
    padding: 0 11px;
    font-size: 12px;
  }

  .portal-content {
    margin-top: 54px;
  }

  .portal-intro {
    margin-bottom: 22px;
    font-size: 14px;
  }

  .portal-card {
    border-radius: 16px;
  }

  .portal-details {
    grid-template-columns: 1fr;
    gap: 17px;
    padding-top: 20px;
  }

  .member-app {
    display: block;
    padding: 0;
  }

  .member-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
    background: var(--hou-white);
    border: 0;
    border-radius: 0 0 0 0;
    box-shadow: none;
  }

  .member-welcome {
    display: none;
  }

  .auth-hero {
    position: relative;
    display: flex;
    min-height: 254px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: max(10px, env(safe-area-inset-top)) 22px 47px;
    overflow: hidden;
    color: var(--hou-white);
    background:
      radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .19) 0 105px, transparent 106px),
      var(--hou-navy);
    text-align: center;
  }

  .auth-hero::after {
    position: absolute;
    right: -46px;
    bottom: -94px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(14, 165, 233, .07);
    content: '';
  }

  .auth-logo {
    position: relative;
    z-index: 1;
    display: grid;
    width: 86px;
    height: 86px;
    margin-bottom: 17px;
    place-items: center;
    background: var(--hou-white);
    border-radius: 27px;
    box-shadow: 0 8px 28px rgba(37, 99, 235, .22);
  }

  .auth-logo img {
    width: 68px;
    height: 68px;
    object-fit: contain;
  }

  .auth-hero .auth-brand-name {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(25px, 7vw, 32px);
  }

  .auth-hero .auth-brand-subtitle {
    position: relative;
    z-index: 1;
    margin-top: 5px;
    color: #dbeafe;
    font-size: clamp(8px, 2.2vw, 10px);
    letter-spacing: .04em;
  }

  .auth-hero p {
    position: relative;
    z-index: 1;
    margin: 11px 0 0;
    color: #38bdf8;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
  }

  .member-access {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    flex: 1;
    align-self: stretch;
    justify-self: auto;
    margin-top: -27px;
    padding: 40px 20px max(30px, env(safe-area-inset-bottom));
    background: var(--hou-white);
    border-radius: 36px 36px 0 0;
  }

  .auth-heading {
    margin-bottom: 24px;
  }

  .auth-heading h2 {
    font-size: 27px;
  }

  .auth-heading p {
    font-size: 16px;
  }

  .input-wrap input {
    min-height: 60px;
    padding-right: 14px;
    padding-left: 56px;
    background: #fafbfc;
    border-width: 1.5px;
    border-radius: 15px;
    font-size: 16px;
  }

  .input-wrap > i {
    left: 18px;
    font-size: 17px;
  }

  .auth-form {
    gap: 11px;
  }

  .forgot-link {
    margin-top: -3px;
    margin-bottom: 0;
    font-size: 14px;
  }

  .auth-submit {
    min-height: 60px;
    margin-top: 4px;
    border-radius: 16px;
    font-size: 17px;
  }

  .auth-secondary {
    min-height: 60px;
    padding: 0 14px;
    border-radius: 15px;
  }

  .social-divider {
    margin: 20px 0 14px;
    font-size: 14px;
  }

  .social-login {
    gap: 10px;
  }

  .social-login button {
    min-height: 54px;
    border-radius: 14px;
    font-size: 14px;
  }

  .auth-switch {
    margin-top: 27px;
    font-size: 14px;
  }

  .back-link {
    margin-top: 27px;
  }
}

@media (max-width: 380px) {
  .member-access {
    padding-right: 18px;
    padding-left: 18px;
  }

  .auth-heading {
    margin-bottom: 22px;
  }

  .input-wrap input {
    min-height: 56px;
  }

  .auth-submit {
    min-height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.portal-content {
  width: min(100%, 1000px);
  margin-top: clamp(32px, 6vh, 60px);
}

.portal-welcome {
  position: relative;
  display: flex;
  min-height: 220px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 5vw, 42px);
  overflow: hidden;
  color: var(--hou-white);
  background:
    radial-gradient(circle at 88% 20%, rgba(14, 165, 233, .22), transparent 27%),
    linear-gradient(125deg, #0f172a, #1e3a6e);
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, .14);
}

.portal-welcome > div,
.portal-welcome-link {
  position: relative;
  z-index: 1;
}

.portal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.portal-welcome h1 {
  margin: 14px 0 8px;
  color: var(--hou-white);
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.portal-welcome p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  line-height: 1.6;
}

.portal-welcome-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  color: var(--hou-white);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.portal-welcome-link:hover,
.portal-welcome-link:focus-visible {
  color: var(--hou-white);
  background: rgba(255, 255, 255, .18);
}

.portal-welcome-decoration {
  position: absolute;
  top: 23px;
  right: 36px;
  color: rgba(255, 255, 255, .08);
  font-size: 120px;
  transform: rotate(-18deg);
}

.portal-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr);
  align-items: start;
  gap: 20px;
  margin-top: 22px;
}

.portal-card {
  min-width: 0;
}

.portal-updates {
  padding: clamp(19px, 3vw, 26px);
}

.portal-updates .portal-card-heading {
  gap: 12px;
  padding-bottom: 19px;
}

.portal-updates-title {
  min-width: 0;
  flex: 1;
}

.portal-update-count {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.portal-announcement {
  padding: 19px 0;
  border-bottom: 1px solid var(--hou-border);
}

.portal-announcement:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.portal-announcement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--hou-muted);
  font-size: 11px;
  font-weight: 600;
}

.portal-announcement-category {
  display: inline-flex;
  padding: 5px 9px;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.category-event {
  color: #7e22ce;
  background: #f3e8ff;
}

.category-important {
  color: #b45309;
  background: #fff7ed;
}

.category-maintenance {
  color: #475569;
  background: #f1f5f9;
}

.portal-announcement h3,
.portal-empty-updates h3 {
  margin: 0;
  color: var(--hou-navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.portal-announcement p,
.portal-empty-updates p {
  margin: 7px 0 0;
  color: var(--hou-muted);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.portal-announcement.is-important {
  margin: 0 -12px;
  padding-right: 12px;
  padding-left: 12px;
  background: #fffaf5;
  border-left: 3px solid var(--hou-orange);
}

.portal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--hou-border);
  color: var(--hou-muted);
  font-size: 11px;
  font-weight: 600;
}

.portal-pagination a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  color: var(--hou-blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.portal-pagination a:hover {
  color: var(--hou-navy);
}

.portal-empty-updates {
  display: grid;
  justify-items: center;
  padding: 38px 12px 22px;
  text-align: center;
}

.portal-empty-updates > span {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  place-items: center;
  color: var(--hou-blue);
  background: #eff6ff;
  border-radius: 17px;
  font-size: 20px;
}

.portal-empty-updates p {
  max-width: 310px;
}

.portal-side-column {
  display: grid;
  gap: 18px;
}

.portal-membership {
  padding: 22px;
}

.portal-membership .portal-card-heading {
  padding-bottom: 18px;
}

.portal-status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 0 3px;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}

.portal-status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #dcfce7;
}

.portal-membership .portal-details {
  grid-template-columns: 1fr;
  gap: 15px;
  padding-top: 17px;
}

.portal-membership .portal-details dt {
  margin-bottom: 4px;
  font-size: 11px;
}

.portal-membership .portal-details dd {
  font-size: 13px;
}

.portal-help-card {
  padding: 22px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
}

.portal-help-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  place-items: center;
  color: var(--hou-blue);
  background: var(--hou-white);
  border-radius: 13px;
}

.portal-help-card h2 {
  margin: 0 0 7px;
  color: var(--hou-navy);
  font-size: 16px;
  font-weight: 800;
}

.portal-help-card p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.65;
}

.portal-help-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: #0754c5;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.portal-help-card a:hover {
  color: var(--hou-navy);
}

@media (max-width: 760px) {
  .portal-content {
    margin-top: 34px;
  }

  .portal-welcome {
    min-height: 0;
    display: block;
    padding: 25px 21px;
    border-radius: 19px;
  }

  .portal-welcome h1 {
    margin-top: 12px;
    font-size: clamp(25px, 7vw, 32px);
  }

  .portal-welcome p {
    max-width: 360px;
    font-size: 13px;
  }

  .portal-welcome-link {
    margin-top: 18px;
    padding: 11px 13px;
  }

  .portal-welcome-decoration {
    top: 16px;
    right: 16px;
    font-size: 82px;
  }

  .portal-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }

  .portal-updates {
    padding: 19px;
  }

  .portal-updates .portal-card-heading {
    gap: 10px;
  }

  .portal-updates .portal-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .portal-update-count {
    padding: 5px 7px;
    font-size: 10px;
  }

  .portal-announcement {
    padding: 17px 0;
  }

  .portal-announcement h3 {
    font-size: 14px;
  }

  .portal-announcement p {
    font-size: 12px;
  }

  .portal-side-column {
    gap: 14px;
  }

  .portal-membership,
  .portal-help-card {
    padding: 19px;
  }

  .portal-membership .portal-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
}

@media (max-width: 380px) {
  .portal-app {
    padding-right: 14px;
    padding-left: 14px;
  }

  .portal-brand span {
    max-width: 145px;
    line-height: 1.25;
  }

  .portal-update-count {
    max-width: 67px;
    text-align: center;
  }

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

.portal-dashboard-body {
  min-width: 320px;
  min-height: 100vh;
  background: #f8fafc;
}

.portal-shell {
  min-height: 100vh;
  background: #f8fafc;
}

.dashboard-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(20px, 5vw, 56px);
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.dashboard-header .portal-brand {
  flex: 0 1 280px;
  min-width: 0;
  color: var(--hou-navy);
  font-size: 16px;
  transition: color .15s ease;
}

.dashboard-header .portal-brand:hover,
.dashboard-header .portal-brand:focus-visible {
  color: var(--hou-blue);
}

.dashboard-header .portal-brand img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 3px;
  background: #fffaf5;
  border: 1px solid #ffedd5;
  border-radius: 9px;
}

.dashboard-header .hou-brand-name {
  font-size: 20px;
}

.dashboard-header .hou-brand-subtitle {
  font-size: 6px;
}

.dashboard-account {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dashboard-account-email {
  max-width: min(30vw, 360px);
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-header .portal-logout {
  min-height: 40px;
  color: #334155;
  border-radius: 8px;
}

.dashboard-header .portal-logout:hover,
.dashboard-header .portal-logout:focus-visible {
  color: #fff;
  background: var(--hou-blue);
  border-color: var(--hou-blue);
}

.dashboard-layout {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: 276px minmax(0, 1fr);
}

.dashboard-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  height: calc(100vh - 76px);
  min-height: 560px;
  flex-direction: column;
  padding: 18px 13px 14px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
}

.profile-progress-card {
  padding: 13px 14px 12px;
  margin-bottom: 18px;
  background: #f8fafc;
  border-radius: 9px;
}

.profile-progress-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #475569;
  font-size: 13px;
}

.profile-progress-card strong {
  color: #1d4ed8;
  font-size: 13px;
}

.profile-progress-track,
.complete-profile-track {
  display: block;
  height: 7px;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 999px;
}

.profile-progress-track > span,
.complete-profile-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: #2563eb;
  border-radius: inherit;
}

.dashboard-nav {
  display: grid;
  gap: 4px;
}

.dashboard-nav-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  color: #475569;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}

.dashboard-nav-link i {
  width: 17px;
  color: #64748b;
  text-align: center;
}

.dashboard-nav-badge {
  display: inline-flex;
  min-width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  margin-left: auto;
  color: #fff;
  background: #dc2626;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-nav-link:hover,
.dashboard-nav-link:focus-visible,
.dashboard-nav-link.is-active {
  color: var(--hou-blue);
  background: #eff6ff;
}

.dashboard-nav-link.is-active {
  font-weight: 600;
  box-shadow: inset 3px 0 var(--hou-orange);
}

.dashboard-nav-link.is-active i,
.dashboard-nav-link:hover i {
  color: var(--hou-blue);
}

.dashboard-sidebar-account {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 14px 13px 5px;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.dashboard-sidebar-account .sidebar-registration {
  color: #94a3b8;
  font-size: 11px;
}

.dashboard-main {
  width: min(100%, 1440px);
  min-width: 0;
  padding: clamp(30px, 4vw, 54px) clamp(20px, 3vw, 40px) 56px;
  margin: 0 auto;
}

.dashboard-page-heading {
  margin-bottom: 36px;
}

.dashboard-page-heading h1 {
  margin: 0 0 7px;
  color: #0f172a;
  font-size: clamp(25px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-page-heading p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.dashboard-page-heading .dashboard-member-id {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 12px;
}

.dashboard-notice {
  padding: 13px 16px;
  margin: 0 0 24px;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-notice.is-warning {
  color: #854d0e;
  background: #fefce8;
  border-color: #fde68a;
}

.complete-profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px 28px;
  padding: 27px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
}

.complete-profile-copy h2,
.dashboard-panel h2 {
  margin: 0;
  color: #172554;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.complete-profile-copy p {
  margin: 5px 0 0;
  color: #1d4ed8;
  font-size: 14px;
  line-height: 1.6;
}

.onboarding-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  color: #fff;
  background: linear-gradient(100deg, var(--hou-blue), #1d4ed8);
  border: 1px solid var(--hou-blue);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease;
}

.onboarding-button:hover,
.onboarding-button:focus-visible {
  color: #fff;
  background: linear-gradient(100deg, #1e40af, #0369a1);
}

.complete-profile-progress {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 11px;
}

.complete-profile-track {
  flex: 1;
  height: 9px;
  background: #bfdbfe;
}

.complete-profile-progress strong {
  color: #1d4ed8;
  font-size: 12px;
}

.overview-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.overview-status-card,
.dashboard-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
}

.overview-status-card {
  display: grid;
  min-height: 100px;
  align-content: center;
  gap: 8px;
  padding: 18px 22px;
}

.overview-status-card span {
  color: #64748b;
  font-size: 14px;
}

.overview-status-card strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
}

.dashboard-panel {
  padding: 25px 27px;
  margin-top: 36px;
}

.recent-payments p {
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.payment-panel-heading,
.payment-form-actions,
.payment-pagination,
.payment-wallet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.payment-panel-heading > span,
.payment-wallet-label,
.payment-wallet-card p,
.payment-form-panel > p,
.payment-form-fields small,
.payment-empty-state {
  color: #64748b;
  font-size: 13px;
}

.payment-wallet-total {
  color: #1d4ed8;
  font-size: 13px;
}

.payment-history-link {
  display: inline-flex;
  gap: 7px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.payment-wallet-card {
  padding: 25px 27px;
  background: linear-gradient(120deg, #eff6ff, #f8fafc);
  border: 1px solid #bfdbfe;
  border-radius: 9px;
}

.payment-wallet-label {
  font-weight: 600;
}

.payment-wallet-card h2 {
  margin: 7px 0;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 34px);
}

.payment-wallet-card p {
  margin: 0;
}

.payment-form-panel[hidden] {
  display: none;
}

.payment-form-panel > p {
  margin: 7px 0 22px;
}

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

.payment-form-fields label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.payment-form-fields input,
.payment-form-fields select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.payment-form-fields input:focus,
.payment-form-fields select:focus {
  outline: 3px solid rgba(37, 99, 235, .18);
  border-color: #2563eb;
}

.payment-form-fields input[readonly] {
  color: #475569;
  background: #f1f5f9;
}

.payment-form-fields small {
  font-weight: 400;
}

.payment-form-actions {
  justify-content: flex-start;
  margin-top: 22px;
}

.payment-cancel-button {
  min-height: 43px;
  padding: 0 14px;
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.payment-form-feedback {
  padding: 12px 14px;
  margin-top: 18px;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.5;
}

.payment-form-feedback.is-error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.payment-form-feedback.is-successful {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.payment-status-indicator {
  display: inline-block;
  width: 15px;
  height: 15px;
  vertical-align: -2px;
}

.payment-status-indicator-loading,
.payment-status-indicator-pending {
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: payment-status-spin .8s linear infinite;
}

.payment-status-indicator-successful::before {
  content: "\2713";
  font-size: 17px;
  font-weight: 800;
}

@keyframes payment-status-spin {
  to { transform: rotate(360deg); }
}

.payment-history-panel {
  overflow: hidden;
}

.payment-table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.payment-table th,
.payment-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  white-space: nowrap;
}

.payment-table th {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.payment-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.payment-status-pending {
  color: #854d0e;
  background: #fef3c7;
}

.payment-status-successful {
  color: #166534;
  background: #dcfce7;
}

.payment-status-failed {
  color: #991b1b;
  background: #fee2e2;
}

.payment-pagination {
  justify-content: center;
  margin-top: 20px;
  color: #64748b;
  font-size: 13px;
}

.payment-pagination a {
  font-weight: 600;
  text-decoration: none;
}

.payment-pagination .is-disabled {
  color: #94a3b8;
}

.payment-empty-state {
  margin: 16px 0 0;
}

.section-placeholder {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.placeholder-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
  place-items: center;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 12px;
}

.section-placeholder p {
  max-width: 560px;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.section-placeholder .onboarding-button {
  margin-top: 22px;
}

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

.update-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  isolation: isolate;
  background: #0f172a;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.update-card-no-image {
  background:
    radial-gradient(ellipse at 82% 20%, rgba(14, 165, 233, .55), transparent 35%),
    linear-gradient(135deg, #0f172a, #164e8a);
}

.update-card::after {
  position: absolute;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, .12) 0%,
    rgba(15, 23, 42, .3) 34%,
    rgba(10, 31, 76, .94) 100%
  );
  content: "";
  inset: 0;
}

.update-card > img {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
  transition: transform .25s ease;
}

.update-card:hover > img {
  transform: scale(1.035);
}

.update-card-overlay {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 20px;
}

.update-category {
  padding: 5px 9px;
  color: #fff;
  background: rgba(37, 99, 235, .88);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.update-card-overlay h2 {
  max-width: 34ch;
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 1.35vw, 22px);
  text-shadow: 0 1px 8px rgba(15, 23, 42, .35);
}

.update-read-more {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: #fff;
  background: #123b82;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.update-read-more:hover,
.update-read-more:focus-visible {
  color: #fff;
  background: #1d4ed8;
}

.update-detail {
  padding: 0;
  overflow: hidden;
}

.update-detail-image {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 360px);
  object-fit: contain;
  background: #e2e8f0;
}

.update-detail-image-placeholder {
  height: clamp(220px, 32vw, 360px);
  background:
    radial-gradient(ellipse at 82% 20%, rgba(14, 165, 233, .55), transparent 35%),
    linear-gradient(135deg, #0f172a, #164e8a);
}

.update-detail-copy {
  padding: clamp(22px, 4vw, 38px);
}

.update-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.update-detail-copy p {
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.update-attachment-link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  margin-top: 22px;
  color: #0754c5;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.update-attachment-link i {
  flex: 0 0 auto;
  color: #dc2626;
}

.updates-empty {
  margin-top: 0;
}

@media (max-width: 760px) {
  .updates-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .update-card {
    min-height: 240px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .updates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.placeholder-link {
  display: inline-block;
  margin-top: 18px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.placeholder-link:hover,
.placeholder-link:focus-visible {
  text-decoration: underline;
}

.onboarding-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto 28px;
}

.onboarding-stepper-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

.onboarding-stepper-item::before {
  position: absolute;
  z-index: 0;
  top: 19px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  content: "";
}

.onboarding-stepper-item:first-child::before {
  display: none;
}

.onboarding-stepper-marker {
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #94a3b8;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
}

.onboarding-stepper-item.is-active {
  color: #1d4ed8;
  font-weight: 600;
}

.onboarding-stepper-item.is-active .onboarding-stepper-marker,
.onboarding-stepper-item.is-complete .onboarding-stepper-marker {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

.onboarding-stepper-item.is-complete {
  color: #334155;
}

.onboarding-stepper-item.is-complete::before,
.onboarding-stepper-item.is-active::before {
  background: #2563eb;
}

.onboarding-panel {
  max-width: 1020px;
  margin: 0 auto;
  padding: 29px 30px 22px;
}

.onboarding-form-step h2 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 22px;
}

.onboarding-form-step > p {
  margin: 0 0 25px;
  color: #64748b;
  font-size: 14px;
}

.onboarding-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 20px;
}

.onboarding-fields label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

.onboarding-fields label > span {
  display: inline;
  color: #94a3b8;
  font-weight: 400;
}

.onboarding-fields input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font: inherit;
  font-weight: 400;
}

.onboarding-fields input[type="file"] {
  padding: 8px;
}

.onboarding-fields input::placeholder {
  color: #94a3b8;
}

.onboarding-fields input:focus {
  border-color: #2563eb;
  outline: 3px solid rgb(37 99 235 / 12%);
}

.onboarding-fields .onboarding-field-wide {
  grid-column: 1 / -1;
}

.onboarding-fields small {
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
}

.onboarding-form-feedback {
  padding: 11px 13px;
  margin-top: 18px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 7px;
  font-size: 13px;
}

.onboarding-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 27px;
}

.onboarding-controls > span {
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

.onboarding-back-button {
  justify-self: start;
  min-height: 43px;
  padding: 0 16px;
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
}

.onboarding-controls .onboarding-button {
  justify-self: end;
  min-width: 112px;
  cursor: pointer;
}

.onboarding-controls button:disabled {
  cursor: wait;
  opacity: .65;
}

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

.profile-overview-panel {
  margin-top: 22px;
}

.membership-card-panel {
  margin-top: 22px;
}

.membership-card-panel .profile-overview-heading {
  margin-bottom: 0;
}

.membership-card-panel .profile-overview-heading p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.membership-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.membership-card-download:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.membership-card-help {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.profile-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.profile-overview-heading h2 {
  margin: 0;
}

.profile-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.profile-edit-link:hover,
.profile-edit-link:focus-visible {
  color: #1e40af;
  text-decoration: underline;
}

.profile-overview-details {
  display: grid;
  gap: 11px;
  margin: 0;
}

.profile-overview-details > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.profile-overview-details > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-overview-details dt {
  color: #64748b;
  font-size: 13px;
}

.profile-overview-details dd {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .overview-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .dashboard-header {
    position: static;
    min-height: 66px;
    gap: 12px;
    padding: 10px 16px;
  }

  .dashboard-header .portal-brand {
    flex-basis: auto;
    gap: 8px;
    font-size: 13px;
  }

  .dashboard-header .portal-brand img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .dashboard-account {
    gap: 8px;
  }

  .dashboard-account-email {
    display: none;
  }

  .dashboard-header .portal-logout {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .dashboard-layout {
    display: flex;
    min-height: calc(100vh - 66px);
    flex-direction: column;
  }

  .dashboard-sidebar {
    position: static;
    display: block;
    height: auto;
    min-height: 0;
    padding: 12px 0 0;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .profile-progress-card {
    margin: 0 14px 11px;
    padding: 11px 12px;
  }

  .profile-progress-card > div {
    margin-bottom: 8px;
  }

  .dashboard-nav {
    display: flex;
    gap: 5px;
    padding: 0 14px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-nav-link {
    min-height: 40px;
    flex: 0 0 auto;
    gap: 8px;
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .dashboard-sidebar-account {
    display: none;
  }

  .dashboard-main {
    padding: 27px 16px 36px;
  }

  .dashboard-page-heading {
    margin-bottom: 24px;
  }

  .dashboard-page-heading h1 {
    font-size: 25px;
  }

  .dashboard-page-heading p {
    font-size: 13px;
  }

  .dashboard-notice {
    margin-bottom: 18px;
    padding: 12px 13px;
    font-size: 12px;
  }

  .complete-profile-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 19px 17px;
  }

  .complete-profile-copy h2 {
    font-size: 17px;
  }

  .complete-profile-copy p {
    font-size: 13px;
  }

  .onboarding-button {
    width: 100%;
    min-height: 46px;
  }

  .complete-profile-progress {
    grid-column: auto;
  }

  .overview-status-grid {
    gap: 11px;
    margin-top: 16px;
  }

  .overview-status-card {
    min-height: 84px;
    gap: 7px;
    padding: 14px;
  }

  .overview-status-card span,
  .overview-status-card strong {
    font-size: 13px;
  }

  .dashboard-panel {
    padding: 20px 18px;
    margin-top: 21px;
  }

  .recent-payments h2 {
    font-size: 17px;
  }

  .payment-wallet-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 18px;
  }

  .payment-form-fields {
    grid-template-columns: 1fr;
  }

  .payment-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-pagination {
    gap: 9px;
    font-size: 12px;
  }

  .section-placeholder {
    min-height: 240px;
  }

  .onboarding-stepper {
    margin-bottom: 20px;
  }

  .onboarding-stepper-item {
    font-size: 11px;
  }

  .onboarding-stepper-marker {
    width: 36px;
    height: 36px;
  }

  .onboarding-stepper-item::before {
    top: 17px;
  }

  .onboarding-panel {
    padding: 20px 17px 17px;
  }

  .onboarding-form-step h2 {
    font-size: 19px;
  }

  .onboarding-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .onboarding-fields .onboarding-field-wide {
    grid-column: auto;
  }

  .onboarding-controls {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .onboarding-controls .onboarding-button {
    min-width: 86px;
    padding: 0 11px;
  }

  .onboarding-back-button {
    padding: 0 11px;
    font-size: 13px;
  }

  .profile-overview-details > div {
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .dashboard-header .portal-brand {
    font-size: 12px;
  }

  .dashboard-header .portal-logout {
    gap: 6px;
    padding: 0 8px;
  }

  .dashboard-main {
    padding-right: 13px;
    padding-left: 13px;
  }

  .overview-status-grid {
    grid-template-columns: 1fr;
  }
}
